@covalent/components 8.15.0-beta.12 → 8.15.0-beta.14
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/code-editor/code-editor.d.ts +0 -14
- package/code-editor/code-editor.d.ts.map +1 -1
- package/{code-editor-3a09cbf1.js → code-editor-857a4673.js} +89 -159
- package/{code-editor-ce557bd5.mjs → code-editor-caabbe50.mjs} +3141 -3338
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{html-783f1e7c.mjs → html-707a5945.mjs} +1 -1
- package/{html-4fffc46e.js → html-aa904833.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-4d09cd3c.mjs → javascript-779a52b2.mjs} +2 -2
- package/{javascript-90bb18e6.js → javascript-d8dd6c0d.js} +1 -1
- package/notebook/notebook.d.ts +14 -1
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook-cell/notebook-cell.d.ts.map +1 -1
- package/notebook-cell.js +8 -5
- package/notebook-cell.mjs +12 -9
- package/notebook.js +36 -27
- package/notebook.mjs +940 -848
- package/package.json +1 -1
- package/{python-562f8e9b.mjs → python-02ca0307.mjs} +1 -1
- package/{python-af3aad7d.js → python-b0bc8e7b.js} +1 -1
- package/{typescript-76d039b3.js → typescript-1a78657a.js} +1 -1
- package/{typescript-a2a5d6b2.mjs → typescript-ba11dbe7.mjs} +1 -1
- package/cpp-642b10c4.mjs +0 -387
- package/cpp-7eec3311.js +0 -6
- package/csharp-32862cd2.js +0 -6
- package/csharp-d987ddad.mjs +0 -320
- package/dart-031264ea.js +0 -6
- package/dart-5d209f63.mjs +0 -270
- package/go-46e3b371.mjs +0 -208
- package/go-cdd943fd.js +0 -6
- package/java-32d7b433.js +0 -6
- package/java-cd017f60.mjs +0 -221
- package/kotlin-4b9019e1.js +0 -6
- package/kotlin-c6e52a56.mjs +0 -245
- package/lua-b46719a9.js +0 -6
- package/lua-f159160b.mjs +0 -157
- package/php-987b9d87.mjs +0 -471
- package/php-a6dcde52.js +0 -6
- package/rust-87887495.js +0 -6
- package/rust-97f8f6e1.mjs +0 -337
- package/scala-c68c650c.mjs +0 -353
- package/scala-e8b7bd42.js +0 -6
- package/shell-09452d42.mjs +0 -224
- package/shell-43cfbe7d.js +0 -6
- package/swift-724ff2a3.js +0 -8
- package/swift-abdf1835.mjs +0 -315
- package/xml-89571455.mjs +0 -100
- package/xml-e66929d0.js +0 -6
- package/yaml-11a91e71.js +0 -6
- package/yaml-4eccd122.mjs +0 -189
package/notebook.mjs
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import { i as
|
1
|
+
import { A as Ru, T as S0, i as T0, r as I0, s as B0, x as v, D as z0, e as M0 } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { i as R0, t as q0, e as L0 } from "./directive-daf4e9b6.mjs";
|
2
3
|
import { n as su } from "./property-9b6ea53b.mjs";
|
3
4
|
import "./alert.mjs";
|
4
5
|
import "./button.mjs";
|
@@ -14,7 +15,6 @@ import "./foundation-d533452a.mjs";
|
|
14
15
|
import "./tslib.es6-c4b0f3b1.mjs";
|
15
16
|
import "./foundation-2334d146.mjs";
|
16
17
|
import "./class-map-6e504a9a.mjs";
|
17
|
-
import "./directive-daf4e9b6.mjs";
|
18
18
|
import "./query-d843aa92.mjs";
|
19
19
|
import "./mwc-icon-5227aec3.mjs";
|
20
20
|
import "./ripple-handlers-8883e893.mjs";
|
@@ -24,7 +24,7 @@ import "./style-map-e7ec6d41.mjs";
|
|
24
24
|
import "./aria-property-fa2717fe.mjs";
|
25
25
|
import "./event-options-78d6cf94.mjs";
|
26
26
|
import "./if-defined-c367f208.mjs";
|
27
|
-
import "./code-editor-
|
27
|
+
import "./code-editor-caabbe50.mjs";
|
28
28
|
import "./async-directive-99a01ec7.mjs";
|
29
29
|
import "./directive-helpers-e3ea6592.mjs";
|
30
30
|
import "./typography.mjs";
|
@@ -36,12 +36,37 @@ import "./mwc-line-ripple-directive-aabd8778.mjs";
|
|
36
36
|
import "./mwc-menu-base-04586160.mjs";
|
37
37
|
import "./mwc-list-base-402e1d8e.mjs";
|
38
38
|
import "./form-element-abadd335.mjs";
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
/**
|
40
|
+
* @license
|
41
|
+
* Copyright 2017 Google LLC
|
42
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
43
|
+
*/
|
44
|
+
class Du extends R0 {
|
45
|
+
constructor(e) {
|
46
|
+
if (super(e), this.et = Ru, e.type !== q0.CHILD)
|
47
|
+
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
48
|
+
}
|
49
|
+
render(e) {
|
50
|
+
if (e === Ru || e == null)
|
51
|
+
return this.ft = void 0, this.et = e;
|
52
|
+
if (e === S0)
|
53
|
+
return e;
|
54
|
+
if (typeof e != "string")
|
55
|
+
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
56
|
+
if (e === this.et)
|
57
|
+
return this.ft;
|
58
|
+
this.et = e;
|
59
|
+
const t = [e];
|
60
|
+
return t.raw = t, this.ft = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
61
|
+
}
|
62
|
+
}
|
63
|
+
Du.directiveName = "unsafeHTML", Du.resultType = 1;
|
64
|
+
const qu = L0(Du), Lu = {};
|
65
|
+
function P0(u) {
|
66
|
+
let e = Lu[u];
|
42
67
|
if (e)
|
43
68
|
return e;
|
44
|
-
e =
|
69
|
+
e = Lu[u] = [];
|
45
70
|
for (let t = 0; t < 128; t++) {
|
46
71
|
const n = String.fromCharCode(t);
|
47
72
|
e.push(n);
|
@@ -54,35 +79,35 @@ function I0(u) {
|
|
54
79
|
}
|
55
80
|
function V(u, e) {
|
56
81
|
typeof e != "string" && (e = V.defaultChars);
|
57
|
-
const t =
|
82
|
+
const t = P0(e);
|
58
83
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
59
84
|
let r = "";
|
60
|
-
for (let c = 0,
|
61
|
-
const
|
62
|
-
if (
|
63
|
-
r += t[
|
85
|
+
for (let c = 0, o = n.length; c < o; c += 3) {
|
86
|
+
const i = parseInt(n.slice(c + 1, c + 3), 16);
|
87
|
+
if (i < 128) {
|
88
|
+
r += t[i];
|
64
89
|
continue;
|
65
90
|
}
|
66
|
-
if ((
|
91
|
+
if ((i & 224) === 192 && c + 3 < o) {
|
67
92
|
const a = parseInt(n.slice(c + 4, c + 6), 16);
|
68
93
|
if ((a & 192) === 128) {
|
69
|
-
const s =
|
94
|
+
const s = i << 6 & 1984 | a & 63;
|
70
95
|
s < 128 ? r += "��" : r += String.fromCharCode(s), c += 3;
|
71
96
|
continue;
|
72
97
|
}
|
73
98
|
}
|
74
|
-
if ((
|
99
|
+
if ((i & 240) === 224 && c + 6 < o) {
|
75
100
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16);
|
76
101
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
77
|
-
const l =
|
102
|
+
const l = i << 12 & 61440 | a << 6 & 4032 | s & 63;
|
78
103
|
l < 2048 || l >= 55296 && l <= 57343 ? r += "���" : r += String.fromCharCode(l), c += 6;
|
79
104
|
continue;
|
80
105
|
}
|
81
106
|
}
|
82
|
-
if ((
|
107
|
+
if ((i & 248) === 240 && c + 9 < o) {
|
83
108
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16), l = parseInt(n.slice(c + 10, c + 12), 16);
|
84
109
|
if ((a & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
85
|
-
let d =
|
110
|
+
let d = i << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | l & 63;
|
86
111
|
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), c += 9;
|
87
112
|
continue;
|
88
113
|
}
|
@@ -94,12 +119,12 @@ function V(u, e) {
|
|
94
119
|
}
|
95
120
|
V.defaultChars = ";/?:@&=+$,#";
|
96
121
|
V.componentChars = "";
|
97
|
-
const
|
98
|
-
function
|
99
|
-
let e =
|
122
|
+
const Pu = {};
|
123
|
+
function $0(u) {
|
124
|
+
let e = Pu[u];
|
100
125
|
if (e)
|
101
126
|
return e;
|
102
|
-
e =
|
127
|
+
e = Pu[u] = [];
|
103
128
|
for (let t = 0; t < 128; t++) {
|
104
129
|
const n = String.fromCharCode(t);
|
105
130
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
@@ -110,20 +135,20 @@ function B0(u) {
|
|
110
135
|
}
|
111
136
|
function uu(u, e, t) {
|
112
137
|
typeof e != "string" && (t = e, e = uu.defaultChars), typeof t > "u" && (t = !0);
|
113
|
-
const n =
|
138
|
+
const n = $0(e);
|
114
139
|
let r = "";
|
115
|
-
for (let c = 0,
|
116
|
-
const
|
117
|
-
if (t &&
|
140
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
141
|
+
const i = u.charCodeAt(c);
|
142
|
+
if (t && i === 37 && c + 2 < o && /^[0-9a-f]{2}$/i.test(u.slice(c + 1, c + 3))) {
|
118
143
|
r += u.slice(c, c + 3), c += 2;
|
119
144
|
continue;
|
120
145
|
}
|
121
|
-
if (
|
122
|
-
r += n[
|
146
|
+
if (i < 128) {
|
147
|
+
r += n[i];
|
123
148
|
continue;
|
124
149
|
}
|
125
|
-
if (
|
126
|
-
if (
|
150
|
+
if (i >= 55296 && i <= 57343) {
|
151
|
+
if (i >= 55296 && i <= 56319 && c + 1 < o) {
|
127
152
|
const a = u.charCodeAt(c + 1);
|
128
153
|
if (a >= 56320 && a <= 57343) {
|
129
154
|
r += encodeURIComponent(u[c] + u[c + 1]), c++;
|
@@ -139,18 +164,18 @@ function uu(u, e, t) {
|
|
139
164
|
}
|
140
165
|
uu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
141
166
|
uu.componentChars = "-_.!~*'()";
|
142
|
-
function
|
167
|
+
function Fu(u) {
|
143
168
|
let e = "";
|
144
169
|
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;
|
145
170
|
}
|
146
171
|
function iu() {
|
147
172
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
148
173
|
}
|
149
|
-
const
|
150
|
-
`, " "],
|
174
|
+
const O0 = /^([a-z0-9.+-]+:)/i, N0 = /:[0-9]*$/, j0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, U0 = ["<", ">", '"', "`", " ", "\r", `
|
175
|
+
`, " "], H0 = ["{", "}", "|", "\\", "^", "`"].concat(U0), Z0 = ["'"].concat(H0), $u = ["%", "/", "?", ";", "#"].concat(Z0), Ou = ["/", "?", "#"], V0 = 255, Nu = /^[+a-z0-9A-Z_-]{0,63}$/, G0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ju = {
|
151
176
|
javascript: !0,
|
152
177
|
"javascript:": !0
|
153
|
-
},
|
178
|
+
}, Uu = {
|
154
179
|
http: !0,
|
155
180
|
https: !0,
|
156
181
|
ftp: !0,
|
@@ -162,7 +187,7 @@ const z0 = /^([a-z0-9.+-]+:)/i, M0 = /:[0-9]*$/, q0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
162
187
|
"gopher:": !0,
|
163
188
|
"file:": !0
|
164
189
|
};
|
165
|
-
function
|
190
|
+
function vu(u, e) {
|
166
191
|
if (u && u instanceof iu)
|
167
192
|
return u;
|
168
193
|
const t = new iu();
|
@@ -171,19 +196,19 @@ function Fu(u, e) {
|
|
171
196
|
iu.prototype.parse = function(u, e) {
|
172
197
|
let t, n, r, c = u;
|
173
198
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
174
|
-
const s =
|
199
|
+
const s = j0.exec(c);
|
175
200
|
if (s)
|
176
201
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
177
202
|
}
|
178
|
-
let
|
179
|
-
if (
|
203
|
+
let o = O0.exec(c);
|
204
|
+
if (o && (o = o[0], t = o.toLowerCase(), this.protocol = o, c = c.substr(o.length)), (e || o || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = c.substr(0, 2) === "//", r && !(o && ju[o]) && (c = c.substr(2), this.slashes = !0)), !ju[o] && (r || o && !Uu[o])) {
|
180
205
|
let s = -1;
|
181
|
-
for (let f = 0; f <
|
182
|
-
n = c.indexOf(
|
206
|
+
for (let f = 0; f < Ou.length; f++)
|
207
|
+
n = c.indexOf(Ou[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
183
208
|
let l, d;
|
184
209
|
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;
|
185
|
-
for (let f = 0; f <
|
186
|
-
n = c.indexOf(
|
210
|
+
for (let f = 0; f < $u.length; f++)
|
211
|
+
n = c.indexOf($u[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
187
212
|
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
188
213
|
const b = c.slice(0, s);
|
189
214
|
c = c.slice(s), this.parseHost(b), this.hostname = this.hostname || "";
|
@@ -192,52 +217,52 @@ iu.prototype.parse = function(u, e) {
|
|
192
217
|
const f = this.hostname.split(/\./);
|
193
218
|
for (let g = 0, k = f.length; g < k; g++) {
|
194
219
|
const D = f[g];
|
195
|
-
if (D && !D.match(
|
220
|
+
if (D && !D.match(Nu)) {
|
196
221
|
let p = "";
|
197
222
|
for (let _ = 0, x = D.length; _ < x; _++)
|
198
223
|
D.charCodeAt(_) > 127 ? p += "x" : p += D[_];
|
199
|
-
if (!p.match(
|
200
|
-
const _ = f.slice(0, g), x = f.slice(g + 1), m = D.match(
|
224
|
+
if (!p.match(Nu)) {
|
225
|
+
const _ = f.slice(0, g), x = f.slice(g + 1), m = D.match(G0);
|
201
226
|
m && (_.push(m[1]), x.unshift(m[2])), x.length && (c = x.join(".") + c), this.hostname = _.join(".");
|
202
227
|
break;
|
203
228
|
}
|
204
229
|
}
|
205
230
|
}
|
206
231
|
}
|
207
|
-
this.hostname.length >
|
232
|
+
this.hostname.length > V0 && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
208
233
|
}
|
209
|
-
const
|
210
|
-
|
234
|
+
const i = c.indexOf("#");
|
235
|
+
i !== -1 && (this.hash = c.substr(i), c = c.slice(0, i));
|
211
236
|
const a = c.indexOf("?");
|
212
|
-
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c),
|
237
|
+
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), Uu[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
213
238
|
};
|
214
239
|
iu.prototype.parseHost = function(u) {
|
215
|
-
let e =
|
240
|
+
let e = N0.exec(u);
|
216
241
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
217
242
|
};
|
218
|
-
const
|
243
|
+
const W0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
219
244
|
__proto__: null,
|
220
245
|
decode: V,
|
221
246
|
encode: uu,
|
222
|
-
format:
|
223
|
-
parse:
|
224
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
247
|
+
format: Fu,
|
248
|
+
parse: vu
|
249
|
+
}, Symbol.toStringTag, { value: "Module" })), e0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t0 = /[\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]/, n0 = /[\$\+<->\^`\|~\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]/, r0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Q0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
225
250
|
__proto__: null,
|
226
|
-
Any:
|
227
|
-
Cc:
|
228
|
-
Cf:
|
229
|
-
P:
|
230
|
-
S:
|
231
|
-
Z:
|
232
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
251
|
+
Any: e0,
|
252
|
+
Cc: t0,
|
253
|
+
Cf: J0,
|
254
|
+
P: wu,
|
255
|
+
S: n0,
|
256
|
+
Z: r0
|
257
|
+
}, Symbol.toStringTag, { value: "Module" })), K0 = new Uint16Array(
|
233
258
|
// prettier-ignore
|
234
259
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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))
|
235
|
-
),
|
260
|
+
), X0 = new Uint16Array(
|
236
261
|
// prettier-ignore
|
237
262
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
238
263
|
);
|
239
264
|
var pu;
|
240
|
-
const
|
265
|
+
const Y0 = /* @__PURE__ */ new Map([
|
241
266
|
[0, 65533],
|
242
267
|
// C1 Unicode control character reference replacements
|
243
268
|
[128, 8364],
|
@@ -267,53 +292,53 @@ const V0 = /* @__PURE__ */ new Map([
|
|
267
292
|
[156, 339],
|
268
293
|
[158, 382],
|
269
294
|
[159, 376]
|
270
|
-
]),
|
295
|
+
]), ue = (
|
271
296
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
272
297
|
(pu = String.fromCodePoint) !== null && pu !== void 0 ? pu : function(u) {
|
273
298
|
let e = "";
|
274
299
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
275
300
|
}
|
276
301
|
);
|
277
|
-
function
|
302
|
+
function ee(u) {
|
278
303
|
var e;
|
279
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
304
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Y0.get(u)) !== null && e !== void 0 ? e : u;
|
280
305
|
}
|
281
|
-
var
|
306
|
+
var A;
|
282
307
|
(function(u) {
|
283
308
|
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";
|
284
|
-
})(
|
285
|
-
const
|
286
|
-
var
|
309
|
+
})(A || (A = {}));
|
310
|
+
const te = 32;
|
311
|
+
var O;
|
287
312
|
(function(u) {
|
288
313
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
289
|
-
})(
|
290
|
-
function
|
291
|
-
return u >=
|
314
|
+
})(O || (O = {}));
|
315
|
+
function Eu(u) {
|
316
|
+
return u >= A.ZERO && u <= A.NINE;
|
292
317
|
}
|
293
|
-
function
|
294
|
-
return u >=
|
318
|
+
function ne(u) {
|
319
|
+
return u >= A.UPPER_A && u <= A.UPPER_F || u >= A.LOWER_A && u <= A.LOWER_F;
|
295
320
|
}
|
296
|
-
function
|
297
|
-
return u >=
|
321
|
+
function re(u) {
|
322
|
+
return u >= A.UPPER_A && u <= A.UPPER_Z || u >= A.LOWER_A && u <= A.LOWER_Z || Eu(u);
|
298
323
|
}
|
299
|
-
function
|
300
|
-
return u ===
|
324
|
+
function ce(u) {
|
325
|
+
return u === A.EQUALS || re(u);
|
301
326
|
}
|
302
|
-
var
|
327
|
+
var y;
|
303
328
|
(function(u) {
|
304
329
|
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";
|
305
|
-
})(
|
306
|
-
var
|
330
|
+
})(y || (y = {}));
|
331
|
+
var $;
|
307
332
|
(function(u) {
|
308
333
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
309
|
-
})(
|
310
|
-
class
|
334
|
+
})($ || ($ = {}));
|
335
|
+
class ie {
|
311
336
|
constructor(e, t, n) {
|
312
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
337
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = y.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = $.Strict;
|
313
338
|
}
|
314
339
|
/** Resets the instance to make it reusable. */
|
315
340
|
startEntity(e) {
|
316
|
-
this.decodeMode = e, this.state =
|
341
|
+
this.decodeMode = e, this.state = y.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
317
342
|
}
|
318
343
|
/**
|
319
344
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
@@ -328,15 +353,15 @@ class Y0 {
|
|
328
353
|
*/
|
329
354
|
write(e, t) {
|
330
355
|
switch (this.state) {
|
331
|
-
case
|
332
|
-
return e.charCodeAt(t) ===
|
333
|
-
case
|
356
|
+
case y.EntityStart:
|
357
|
+
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));
|
358
|
+
case y.NumericStart:
|
334
359
|
return this.stateNumericStart(e, t);
|
335
|
-
case
|
360
|
+
case y.NumericDecimal:
|
336
361
|
return this.stateNumericDecimal(e, t);
|
337
|
-
case
|
362
|
+
case y.NumericHex:
|
338
363
|
return this.stateNumericHex(e, t);
|
339
|
-
case
|
364
|
+
case y.NamedEntity:
|
340
365
|
return this.stateNamedEntity(e, t);
|
341
366
|
}
|
342
367
|
}
|
@@ -350,7 +375,7 @@ class Y0 {
|
|
350
375
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
351
376
|
*/
|
352
377
|
stateNumericStart(e, t) {
|
353
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
378
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | te) === A.LOWER_X ? (this.state = y.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = y.NumericDecimal, this.stateNumericDecimal(e, t));
|
354
379
|
}
|
355
380
|
addToNumericResult(e, t, n, r) {
|
356
381
|
if (t !== n) {
|
@@ -371,7 +396,7 @@ class Y0 {
|
|
371
396
|
const n = t;
|
372
397
|
for (; t < e.length; ) {
|
373
398
|
const r = e.charCodeAt(t);
|
374
|
-
if (
|
399
|
+
if (Eu(r) || ne(r))
|
375
400
|
t += 1;
|
376
401
|
else
|
377
402
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
@@ -391,7 +416,7 @@ class Y0 {
|
|
391
416
|
const n = t;
|
392
417
|
for (; t < e.length; ) {
|
393
418
|
const r = e.charCodeAt(t);
|
394
|
-
if (
|
419
|
+
if (Eu(r))
|
395
420
|
t += 1;
|
396
421
|
else
|
397
422
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
@@ -415,11 +440,11 @@ class Y0 {
|
|
415
440
|
var n;
|
416
441
|
if (this.consumed <= t)
|
417
442
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
418
|
-
if (e ===
|
443
|
+
if (e === A.SEMI)
|
419
444
|
this.consumed += 1;
|
420
|
-
else if (this.decodeMode ===
|
445
|
+
else if (this.decodeMode === $.Strict)
|
421
446
|
return 0;
|
422
|
-
return this.emitCodePoint(
|
447
|
+
return this.emitCodePoint(ee(this.result), this.consumed), this.errors && (e !== A.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
423
448
|
}
|
424
449
|
/**
|
425
450
|
* Parses a named entity.
|
@@ -432,18 +457,18 @@ class Y0 {
|
|
432
457
|
*/
|
433
458
|
stateNamedEntity(e, t) {
|
434
459
|
const { decodeTree: n } = this;
|
435
|
-
let r = n[this.treeIndex], c = (r &
|
460
|
+
let r = n[this.treeIndex], c = (r & O.VALUE_LENGTH) >> 14;
|
436
461
|
for (; t < e.length; t++, this.excess++) {
|
437
|
-
const
|
438
|
-
if (this.treeIndex =
|
462
|
+
const o = e.charCodeAt(t);
|
463
|
+
if (this.treeIndex = oe(n, r, this.treeIndex + Math.max(1, c), o), this.treeIndex < 0)
|
439
464
|
return this.result === 0 || // If we are parsing an attribute
|
440
|
-
this.decodeMode ===
|
465
|
+
this.decodeMode === $.Attribute && // We shouldn't have consumed any characters after the entity,
|
441
466
|
(c === 0 || // And there should be no invalid characters.
|
442
|
-
|
443
|
-
if (r = n[this.treeIndex], c = (r &
|
444
|
-
if (
|
467
|
+
ce(o)) ? 0 : this.emitNotTerminatedNamedEntity();
|
468
|
+
if (r = n[this.treeIndex], c = (r & O.VALUE_LENGTH) >> 14, c !== 0) {
|
469
|
+
if (o === A.SEMI)
|
445
470
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
446
|
-
this.decodeMode !==
|
471
|
+
this.decodeMode !== $.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
447
472
|
}
|
448
473
|
}
|
449
474
|
return -1;
|
@@ -455,7 +480,7 @@ class Y0 {
|
|
455
480
|
*/
|
456
481
|
emitNotTerminatedNamedEntity() {
|
457
482
|
var e;
|
458
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
483
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & O.VALUE_LENGTH) >> 14;
|
459
484
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
460
485
|
}
|
461
486
|
/**
|
@@ -469,7 +494,7 @@ class Y0 {
|
|
469
494
|
*/
|
470
495
|
emitNamedEntityData(e, t, n) {
|
471
496
|
const { decodeTree: r } = this;
|
472
|
-
return this.emitCodePoint(t === 1 ? r[e] &
|
497
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~O.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
473
498
|
}
|
474
499
|
/**
|
475
500
|
* Signal to the parser that the end of the input was reached.
|
@@ -481,75 +506,75 @@ class Y0 {
|
|
481
506
|
end() {
|
482
507
|
var e;
|
483
508
|
switch (this.state) {
|
484
|
-
case
|
485
|
-
return this.result !== 0 && (this.decodeMode !==
|
486
|
-
case
|
509
|
+
case y.NamedEntity:
|
510
|
+
return this.result !== 0 && (this.decodeMode !== $.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
511
|
+
case y.NumericDecimal:
|
487
512
|
return this.emitNumericEntity(0, 2);
|
488
|
-
case
|
513
|
+
case y.NumericHex:
|
489
514
|
return this.emitNumericEntity(0, 3);
|
490
|
-
case
|
515
|
+
case y.NumericStart:
|
491
516
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
492
|
-
case
|
517
|
+
case y.EntityStart:
|
493
518
|
return 0;
|
494
519
|
}
|
495
520
|
}
|
496
521
|
}
|
497
|
-
function
|
522
|
+
function c0(u) {
|
498
523
|
let e = "";
|
499
|
-
const t = new
|
524
|
+
const t = new ie(u, (n) => e += ue(n));
|
500
525
|
return function(r, c) {
|
501
|
-
let
|
502
|
-
for (; (
|
503
|
-
e += r.slice(
|
526
|
+
let o = 0, i = 0;
|
527
|
+
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
528
|
+
e += r.slice(o, i), t.startEntity(c);
|
504
529
|
const s = t.write(
|
505
530
|
r,
|
506
531
|
// Skip the "&"
|
507
|
-
|
532
|
+
i + 1
|
508
533
|
);
|
509
534
|
if (s < 0) {
|
510
|
-
|
535
|
+
o = i + t.end();
|
511
536
|
break;
|
512
537
|
}
|
513
|
-
|
538
|
+
o = i + s, i = s === 0 ? o + 1 : o;
|
514
539
|
}
|
515
|
-
const a = e + r.slice(
|
540
|
+
const a = e + r.slice(o);
|
516
541
|
return e = "", a;
|
517
542
|
};
|
518
543
|
}
|
519
|
-
function
|
520
|
-
const r = (e &
|
544
|
+
function oe(u, e, t, n) {
|
545
|
+
const r = (e & O.BRANCH_LENGTH) >> 7, c = e & O.JUMP_TABLE;
|
521
546
|
if (r === 0)
|
522
547
|
return c !== 0 && n === c ? t : -1;
|
523
548
|
if (c) {
|
524
549
|
const a = n - c;
|
525
550
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
526
551
|
}
|
527
|
-
let
|
528
|
-
for (;
|
529
|
-
const a =
|
552
|
+
let o = t, i = o + r - 1;
|
553
|
+
for (; o <= i; ) {
|
554
|
+
const a = o + i >>> 1, s = u[a];
|
530
555
|
if (s < n)
|
531
|
-
|
556
|
+
o = a + 1;
|
532
557
|
else if (s > n)
|
533
|
-
|
558
|
+
i = a - 1;
|
534
559
|
else
|
535
560
|
return u[a + r];
|
536
561
|
}
|
537
562
|
return -1;
|
538
563
|
}
|
539
|
-
const
|
540
|
-
|
541
|
-
function
|
542
|
-
return
|
564
|
+
const ae = c0(K0);
|
565
|
+
c0(X0);
|
566
|
+
function i0(u, e = $.Legacy) {
|
567
|
+
return ae(u, e);
|
543
568
|
}
|
544
|
-
function
|
569
|
+
function se(u) {
|
545
570
|
return Object.prototype.toString.call(u);
|
546
571
|
}
|
547
|
-
function
|
548
|
-
return
|
572
|
+
function Su(u) {
|
573
|
+
return se(u) === "[object String]";
|
549
574
|
}
|
550
|
-
const
|
551
|
-
function
|
552
|
-
return
|
575
|
+
const le = Object.prototype.hasOwnProperty;
|
576
|
+
function fe(u, e) {
|
577
|
+
return le.call(u, e);
|
553
578
|
}
|
554
579
|
function lu(u) {
|
555
580
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
@@ -562,10 +587,10 @@ function lu(u) {
|
|
562
587
|
}
|
563
588
|
}), u;
|
564
589
|
}
|
565
|
-
function
|
590
|
+
function o0(u, e, t) {
|
566
591
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
567
592
|
}
|
568
|
-
function
|
593
|
+
function Tu(u) {
|
569
594
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
570
595
|
}
|
571
596
|
function ou(u) {
|
@@ -576,38 +601,38 @@ function ou(u) {
|
|
576
601
|
}
|
577
602
|
return String.fromCharCode(u);
|
578
603
|
}
|
579
|
-
const
|
580
|
-
function
|
581
|
-
if (e.charCodeAt(0) === 35 &&
|
604
|
+
const a0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, de = /&([a-z#][a-z0-9]{1,31});/gi, he = new RegExp(a0.source + "|" + de.source, "gi"), be = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
605
|
+
function pe(u, e) {
|
606
|
+
if (e.charCodeAt(0) === 35 && be.test(e)) {
|
582
607
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
583
|
-
return
|
608
|
+
return Tu(n) ? ou(n) : u;
|
584
609
|
}
|
585
|
-
const t =
|
610
|
+
const t = i0(u);
|
586
611
|
return t !== u ? t : u;
|
587
612
|
}
|
588
|
-
function
|
589
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
613
|
+
function xe(u) {
|
614
|
+
return u.indexOf("\\") < 0 ? u : u.replace(a0, "$1");
|
590
615
|
}
|
591
616
|
function G(u) {
|
592
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
593
|
-
return t ||
|
617
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(he, function(e, t, n) {
|
618
|
+
return t || pe(e, n);
|
594
619
|
});
|
595
620
|
}
|
596
|
-
const
|
621
|
+
const _e = /[&<>"]/, me = /[&<>"]/g, ge = {
|
597
622
|
"&": "&",
|
598
623
|
"<": "<",
|
599
624
|
">": ">",
|
600
625
|
'"': """
|
601
626
|
};
|
602
|
-
function
|
603
|
-
return
|
627
|
+
function ke(u) {
|
628
|
+
return ge[u];
|
604
629
|
}
|
605
630
|
function N(u) {
|
606
|
-
return
|
631
|
+
return _e.test(u) ? u.replace(me, ke) : u;
|
607
632
|
}
|
608
|
-
const
|
609
|
-
function
|
610
|
-
return u.replace(
|
633
|
+
const Ce = /[.?*+^$[\]\\(){}|-]/g;
|
634
|
+
function De(u) {
|
635
|
+
return u.replace(Ce, "\\$&");
|
611
636
|
}
|
612
637
|
function E(u) {
|
613
638
|
switch (u) {
|
@@ -636,10 +661,10 @@ function Q(u) {
|
|
636
661
|
}
|
637
662
|
return !1;
|
638
663
|
}
|
639
|
-
function X(u) {
|
640
|
-
return vu.test(u) || u0.test(u);
|
641
|
-
}
|
642
664
|
function K(u) {
|
665
|
+
return wu.test(u) || n0.test(u);
|
666
|
+
}
|
667
|
+
function X(u) {
|
643
668
|
switch (u) {
|
644
669
|
case 33:
|
645
670
|
case 34:
|
@@ -681,35 +706,35 @@ function K(u) {
|
|
681
706
|
function fu(u) {
|
682
707
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
683
708
|
}
|
684
|
-
const
|
709
|
+
const Ee = { mdurl: W0, ucmicro: Q0 }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
685
710
|
__proto__: null,
|
686
|
-
arrayReplaceAt:
|
711
|
+
arrayReplaceAt: o0,
|
687
712
|
assign: lu,
|
688
713
|
escapeHtml: N,
|
689
|
-
escapeRE:
|
714
|
+
escapeRE: De,
|
690
715
|
fromCodePoint: ou,
|
691
|
-
has:
|
692
|
-
isMdAsciiPunct:
|
693
|
-
isPunctChar:
|
716
|
+
has: fe,
|
717
|
+
isMdAsciiPunct: X,
|
718
|
+
isPunctChar: K,
|
694
719
|
isSpace: E,
|
695
|
-
isString:
|
696
|
-
isValidEntityCode:
|
720
|
+
isString: Su,
|
721
|
+
isValidEntityCode: Tu,
|
697
722
|
isWhiteSpace: Q,
|
698
|
-
lib:
|
723
|
+
lib: Ee,
|
699
724
|
normalizeReference: fu,
|
700
725
|
unescapeAll: G,
|
701
|
-
unescapeMd:
|
726
|
+
unescapeMd: xe
|
702
727
|
}, Symbol.toStringTag, { value: "Module" }));
|
703
|
-
function
|
704
|
-
let n, r, c,
|
705
|
-
const
|
706
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
728
|
+
function Ae(u, e, t) {
|
729
|
+
let n, r, c, o;
|
730
|
+
const i = u.posMax, a = u.pos;
|
731
|
+
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
707
732
|
if (c = u.src.charCodeAt(u.pos), c === 93 && (n--, n === 0)) {
|
708
733
|
r = !0;
|
709
734
|
break;
|
710
735
|
}
|
711
|
-
if (
|
712
|
-
if (
|
736
|
+
if (o = u.pos, u.md.inline.skipToken(u), c === 91) {
|
737
|
+
if (o === u.pos - 1)
|
713
738
|
n++;
|
714
739
|
else if (t)
|
715
740
|
return u.pos = a, -1;
|
@@ -718,7 +743,7 @@ function me(u, e, t) {
|
|
718
743
|
let s = -1;
|
719
744
|
return r && (s = u.pos), u.pos = a, s;
|
720
745
|
}
|
721
|
-
function
|
746
|
+
function Fe(u, e, t) {
|
722
747
|
let n, r = e;
|
723
748
|
const c = {
|
724
749
|
ok: !1,
|
@@ -739,7 +764,7 @@ function ge(u, e, t) {
|
|
739
764
|
}
|
740
765
|
return c;
|
741
766
|
}
|
742
|
-
let
|
767
|
+
let o = 0;
|
743
768
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
744
769
|
if (n === 92 && r + 1 < t) {
|
745
770
|
if (u.charCodeAt(r + 1) === 32)
|
@@ -747,20 +772,20 @@ function ge(u, e, t) {
|
|
747
772
|
r += 2;
|
748
773
|
continue;
|
749
774
|
}
|
750
|
-
if (n === 40 && (
|
775
|
+
if (n === 40 && (o++, o > 32))
|
751
776
|
return c;
|
752
777
|
if (n === 41) {
|
753
|
-
if (
|
778
|
+
if (o === 0)
|
754
779
|
break;
|
755
|
-
|
780
|
+
o--;
|
756
781
|
}
|
757
782
|
r++;
|
758
783
|
}
|
759
|
-
return e === r ||
|
784
|
+
return e === r || o !== 0 || (c.str = G(u.slice(e, r)), c.pos = r, c.ok = !0), c;
|
760
785
|
}
|
761
|
-
function
|
786
|
+
function ve(u, e, t, n) {
|
762
787
|
let r, c = e;
|
763
|
-
const
|
788
|
+
const o = {
|
764
789
|
// if `true`, this is a valid link title
|
765
790
|
ok: !1,
|
766
791
|
// if `true`, this link can be continued on the next line
|
@@ -773,53 +798,53 @@ function ke(u, e, t, n) {
|
|
773
798
|
marker: 0
|
774
799
|
};
|
775
800
|
if (n)
|
776
|
-
|
801
|
+
o.str = n.str, o.marker = n.marker;
|
777
802
|
else {
|
778
803
|
if (c >= t)
|
779
|
-
return
|
780
|
-
let
|
781
|
-
if (
|
782
|
-
return
|
783
|
-
e++, c++,
|
804
|
+
return o;
|
805
|
+
let i = u.charCodeAt(c);
|
806
|
+
if (i !== 34 && i !== 39 && i !== 40)
|
807
|
+
return o;
|
808
|
+
e++, c++, i === 40 && (i = 41), o.marker = i;
|
784
809
|
}
|
785
810
|
for (; c < t; ) {
|
786
|
-
if (r = u.charCodeAt(c), r ===
|
787
|
-
return
|
788
|
-
if (r === 40 &&
|
789
|
-
return
|
811
|
+
if (r = u.charCodeAt(c), r === o.marker)
|
812
|
+
return o.pos = c + 1, o.str += G(u.slice(e, c)), o.ok = !0, o;
|
813
|
+
if (r === 40 && o.marker === 41)
|
814
|
+
return o;
|
790
815
|
r === 92 && c + 1 < t && c++, c++;
|
791
816
|
}
|
792
|
-
return
|
817
|
+
return o.can_continue = !0, o.str += G(u.slice(e, c)), o;
|
793
818
|
}
|
794
|
-
const
|
819
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
795
820
|
__proto__: null,
|
796
|
-
parseLinkDestination:
|
797
|
-
parseLinkLabel:
|
798
|
-
parseLinkTitle:
|
799
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
800
|
-
|
821
|
+
parseLinkDestination: Fe,
|
822
|
+
parseLinkLabel: Ae,
|
823
|
+
parseLinkTitle: ve
|
824
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {};
|
825
|
+
R.code_inline = function(u, e, t, n, r) {
|
801
826
|
const c = u[e];
|
802
827
|
return "<code" + r.renderAttrs(c) + ">" + N(c.content) + "</code>";
|
803
828
|
};
|
804
|
-
|
829
|
+
R.code_block = function(u, e, t, n, r) {
|
805
830
|
const c = u[e];
|
806
831
|
return "<pre" + r.renderAttrs(c) + "><code>" + N(u[e].content) + `</code></pre>
|
807
832
|
`;
|
808
833
|
};
|
809
|
-
|
810
|
-
const c = u[e],
|
811
|
-
let
|
812
|
-
if (
|
813
|
-
const l =
|
814
|
-
|
834
|
+
R.fence = function(u, e, t, n, r) {
|
835
|
+
const c = u[e], o = c.info ? G(c.info).trim() : "";
|
836
|
+
let i = "", a = "";
|
837
|
+
if (o) {
|
838
|
+
const l = o.split(/(\s+)/g);
|
839
|
+
i = l[0], a = l.slice(2).join("");
|
815
840
|
}
|
816
841
|
let s;
|
817
|
-
if (t.highlight ? s = t.highlight(c.content,
|
842
|
+
if (t.highlight ? s = t.highlight(c.content, i, a) || N(c.content) : s = N(c.content), s.indexOf("<pre") === 0)
|
818
843
|
return s + `
|
819
844
|
`;
|
820
|
-
if (
|
845
|
+
if (o) {
|
821
846
|
const l = c.attrIndex("class"), d = c.attrs ? c.attrs.slice() : [];
|
822
|
-
l < 0 ? d.push(["class", t.langPrefix +
|
847
|
+
l < 0 ? d.push(["class", t.langPrefix + i]) : (d[l] = d[l].slice(), d[l][1] += " " + t.langPrefix + i);
|
823
848
|
const b = {
|
824
849
|
attrs: d
|
825
850
|
};
|
@@ -829,32 +854,32 @@ q.fence = function(u, e, t, n, r) {
|
|
829
854
|
return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
|
830
855
|
`;
|
831
856
|
};
|
832
|
-
|
857
|
+
R.image = function(u, e, t, n, r) {
|
833
858
|
const c = u[e];
|
834
859
|
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
835
860
|
};
|
836
|
-
|
861
|
+
R.hardbreak = function(u, e, t) {
|
837
862
|
return t.xhtmlOut ? `<br />
|
838
863
|
` : `<br>
|
839
864
|
`;
|
840
865
|
};
|
841
|
-
|
866
|
+
R.softbreak = function(u, e, t) {
|
842
867
|
return t.breaks ? t.xhtmlOut ? `<br />
|
843
868
|
` : `<br>
|
844
869
|
` : `
|
845
870
|
`;
|
846
871
|
};
|
847
|
-
|
872
|
+
R.text = function(u, e) {
|
848
873
|
return N(u[e].content);
|
849
874
|
};
|
850
|
-
|
875
|
+
R.html_block = function(u, e) {
|
851
876
|
return u[e].content;
|
852
877
|
};
|
853
|
-
|
878
|
+
R.html_inline = function(u, e) {
|
854
879
|
return u[e].content;
|
855
880
|
};
|
856
881
|
function W() {
|
857
|
-
this.rules = lu({},
|
882
|
+
this.rules = lu({}, R);
|
858
883
|
}
|
859
884
|
W.prototype.renderAttrs = function(e) {
|
860
885
|
let t, n, r;
|
@@ -871,20 +896,20 @@ W.prototype.renderToken = function(e, t, n) {
|
|
871
896
|
return "";
|
872
897
|
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (c += `
|
873
898
|
`), c += (r.nesting === -1 ? "</" : "<") + r.tag, c += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (c += " /");
|
874
|
-
let
|
875
|
-
if (r.block && (
|
876
|
-
const
|
877
|
-
(
|
899
|
+
let o = !1;
|
900
|
+
if (r.block && (o = !0, r.nesting === 1 && t + 1 < e.length)) {
|
901
|
+
const i = e[t + 1];
|
902
|
+
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (o = !1);
|
878
903
|
}
|
879
|
-
return c +=
|
904
|
+
return c += o ? `>
|
880
905
|
` : ">", c;
|
881
906
|
};
|
882
907
|
W.prototype.renderInline = function(u, e, t) {
|
883
908
|
let n = "";
|
884
909
|
const r = this.rules;
|
885
|
-
for (let c = 0,
|
886
|
-
const
|
887
|
-
typeof r[
|
910
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
911
|
+
const i = u[c].type;
|
912
|
+
typeof r[i] < "u" ? n += r[i](u, c, e, t, this) : n += this.renderToken(u, c, e);
|
888
913
|
}
|
889
914
|
return n;
|
890
915
|
};
|
@@ -913,22 +938,22 @@ W.prototype.renderInlineAsText = function(u, e, t) {
|
|
913
938
|
W.prototype.render = function(u, e, t) {
|
914
939
|
let n = "";
|
915
940
|
const r = this.rules;
|
916
|
-
for (let c = 0,
|
917
|
-
const
|
918
|
-
|
941
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
942
|
+
const i = u[c].type;
|
943
|
+
i === "inline" ? n += this.renderInline(u[c].children, e, t) : typeof r[i] < "u" ? n += r[i](u, c, e, t, this) : n += this.renderToken(u, c, e, t);
|
919
944
|
}
|
920
945
|
return n;
|
921
946
|
};
|
922
|
-
function
|
947
|
+
function w() {
|
923
948
|
this.__rules__ = [], this.__cache__ = null;
|
924
949
|
}
|
925
|
-
|
950
|
+
w.prototype.__find__ = function(u) {
|
926
951
|
for (let e = 0; e < this.__rules__.length; e++)
|
927
952
|
if (this.__rules__[e].name === u)
|
928
953
|
return e;
|
929
954
|
return -1;
|
930
955
|
};
|
931
|
-
|
956
|
+
w.prototype.__compile__ = function() {
|
932
957
|
const u = this, e = [""];
|
933
958
|
u.__rules__.forEach(function(t) {
|
934
959
|
t.enabled && t.alt.forEach(function(n) {
|
@@ -940,13 +965,13 @@ v.prototype.__compile__ = function() {
|
|
940
965
|
});
|
941
966
|
});
|
942
967
|
};
|
943
|
-
|
968
|
+
w.prototype.at = function(u, e, t) {
|
944
969
|
const n = this.__find__(u), r = t || {};
|
945
970
|
if (n === -1)
|
946
971
|
throw new Error("Parser rule not found: " + u);
|
947
972
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
948
973
|
};
|
949
|
-
|
974
|
+
w.prototype.before = function(u, e, t, n) {
|
950
975
|
const r = this.__find__(u), c = n || {};
|
951
976
|
if (r === -1)
|
952
977
|
throw new Error("Parser rule not found: " + u);
|
@@ -957,7 +982,7 @@ v.prototype.before = function(u, e, t, n) {
|
|
957
982
|
alt: c.alt || []
|
958
983
|
}), this.__cache__ = null;
|
959
984
|
};
|
960
|
-
|
985
|
+
w.prototype.after = function(u, e, t, n) {
|
961
986
|
const r = this.__find__(u), c = n || {};
|
962
987
|
if (r === -1)
|
963
988
|
throw new Error("Parser rule not found: " + u);
|
@@ -968,7 +993,7 @@ v.prototype.after = function(u, e, t, n) {
|
|
968
993
|
alt: c.alt || []
|
969
994
|
}), this.__cache__ = null;
|
970
995
|
};
|
971
|
-
|
996
|
+
w.prototype.push = function(u, e, t) {
|
972
997
|
const n = t || {};
|
973
998
|
this.__rules__.push({
|
974
999
|
name: u,
|
@@ -977,7 +1002,7 @@ v.prototype.push = function(u, e, t) {
|
|
977
1002
|
alt: n.alt || []
|
978
1003
|
}), this.__cache__ = null;
|
979
1004
|
};
|
980
|
-
|
1005
|
+
w.prototype.enable = function(u, e) {
|
981
1006
|
Array.isArray(u) || (u = [u]);
|
982
1007
|
const t = [];
|
983
1008
|
return u.forEach(function(n) {
|
@@ -990,12 +1015,12 @@ v.prototype.enable = function(u, e) {
|
|
990
1015
|
this.__rules__[r].enabled = !0, t.push(n);
|
991
1016
|
}, this), this.__cache__ = null, t;
|
992
1017
|
};
|
993
|
-
|
1018
|
+
w.prototype.enableOnly = function(u, e) {
|
994
1019
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
995
1020
|
t.enabled = !1;
|
996
1021
|
}), this.enable(u, e);
|
997
1022
|
};
|
998
|
-
|
1023
|
+
w.prototype.disable = function(u, e) {
|
999
1024
|
Array.isArray(u) || (u = [u]);
|
1000
1025
|
const t = [];
|
1001
1026
|
return u.forEach(function(n) {
|
@@ -1008,13 +1033,13 @@ v.prototype.disable = function(u, e) {
|
|
1008
1033
|
this.__rules__[r].enabled = !1, t.push(n);
|
1009
1034
|
}, this), this.__cache__ = null, t;
|
1010
1035
|
};
|
1011
|
-
|
1036
|
+
w.prototype.getRules = function(u) {
|
1012
1037
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
1013
1038
|
};
|
1014
|
-
function
|
1039
|
+
function B(u, e, t) {
|
1015
1040
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
1016
1041
|
}
|
1017
|
-
|
1042
|
+
B.prototype.attrIndex = function(e) {
|
1018
1043
|
if (!this.attrs)
|
1019
1044
|
return -1;
|
1020
1045
|
const t = this.attrs;
|
@@ -1023,69 +1048,69 @@ I.prototype.attrIndex = function(e) {
|
|
1023
1048
|
return n;
|
1024
1049
|
return -1;
|
1025
1050
|
};
|
1026
|
-
|
1051
|
+
B.prototype.attrPush = function(e) {
|
1027
1052
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
1028
1053
|
};
|
1029
|
-
|
1054
|
+
B.prototype.attrSet = function(e, t) {
|
1030
1055
|
const n = this.attrIndex(e), r = [e, t];
|
1031
1056
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
1032
1057
|
};
|
1033
|
-
|
1058
|
+
B.prototype.attrGet = function(e) {
|
1034
1059
|
const t = this.attrIndex(e);
|
1035
1060
|
let n = null;
|
1036
1061
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
1037
1062
|
};
|
1038
|
-
|
1063
|
+
B.prototype.attrJoin = function(e, t) {
|
1039
1064
|
const n = this.attrIndex(e);
|
1040
1065
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
1041
1066
|
};
|
1042
|
-
function
|
1067
|
+
function s0(u, e, t) {
|
1043
1068
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
1044
1069
|
}
|
1045
|
-
|
1046
|
-
const
|
1047
|
-
function
|
1070
|
+
s0.prototype.Token = B;
|
1071
|
+
const Se = /\r\n?|\n/g, Te = /\0/g;
|
1072
|
+
function Ie(u) {
|
1048
1073
|
let e;
|
1049
|
-
e = u.src.replace(
|
1050
|
-
`), e = e.replace(
|
1074
|
+
e = u.src.replace(Se, `
|
1075
|
+
`), e = e.replace(Te, "�"), u.src = e;
|
1051
1076
|
}
|
1052
|
-
function
|
1077
|
+
function Be(u) {
|
1053
1078
|
let e;
|
1054
1079
|
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);
|
1055
1080
|
}
|
1056
|
-
function
|
1081
|
+
function ze(u) {
|
1057
1082
|
const e = u.tokens;
|
1058
1083
|
for (let t = 0, n = e.length; t < n; t++) {
|
1059
1084
|
const r = e[t];
|
1060
1085
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
1061
1086
|
}
|
1062
1087
|
}
|
1063
|
-
function
|
1088
|
+
function Me(u) {
|
1064
1089
|
return /^<a[>\s]/i.test(u);
|
1065
1090
|
}
|
1066
|
-
function
|
1091
|
+
function Re(u) {
|
1067
1092
|
return /^<\/a\s*>/i.test(u);
|
1068
1093
|
}
|
1069
|
-
function
|
1094
|
+
function qe(u) {
|
1070
1095
|
const e = u.tokens;
|
1071
1096
|
if (u.md.options.linkify)
|
1072
1097
|
for (let t = 0, n = e.length; t < n; t++) {
|
1073
1098
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
1074
1099
|
continue;
|
1075
1100
|
let r = e[t].children, c = 0;
|
1076
|
-
for (let
|
1077
|
-
const
|
1078
|
-
if (
|
1079
|
-
for (
|
1080
|
-
|
1101
|
+
for (let o = r.length - 1; o >= 0; o--) {
|
1102
|
+
const i = r[o];
|
1103
|
+
if (i.type === "link_close") {
|
1104
|
+
for (o--; r[o].level !== i.level && r[o].type !== "link_open"; )
|
1105
|
+
o--;
|
1081
1106
|
continue;
|
1082
1107
|
}
|
1083
|
-
if (
|
1084
|
-
const a =
|
1108
|
+
if (i.type === "html_inline" && (Me(i.content) && c > 0 && c--, Re(i.content) && c++), !(c > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
1109
|
+
const a = i.content;
|
1085
1110
|
let s = u.md.linkify.match(a);
|
1086
1111
|
const l = [];
|
1087
|
-
let d =
|
1088
|
-
s.length > 0 && s[0].index === 0 &&
|
1112
|
+
let d = i.level, b = 0;
|
1113
|
+
s.length > 0 && s[0].index === 0 && o > 0 && r[o - 1].type === "text_special" && (s = s.slice(1));
|
1089
1114
|
for (let h = 0; h < s.length; h++) {
|
1090
1115
|
const f = s[h].url, g = u.md.normalizeLink(f);
|
1091
1116
|
if (!u.md.validateLink(g))
|
@@ -1108,57 +1133,57 @@ function Se(u) {
|
|
1108
1133
|
const h = new u.Token("text", "", 0);
|
1109
1134
|
h.content = a.slice(b), h.level = d, l.push(h);
|
1110
1135
|
}
|
1111
|
-
e[t].children = r =
|
1136
|
+
e[t].children = r = o0(r, o, l);
|
1112
1137
|
}
|
1113
1138
|
}
|
1114
1139
|
}
|
1115
1140
|
}
|
1116
|
-
const
|
1141
|
+
const l0 = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Le = /\((c|tm|r)\)/i, Pe = /\((c|tm|r)\)/ig, $e = {
|
1117
1142
|
c: "©",
|
1118
1143
|
r: "®",
|
1119
1144
|
tm: "™"
|
1120
1145
|
};
|
1121
|
-
function
|
1122
|
-
return
|
1146
|
+
function Oe(u, e) {
|
1147
|
+
return $e[e.toLowerCase()];
|
1123
1148
|
}
|
1124
|
-
function
|
1149
|
+
function Ne(u) {
|
1125
1150
|
let e = 0;
|
1126
1151
|
for (let t = u.length - 1; t >= 0; t--) {
|
1127
1152
|
const n = u[t];
|
1128
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
1153
|
+
n.type === "text" && !e && (n.content = n.content.replace(Pe, Oe)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
1129
1154
|
}
|
1130
1155
|
}
|
1131
|
-
function
|
1156
|
+
function je(u) {
|
1132
1157
|
let e = 0;
|
1133
1158
|
for (let t = u.length - 1; t >= 0; t--) {
|
1134
1159
|
const n = u[t];
|
1135
|
-
n.type === "text" && !e &&
|
1160
|
+
n.type === "text" && !e && l0.test(n.content) && (n.content = n.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–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
1136
1161
|
}
|
1137
1162
|
}
|
1138
|
-
function
|
1163
|
+
function Ue(u) {
|
1139
1164
|
let e;
|
1140
1165
|
if (u.md.options.typographer)
|
1141
1166
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
1142
|
-
u.tokens[e].type === "inline" && (
|
1167
|
+
u.tokens[e].type === "inline" && (Le.test(u.tokens[e].content) && Ne(u.tokens[e].children), l0.test(u.tokens[e].content) && je(u.tokens[e].children));
|
1143
1168
|
}
|
1144
|
-
const
|
1145
|
-
function
|
1169
|
+
const He = /['"]/, Hu = /['"]/g, Zu = "’";
|
1170
|
+
function ru(u, e, t) {
|
1146
1171
|
return u.slice(0, e) + t + u.slice(e + 1);
|
1147
1172
|
}
|
1148
|
-
function
|
1173
|
+
function Ze(u, e) {
|
1149
1174
|
let t;
|
1150
1175
|
const n = [];
|
1151
1176
|
for (let r = 0; r < u.length; r++) {
|
1152
|
-
const c = u[r],
|
1153
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
1177
|
+
const c = u[r], o = u[r].level;
|
1178
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= o); t--)
|
1154
1179
|
;
|
1155
1180
|
if (n.length = t + 1, c.type !== "text")
|
1156
1181
|
continue;
|
1157
|
-
let
|
1182
|
+
let i = c.content, a = 0, s = i.length;
|
1158
1183
|
u:
|
1159
1184
|
for (; a < s; ) {
|
1160
|
-
|
1161
|
-
const l =
|
1185
|
+
Hu.lastIndex = a;
|
1186
|
+
const l = Hu.exec(i);
|
1162
1187
|
if (!l)
|
1163
1188
|
break;
|
1164
1189
|
let d = !0, b = !0;
|
@@ -1166,7 +1191,7 @@ function Pe(u, e) {
|
|
1166
1191
|
const h = l[0] === "'";
|
1167
1192
|
let f = 32;
|
1168
1193
|
if (l.index - 1 >= 0)
|
1169
|
-
f =
|
1194
|
+
f = i.charCodeAt(l.index - 1);
|
1170
1195
|
else
|
1171
1196
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
1172
1197
|
if (u[t].content) {
|
@@ -1175,31 +1200,31 @@ function Pe(u, e) {
|
|
1175
1200
|
}
|
1176
1201
|
let g = 32;
|
1177
1202
|
if (a < s)
|
1178
|
-
g =
|
1203
|
+
g = i.charCodeAt(a);
|
1179
1204
|
else
|
1180
1205
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
1181
1206
|
if (u[t].content) {
|
1182
1207
|
g = u[t].content.charCodeAt(0);
|
1183
1208
|
break;
|
1184
1209
|
}
|
1185
|
-
const k =
|
1210
|
+
const k = X(f) || K(String.fromCharCode(f)), D = X(g) || K(String.fromCharCode(g)), p = Q(f), _ = Q(g);
|
1186
1211
|
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) {
|
1187
|
-
h && (c.content =
|
1212
|
+
h && (c.content = ru(c.content, l.index, Zu));
|
1188
1213
|
continue;
|
1189
1214
|
}
|
1190
1215
|
if (b)
|
1191
1216
|
for (t = n.length - 1; t >= 0; t--) {
|
1192
1217
|
let x = n[t];
|
1193
|
-
if (n[t].level <
|
1218
|
+
if (n[t].level < o)
|
1194
1219
|
break;
|
1195
|
-
if (x.single === h && n[t].level ===
|
1220
|
+
if (x.single === h && n[t].level === o) {
|
1196
1221
|
x = n[t];
|
1197
1222
|
let m, C;
|
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 =
|
1223
|
+
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(
|
1199
1224
|
u[x.token].content,
|
1200
1225
|
x.pos,
|
1201
1226
|
m
|
1202
|
-
), a += C.length - 1, x.token === r && (a += m.length - 1),
|
1227
|
+
), a += C.length - 1, x.token === r && (a += m.length - 1), i = c.content, s = i.length, n.length = t;
|
1203
1228
|
continue u;
|
1204
1229
|
}
|
1205
1230
|
}
|
@@ -1207,80 +1232,80 @@ function Pe(u, e) {
|
|
1207
1232
|
token: r,
|
1208
1233
|
pos: l.index,
|
1209
1234
|
single: h,
|
1210
|
-
level:
|
1211
|
-
}) : b && h && (c.content =
|
1235
|
+
level: o
|
1236
|
+
}) : b && h && (c.content = ru(c.content, l.index, Zu));
|
1212
1237
|
}
|
1213
1238
|
}
|
1214
1239
|
}
|
1215
|
-
function
|
1240
|
+
function Ve(u) {
|
1216
1241
|
if (u.md.options.typographer)
|
1217
1242
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
1218
|
-
u.tokens[e].type !== "inline" || !
|
1243
|
+
u.tokens[e].type !== "inline" || !He.test(u.tokens[e].content) || Ze(u.tokens[e].children, u);
|
1219
1244
|
}
|
1220
|
-
function
|
1245
|
+
function Ge(u) {
|
1221
1246
|
let e, t;
|
1222
1247
|
const n = u.tokens, r = n.length;
|
1223
1248
|
for (let c = 0; c < r; c++) {
|
1224
1249
|
if (n[c].type !== "inline")
|
1225
1250
|
continue;
|
1226
|
-
const
|
1227
|
-
for (e = 0; e <
|
1228
|
-
|
1229
|
-
for (e = t = 0; e <
|
1230
|
-
|
1231
|
-
e !== t && (
|
1251
|
+
const o = n[c].children, i = o.length;
|
1252
|
+
for (e = 0; e < i; e++)
|
1253
|
+
o[e].type === "text_special" && (o[e].type = "text");
|
1254
|
+
for (e = t = 0; e < i; e++)
|
1255
|
+
o[e].type === "text" && e + 1 < i && o[e + 1].type === "text" ? o[e + 1].content = o[e].content + o[e + 1].content : (e !== t && (o[t] = o[e]), t++);
|
1256
|
+
e !== t && (o.length = t);
|
1232
1257
|
}
|
1233
1258
|
}
|
1234
1259
|
const xu = [
|
1235
|
-
["normalize",
|
1236
|
-
["block",
|
1237
|
-
["inline",
|
1238
|
-
["linkify",
|
1239
|
-
["replacements",
|
1240
|
-
["smartquotes",
|
1260
|
+
["normalize", Ie],
|
1261
|
+
["block", Be],
|
1262
|
+
["inline", ze],
|
1263
|
+
["linkify", qe],
|
1264
|
+
["replacements", Ue],
|
1265
|
+
["smartquotes", Ve],
|
1241
1266
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
1242
1267
|
// and joins them with the rest of the text
|
1243
|
-
["text_join",
|
1268
|
+
["text_join", Ge]
|
1244
1269
|
];
|
1245
|
-
function
|
1246
|
-
this.ruler = new
|
1270
|
+
function Iu() {
|
1271
|
+
this.ruler = new w();
|
1247
1272
|
for (let u = 0; u < xu.length; u++)
|
1248
1273
|
this.ruler.push(xu[u][0], xu[u][1]);
|
1249
1274
|
}
|
1250
|
-
|
1275
|
+
Iu.prototype.process = function(u) {
|
1251
1276
|
const e = this.ruler.getRules("");
|
1252
1277
|
for (let t = 0, n = e.length; t < n; t++)
|
1253
1278
|
e[t](u);
|
1254
1279
|
};
|
1255
|
-
|
1256
|
-
function
|
1280
|
+
Iu.prototype.State = s0;
|
1281
|
+
function q(u, e, t, n) {
|
1257
1282
|
this.src = u, this.md = e, this.env = t, this.tokens = n, 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
1283
|
const r = this.src;
|
1259
|
-
for (let c = 0,
|
1260
|
-
const d = r.charCodeAt(
|
1284
|
+
for (let c = 0, o = 0, i = 0, a = 0, s = r.length, l = !1; o < s; o++) {
|
1285
|
+
const d = r.charCodeAt(o);
|
1261
1286
|
if (!l)
|
1262
1287
|
if (E(d)) {
|
1263
|
-
|
1288
|
+
i++, d === 9 ? a += 4 - a % 4 : a++;
|
1264
1289
|
continue;
|
1265
1290
|
} else
|
1266
1291
|
l = !0;
|
1267
|
-
(d === 10 ||
|
1292
|
+
(d === 10 || o === s - 1) && (d !== 10 && o++, this.bMarks.push(c), this.eMarks.push(o), this.tShift.push(i), this.sCount.push(a), this.bsCount.push(0), l = !1, i = 0, a = 0, c = o + 1);
|
1268
1293
|
}
|
1269
1294
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
1270
1295
|
}
|
1271
|
-
|
1272
|
-
const n = new
|
1296
|
+
q.prototype.push = function(u, e, t) {
|
1297
|
+
const n = new B(u, e, t);
|
1273
1298
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
1274
1299
|
};
|
1275
|
-
|
1300
|
+
q.prototype.isEmpty = function(e) {
|
1276
1301
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
1277
1302
|
};
|
1278
|
-
|
1303
|
+
q.prototype.skipEmptyLines = function(e) {
|
1279
1304
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
1280
1305
|
;
|
1281
1306
|
return e;
|
1282
1307
|
};
|
1283
|
-
|
1308
|
+
q.prototype.skipSpaces = function(e) {
|
1284
1309
|
for (let t = this.src.length; e < t; e++) {
|
1285
1310
|
const n = this.src.charCodeAt(e);
|
1286
1311
|
if (!E(n))
|
@@ -1288,7 +1313,7 @@ R.prototype.skipSpaces = function(e) {
|
|
1288
1313
|
}
|
1289
1314
|
return e;
|
1290
1315
|
};
|
1291
|
-
|
1316
|
+
q.prototype.skipSpacesBack = function(e, t) {
|
1292
1317
|
if (e <= t)
|
1293
1318
|
return e;
|
1294
1319
|
for (; e > t; )
|
@@ -1296,12 +1321,12 @@ R.prototype.skipSpacesBack = function(e, t) {
|
|
1296
1321
|
return e + 1;
|
1297
1322
|
return e;
|
1298
1323
|
};
|
1299
|
-
|
1324
|
+
q.prototype.skipChars = function(e, t) {
|
1300
1325
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
1301
1326
|
;
|
1302
1327
|
return e;
|
1303
1328
|
};
|
1304
|
-
|
1329
|
+
q.prototype.skipCharsBack = function(e, t, n) {
|
1305
1330
|
if (e <= n)
|
1306
1331
|
return e;
|
1307
1332
|
for (; e > n; )
|
@@ -1309,42 +1334,42 @@ R.prototype.skipCharsBack = function(e, t, n) {
|
|
1309
1334
|
return e + 1;
|
1310
1335
|
return e;
|
1311
1336
|
};
|
1312
|
-
|
1337
|
+
q.prototype.getLines = function(e, t, n, r) {
|
1313
1338
|
if (e >= t)
|
1314
1339
|
return "";
|
1315
1340
|
const c = new Array(t - e);
|
1316
|
-
for (let
|
1341
|
+
for (let o = 0, i = e; i < t; i++, o++) {
|
1317
1342
|
let a = 0;
|
1318
|
-
const s = this.bMarks[
|
1343
|
+
const s = this.bMarks[i];
|
1319
1344
|
let l = s, d;
|
1320
|
-
for (
|
1345
|
+
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; l < d && a < n; ) {
|
1321
1346
|
const b = this.src.charCodeAt(l);
|
1322
1347
|
if (E(b))
|
1323
|
-
b === 9 ? a += 4 - (a + this.bsCount[
|
1324
|
-
else if (l - s < this.tShift[
|
1348
|
+
b === 9 ? a += 4 - (a + this.bsCount[i]) % 4 : a++;
|
1349
|
+
else if (l - s < this.tShift[i])
|
1325
1350
|
a++;
|
1326
1351
|
else
|
1327
1352
|
break;
|
1328
1353
|
l++;
|
1329
1354
|
}
|
1330
|
-
a > n ? c[
|
1355
|
+
a > n ? c[o] = new Array(a - n + 1).join(" ") + this.src.slice(l, d) : c[o] = this.src.slice(l, d);
|
1331
1356
|
}
|
1332
1357
|
return c.join("");
|
1333
1358
|
};
|
1334
|
-
|
1335
|
-
const
|
1359
|
+
q.prototype.Token = B;
|
1360
|
+
const We = 65536;
|
1336
1361
|
function _u(u, e) {
|
1337
1362
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
1338
1363
|
return u.src.slice(t, n);
|
1339
1364
|
}
|
1340
|
-
function
|
1365
|
+
function Vu(u) {
|
1341
1366
|
const e = [], t = u.length;
|
1342
|
-
let n = 0, r = u.charCodeAt(n), c = !1,
|
1367
|
+
let n = 0, r = u.charCodeAt(n), c = !1, o = 0, i = "";
|
1343
1368
|
for (; n < t; )
|
1344
|
-
r === 124 && (c ? (
|
1345
|
-
return e.push(
|
1369
|
+
r === 124 && (c ? (i += u.substring(o, n - 1), o = n) : (e.push(i + u.substring(o, n)), i = "", o = n + 1)), c = r === 92, n++, r = u.charCodeAt(n);
|
1370
|
+
return e.push(i + u.substring(o)), e;
|
1346
1371
|
}
|
1347
|
-
function
|
1372
|
+
function Je(u, e, t, n) {
|
1348
1373
|
if (e + 2 > t)
|
1349
1374
|
return !1;
|
1350
1375
|
let r = e + 1;
|
@@ -1353,11 +1378,11 @@ function je(u, e, t, n) {
|
|
1353
1378
|
let c = u.bMarks[r] + u.tShift[r];
|
1354
1379
|
if (c >= u.eMarks[r])
|
1355
1380
|
return !1;
|
1356
|
-
const i = u.src.charCodeAt(c++);
|
1357
|
-
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[r])
|
1358
|
-
return !1;
|
1359
1381
|
const o = u.src.charCodeAt(c++);
|
1360
|
-
if (o !== 124 && o !== 45 && o !== 58
|
1382
|
+
if (o !== 124 && o !== 45 && o !== 58 || c >= u.eMarks[r])
|
1383
|
+
return !1;
|
1384
|
+
const i = u.src.charCodeAt(c++);
|
1385
|
+
if (i !== 124 && i !== 45 && i !== 58 && !E(i) || o === 45 && E(i))
|
1361
1386
|
return !1;
|
1362
1387
|
for (; c < u.eMarks[r]; ) {
|
1363
1388
|
const x = u.src.charCodeAt(c);
|
@@ -1380,7 +1405,7 @@ function je(u, e, t, n) {
|
|
1380
1405
|
}
|
1381
1406
|
if (a = _u(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
1382
1407
|
return !1;
|
1383
|
-
s =
|
1408
|
+
s = Vu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
1384
1409
|
const d = s.length;
|
1385
1410
|
if (d === 0 || d !== l.length)
|
1386
1411
|
return !1;
|
@@ -1409,7 +1434,7 @@ function je(u, e, t, n) {
|
|
1409
1434
|
x = !0;
|
1410
1435
|
break;
|
1411
1436
|
}
|
1412
|
-
if (x || (a = _u(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s =
|
1437
|
+
if (x || (a = _u(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Vu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), _ += d - s.length, _ > We))
|
1413
1438
|
break;
|
1414
1439
|
if (r === e + 2) {
|
1415
1440
|
const C = u.push("tbody_open", "tbody", 1);
|
@@ -1420,14 +1445,14 @@ function je(u, e, t, n) {
|
|
1420
1445
|
for (let C = 0; C < d; C++) {
|
1421
1446
|
const F = u.push("td_open", "td", 1);
|
1422
1447
|
l[C] && (F.attrs = [["style", "text-align:" + l[C]]]);
|
1423
|
-
const
|
1424
|
-
|
1448
|
+
const I = u.push("inline", "", 0);
|
1449
|
+
I.content = s[C] ? s[C].trim() : "", I.children = [], u.push("td_close", "td", -1);
|
1425
1450
|
}
|
1426
1451
|
u.push("tr_close", "tr", -1);
|
1427
1452
|
}
|
1428
1453
|
return p && (u.push("tbody_close", "tbody", -1), p[1] = r), u.push("table_close", "table", -1), g[1] = r, u.parentType = b, u.line = r, !0;
|
1429
1454
|
}
|
1430
|
-
function
|
1455
|
+
function Qe(u, e, t) {
|
1431
1456
|
if (u.sCount[e] - u.blkIndent < 4)
|
1432
1457
|
return !1;
|
1433
1458
|
let n = e + 1, r = n;
|
@@ -1447,26 +1472,26 @@ function Ue(u, e, t) {
|
|
1447
1472
|
return c.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
1448
1473
|
`, c.map = [e, u.line], !0;
|
1449
1474
|
}
|
1450
|
-
function
|
1475
|
+
function Ke(u, e, t, n) {
|
1451
1476
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1452
1477
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > c)
|
1453
1478
|
return !1;
|
1454
|
-
const
|
1455
|
-
if (
|
1479
|
+
const o = u.src.charCodeAt(r);
|
1480
|
+
if (o !== 126 && o !== 96)
|
1456
1481
|
return !1;
|
1457
|
-
let
|
1458
|
-
r = u.skipChars(r,
|
1459
|
-
let a = r -
|
1482
|
+
let i = r;
|
1483
|
+
r = u.skipChars(r, o);
|
1484
|
+
let a = r - i;
|
1460
1485
|
if (a < 3)
|
1461
1486
|
return !1;
|
1462
|
-
const s = u.src.slice(
|
1463
|
-
if (
|
1487
|
+
const s = u.src.slice(i, r), l = u.src.slice(r, c);
|
1488
|
+
if (o === 96 && l.indexOf(String.fromCharCode(o)) >= 0)
|
1464
1489
|
return !1;
|
1465
1490
|
if (n)
|
1466
1491
|
return !0;
|
1467
1492
|
let d = e, b = !1;
|
1468
|
-
for (; d++, !(d >= t || (r =
|
1469
|
-
if (u.src.charCodeAt(r) ===
|
1493
|
+
for (; d++, !(d >= t || (r = i = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], r < c && u.sCount[d] < u.blkIndent)); )
|
1494
|
+
if (u.src.charCodeAt(r) === o && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, o), !(r - i < a) && (r = u.skipSpaces(r), !(r < c)))) {
|
1470
1495
|
b = !0;
|
1471
1496
|
break;
|
1472
1497
|
}
|
@@ -1474,14 +1499,14 @@ function He(u, e, t, n) {
|
|
1474
1499
|
const h = u.push("fence", "code", 0);
|
1475
1500
|
return h.info = l, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
1476
1501
|
}
|
1477
|
-
function
|
1502
|
+
function Xe(u, e, t, n) {
|
1478
1503
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1479
|
-
const
|
1504
|
+
const o = u.lineMax;
|
1480
1505
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
1481
1506
|
return !1;
|
1482
1507
|
if (n)
|
1483
1508
|
return !0;
|
1484
|
-
const
|
1509
|
+
const i = [], a = [], s = [], l = [], d = u.md.block.ruler.getRules("blockquote"), b = u.parentType;
|
1485
1510
|
u.parentType = "blockquote";
|
1486
1511
|
let h = !1, f;
|
1487
1512
|
for (f = e; f < t; f++) {
|
@@ -1491,16 +1516,16 @@ function Ze(u, e, t, n) {
|
|
1491
1516
|
if (u.src.charCodeAt(r++) === 62 && !_) {
|
1492
1517
|
let m = u.sCount[f] + 1, C, F;
|
1493
1518
|
u.src.charCodeAt(r) === 32 ? (r++, m++, F = !1, C = !0) : u.src.charCodeAt(r) === 9 ? (C = !0, (u.bsCount[f] + m) % 4 === 3 ? (r++, m++, F = !1) : F = !0) : C = !1;
|
1494
|
-
let
|
1495
|
-
for (
|
1519
|
+
let I = m;
|
1520
|
+
for (i.push(u.bMarks[f]), u.bMarks[f] = r; r < c; ) {
|
1496
1521
|
const L = u.src.charCodeAt(r);
|
1497
1522
|
if (E(L))
|
1498
|
-
L === 9 ?
|
1523
|
+
L === 9 ? I += 4 - (I + u.bsCount[f] + (F ? 1 : 0)) % 4 : I++;
|
1499
1524
|
else
|
1500
1525
|
break;
|
1501
1526
|
r++;
|
1502
1527
|
}
|
1503
|
-
h = r >= c, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (C ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] =
|
1528
|
+
h = r >= c, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (C ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = I - m, l.push(u.tShift[f]), u.tShift[f] = r - u.bMarks[f];
|
1504
1529
|
continue;
|
1505
1530
|
}
|
1506
1531
|
if (h)
|
@@ -1512,10 +1537,10 @@ function Ze(u, e, t, n) {
|
|
1512
1537
|
break;
|
1513
1538
|
}
|
1514
1539
|
if (x) {
|
1515
|
-
u.lineMax = f, u.blkIndent !== 0 && (
|
1540
|
+
u.lineMax = f, u.blkIndent !== 0 && (i.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] -= u.blkIndent);
|
1516
1541
|
break;
|
1517
1542
|
}
|
1518
|
-
|
1543
|
+
i.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] = -1;
|
1519
1544
|
}
|
1520
1545
|
const g = u.blkIndent;
|
1521
1546
|
u.blkIndent = 0;
|
@@ -1524,35 +1549,35 @@ function Ze(u, e, t, n) {
|
|
1524
1549
|
const D = [e, 0];
|
1525
1550
|
k.map = D, u.md.block.tokenize(u, e, f);
|
1526
1551
|
const p = u.push("blockquote_close", "blockquote", -1);
|
1527
|
-
p.markup = ">", u.lineMax =
|
1552
|
+
p.markup = ">", u.lineMax = o, u.parentType = b, D[1] = u.line;
|
1528
1553
|
for (let _ = 0; _ < l.length; _++)
|
1529
|
-
u.bMarks[_ + e] =
|
1554
|
+
u.bMarks[_ + e] = i[_], u.tShift[_ + e] = l[_], u.sCount[_ + e] = s[_], u.bsCount[_ + e] = a[_];
|
1530
1555
|
return u.blkIndent = g, !0;
|
1531
1556
|
}
|
1532
|
-
function
|
1557
|
+
function Ye(u, e, t, n) {
|
1533
1558
|
const r = u.eMarks[e];
|
1534
1559
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1535
1560
|
return !1;
|
1536
1561
|
let c = u.bMarks[e] + u.tShift[e];
|
1537
|
-
const
|
1538
|
-
if (
|
1562
|
+
const o = u.src.charCodeAt(c++);
|
1563
|
+
if (o !== 42 && o !== 45 && o !== 95)
|
1539
1564
|
return !1;
|
1540
|
-
let
|
1565
|
+
let i = 1;
|
1541
1566
|
for (; c < r; ) {
|
1542
1567
|
const s = u.src.charCodeAt(c++);
|
1543
|
-
if (s !==
|
1568
|
+
if (s !== o && !E(s))
|
1544
1569
|
return !1;
|
1545
|
-
s ===
|
1570
|
+
s === o && i++;
|
1546
1571
|
}
|
1547
|
-
if (
|
1572
|
+
if (i < 3)
|
1548
1573
|
return !1;
|
1549
1574
|
if (n)
|
1550
1575
|
return !0;
|
1551
1576
|
u.line = e + 1;
|
1552
1577
|
const a = u.push("hr", "hr", 0);
|
1553
|
-
return a.map = [e, u.line], a.markup = Array(
|
1578
|
+
return a.map = [e, u.line], a.markup = Array(i + 1).join(String.fromCharCode(o)), !0;
|
1554
1579
|
}
|
1555
|
-
function
|
1580
|
+
function Gu(u, e) {
|
1556
1581
|
const t = u.eMarks[e];
|
1557
1582
|
let n = u.bMarks[e] + u.tShift[e];
|
1558
1583
|
const r = u.src.charCodeAt(n++);
|
@@ -1565,7 +1590,7 @@ function Hu(u, e) {
|
|
1565
1590
|
}
|
1566
1591
|
return n;
|
1567
1592
|
}
|
1568
|
-
function
|
1593
|
+
function Wu(u, e) {
|
1569
1594
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
1570
1595
|
let r = t;
|
1571
1596
|
if (r + 1 >= n)
|
@@ -1587,22 +1612,22 @@ function Zu(u, e) {
|
|
1587
1612
|
}
|
1588
1613
|
return r < n && (c = u.src.charCodeAt(r), !E(c)) ? -1 : r;
|
1589
1614
|
}
|
1590
|
-
function
|
1615
|
+
function ut(u, e) {
|
1591
1616
|
const t = u.level + 2;
|
1592
1617
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
1593
1618
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
1594
1619
|
}
|
1595
|
-
function
|
1596
|
-
let r, c,
|
1620
|
+
function et(u, e, t, n) {
|
1621
|
+
let r, c, o, i, a = e, s = !0;
|
1597
1622
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
1598
1623
|
return !1;
|
1599
1624
|
let l = !1;
|
1600
1625
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
1601
1626
|
let d, b, h;
|
1602
|
-
if ((h =
|
1603
|
-
if (d = !0,
|
1627
|
+
if ((h = Wu(u, a)) >= 0) {
|
1628
|
+
if (d = !0, o = u.bMarks[a] + u.tShift[a], b = Number(u.src.slice(o, h - 1)), l && b !== 1)
|
1604
1629
|
return !1;
|
1605
|
-
} else if ((h =
|
1630
|
+
} else if ((h = Gu(u, a)) >= 0)
|
1606
1631
|
d = !1;
|
1607
1632
|
else
|
1608
1633
|
return !1;
|
@@ -1611,9 +1636,9 @@ function We(u, e, t, n) {
|
|
1611
1636
|
if (n)
|
1612
1637
|
return !0;
|
1613
1638
|
const f = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
1614
|
-
d ? (
|
1639
|
+
d ? (i = u.push("ordered_list_open", "ol", 1), b !== 1 && (i.attrs = [["start", b]])) : i = u.push("bullet_list_open", "ul", 1);
|
1615
1640
|
const k = [a, 0];
|
1616
|
-
|
1641
|
+
i.map = k, i.markup = String.fromCharCode(f);
|
1617
1642
|
let D = !1;
|
1618
1643
|
const p = u.md.block.ruler.getRules("list"), _ = u.parentType;
|
1619
1644
|
for (u.parentType = "list"; a < t; ) {
|
@@ -1633,43 +1658,43 @@ function We(u, e, t, n) {
|
|
1633
1658
|
const C = c;
|
1634
1659
|
let F;
|
1635
1660
|
C >= r ? F = 1 : F = m - x, F > 4 && (F = 1);
|
1636
|
-
const
|
1637
|
-
|
1661
|
+
const I = x + F;
|
1662
|
+
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(f);
|
1638
1663
|
const L = [a, 0];
|
1639
|
-
|
1640
|
-
const J = u.tight, bu = u.tShift[a],
|
1641
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
1664
|
+
i.map = L, d && (i.info = u.src.slice(o, h - 1));
|
1665
|
+
const J = u.tight, bu = u.tShift[a], F0 = u.sCount[a], v0 = u.listIndent;
|
1666
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = I, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= r && 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 = v0, u.tShift[a] = bu, u.sCount[a] = F0, u.tight = J, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(f), a = u.line, L[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
1642
1667
|
break;
|
1643
|
-
let
|
1644
|
-
for (let U = 0,
|
1668
|
+
let Mu = !1;
|
1669
|
+
for (let U = 0, w0 = p.length; U < w0; U++)
|
1645
1670
|
if (p[U](u, a, t, !0)) {
|
1646
|
-
|
1671
|
+
Mu = !0;
|
1647
1672
|
break;
|
1648
1673
|
}
|
1649
|
-
if (
|
1674
|
+
if (Mu)
|
1650
1675
|
break;
|
1651
1676
|
if (d) {
|
1652
|
-
if (h =
|
1677
|
+
if (h = Wu(u, a), h < 0)
|
1653
1678
|
break;
|
1654
|
-
|
1655
|
-
} else if (h =
|
1679
|
+
o = u.bMarks[a] + u.tShift[a];
|
1680
|
+
} else if (h = Gu(u, a), h < 0)
|
1656
1681
|
break;
|
1657
1682
|
if (f !== u.src.charCodeAt(h - 1))
|
1658
1683
|
break;
|
1659
1684
|
}
|
1660
|
-
return d ?
|
1685
|
+
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), k[1] = a, u.line = a, u.parentType = _, s && ut(u, g), !0;
|
1661
1686
|
}
|
1662
|
-
function
|
1663
|
-
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e],
|
1687
|
+
function tt(u, e, t, n) {
|
1688
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], o = e + 1;
|
1664
1689
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
1665
1690
|
return !1;
|
1666
|
-
function
|
1691
|
+
function i(p) {
|
1667
1692
|
const _ = u.lineMax;
|
1668
1693
|
if (p >= _ || u.isEmpty(p))
|
1669
1694
|
return null;
|
1670
1695
|
let x = !1;
|
1671
1696
|
if (u.sCount[p] - u.blkIndent > 3 && (x = !0), u.sCount[p] < 0 && (x = !0), !x) {
|
1672
|
-
const F = u.md.block.ruler.getRules("reference"),
|
1697
|
+
const F = u.md.block.ruler.getRules("reference"), I = u.parentType;
|
1673
1698
|
u.parentType = "reference";
|
1674
1699
|
let L = !1;
|
1675
1700
|
for (let J = 0, bu = F.length; J < bu; J++)
|
@@ -1677,7 +1702,7 @@ function Je(u, e, t, n) {
|
|
1677
1702
|
L = !0;
|
1678
1703
|
break;
|
1679
1704
|
}
|
1680
|
-
if (u.parentType =
|
1705
|
+
if (u.parentType = I, L)
|
1681
1706
|
return null;
|
1682
1707
|
}
|
1683
1708
|
const m = u.bMarks[p] + u.tShift[p], C = u.eMarks[p];
|
@@ -1694,11 +1719,11 @@ function Je(u, e, t, n) {
|
|
1694
1719
|
s = r;
|
1695
1720
|
break;
|
1696
1721
|
} else if (p === 10) {
|
1697
|
-
const _ = o
|
1698
|
-
_ !== null && (a += _, c = a.length,
|
1722
|
+
const _ = i(o);
|
1723
|
+
_ !== null && (a += _, c = a.length, o++);
|
1699
1724
|
} else if (p === 92 && (r++, r < c && a.charCodeAt(r) === 10)) {
|
1700
|
-
const _ = o
|
1701
|
-
_ !== null && (a += _, c = a.length,
|
1725
|
+
const _ = i(o);
|
1726
|
+
_ !== null && (a += _, c = a.length, o++);
|
1702
1727
|
}
|
1703
1728
|
}
|
1704
1729
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
@@ -1706,8 +1731,8 @@ function Je(u, e, t, n) {
|
|
1706
1731
|
for (r = s + 2; r < c; r++) {
|
1707
1732
|
const p = a.charCodeAt(r);
|
1708
1733
|
if (p === 10) {
|
1709
|
-
const _ = o
|
1710
|
-
_ !== null && (a += _, c = a.length,
|
1734
|
+
const _ = i(o);
|
1735
|
+
_ !== null && (a += _, c = a.length, o++);
|
1711
1736
|
} else if (!E(p))
|
1712
1737
|
break;
|
1713
1738
|
}
|
@@ -1718,31 +1743,31 @@ function Je(u, e, t, n) {
|
|
1718
1743
|
if (!u.md.validateLink(d))
|
1719
1744
|
return !1;
|
1720
1745
|
r = l.pos;
|
1721
|
-
const b = r, h =
|
1746
|
+
const b = r, h = o, f = r;
|
1722
1747
|
for (; r < c; r++) {
|
1723
1748
|
const p = a.charCodeAt(r);
|
1724
1749
|
if (p === 10) {
|
1725
|
-
const _ = o
|
1726
|
-
_ !== null && (a += _, c = a.length,
|
1750
|
+
const _ = i(o);
|
1751
|
+
_ !== null && (a += _, c = a.length, o++);
|
1727
1752
|
} else if (!E(p))
|
1728
1753
|
break;
|
1729
1754
|
}
|
1730
1755
|
let g = u.md.helpers.parseLinkTitle(a, r, c);
|
1731
1756
|
for (; g.can_continue; ) {
|
1732
|
-
const p = o
|
1757
|
+
const p = i(o);
|
1733
1758
|
if (p === null)
|
1734
1759
|
break;
|
1735
|
-
a += p, r = c, c = a.length,
|
1760
|
+
a += p, r = c, c = a.length, o++, g = u.md.helpers.parseLinkTitle(a, r, c, g);
|
1736
1761
|
}
|
1737
1762
|
let k;
|
1738
|
-
for (r < c && f !== r && g.ok ? (k = g.str, r = g.pos) : (k = "", r = b,
|
1763
|
+
for (r < c && f !== r && g.ok ? (k = g.str, r = g.pos) : (k = "", r = b, o = h); r < c; ) {
|
1739
1764
|
const p = a.charCodeAt(r);
|
1740
1765
|
if (!E(p))
|
1741
1766
|
break;
|
1742
1767
|
r++;
|
1743
1768
|
}
|
1744
1769
|
if (r < c && a.charCodeAt(r) !== 10 && k)
|
1745
|
-
for (k = "", r = b,
|
1770
|
+
for (k = "", r = b, o = h; r < c; ) {
|
1746
1771
|
const p = a.charCodeAt(r);
|
1747
1772
|
if (!E(p))
|
1748
1773
|
break;
|
@@ -1751,9 +1776,9 @@ function Je(u, e, t, n) {
|
|
1751
1776
|
if (r < c && a.charCodeAt(r) !== 10)
|
1752
1777
|
return !1;
|
1753
1778
|
const D = fu(a.slice(1, s));
|
1754
|
-
return D ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title: k, href: d }), u.line =
|
1779
|
+
return D ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title: k, href: d }), u.line = o), !0) : !1;
|
1755
1780
|
}
|
1756
|
-
const
|
1781
|
+
const nt = [
|
1757
1782
|
"address",
|
1758
1783
|
"article",
|
1759
1784
|
"aside",
|
@@ -1816,31 +1841,31 @@ const Qe = [
|
|
1816
1841
|
"tr",
|
1817
1842
|
"track",
|
1818
1843
|
"ul"
|
1819
|
-
],
|
1844
|
+
], rt = "[a-zA-Z_:][a-zA-Z0-9:._-]*", ct = "[^\"'=<>`\\x00-\\x20]+", it = "'[^']*'", ot = '"[^"]*"', at = "(?:" + ct + "|" + it + "|" + ot + ")", st = "(?:\\s+" + rt + "(?:\\s*=\\s*" + at + ")?)", f0 = "<[A-Za-z][A-Za-z0-9\\-]*" + st + "*\\s*\\/?>", d0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", lt = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ft = "<[?][\\s\\S]*?[?]>", dt = "<![A-Za-z][^>]*>", ht = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", bt = new RegExp("^(?:" + f0 + "|" + d0 + "|" + lt + "|" + ft + "|" + dt + "|" + ht + ")"), pt = new RegExp("^(?:" + f0 + "|" + d0 + ")"), H = [
|
1820
1845
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
1821
1846
|
[/^<!--/, /-->/, !0],
|
1822
1847
|
[/^<\?/, /\?>/, !0],
|
1823
1848
|
[/^<![A-Z]/, />/, !0],
|
1824
1849
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
1825
|
-
[new RegExp("^</?(" +
|
1826
|
-
[new RegExp(
|
1850
|
+
[new RegExp("^</?(" + nt.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
1851
|
+
[new RegExp(pt.source + "\\s*$"), /^$/, !1]
|
1827
1852
|
];
|
1828
|
-
function
|
1853
|
+
function xt(u, e, t, n) {
|
1829
1854
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1830
1855
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
1831
1856
|
return !1;
|
1832
|
-
let
|
1833
|
-
for (;
|
1857
|
+
let o = u.src.slice(r, c), i = 0;
|
1858
|
+
for (; i < H.length && !H[i][0].test(o); i++)
|
1834
1859
|
;
|
1835
|
-
if (
|
1860
|
+
if (i === H.length)
|
1836
1861
|
return !1;
|
1837
1862
|
if (n)
|
1838
|
-
return H[
|
1863
|
+
return H[i][2];
|
1839
1864
|
let a = e + 1;
|
1840
|
-
if (!H[
|
1865
|
+
if (!H[i][1].test(o)) {
|
1841
1866
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
1842
|
-
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a],
|
1843
|
-
|
1867
|
+
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], o = u.src.slice(r, c), H[i][1].test(o)) {
|
1868
|
+
o.length !== 0 && a++;
|
1844
1869
|
break;
|
1845
1870
|
}
|
1846
1871
|
}
|
@@ -1848,53 +1873,53 @@ function st(u, e, t, n) {
|
|
1848
1873
|
const s = u.push("html_block", "", 0);
|
1849
1874
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
1850
1875
|
}
|
1851
|
-
function
|
1876
|
+
function _t(u, e, t, n) {
|
1852
1877
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1853
1878
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1854
1879
|
return !1;
|
1855
|
-
let
|
1856
|
-
if (
|
1880
|
+
let o = u.src.charCodeAt(r);
|
1881
|
+
if (o !== 35 || r >= c)
|
1857
1882
|
return !1;
|
1858
|
-
let
|
1859
|
-
for (
|
1860
|
-
|
1861
|
-
if (
|
1883
|
+
let i = 1;
|
1884
|
+
for (o = u.src.charCodeAt(++r); o === 35 && r < c && i <= 6; )
|
1885
|
+
i++, o = u.src.charCodeAt(++r);
|
1886
|
+
if (i > 6 || r < c && !E(o))
|
1862
1887
|
return !1;
|
1863
1888
|
if (n)
|
1864
1889
|
return !0;
|
1865
1890
|
c = u.skipSpacesBack(c, r);
|
1866
1891
|
const a = u.skipCharsBack(c, 35, r);
|
1867
1892
|
a > r && E(u.src.charCodeAt(a - 1)) && (c = a), u.line = e + 1;
|
1868
|
-
const s = u.push("heading_open", "h" + String(
|
1869
|
-
s.markup = "########".slice(0,
|
1893
|
+
const s = u.push("heading_open", "h" + String(i), 1);
|
1894
|
+
s.markup = "########".slice(0, i), s.map = [e, u.line];
|
1870
1895
|
const l = u.push("inline", "", 0);
|
1871
1896
|
l.content = u.src.slice(r, c).trim(), l.map = [e, u.line], l.children = [];
|
1872
|
-
const d = u.push("heading_close", "h" + String(
|
1873
|
-
return d.markup = "########".slice(0,
|
1897
|
+
const d = u.push("heading_close", "h" + String(i), -1);
|
1898
|
+
return d.markup = "########".slice(0, i), !0;
|
1874
1899
|
}
|
1875
|
-
function
|
1900
|
+
function mt(u, e, t) {
|
1876
1901
|
const n = u.md.block.ruler.getRules("paragraph");
|
1877
1902
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1878
1903
|
return !1;
|
1879
1904
|
const r = u.parentType;
|
1880
1905
|
u.parentType = "paragraph";
|
1881
|
-
let c = 0,
|
1882
|
-
for (;
|
1883
|
-
if (u.sCount[
|
1906
|
+
let c = 0, o, i = e + 1;
|
1907
|
+
for (; i < t && !u.isEmpty(i); i++) {
|
1908
|
+
if (u.sCount[i] - u.blkIndent > 3)
|
1884
1909
|
continue;
|
1885
|
-
if (u.sCount[
|
1886
|
-
let h = u.bMarks[
|
1887
|
-
const f = u.eMarks[
|
1888
|
-
if (h < f && (
|
1889
|
-
c =
|
1910
|
+
if (u.sCount[i] >= u.blkIndent) {
|
1911
|
+
let h = u.bMarks[i] + u.tShift[i];
|
1912
|
+
const f = u.eMarks[i];
|
1913
|
+
if (h < f && (o = u.src.charCodeAt(h), (o === 45 || o === 61) && (h = u.skipChars(h, o), h = u.skipSpaces(h), h >= f))) {
|
1914
|
+
c = o === 61 ? 1 : 2;
|
1890
1915
|
break;
|
1891
1916
|
}
|
1892
1917
|
}
|
1893
|
-
if (u.sCount[
|
1918
|
+
if (u.sCount[i] < 0)
|
1894
1919
|
continue;
|
1895
1920
|
let b = !1;
|
1896
1921
|
for (let h = 0, f = n.length; h < f; h++)
|
1897
|
-
if (n[h](u,
|
1922
|
+
if (n[h](u, i, t, !0)) {
|
1898
1923
|
b = !0;
|
1899
1924
|
break;
|
1900
1925
|
}
|
@@ -1903,16 +1928,16 @@ function ft(u, e, t) {
|
|
1903
1928
|
}
|
1904
1929
|
if (!c)
|
1905
1930
|
return !1;
|
1906
|
-
const a = u.getLines(e,
|
1907
|
-
u.line =
|
1931
|
+
const a = u.getLines(e, i, u.blkIndent, !1).trim();
|
1932
|
+
u.line = i + 1;
|
1908
1933
|
const s = u.push("heading_open", "h" + String(c), 1);
|
1909
|
-
s.markup = String.fromCharCode(
|
1934
|
+
s.markup = String.fromCharCode(o), s.map = [e, u.line];
|
1910
1935
|
const l = u.push("inline", "", 0);
|
1911
1936
|
l.content = a, l.map = [e, u.line - 1], l.children = [];
|
1912
1937
|
const d = u.push("heading_close", "h" + String(c), -1);
|
1913
|
-
return d.markup = String.fromCharCode(
|
1938
|
+
return d.markup = String.fromCharCode(o), u.parentType = r, !0;
|
1914
1939
|
}
|
1915
|
-
function
|
1940
|
+
function gt(u, e, t) {
|
1916
1941
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
1917
1942
|
let c = e + 1;
|
1918
1943
|
for (u.parentType = "paragraph"; c < t && !u.isEmpty(c); c++) {
|
@@ -1927,37 +1952,37 @@ function dt(u, e, t) {
|
|
1927
1952
|
if (s)
|
1928
1953
|
break;
|
1929
1954
|
}
|
1930
|
-
const
|
1955
|
+
const o = u.getLines(e, c, u.blkIndent, !1).trim();
|
1931
1956
|
u.line = c;
|
1932
|
-
const
|
1933
|
-
|
1957
|
+
const i = u.push("paragraph_open", "p", 1);
|
1958
|
+
i.map = [e, u.line];
|
1934
1959
|
const a = u.push("inline", "", 0);
|
1935
|
-
return a.content =
|
1960
|
+
return a.content = o, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
1936
1961
|
}
|
1937
1962
|
const cu = [
|
1938
1963
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
1939
1964
|
// which can be terminated by this one.
|
1940
|
-
["table",
|
1941
|
-
["code",
|
1942
|
-
["fence",
|
1943
|
-
["blockquote",
|
1944
|
-
["hr",
|
1945
|
-
["list",
|
1946
|
-
["reference",
|
1947
|
-
["html_block",
|
1948
|
-
["heading",
|
1949
|
-
["lheading",
|
1950
|
-
["paragraph",
|
1965
|
+
["table", Je, ["paragraph", "reference"]],
|
1966
|
+
["code", Qe],
|
1967
|
+
["fence", Ke, ["paragraph", "reference", "blockquote", "list"]],
|
1968
|
+
["blockquote", Xe, ["paragraph", "reference", "blockquote", "list"]],
|
1969
|
+
["hr", Ye, ["paragraph", "reference", "blockquote", "list"]],
|
1970
|
+
["list", et, ["paragraph", "reference", "blockquote"]],
|
1971
|
+
["reference", tt],
|
1972
|
+
["html_block", xt, ["paragraph", "reference", "blockquote"]],
|
1973
|
+
["heading", _t, ["paragraph", "reference", "blockquote"]],
|
1974
|
+
["lheading", mt],
|
1975
|
+
["paragraph", gt]
|
1951
1976
|
];
|
1952
1977
|
function du() {
|
1953
|
-
this.ruler = new
|
1978
|
+
this.ruler = new w();
|
1954
1979
|
for (let u = 0; u < cu.length; u++)
|
1955
1980
|
this.ruler.push(cu[u][0], cu[u][1], { alt: (cu[u][2] || []).slice() });
|
1956
1981
|
}
|
1957
1982
|
du.prototype.tokenize = function(u, e, t) {
|
1958
1983
|
const n = this.ruler.getRules(""), r = n.length, c = u.md.options.maxNesting;
|
1959
|
-
let
|
1960
|
-
for (;
|
1984
|
+
let o = e, i = !1;
|
1985
|
+
for (; o < t && (u.line = o = u.skipEmptyLines(o), !(o >= t || u.sCount[o] < u.blkIndent)); ) {
|
1961
1986
|
if (u.level >= c) {
|
1962
1987
|
u.line = t;
|
1963
1988
|
break;
|
@@ -1965,14 +1990,14 @@ du.prototype.tokenize = function(u, e, t) {
|
|
1965
1990
|
const a = u.line;
|
1966
1991
|
let s = !1;
|
1967
1992
|
for (let l = 0; l < r; l++)
|
1968
|
-
if (s = n[l](u,
|
1993
|
+
if (s = n[l](u, o, t, !1), s) {
|
1969
1994
|
if (a >= u.line)
|
1970
1995
|
throw new Error("block rule didn't increment state.line");
|
1971
1996
|
break;
|
1972
1997
|
}
|
1973
1998
|
if (!s)
|
1974
1999
|
throw new Error("none of the block rules matched");
|
1975
|
-
u.tight = !
|
2000
|
+
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), o = u.line, o < t && u.isEmpty(o) && (i = !0, o++, u.line = o);
|
1976
2001
|
}
|
1977
2002
|
};
|
1978
2003
|
du.prototype.parse = function(u, e, t, n) {
|
@@ -1981,17 +2006,17 @@ du.prototype.parse = function(u, e, t, n) {
|
|
1981
2006
|
const r = new this.State(u, e, t, n);
|
1982
2007
|
this.tokenize(r, r.line, r.lineMax);
|
1983
2008
|
};
|
1984
|
-
du.prototype.State =
|
2009
|
+
du.prototype.State = q;
|
1985
2010
|
function eu(u, e, t, n) {
|
1986
2011
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.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;
|
1987
2012
|
}
|
1988
2013
|
eu.prototype.pushPending = function() {
|
1989
|
-
const u = new
|
2014
|
+
const u = new B("text", "", 0);
|
1990
2015
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
1991
2016
|
};
|
1992
2017
|
eu.prototype.push = function(u, e, t) {
|
1993
2018
|
this.pending && this.pushPending();
|
1994
|
-
const n = new
|
2019
|
+
const n = new B(u, e, t);
|
1995
2020
|
let r = null;
|
1996
2021
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
1997
2022
|
};
|
@@ -2000,11 +2025,11 @@ eu.prototype.scanDelims = function(u, e) {
|
|
2000
2025
|
let c = u;
|
2001
2026
|
for (; c < t && this.src.charCodeAt(c) === n; )
|
2002
2027
|
c++;
|
2003
|
-
const
|
2004
|
-
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length:
|
2028
|
+
const o = c - u, i = c < t ? this.src.charCodeAt(c) : 32, a = X(r) || K(String.fromCharCode(r)), s = X(i) || K(String.fromCharCode(i)), l = Q(r), d = Q(i), b = !d && (!s || l || a), h = !l && (!a || d || s);
|
2029
|
+
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length: o };
|
2005
2030
|
};
|
2006
|
-
eu.prototype.Token =
|
2007
|
-
function
|
2031
|
+
eu.prototype.Token = B;
|
2032
|
+
function kt(u) {
|
2008
2033
|
switch (u) {
|
2009
2034
|
case 10:
|
2010
2035
|
case 33:
|
@@ -2034,30 +2059,30 @@ function ht(u) {
|
|
2034
2059
|
return !1;
|
2035
2060
|
}
|
2036
2061
|
}
|
2037
|
-
function
|
2062
|
+
function Ct(u, e) {
|
2038
2063
|
let t = u.pos;
|
2039
|
-
for (; t < u.posMax && !
|
2064
|
+
for (; t < u.posMax && !kt(u.src.charCodeAt(t)); )
|
2040
2065
|
t++;
|
2041
2066
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
2042
2067
|
}
|
2043
|
-
const
|
2044
|
-
function
|
2068
|
+
const Dt = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
2069
|
+
function Et(u, e) {
|
2045
2070
|
if (!u.md.options.linkify || u.linkLevel > 0)
|
2046
2071
|
return !1;
|
2047
2072
|
const t = u.pos, n = u.posMax;
|
2048
2073
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47)
|
2049
2074
|
return !1;
|
2050
|
-
const r = u.pending.match(
|
2075
|
+
const r = u.pending.match(Dt);
|
2051
2076
|
if (!r)
|
2052
2077
|
return !1;
|
2053
|
-
const c = r[1],
|
2054
|
-
if (!
|
2078
|
+
const c = r[1], o = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
2079
|
+
if (!o)
|
2055
2080
|
return !1;
|
2056
|
-
let
|
2057
|
-
if (
|
2081
|
+
let i = o.url;
|
2082
|
+
if (i.length <= c.length)
|
2058
2083
|
return !1;
|
2059
|
-
|
2060
|
-
const a = u.md.normalizeLink(
|
2084
|
+
i = i.replace(/\*+$/, "");
|
2085
|
+
const a = u.md.normalizeLink(i);
|
2061
2086
|
if (!u.md.validateLink(a))
|
2062
2087
|
return !1;
|
2063
2088
|
if (!e) {
|
@@ -2065,13 +2090,13 @@ function xt(u, e) {
|
|
2065
2090
|
const s = u.push("link_open", "a", 1);
|
2066
2091
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
2067
2092
|
const l = u.push("text", "", 0);
|
2068
|
-
l.content = u.md.normalizeLinkText(
|
2093
|
+
l.content = u.md.normalizeLinkText(i);
|
2069
2094
|
const d = u.push("link_close", "a", -1);
|
2070
2095
|
d.markup = "linkify", d.info = "auto";
|
2071
2096
|
}
|
2072
|
-
return u.pos +=
|
2097
|
+
return u.pos += i.length - c.length, !0;
|
2073
2098
|
}
|
2074
|
-
function
|
2099
|
+
function yt(u, e) {
|
2075
2100
|
let t = u.pos;
|
2076
2101
|
if (u.src.charCodeAt(t) !== 10)
|
2077
2102
|
return !1;
|
@@ -2091,13 +2116,13 @@ function _t(u, e) {
|
|
2091
2116
|
t++;
|
2092
2117
|
return u.pos = t, !0;
|
2093
2118
|
}
|
2094
|
-
const
|
2119
|
+
const Bu = [];
|
2095
2120
|
for (let u = 0; u < 256; u++)
|
2096
|
-
|
2121
|
+
Bu.push(0);
|
2097
2122
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
2098
|
-
|
2123
|
+
Bu[u.charCodeAt(0)] = 1;
|
2099
2124
|
});
|
2100
|
-
function
|
2125
|
+
function At(u, e) {
|
2101
2126
|
let t = u.pos;
|
2102
2127
|
const n = u.posMax;
|
2103
2128
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n))
|
@@ -2110,17 +2135,17 @@ function mt(u, e) {
|
|
2110
2135
|
}
|
2111
2136
|
let c = u.src[t];
|
2112
2137
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
2113
|
-
const
|
2114
|
-
|
2138
|
+
const i = u.src.charCodeAt(t + 1);
|
2139
|
+
i >= 56320 && i <= 57343 && (c += u.src[t + 1], t++);
|
2115
2140
|
}
|
2116
|
-
const
|
2141
|
+
const o = "\\" + c;
|
2117
2142
|
if (!e) {
|
2118
|
-
const
|
2119
|
-
r < 256 &&
|
2143
|
+
const i = u.push("text_special", "", 0);
|
2144
|
+
r < 256 && Bu[r] !== 0 ? i.content = c : i.content = o, i.markup = o, i.info = "escape";
|
2120
2145
|
}
|
2121
2146
|
return u.pos = t + 1, !0;
|
2122
2147
|
}
|
2123
|
-
function
|
2148
|
+
function Ft(u, e) {
|
2124
2149
|
let t = u.pos;
|
2125
2150
|
if (u.src.charCodeAt(t) !== 96)
|
2126
2151
|
return !1;
|
@@ -2129,38 +2154,38 @@ function gt(u, e) {
|
|
2129
2154
|
const c = u.posMax;
|
2130
2155
|
for (; t < c && u.src.charCodeAt(t) === 96; )
|
2131
2156
|
t++;
|
2132
|
-
const
|
2133
|
-
if (u.backticksScanned && (u.backticks[
|
2134
|
-
return e || (u.pending +=
|
2157
|
+
const o = u.src.slice(r, t), i = o.length;
|
2158
|
+
if (u.backticksScanned && (u.backticks[i] || 0) <= r)
|
2159
|
+
return e || (u.pending += o), u.pos += i, !0;
|
2135
2160
|
let a = t, s;
|
2136
2161
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
2137
2162
|
for (a = s + 1; a < c && u.src.charCodeAt(a) === 96; )
|
2138
2163
|
a++;
|
2139
2164
|
const l = a - s;
|
2140
|
-
if (l ===
|
2165
|
+
if (l === i) {
|
2141
2166
|
if (!e) {
|
2142
2167
|
const d = u.push("code_inline", "code", 0);
|
2143
|
-
d.markup =
|
2168
|
+
d.markup = o, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
2144
2169
|
}
|
2145
2170
|
return u.pos = a, !0;
|
2146
2171
|
}
|
2147
2172
|
u.backticks[l] = s;
|
2148
2173
|
}
|
2149
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
2174
|
+
return u.backticksScanned = !0, e || (u.pending += o), u.pos += i, !0;
|
2150
2175
|
}
|
2151
|
-
function
|
2176
|
+
function vt(u, e) {
|
2152
2177
|
const t = u.pos, n = u.src.charCodeAt(t);
|
2153
2178
|
if (e || n !== 126)
|
2154
2179
|
return !1;
|
2155
2180
|
const r = u.scanDelims(u.pos, !0);
|
2156
2181
|
let c = r.length;
|
2157
|
-
const
|
2182
|
+
const o = String.fromCharCode(n);
|
2158
2183
|
if (c < 2)
|
2159
2184
|
return !1;
|
2160
|
-
let
|
2161
|
-
c % 2 && (
|
2185
|
+
let i;
|
2186
|
+
c % 2 && (i = u.push("text", "", 0), i.content = o, c--);
|
2162
2187
|
for (let a = 0; a < c; a += 2)
|
2163
|
-
|
2188
|
+
i = u.push("text", "", 0), i.content = o + o, u.delimiters.push({
|
2164
2189
|
marker: n,
|
2165
2190
|
length: 0,
|
2166
2191
|
// disable "rule of 3" length checks meant for emphasis
|
@@ -2171,42 +2196,42 @@ function kt(u, e) {
|
|
2171
2196
|
});
|
2172
2197
|
return u.pos += r.length, !0;
|
2173
2198
|
}
|
2174
|
-
function
|
2199
|
+
function Ju(u, e) {
|
2175
2200
|
let t;
|
2176
2201
|
const n = [], r = e.length;
|
2177
2202
|
for (let c = 0; c < r; c++) {
|
2178
|
-
const
|
2179
|
-
if (
|
2203
|
+
const o = e[c];
|
2204
|
+
if (o.marker !== 126 || o.end === -1)
|
2180
2205
|
continue;
|
2181
|
-
const
|
2182
|
-
t = u.tokens[
|
2206
|
+
const i = e[o.end];
|
2207
|
+
t = u.tokens[o.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[i.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[i.token - 1].type === "text" && u.tokens[i.token - 1].content === "~" && n.push(i.token - 1);
|
2183
2208
|
}
|
2184
2209
|
for (; n.length; ) {
|
2185
2210
|
const c = n.pop();
|
2186
|
-
let
|
2187
|
-
for (;
|
2188
|
-
|
2189
|
-
|
2211
|
+
let o = c + 1;
|
2212
|
+
for (; o < u.tokens.length && u.tokens[o].type === "s_close"; )
|
2213
|
+
o++;
|
2214
|
+
o--, c !== o && (t = u.tokens[o], u.tokens[o] = u.tokens[c], u.tokens[c] = t);
|
2190
2215
|
}
|
2191
2216
|
}
|
2192
|
-
function
|
2217
|
+
function wt(u) {
|
2193
2218
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2194
|
-
|
2219
|
+
Ju(u, u.delimiters);
|
2195
2220
|
for (let n = 0; n < t; n++)
|
2196
|
-
e[n] && e[n].delimiters &&
|
2221
|
+
e[n] && e[n].delimiters && Ju(u, e[n].delimiters);
|
2197
2222
|
}
|
2198
|
-
const
|
2199
|
-
tokenize:
|
2200
|
-
postProcess:
|
2223
|
+
const h0 = {
|
2224
|
+
tokenize: vt,
|
2225
|
+
postProcess: wt
|
2201
2226
|
};
|
2202
|
-
function
|
2227
|
+
function St(u, e) {
|
2203
2228
|
const t = u.pos, n = u.src.charCodeAt(t);
|
2204
2229
|
if (e || n !== 95 && n !== 42)
|
2205
2230
|
return !1;
|
2206
2231
|
const r = u.scanDelims(u.pos, n === 42);
|
2207
2232
|
for (let c = 0; c < r.length; c++) {
|
2208
|
-
const
|
2209
|
-
|
2233
|
+
const o = u.push("text", "", 0);
|
2234
|
+
o.content = String.fromCharCode(n), u.delimiters.push({
|
2210
2235
|
// Char code of the starting marker (number).
|
2211
2236
|
//
|
2212
2237
|
marker: n,
|
@@ -2229,32 +2254,32 @@ function Dt(u, e) {
|
|
2229
2254
|
}
|
2230
2255
|
return u.pos += r.length, !0;
|
2231
2256
|
}
|
2232
|
-
function
|
2257
|
+
function Qu(u, e) {
|
2233
2258
|
const t = e.length;
|
2234
2259
|
for (let n = t - 1; n >= 0; n--) {
|
2235
2260
|
const r = e[n];
|
2236
2261
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
2237
2262
|
continue;
|
2238
|
-
const c = e[r.end],
|
2263
|
+
const c = e[r.end], o = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
2239
2264
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
2240
|
-
e[r.end + 1].token === c.token + 1,
|
2241
|
-
a.type =
|
2265
|
+
e[r.end + 1].token === c.token + 1, i = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
2266
|
+
a.type = o ? "strong_open" : "em_open", a.tag = o ? "strong" : "em", a.nesting = 1, a.markup = o ? i + i : i, a.content = "";
|
2242
2267
|
const s = u.tokens[c.token];
|
2243
|
-
s.type =
|
2268
|
+
s.type = o ? "strong_close" : "em_close", s.tag = o ? "strong" : "em", s.nesting = -1, s.markup = o ? i + i : i, s.content = "", o && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
2244
2269
|
}
|
2245
2270
|
}
|
2246
|
-
function
|
2271
|
+
function Tt(u) {
|
2247
2272
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2248
|
-
|
2273
|
+
Qu(u, u.delimiters);
|
2249
2274
|
for (let n = 0; n < t; n++)
|
2250
|
-
e[n] && e[n].delimiters &&
|
2275
|
+
e[n] && e[n].delimiters && Qu(u, e[n].delimiters);
|
2251
2276
|
}
|
2252
|
-
const
|
2253
|
-
tokenize:
|
2254
|
-
postProcess:
|
2277
|
+
const b0 = {
|
2278
|
+
tokenize: St,
|
2279
|
+
postProcess: Tt
|
2255
2280
|
};
|
2256
|
-
function
|
2257
|
-
let t, n, r, c,
|
2281
|
+
function It(u, e) {
|
2282
|
+
let t, n, r, c, o = "", i = "", a = u.pos, s = !0;
|
2258
2283
|
if (u.src.charCodeAt(u.pos) !== 91)
|
2259
2284
|
return !1;
|
2260
2285
|
const l = u.pos, d = u.posMax, b = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
@@ -2267,10 +2292,10 @@ function At(u, e) {
|
|
2267
2292
|
if (f >= d)
|
2268
2293
|
return !1;
|
2269
2294
|
if (a = f, r = u.md.helpers.parseLinkDestination(u.src, f, u.posMax), r.ok) {
|
2270
|
-
for (
|
2295
|
+
for (o = u.md.normalizeLink(r.str), u.md.validateLink(o) ? f = r.pos : o = "", a = f; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2271
2296
|
;
|
2272
2297
|
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d && a !== f && r.ok)
|
2273
|
-
for (
|
2298
|
+
for (i = r.str, f = r.pos; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2274
2299
|
;
|
2275
2300
|
}
|
2276
2301
|
(f >= d || u.src.charCodeAt(f) !== 41) && (s = !0), f++;
|
@@ -2280,17 +2305,17 @@ function At(u, e) {
|
|
2280
2305
|
return !1;
|
2281
2306
|
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(b, h)), c = u.env.references[fu(n)], !c)
|
2282
2307
|
return u.pos = l, !1;
|
2283
|
-
|
2308
|
+
o = c.href, i = c.title;
|
2284
2309
|
}
|
2285
2310
|
if (!e) {
|
2286
2311
|
u.pos = b, u.posMax = h;
|
2287
|
-
const g = u.push("link_open", "a", 1), k = [["href",
|
2288
|
-
g.attrs = k,
|
2312
|
+
const g = u.push("link_open", "a", 1), k = [["href", o]];
|
2313
|
+
g.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
2289
2314
|
}
|
2290
2315
|
return u.pos = f, u.posMax = d, !0;
|
2291
2316
|
}
|
2292
|
-
function
|
2293
|
-
let t, n, r, c,
|
2317
|
+
function Bt(u, e) {
|
2318
|
+
let t, n, r, c, o, i, a, s, l = "";
|
2294
2319
|
const d = u.pos, b = u.posMax;
|
2295
2320
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
2296
2321
|
return !1;
|
@@ -2302,10 +2327,10 @@ function yt(u, e) {
|
|
2302
2327
|
;
|
2303
2328
|
if (c >= b)
|
2304
2329
|
return !1;
|
2305
|
-
for (s = c,
|
2330
|
+
for (s = c, i = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? c = i.pos : l = ""), s = c; c < b && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
2306
2331
|
;
|
2307
|
-
if (
|
2308
|
-
for (a =
|
2332
|
+
if (i = u.md.helpers.parseLinkTitle(u.src, c, u.posMax), c < b && s !== c && i.ok)
|
2333
|
+
for (a = i.str, c = i.pos; c < b && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
2309
2334
|
;
|
2310
2335
|
else
|
2311
2336
|
a = "";
|
@@ -2315,9 +2340,9 @@ function yt(u, e) {
|
|
2315
2340
|
} else {
|
2316
2341
|
if (typeof u.env.references > "u")
|
2317
2342
|
return !1;
|
2318
|
-
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = f + 1) : c = f + 1, r || (r = u.src.slice(h, f)),
|
2343
|
+
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = f + 1) : c = f + 1, r || (r = u.src.slice(h, f)), o = u.env.references[fu(r)], !o)
|
2319
2344
|
return u.pos = d, !1;
|
2320
|
-
l =
|
2345
|
+
l = o.href, a = o.title;
|
2321
2346
|
}
|
2322
2347
|
if (!e) {
|
2323
2348
|
n = u.src.slice(h, f);
|
@@ -2333,8 +2358,8 @@ function yt(u, e) {
|
|
2333
2358
|
}
|
2334
2359
|
return u.pos = c, u.posMax = b, !0;
|
2335
2360
|
}
|
2336
|
-
const
|
2337
|
-
function
|
2361
|
+
const zt = /^([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])?)*)$/, Mt = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
2362
|
+
function Rt(u, e) {
|
2338
2363
|
let t = u.pos;
|
2339
2364
|
if (u.src.charCodeAt(t) !== 60)
|
2340
2365
|
return !1;
|
@@ -2342,20 +2367,20 @@ function wt(u, e) {
|
|
2342
2367
|
for (; ; ) {
|
2343
2368
|
if (++t >= r)
|
2344
2369
|
return !1;
|
2345
|
-
const
|
2346
|
-
if (
|
2370
|
+
const o = u.src.charCodeAt(t);
|
2371
|
+
if (o === 60)
|
2347
2372
|
return !1;
|
2348
|
-
if (
|
2373
|
+
if (o === 62)
|
2349
2374
|
break;
|
2350
2375
|
}
|
2351
2376
|
const c = u.src.slice(n + 1, t);
|
2352
|
-
if (
|
2353
|
-
const
|
2354
|
-
if (!u.md.validateLink(
|
2377
|
+
if (Mt.test(c)) {
|
2378
|
+
const o = u.md.normalizeLink(c);
|
2379
|
+
if (!u.md.validateLink(o))
|
2355
2380
|
return !1;
|
2356
2381
|
if (!e) {
|
2357
|
-
const
|
2358
|
-
|
2382
|
+
const i = u.push("link_open", "a", 1);
|
2383
|
+
i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto";
|
2359
2384
|
const a = u.push("text", "", 0);
|
2360
2385
|
a.content = u.md.normalizeLinkText(c);
|
2361
2386
|
const s = u.push("link_close", "a", -1);
|
@@ -2363,13 +2388,13 @@ function wt(u, e) {
|
|
2363
2388
|
}
|
2364
2389
|
return u.pos += c.length + 2, !0;
|
2365
2390
|
}
|
2366
|
-
if (
|
2367
|
-
const
|
2368
|
-
if (!u.md.validateLink(
|
2391
|
+
if (zt.test(c)) {
|
2392
|
+
const o = u.md.normalizeLink("mailto:" + c);
|
2393
|
+
if (!u.md.validateLink(o))
|
2369
2394
|
return !1;
|
2370
2395
|
if (!e) {
|
2371
|
-
const
|
2372
|
-
|
2396
|
+
const i = u.push("link_open", "a", 1);
|
2397
|
+
i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto";
|
2373
2398
|
const a = u.push("text", "", 0);
|
2374
2399
|
a.content = u.md.normalizeLinkText(c);
|
2375
2400
|
const s = u.push("link_close", "a", -1);
|
@@ -2379,56 +2404,56 @@ function wt(u, e) {
|
|
2379
2404
|
}
|
2380
2405
|
return !1;
|
2381
2406
|
}
|
2382
|
-
function
|
2407
|
+
function qt(u) {
|
2383
2408
|
return /^<a[>\s]/i.test(u);
|
2384
2409
|
}
|
2385
|
-
function
|
2410
|
+
function Lt(u) {
|
2386
2411
|
return /^<\/a\s*>/i.test(u);
|
2387
2412
|
}
|
2388
|
-
function
|
2413
|
+
function Pt(u) {
|
2389
2414
|
const e = u | 32;
|
2390
2415
|
return e >= 97 && e <= 122;
|
2391
2416
|
}
|
2392
|
-
function
|
2417
|
+
function $t(u, e) {
|
2393
2418
|
if (!u.md.options.html)
|
2394
2419
|
return !1;
|
2395
2420
|
const t = u.posMax, n = u.pos;
|
2396
2421
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
2397
2422
|
return !1;
|
2398
2423
|
const r = u.src.charCodeAt(n + 1);
|
2399
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
2424
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Pt(r))
|
2400
2425
|
return !1;
|
2401
|
-
const c = u.src.slice(n).match(
|
2426
|
+
const c = u.src.slice(n).match(bt);
|
2402
2427
|
if (!c)
|
2403
2428
|
return !1;
|
2404
2429
|
if (!e) {
|
2405
|
-
const
|
2406
|
-
|
2430
|
+
const o = u.push("html_inline", "", 0);
|
2431
|
+
o.content = c[0], qt(o.content) && u.linkLevel++, Lt(o.content) && u.linkLevel--;
|
2407
2432
|
}
|
2408
2433
|
return u.pos += c[0].length, !0;
|
2409
2434
|
}
|
2410
|
-
const
|
2411
|
-
function
|
2435
|
+
const Ot = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Nt = /^&([a-z][a-z0-9]{1,31});/i;
|
2436
|
+
function jt(u, e) {
|
2412
2437
|
const t = u.pos, n = u.posMax;
|
2413
2438
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n)
|
2414
2439
|
return !1;
|
2415
2440
|
if (u.src.charCodeAt(t + 1) === 35) {
|
2416
|
-
const c = u.src.slice(t).match(
|
2441
|
+
const c = u.src.slice(t).match(Ot);
|
2417
2442
|
if (c) {
|
2418
2443
|
if (!e) {
|
2419
|
-
const
|
2420
|
-
|
2444
|
+
const o = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), i = u.push("text_special", "", 0);
|
2445
|
+
i.content = Tu(o) ? ou(o) : ou(65533), i.markup = c[0], i.info = "entity";
|
2421
2446
|
}
|
2422
2447
|
return u.pos += c[0].length, !0;
|
2423
2448
|
}
|
2424
2449
|
} else {
|
2425
|
-
const c = u.src.slice(t).match(
|
2450
|
+
const c = u.src.slice(t).match(Nt);
|
2426
2451
|
if (c) {
|
2427
|
-
const
|
2428
|
-
if (
|
2452
|
+
const o = i0(c[0]);
|
2453
|
+
if (o !== c[0]) {
|
2429
2454
|
if (!e) {
|
2430
|
-
const
|
2431
|
-
|
2455
|
+
const i = u.push("text_special", "", 0);
|
2456
|
+
i.content = o, i.markup = c[0], i.info = "entity";
|
2432
2457
|
}
|
2433
2458
|
return u.pos += c[0].length, !0;
|
2434
2459
|
}
|
@@ -2436,40 +2461,40 @@ function qt(u, e) {
|
|
2436
2461
|
}
|
2437
2462
|
return !1;
|
2438
2463
|
}
|
2439
|
-
function
|
2464
|
+
function Ku(u) {
|
2440
2465
|
const e = {}, t = u.length;
|
2441
2466
|
if (!t)
|
2442
2467
|
return;
|
2443
2468
|
let n = 0, r = -2;
|
2444
2469
|
const c = [];
|
2445
|
-
for (let
|
2446
|
-
const
|
2447
|
-
if (c.push(0), (u[n].marker !==
|
2470
|
+
for (let o = 0; o < t; o++) {
|
2471
|
+
const i = u[o];
|
2472
|
+
if (c.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n = o), r = i.token, i.length = i.length || 0, !i.close)
|
2448
2473
|
continue;
|
2449
|
-
e.hasOwnProperty(
|
2450
|
-
const a = e[
|
2474
|
+
e.hasOwnProperty(i.marker) || (e[i.marker] = [-1, -1, -1, -1, -1, -1]);
|
2475
|
+
const a = e[i.marker][(i.open ? 3 : 0) + i.length % 3];
|
2451
2476
|
let s = n - c[n] - 1, l = s;
|
2452
2477
|
for (; s > a; s -= c[s] + 1) {
|
2453
2478
|
const d = u[s];
|
2454
|
-
if (d.marker ===
|
2479
|
+
if (d.marker === i.marker && d.open && d.end < 0) {
|
2455
2480
|
let b = !1;
|
2456
|
-
if ((d.close ||
|
2481
|
+
if ((d.close || i.open) && (d.length + i.length) % 3 === 0 && (d.length % 3 !== 0 || i.length % 3 !== 0) && (b = !0), !b) {
|
2457
2482
|
const h = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
2458
|
-
c[
|
2483
|
+
c[o] = o - s + h, c[s] = h, i.open = !1, d.end = o, d.close = !1, l = -1, r = -2;
|
2459
2484
|
break;
|
2460
2485
|
}
|
2461
2486
|
}
|
2462
2487
|
}
|
2463
|
-
l !== -1 && (e[
|
2488
|
+
l !== -1 && (e[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = l);
|
2464
2489
|
}
|
2465
2490
|
}
|
2466
|
-
function
|
2491
|
+
function Ut(u) {
|
2467
2492
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2468
|
-
|
2493
|
+
Ku(u.delimiters);
|
2469
2494
|
for (let n = 0; n < t; n++)
|
2470
|
-
e[n] && e[n].delimiters &&
|
2495
|
+
e[n] && e[n].delimiters && Ku(e[n].delimiters);
|
2471
2496
|
}
|
2472
|
-
function
|
2497
|
+
function Ht(u) {
|
2473
2498
|
let e, t, n = 0;
|
2474
2499
|
const r = u.tokens, c = u.tokens.length;
|
2475
2500
|
for (e = t = 0; e < c; e++)
|
@@ -2477,31 +2502,31 @@ function Lt(u) {
|
|
2477
2502
|
e !== t && (r.length = t);
|
2478
2503
|
}
|
2479
2504
|
const mu = [
|
2480
|
-
["text",
|
2481
|
-
["linkify",
|
2482
|
-
["newline",
|
2483
|
-
["escape",
|
2484
|
-
["backticks",
|
2485
|
-
["strikethrough",
|
2486
|
-
["emphasis",
|
2487
|
-
["link",
|
2488
|
-
["image",
|
2489
|
-
["autolink",
|
2490
|
-
["html_inline",
|
2491
|
-
["entity",
|
2505
|
+
["text", Ct],
|
2506
|
+
["linkify", Et],
|
2507
|
+
["newline", yt],
|
2508
|
+
["escape", At],
|
2509
|
+
["backticks", Ft],
|
2510
|
+
["strikethrough", h0.tokenize],
|
2511
|
+
["emphasis", b0.tokenize],
|
2512
|
+
["link", It],
|
2513
|
+
["image", Bt],
|
2514
|
+
["autolink", Rt],
|
2515
|
+
["html_inline", $t],
|
2516
|
+
["entity", jt]
|
2492
2517
|
], gu = [
|
2493
|
-
["balance_pairs",
|
2494
|
-
["strikethrough",
|
2495
|
-
["emphasis",
|
2518
|
+
["balance_pairs", Ut],
|
2519
|
+
["strikethrough", h0.postProcess],
|
2520
|
+
["emphasis", b0.postProcess],
|
2496
2521
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
2497
2522
|
// rule below merges unused segments back with the rest of the text
|
2498
|
-
["fragments_join",
|
2523
|
+
["fragments_join", Ht]
|
2499
2524
|
];
|
2500
2525
|
function tu() {
|
2501
|
-
this.ruler = new
|
2526
|
+
this.ruler = new w();
|
2502
2527
|
for (let u = 0; u < mu.length; u++)
|
2503
2528
|
this.ruler.push(mu[u][0], mu[u][1]);
|
2504
|
-
this.ruler2 = new
|
2529
|
+
this.ruler2 = new w();
|
2505
2530
|
for (let u = 0; u < gu.length; u++)
|
2506
2531
|
this.ruler2.push(gu[u][0], gu[u][1]);
|
2507
2532
|
}
|
@@ -2511,32 +2536,32 @@ tu.prototype.skipToken = function(u) {
|
|
2511
2536
|
u.pos = c[e];
|
2512
2537
|
return;
|
2513
2538
|
}
|
2514
|
-
let
|
2539
|
+
let o = !1;
|
2515
2540
|
if (u.level < r) {
|
2516
|
-
for (let
|
2517
|
-
if (u.level++,
|
2541
|
+
for (let i = 0; i < n; i++)
|
2542
|
+
if (u.level++, o = t[i](u, !0), u.level--, o) {
|
2518
2543
|
if (e >= u.pos)
|
2519
2544
|
throw new Error("inline rule didn't increment state.pos");
|
2520
2545
|
break;
|
2521
2546
|
}
|
2522
2547
|
} else
|
2523
2548
|
u.pos = u.posMax;
|
2524
|
-
|
2549
|
+
o || u.pos++, c[e] = u.pos;
|
2525
2550
|
};
|
2526
2551
|
tu.prototype.tokenize = function(u) {
|
2527
2552
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
2528
2553
|
for (; u.pos < n; ) {
|
2529
2554
|
const c = u.pos;
|
2530
|
-
let
|
2555
|
+
let o = !1;
|
2531
2556
|
if (u.level < r) {
|
2532
|
-
for (let
|
2533
|
-
if (
|
2557
|
+
for (let i = 0; i < t; i++)
|
2558
|
+
if (o = e[i](u, !1), o) {
|
2534
2559
|
if (c >= u.pos)
|
2535
2560
|
throw new Error("inline rule didn't increment state.pos");
|
2536
2561
|
break;
|
2537
2562
|
}
|
2538
2563
|
}
|
2539
|
-
if (
|
2564
|
+
if (o) {
|
2540
2565
|
if (u.pos >= n)
|
2541
2566
|
break;
|
2542
2567
|
continue;
|
@@ -2548,14 +2573,14 @@ tu.prototype.tokenize = function(u) {
|
|
2548
2573
|
tu.prototype.parse = function(u, e, t, n) {
|
2549
2574
|
const r = new this.State(u, e, t, n);
|
2550
2575
|
this.tokenize(r);
|
2551
|
-
const c = this.ruler2.getRules(""),
|
2552
|
-
for (let
|
2553
|
-
c[
|
2576
|
+
const c = this.ruler2.getRules(""), o = c.length;
|
2577
|
+
for (let i = 0; i < o; i++)
|
2578
|
+
c[i](r);
|
2554
2579
|
};
|
2555
2580
|
tu.prototype.State = eu;
|
2556
|
-
function
|
2581
|
+
function Zt(u) {
|
2557
2582
|
const e = {};
|
2558
|
-
u = u || {}, e.src_Any =
|
2583
|
+
u = u || {}, e.src_Any = e0.source, e.src_Cc = t0.source, e.src_Z = r0.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("|");
|
2559
2584
|
const t = "[><|]";
|
2560
2585
|
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
|
2561
2586
|
",(?!" + 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)
|
@@ -2565,7 +2590,7 @@ function Pt(u) {
|
|
2565
2590
|
// but can start with > (markdown blockquote)
|
2566
2591
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
2567
2592
|
}
|
2568
|
-
function
|
2593
|
+
function yu(u) {
|
2569
2594
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
2570
2595
|
t && Object.keys(t).forEach(function(n) {
|
2571
2596
|
u[n] = t[n];
|
@@ -2575,32 +2600,32 @@ function Eu(u) {
|
|
2575
2600
|
function hu(u) {
|
2576
2601
|
return Object.prototype.toString.call(u);
|
2577
2602
|
}
|
2578
|
-
function
|
2603
|
+
function Vt(u) {
|
2579
2604
|
return hu(u) === "[object String]";
|
2580
2605
|
}
|
2581
|
-
function
|
2606
|
+
function Gt(u) {
|
2582
2607
|
return hu(u) === "[object Object]";
|
2583
2608
|
}
|
2584
|
-
function
|
2609
|
+
function Wt(u) {
|
2585
2610
|
return hu(u) === "[object RegExp]";
|
2586
2611
|
}
|
2587
|
-
function
|
2612
|
+
function Xu(u) {
|
2588
2613
|
return hu(u) === "[object Function]";
|
2589
2614
|
}
|
2590
|
-
function
|
2615
|
+
function Jt(u) {
|
2591
2616
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
2592
2617
|
}
|
2593
|
-
const
|
2618
|
+
const p0 = {
|
2594
2619
|
fuzzyLink: !0,
|
2595
2620
|
fuzzyEmail: !0,
|
2596
2621
|
fuzzyIP: !1
|
2597
2622
|
};
|
2598
|
-
function
|
2623
|
+
function Qt(u) {
|
2599
2624
|
return Object.keys(u || {}).reduce(function(e, t) {
|
2600
|
-
return e ||
|
2625
|
+
return e || p0.hasOwnProperty(t);
|
2601
2626
|
}, !1);
|
2602
2627
|
}
|
2603
|
-
const
|
2628
|
+
const Kt = {
|
2604
2629
|
"http:": {
|
2605
2630
|
validate: function(u, e, t) {
|
2606
2631
|
const n = u.slice(e);
|
@@ -2632,81 +2657,81 @@ const Ht = {
|
|
2632
2657
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
2633
2658
|
}
|
2634
2659
|
}
|
2635
|
-
},
|
2636
|
-
function
|
2660
|
+
}, Xt = "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]", Yt = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
2661
|
+
function un(u) {
|
2637
2662
|
u.__index__ = -1, u.__text_cache__ = "";
|
2638
2663
|
}
|
2639
|
-
function
|
2664
|
+
function en(u) {
|
2640
2665
|
return function(e, t) {
|
2641
2666
|
const n = e.slice(t);
|
2642
2667
|
return u.test(n) ? n.match(u)[0].length : 0;
|
2643
2668
|
};
|
2644
2669
|
}
|
2645
|
-
function
|
2670
|
+
function Yu() {
|
2646
2671
|
return function(u, e) {
|
2647
2672
|
e.normalize(u);
|
2648
2673
|
};
|
2649
2674
|
}
|
2650
2675
|
function au(u) {
|
2651
|
-
const e = u.re =
|
2652
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
2653
|
-
function n(
|
2654
|
-
return
|
2676
|
+
const e = u.re = Zt(u.__opts__), t = u.__tlds__.slice();
|
2677
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Xt), t.push(e.src_xn), e.src_tlds = t.join("|");
|
2678
|
+
function n(i) {
|
2679
|
+
return i.replace("%TLDS%", e.src_tlds);
|
2655
2680
|
}
|
2656
2681
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
2657
2682
|
const r = [];
|
2658
2683
|
u.__compiled__ = {};
|
2659
|
-
function c(
|
2660
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
2684
|
+
function c(i, a) {
|
2685
|
+
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' + a);
|
2661
2686
|
}
|
2662
|
-
Object.keys(u.__schemas__).forEach(function(
|
2663
|
-
const a = u.__schemas__[
|
2687
|
+
Object.keys(u.__schemas__).forEach(function(i) {
|
2688
|
+
const a = u.__schemas__[i];
|
2664
2689
|
if (a === null)
|
2665
2690
|
return;
|
2666
2691
|
const s = { validate: null, link: null };
|
2667
|
-
if (u.__compiled__[
|
2668
|
-
|
2692
|
+
if (u.__compiled__[i] = s, Gt(a)) {
|
2693
|
+
Wt(a.validate) ? s.validate = en(a.validate) : Xu(a.validate) ? s.validate = a.validate : c(i, a), Xu(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(i, a) : s.normalize = Yu();
|
2669
2694
|
return;
|
2670
2695
|
}
|
2671
|
-
if (
|
2672
|
-
r.push(
|
2696
|
+
if (Vt(a)) {
|
2697
|
+
r.push(i);
|
2673
2698
|
return;
|
2674
2699
|
}
|
2675
|
-
c(
|
2676
|
-
}), r.forEach(function(
|
2677
|
-
u.__compiled__[u.__schemas__[
|
2678
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
2679
|
-
const
|
2680
|
-
return
|
2681
|
-
}).map(
|
2682
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
2700
|
+
c(i, a);
|
2701
|
+
}), r.forEach(function(i) {
|
2702
|
+
u.__compiled__[u.__schemas__[i]] && (u.__compiled__[i].validate = u.__compiled__[u.__schemas__[i]].validate, u.__compiled__[i].normalize = u.__compiled__[u.__schemas__[i]].normalize);
|
2703
|
+
}), u.__compiled__[""] = { validate: null, normalize: Yu() };
|
2704
|
+
const o = Object.keys(u.__compiled__).filter(function(i) {
|
2705
|
+
return i.length > 0 && u.__compiled__[i];
|
2706
|
+
}).map(Jt).join("|");
|
2707
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + o + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + o + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
2683
2708
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
2684
2709
|
"i"
|
2685
|
-
),
|
2710
|
+
), un(u);
|
2686
2711
|
}
|
2687
|
-
function
|
2712
|
+
function tn(u, e) {
|
2688
2713
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
2689
2714
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
2690
2715
|
}
|
2691
2716
|
function Au(u, e) {
|
2692
|
-
const t = new
|
2717
|
+
const t = new tn(u, e);
|
2693
2718
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
2694
2719
|
}
|
2695
|
-
function
|
2696
|
-
if (!(this instanceof
|
2697
|
-
return new
|
2698
|
-
e ||
|
2720
|
+
function S(u, e) {
|
2721
|
+
if (!(this instanceof S))
|
2722
|
+
return new S(u, e);
|
2723
|
+
e || Qt(u) && (e = u, u = {}), this.__opts__ = yu({}, p0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = yu({}, Kt, u), this.__compiled__ = {}, this.__tlds__ = Yt, this.__tlds_replaced__ = !1, this.re = {}, au(this);
|
2699
2724
|
}
|
2700
|
-
|
2725
|
+
S.prototype.add = function(e, t) {
|
2701
2726
|
return this.__schemas__[e] = t, au(this), this;
|
2702
2727
|
};
|
2703
|
-
|
2704
|
-
return this.__opts__ =
|
2728
|
+
S.prototype.set = function(e) {
|
2729
|
+
return this.__opts__ = yu(this.__opts__, e), this;
|
2705
2730
|
};
|
2706
|
-
|
2731
|
+
S.prototype.test = function(e) {
|
2707
2732
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2708
2733
|
return !1;
|
2709
|
-
let t, n, r, c,
|
2734
|
+
let t, n, r, c, o, i, a, s, l;
|
2710
2735
|
if (this.re.schema_test.test(e)) {
|
2711
2736
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
2712
2737
|
if (c = this.testSchemaAt(e, t[2], a.lastIndex), c) {
|
@@ -2714,15 +2739,15 @@ w.prototype.test = function(e) {
|
|
2714
2739
|
break;
|
2715
2740
|
}
|
2716
2741
|
}
|
2717
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (
|
2742
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (o = n.index + n[1].length, (this.__index__ < 0 || o < this.__index__) && (this.__schema__ = "", this.__index__ = o, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (o = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || o < this.__index__ || o === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = o, this.__last_index__ = i))), this.__index__ >= 0;
|
2718
2743
|
};
|
2719
|
-
|
2744
|
+
S.prototype.pretest = function(e) {
|
2720
2745
|
return this.re.pretest.test(e);
|
2721
2746
|
};
|
2722
|
-
|
2747
|
+
S.prototype.testSchemaAt = function(e, t, n) {
|
2723
2748
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
2724
2749
|
};
|
2725
|
-
|
2750
|
+
S.prototype.match = function(e) {
|
2726
2751
|
const t = [];
|
2727
2752
|
let n = 0;
|
2728
2753
|
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Au(this, n)), n = this.__last_index__);
|
@@ -2731,7 +2756,7 @@ w.prototype.match = function(e) {
|
|
2731
2756
|
t.push(Au(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
2732
2757
|
return t.length ? t : null;
|
2733
2758
|
};
|
2734
|
-
|
2759
|
+
S.prototype.matchAtStart = function(e) {
|
2735
2760
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2736
2761
|
return null;
|
2737
2762
|
const t = this.re.schema_at_start.exec(e);
|
@@ -2740,39 +2765,39 @@ w.prototype.matchAtStart = function(e) {
|
|
2740
2765
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
2741
2766
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Au(this, 0)) : null;
|
2742
2767
|
};
|
2743
|
-
|
2768
|
+
S.prototype.tlds = function(e, t) {
|
2744
2769
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
2745
2770
|
return n !== c[r - 1];
|
2746
2771
|
}).reverse(), au(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, au(this), this);
|
2747
2772
|
};
|
2748
|
-
|
2773
|
+
S.prototype.normalize = function(e) {
|
2749
2774
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
2750
2775
|
};
|
2751
|
-
|
2776
|
+
S.prototype.onCompile = function() {
|
2752
2777
|
};
|
2753
|
-
const Z = 2147483647, z = 36,
|
2778
|
+
const Z = 2147483647, z = 36, zu = 1, Y = 26, nn = 38, rn = 700, x0 = 72, _0 = 128, m0 = "-", cn = /^xn--/, on = /[^\0-\x7F]/, an = /[\x2E\u3002\uFF0E\uFF61]/g, sn = {
|
2754
2779
|
overflow: "Overflow: input needs wider integers to process",
|
2755
2780
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
2756
2781
|
"invalid-input": "Invalid input"
|
2757
|
-
}, ku = z -
|
2782
|
+
}, ku = z - zu, M = Math.floor, Cu = String.fromCharCode;
|
2758
2783
|
function P(u) {
|
2759
|
-
throw new RangeError(
|
2784
|
+
throw new RangeError(sn[u]);
|
2760
2785
|
}
|
2761
|
-
function
|
2786
|
+
function ln(u, e) {
|
2762
2787
|
const t = [];
|
2763
2788
|
let n = u.length;
|
2764
2789
|
for (; n--; )
|
2765
2790
|
t[n] = e(u[n]);
|
2766
2791
|
return t;
|
2767
2792
|
}
|
2768
|
-
function
|
2793
|
+
function g0(u, e) {
|
2769
2794
|
const t = u.split("@");
|
2770
2795
|
let n = "";
|
2771
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
2772
|
-
const r = u.split("."), c =
|
2796
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(an, ".");
|
2797
|
+
const r = u.split("."), c = ln(r, e).join(".");
|
2773
2798
|
return n + c;
|
2774
2799
|
}
|
2775
|
-
function
|
2800
|
+
function k0(u) {
|
2776
2801
|
const e = [];
|
2777
2802
|
let t = 0;
|
2778
2803
|
const n = u.length;
|
@@ -2786,78 +2811,78 @@ function _0(u) {
|
|
2786
2811
|
}
|
2787
2812
|
return e;
|
2788
2813
|
}
|
2789
|
-
const
|
2814
|
+
const fn = (u) => String.fromCodePoint(...u), dn = function(u) {
|
2790
2815
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : z;
|
2791
|
-
},
|
2816
|
+
}, u0 = function(u, e) {
|
2792
2817
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
2793
|
-
},
|
2818
|
+
}, C0 = function(u, e, t) {
|
2794
2819
|
let n = 0;
|
2795
|
-
for (u = t ? M(u /
|
2820
|
+
for (u = t ? M(u / rn) : u >> 1, u += M(u / e); u > ku * Y >> 1; n += z)
|
2796
2821
|
u = M(u / ku);
|
2797
|
-
return M(n + (ku + 1) * u / (u +
|
2798
|
-
},
|
2822
|
+
return M(n + (ku + 1) * u / (u + nn));
|
2823
|
+
}, D0 = function(u) {
|
2799
2824
|
const e = [], t = u.length;
|
2800
|
-
let n = 0, r =
|
2801
|
-
|
2802
|
-
for (let
|
2803
|
-
u.charCodeAt(
|
2804
|
-
for (let
|
2825
|
+
let n = 0, r = _0, c = x0, o = u.lastIndexOf(m0);
|
2826
|
+
o < 0 && (o = 0);
|
2827
|
+
for (let i = 0; i < o; ++i)
|
2828
|
+
u.charCodeAt(i) >= 128 && P("not-basic"), e.push(u.charCodeAt(i));
|
2829
|
+
for (let i = o > 0 ? o + 1 : 0; i < t; ) {
|
2805
2830
|
const a = n;
|
2806
2831
|
for (let l = 1, d = z; ; d += z) {
|
2807
|
-
|
2808
|
-
const b =
|
2832
|
+
i >= t && P("invalid-input");
|
2833
|
+
const b = dn(u.charCodeAt(i++));
|
2809
2834
|
b >= z && P("invalid-input"), b > M((Z - n) / l) && P("overflow"), n += b * l;
|
2810
|
-
const h = d <= c ?
|
2835
|
+
const h = d <= c ? zu : d >= c + Y ? Y : d - c;
|
2811
2836
|
if (b < h)
|
2812
2837
|
break;
|
2813
2838
|
const f = z - h;
|
2814
2839
|
l > M(Z / f) && P("overflow"), l *= f;
|
2815
2840
|
}
|
2816
2841
|
const s = e.length + 1;
|
2817
|
-
c =
|
2842
|
+
c = C0(n - a, s, a == 0), M(n / s) > Z - r && P("overflow"), r += M(n / s), n %= s, e.splice(n++, 0, r);
|
2818
2843
|
}
|
2819
2844
|
return String.fromCodePoint(...e);
|
2820
|
-
},
|
2845
|
+
}, E0 = function(u) {
|
2821
2846
|
const e = [];
|
2822
|
-
u =
|
2847
|
+
u = k0(u);
|
2823
2848
|
const t = u.length;
|
2824
|
-
let n =
|
2849
|
+
let n = _0, r = 0, c = x0;
|
2825
2850
|
for (const a of u)
|
2826
2851
|
a < 128 && e.push(Cu(a));
|
2827
|
-
const
|
2828
|
-
let
|
2829
|
-
for (
|
2852
|
+
const o = e.length;
|
2853
|
+
let i = o;
|
2854
|
+
for (o && e.push(m0); i < t; ) {
|
2830
2855
|
let a = Z;
|
2831
2856
|
for (const l of u)
|
2832
2857
|
l >= n && l < a && (a = l);
|
2833
|
-
const s =
|
2858
|
+
const s = i + 1;
|
2834
2859
|
a - n > M((Z - r) / s) && P("overflow"), r += (a - n) * s, n = a;
|
2835
2860
|
for (const l of u)
|
2836
2861
|
if (l < n && ++r > Z && P("overflow"), l === n) {
|
2837
2862
|
let d = r;
|
2838
2863
|
for (let b = z; ; b += z) {
|
2839
|
-
const h = b <= c ?
|
2864
|
+
const h = b <= c ? zu : b >= c + Y ? Y : b - c;
|
2840
2865
|
if (d < h)
|
2841
2866
|
break;
|
2842
2867
|
const f = d - h, g = z - h;
|
2843
2868
|
e.push(
|
2844
|
-
Cu(
|
2869
|
+
Cu(u0(h + f % g, 0))
|
2845
2870
|
), d = M(f / g);
|
2846
2871
|
}
|
2847
|
-
e.push(Cu(
|
2872
|
+
e.push(Cu(u0(d, 0))), c = C0(r, s, i === o), r = 0, ++i;
|
2848
2873
|
}
|
2849
2874
|
++r, ++n;
|
2850
2875
|
}
|
2851
2876
|
return e.join("");
|
2852
|
-
},
|
2853
|
-
return
|
2854
|
-
return
|
2877
|
+
}, hn = function(u) {
|
2878
|
+
return g0(u, function(e) {
|
2879
|
+
return cn.test(e) ? D0(e.slice(4).toLowerCase()) : e;
|
2855
2880
|
});
|
2856
|
-
},
|
2857
|
-
return
|
2858
|
-
return
|
2881
|
+
}, bn = function(u) {
|
2882
|
+
return g0(u, function(e) {
|
2883
|
+
return on.test(e) ? "xn--" + E0(e) : e;
|
2859
2884
|
});
|
2860
|
-
},
|
2885
|
+
}, y0 = {
|
2861
2886
|
/**
|
2862
2887
|
* A string representing the current Punycode.js version number.
|
2863
2888
|
* @memberOf punycode
|
@@ -2872,14 +2897,14 @@ const rr = (u) => String.fromCodePoint(...u), nr = function(u) {
|
|
2872
2897
|
* @type Object
|
2873
2898
|
*/
|
2874
2899
|
ucs2: {
|
2875
|
-
decode:
|
2876
|
-
encode:
|
2900
|
+
decode: k0,
|
2901
|
+
encode: fn
|
2877
2902
|
},
|
2878
|
-
decode:
|
2879
|
-
encode:
|
2880
|
-
toASCII:
|
2881
|
-
toUnicode:
|
2882
|
-
},
|
2903
|
+
decode: D0,
|
2904
|
+
encode: E0,
|
2905
|
+
toASCII: bn,
|
2906
|
+
toUnicode: hn
|
2907
|
+
}, pn = {
|
2883
2908
|
options: {
|
2884
2909
|
// Enable HTML tags in source
|
2885
2910
|
html: !1,
|
@@ -2915,7 +2940,7 @@ const rr = (u) => String.fromCodePoint(...u), nr = function(u) {
|
|
2915
2940
|
block: {},
|
2916
2941
|
inline: {}
|
2917
2942
|
}
|
2918
|
-
},
|
2943
|
+
}, xn = {
|
2919
2944
|
options: {
|
2920
2945
|
// Enable HTML tags in source
|
2921
2946
|
html: !1,
|
@@ -2970,7 +2995,7 @@ const rr = (u) => String.fromCodePoint(...u), nr = function(u) {
|
|
2970
2995
|
]
|
2971
2996
|
}
|
2972
2997
|
}
|
2973
|
-
},
|
2998
|
+
}, _n = {
|
2974
2999
|
options: {
|
2975
3000
|
// Enable HTML tags in source
|
2976
3001
|
html: !0,
|
@@ -3044,47 +3069,47 @@ const rr = (u) => String.fromCodePoint(...u), nr = function(u) {
|
|
3044
3069
|
]
|
3045
3070
|
}
|
3046
3071
|
}
|
3047
|
-
},
|
3048
|
-
default:
|
3049
|
-
zero:
|
3050
|
-
commonmark:
|
3051
|
-
},
|
3052
|
-
function
|
3072
|
+
}, mn = {
|
3073
|
+
default: pn,
|
3074
|
+
zero: xn,
|
3075
|
+
commonmark: _n
|
3076
|
+
}, gn = /^(vbscript|javascript|file|data):/, kn = /^data:image\/(gif|png|jpeg|webp);/;
|
3077
|
+
function Cn(u) {
|
3053
3078
|
const e = u.trim().toLowerCase();
|
3054
|
-
return
|
3079
|
+
return gn.test(e) ? kn.test(e) : !0;
|
3055
3080
|
}
|
3056
|
-
const
|
3057
|
-
function
|
3058
|
-
const e =
|
3059
|
-
if (e.hostname && (!e.protocol ||
|
3081
|
+
const A0 = ["http:", "https:", "mailto:"];
|
3082
|
+
function Dn(u) {
|
3083
|
+
const e = vu(u, !0);
|
3084
|
+
if (e.hostname && (!e.protocol || A0.indexOf(e.protocol) >= 0))
|
3060
3085
|
try {
|
3061
|
-
e.hostname =
|
3086
|
+
e.hostname = y0.toASCII(e.hostname);
|
3062
3087
|
} catch {
|
3063
3088
|
}
|
3064
|
-
return uu(
|
3089
|
+
return uu(Fu(e));
|
3065
3090
|
}
|
3066
|
-
function
|
3067
|
-
const e =
|
3068
|
-
if (e.hostname && (!e.protocol ||
|
3091
|
+
function En(u) {
|
3092
|
+
const e = vu(u, !0);
|
3093
|
+
if (e.hostname && (!e.protocol || A0.indexOf(e.protocol) >= 0))
|
3069
3094
|
try {
|
3070
|
-
e.hostname =
|
3095
|
+
e.hostname = y0.toUnicode(e.hostname);
|
3071
3096
|
} catch {
|
3072
3097
|
}
|
3073
|
-
return V(
|
3098
|
+
return V(Fu(e), V.defaultChars + "%");
|
3074
3099
|
}
|
3075
|
-
function
|
3076
|
-
if (!(this instanceof
|
3077
|
-
return new
|
3078
|
-
e ||
|
3100
|
+
function T(u, e) {
|
3101
|
+
if (!(this instanceof T))
|
3102
|
+
return new T(u, e);
|
3103
|
+
e || Su(u) || (e = u || {}, u = "default"), this.inline = new tu(), this.block = new du(), this.core = new Iu(), this.renderer = new W(), this.linkify = new S(), this.validateLink = Cn, this.normalizeLink = Dn, this.normalizeLinkText = En, this.utils = ye, this.helpers = lu({}, we), this.options = {}, this.configure(u), e && this.set(e);
|
3079
3104
|
}
|
3080
|
-
|
3105
|
+
T.prototype.set = function(u) {
|
3081
3106
|
return lu(this.options, u), this;
|
3082
3107
|
};
|
3083
|
-
|
3108
|
+
T.prototype.configure = function(u) {
|
3084
3109
|
const e = this;
|
3085
|
-
if (
|
3110
|
+
if (Su(u)) {
|
3086
3111
|
const t = u;
|
3087
|
-
if (u =
|
3112
|
+
if (u = mn[t], !u)
|
3088
3113
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
3089
3114
|
}
|
3090
3115
|
if (!u)
|
@@ -3093,7 +3118,7 @@ S.prototype.configure = function(u) {
|
|
3093
3118
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
3094
3119
|
}), this;
|
3095
3120
|
};
|
3096
|
-
|
3121
|
+
T.prototype.enable = function(u, e) {
|
3097
3122
|
let t = [];
|
3098
3123
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
3099
3124
|
t = t.concat(this[r].ruler.enable(u, !0));
|
@@ -3105,7 +3130,7 @@ S.prototype.enable = function(u, e) {
|
|
3105
3130
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
3106
3131
|
return this;
|
3107
3132
|
};
|
3108
|
-
|
3133
|
+
T.prototype.disable = function(u, e) {
|
3109
3134
|
let t = [];
|
3110
3135
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
3111
3136
|
t = t.concat(this[r].ruler.disable(u, !0));
|
@@ -3117,57 +3142,86 @@ S.prototype.disable = function(u, e) {
|
|
3117
3142
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
3118
3143
|
return this;
|
3119
3144
|
};
|
3120
|
-
|
3145
|
+
T.prototype.use = function(u) {
|
3121
3146
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
3122
3147
|
return u.apply(u, e), this;
|
3123
3148
|
};
|
3124
|
-
|
3149
|
+
T.prototype.parse = function(u, e) {
|
3125
3150
|
if (typeof u != "string")
|
3126
3151
|
throw new Error("Input data should be a String");
|
3127
3152
|
const t = new this.core.State(u, this, e);
|
3128
3153
|
return this.core.process(t), t.tokens;
|
3129
3154
|
};
|
3130
|
-
|
3155
|
+
T.prototype.render = function(u, e) {
|
3131
3156
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
3132
3157
|
};
|
3133
|
-
|
3158
|
+
T.prototype.parseInline = function(u, e) {
|
3134
3159
|
const t = new this.core.State(u, this, e);
|
3135
3160
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
3136
3161
|
};
|
3137
|
-
|
3162
|
+
T.prototype.renderInline = function(u, e) {
|
3138
3163
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
3139
3164
|
};
|
3140
|
-
const
|
3165
|
+
const yn = `: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}.output-container{max-width:100%;overflow:auto}.output-container .output-image{max-width:100%}
|
3141
3166
|
`;
|
3142
|
-
var
|
3143
|
-
for (var r = n > 1 ? void 0 : n ?
|
3144
|
-
(
|
3145
|
-
return n && r &&
|
3167
|
+
var An = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, nu = (u, e, t, n) => {
|
3168
|
+
for (var r = n > 1 ? void 0 : n ? Fn(e, t) : e, c = u.length - 1, o; c >= 0; c--)
|
3169
|
+
(o = u[c]) && (r = (n ? o(e, t, r) : o(r)) || r);
|
3170
|
+
return n && r && An(e, t, r), r;
|
3146
3171
|
};
|
3147
|
-
let j = class extends
|
3172
|
+
let j = class extends B0 {
|
3148
3173
|
constructor() {
|
3149
|
-
super(
|
3174
|
+
super(), this.cells = [], this.cellTypes = [], this._clipboardCell = null, this._draggedCellIndex = null, this._selectedCellIndex = null, this._handleKeydown = this._handleKeydown.bind(this);
|
3150
3175
|
}
|
3151
3176
|
// Add a cell to the notebook
|
3152
3177
|
addCell(u) {
|
3153
|
-
|
3178
|
+
const e = this.createNewCell(u);
|
3179
|
+
this._clipboardCell = { ...e }, this.pasteCell(), this._clipboardCell = null;
|
3180
|
+
}
|
3181
|
+
connectedCallback() {
|
3182
|
+
super.connectedCallback(), document.addEventListener("keydown", this._handleKeydown);
|
3154
3183
|
}
|
3155
3184
|
// Copy the selected cell
|
3156
3185
|
copyCell() {
|
3157
3186
|
this._selectedCellIndex !== null && (this._clipboardCell = { ...this.cells[this._selectedCellIndex] });
|
3158
3187
|
}
|
3188
|
+
createNewCell(u) {
|
3189
|
+
const e = u === "markdown" ? u : this.defaultLanguage || "python";
|
3190
|
+
return {
|
3191
|
+
cell_type: u,
|
3192
|
+
code: "",
|
3193
|
+
execution_count: null,
|
3194
|
+
language: e,
|
3195
|
+
metadata: {
|
3196
|
+
tags: [],
|
3197
|
+
trusted: !1
|
3198
|
+
},
|
3199
|
+
outputs: [],
|
3200
|
+
source: ""
|
3201
|
+
};
|
3202
|
+
}
|
3159
3203
|
// Cut the selected cell
|
3160
3204
|
cutCell() {
|
3161
3205
|
this._selectedCellIndex !== null && (this._clipboardCell = this.cells[this._selectedCellIndex], this.deleteCell());
|
3162
3206
|
}
|
3163
3207
|
// Delete the selected cell
|
3164
3208
|
deleteCell() {
|
3165
|
-
this._selectedCellIndex !== null
|
3209
|
+
if (this._selectedCellIndex !== null) {
|
3210
|
+
this.cells.splice(this._selectedCellIndex, 1);
|
3211
|
+
const u = Math.min(
|
3212
|
+
this._selectedCellIndex + 1,
|
3213
|
+
this.cells.length - 1
|
3214
|
+
);
|
3215
|
+
this.scrollToSelectedCell(u), this.dispatchUpdatedCells();
|
3216
|
+
}
|
3166
3217
|
}
|
3167
3218
|
// Deselect all the cells
|
3168
3219
|
deselectAllCells() {
|
3169
3220
|
this.cells.forEach((u) => u.selected = !1);
|
3170
3221
|
}
|
3222
|
+
disconnectedCallback() {
|
3223
|
+
super.disconnectedCallback(), document.removeEventListener("keydown", this._handleKeydown);
|
3224
|
+
}
|
3171
3225
|
// Dispatch a custom cell event
|
3172
3226
|
dispatchCustomCellEvent(u, e) {
|
3173
3227
|
!e && this._selectedCellIndex && (e = this.cells[this._selectedCellIndex]), e && this.dispatchEvent(
|
@@ -3193,8 +3247,8 @@ let j = class extends w0 {
|
|
3193
3247
|
}), this.selectCell(0), this.requestUpdate());
|
3194
3248
|
}
|
3195
3249
|
getDragImage(u) {
|
3196
|
-
const e = this.cells[u], t =
|
3197
|
-
<div class="dragImage" style="
|
3250
|
+
const e = this.cells[u], t = v`
|
3251
|
+
<div class="dragImage" style="width: 80%;">
|
3198
3252
|
<cv-notebook-cell
|
3199
3253
|
.code="${e.code}"
|
3200
3254
|
.language="${e.language}"
|
@@ -3205,12 +3259,25 @@ let j = class extends w0 {
|
|
3205
3259
|
></cv-notebook-cell>
|
3206
3260
|
</div>
|
3207
3261
|
`, n = document.createElement("div");
|
3208
|
-
return
|
3262
|
+
return z0(t, n), n;
|
3263
|
+
}
|
3264
|
+
scrollToSelectedCell(u) {
|
3265
|
+
var n, r;
|
3266
|
+
this.selectCell(u);
|
3267
|
+
const e = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
|
3268
|
+
`#cell-${this._selectedCellIndex}`
|
3269
|
+
), t = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
|
3270
|
+
"#notebook-cells"
|
3271
|
+
);
|
3272
|
+
if (e && t) {
|
3273
|
+
const c = t.getBoundingClientRect(), o = e.getBoundingClientRect(), i = o.top < c.top, a = o.bottom > c.bottom;
|
3274
|
+
i ? t.scrollTop = e.offsetTop - t.offsetTop : a && (t.scrollTop = e.offsetTop - t.offsetTop - t.clientHeight + e.clientHeight);
|
3275
|
+
}
|
3209
3276
|
}
|
3210
3277
|
// Dispatch an event when the cell type is changed
|
3211
3278
|
handleCellTypeChange(u) {
|
3212
3279
|
const e = this.cellTypes[u.detail.index];
|
3213
|
-
this.dispatchEvent(
|
3280
|
+
this._selectedCellIndex && this.cells[this._selectedCellIndex].cell_type !== e.type && this.dispatchEvent(
|
3214
3281
|
new CustomEvent("cell-type-changed", {
|
3215
3282
|
bubbles: !0,
|
3216
3283
|
cancelable: !0,
|
@@ -3258,21 +3325,47 @@ let j = class extends w0 {
|
|
3258
3325
|
// Handle enter key event of cell input
|
3259
3326
|
handleInputKeydown(u) {
|
3260
3327
|
var t;
|
3328
|
+
u.stopImmediatePropagation();
|
3261
3329
|
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
3262
3330
|
"#cell-input"
|
3263
3331
|
);
|
3264
|
-
u.key === "Enter" && e && this.dispatchEvent(
|
3332
|
+
u.key === "Enter" && e && (this.dispatchEvent(
|
3265
3333
|
new CustomEvent("input-entered", {
|
3266
3334
|
bubbles: !0,
|
3267
3335
|
cancelable: !0,
|
3268
3336
|
detail: { value: e.value }
|
3269
3337
|
})
|
3270
|
-
);
|
3338
|
+
), e.blur());
|
3339
|
+
}
|
3340
|
+
_handleKeydown(u) {
|
3341
|
+
var t, n, r, c;
|
3342
|
+
let e = (t = this.cells) == null ? void 0 : t.findIndex((o) => o.selected);
|
3343
|
+
switch (u.key) {
|
3344
|
+
case "ArrowUp":
|
3345
|
+
e = Math.max(e - 1, 0), this.scrollToSelectedCell(e);
|
3346
|
+
break;
|
3347
|
+
case "ArrowDown":
|
3348
|
+
e = Math.min(
|
3349
|
+
e + 1,
|
3350
|
+
this.cells.length - 1
|
3351
|
+
), this.scrollToSelectedCell(e);
|
3352
|
+
break;
|
3353
|
+
case "Enter":
|
3354
|
+
if (u.shiftKey)
|
3355
|
+
this.runCell();
|
3356
|
+
else {
|
3357
|
+
const o = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
|
3358
|
+
`#cell-${e}`
|
3359
|
+
), i = (r = o == null ? void 0 : o.shadowRoot) == null ? void 0 : r.querySelector("cv-code-editor");
|
3360
|
+
(c = i == null ? void 0 : i.editor) == null || c.focus();
|
3361
|
+
}
|
3362
|
+
break;
|
3363
|
+
}
|
3271
3364
|
}
|
3272
3365
|
// Shows the cell editor on clicking output for markdown cells
|
3273
3366
|
handleOutputCLick(u) {
|
3274
3367
|
const e = this.cells[u];
|
3275
|
-
e.language === "markdown" && (e.showEditor = !0);
|
3368
|
+
e.language === "markdown" && (e.showEditor = !0, this.dispatchUpdatedCells());
|
3276
3369
|
}
|
3277
3370
|
// Paste the copied/cut cell in the desired position
|
3278
3371
|
pasteCell() {
|
@@ -3283,31 +3376,35 @@ let j = class extends w0 {
|
|
3283
3376
|
}
|
3284
3377
|
renderCellOutput(u) {
|
3285
3378
|
var e;
|
3286
|
-
return (e = u.outputs) != null && e.length ?
|
3287
|
-
(t) =>
|
3288
|
-
const r =
|
3289
|
-
r.style.maxWidth = "100%", r.style.overflow = "auto";
|
3290
|
-
const c = S({ html: !0 });
|
3379
|
+
return (e = u.outputs) != null && e.length ? v`${u.outputs.map(
|
3380
|
+
(t) => v`${t.data && Object.keys(t.data).map((n) => {
|
3381
|
+
const r = T({ html: !0 });
|
3291
3382
|
switch (n) {
|
3292
3383
|
case "text/markdown":
|
3293
|
-
|
3294
|
-
|
3384
|
+
return v`<div class="output-container">
|
3385
|
+
${qu(r.render(t.data[n]))}
|
3386
|
+
</div>`;
|
3295
3387
|
case "text/html":
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3388
|
+
return v`<div class="output-container">
|
3389
|
+
${qu(t.data[n])}
|
3390
|
+
</div>`;
|
3391
|
+
case "image/png":
|
3392
|
+
return v`<div class="output-container">
|
3393
|
+
<img
|
3394
|
+
class="output-image"
|
3395
|
+
draggable="false"
|
3396
|
+
src=${`data:image/png;base64, ${t.data[n]}`}
|
3397
|
+
/>
|
3398
|
+
</div>`;
|
3399
|
+
default:
|
3400
|
+
return v``;
|
3303
3401
|
}
|
3304
|
-
return r;
|
3305
3402
|
})}`
|
3306
|
-
)}` :
|
3403
|
+
)}` : v``;
|
3307
3404
|
}
|
3308
3405
|
render() {
|
3309
3406
|
var u;
|
3310
|
-
return
|
3407
|
+
return v`<div class="notebook">
|
3311
3408
|
<section class="notebookHeaderActions">
|
3312
3409
|
<cv-icon-button
|
3313
3410
|
icon="content_cut"
|
@@ -3348,17 +3445,17 @@ let j = class extends w0 {
|
|
3348
3445
|
@selected="${(e) => this.handleCellTypeChange(e)}"
|
3349
3446
|
>
|
3350
3447
|
${(u = this.cellTypes) == null ? void 0 : u.map(
|
3351
|
-
(e) =>
|
3448
|
+
(e) => v`<cv-list-item value="${e.type}"
|
3352
3449
|
>${e.name}</cv-list-item
|
3353
3450
|
>`
|
3354
3451
|
)}
|
3355
3452
|
</cv-select>
|
3356
3453
|
</section>
|
3357
|
-
<section class="notebookCells">
|
3454
|
+
<section class="notebookCells" id="notebook-cells">
|
3358
3455
|
${this.cells.map(
|
3359
3456
|
(e, t) => {
|
3360
3457
|
var n, r;
|
3361
|
-
return
|
3458
|
+
return v`<cv-notebook-cell
|
3362
3459
|
.code="${e.code}"
|
3363
3460
|
.index="${t}"
|
3364
3461
|
.language="${e.language}"
|
@@ -3377,28 +3474,29 @@ let j = class extends w0 {
|
|
3377
3474
|
>
|
3378
3475
|
<div
|
3379
3476
|
slot="output"
|
3380
|
-
@
|
3477
|
+
@dblclick="${() => this.handleOutputCLick(t)}"
|
3381
3478
|
>
|
3382
3479
|
${this.renderCellOutput(e)}
|
3383
3480
|
</div>
|
3384
3481
|
${((n = e.inputs) == null ? void 0 : n.length) && e.inputs.map(
|
3385
|
-
(c) =>
|
3482
|
+
(c) => v`
|
3386
3483
|
<div class="input-container" slot="input">
|
3387
3484
|
<cv-typography scale="body2">
|
3388
|
-
${c.prompt}
|
3485
|
+
${c.prompt}
|
3389
3486
|
</cv-typography>
|
3390
3487
|
<input
|
3391
3488
|
id="cell-input"
|
3392
3489
|
type="${c.password ? "password" : "text"}"
|
3393
3490
|
@keydown="${this.handleInputKeydown}"
|
3394
3491
|
placeholder="Press enter"
|
3492
|
+
autofocus
|
3395
3493
|
/>
|
3396
3494
|
</div>
|
3397
3495
|
`
|
3398
3496
|
)}
|
3399
|
-
${((r = e.errors) == null ? void 0 : r.length) &&
|
3497
|
+
${((r = e.errors) == null ? void 0 : r.length) && v`<div slot="error">
|
3400
3498
|
${e.errors && e.errors.map(
|
3401
|
-
(c) =>
|
3499
|
+
(c) => v`<cv-alert
|
3402
3500
|
descriptionText="${c}"
|
3403
3501
|
state="negative"
|
3404
3502
|
icon="error"
|
@@ -3413,19 +3511,10 @@ let j = class extends w0 {
|
|
3413
3511
|
)}
|
3414
3512
|
</section>
|
3415
3513
|
<section class="notebookActions">
|
3416
|
-
<cv-button
|
3417
|
-
outlined
|
3418
|
-
@click=${() => this.addCell({
|
3419
|
-
code: "",
|
3420
|
-
language: this.defaultLanguage || "python"
|
3421
|
-
})}
|
3422
|
-
>
|
3514
|
+
<cv-button outlined @click=${() => this.addCell("code")}>
|
3423
3515
|
<cv-icon style="font-size: 20px;">add</cv-icon>Code cell
|
3424
3516
|
</cv-button>
|
3425
|
-
<cv-button
|
3426
|
-
outlined
|
3427
|
-
@click=${() => this.addCell({ code: "", language: "markdown" })}
|
3428
|
-
>
|
3517
|
+
<cv-button outlined @click=${() => this.addCell("markdown")}>
|
3429
3518
|
<cv-icon style="font-size: 20px;">add</cv-icon>Markdown
|
3430
3519
|
</cv-button>
|
3431
3520
|
</section>
|
@@ -3438,47 +3527,50 @@ let j = class extends w0 {
|
|
3438
3527
|
runCell() {
|
3439
3528
|
if (this._selectedCellIndex !== null) {
|
3440
3529
|
const u = this.cells[this._selectedCellIndex];
|
3441
|
-
this.dispatchCustomCellEvent("run-cell", u);
|
3530
|
+
this.dispatchCustomCellEvent("run-cell", u), this._selectedCellIndex + 1 < this.cells.length && this.scrollToSelectedCell(this._selectedCellIndex + 1);
|
3442
3531
|
}
|
3443
3532
|
this.requestUpdate();
|
3444
3533
|
}
|
3445
3534
|
selectCell(u) {
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3535
|
+
if (u !== this._selectedCellIndex) {
|
3536
|
+
this.deselectAllCells(), this._selectedCellIndex = u;
|
3537
|
+
const e = this.cells[u];
|
3538
|
+
e.selected = !0, this.cellType = e.language === "markdown" ? "markdown" : "code", this.requestUpdate();
|
3539
|
+
}
|
3449
3540
|
}
|
3450
3541
|
shouldRenderEditor(u) {
|
3451
3542
|
var e;
|
3452
3543
|
return u.language !== "markdown" || u.language === "markdown" && !((e = u.outputs) != null && e.length);
|
3453
3544
|
}
|
3454
3545
|
updated(u) {
|
3455
|
-
u.has("cells") && this.cells.forEach((e) => {
|
3456
|
-
|
3546
|
+
u.has("cells") && this.cells.forEach((e, t) => {
|
3547
|
+
var n;
|
3548
|
+
e.showEditor = this.shouldRenderEditor(e), (n = e.inputs) != null && n.length && this.scrollToSelectedCell(t);
|
3457
3549
|
});
|
3458
3550
|
}
|
3459
3551
|
};
|
3460
3552
|
j.styles = [
|
3461
|
-
|
3462
|
-
${
|
3553
|
+
T0`
|
3554
|
+
${I0(yn)}
|
3463
3555
|
`
|
3464
3556
|
];
|
3465
|
-
|
3557
|
+
nu([
|
3466
3558
|
su({ type: Array })
|
3467
3559
|
], j.prototype, "cells", 2);
|
3468
|
-
|
3560
|
+
nu([
|
3469
3561
|
su({ type: Array })
|
3470
3562
|
], j.prototype, "cellTypes", 2);
|
3471
|
-
|
3563
|
+
nu([
|
3472
3564
|
su({ type: String })
|
3473
3565
|
], j.prototype, "cellType", 2);
|
3474
|
-
|
3566
|
+
nu([
|
3475
3567
|
su({ type: String })
|
3476
3568
|
], j.prototype, "defaultLanguage", 2);
|
3477
|
-
j =
|
3478
|
-
|
3569
|
+
j = nu([
|
3570
|
+
M0("cv-notebook")
|
3479
3571
|
], j);
|
3480
|
-
const
|
3572
|
+
const fr = j;
|
3481
3573
|
export {
|
3482
3574
|
j as CovalentNotebook,
|
3483
|
-
|
3575
|
+
fr as default
|
3484
3576
|
};
|