@opentiny/tiny-robot 0.3.0-alpha.2 → 0.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-group/index.js +16 -16
- package/dist/bubble/index.js +855 -852
- package/dist/container/index.js +10 -10
- package/dist/feedback/index.js +43 -43
- package/dist/flow-layout-buttons/index.js +10 -10
- package/dist/history/index.js +39 -39
- package/dist/question/index.js +66 -66
- package/dist/sender/index.js +130 -130
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +58 -58
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +25 -25
- package/dist/tiny-robot-svgs.js +172 -172
- package/package.json +3 -3
package/dist/bubble/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var bn = Object.defineProperty;
|
|
2
2
|
var _n = (u, e, t) => e in u ? bn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
3
|
var Iu = (u, e, t) => _n(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as ku, ref as Se, createElementBlock as M, openBlock as T, createElementVNode as I, createVNode as ee, toDisplayString as xu, unref as uu, normalizeClass as mu, withDirectives as
|
|
4
|
+
import { defineComponent as ku, ref as Se, createElementBlock as M, openBlock as T, createElementVNode as I, createVNode as ee, toDisplayString as xu, unref as uu, normalizeClass as mu, withDirectives as Ct, vShow as At, computed as Ou, useCssModule as mn, createCommentVNode as Nu, createTextVNode as xn, inject as j0, useAttrs as gn, createBlock as ru, resolveDynamicComponent as Au, mergeProps as Pu, useCssVars as kn, useSlots as En, renderSlot as Ae, Fragment as te, renderList as ue, normalizeProps as n0, watch as Cn, createSlots as G0, withCtx as W0, guardReactiveProps as An, h as Z0, provide as V0 } from "vue";
|
|
5
5
|
import { _ as Dn } from "../loading.js";
|
|
6
6
|
import { t as yn } from "../utils.js";
|
|
7
|
-
import {
|
|
7
|
+
import { l as Dt, M as Fn, n as Tn, z as Sn } from "../tiny-robot-svgs.js";
|
|
8
8
|
import { _ as Uu } from "../_plugin-vue_export-helper.js";
|
|
9
9
|
import { u as wn } from "../index2.js";
|
|
10
10
|
class s0 {
|
|
@@ -22,12 +22,12 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
22
22
|
I("span", null, xu(e.title), 1),
|
|
23
23
|
ee(uu(Dt), {
|
|
24
24
|
class: mu(["expand-icon", { "rotate-180": t.value }]),
|
|
25
|
-
onClick: r[0] || (r[0] = (
|
|
25
|
+
onClick: r[0] || (r[0] = (c) => t.value = !t.value)
|
|
26
26
|
}, null, 8, ["class"])
|
|
27
27
|
]),
|
|
28
28
|
I("div", Mn, [
|
|
29
|
-
|
|
30
|
-
[
|
|
29
|
+
Ct(I("div", { class: "tr-bubble__step-text-content" }, xu(e.content), 513), [
|
|
30
|
+
[At, !t.value]
|
|
31
31
|
])
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
@@ -53,25 +53,25 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
53
53
|
formatPretty: { type: Boolean }
|
|
54
54
|
},
|
|
55
55
|
setup(u) {
|
|
56
|
-
const e = u, t = Se(!1), n = Ou(() => e.status === "running" ? "正在调用" : e.status === "success" ? "已调用" : e.status === "failed" ? "调用失败" : "已取消"), r = mn(),
|
|
56
|
+
const e = u, t = Se(!1), n = Ou(() => e.status === "running" ? "正在调用" : e.status === "success" ? "已调用" : e.status === "failed" ? "调用失败" : "已取消"), r = mn(), c = (i) => {
|
|
57
57
|
if (!i)
|
|
58
58
|
return "";
|
|
59
|
-
let
|
|
59
|
+
let o = "";
|
|
60
60
|
const a = e.formatPretty ? 2 : 0;
|
|
61
61
|
try {
|
|
62
|
-
typeof i == "string" ?
|
|
62
|
+
typeof i == "string" ? o = JSON.stringify(JSON.parse(i), null, a) : o = JSON.stringify(i, null, a);
|
|
63
63
|
} catch (s) {
|
|
64
64
|
console.warn(s);
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return o = o.replace(
|
|
67
67
|
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
68
68
|
(s) => {
|
|
69
69
|
let f = "number";
|
|
70
70
|
return /^"/.test(s) ? f = /:$/.test(s) ? "key" : "string" : /true|false/.test(s) ? f = "boolean" : /null/.test(s) && (f = "null"), `<span class="${r[f]}">${s}</span>`;
|
|
71
71
|
}
|
|
72
|
-
),
|
|
72
|
+
), o;
|
|
73
73
|
};
|
|
74
|
-
return (i,
|
|
74
|
+
return (i, o) => (T(), M("div", zn, [
|
|
75
75
|
I("div", qn, [
|
|
76
76
|
I("div", Un, [
|
|
77
77
|
ee(uu(Fn), { class: "tr-bubble__step-tool-icon" }),
|
|
@@ -83,15 +83,15 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
83
83
|
I("div", jn, [
|
|
84
84
|
ee(uu(Tn), {
|
|
85
85
|
class: mu(["expand-icon", { "-rotate-90": t.value }]),
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: o[0] || (o[0] = (a) => t.value = !t.value)
|
|
87
87
|
}, null, 8, ["class"])
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
90
|
t.value ? Nu("", !0) : (T(), M("div", Gn, [
|
|
91
|
-
|
|
91
|
+
o[1] || (o[1] = I("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
92
92
|
I("div", {
|
|
93
93
|
class: "tr-bubble__step-tool-params-content",
|
|
94
|
-
innerHTML:
|
|
94
|
+
innerHTML: c(e.params)
|
|
95
95
|
}, null, 8, Wn)
|
|
96
96
|
]))
|
|
97
97
|
]));
|
|
@@ -115,13 +115,13 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
115
115
|
type: {}
|
|
116
116
|
},
|
|
117
117
|
setup(u) {
|
|
118
|
-
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(),
|
|
118
|
+
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(), c = (s) => {
|
|
119
119
|
const f = { ...r, ...n }, d = e.get(s) || t;
|
|
120
120
|
return typeof d == "function" ? { isComponent: !1, vNodeOrComponent: d(f) } : d instanceof s0 ? { isComponent: !1, vNodeOrComponent: d.render(f) } : typeof d == "object" && "component" in d ? { isComponent: !0, vNodeOrComponent: d.component, defaultProps: d.defaultProps } : { isComponent: !0, vNodeOrComponent: d };
|
|
121
|
-
}, { isComponent: i, vNodeOrComponent:
|
|
122
|
-
return (s, f) => uu(i) ? (T(), ru(
|
|
121
|
+
}, { isComponent: i, vNodeOrComponent: o, defaultProps: a } = c(n.type);
|
|
122
|
+
return (s, f) => uu(i) ? (T(), ru(Au(uu(o)), Pu({ key: 0 }, { ...uu(a), ...n, ...uu(r) }, {
|
|
123
123
|
"data-type": n.type
|
|
124
|
-
}), null, 16, ["data-type"])) : (T(), ru(
|
|
124
|
+
}), null, 16, ["data-type"])) : (T(), ru(Au(uu(o)), {
|
|
125
125
|
key: 1,
|
|
126
126
|
"data-type": n.type
|
|
127
127
|
}, null, 8, ["data-type"]));
|
|
@@ -129,10 +129,10 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
129
129
|
}), nr = {
|
|
130
130
|
key: 0,
|
|
131
131
|
class: "tr-bubble__avatar"
|
|
132
|
-
}, rr = { class: "tr-bubble__content-wrapper" },
|
|
132
|
+
}, rr = { class: "tr-bubble__content-wrapper" }, cr = {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "tr-bubble__content-messages"
|
|
135
|
-
},
|
|
135
|
+
}, or = {
|
|
136
136
|
key: 1,
|
|
137
137
|
class: "tr-bubble__body-text"
|
|
138
138
|
}, ir = {
|
|
@@ -164,29 +164,29 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
164
164
|
const e = u, t = En(), n = Ou(() => {
|
|
165
165
|
const i = e.contentRenderer;
|
|
166
166
|
return i ? typeof i == "function" ? { isComponent: !1, vNodeOrComponent: i(e) } : i instanceof s0 ? { isComponent: !1, vNodeOrComponent: i.render(e) } : typeof i == "object" && "component" in i ? { isComponent: !0, vNodeOrComponent: i.component, defaultProps: i.defaultProps } : { isComponent: !0, vNodeOrComponent: i } : null;
|
|
167
|
-
}), r = Ou(() => e.content),
|
|
168
|
-
return (i,
|
|
167
|
+
}), r = Ou(() => e.content), c = Ou(() => e.placement === "start");
|
|
168
|
+
return (i, o) => {
|
|
169
169
|
var a;
|
|
170
170
|
return T(), M("div", {
|
|
171
171
|
class: mu([
|
|
172
172
|
"tr-bubble",
|
|
173
173
|
{
|
|
174
|
-
"placement-start":
|
|
175
|
-
"placement-end": !
|
|
174
|
+
"placement-start": c.value,
|
|
175
|
+
"placement-end": !c.value
|
|
176
176
|
}
|
|
177
177
|
])
|
|
178
178
|
}, [
|
|
179
179
|
e.avatar ? (T(), M("div", nr, [
|
|
180
|
-
(T(), ru(
|
|
180
|
+
(T(), ru(Au(e.avatar)))
|
|
181
181
|
])) : Nu("", !0),
|
|
182
182
|
I("div", rr, [
|
|
183
|
-
e.loading ?
|
|
183
|
+
e.loading ? Ae(i.$slots, "loading", {
|
|
184
184
|
key: 0,
|
|
185
185
|
bubbleProps: e
|
|
186
186
|
}, () => [
|
|
187
187
|
I("div", {
|
|
188
188
|
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
189
|
-
},
|
|
189
|
+
}, o[0] || (o[0] = [
|
|
190
190
|
I("img", {
|
|
191
191
|
src: Dn,
|
|
192
192
|
alt: "loading",
|
|
@@ -197,19 +197,19 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
197
197
|
key: 1,
|
|
198
198
|
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
199
199
|
}, [
|
|
200
|
-
(a = e.messages) != null && a.length ? (T(), M("div",
|
|
200
|
+
(a = e.messages) != null && a.length ? (T(), M("div", cr, [
|
|
201
201
|
(T(!0), M(te, null, ue(e.messages, (s, f) => (T(), ru(tr, Pu({ key: f }, { ref_for: !0 }, s), null, 16))), 128))
|
|
202
|
-
])) :
|
|
202
|
+
])) : Ae(i.$slots, "default", {
|
|
203
203
|
key: 1,
|
|
204
204
|
bubbleProps: e
|
|
205
205
|
}, () => [
|
|
206
206
|
n.value ? (T(), M(te, { key: 0 }, [
|
|
207
|
-
n.value.isComponent ? (T(), ru(
|
|
208
|
-
], 64)) : (T(), M("span",
|
|
207
|
+
n.value.isComponent ? (T(), ru(Au(n.value.vNodeOrComponent), n0(Pu({ key: 0 }, { ...n.value.defaultProps, ...e })), null, 16)) : (T(), ru(Au(n.value.vNodeOrComponent), { key: 1 }))
|
|
208
|
+
], 64)) : (T(), M("span", or, xu(r.value), 1))
|
|
209
209
|
], !0),
|
|
210
210
|
e.aborted ? (T(), M("span", ir, "(用户停止)")) : Nu("", !0),
|
|
211
211
|
t.footer ? (T(), M("div", ar, [
|
|
212
|
-
|
|
212
|
+
Ae(i.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
213
213
|
])) : Nu("", !0)
|
|
214
214
|
], 2))
|
|
215
215
|
])
|
|
@@ -230,20 +230,20 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
230
230
|
behavior: "smooth",
|
|
231
231
|
throttle: 100
|
|
232
232
|
}), r = Ou(() => e.items.at(-1));
|
|
233
|
-
|
|
233
|
+
Cn([() => e.items.length, () => {
|
|
234
234
|
var a;
|
|
235
235
|
return (a = r.value) == null ? void 0 : a.content;
|
|
236
236
|
}], () => {
|
|
237
237
|
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
238
238
|
});
|
|
239
|
-
const
|
|
239
|
+
const c = (a) => {
|
|
240
240
|
var p;
|
|
241
241
|
const s = a.role ? ((p = e.roles) == null ? void 0 : p[a.role]) || {} : {}, { slots: f, ...d } = s, { slots: _, ...h } = a;
|
|
242
242
|
return { ...d, ...h };
|
|
243
243
|
}, i = (a) => {
|
|
244
244
|
var f;
|
|
245
245
|
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
246
|
-
},
|
|
246
|
+
}, o = Ou(() => {
|
|
247
247
|
var f;
|
|
248
248
|
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
249
249
|
return null;
|
|
@@ -261,26 +261,26 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
261
261
|
f.hidden ? Nu("", !0) : (T(), ru(Du, Pu({
|
|
262
262
|
key: 0,
|
|
263
263
|
ref_for: !0
|
|
264
|
-
},
|
|
264
|
+
}, c(f)), G0({ _: 2 }, [
|
|
265
265
|
ue(i(f), (_, h) => ({
|
|
266
266
|
name: h,
|
|
267
267
|
fn: W0((p) => [
|
|
268
|
-
(T(), ru(
|
|
268
|
+
(T(), ru(Au(_), Pu({ ref_for: !0 }, p), null, 16))
|
|
269
269
|
])
|
|
270
270
|
}))
|
|
271
271
|
]), 1040))
|
|
272
272
|
], 64))), 128)),
|
|
273
|
-
|
|
274
|
-
ue(
|
|
273
|
+
o.value ? (T(), ru(Du, n0(Pu({ key: 0 }, o.value.props)), G0({ _: 2 }, [
|
|
274
|
+
ue(o.value.slots, (f, d) => ({
|
|
275
275
|
name: d,
|
|
276
276
|
fn: W0((_) => [
|
|
277
|
-
(T(), ru(
|
|
277
|
+
(T(), ru(Au(f), n0(An(_)), null, 16))
|
|
278
278
|
])
|
|
279
279
|
}))
|
|
280
280
|
]), 1040)) : Nu("", !0)
|
|
281
281
|
], 512));
|
|
282
282
|
}
|
|
283
|
-
}), ne = /* @__PURE__ */ Uu(lr, [["__scopeId", "data-v-24c3a7d6"]]), fr = { class: "tr-chain-
|
|
283
|
+
}), ne = /* @__PURE__ */ Uu(lr, [["__scopeId", "data-v-24c3a7d6"]]), fr = { class: "tr-chain-item__header" }, dr = { class: "tr-chain-item__icon" }, pr = { class: "tr-chain-item__title" }, hr = { class: "tr-chain-item__body" }, br = ["innerHTML"], _r = /* @__PURE__ */ ku({
|
|
284
284
|
__name: "chain",
|
|
285
285
|
props: {
|
|
286
286
|
items: {},
|
|
@@ -289,50 +289,53 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
289
289
|
contentRenderer: {}
|
|
290
290
|
},
|
|
291
291
|
setup(u) {
|
|
292
|
-
const e = u, t = Se({}), n = (
|
|
293
|
-
t.value[
|
|
294
|
-
}, r = (
|
|
295
|
-
return (
|
|
296
|
-
|
|
292
|
+
const e = u, t = Se({}), n = (c) => {
|
|
293
|
+
t.value[c] = !t.value[c];
|
|
294
|
+
}, r = (c) => e.contentRenderer ? e.contentRenderer(c) : c;
|
|
295
|
+
return (c, i) => (T(), M("div", {
|
|
296
|
+
class: "tr-chain-list",
|
|
297
|
+
key: e.items.length
|
|
298
|
+
}, [
|
|
299
|
+
(T(!0), M(te, null, ue(e.items, (o, a) => (T(), M("div", {
|
|
297
300
|
class: "tr-chain-item",
|
|
298
|
-
key:
|
|
301
|
+
key: o.content
|
|
299
302
|
}, [
|
|
300
|
-
I("div",
|
|
301
|
-
I("div",
|
|
303
|
+
I("div", fr, [
|
|
304
|
+
I("div", dr, [
|
|
302
305
|
ee(uu(Sn))
|
|
303
306
|
]),
|
|
304
|
-
I("div",
|
|
307
|
+
I("div", pr, xu(o.title), 1),
|
|
305
308
|
ee(uu(Dt), {
|
|
306
309
|
class: mu(["expand-icon", { "rotate-180": t.value[a] }]),
|
|
307
310
|
onClick: (s) => n(a)
|
|
308
311
|
}, null, 8, ["class", "onClick"])
|
|
309
312
|
]),
|
|
310
|
-
|
|
313
|
+
Ct(I("div", hr, [
|
|
311
314
|
i[0] || (i[0] = I("div", { class: "tr-chain-item__chain-line-wrapper" }, [
|
|
312
315
|
I("div", { class: "tr-chain-item__chain-line" })
|
|
313
316
|
], -1)),
|
|
314
317
|
e.html ? (T(), M("div", {
|
|
315
318
|
key: 1,
|
|
316
319
|
class: mu(["tr-chain-item__content", e.contentClass]),
|
|
317
|
-
innerHTML: r(
|
|
318
|
-
}, null, 10,
|
|
320
|
+
innerHTML: r(o.content)
|
|
321
|
+
}, null, 10, br)) : (T(), M("div", {
|
|
319
322
|
key: 0,
|
|
320
323
|
class: mu(["tr-chain-item__content", e.contentClass])
|
|
321
|
-
}, xu(r(
|
|
324
|
+
}, xu(r(o.content)), 3))
|
|
322
325
|
], 512), [
|
|
323
|
-
[
|
|
326
|
+
[At, !t.value[a]]
|
|
324
327
|
])
|
|
325
328
|
]))), 128))
|
|
326
329
|
]));
|
|
327
330
|
}
|
|
328
|
-
}),
|
|
331
|
+
}), mr = /* @__PURE__ */ Uu(_r, [["__scopeId", "data-v-145547c7"]]), Ni = mr;
|
|
329
332
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
330
333
|
const {
|
|
331
334
|
entries: St,
|
|
332
335
|
setPrototypeOf: Y0,
|
|
333
|
-
isFrozen:
|
|
334
|
-
getPrototypeOf:
|
|
335
|
-
getOwnPropertyDescriptor:
|
|
336
|
+
isFrozen: xr,
|
|
337
|
+
getPrototypeOf: gr,
|
|
338
|
+
getOwnPropertyDescriptor: kr
|
|
336
339
|
} = Object;
|
|
337
340
|
let {
|
|
338
341
|
freeze: G,
|
|
@@ -340,7 +343,7 @@ let {
|
|
|
340
343
|
create: wt
|
|
341
344
|
} = Object, {
|
|
342
345
|
apply: r0,
|
|
343
|
-
construct:
|
|
346
|
+
construct: c0
|
|
344
347
|
} = typeof Reflect < "u" && Reflect;
|
|
345
348
|
G || (G = function(e) {
|
|
346
349
|
return e;
|
|
@@ -351,10 +354,10 @@ J || (J = function(e) {
|
|
|
351
354
|
r0 || (r0 = function(e, t, n) {
|
|
352
355
|
return e.apply(t, n);
|
|
353
356
|
});
|
|
354
|
-
|
|
357
|
+
c0 || (c0 = function(e, t) {
|
|
355
358
|
return new e(...t);
|
|
356
359
|
});
|
|
357
|
-
const ge = W(Array.prototype.forEach),
|
|
360
|
+
const ge = W(Array.prototype.forEach), Er = W(Array.prototype.lastIndexOf), X0 = W(Array.prototype.pop), Yu = W(Array.prototype.push), Cr = W(Array.prototype.splice), De = W(String.prototype.toLowerCase), Ge = W(String.prototype.toString), J0 = W(String.prototype.match), Xu = W(String.prototype.replace), Ar = W(String.prototype.indexOf), Dr = W(String.prototype.trim), K = W(Object.prototype.hasOwnProperty), j = W(RegExp.prototype.test), Ju = yr(TypeError);
|
|
358
361
|
function W(u) {
|
|
359
362
|
return function(e) {
|
|
360
363
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -363,11 +366,11 @@ function W(u) {
|
|
|
363
366
|
return r0(u, e, n);
|
|
364
367
|
};
|
|
365
368
|
}
|
|
366
|
-
function
|
|
369
|
+
function yr(u) {
|
|
367
370
|
return function() {
|
|
368
371
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
369
372
|
t[n] = arguments[n];
|
|
370
|
-
return
|
|
373
|
+
return c0(u, t);
|
|
371
374
|
};
|
|
372
375
|
}
|
|
373
376
|
function F(u, e) {
|
|
@@ -377,14 +380,14 @@ function F(u, e) {
|
|
|
377
380
|
for (; n--; ) {
|
|
378
381
|
let r = e[n];
|
|
379
382
|
if (typeof r == "string") {
|
|
380
|
-
const
|
|
381
|
-
|
|
383
|
+
const c = t(r);
|
|
384
|
+
c !== r && (xr(e) || (e[n] = c), r = c);
|
|
382
385
|
}
|
|
383
386
|
u[r] = !0;
|
|
384
387
|
}
|
|
385
388
|
return u;
|
|
386
389
|
}
|
|
387
|
-
function
|
|
390
|
+
function Fr(u) {
|
|
388
391
|
for (let e = 0; e < u.length; e++)
|
|
389
392
|
K(u, e) || (u[e] = null);
|
|
390
393
|
return u;
|
|
@@ -392,44 +395,44 @@ function Tr(u) {
|
|
|
392
395
|
function du(u) {
|
|
393
396
|
const e = wt(null);
|
|
394
397
|
for (const [t, n] of St(u))
|
|
395
|
-
K(u, t) && (Array.isArray(n) ? e[t] =
|
|
398
|
+
K(u, t) && (Array.isArray(n) ? e[t] = Fr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = du(n) : e[t] = n);
|
|
396
399
|
return e;
|
|
397
400
|
}
|
|
398
401
|
function Qu(u, e) {
|
|
399
402
|
for (; u !== null; ) {
|
|
400
|
-
const n =
|
|
403
|
+
const n = kr(u, e);
|
|
401
404
|
if (n) {
|
|
402
405
|
if (n.get)
|
|
403
406
|
return W(n.get);
|
|
404
407
|
if (typeof n.value == "function")
|
|
405
408
|
return W(n.value);
|
|
406
409
|
}
|
|
407
|
-
u =
|
|
410
|
+
u = gr(u);
|
|
408
411
|
}
|
|
409
412
|
function t() {
|
|
410
413
|
return null;
|
|
411
414
|
}
|
|
412
415
|
return t;
|
|
413
416
|
}
|
|
414
|
-
const Q0 = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), We = G(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ze = G(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
417
|
+
const Q0 = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), We = G(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ze = G(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Tr = G(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ve = G(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sr = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), K0 = G(["#text"]), ut = G(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ye = G(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), et = G(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ke = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wr = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), vr = J(/<%[\w\W]*|[\w\W]*%>/gm), Rr = J(/\$\{[\w\W]*/gm), Mr = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ir = J(/^aria-[\-\w]+$/), vt = J(
|
|
415
418
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
416
419
|
// eslint-disable-line no-useless-escape
|
|
417
|
-
),
|
|
420
|
+
), Lr = J(/^(?:\w+script|data):/i), Or = J(
|
|
418
421
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
419
422
|
// eslint-disable-line no-control-regex
|
|
420
|
-
), Rt = J(/^html$/i),
|
|
423
|
+
), Rt = J(/^html$/i), Nr = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
421
424
|
var tt = /* @__PURE__ */ Object.freeze({
|
|
422
425
|
__proto__: null,
|
|
423
|
-
ARIA_ATTR:
|
|
424
|
-
ATTR_WHITESPACE:
|
|
425
|
-
CUSTOM_ELEMENT:
|
|
426
|
-
DATA_ATTR:
|
|
426
|
+
ARIA_ATTR: Ir,
|
|
427
|
+
ATTR_WHITESPACE: Or,
|
|
428
|
+
CUSTOM_ELEMENT: Nr,
|
|
429
|
+
DATA_ATTR: Mr,
|
|
427
430
|
DOCTYPE_NAME: Rt,
|
|
428
|
-
ERB_EXPR:
|
|
431
|
+
ERB_EXPR: vr,
|
|
429
432
|
IS_ALLOWED_URI: vt,
|
|
430
|
-
IS_SCRIPT_OR_DATA:
|
|
431
|
-
MUSTACHE_EXPR:
|
|
432
|
-
TMPLIT_EXPR:
|
|
433
|
+
IS_SCRIPT_OR_DATA: Lr,
|
|
434
|
+
MUSTACHE_EXPR: wr,
|
|
435
|
+
TMPLIT_EXPR: Rr
|
|
433
436
|
});
|
|
434
437
|
const Ku = {
|
|
435
438
|
element: 1,
|
|
@@ -438,17 +441,17 @@ const Ku = {
|
|
|
438
441
|
progressingInstruction: 7,
|
|
439
442
|
comment: 8,
|
|
440
443
|
document: 9
|
|
441
|
-
},
|
|
444
|
+
}, Pr = function() {
|
|
442
445
|
return typeof window > "u" ? null : window;
|
|
443
|
-
},
|
|
446
|
+
}, Br = function(e, t) {
|
|
444
447
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
445
448
|
return null;
|
|
446
449
|
let n = null;
|
|
447
450
|
const r = "data-tt-policy-suffix";
|
|
448
451
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
449
|
-
const
|
|
452
|
+
const c = "dompurify" + (n ? "#" + n : "");
|
|
450
453
|
try {
|
|
451
|
-
return e.createPolicy(
|
|
454
|
+
return e.createPolicy(c, {
|
|
452
455
|
createHTML(i) {
|
|
453
456
|
return i;
|
|
454
457
|
},
|
|
@@ -457,7 +460,7 @@ const Ku = {
|
|
|
457
460
|
}
|
|
458
461
|
});
|
|
459
462
|
} catch {
|
|
460
|
-
return console.warn("TrustedTypes policy " +
|
|
463
|
+
return console.warn("TrustedTypes policy " + c + " could not be created."), null;
|
|
461
464
|
}
|
|
462
465
|
}, nt = function() {
|
|
463
466
|
return {
|
|
@@ -473,7 +476,7 @@ const Ku = {
|
|
|
473
476
|
};
|
|
474
477
|
};
|
|
475
478
|
function Mt() {
|
|
476
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
479
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pr();
|
|
477
480
|
const e = (g) => Mt(g);
|
|
478
481
|
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Ku.document || !u.Element)
|
|
479
482
|
return e.isSupported = !1, e;
|
|
@@ -481,21 +484,21 @@ function Mt() {
|
|
|
481
484
|
document: t
|
|
482
485
|
} = u;
|
|
483
486
|
const n = t, r = n.currentScript, {
|
|
484
|
-
DocumentFragment:
|
|
487
|
+
DocumentFragment: c,
|
|
485
488
|
HTMLTemplateElement: i,
|
|
486
|
-
Node:
|
|
489
|
+
Node: o,
|
|
487
490
|
Element: a,
|
|
488
491
|
NodeFilter: s,
|
|
489
492
|
NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
490
493
|
HTMLFormElement: d,
|
|
491
494
|
DOMParser: _,
|
|
492
495
|
trustedTypes: h
|
|
493
|
-
} = u, p = a.prototype,
|
|
496
|
+
} = u, p = a.prototype, A = Qu(p, "cloneNode"), D = Qu(p, "remove"), S = Qu(p, "nextSibling"), E = Qu(p, "childNodes"), k = Qu(p, "parentNode");
|
|
494
497
|
if (typeof i == "function") {
|
|
495
498
|
const g = t.createElement("template");
|
|
496
499
|
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
497
500
|
}
|
|
498
|
-
let m,
|
|
501
|
+
let m, C = "";
|
|
499
502
|
const {
|
|
500
503
|
implementation: y,
|
|
501
504
|
createNodeIterator: L,
|
|
@@ -514,14 +517,14 @@ function Mt() {
|
|
|
514
517
|
ARIA_ATTR: Ie,
|
|
515
518
|
IS_SCRIPT_OR_DATA: rn,
|
|
516
519
|
ATTR_WHITESPACE: g0,
|
|
517
|
-
CUSTOM_ELEMENT:
|
|
520
|
+
CUSTOM_ELEMENT: cn
|
|
518
521
|
} = tt;
|
|
519
522
|
let {
|
|
520
523
|
IS_ALLOWED_URI: k0
|
|
521
524
|
} = tt, P = null;
|
|
522
525
|
const E0 = F({}, [...Q0, ...We, ...Ze, ...Ve, ...K0]);
|
|
523
526
|
let U = null;
|
|
524
|
-
const
|
|
527
|
+
const C0 = F({}, [...ut, ...Ye, ...et, ...ke]);
|
|
525
528
|
let R = Object.seal(wt(null, {
|
|
526
529
|
tagNameCheck: {
|
|
527
530
|
writable: !0,
|
|
@@ -541,8 +544,8 @@ function Mt() {
|
|
|
541
544
|
enumerable: !0,
|
|
542
545
|
value: !1
|
|
543
546
|
}
|
|
544
|
-
})), Gu = null, Le = null,
|
|
545
|
-
const
|
|
547
|
+
})), Gu = null, Le = null, A0 = !0, Oe = !0, D0 = !1, y0 = !0, Fu = !1, de = !0, Cu = !1, Ne = !1, Pe = !1, Tu = !1, pe = !1, he = !1, F0 = !0, T0 = !1;
|
|
548
|
+
const on = "user-content-";
|
|
546
549
|
let Be = !0, Wu = !1, Su = {}, wu = null;
|
|
547
550
|
const S0 = F({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
548
551
|
let w0 = null;
|
|
@@ -562,17 +565,17 @@ function Mt() {
|
|
|
562
565
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
563
566
|
if (!(Ru && Ru === l)) {
|
|
564
567
|
if ((!l || typeof l != "object") && (l = {}), l = du(l), Zu = // eslint-disable-next-line unicorn/prefer-includes
|
|
565
|
-
ln.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? fn : l.PARSER_MEDIA_TYPE, B = Zu === "application/xhtml+xml" ? Ge : De, P = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, B) : E0, U = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, B) :
|
|
568
|
+
ln.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? fn : l.PARSER_MEDIA_TYPE, B = Zu === "application/xhtml+xml" ? Ge : De, P = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, B) : E0, U = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, B) : C0, Ue = K(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, Ge) : an, ze = K(l, "ADD_URI_SAFE_ATTR") ? F(du(R0), l.ADD_URI_SAFE_ATTR, B) : R0, w0 = K(l, "ADD_DATA_URI_TAGS") ? F(du(v0), l.ADD_DATA_URI_TAGS, B) : v0, wu = K(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, B) : S0, Gu = K(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, B) : du({}), Le = K(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, B) : du({}), Su = K(l, "USE_PROFILES") ? l.USE_PROFILES : !1, A0 = l.ALLOW_ARIA_ATTR !== !1, Oe = l.ALLOW_DATA_ATTR !== !1, D0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, y0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Fu = l.SAFE_FOR_TEMPLATES || !1, de = l.SAFE_FOR_XML !== !1, Cu = l.WHOLE_DOCUMENT || !1, Tu = l.RETURN_DOM || !1, pe = l.RETURN_DOM_FRAGMENT || !1, he = l.RETURN_TRUSTED_TYPE || !1, Pe = l.FORCE_BODY || !1, F0 = l.SANITIZE_DOM !== !1, T0 = l.SANITIZE_NAMED_PROPS || !1, Be = l.KEEP_CONTENT !== !1, Wu = l.IN_PLACE || !1, k0 = l.ALLOWED_URI_REGEXP || vt, vu = l.NAMESPACE || su, me = l.MATHML_TEXT_INTEGRATION_POINTS || me, xe = l.HTML_INTEGRATION_POINTS || xe, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && M0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && M0(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Fu && (Oe = !1), pe && (Tu = !0), Su && (P = F({}, K0), U = [], Su.html === !0 && (F(P, Q0), F(U, ut)), Su.svg === !0 && (F(P, We), F(U, Ye), F(U, ke)), Su.svgFilters === !0 && (F(P, Ze), F(U, Ye), F(U, ke)), Su.mathMl === !0 && (F(P, Ve), F(U, et), F(U, ke))), l.ADD_TAGS && (P === E0 && (P = du(P)), F(P, l.ADD_TAGS, B)), l.ADD_ATTR && (U === C0 && (U = du(U)), F(U, l.ADD_ATTR, B)), l.ADD_URI_SAFE_ATTR && F(ze, l.ADD_URI_SAFE_ATTR, B), l.FORBID_CONTENTS && (wu === S0 && (wu = du(wu)), F(wu, l.FORBID_CONTENTS, B)), Be && (P["#text"] = !0), Cu && F(P, ["html", "head", "body"]), P.table && (F(P, ["tbody"]), delete Gu.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
566
569
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
567
570
|
throw Ju('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
568
571
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
569
572
|
throw Ju('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
570
|
-
m = l.TRUSTED_TYPES_POLICY,
|
|
573
|
+
m = l.TRUSTED_TYPES_POLICY, C = m.createHTML("");
|
|
571
574
|
} else
|
|
572
|
-
m === void 0 && (m =
|
|
575
|
+
m === void 0 && (m = Br(h, r)), m !== null && typeof C == "string" && (C = m.createHTML(""));
|
|
573
576
|
G && G(l), Ru = l;
|
|
574
577
|
}
|
|
575
|
-
}, I0 = F({}, [...We, ...Ze, ...
|
|
578
|
+
}, I0 = F({}, [...We, ...Ze, ...Tr]), L0 = F({}, [...Ve, ...Sr]), pn = function(l) {
|
|
576
579
|
let b = k(l);
|
|
577
580
|
(!b || !b.tagName) && (b = {
|
|
578
581
|
namespaceURI: vu,
|
|
@@ -630,12 +633,12 @@ function Mt() {
|
|
|
630
633
|
if (!b || !b.documentElement) {
|
|
631
634
|
b = y.createDocument(vu, "template", null);
|
|
632
635
|
try {
|
|
633
|
-
b.documentElement.innerHTML = qe ?
|
|
636
|
+
b.documentElement.innerHTML = qe ? C : v;
|
|
634
637
|
} catch {
|
|
635
638
|
}
|
|
636
639
|
}
|
|
637
640
|
const H = b.body || b.documentElement;
|
|
638
|
-
return l && x && H.insertBefore(t.createTextNode(x), H.childNodes[0] || null), vu === su ? tu.call(b,
|
|
641
|
+
return l && x && H.insertBefore(t.createTextNode(x), H.childNodes[0] || null), vu === su ? tu.call(b, Cu ? "html" : "body")[0] : Cu ? b.documentElement : H;
|
|
639
642
|
}, N0 = function(l) {
|
|
640
643
|
return L.call(
|
|
641
644
|
l.ownerDocument || l,
|
|
@@ -647,7 +650,7 @@ function Mt() {
|
|
|
647
650
|
}, $e = function(l) {
|
|
648
651
|
return l instanceof d && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof f) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
649
652
|
}, P0 = function(l) {
|
|
650
|
-
return typeof
|
|
653
|
+
return typeof o == "function" && l instanceof o;
|
|
651
654
|
};
|
|
652
655
|
function lu(g, l, b) {
|
|
653
656
|
ge(g, (x) => {
|
|
@@ -672,7 +675,7 @@ function Mt() {
|
|
|
672
675
|
if (H && v) {
|
|
673
676
|
const N = H.length;
|
|
674
677
|
for (let Z = N - 1; Z >= 0; --Z) {
|
|
675
|
-
const fu =
|
|
678
|
+
const fu = A(H[Z], !0);
|
|
676
679
|
fu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(fu, S(l));
|
|
677
680
|
}
|
|
678
681
|
}
|
|
@@ -688,7 +691,7 @@ function Mt() {
|
|
|
688
691
|
if (F0 && (b === "id" || b === "name") && (x in t || x in dn))
|
|
689
692
|
return !1;
|
|
690
693
|
if (!(Oe && !Le[b] && j(pu, b))) {
|
|
691
|
-
if (!(
|
|
694
|
+
if (!(A0 && j(Ie, b))) {
|
|
692
695
|
if (!U[b] || Le[b]) {
|
|
693
696
|
if (
|
|
694
697
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -700,7 +703,7 @@ function Mt() {
|
|
|
700
703
|
) return !1;
|
|
701
704
|
} else if (!ze[b]) {
|
|
702
705
|
if (!j(k0, Xu(x, g0, ""))) {
|
|
703
|
-
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" &&
|
|
706
|
+
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && Ar(x, "data:") === 0 && w0[l])) {
|
|
704
707
|
if (!(D0 && !j(rn, Xu(x, g0, "")))) {
|
|
705
708
|
if (x)
|
|
706
709
|
return !1;
|
|
@@ -712,7 +715,7 @@ function Mt() {
|
|
|
712
715
|
}
|
|
713
716
|
return !0;
|
|
714
717
|
}, q0 = function(l) {
|
|
715
|
-
return l !== "annotation-xml" && J0(l,
|
|
718
|
+
return l !== "annotation-xml" && J0(l, cn);
|
|
716
719
|
}, U0 = function(l) {
|
|
717
720
|
lu(O.beforeSanitizeAttributes, l, null);
|
|
718
721
|
const {
|
|
@@ -734,8 +737,8 @@ function Mt() {
|
|
|
734
737
|
namespaceURI: Z,
|
|
735
738
|
value: fu
|
|
736
739
|
} = H, Vu = B(N), je = fu;
|
|
737
|
-
let $ = N === "value" ? je :
|
|
738
|
-
if (x.attrName = Vu, x.attrValue = $, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(O.uponSanitizeAttribute, l, x), $ = x.attrValue, T0 && (Vu === "id" || Vu === "name") && (Mu(N, l), $ =
|
|
740
|
+
let $ = N === "value" ? je : Dr(je);
|
|
741
|
+
if (x.attrName = Vu, x.attrValue = $, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(O.uponSanitizeAttribute, l, x), $ = x.attrValue, T0 && (Vu === "id" || Vu === "name") && (Mu(N, l), $ = on + $), de && j(/((--!?|])>)|<\/(style|title)/i, $)) {
|
|
739
742
|
Mu(N, l);
|
|
740
743
|
continue;
|
|
741
744
|
}
|
|
@@ -780,7 +783,7 @@ function Mt() {
|
|
|
780
783
|
let b = null;
|
|
781
784
|
const x = N0(l);
|
|
782
785
|
for (lu(O.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
783
|
-
lu(O.uponSanitizeShadowNode, b, null), B0(b), U0(b), b.content instanceof
|
|
786
|
+
lu(O.uponSanitizeShadowNode, b, null), B0(b), U0(b), b.content instanceof c && g(b.content);
|
|
784
787
|
lu(O.afterSanitizeShadowDOM, l, null);
|
|
785
788
|
};
|
|
786
789
|
return e.sanitize = function(g) {
|
|
@@ -799,19 +802,19 @@ function Mt() {
|
|
|
799
802
|
if (!P[fu] || Gu[fu])
|
|
800
803
|
throw Ju("root node is forbidden and cannot be sanitized in-place");
|
|
801
804
|
}
|
|
802
|
-
} else if (g instanceof
|
|
805
|
+
} else if (g instanceof o)
|
|
803
806
|
b = O0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Ku.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
804
807
|
else {
|
|
805
|
-
if (!Tu && !Fu && !
|
|
808
|
+
if (!Tu && !Fu && !Cu && // eslint-disable-next-line unicorn/prefer-includes
|
|
806
809
|
g.indexOf("<") === -1)
|
|
807
810
|
return m && he ? m.createHTML(g) : g;
|
|
808
811
|
if (b = O0(g), !b)
|
|
809
|
-
return Tu ? null : he ?
|
|
812
|
+
return Tu ? null : he ? C : "";
|
|
810
813
|
}
|
|
811
814
|
b && Pe && nu(b.firstChild);
|
|
812
815
|
const N = N0(Wu ? g : b);
|
|
813
816
|
for (; v = N.nextNode(); )
|
|
814
|
-
B0(v), U0(v), v.content instanceof
|
|
817
|
+
B0(v), U0(v), v.content instanceof c && hn(v.content);
|
|
815
818
|
if (Wu)
|
|
816
819
|
return g;
|
|
817
820
|
if (Tu) {
|
|
@@ -822,8 +825,8 @@ function Mt() {
|
|
|
822
825
|
H = b;
|
|
823
826
|
return (U.shadowroot || U.shadowrootmode) && (H = Eu.call(n, H, !0)), H;
|
|
824
827
|
}
|
|
825
|
-
let Z =
|
|
826
|
-
return
|
|
828
|
+
let Z = Cu ? b.outerHTML : b.innerHTML;
|
|
829
|
+
return Cu && P["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && j(Rt, b.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
827
830
|
` + Z), Fu && ge([$u, ju, yu], (fu) => {
|
|
828
831
|
Z = Xu(Z, fu, " ");
|
|
829
832
|
}), m && he ? m.createHTML(Z) : Z;
|
|
@@ -840,7 +843,7 @@ function Mt() {
|
|
|
840
843
|
typeof l == "function" && Yu(O[g], l);
|
|
841
844
|
}, e.removeHook = function(g, l) {
|
|
842
845
|
if (l !== void 0) {
|
|
843
|
-
const b =
|
|
846
|
+
const b = Er(O[g], l);
|
|
844
847
|
return b === -1 ? void 0 : Cr(O[g], b, 1)[0];
|
|
845
848
|
}
|
|
846
849
|
return X0(O[g]);
|
|
@@ -850,9 +853,9 @@ function Mt() {
|
|
|
850
853
|
O = nt();
|
|
851
854
|
}, e;
|
|
852
855
|
}
|
|
853
|
-
var
|
|
856
|
+
var zr = Mt();
|
|
854
857
|
const rt = {};
|
|
855
|
-
function
|
|
858
|
+
function qr(u) {
|
|
856
859
|
let e = rt[u];
|
|
857
860
|
if (e)
|
|
858
861
|
return e;
|
|
@@ -869,36 +872,36 @@ function Ur(u) {
|
|
|
869
872
|
}
|
|
870
873
|
function zu(u, e) {
|
|
871
874
|
typeof e != "string" && (e = zu.defaultChars);
|
|
872
|
-
const t =
|
|
875
|
+
const t = qr(e);
|
|
873
876
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
874
877
|
let r = "";
|
|
875
|
-
for (let
|
|
876
|
-
const
|
|
877
|
-
if (
|
|
878
|
-
r += t[
|
|
878
|
+
for (let c = 0, i = n.length; c < i; c += 3) {
|
|
879
|
+
const o = parseInt(n.slice(c + 1, c + 3), 16);
|
|
880
|
+
if (o < 128) {
|
|
881
|
+
r += t[o];
|
|
879
882
|
continue;
|
|
880
883
|
}
|
|
881
|
-
if ((
|
|
882
|
-
const a = parseInt(n.slice(
|
|
884
|
+
if ((o & 224) === 192 && c + 3 < i) {
|
|
885
|
+
const a = parseInt(n.slice(c + 4, c + 6), 16);
|
|
883
886
|
if ((a & 192) === 128) {
|
|
884
|
-
const s =
|
|
885
|
-
s < 128 ? r += "��" : r += String.fromCharCode(s),
|
|
887
|
+
const s = o << 6 & 1984 | a & 63;
|
|
888
|
+
s < 128 ? r += "��" : r += String.fromCharCode(s), c += 3;
|
|
886
889
|
continue;
|
|
887
890
|
}
|
|
888
891
|
}
|
|
889
|
-
if ((
|
|
890
|
-
const a = parseInt(n.slice(
|
|
892
|
+
if ((o & 240) === 224 && c + 6 < i) {
|
|
893
|
+
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16);
|
|
891
894
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
892
|
-
const f =
|
|
893
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
895
|
+
const f = o << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
896
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), c += 6;
|
|
894
897
|
continue;
|
|
895
898
|
}
|
|
896
899
|
}
|
|
897
|
-
if ((
|
|
898
|
-
const a = parseInt(n.slice(
|
|
900
|
+
if ((o & 248) === 240 && c + 9 < i) {
|
|
901
|
+
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16), f = parseInt(n.slice(c + 10, c + 12), 16);
|
|
899
902
|
if ((a & 192) === 128 && (s & 192) === 128 && (f & 192) === 128) {
|
|
900
|
-
let d =
|
|
901
|
-
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))),
|
|
903
|
+
let d = o << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | f & 63;
|
|
904
|
+
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), c += 9;
|
|
902
905
|
continue;
|
|
903
906
|
}
|
|
904
907
|
}
|
|
@@ -909,12 +912,12 @@ function zu(u, e) {
|
|
|
909
912
|
}
|
|
910
913
|
zu.defaultChars = ";/?:@&=+$,#";
|
|
911
914
|
zu.componentChars = "";
|
|
912
|
-
const
|
|
913
|
-
function
|
|
914
|
-
let e =
|
|
915
|
+
const ct = {};
|
|
916
|
+
function Ur(u) {
|
|
917
|
+
let e = ct[u];
|
|
915
918
|
if (e)
|
|
916
919
|
return e;
|
|
917
|
-
e =
|
|
920
|
+
e = ct[u] = [];
|
|
918
921
|
for (let t = 0; t < 128; t++) {
|
|
919
922
|
const n = String.fromCharCode(t);
|
|
920
923
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -925,30 +928,30 @@ function Hr(u) {
|
|
|
925
928
|
}
|
|
926
929
|
function se(u, e, t) {
|
|
927
930
|
typeof e != "string" && (t = e, e = se.defaultChars), typeof t > "u" && (t = !0);
|
|
928
|
-
const n =
|
|
931
|
+
const n = Ur(e);
|
|
929
932
|
let r = "";
|
|
930
|
-
for (let
|
|
931
|
-
const
|
|
932
|
-
if (t &&
|
|
933
|
-
r += u.slice(
|
|
933
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
|
934
|
+
const o = u.charCodeAt(c);
|
|
935
|
+
if (t && o === 37 && c + 2 < i && /^[0-9a-f]{2}$/i.test(u.slice(c + 1, c + 3))) {
|
|
936
|
+
r += u.slice(c, c + 3), c += 2;
|
|
934
937
|
continue;
|
|
935
938
|
}
|
|
936
|
-
if (
|
|
937
|
-
r += n[
|
|
939
|
+
if (o < 128) {
|
|
940
|
+
r += n[o];
|
|
938
941
|
continue;
|
|
939
942
|
}
|
|
940
|
-
if (
|
|
941
|
-
if (
|
|
942
|
-
const a = u.charCodeAt(
|
|
943
|
+
if (o >= 55296 && o <= 57343) {
|
|
944
|
+
if (o >= 55296 && o <= 56319 && c + 1 < i) {
|
|
945
|
+
const a = u.charCodeAt(c + 1);
|
|
943
946
|
if (a >= 56320 && a <= 57343) {
|
|
944
|
-
r += encodeURIComponent(u[
|
|
947
|
+
r += encodeURIComponent(u[c] + u[c + 1]), c++;
|
|
945
948
|
continue;
|
|
946
949
|
}
|
|
947
950
|
}
|
|
948
951
|
r += "%EF%BF%BD";
|
|
949
952
|
continue;
|
|
950
953
|
}
|
|
951
|
-
r += encodeURIComponent(u[
|
|
954
|
+
r += encodeURIComponent(u[c]);
|
|
952
955
|
}
|
|
953
956
|
return r;
|
|
954
957
|
}
|
|
@@ -961,8 +964,8 @@ function f0(u) {
|
|
|
961
964
|
function ye() {
|
|
962
965
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
963
966
|
}
|
|
964
|
-
const
|
|
965
|
-
`, " "],
|
|
967
|
+
const Hr = /^([a-z0-9.+-]+:)/i, $r = /:[0-9]*$/, jr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Gr = ["<", ">", '"', "`", " ", "\r", `
|
|
968
|
+
`, " "], Wr = ["{", "}", "|", "\\", "^", "`"].concat(Gr), Zr = ["'"].concat(Wr), ot = ["%", "/", "?", ";", "#"].concat(Zr), it = ["/", "?", "#"], Vr = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, Yr = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
966
969
|
javascript: !0,
|
|
967
970
|
"javascript:": !0
|
|
968
971
|
}, lt = {
|
|
@@ -983,75 +986,75 @@ function d0(u, e) {
|
|
|
983
986
|
return t.parse(u, e), t;
|
|
984
987
|
}
|
|
985
988
|
ye.prototype.parse = function(u, e) {
|
|
986
|
-
let t, n, r,
|
|
987
|
-
if (
|
|
988
|
-
const s =
|
|
989
|
+
let t, n, r, c = u;
|
|
990
|
+
if (c = c.trim(), !e && u.split("#").length === 1) {
|
|
991
|
+
const s = jr.exec(c);
|
|
989
992
|
if (s)
|
|
990
993
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
991
994
|
}
|
|
992
|
-
let i =
|
|
993
|
-
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i,
|
|
995
|
+
let i = Hr.exec(c);
|
|
996
|
+
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, c = c.substr(i.length)), (e || i || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = c.substr(0, 2) === "//", r && !(i && st[i]) && (c = c.substr(2), this.slashes = !0)), !st[i] && (r || i && !lt[i])) {
|
|
994
997
|
let s = -1;
|
|
995
998
|
for (let p = 0; p < it.length; p++)
|
|
996
|
-
n =
|
|
999
|
+
n = c.indexOf(it[p]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
997
1000
|
let f, d;
|
|
998
|
-
s === -1 ? d =
|
|
999
|
-
for (let p = 0; p <
|
|
1000
|
-
n =
|
|
1001
|
-
s === -1 && (s =
|
|
1002
|
-
const _ =
|
|
1003
|
-
|
|
1001
|
+
s === -1 ? d = c.lastIndexOf("@") : d = c.lastIndexOf("@", s), d !== -1 && (f = c.slice(0, d), c = c.slice(d + 1), this.auth = f), s = -1;
|
|
1002
|
+
for (let p = 0; p < ot.length; p++)
|
|
1003
|
+
n = c.indexOf(ot[p]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1004
|
+
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
|
1005
|
+
const _ = c.slice(0, s);
|
|
1006
|
+
c = c.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1004
1007
|
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1005
1008
|
if (!h) {
|
|
1006
1009
|
const p = this.hostname.split(/\./);
|
|
1007
|
-
for (let
|
|
1008
|
-
const S = p[
|
|
1010
|
+
for (let A = 0, D = p.length; A < D; A++) {
|
|
1011
|
+
const S = p[A];
|
|
1009
1012
|
if (S && !S.match(at)) {
|
|
1010
1013
|
let E = "";
|
|
1011
1014
|
for (let k = 0, m = S.length; k < m; k++)
|
|
1012
1015
|
S.charCodeAt(k) > 127 ? E += "x" : E += S[k];
|
|
1013
1016
|
if (!E.match(at)) {
|
|
1014
|
-
const k = p.slice(0,
|
|
1015
|
-
|
|
1017
|
+
const k = p.slice(0, A), m = p.slice(A + 1), C = S.match(Yr);
|
|
1018
|
+
C && (k.push(C[1]), m.unshift(C[2])), m.length && (c = m.join(".") + c), this.hostname = k.join(".");
|
|
1016
1019
|
break;
|
|
1017
1020
|
}
|
|
1018
1021
|
}
|
|
1019
1022
|
}
|
|
1020
1023
|
}
|
|
1021
|
-
this.hostname.length >
|
|
1024
|
+
this.hostname.length > Vr && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1022
1025
|
}
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1025
|
-
const a =
|
|
1026
|
-
return a !== -1 && (this.search =
|
|
1026
|
+
const o = c.indexOf("#");
|
|
1027
|
+
o !== -1 && (this.hash = c.substr(o), c = c.slice(0, o));
|
|
1028
|
+
const a = c.indexOf("?");
|
|
1029
|
+
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1027
1030
|
};
|
|
1028
1031
|
ye.prototype.parseHost = function(u) {
|
|
1029
|
-
let e =
|
|
1032
|
+
let e = $r.exec(u);
|
|
1030
1033
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
1031
1034
|
};
|
|
1032
|
-
const
|
|
1035
|
+
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1033
1036
|
__proto__: null,
|
|
1034
1037
|
decode: zu,
|
|
1035
1038
|
encode: se,
|
|
1036
1039
|
format: f0,
|
|
1037
1040
|
parse: d0
|
|
1038
|
-
}, Symbol.toStringTag, { value: "Module" })), It = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lt = /[\0-\x1F\x7F-\x9F]/,
|
|
1041
|
+
}, Symbol.toStringTag, { value: "Module" })), It = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lt = /[\0-\x1F\x7F-\x9F]/, Jr = /[\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]/, p0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, Ot = /[\$\+<->\^`\|~\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]/, Nt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1039
1042
|
__proto__: null,
|
|
1040
1043
|
Any: It,
|
|
1041
1044
|
Cc: Lt,
|
|
1042
|
-
Cf:
|
|
1045
|
+
Cf: Jr,
|
|
1043
1046
|
P: p0,
|
|
1044
1047
|
S: Ot,
|
|
1045
1048
|
Z: Nt
|
|
1046
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1049
|
+
}, Symbol.toStringTag, { value: "Module" })), Kr = new Uint16Array(
|
|
1047
1050
|
// prettier-ignore
|
|
1048
1051
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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))
|
|
1049
|
-
),
|
|
1052
|
+
), uc = new Uint16Array(
|
|
1050
1053
|
// prettier-ignore
|
|
1051
1054
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1052
1055
|
);
|
|
1053
1056
|
var Xe;
|
|
1054
|
-
const
|
|
1057
|
+
const ec = /* @__PURE__ */ new Map([
|
|
1055
1058
|
[0, 65533],
|
|
1056
1059
|
// C1 Unicode control character reference replacements
|
|
1057
1060
|
[128, 8364],
|
|
@@ -1081,37 +1084,37 @@ const to = /* @__PURE__ */ new Map([
|
|
|
1081
1084
|
[156, 339],
|
|
1082
1085
|
[158, 382],
|
|
1083
1086
|
[159, 376]
|
|
1084
|
-
]),
|
|
1087
|
+
]), tc = (
|
|
1085
1088
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1086
1089
|
(Xe = String.fromCodePoint) !== null && Xe !== void 0 ? Xe : function(u) {
|
|
1087
1090
|
let e = "";
|
|
1088
1091
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1089
1092
|
}
|
|
1090
1093
|
);
|
|
1091
|
-
function
|
|
1094
|
+
function nc(u) {
|
|
1092
1095
|
var e;
|
|
1093
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
1096
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = ec.get(u)) !== null && e !== void 0 ? e : u;
|
|
1094
1097
|
}
|
|
1095
1098
|
var q;
|
|
1096
1099
|
(function(u) {
|
|
1097
1100
|
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";
|
|
1098
1101
|
})(q || (q = {}));
|
|
1099
|
-
const
|
|
1102
|
+
const rc = 32;
|
|
1100
1103
|
var _u;
|
|
1101
1104
|
(function(u) {
|
|
1102
1105
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1103
1106
|
})(_u || (_u = {}));
|
|
1104
|
-
function
|
|
1107
|
+
function o0(u) {
|
|
1105
1108
|
return u >= q.ZERO && u <= q.NINE;
|
|
1106
1109
|
}
|
|
1107
|
-
function
|
|
1110
|
+
function cc(u) {
|
|
1108
1111
|
return u >= q.UPPER_A && u <= q.UPPER_F || u >= q.LOWER_A && u <= q.LOWER_F;
|
|
1109
1112
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return u >= q.UPPER_A && u <= q.UPPER_Z || u >= q.LOWER_A && u <= q.LOWER_Z ||
|
|
1113
|
+
function oc(u) {
|
|
1114
|
+
return u >= q.UPPER_A && u <= q.UPPER_Z || u >= q.LOWER_A && u <= q.LOWER_Z || o0(u);
|
|
1112
1115
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return u === q.EQUALS ||
|
|
1116
|
+
function ic(u) {
|
|
1117
|
+
return u === q.EQUALS || oc(u);
|
|
1115
1118
|
}
|
|
1116
1119
|
var z;
|
|
1117
1120
|
(function(u) {
|
|
@@ -1121,7 +1124,7 @@ var bu;
|
|
|
1121
1124
|
(function(u) {
|
|
1122
1125
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1123
1126
|
})(bu || (bu = {}));
|
|
1124
|
-
class
|
|
1127
|
+
class ac {
|
|
1125
1128
|
constructor(e, t, n) {
|
|
1126
1129
|
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = z.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
|
|
1127
1130
|
}
|
|
@@ -1164,12 +1167,12 @@ class so {
|
|
|
1164
1167
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1165
1168
|
*/
|
|
1166
1169
|
stateNumericStart(e, t) {
|
|
1167
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1170
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | rc) === q.LOWER_X ? (this.state = z.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = z.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1168
1171
|
}
|
|
1169
1172
|
addToNumericResult(e, t, n, r) {
|
|
1170
1173
|
if (t !== n) {
|
|
1171
|
-
const
|
|
1172
|
-
this.result = this.result * Math.pow(r,
|
|
1174
|
+
const c = n - t;
|
|
1175
|
+
this.result = this.result * Math.pow(r, c) + parseInt(e.substr(t, c), r), this.consumed += c;
|
|
1173
1176
|
}
|
|
1174
1177
|
}
|
|
1175
1178
|
/**
|
|
@@ -1185,7 +1188,7 @@ class so {
|
|
|
1185
1188
|
const n = t;
|
|
1186
1189
|
for (; t < e.length; ) {
|
|
1187
1190
|
const r = e.charCodeAt(t);
|
|
1188
|
-
if (
|
|
1191
|
+
if (o0(r) || cc(r))
|
|
1189
1192
|
t += 1;
|
|
1190
1193
|
else
|
|
1191
1194
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1205,7 +1208,7 @@ class so {
|
|
|
1205
1208
|
const n = t;
|
|
1206
1209
|
for (; t < e.length; ) {
|
|
1207
1210
|
const r = e.charCodeAt(t);
|
|
1208
|
-
if (
|
|
1211
|
+
if (o0(r))
|
|
1209
1212
|
t += 1;
|
|
1210
1213
|
else
|
|
1211
1214
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1233,7 +1236,7 @@ class so {
|
|
|
1233
1236
|
this.consumed += 1;
|
|
1234
1237
|
else if (this.decodeMode === bu.Strict)
|
|
1235
1238
|
return 0;
|
|
1236
|
-
return this.emitCodePoint(
|
|
1239
|
+
return this.emitCodePoint(nc(this.result), this.consumed), this.errors && (e !== q.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1237
1240
|
}
|
|
1238
1241
|
/**
|
|
1239
1242
|
* Parses a named entity.
|
|
@@ -1246,17 +1249,17 @@ class so {
|
|
|
1246
1249
|
*/
|
|
1247
1250
|
stateNamedEntity(e, t) {
|
|
1248
1251
|
const { decodeTree: n } = this;
|
|
1249
|
-
let r = n[this.treeIndex],
|
|
1252
|
+
let r = n[this.treeIndex], c = (r & _u.VALUE_LENGTH) >> 14;
|
|
1250
1253
|
for (; t < e.length; t++, this.excess++) {
|
|
1251
1254
|
const i = e.charCodeAt(t);
|
|
1252
|
-
if (this.treeIndex =
|
|
1255
|
+
if (this.treeIndex = sc(n, r, this.treeIndex + Math.max(1, c), i), this.treeIndex < 0)
|
|
1253
1256
|
return this.result === 0 || // If we are parsing an attribute
|
|
1254
1257
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1255
|
-
(
|
|
1256
|
-
|
|
1257
|
-
if (r = n[this.treeIndex],
|
|
1258
|
+
(c === 0 || // And there should be no invalid characters.
|
|
1259
|
+
ic(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1260
|
+
if (r = n[this.treeIndex], c = (r & _u.VALUE_LENGTH) >> 14, c !== 0) {
|
|
1258
1261
|
if (i === q.SEMI)
|
|
1259
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
1262
|
+
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
|
1260
1263
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1261
1264
|
}
|
|
1262
1265
|
}
|
|
@@ -1310,60 +1313,60 @@ class so {
|
|
|
1310
1313
|
}
|
|
1311
1314
|
function Pt(u) {
|
|
1312
1315
|
let e = "";
|
|
1313
|
-
const t = new
|
|
1314
|
-
return function(r,
|
|
1315
|
-
let i = 0,
|
|
1316
|
-
for (; (
|
|
1317
|
-
e += r.slice(i,
|
|
1316
|
+
const t = new ac(u, (n) => e += tc(n));
|
|
1317
|
+
return function(r, c) {
|
|
1318
|
+
let i = 0, o = 0;
|
|
1319
|
+
for (; (o = r.indexOf("&", o)) >= 0; ) {
|
|
1320
|
+
e += r.slice(i, o), t.startEntity(c);
|
|
1318
1321
|
const s = t.write(
|
|
1319
1322
|
r,
|
|
1320
1323
|
// Skip the "&"
|
|
1321
|
-
|
|
1324
|
+
o + 1
|
|
1322
1325
|
);
|
|
1323
1326
|
if (s < 0) {
|
|
1324
|
-
i =
|
|
1327
|
+
i = o + t.end();
|
|
1325
1328
|
break;
|
|
1326
1329
|
}
|
|
1327
|
-
i =
|
|
1330
|
+
i = o + s, o = s === 0 ? i + 1 : i;
|
|
1328
1331
|
}
|
|
1329
1332
|
const a = e + r.slice(i);
|
|
1330
1333
|
return e = "", a;
|
|
1331
1334
|
};
|
|
1332
1335
|
}
|
|
1333
|
-
function
|
|
1334
|
-
const r = (e & _u.BRANCH_LENGTH) >> 7,
|
|
1336
|
+
function sc(u, e, t, n) {
|
|
1337
|
+
const r = (e & _u.BRANCH_LENGTH) >> 7, c = e & _u.JUMP_TABLE;
|
|
1335
1338
|
if (r === 0)
|
|
1336
|
-
return
|
|
1337
|
-
if (
|
|
1338
|
-
const a = n -
|
|
1339
|
+
return c !== 0 && n === c ? t : -1;
|
|
1340
|
+
if (c) {
|
|
1341
|
+
const a = n - c;
|
|
1339
1342
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
|
1340
1343
|
}
|
|
1341
|
-
let i = t,
|
|
1342
|
-
for (; i <=
|
|
1343
|
-
const a = i +
|
|
1344
|
+
let i = t, o = i + r - 1;
|
|
1345
|
+
for (; i <= o; ) {
|
|
1346
|
+
const a = i + o >>> 1, s = u[a];
|
|
1344
1347
|
if (s < n)
|
|
1345
1348
|
i = a + 1;
|
|
1346
1349
|
else if (s > n)
|
|
1347
|
-
|
|
1350
|
+
o = a - 1;
|
|
1348
1351
|
else
|
|
1349
1352
|
return u[a + r];
|
|
1350
1353
|
}
|
|
1351
1354
|
return -1;
|
|
1352
1355
|
}
|
|
1353
|
-
const
|
|
1354
|
-
Pt(
|
|
1356
|
+
const lc = Pt(Kr);
|
|
1357
|
+
Pt(uc);
|
|
1355
1358
|
function Bt(u, e = bu.Legacy) {
|
|
1356
|
-
return
|
|
1359
|
+
return lc(u, e);
|
|
1357
1360
|
}
|
|
1358
|
-
function
|
|
1361
|
+
function fc(u) {
|
|
1359
1362
|
return Object.prototype.toString.call(u);
|
|
1360
1363
|
}
|
|
1361
1364
|
function h0(u) {
|
|
1362
|
-
return
|
|
1365
|
+
return fc(u) === "[object String]";
|
|
1363
1366
|
}
|
|
1364
|
-
const
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1367
|
+
const dc = Object.prototype.hasOwnProperty;
|
|
1368
|
+
function pc(u, e) {
|
|
1369
|
+
return dc.call(u, e);
|
|
1367
1370
|
}
|
|
1368
1371
|
function we(u) {
|
|
1369
1372
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
@@ -1390,38 +1393,38 @@ function Fe(u) {
|
|
|
1390
1393
|
}
|
|
1391
1394
|
return String.fromCharCode(u);
|
|
1392
1395
|
}
|
|
1393
|
-
const qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,
|
|
1394
|
-
function
|
|
1395
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1396
|
+
const qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, hc = /&([a-z#][a-z0-9]{1,31});/gi, bc = new RegExp(qt.source + "|" + hc.source, "gi"), _c = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1397
|
+
function mc(u, e) {
|
|
1398
|
+
if (e.charCodeAt(0) === 35 && _c.test(e)) {
|
|
1396
1399
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1397
1400
|
return b0(n) ? Fe(n) : u;
|
|
1398
1401
|
}
|
|
1399
1402
|
const t = Bt(u);
|
|
1400
1403
|
return t !== u ? t : u;
|
|
1401
1404
|
}
|
|
1402
|
-
function
|
|
1405
|
+
function xc(u) {
|
|
1403
1406
|
return u.indexOf("\\") < 0 ? u : u.replace(qt, "$1");
|
|
1404
1407
|
}
|
|
1405
1408
|
function qu(u) {
|
|
1406
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1407
|
-
return t ||
|
|
1409
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(bc, function(e, t, n) {
|
|
1410
|
+
return t || mc(e, n);
|
|
1408
1411
|
});
|
|
1409
1412
|
}
|
|
1410
|
-
const
|
|
1413
|
+
const gc = /[&<>"]/, kc = /[&<>"]/g, Ec = {
|
|
1411
1414
|
"&": "&",
|
|
1412
1415
|
"<": "<",
|
|
1413
1416
|
">": ">",
|
|
1414
1417
|
'"': """
|
|
1415
1418
|
};
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1419
|
+
function Cc(u) {
|
|
1420
|
+
return Ec[u];
|
|
1418
1421
|
}
|
|
1419
1422
|
function gu(u) {
|
|
1420
|
-
return
|
|
1423
|
+
return gc.test(u) ? u.replace(kc, Cc) : u;
|
|
1421
1424
|
}
|
|
1422
|
-
const
|
|
1423
|
-
function
|
|
1424
|
-
return u.replace(
|
|
1425
|
+
const Ac = /[.?*+^$[\]\\(){}|-]/g;
|
|
1426
|
+
function Dc(u) {
|
|
1427
|
+
return u.replace(Ac, "\\$&");
|
|
1425
1428
|
}
|
|
1426
1429
|
function w(u) {
|
|
1427
1430
|
switch (u) {
|
|
@@ -1450,10 +1453,10 @@ function re(u) {
|
|
|
1450
1453
|
}
|
|
1451
1454
|
return !1;
|
|
1452
1455
|
}
|
|
1453
|
-
function
|
|
1456
|
+
function ce(u) {
|
|
1454
1457
|
return p0.test(u) || Ot.test(u);
|
|
1455
1458
|
}
|
|
1456
|
-
function
|
|
1459
|
+
function oe(u) {
|
|
1457
1460
|
switch (u) {
|
|
1458
1461
|
case 33:
|
|
1459
1462
|
case 34:
|
|
@@ -1495,34 +1498,34 @@ function ce(u) {
|
|
|
1495
1498
|
function ve(u) {
|
|
1496
1499
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1497
1500
|
}
|
|
1498
|
-
const
|
|
1501
|
+
const yc = { mdurl: Xr, ucmicro: Qr }, Fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1499
1502
|
__proto__: null,
|
|
1500
1503
|
arrayReplaceAt: zt,
|
|
1501
1504
|
assign: we,
|
|
1502
1505
|
escapeHtml: gu,
|
|
1503
|
-
escapeRE:
|
|
1506
|
+
escapeRE: Dc,
|
|
1504
1507
|
fromCodePoint: Fe,
|
|
1505
|
-
has:
|
|
1506
|
-
isMdAsciiPunct:
|
|
1507
|
-
isPunctChar:
|
|
1508
|
+
has: pc,
|
|
1509
|
+
isMdAsciiPunct: oe,
|
|
1510
|
+
isPunctChar: ce,
|
|
1508
1511
|
isSpace: w,
|
|
1509
1512
|
isString: h0,
|
|
1510
1513
|
isValidEntityCode: b0,
|
|
1511
1514
|
isWhiteSpace: re,
|
|
1512
|
-
lib:
|
|
1515
|
+
lib: yc,
|
|
1513
1516
|
normalizeReference: ve,
|
|
1514
1517
|
unescapeAll: qu,
|
|
1515
|
-
unescapeMd:
|
|
1518
|
+
unescapeMd: xc
|
|
1516
1519
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1517
|
-
function
|
|
1518
|
-
let n, r,
|
|
1519
|
-
const
|
|
1520
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
1521
|
-
if (
|
|
1520
|
+
function Tc(u, e, t) {
|
|
1521
|
+
let n, r, c, i;
|
|
1522
|
+
const o = u.posMax, a = u.pos;
|
|
1523
|
+
for (u.pos = e + 1, n = 1; u.pos < o; ) {
|
|
1524
|
+
if (c = u.src.charCodeAt(u.pos), c === 93 && (n--, n === 0)) {
|
|
1522
1525
|
r = !0;
|
|
1523
1526
|
break;
|
|
1524
1527
|
}
|
|
1525
|
-
if (i = u.pos, u.md.inline.skipToken(u),
|
|
1528
|
+
if (i = u.pos, u.md.inline.skipToken(u), c === 91) {
|
|
1526
1529
|
if (i === u.pos - 1)
|
|
1527
1530
|
n++;
|
|
1528
1531
|
else if (t)
|
|
@@ -1532,9 +1535,9 @@ function wo(u, e, t) {
|
|
|
1532
1535
|
let s = -1;
|
|
1533
1536
|
return r && (s = u.pos), u.pos = a, s;
|
|
1534
1537
|
}
|
|
1535
|
-
function
|
|
1538
|
+
function Sc(u, e, t) {
|
|
1536
1539
|
let n, r = e;
|
|
1537
|
-
const
|
|
1540
|
+
const c = {
|
|
1538
1541
|
ok: !1,
|
|
1539
1542
|
pos: 0,
|
|
1540
1543
|
str: ""
|
|
@@ -1542,16 +1545,16 @@ function vo(u, e, t) {
|
|
|
1542
1545
|
if (u.charCodeAt(r) === 60) {
|
|
1543
1546
|
for (r++; r < t; ) {
|
|
1544
1547
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1545
|
-
return
|
|
1548
|
+
return c;
|
|
1546
1549
|
if (n === 62)
|
|
1547
|
-
return
|
|
1550
|
+
return c.pos = r + 1, c.str = qu(u.slice(e + 1, r)), c.ok = !0, c;
|
|
1548
1551
|
if (n === 92 && r + 1 < t) {
|
|
1549
1552
|
r += 2;
|
|
1550
1553
|
continue;
|
|
1551
1554
|
}
|
|
1552
1555
|
r++;
|
|
1553
1556
|
}
|
|
1554
|
-
return
|
|
1557
|
+
return c;
|
|
1555
1558
|
}
|
|
1556
1559
|
let i = 0;
|
|
1557
1560
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
@@ -1562,7 +1565,7 @@ function vo(u, e, t) {
|
|
|
1562
1565
|
continue;
|
|
1563
1566
|
}
|
|
1564
1567
|
if (n === 40 && (i++, i > 32))
|
|
1565
|
-
return
|
|
1568
|
+
return c;
|
|
1566
1569
|
if (n === 41) {
|
|
1567
1570
|
if (i === 0)
|
|
1568
1571
|
break;
|
|
@@ -1570,10 +1573,10 @@ function vo(u, e, t) {
|
|
|
1570
1573
|
}
|
|
1571
1574
|
r++;
|
|
1572
1575
|
}
|
|
1573
|
-
return e === r || i !== 0 || (
|
|
1576
|
+
return e === r || i !== 0 || (c.str = qu(u.slice(e, r)), c.pos = r, c.ok = !0), c;
|
|
1574
1577
|
}
|
|
1575
|
-
function
|
|
1576
|
-
let r,
|
|
1578
|
+
function wc(u, e, t, n) {
|
|
1579
|
+
let r, c = e;
|
|
1577
1580
|
const i = {
|
|
1578
1581
|
// if `true`, this is a valid link title
|
|
1579
1582
|
ok: !1,
|
|
@@ -1589,63 +1592,63 @@ function Ro(u, e, t, n) {
|
|
|
1589
1592
|
if (n)
|
|
1590
1593
|
i.str = n.str, i.marker = n.marker;
|
|
1591
1594
|
else {
|
|
1592
|
-
if (
|
|
1595
|
+
if (c >= t)
|
|
1593
1596
|
return i;
|
|
1594
|
-
let
|
|
1595
|
-
if (
|
|
1597
|
+
let o = u.charCodeAt(c);
|
|
1598
|
+
if (o !== 34 && o !== 39 && o !== 40)
|
|
1596
1599
|
return i;
|
|
1597
|
-
e++,
|
|
1600
|
+
e++, c++, o === 40 && (o = 41), i.marker = o;
|
|
1598
1601
|
}
|
|
1599
|
-
for (;
|
|
1600
|
-
if (r = u.charCodeAt(
|
|
1601
|
-
return i.pos =
|
|
1602
|
+
for (; c < t; ) {
|
|
1603
|
+
if (r = u.charCodeAt(c), r === i.marker)
|
|
1604
|
+
return i.pos = c + 1, i.str += qu(u.slice(e, c)), i.ok = !0, i;
|
|
1602
1605
|
if (r === 40 && i.marker === 41)
|
|
1603
1606
|
return i;
|
|
1604
|
-
r === 92 &&
|
|
1607
|
+
r === 92 && c + 1 < t && c++, c++;
|
|
1605
1608
|
}
|
|
1606
|
-
return i.can_continue = !0, i.str += qu(u.slice(e,
|
|
1609
|
+
return i.can_continue = !0, i.str += qu(u.slice(e, c)), i;
|
|
1607
1610
|
}
|
|
1608
|
-
const
|
|
1611
|
+
const vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1609
1612
|
__proto__: null,
|
|
1610
|
-
parseLinkDestination:
|
|
1611
|
-
parseLinkLabel:
|
|
1612
|
-
parseLinkTitle:
|
|
1613
|
+
parseLinkDestination: Sc,
|
|
1614
|
+
parseLinkLabel: Tc,
|
|
1615
|
+
parseLinkTitle: wc
|
|
1613
1616
|
}, Symbol.toStringTag, { value: "Module" })), iu = {};
|
|
1614
1617
|
iu.code_inline = function(u, e, t, n, r) {
|
|
1615
|
-
const
|
|
1616
|
-
return "<code" + r.renderAttrs(
|
|
1618
|
+
const c = u[e];
|
|
1619
|
+
return "<code" + r.renderAttrs(c) + ">" + gu(c.content) + "</code>";
|
|
1617
1620
|
};
|
|
1618
1621
|
iu.code_block = function(u, e, t, n, r) {
|
|
1619
|
-
const
|
|
1620
|
-
return "<pre" + r.renderAttrs(
|
|
1622
|
+
const c = u[e];
|
|
1623
|
+
return "<pre" + r.renderAttrs(c) + "><code>" + gu(u[e].content) + `</code></pre>
|
|
1621
1624
|
`;
|
|
1622
1625
|
};
|
|
1623
1626
|
iu.fence = function(u, e, t, n, r) {
|
|
1624
|
-
const
|
|
1625
|
-
let
|
|
1627
|
+
const c = u[e], i = c.info ? qu(c.info).trim() : "";
|
|
1628
|
+
let o = "", a = "";
|
|
1626
1629
|
if (i) {
|
|
1627
1630
|
const f = i.split(/(\s+)/g);
|
|
1628
|
-
|
|
1631
|
+
o = f[0], a = f.slice(2).join("");
|
|
1629
1632
|
}
|
|
1630
1633
|
let s;
|
|
1631
|
-
if (t.highlight ? s = t.highlight(
|
|
1634
|
+
if (t.highlight ? s = t.highlight(c.content, o, a) || gu(c.content) : s = gu(c.content), s.indexOf("<pre") === 0)
|
|
1632
1635
|
return s + `
|
|
1633
1636
|
`;
|
|
1634
1637
|
if (i) {
|
|
1635
|
-
const f =
|
|
1636
|
-
f < 0 ? d.push(["class", t.langPrefix +
|
|
1638
|
+
const f = c.attrIndex("class"), d = c.attrs ? c.attrs.slice() : [];
|
|
1639
|
+
f < 0 ? d.push(["class", t.langPrefix + o]) : (d[f] = d[f].slice(), d[f][1] += " " + t.langPrefix + o);
|
|
1637
1640
|
const _ = {
|
|
1638
1641
|
attrs: d
|
|
1639
1642
|
};
|
|
1640
1643
|
return `<pre><code${r.renderAttrs(_)}>${s}</code></pre>
|
|
1641
1644
|
`;
|
|
1642
1645
|
}
|
|
1643
|
-
return `<pre><code${r.renderAttrs(
|
|
1646
|
+
return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
|
|
1644
1647
|
`;
|
|
1645
1648
|
};
|
|
1646
1649
|
iu.image = function(u, e, t, n, r) {
|
|
1647
|
-
const
|
|
1648
|
-
return
|
|
1650
|
+
const c = u[e];
|
|
1651
|
+
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
|
1649
1652
|
};
|
|
1650
1653
|
iu.hardbreak = function(u, e, t) {
|
|
1651
1654
|
return t.xhtmlOut ? `<br />
|
|
@@ -1680,31 +1683,31 @@ Hu.prototype.renderAttrs = function(e) {
|
|
|
1680
1683
|
};
|
|
1681
1684
|
Hu.prototype.renderToken = function(e, t, n) {
|
|
1682
1685
|
const r = e[t];
|
|
1683
|
-
let
|
|
1686
|
+
let c = "";
|
|
1684
1687
|
if (r.hidden)
|
|
1685
1688
|
return "";
|
|
1686
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
1687
|
-
`),
|
|
1689
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (c += `
|
|
1690
|
+
`), c += (r.nesting === -1 ? "</" : "<") + r.tag, c += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (c += " /");
|
|
1688
1691
|
let i = !1;
|
|
1689
1692
|
if (r.block && (i = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1690
|
-
const
|
|
1691
|
-
(
|
|
1693
|
+
const o = e[t + 1];
|
|
1694
|
+
(o.type === "inline" || o.hidden || o.nesting === -1 && o.tag === r.tag) && (i = !1);
|
|
1692
1695
|
}
|
|
1693
|
-
return
|
|
1694
|
-
` : ">",
|
|
1696
|
+
return c += i ? `>
|
|
1697
|
+
` : ">", c;
|
|
1695
1698
|
};
|
|
1696
1699
|
Hu.prototype.renderInline = function(u, e, t) {
|
|
1697
1700
|
let n = "";
|
|
1698
1701
|
const r = this.rules;
|
|
1699
|
-
for (let
|
|
1700
|
-
const
|
|
1701
|
-
typeof r[
|
|
1702
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
|
1703
|
+
const o = u[c].type;
|
|
1704
|
+
typeof r[o] < "u" ? n += r[o](u, c, e, t, this) : n += this.renderToken(u, c, e);
|
|
1702
1705
|
}
|
|
1703
1706
|
return n;
|
|
1704
1707
|
};
|
|
1705
1708
|
Hu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1706
1709
|
let n = "";
|
|
1707
|
-
for (let r = 0,
|
|
1710
|
+
for (let r = 0, c = u.length; r < c; r++)
|
|
1708
1711
|
switch (u[r].type) {
|
|
1709
1712
|
case "text":
|
|
1710
1713
|
n += u[r].content;
|
|
@@ -1727,9 +1730,9 @@ Hu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1727
1730
|
Hu.prototype.render = function(u, e, t) {
|
|
1728
1731
|
let n = "";
|
|
1729
1732
|
const r = this.rules;
|
|
1730
|
-
for (let
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1733
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
|
1734
|
+
const o = u[c].type;
|
|
1735
|
+
o === "inline" ? n += this.renderInline(u[c].children, e, t) : typeof r[o] < "u" ? n += r[o](u, c, e, t, this) : n += this.renderToken(u, c, e, t);
|
|
1733
1736
|
}
|
|
1734
1737
|
return n;
|
|
1735
1738
|
};
|
|
@@ -1761,25 +1764,25 @@ V.prototype.at = function(u, e, t) {
|
|
|
1761
1764
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1762
1765
|
};
|
|
1763
1766
|
V.prototype.before = function(u, e, t, n) {
|
|
1764
|
-
const r = this.__find__(u),
|
|
1767
|
+
const r = this.__find__(u), c = n || {};
|
|
1765
1768
|
if (r === -1)
|
|
1766
1769
|
throw new Error("Parser rule not found: " + u);
|
|
1767
1770
|
this.__rules__.splice(r, 0, {
|
|
1768
1771
|
name: e,
|
|
1769
1772
|
enabled: !0,
|
|
1770
1773
|
fn: t,
|
|
1771
|
-
alt:
|
|
1774
|
+
alt: c.alt || []
|
|
1772
1775
|
}), this.__cache__ = null;
|
|
1773
1776
|
};
|
|
1774
1777
|
V.prototype.after = function(u, e, t, n) {
|
|
1775
|
-
const r = this.__find__(u),
|
|
1778
|
+
const r = this.__find__(u), c = n || {};
|
|
1776
1779
|
if (r === -1)
|
|
1777
1780
|
throw new Error("Parser rule not found: " + u);
|
|
1778
1781
|
this.__rules__.splice(r + 1, 0, {
|
|
1779
1782
|
name: e,
|
|
1780
1783
|
enabled: !0,
|
|
1781
1784
|
fn: t,
|
|
1782
|
-
alt:
|
|
1785
|
+
alt: c.alt || []
|
|
1783
1786
|
}), this.__cache__ = null;
|
|
1784
1787
|
};
|
|
1785
1788
|
V.prototype.push = function(u, e, t) {
|
|
@@ -1857,62 +1860,62 @@ function Ut(u, e, t) {
|
|
|
1857
1860
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1858
1861
|
}
|
|
1859
1862
|
Ut.prototype.Token = eu;
|
|
1860
|
-
const
|
|
1861
|
-
function
|
|
1863
|
+
const Rc = /\r\n?|\n/g, Mc = /\0/g;
|
|
1864
|
+
function Ic(u) {
|
|
1862
1865
|
let e;
|
|
1863
|
-
e = u.src.replace(
|
|
1864
|
-
`), e = e.replace(
|
|
1866
|
+
e = u.src.replace(Rc, `
|
|
1867
|
+
`), e = e.replace(Mc, "�"), u.src = e;
|
|
1865
1868
|
}
|
|
1866
|
-
function
|
|
1869
|
+
function Lc(u) {
|
|
1867
1870
|
let e;
|
|
1868
1871
|
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);
|
|
1869
1872
|
}
|
|
1870
|
-
function
|
|
1873
|
+
function Oc(u) {
|
|
1871
1874
|
const e = u.tokens;
|
|
1872
1875
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1873
1876
|
const r = e[t];
|
|
1874
1877
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1875
1878
|
}
|
|
1876
1879
|
}
|
|
1877
|
-
function
|
|
1880
|
+
function Nc(u) {
|
|
1878
1881
|
return /^<a[>\s]/i.test(u);
|
|
1879
1882
|
}
|
|
1880
|
-
function
|
|
1883
|
+
function Pc(u) {
|
|
1881
1884
|
return /^<\/a\s*>/i.test(u);
|
|
1882
1885
|
}
|
|
1883
|
-
function
|
|
1886
|
+
function Bc(u) {
|
|
1884
1887
|
const e = u.tokens;
|
|
1885
1888
|
if (u.md.options.linkify)
|
|
1886
1889
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1887
1890
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1888
1891
|
continue;
|
|
1889
|
-
let r = e[t].children,
|
|
1892
|
+
let r = e[t].children, c = 0;
|
|
1890
1893
|
for (let i = r.length - 1; i >= 0; i--) {
|
|
1891
|
-
const
|
|
1892
|
-
if (
|
|
1893
|
-
for (i--; r[i].level !==
|
|
1894
|
+
const o = r[i];
|
|
1895
|
+
if (o.type === "link_close") {
|
|
1896
|
+
for (i--; r[i].level !== o.level && r[i].type !== "link_open"; )
|
|
1894
1897
|
i--;
|
|
1895
1898
|
continue;
|
|
1896
1899
|
}
|
|
1897
|
-
if (
|
|
1898
|
-
const a =
|
|
1900
|
+
if (o.type === "html_inline" && (Nc(o.content) && c > 0 && c--, Pc(o.content) && c++), !(c > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
|
1901
|
+
const a = o.content;
|
|
1899
1902
|
let s = u.md.linkify.match(a);
|
|
1900
1903
|
const f = [];
|
|
1901
|
-
let d =
|
|
1904
|
+
let d = o.level, _ = 0;
|
|
1902
1905
|
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1903
1906
|
for (let h = 0; h < s.length; h++) {
|
|
1904
|
-
const p = s[h].url,
|
|
1905
|
-
if (!u.md.validateLink(
|
|
1907
|
+
const p = s[h].url, A = u.md.normalizeLink(p);
|
|
1908
|
+
if (!u.md.validateLink(A))
|
|
1906
1909
|
continue;
|
|
1907
1910
|
let D = s[h].text;
|
|
1908
1911
|
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
|
|
1909
1912
|
const S = s[h].index;
|
|
1910
1913
|
if (S > _) {
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1914
|
+
const C = new u.Token("text", "", 0);
|
|
1915
|
+
C.content = a.slice(_, S), C.level = d, f.push(C);
|
|
1913
1916
|
}
|
|
1914
1917
|
const E = new u.Token("link_open", "a", 1);
|
|
1915
|
-
E.attrs = [["href",
|
|
1918
|
+
E.attrs = [["href", A]], E.level = d++, E.markup = "linkify", E.info = "auto", f.push(E);
|
|
1916
1919
|
const k = new u.Token("text", "", 0);
|
|
1917
1920
|
k.content = D, k.level = d, f.push(k);
|
|
1918
1921
|
const m = new u.Token("link_close", "a", -1);
|
|
@@ -1927,52 +1930,52 @@ function qo(u) {
|
|
|
1927
1930
|
}
|
|
1928
1931
|
}
|
|
1929
1932
|
}
|
|
1930
|
-
const Ht = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
|
|
1933
|
+
const Ht = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, zc = /\((c|tm|r)\)/i, qc = /\((c|tm|r)\)/ig, Uc = {
|
|
1931
1934
|
c: "©",
|
|
1932
1935
|
r: "®",
|
|
1933
1936
|
tm: "™"
|
|
1934
1937
|
};
|
|
1935
|
-
function
|
|
1936
|
-
return
|
|
1938
|
+
function Hc(u, e) {
|
|
1939
|
+
return Uc[e.toLowerCase()];
|
|
1937
1940
|
}
|
|
1938
|
-
function
|
|
1941
|
+
function $c(u) {
|
|
1939
1942
|
let e = 0;
|
|
1940
1943
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1941
1944
|
const n = u[t];
|
|
1942
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1945
|
+
n.type === "text" && !e && (n.content = n.content.replace(qc, Hc)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1943
1946
|
}
|
|
1944
1947
|
}
|
|
1945
|
-
function
|
|
1948
|
+
function jc(u) {
|
|
1946
1949
|
let e = 0;
|
|
1947
1950
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1948
1951
|
const n = u[t];
|
|
1949
1952
|
n.type === "text" && !e && Ht.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++;
|
|
1950
1953
|
}
|
|
1951
1954
|
}
|
|
1952
|
-
function
|
|
1955
|
+
function Gc(u) {
|
|
1953
1956
|
let e;
|
|
1954
1957
|
if (u.md.options.typographer)
|
|
1955
1958
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1956
|
-
u.tokens[e].type === "inline" && (
|
|
1959
|
+
u.tokens[e].type === "inline" && (zc.test(u.tokens[e].content) && $c(u.tokens[e].children), Ht.test(u.tokens[e].content) && jc(u.tokens[e].children));
|
|
1957
1960
|
}
|
|
1958
|
-
const
|
|
1961
|
+
const Wc = /['"]/, ft = /['"]/g, dt = "’";
|
|
1959
1962
|
function Ee(u, e, t) {
|
|
1960
1963
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1961
1964
|
}
|
|
1962
|
-
function
|
|
1965
|
+
function Zc(u, e) {
|
|
1963
1966
|
let t;
|
|
1964
1967
|
const n = [];
|
|
1965
1968
|
for (let r = 0; r < u.length; r++) {
|
|
1966
|
-
const
|
|
1969
|
+
const c = u[r], i = u[r].level;
|
|
1967
1970
|
for (t = n.length - 1; t >= 0 && !(n[t].level <= i); t--)
|
|
1968
1971
|
;
|
|
1969
|
-
if (n.length = t + 1,
|
|
1972
|
+
if (n.length = t + 1, c.type !== "text")
|
|
1970
1973
|
continue;
|
|
1971
|
-
let
|
|
1974
|
+
let o = c.content, a = 0, s = o.length;
|
|
1972
1975
|
u:
|
|
1973
1976
|
for (; a < s; ) {
|
|
1974
1977
|
ft.lastIndex = a;
|
|
1975
|
-
const f = ft.exec(
|
|
1978
|
+
const f = ft.exec(o);
|
|
1976
1979
|
if (!f)
|
|
1977
1980
|
break;
|
|
1978
1981
|
let d = !0, _ = !0;
|
|
@@ -1980,25 +1983,25 @@ function Yo(u, e) {
|
|
|
1980
1983
|
const h = f[0] === "'";
|
|
1981
1984
|
let p = 32;
|
|
1982
1985
|
if (f.index - 1 >= 0)
|
|
1983
|
-
p =
|
|
1986
|
+
p = o.charCodeAt(f.index - 1);
|
|
1984
1987
|
else
|
|
1985
1988
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1986
1989
|
if (u[t].content) {
|
|
1987
1990
|
p = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1988
1991
|
break;
|
|
1989
1992
|
}
|
|
1990
|
-
let
|
|
1993
|
+
let A = 32;
|
|
1991
1994
|
if (a < s)
|
|
1992
|
-
|
|
1995
|
+
A = o.charCodeAt(a);
|
|
1993
1996
|
else
|
|
1994
1997
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1995
1998
|
if (u[t].content) {
|
|
1996
|
-
|
|
1999
|
+
A = u[t].content.charCodeAt(0);
|
|
1997
2000
|
break;
|
|
1998
2001
|
}
|
|
1999
|
-
const D =
|
|
2000
|
-
if (k ? d = !1 : S && (E || D || (d = !1)), E ? _ = !1 : D && (k || S || (_ = !1)),
|
|
2001
|
-
h && (
|
|
2002
|
+
const D = oe(p) || ce(String.fromCharCode(p)), S = oe(A) || ce(String.fromCharCode(A)), E = re(p), k = re(A);
|
|
2003
|
+
if (k ? d = !1 : S && (E || D || (d = !1)), E ? _ = !1 : D && (k || S || (_ = !1)), A === 34 && f[0] === '"' && p >= 48 && p <= 57 && (_ = d = !1), d && _ && (d = D, _ = S), !d && !_) {
|
|
2004
|
+
h && (c.content = Ee(c.content, f.index, dt));
|
|
2002
2005
|
continue;
|
|
2003
2006
|
}
|
|
2004
2007
|
if (_)
|
|
@@ -2008,12 +2011,12 @@ function Yo(u, e) {
|
|
|
2008
2011
|
break;
|
|
2009
2012
|
if (m.single === h && n[t].level === i) {
|
|
2010
2013
|
m = n[t];
|
|
2011
|
-
let
|
|
2012
|
-
h ? (
|
|
2014
|
+
let C, y;
|
|
2015
|
+
h ? (C = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (C = e.md.options.quotes[0], y = e.md.options.quotes[1]), c.content = Ee(c.content, f.index, y), u[m.token].content = Ee(
|
|
2013
2016
|
u[m.token].content,
|
|
2014
2017
|
m.pos,
|
|
2015
|
-
|
|
2016
|
-
), a += y.length - 1, m.token === r && (a +=
|
|
2018
|
+
C
|
|
2019
|
+
), a += y.length - 1, m.token === r && (a += C.length - 1), o = c.content, s = o.length, n.length = t;
|
|
2017
2020
|
continue u;
|
|
2018
2021
|
}
|
|
2019
2022
|
}
|
|
@@ -2022,38 +2025,38 @@ function Yo(u, e) {
|
|
|
2022
2025
|
pos: f.index,
|
|
2023
2026
|
single: h,
|
|
2024
2027
|
level: i
|
|
2025
|
-
}) : _ && h && (
|
|
2028
|
+
}) : _ && h && (c.content = Ee(c.content, f.index, dt));
|
|
2026
2029
|
}
|
|
2027
2030
|
}
|
|
2028
2031
|
}
|
|
2029
|
-
function
|
|
2032
|
+
function Vc(u) {
|
|
2030
2033
|
if (u.md.options.typographer)
|
|
2031
2034
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
2032
|
-
u.tokens[e].type !== "inline" || !
|
|
2035
|
+
u.tokens[e].type !== "inline" || !Wc.test(u.tokens[e].content) || Zc(u.tokens[e].children, u);
|
|
2033
2036
|
}
|
|
2034
|
-
function
|
|
2037
|
+
function Yc(u) {
|
|
2035
2038
|
let e, t;
|
|
2036
2039
|
const n = u.tokens, r = n.length;
|
|
2037
|
-
for (let
|
|
2038
|
-
if (n[
|
|
2039
|
-
const i = n[
|
|
2040
|
-
for (e = 0; e <
|
|
2040
|
+
for (let c = 0; c < r; c++) {
|
|
2041
|
+
if (n[c].type !== "inline") continue;
|
|
2042
|
+
const i = n[c].children, o = i.length;
|
|
2043
|
+
for (e = 0; e < o; e++)
|
|
2041
2044
|
i[e].type === "text_special" && (i[e].type = "text");
|
|
2042
|
-
for (e = t = 0; e <
|
|
2043
|
-
i[e].type === "text" && e + 1 <
|
|
2045
|
+
for (e = t = 0; e < o; e++)
|
|
2046
|
+
i[e].type === "text" && e + 1 < o && i[e + 1].type === "text" ? i[e + 1].content = i[e].content + i[e + 1].content : (e !== t && (i[t] = i[e]), t++);
|
|
2044
2047
|
e !== t && (i.length = t);
|
|
2045
2048
|
}
|
|
2046
2049
|
}
|
|
2047
2050
|
const Je = [
|
|
2048
|
-
["normalize",
|
|
2049
|
-
["block",
|
|
2050
|
-
["inline",
|
|
2051
|
-
["linkify",
|
|
2052
|
-
["replacements",
|
|
2053
|
-
["smartquotes",
|
|
2051
|
+
["normalize", Ic],
|
|
2052
|
+
["block", Lc],
|
|
2053
|
+
["inline", Oc],
|
|
2054
|
+
["linkify", Bc],
|
|
2055
|
+
["replacements", Gc],
|
|
2056
|
+
["smartquotes", Vc],
|
|
2054
2057
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
2055
2058
|
// and joins them with the rest of the text
|
|
2056
|
-
["text_join",
|
|
2059
|
+
["text_join", Yc]
|
|
2057
2060
|
];
|
|
2058
2061
|
function _0() {
|
|
2059
2062
|
this.ruler = new V();
|
|
@@ -2069,15 +2072,15 @@ _0.prototype.State = Ut;
|
|
|
2069
2072
|
function au(u, e, t, n) {
|
|
2070
2073
|
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;
|
|
2071
2074
|
const r = this.src;
|
|
2072
|
-
for (let
|
|
2075
|
+
for (let c = 0, i = 0, o = 0, a = 0, s = r.length, f = !1; i < s; i++) {
|
|
2073
2076
|
const d = r.charCodeAt(i);
|
|
2074
2077
|
if (!f)
|
|
2075
2078
|
if (w(d)) {
|
|
2076
|
-
|
|
2079
|
+
o++, d === 9 ? a += 4 - a % 4 : a++;
|
|
2077
2080
|
continue;
|
|
2078
2081
|
} else
|
|
2079
2082
|
f = !0;
|
|
2080
|
-
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(
|
|
2083
|
+
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(c), this.eMarks.push(i), this.tShift.push(o), this.sCount.push(a), this.bsCount.push(0), f = !1, o = 0, a = 0, c = i + 1);
|
|
2081
2084
|
}
|
|
2082
2085
|
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;
|
|
2083
2086
|
}
|
|
@@ -2125,71 +2128,71 @@ au.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2125
2128
|
au.prototype.getLines = function(e, t, n, r) {
|
|
2126
2129
|
if (e >= t)
|
|
2127
2130
|
return "";
|
|
2128
|
-
const
|
|
2129
|
-
for (let i = 0,
|
|
2131
|
+
const c = new Array(t - e);
|
|
2132
|
+
for (let i = 0, o = e; o < t; o++, i++) {
|
|
2130
2133
|
let a = 0;
|
|
2131
|
-
const s = this.bMarks[
|
|
2134
|
+
const s = this.bMarks[o];
|
|
2132
2135
|
let f = s, d;
|
|
2133
|
-
for (
|
|
2136
|
+
for (o + 1 < t || r ? d = this.eMarks[o] + 1 : d = this.eMarks[o]; f < d && a < n; ) {
|
|
2134
2137
|
const _ = this.src.charCodeAt(f);
|
|
2135
2138
|
if (w(_))
|
|
2136
|
-
_ === 9 ? a += 4 - (a + this.bsCount[
|
|
2137
|
-
else if (f - s < this.tShift[
|
|
2139
|
+
_ === 9 ? a += 4 - (a + this.bsCount[o]) % 4 : a++;
|
|
2140
|
+
else if (f - s < this.tShift[o])
|
|
2138
2141
|
a++;
|
|
2139
2142
|
else
|
|
2140
2143
|
break;
|
|
2141
2144
|
f++;
|
|
2142
2145
|
}
|
|
2143
|
-
a > n ?
|
|
2146
|
+
a > n ? c[i] = new Array(a - n + 1).join(" ") + this.src.slice(f, d) : c[i] = this.src.slice(f, d);
|
|
2144
2147
|
}
|
|
2145
|
-
return
|
|
2148
|
+
return c.join("");
|
|
2146
2149
|
};
|
|
2147
2150
|
au.prototype.Token = eu;
|
|
2148
|
-
const
|
|
2151
|
+
const Xc = 65536;
|
|
2149
2152
|
function Qe(u, e) {
|
|
2150
2153
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2151
2154
|
return u.src.slice(t, n);
|
|
2152
2155
|
}
|
|
2153
2156
|
function pt(u) {
|
|
2154
2157
|
const e = [], t = u.length;
|
|
2155
|
-
let n = 0, r = u.charCodeAt(n),
|
|
2158
|
+
let n = 0, r = u.charCodeAt(n), c = !1, i = 0, o = "";
|
|
2156
2159
|
for (; n < t; )
|
|
2157
|
-
r === 124 && (
|
|
2158
|
-
return e.push(
|
|
2160
|
+
r === 124 && (c ? (o += u.substring(i, n - 1), i = n) : (e.push(o + u.substring(i, n)), o = "", i = n + 1)), c = r === 92, n++, r = u.charCodeAt(n);
|
|
2161
|
+
return e.push(o + u.substring(i)), e;
|
|
2159
2162
|
}
|
|
2160
|
-
function
|
|
2163
|
+
function Jc(u, e, t, n) {
|
|
2161
2164
|
if (e + 2 > t)
|
|
2162
2165
|
return !1;
|
|
2163
2166
|
let r = e + 1;
|
|
2164
2167
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
2165
2168
|
return !1;
|
|
2166
|
-
let
|
|
2167
|
-
if (
|
|
2169
|
+
let c = u.bMarks[r] + u.tShift[r];
|
|
2170
|
+
if (c >= u.eMarks[r])
|
|
2168
2171
|
return !1;
|
|
2169
|
-
const i = u.src.charCodeAt(
|
|
2170
|
-
if (i !== 124 && i !== 45 && i !== 58 ||
|
|
2172
|
+
const i = u.src.charCodeAt(c++);
|
|
2173
|
+
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[r])
|
|
2171
2174
|
return !1;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2175
|
+
const o = u.src.charCodeAt(c++);
|
|
2176
|
+
if (o !== 124 && o !== 45 && o !== 58 && !w(o) || i === 45 && w(o))
|
|
2174
2177
|
return !1;
|
|
2175
|
-
for (;
|
|
2176
|
-
const m = u.src.charCodeAt(
|
|
2178
|
+
for (; c < u.eMarks[r]; ) {
|
|
2179
|
+
const m = u.src.charCodeAt(c);
|
|
2177
2180
|
if (m !== 124 && m !== 45 && m !== 58 && !w(m))
|
|
2178
2181
|
return !1;
|
|
2179
|
-
|
|
2182
|
+
c++;
|
|
2180
2183
|
}
|
|
2181
2184
|
let a = Qe(u, e + 1), s = a.split("|");
|
|
2182
2185
|
const f = [];
|
|
2183
2186
|
for (let m = 0; m < s.length; m++) {
|
|
2184
|
-
const
|
|
2185
|
-
if (!
|
|
2187
|
+
const C = s[m].trim();
|
|
2188
|
+
if (!C) {
|
|
2186
2189
|
if (m === 0 || m === s.length - 1)
|
|
2187
2190
|
continue;
|
|
2188
2191
|
return !1;
|
|
2189
2192
|
}
|
|
2190
|
-
if (!/^:?-+:?$/.test(
|
|
2193
|
+
if (!/^:?-+:?$/.test(C))
|
|
2191
2194
|
return !1;
|
|
2192
|
-
|
|
2195
|
+
C.charCodeAt(C.length - 1) === 58 ? f.push(C.charCodeAt(0) === 58 ? "center" : "right") : C.charCodeAt(0) === 58 ? f.push("left") : f.push("");
|
|
2193
2196
|
}
|
|
2194
2197
|
if (a = Qe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2195
2198
|
return !1;
|
|
@@ -2201,15 +2204,15 @@ function Ko(u, e, t, n) {
|
|
|
2201
2204
|
return !0;
|
|
2202
2205
|
const _ = u.parentType;
|
|
2203
2206
|
u.parentType = "table";
|
|
2204
|
-
const h = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1),
|
|
2205
|
-
p.map =
|
|
2207
|
+
const h = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1), A = [e, 0];
|
|
2208
|
+
p.map = A;
|
|
2206
2209
|
const D = u.push("thead_open", "thead", 1);
|
|
2207
2210
|
D.map = [e, e + 1];
|
|
2208
2211
|
const S = u.push("tr_open", "tr", 1);
|
|
2209
2212
|
S.map = [e, e + 1];
|
|
2210
2213
|
for (let m = 0; m < s.length; m++) {
|
|
2211
|
-
const
|
|
2212
|
-
f[m] && (
|
|
2214
|
+
const C = u.push("th_open", "th", 1);
|
|
2215
|
+
f[m] && (C.attrs = [["style", "text-align:" + f[m]]]);
|
|
2213
2216
|
const y = u.push("inline", "", 0);
|
|
2214
2217
|
y.content = s[m].trim(), y.children = [], u.push("th_close", "th", -1);
|
|
2215
2218
|
}
|
|
@@ -2222,14 +2225,14 @@ function Ko(u, e, t, n) {
|
|
|
2222
2225
|
m = !0;
|
|
2223
2226
|
break;
|
|
2224
2227
|
}
|
|
2225
|
-
if (m || (a = Qe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = pt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k >
|
|
2228
|
+
if (m || (a = Qe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = pt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > Xc))
|
|
2226
2229
|
break;
|
|
2227
2230
|
if (r === e + 2) {
|
|
2228
2231
|
const y = u.push("tbody_open", "tbody", 1);
|
|
2229
2232
|
y.map = E = [e + 2, 0];
|
|
2230
2233
|
}
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2234
|
+
const C = u.push("tr_open", "tr", 1);
|
|
2235
|
+
C.map = [r, r + 1];
|
|
2233
2236
|
for (let y = 0; y < d; y++) {
|
|
2234
2237
|
const L = u.push("td_open", "td", 1);
|
|
2235
2238
|
f[y] && (L.attrs = [["style", "text-align:" + f[y]]]);
|
|
@@ -2238,9 +2241,9 @@ function Ko(u, e, t, n) {
|
|
|
2238
2241
|
}
|
|
2239
2242
|
u.push("tr_close", "tr", -1);
|
|
2240
2243
|
}
|
|
2241
|
-
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1),
|
|
2244
|
+
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), A[1] = r, u.parentType = _, u.line = r, !0;
|
|
2242
2245
|
}
|
|
2243
|
-
function
|
|
2246
|
+
function Qc(u, e, t) {
|
|
2244
2247
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2245
2248
|
return !1;
|
|
2246
2249
|
let n = e + 1, r = n;
|
|
@@ -2256,30 +2259,30 @@ function uc(u, e, t) {
|
|
|
2256
2259
|
break;
|
|
2257
2260
|
}
|
|
2258
2261
|
u.line = r;
|
|
2259
|
-
const
|
|
2260
|
-
return
|
|
2261
|
-
`,
|
|
2262
|
+
const c = u.push("code_block", "code", 0);
|
|
2263
|
+
return c.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2264
|
+
`, c.map = [e, u.line], !0;
|
|
2262
2265
|
}
|
|
2263
|
-
function
|
|
2264
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2265
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2266
|
+
function Kc(u, e, t, n) {
|
|
2267
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2268
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > c)
|
|
2266
2269
|
return !1;
|
|
2267
2270
|
const i = u.src.charCodeAt(r);
|
|
2268
2271
|
if (i !== 126 && i !== 96)
|
|
2269
2272
|
return !1;
|
|
2270
|
-
let
|
|
2273
|
+
let o = r;
|
|
2271
2274
|
r = u.skipChars(r, i);
|
|
2272
|
-
let a = r -
|
|
2275
|
+
let a = r - o;
|
|
2273
2276
|
if (a < 3)
|
|
2274
2277
|
return !1;
|
|
2275
|
-
const s = u.src.slice(
|
|
2278
|
+
const s = u.src.slice(o, r), f = u.src.slice(r, c);
|
|
2276
2279
|
if (i === 96 && f.indexOf(String.fromCharCode(i)) >= 0)
|
|
2277
2280
|
return !1;
|
|
2278
2281
|
if (n)
|
|
2279
2282
|
return !0;
|
|
2280
2283
|
let d = e, _ = !1;
|
|
2281
|
-
for (; d++, !(d >= t || (r =
|
|
2282
|
-
if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r -
|
|
2284
|
+
for (; d++, !(d >= t || (r = o = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], r < c && u.sCount[d] < u.blkIndent)); )
|
|
2285
|
+
if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - o < a) && (r = u.skipSpaces(r), !(r < c)))) {
|
|
2283
2286
|
_ = !0;
|
|
2284
2287
|
break;
|
|
2285
2288
|
}
|
|
@@ -2287,25 +2290,25 @@ function ec(u, e, t, n) {
|
|
|
2287
2290
|
const h = u.push("fence", "code", 0);
|
|
2288
2291
|
return h.info = f, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
2289
2292
|
}
|
|
2290
|
-
function
|
|
2291
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2293
|
+
function uo(u, e, t, n) {
|
|
2294
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2292
2295
|
const i = u.lineMax;
|
|
2293
2296
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2294
2297
|
return !1;
|
|
2295
2298
|
if (n)
|
|
2296
2299
|
return !0;
|
|
2297
|
-
const
|
|
2300
|
+
const o = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2298
2301
|
u.parentType = "blockquote";
|
|
2299
2302
|
let h = !1, p;
|
|
2300
2303
|
for (p = e; p < t; p++) {
|
|
2301
2304
|
const k = u.sCount[p] < u.blkIndent;
|
|
2302
|
-
if (r = u.bMarks[p] + u.tShift[p],
|
|
2305
|
+
if (r = u.bMarks[p] + u.tShift[p], c = u.eMarks[p], r >= c)
|
|
2303
2306
|
break;
|
|
2304
2307
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2305
|
-
let
|
|
2306
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
2307
|
-
let Y =
|
|
2308
|
-
for (
|
|
2308
|
+
let C = u.sCount[p] + 1, y, L;
|
|
2309
|
+
u.src.charCodeAt(r) === 32 ? (r++, C++, L = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[p] + C) % 4 === 3 ? (r++, C++, L = !1) : L = !0) : y = !1;
|
|
2310
|
+
let Y = C;
|
|
2311
|
+
for (o.push(u.bMarks[p]), u.bMarks[p] = r; r < c; ) {
|
|
2309
2312
|
const tu = u.src.charCodeAt(r);
|
|
2310
2313
|
if (w(tu))
|
|
2311
2314
|
tu === 9 ? Y += 4 - (Y + u.bsCount[p] + (L ? 1 : 0)) % 4 : Y++;
|
|
@@ -2313,24 +2316,24 @@ function tc(u, e, t, n) {
|
|
|
2313
2316
|
break;
|
|
2314
2317
|
r++;
|
|
2315
2318
|
}
|
|
2316
|
-
h = r >=
|
|
2319
|
+
h = r >= c, a.push(u.bsCount[p]), u.bsCount[p] = u.sCount[p] + 1 + (y ? 1 : 0), s.push(u.sCount[p]), u.sCount[p] = Y - C, f.push(u.tShift[p]), u.tShift[p] = r - u.bMarks[p];
|
|
2317
2320
|
continue;
|
|
2318
2321
|
}
|
|
2319
2322
|
if (h)
|
|
2320
2323
|
break;
|
|
2321
2324
|
let m = !1;
|
|
2322
|
-
for (let
|
|
2323
|
-
if (d[
|
|
2325
|
+
for (let C = 0, y = d.length; C < y; C++)
|
|
2326
|
+
if (d[C](u, p, t, !0)) {
|
|
2324
2327
|
m = !0;
|
|
2325
2328
|
break;
|
|
2326
2329
|
}
|
|
2327
2330
|
if (m) {
|
|
2328
|
-
u.lineMax = p, u.blkIndent !== 0 && (
|
|
2331
|
+
u.lineMax = p, u.blkIndent !== 0 && (o.push(u.bMarks[p]), a.push(u.bsCount[p]), f.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] -= u.blkIndent);
|
|
2329
2332
|
break;
|
|
2330
2333
|
}
|
|
2331
|
-
|
|
2334
|
+
o.push(u.bMarks[p]), a.push(u.bsCount[p]), f.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] = -1;
|
|
2332
2335
|
}
|
|
2333
|
-
const
|
|
2336
|
+
const A = u.blkIndent;
|
|
2334
2337
|
u.blkIndent = 0;
|
|
2335
2338
|
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2336
2339
|
D.markup = ">";
|
|
@@ -2339,31 +2342,31 @@ function tc(u, e, t, n) {
|
|
|
2339
2342
|
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2340
2343
|
E.markup = ">", u.lineMax = i, u.parentType = _, S[1] = u.line;
|
|
2341
2344
|
for (let k = 0; k < f.length; k++)
|
|
2342
|
-
u.bMarks[k + e] =
|
|
2343
|
-
return u.blkIndent =
|
|
2345
|
+
u.bMarks[k + e] = o[k], u.tShift[k + e] = f[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
|
|
2346
|
+
return u.blkIndent = A, !0;
|
|
2344
2347
|
}
|
|
2345
|
-
function
|
|
2348
|
+
function eo(u, e, t, n) {
|
|
2346
2349
|
const r = u.eMarks[e];
|
|
2347
2350
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2348
2351
|
return !1;
|
|
2349
|
-
let
|
|
2350
|
-
const i = u.src.charCodeAt(
|
|
2352
|
+
let c = u.bMarks[e] + u.tShift[e];
|
|
2353
|
+
const i = u.src.charCodeAt(c++);
|
|
2351
2354
|
if (i !== 42 && i !== 45 && i !== 95)
|
|
2352
2355
|
return !1;
|
|
2353
|
-
let
|
|
2354
|
-
for (;
|
|
2355
|
-
const s = u.src.charCodeAt(
|
|
2356
|
+
let o = 1;
|
|
2357
|
+
for (; c < r; ) {
|
|
2358
|
+
const s = u.src.charCodeAt(c++);
|
|
2356
2359
|
if (s !== i && !w(s))
|
|
2357
2360
|
return !1;
|
|
2358
|
-
s === i &&
|
|
2361
|
+
s === i && o++;
|
|
2359
2362
|
}
|
|
2360
|
-
if (
|
|
2363
|
+
if (o < 3)
|
|
2361
2364
|
return !1;
|
|
2362
2365
|
if (n)
|
|
2363
2366
|
return !0;
|
|
2364
2367
|
u.line = e + 1;
|
|
2365
2368
|
const a = u.push("hr", "hr", 0);
|
|
2366
|
-
return a.map = [e, u.line], a.markup = Array(
|
|
2369
|
+
return a.map = [e, u.line], a.markup = Array(o + 1).join(String.fromCharCode(i)), !0;
|
|
2367
2370
|
}
|
|
2368
2371
|
function ht(u, e) {
|
|
2369
2372
|
const t = u.eMarks[e];
|
|
@@ -2372,8 +2375,8 @@ function ht(u, e) {
|
|
|
2372
2375
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
2373
2376
|
return -1;
|
|
2374
2377
|
if (n < t) {
|
|
2375
|
-
const
|
|
2376
|
-
if (!w(
|
|
2378
|
+
const c = u.src.charCodeAt(n);
|
|
2379
|
+
if (!w(c))
|
|
2377
2380
|
return -1;
|
|
2378
2381
|
}
|
|
2379
2382
|
return n;
|
|
@@ -2383,30 +2386,30 @@ function bt(u, e) {
|
|
|
2383
2386
|
let r = t;
|
|
2384
2387
|
if (r + 1 >= n)
|
|
2385
2388
|
return -1;
|
|
2386
|
-
let
|
|
2387
|
-
if (
|
|
2389
|
+
let c = u.src.charCodeAt(r++);
|
|
2390
|
+
if (c < 48 || c > 57)
|
|
2388
2391
|
return -1;
|
|
2389
2392
|
for (; ; ) {
|
|
2390
2393
|
if (r >= n)
|
|
2391
2394
|
return -1;
|
|
2392
|
-
if (
|
|
2395
|
+
if (c = u.src.charCodeAt(r++), c >= 48 && c <= 57) {
|
|
2393
2396
|
if (r - t >= 10)
|
|
2394
2397
|
return -1;
|
|
2395
2398
|
continue;
|
|
2396
2399
|
}
|
|
2397
|
-
if (
|
|
2400
|
+
if (c === 41 || c === 46)
|
|
2398
2401
|
break;
|
|
2399
2402
|
return -1;
|
|
2400
2403
|
}
|
|
2401
|
-
return r < n && (
|
|
2404
|
+
return r < n && (c = u.src.charCodeAt(r), !w(c)) ? -1 : r;
|
|
2402
2405
|
}
|
|
2403
|
-
function
|
|
2406
|
+
function to(u, e) {
|
|
2404
2407
|
const t = u.level + 2;
|
|
2405
2408
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2406
2409
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2407
2410
|
}
|
|
2408
|
-
function
|
|
2409
|
-
let r,
|
|
2411
|
+
function no(u, e, t, n) {
|
|
2412
|
+
let r, c, i, o, a = e, s = !0;
|
|
2410
2413
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2411
2414
|
return !1;
|
|
2412
2415
|
let f = !1;
|
|
@@ -2422,35 +2425,35 @@ function oc(u, e, t, n) {
|
|
|
2422
2425
|
return !1;
|
|
2423
2426
|
if (n)
|
|
2424
2427
|
return !0;
|
|
2425
|
-
const p = u.src.charCodeAt(h - 1),
|
|
2426
|
-
d ? (
|
|
2428
|
+
const p = u.src.charCodeAt(h - 1), A = u.tokens.length;
|
|
2429
|
+
d ? (o = u.push("ordered_list_open", "ol", 1), _ !== 1 && (o.attrs = [["start", _]])) : o = u.push("bullet_list_open", "ul", 1);
|
|
2427
2430
|
const D = [a, 0];
|
|
2428
|
-
|
|
2431
|
+
o.map = D, o.markup = String.fromCharCode(p);
|
|
2429
2432
|
let S = !1;
|
|
2430
2433
|
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2431
2434
|
for (u.parentType = "list"; a < t; ) {
|
|
2432
|
-
|
|
2435
|
+
c = h, r = u.eMarks[a];
|
|
2433
2436
|
const m = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
2434
|
-
let
|
|
2435
|
-
for (;
|
|
2436
|
-
const pu = u.src.charCodeAt(
|
|
2437
|
+
let C = m;
|
|
2438
|
+
for (; c < r; ) {
|
|
2439
|
+
const pu = u.src.charCodeAt(c);
|
|
2437
2440
|
if (pu === 9)
|
|
2438
|
-
|
|
2441
|
+
C += 4 - (C + u.bsCount[a]) % 4;
|
|
2439
2442
|
else if (pu === 32)
|
|
2440
|
-
|
|
2443
|
+
C++;
|
|
2441
2444
|
else
|
|
2442
2445
|
break;
|
|
2443
|
-
|
|
2446
|
+
c++;
|
|
2444
2447
|
}
|
|
2445
|
-
const y =
|
|
2448
|
+
const y = c;
|
|
2446
2449
|
let L;
|
|
2447
|
-
y >= r ? L = 1 : L =
|
|
2450
|
+
y >= r ? L = 1 : L = C - m, L > 4 && (L = 1);
|
|
2448
2451
|
const Y = m + L;
|
|
2449
|
-
|
|
2452
|
+
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(p);
|
|
2450
2453
|
const tu = [a, 0];
|
|
2451
|
-
|
|
2454
|
+
o.map = tu, d && (o.info = u.src.slice(i, h - 1));
|
|
2452
2455
|
const Eu = u.tight, O = u.tShift[a], $u = u.sCount[a], ju = u.listIndent;
|
|
2453
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] =
|
|
2456
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = C, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || S) && (s = !1), S = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = ju, u.tShift[a] = O, u.sCount[a] = $u, u.tight = Eu, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(p), a = u.line, tu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2454
2457
|
break;
|
|
2455
2458
|
let yu = !1;
|
|
2456
2459
|
for (let pu = 0, Ie = E.length; pu < Ie; pu++)
|
|
@@ -2469,13 +2472,13 @@ function oc(u, e, t, n) {
|
|
|
2469
2472
|
if (p !== u.src.charCodeAt(h - 1))
|
|
2470
2473
|
break;
|
|
2471
2474
|
}
|
|
2472
|
-
return d ?
|
|
2475
|
+
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(p), D[1] = a, u.line = a, u.parentType = k, s && to(u, A), !0;
|
|
2473
2476
|
}
|
|
2474
|
-
function
|
|
2475
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2477
|
+
function ro(u, e, t, n) {
|
|
2478
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], i = e + 1;
|
|
2476
2479
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2477
2480
|
return !1;
|
|
2478
|
-
function
|
|
2481
|
+
function o(E) {
|
|
2479
2482
|
const k = u.lineMax;
|
|
2480
2483
|
if (E >= k || u.isEmpty(E))
|
|
2481
2484
|
return null;
|
|
@@ -2492,13 +2495,13 @@ function cc(u, e, t, n) {
|
|
|
2492
2495
|
if (u.parentType = Y, tu)
|
|
2493
2496
|
return null;
|
|
2494
2497
|
}
|
|
2495
|
-
const
|
|
2496
|
-
return u.src.slice(
|
|
2498
|
+
const C = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
2499
|
+
return u.src.slice(C, y + 1);
|
|
2497
2500
|
}
|
|
2498
|
-
let a = u.src.slice(r,
|
|
2499
|
-
|
|
2501
|
+
let a = u.src.slice(r, c + 1);
|
|
2502
|
+
c = a.length;
|
|
2500
2503
|
let s = -1;
|
|
2501
|
-
for (r = 1; r <
|
|
2504
|
+
for (r = 1; r < c; r++) {
|
|
2502
2505
|
const E = a.charCodeAt(r);
|
|
2503
2506
|
if (E === 91)
|
|
2504
2507
|
return !1;
|
|
@@ -2506,23 +2509,23 @@ function cc(u, e, t, n) {
|
|
|
2506
2509
|
s = r;
|
|
2507
2510
|
break;
|
|
2508
2511
|
} else if (E === 10) {
|
|
2509
|
-
const k =
|
|
2510
|
-
k !== null && (a += k,
|
|
2511
|
-
} else if (E === 92 && (r++, r <
|
|
2512
|
-
const k =
|
|
2513
|
-
k !== null && (a += k,
|
|
2512
|
+
const k = o(i);
|
|
2513
|
+
k !== null && (a += k, c = a.length, i++);
|
|
2514
|
+
} else if (E === 92 && (r++, r < c && a.charCodeAt(r) === 10)) {
|
|
2515
|
+
const k = o(i);
|
|
2516
|
+
k !== null && (a += k, c = a.length, i++);
|
|
2514
2517
|
}
|
|
2515
2518
|
}
|
|
2516
2519
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
2517
2520
|
return !1;
|
|
2518
|
-
for (r = s + 2; r <
|
|
2521
|
+
for (r = s + 2; r < c; r++) {
|
|
2519
2522
|
const E = a.charCodeAt(r);
|
|
2520
2523
|
if (E === 10) {
|
|
2521
|
-
const k =
|
|
2522
|
-
k !== null && (a += k,
|
|
2524
|
+
const k = o(i);
|
|
2525
|
+
k !== null && (a += k, c = a.length, i++);
|
|
2523
2526
|
} else if (!w(E)) break;
|
|
2524
2527
|
}
|
|
2525
|
-
const f = u.md.helpers.parseLinkDestination(a, r,
|
|
2528
|
+
const f = u.md.helpers.parseLinkDestination(a, r, c);
|
|
2526
2529
|
if (!f.ok)
|
|
2527
2530
|
return !1;
|
|
2528
2531
|
const d = u.md.normalizeLink(f.str);
|
|
@@ -2530,39 +2533,39 @@ function cc(u, e, t, n) {
|
|
|
2530
2533
|
return !1;
|
|
2531
2534
|
r = f.pos;
|
|
2532
2535
|
const _ = r, h = i, p = r;
|
|
2533
|
-
for (; r <
|
|
2536
|
+
for (; r < c; r++) {
|
|
2534
2537
|
const E = a.charCodeAt(r);
|
|
2535
2538
|
if (E === 10) {
|
|
2536
|
-
const k =
|
|
2537
|
-
k !== null && (a += k,
|
|
2539
|
+
const k = o(i);
|
|
2540
|
+
k !== null && (a += k, c = a.length, i++);
|
|
2538
2541
|
} else if (!w(E)) break;
|
|
2539
2542
|
}
|
|
2540
|
-
let
|
|
2541
|
-
for (;
|
|
2542
|
-
const E =
|
|
2543
|
+
let A = u.md.helpers.parseLinkTitle(a, r, c);
|
|
2544
|
+
for (; A.can_continue; ) {
|
|
2545
|
+
const E = o(i);
|
|
2543
2546
|
if (E === null) break;
|
|
2544
|
-
a += E, r =
|
|
2547
|
+
a += E, r = c, c = a.length, i++, A = u.md.helpers.parseLinkTitle(a, r, c, A);
|
|
2545
2548
|
}
|
|
2546
2549
|
let D;
|
|
2547
|
-
for (r <
|
|
2550
|
+
for (r < c && p !== r && A.ok ? (D = A.str, r = A.pos) : (D = "", r = _, i = h); r < c; ) {
|
|
2548
2551
|
const E = a.charCodeAt(r);
|
|
2549
2552
|
if (!w(E))
|
|
2550
2553
|
break;
|
|
2551
2554
|
r++;
|
|
2552
2555
|
}
|
|
2553
|
-
if (r <
|
|
2554
|
-
for (D = "", r = _, i = h; r <
|
|
2556
|
+
if (r < c && a.charCodeAt(r) !== 10 && D)
|
|
2557
|
+
for (D = "", r = _, i = h; r < c; ) {
|
|
2555
2558
|
const E = a.charCodeAt(r);
|
|
2556
2559
|
if (!w(E))
|
|
2557
2560
|
break;
|
|
2558
2561
|
r++;
|
|
2559
2562
|
}
|
|
2560
|
-
if (r <
|
|
2563
|
+
if (r < c && a.charCodeAt(r) !== 10)
|
|
2561
2564
|
return !1;
|
|
2562
2565
|
const S = ve(a.slice(1, s));
|
|
2563
2566
|
return S ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[S] > "u" && (u.env.references[S] = { title: D, href: d }), u.line = i), !0) : !1;
|
|
2564
2567
|
}
|
|
2565
|
-
const
|
|
2568
|
+
const co = [
|
|
2566
2569
|
"address",
|
|
2567
2570
|
"article",
|
|
2568
2571
|
"aside",
|
|
@@ -2625,30 +2628,30 @@ const ic = [
|
|
|
2625
2628
|
"tr",
|
|
2626
2629
|
"track",
|
|
2627
2630
|
"ul"
|
|
2628
|
-
],
|
|
2631
|
+
], oo = "[a-zA-Z_:][a-zA-Z0-9:._-]*", io = "[^\"'=<>`\\x00-\\x20]+", ao = "'[^']*'", so = '"[^"]*"', lo = "(?:" + io + "|" + ao + "|" + so + ")", fo = "(?:\\s+" + oo + "(?:\\s*=\\s*" + lo + ")?)", $t = "<[A-Za-z][A-Za-z0-9\\-]*" + fo + "*\\s*\\/?>", jt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", po = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ho = "<[?][\\s\\S]*?[?]>", bo = "<![A-Za-z][^>]*>", _o = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", mo = new RegExp("^(?:" + $t + "|" + jt + "|" + po + "|" + ho + "|" + bo + "|" + _o + ")"), xo = new RegExp("^(?:" + $t + "|" + jt + ")"), Lu = [
|
|
2629
2632
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2630
2633
|
[/^<!--/, /-->/, !0],
|
|
2631
2634
|
[/^<\?/, /\?>/, !0],
|
|
2632
2635
|
[/^<![A-Z]/, />/, !0],
|
|
2633
2636
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2634
|
-
[new RegExp("^</?(" +
|
|
2635
|
-
[new RegExp(
|
|
2637
|
+
[new RegExp("^</?(" + co.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2638
|
+
[new RegExp(xo.source + "\\s*$"), /^$/, !1]
|
|
2636
2639
|
];
|
|
2637
|
-
function
|
|
2638
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2640
|
+
function go(u, e, t, n) {
|
|
2641
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2639
2642
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2640
2643
|
return !1;
|
|
2641
|
-
let i = u.src.slice(r,
|
|
2642
|
-
for (;
|
|
2644
|
+
let i = u.src.slice(r, c), o = 0;
|
|
2645
|
+
for (; o < Lu.length && !Lu[o][0].test(i); o++)
|
|
2643
2646
|
;
|
|
2644
|
-
if (
|
|
2647
|
+
if (o === Lu.length)
|
|
2645
2648
|
return !1;
|
|
2646
2649
|
if (n)
|
|
2647
|
-
return Lu[
|
|
2650
|
+
return Lu[o][2];
|
|
2648
2651
|
let a = e + 1;
|
|
2649
|
-
if (!Lu[
|
|
2652
|
+
if (!Lu[o][1].test(i)) {
|
|
2650
2653
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2651
|
-
if (r = u.bMarks[a] + u.tShift[a],
|
|
2654
|
+
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], i = u.src.slice(r, c), Lu[o][1].test(i)) {
|
|
2652
2655
|
i.length !== 0 && a++;
|
|
2653
2656
|
break;
|
|
2654
2657
|
}
|
|
@@ -2657,117 +2660,117 @@ function kc(u, e, t, n) {
|
|
|
2657
2660
|
const s = u.push("html_block", "", 0);
|
|
2658
2661
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2659
2662
|
}
|
|
2660
|
-
function
|
|
2661
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2663
|
+
function ko(u, e, t, n) {
|
|
2664
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2662
2665
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2663
2666
|
return !1;
|
|
2664
2667
|
let i = u.src.charCodeAt(r);
|
|
2665
|
-
if (i !== 35 || r >=
|
|
2668
|
+
if (i !== 35 || r >= c)
|
|
2666
2669
|
return !1;
|
|
2667
|
-
let
|
|
2668
|
-
for (i = u.src.charCodeAt(++r); i === 35 && r <
|
|
2669
|
-
|
|
2670
|
-
if (
|
|
2670
|
+
let o = 1;
|
|
2671
|
+
for (i = u.src.charCodeAt(++r); i === 35 && r < c && o <= 6; )
|
|
2672
|
+
o++, i = u.src.charCodeAt(++r);
|
|
2673
|
+
if (o > 6 || r < c && !w(i))
|
|
2671
2674
|
return !1;
|
|
2672
2675
|
if (n)
|
|
2673
2676
|
return !0;
|
|
2674
|
-
|
|
2675
|
-
const a = u.skipCharsBack(
|
|
2676
|
-
a > r && w(u.src.charCodeAt(a - 1)) && (
|
|
2677
|
-
const s = u.push("heading_open", "h" + String(
|
|
2678
|
-
s.markup = "########".slice(0,
|
|
2677
|
+
c = u.skipSpacesBack(c, r);
|
|
2678
|
+
const a = u.skipCharsBack(c, 35, r);
|
|
2679
|
+
a > r && w(u.src.charCodeAt(a - 1)) && (c = a), u.line = e + 1;
|
|
2680
|
+
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2681
|
+
s.markup = "########".slice(0, o), s.map = [e, u.line];
|
|
2679
2682
|
const f = u.push("inline", "", 0);
|
|
2680
|
-
f.content = u.src.slice(r,
|
|
2681
|
-
const d = u.push("heading_close", "h" + String(
|
|
2682
|
-
return d.markup = "########".slice(0,
|
|
2683
|
+
f.content = u.src.slice(r, c).trim(), f.map = [e, u.line], f.children = [];
|
|
2684
|
+
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2685
|
+
return d.markup = "########".slice(0, o), !0;
|
|
2683
2686
|
}
|
|
2684
|
-
function
|
|
2687
|
+
function Eo(u, e, t) {
|
|
2685
2688
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2686
2689
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2687
2690
|
return !1;
|
|
2688
2691
|
const r = u.parentType;
|
|
2689
2692
|
u.parentType = "paragraph";
|
|
2690
|
-
let
|
|
2691
|
-
for (;
|
|
2692
|
-
if (u.sCount[
|
|
2693
|
+
let c = 0, i, o = e + 1;
|
|
2694
|
+
for (; o < t && !u.isEmpty(o); o++) {
|
|
2695
|
+
if (u.sCount[o] - u.blkIndent > 3)
|
|
2693
2696
|
continue;
|
|
2694
|
-
if (u.sCount[
|
|
2695
|
-
let h = u.bMarks[
|
|
2696
|
-
const p = u.eMarks[
|
|
2697
|
+
if (u.sCount[o] >= u.blkIndent) {
|
|
2698
|
+
let h = u.bMarks[o] + u.tShift[o];
|
|
2699
|
+
const p = u.eMarks[o];
|
|
2697
2700
|
if (h < p && (i = u.src.charCodeAt(h), (i === 45 || i === 61) && (h = u.skipChars(h, i), h = u.skipSpaces(h), h >= p))) {
|
|
2698
|
-
|
|
2701
|
+
c = i === 61 ? 1 : 2;
|
|
2699
2702
|
break;
|
|
2700
2703
|
}
|
|
2701
2704
|
}
|
|
2702
|
-
if (u.sCount[
|
|
2705
|
+
if (u.sCount[o] < 0)
|
|
2703
2706
|
continue;
|
|
2704
2707
|
let _ = !1;
|
|
2705
2708
|
for (let h = 0, p = n.length; h < p; h++)
|
|
2706
|
-
if (n[h](u,
|
|
2709
|
+
if (n[h](u, o, t, !0)) {
|
|
2707
2710
|
_ = !0;
|
|
2708
2711
|
break;
|
|
2709
2712
|
}
|
|
2710
2713
|
if (_)
|
|
2711
2714
|
break;
|
|
2712
2715
|
}
|
|
2713
|
-
if (!
|
|
2716
|
+
if (!c)
|
|
2714
2717
|
return !1;
|
|
2715
|
-
const a = u.getLines(e,
|
|
2716
|
-
u.line =
|
|
2717
|
-
const s = u.push("heading_open", "h" + String(
|
|
2718
|
+
const a = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2719
|
+
u.line = o + 1;
|
|
2720
|
+
const s = u.push("heading_open", "h" + String(c), 1);
|
|
2718
2721
|
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
|
2719
2722
|
const f = u.push("inline", "", 0);
|
|
2720
2723
|
f.content = a, f.map = [e, u.line - 1], f.children = [];
|
|
2721
|
-
const d = u.push("heading_close", "h" + String(
|
|
2724
|
+
const d = u.push("heading_close", "h" + String(c), -1);
|
|
2722
2725
|
return d.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
2723
2726
|
}
|
|
2724
|
-
function
|
|
2727
|
+
function Co(u, e, t) {
|
|
2725
2728
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2726
|
-
let
|
|
2727
|
-
for (u.parentType = "paragraph";
|
|
2728
|
-
if (u.sCount[
|
|
2729
|
+
let c = e + 1;
|
|
2730
|
+
for (u.parentType = "paragraph"; c < t && !u.isEmpty(c); c++) {
|
|
2731
|
+
if (u.sCount[c] - u.blkIndent > 3 || u.sCount[c] < 0)
|
|
2729
2732
|
continue;
|
|
2730
2733
|
let s = !1;
|
|
2731
2734
|
for (let f = 0, d = n.length; f < d; f++)
|
|
2732
|
-
if (n[f](u,
|
|
2735
|
+
if (n[f](u, c, t, !0)) {
|
|
2733
2736
|
s = !0;
|
|
2734
2737
|
break;
|
|
2735
2738
|
}
|
|
2736
2739
|
if (s)
|
|
2737
2740
|
break;
|
|
2738
2741
|
}
|
|
2739
|
-
const i = u.getLines(e,
|
|
2740
|
-
u.line =
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2742
|
+
const i = u.getLines(e, c, u.blkIndent, !1).trim();
|
|
2743
|
+
u.line = c;
|
|
2744
|
+
const o = u.push("paragraph_open", "p", 1);
|
|
2745
|
+
o.map = [e, u.line];
|
|
2743
2746
|
const a = u.push("inline", "", 0);
|
|
2744
2747
|
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2745
2748
|
}
|
|
2746
|
-
const
|
|
2749
|
+
const Ce = [
|
|
2747
2750
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2748
2751
|
// which can be terminated by this one.
|
|
2749
|
-
["table",
|
|
2750
|
-
["code",
|
|
2751
|
-
["fence",
|
|
2752
|
-
["blockquote",
|
|
2753
|
-
["hr",
|
|
2754
|
-
["list",
|
|
2755
|
-
["reference",
|
|
2756
|
-
["html_block",
|
|
2757
|
-
["heading",
|
|
2758
|
-
["lheading",
|
|
2759
|
-
["paragraph",
|
|
2752
|
+
["table", Jc, ["paragraph", "reference"]],
|
|
2753
|
+
["code", Qc],
|
|
2754
|
+
["fence", Kc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2755
|
+
["blockquote", uo, ["paragraph", "reference", "blockquote", "list"]],
|
|
2756
|
+
["hr", eo, ["paragraph", "reference", "blockquote", "list"]],
|
|
2757
|
+
["list", no, ["paragraph", "reference", "blockquote"]],
|
|
2758
|
+
["reference", ro],
|
|
2759
|
+
["html_block", go, ["paragraph", "reference", "blockquote"]],
|
|
2760
|
+
["heading", ko, ["paragraph", "reference", "blockquote"]],
|
|
2761
|
+
["lheading", Eo],
|
|
2762
|
+
["paragraph", Co]
|
|
2760
2763
|
];
|
|
2761
2764
|
function Re() {
|
|
2762
2765
|
this.ruler = new V();
|
|
2763
|
-
for (let u = 0; u <
|
|
2764
|
-
this.ruler.push(
|
|
2766
|
+
for (let u = 0; u < Ce.length; u++)
|
|
2767
|
+
this.ruler.push(Ce[u][0], Ce[u][1], { alt: (Ce[u][2] || []).slice() });
|
|
2765
2768
|
}
|
|
2766
2769
|
Re.prototype.tokenize = function(u, e, t) {
|
|
2767
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
2768
|
-
let i = e,
|
|
2770
|
+
const n = this.ruler.getRules(""), r = n.length, c = u.md.options.maxNesting;
|
|
2771
|
+
let i = e, o = !1;
|
|
2769
2772
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
2770
|
-
if (u.level >=
|
|
2773
|
+
if (u.level >= c) {
|
|
2771
2774
|
u.line = t;
|
|
2772
2775
|
break;
|
|
2773
2776
|
}
|
|
@@ -2780,7 +2783,7 @@ Re.prototype.tokenize = function(u, e, t) {
|
|
|
2780
2783
|
break;
|
|
2781
2784
|
}
|
|
2782
2785
|
if (!s) throw new Error("none of the block rules matched");
|
|
2783
|
-
u.tight = !
|
|
2786
|
+
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), i = u.line, i < t && u.isEmpty(i) && (o = !0, i++, u.line = i);
|
|
2784
2787
|
}
|
|
2785
2788
|
};
|
|
2786
2789
|
Re.prototype.parse = function(u, e, t, n) {
|
|
@@ -2805,14 +2808,14 @@ le.prototype.push = function(u, e, t) {
|
|
|
2805
2808
|
};
|
|
2806
2809
|
le.prototype.scanDelims = function(u, e) {
|
|
2807
2810
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2808
|
-
let
|
|
2809
|
-
for (;
|
|
2810
|
-
|
|
2811
|
-
const i =
|
|
2811
|
+
let c = u;
|
|
2812
|
+
for (; c < t && this.src.charCodeAt(c) === n; )
|
|
2813
|
+
c++;
|
|
2814
|
+
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a = oe(r) || ce(String.fromCharCode(r)), s = oe(o) || ce(String.fromCharCode(o)), f = re(r), d = re(o), _ = !d && (!s || f || a), h = !f && (!a || d || s);
|
|
2812
2815
|
return { can_open: _ && (e || !h || a), can_close: h && (e || !_ || s), length: i };
|
|
2813
2816
|
};
|
|
2814
2817
|
le.prototype.Token = eu;
|
|
2815
|
-
function
|
|
2818
|
+
function Ao(u) {
|
|
2816
2819
|
switch (u) {
|
|
2817
2820
|
case 10:
|
|
2818
2821
|
case 33:
|
|
@@ -2842,38 +2845,38 @@ function Dc(u) {
|
|
|
2842
2845
|
return !1;
|
|
2843
2846
|
}
|
|
2844
2847
|
}
|
|
2845
|
-
function
|
|
2848
|
+
function Do(u, e) {
|
|
2846
2849
|
let t = u.pos;
|
|
2847
|
-
for (; t < u.posMax && !
|
|
2850
|
+
for (; t < u.posMax && !Ao(u.src.charCodeAt(t)); )
|
|
2848
2851
|
t++;
|
|
2849
2852
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2850
2853
|
}
|
|
2851
|
-
const
|
|
2852
|
-
function
|
|
2854
|
+
const yo = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2855
|
+
function Fo(u, e) {
|
|
2853
2856
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2854
2857
|
const t = u.pos, n = u.posMax;
|
|
2855
2858
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2856
|
-
const r = u.pending.match(
|
|
2859
|
+
const r = u.pending.match(yo);
|
|
2857
2860
|
if (!r) return !1;
|
|
2858
|
-
const
|
|
2861
|
+
const c = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
|
2859
2862
|
if (!i) return !1;
|
|
2860
|
-
let
|
|
2861
|
-
if (
|
|
2862
|
-
|
|
2863
|
-
const a = u.md.normalizeLink(
|
|
2863
|
+
let o = i.url;
|
|
2864
|
+
if (o.length <= c.length) return !1;
|
|
2865
|
+
o = o.replace(/\*+$/, "");
|
|
2866
|
+
const a = u.md.normalizeLink(o);
|
|
2864
2867
|
if (!u.md.validateLink(a)) return !1;
|
|
2865
2868
|
if (!e) {
|
|
2866
|
-
u.pending = u.pending.slice(0, -
|
|
2869
|
+
u.pending = u.pending.slice(0, -c.length);
|
|
2867
2870
|
const s = u.push("link_open", "a", 1);
|
|
2868
2871
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2869
2872
|
const f = u.push("text", "", 0);
|
|
2870
|
-
f.content = u.md.normalizeLinkText(
|
|
2873
|
+
f.content = u.md.normalizeLinkText(o);
|
|
2871
2874
|
const d = u.push("link_close", "a", -1);
|
|
2872
2875
|
d.markup = "linkify", d.info = "auto";
|
|
2873
2876
|
}
|
|
2874
|
-
return u.pos +=
|
|
2877
|
+
return u.pos += o.length - c.length, !0;
|
|
2875
2878
|
}
|
|
2876
|
-
function
|
|
2879
|
+
function To(u, e) {
|
|
2877
2880
|
let t = u.pos;
|
|
2878
2881
|
if (u.src.charCodeAt(t) !== 10)
|
|
2879
2882
|
return !1;
|
|
@@ -2881,9 +2884,9 @@ function Sc(u, e) {
|
|
|
2881
2884
|
if (!e)
|
|
2882
2885
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2883
2886
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2884
|
-
let
|
|
2885
|
-
for (;
|
|
2886
|
-
u.pending = u.pending.slice(0,
|
|
2887
|
+
let c = n - 1;
|
|
2888
|
+
for (; c >= 1 && u.pending.charCodeAt(c - 1) === 32; ) c--;
|
|
2889
|
+
u.pending = u.pending.slice(0, c), u.push("hardbreak", "br", 0);
|
|
2887
2890
|
} else
|
|
2888
2891
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2889
2892
|
else
|
|
@@ -2898,7 +2901,7 @@ for (let u = 0; u < 256; u++)
|
|
|
2898
2901
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2899
2902
|
m0[u.charCodeAt(0)] = 1;
|
|
2900
2903
|
});
|
|
2901
|
-
function
|
|
2904
|
+
function So(u, e) {
|
|
2902
2905
|
let t = u.pos;
|
|
2903
2906
|
const n = u.posMax;
|
|
2904
2907
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2908,36 +2911,36 @@ function wc(u, e) {
|
|
|
2908
2911
|
t++;
|
|
2909
2912
|
return u.pos = t, !0;
|
|
2910
2913
|
}
|
|
2911
|
-
let
|
|
2914
|
+
let c = u.src[t];
|
|
2912
2915
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2913
|
-
const
|
|
2914
|
-
|
|
2916
|
+
const o = u.src.charCodeAt(t + 1);
|
|
2917
|
+
o >= 56320 && o <= 57343 && (c += u.src[t + 1], t++);
|
|
2915
2918
|
}
|
|
2916
|
-
const i = "\\" +
|
|
2919
|
+
const i = "\\" + c;
|
|
2917
2920
|
if (!e) {
|
|
2918
|
-
const
|
|
2919
|
-
r < 256 && m0[r] !== 0 ?
|
|
2921
|
+
const o = u.push("text_special", "", 0);
|
|
2922
|
+
r < 256 && m0[r] !== 0 ? o.content = c : o.content = i, o.markup = i, o.info = "escape";
|
|
2920
2923
|
}
|
|
2921
2924
|
return u.pos = t + 1, !0;
|
|
2922
2925
|
}
|
|
2923
|
-
function
|
|
2926
|
+
function wo(u, e) {
|
|
2924
2927
|
let t = u.pos;
|
|
2925
2928
|
if (u.src.charCodeAt(t) !== 96)
|
|
2926
2929
|
return !1;
|
|
2927
2930
|
const r = t;
|
|
2928
2931
|
t++;
|
|
2929
|
-
const
|
|
2930
|
-
for (; t <
|
|
2932
|
+
const c = u.posMax;
|
|
2933
|
+
for (; t < c && u.src.charCodeAt(t) === 96; )
|
|
2931
2934
|
t++;
|
|
2932
|
-
const i = u.src.slice(r, t),
|
|
2933
|
-
if (u.backticksScanned && (u.backticks[
|
|
2934
|
-
return e || (u.pending += i), u.pos +=
|
|
2935
|
+
const i = u.src.slice(r, t), o = i.length;
|
|
2936
|
+
if (u.backticksScanned && (u.backticks[o] || 0) <= r)
|
|
2937
|
+
return e || (u.pending += i), u.pos += o, !0;
|
|
2935
2938
|
let a = t, s;
|
|
2936
2939
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2937
|
-
for (a = s + 1; a <
|
|
2940
|
+
for (a = s + 1; a < c && u.src.charCodeAt(a) === 96; )
|
|
2938
2941
|
a++;
|
|
2939
2942
|
const f = a - s;
|
|
2940
|
-
if (f ===
|
|
2943
|
+
if (f === o) {
|
|
2941
2944
|
if (!e) {
|
|
2942
2945
|
const d = u.push("code_inline", "code", 0);
|
|
2943
2946
|
d.markup = i, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
@@ -2946,21 +2949,21 @@ function vc(u, e) {
|
|
|
2946
2949
|
}
|
|
2947
2950
|
u.backticks[f] = s;
|
|
2948
2951
|
}
|
|
2949
|
-
return u.backticksScanned = !0, e || (u.pending += i), u.pos +=
|
|
2952
|
+
return u.backticksScanned = !0, e || (u.pending += i), u.pos += o, !0;
|
|
2950
2953
|
}
|
|
2951
|
-
function
|
|
2954
|
+
function vo(u, e) {
|
|
2952
2955
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2953
2956
|
if (e || n !== 126)
|
|
2954
2957
|
return !1;
|
|
2955
2958
|
const r = u.scanDelims(u.pos, !0);
|
|
2956
|
-
let
|
|
2959
|
+
let c = r.length;
|
|
2957
2960
|
const i = String.fromCharCode(n);
|
|
2958
|
-
if (
|
|
2961
|
+
if (c < 2)
|
|
2959
2962
|
return !1;
|
|
2960
|
-
let
|
|
2961
|
-
|
|
2962
|
-
for (let a = 0; a <
|
|
2963
|
-
|
|
2963
|
+
let o;
|
|
2964
|
+
c % 2 && (o = u.push("text", "", 0), o.content = i, c--);
|
|
2965
|
+
for (let a = 0; a < c; a += 2)
|
|
2966
|
+
o = u.push("text", "", 0), o.content = i + i, u.delimiters.push({
|
|
2964
2967
|
marker: n,
|
|
2965
2968
|
length: 0,
|
|
2966
2969
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2974,37 +2977,37 @@ function Rc(u, e) {
|
|
|
2974
2977
|
function _t(u, e) {
|
|
2975
2978
|
let t;
|
|
2976
2979
|
const n = [], r = e.length;
|
|
2977
|
-
for (let
|
|
2978
|
-
const i = e[
|
|
2980
|
+
for (let c = 0; c < r; c++) {
|
|
2981
|
+
const i = e[c];
|
|
2979
2982
|
if (i.marker !== 126 || i.end === -1)
|
|
2980
2983
|
continue;
|
|
2981
|
-
const
|
|
2982
|
-
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[
|
|
2984
|
+
const o = e[i.end];
|
|
2985
|
+
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[o.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[o.token - 1].type === "text" && u.tokens[o.token - 1].content === "~" && n.push(o.token - 1);
|
|
2983
2986
|
}
|
|
2984
2987
|
for (; n.length; ) {
|
|
2985
|
-
const
|
|
2986
|
-
let i =
|
|
2988
|
+
const c = n.pop();
|
|
2989
|
+
let i = c + 1;
|
|
2987
2990
|
for (; i < u.tokens.length && u.tokens[i].type === "s_close"; )
|
|
2988
2991
|
i++;
|
|
2989
|
-
i--,
|
|
2992
|
+
i--, c !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[c], u.tokens[c] = t);
|
|
2990
2993
|
}
|
|
2991
2994
|
}
|
|
2992
|
-
function
|
|
2995
|
+
function Ro(u) {
|
|
2993
2996
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2994
2997
|
_t(u, u.delimiters);
|
|
2995
2998
|
for (let n = 0; n < t; n++)
|
|
2996
2999
|
e[n] && e[n].delimiters && _t(u, e[n].delimiters);
|
|
2997
3000
|
}
|
|
2998
3001
|
const Gt = {
|
|
2999
|
-
tokenize:
|
|
3000
|
-
postProcess:
|
|
3002
|
+
tokenize: vo,
|
|
3003
|
+
postProcess: Ro
|
|
3001
3004
|
};
|
|
3002
|
-
function
|
|
3005
|
+
function Mo(u, e) {
|
|
3003
3006
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3004
3007
|
if (e || n !== 95 && n !== 42)
|
|
3005
3008
|
return !1;
|
|
3006
3009
|
const r = u.scanDelims(u.pos, n === 42);
|
|
3007
|
-
for (let
|
|
3010
|
+
for (let c = 0; c < r.length; c++) {
|
|
3008
3011
|
const i = u.push("text", "", 0);
|
|
3009
3012
|
i.content = String.fromCharCode(n), u.delimiters.push({
|
|
3010
3013
|
// Char code of the starting marker (number).
|
|
@@ -3035,26 +3038,26 @@ function mt(u, e) {
|
|
|
3035
3038
|
const r = e[n];
|
|
3036
3039
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
3037
3040
|
continue;
|
|
3038
|
-
const
|
|
3041
|
+
const c = e[r.end], i = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
3039
3042
|
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)
|
|
3040
|
-
e[r.end + 1].token ===
|
|
3041
|
-
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ?
|
|
3042
|
-
const s = u.tokens[
|
|
3043
|
-
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ?
|
|
3043
|
+
e[r.end + 1].token === c.token + 1, o = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
|
3044
|
+
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ? o + o : o, a.content = "";
|
|
3045
|
+
const s = u.tokens[c.token];
|
|
3046
|
+
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? o + o : o, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3044
3047
|
}
|
|
3045
3048
|
}
|
|
3046
|
-
function
|
|
3049
|
+
function Io(u) {
|
|
3047
3050
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3048
3051
|
mt(u, u.delimiters);
|
|
3049
3052
|
for (let n = 0; n < t; n++)
|
|
3050
3053
|
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
3051
3054
|
}
|
|
3052
3055
|
const Wt = {
|
|
3053
|
-
tokenize:
|
|
3054
|
-
postProcess:
|
|
3056
|
+
tokenize: Mo,
|
|
3057
|
+
postProcess: Io
|
|
3055
3058
|
};
|
|
3056
|
-
function
|
|
3057
|
-
let t, n, r,
|
|
3059
|
+
function Lo(u, e) {
|
|
3060
|
+
let t, n, r, c, i = "", o = "", a = u.pos, s = !0;
|
|
3058
3061
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3059
3062
|
return !1;
|
|
3060
3063
|
const f = u.pos, d = u.posMax, _ = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -3070,7 +3073,7 @@ function Oc(u, e) {
|
|
|
3070
3073
|
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? p = r.pos : i = "", a = p; p < d && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
|
|
3071
3074
|
;
|
|
3072
3075
|
if (r = u.md.helpers.parseLinkTitle(u.src, p, u.posMax), p < d && a !== p && r.ok)
|
|
3073
|
-
for (
|
|
3076
|
+
for (o = r.str, p = r.pos; p < d && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
|
|
3074
3077
|
;
|
|
3075
3078
|
}
|
|
3076
3079
|
(p >= d || u.src.charCodeAt(p) !== 41) && (s = !0), p++;
|
|
@@ -3078,63 +3081,63 @@ function Oc(u, e) {
|
|
|
3078
3081
|
if (s) {
|
|
3079
3082
|
if (typeof u.env.references > "u")
|
|
3080
3083
|
return !1;
|
|
3081
|
-
if (p < d && u.src.charCodeAt(p) === 91 ? (a = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? n = u.src.slice(a, p++) : p = h + 1) : p = h + 1, n || (n = u.src.slice(_, h)),
|
|
3084
|
+
if (p < d && u.src.charCodeAt(p) === 91 ? (a = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? n = u.src.slice(a, p++) : p = h + 1) : p = h + 1, n || (n = u.src.slice(_, h)), c = u.env.references[ve(n)], !c)
|
|
3082
3085
|
return u.pos = f, !1;
|
|
3083
|
-
i =
|
|
3086
|
+
i = c.href, o = c.title;
|
|
3084
3087
|
}
|
|
3085
3088
|
if (!e) {
|
|
3086
3089
|
u.pos = _, u.posMax = h;
|
|
3087
|
-
const
|
|
3088
|
-
|
|
3090
|
+
const A = u.push("link_open", "a", 1), D = [["href", i]];
|
|
3091
|
+
A.attrs = D, o && D.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3089
3092
|
}
|
|
3090
3093
|
return u.pos = p, u.posMax = d, !0;
|
|
3091
3094
|
}
|
|
3092
|
-
function
|
|
3093
|
-
let t, n, r,
|
|
3095
|
+
function Oo(u, e) {
|
|
3096
|
+
let t, n, r, c, i, o, a, s, f = "";
|
|
3094
3097
|
const d = u.pos, _ = u.posMax;
|
|
3095
3098
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3096
3099
|
return !1;
|
|
3097
3100
|
const h = u.pos + 2, p = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3098
3101
|
if (p < 0)
|
|
3099
3102
|
return !1;
|
|
3100
|
-
if (
|
|
3101
|
-
for (
|
|
3103
|
+
if (c = p + 1, c < _ && u.src.charCodeAt(c) === 40) {
|
|
3104
|
+
for (c++; c < _ && (t = u.src.charCodeAt(c), !(!w(t) && t !== 10)); c++)
|
|
3102
3105
|
;
|
|
3103
|
-
if (
|
|
3106
|
+
if (c >= _)
|
|
3104
3107
|
return !1;
|
|
3105
|
-
for (s =
|
|
3108
|
+
for (s = c, o = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), o.ok && (f = u.md.normalizeLink(o.str), u.md.validateLink(f) ? c = o.pos : f = ""), s = c; c < _ && (t = u.src.charCodeAt(c), !(!w(t) && t !== 10)); c++)
|
|
3106
3109
|
;
|
|
3107
|
-
if (
|
|
3108
|
-
for (a =
|
|
3110
|
+
if (o = u.md.helpers.parseLinkTitle(u.src, c, u.posMax), c < _ && s !== c && o.ok)
|
|
3111
|
+
for (a = o.str, c = o.pos; c < _ && (t = u.src.charCodeAt(c), !(!w(t) && t !== 10)); c++)
|
|
3109
3112
|
;
|
|
3110
3113
|
else
|
|
3111
3114
|
a = "";
|
|
3112
|
-
if (
|
|
3115
|
+
if (c >= _ || u.src.charCodeAt(c) !== 41)
|
|
3113
3116
|
return u.pos = d, !1;
|
|
3114
|
-
|
|
3117
|
+
c++;
|
|
3115
3118
|
} else {
|
|
3116
3119
|
if (typeof u.env.references > "u")
|
|
3117
3120
|
return !1;
|
|
3118
|
-
if (
|
|
3121
|
+
if (c < _ && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = p + 1) : c = p + 1, r || (r = u.src.slice(h, p)), i = u.env.references[ve(r)], !i)
|
|
3119
3122
|
return u.pos = d, !1;
|
|
3120
3123
|
f = i.href, a = i.title;
|
|
3121
3124
|
}
|
|
3122
3125
|
if (!e) {
|
|
3123
3126
|
n = u.src.slice(h, p);
|
|
3124
|
-
const
|
|
3127
|
+
const A = [];
|
|
3125
3128
|
u.md.inline.parse(
|
|
3126
3129
|
n,
|
|
3127
3130
|
u.md,
|
|
3128
3131
|
u.env,
|
|
3129
|
-
|
|
3132
|
+
A
|
|
3130
3133
|
);
|
|
3131
3134
|
const D = u.push("image", "img", 0), S = [["src", f], ["alt", ""]];
|
|
3132
|
-
D.attrs = S, D.children =
|
|
3135
|
+
D.attrs = S, D.children = A, D.content = n, a && S.push(["title", a]);
|
|
3133
3136
|
}
|
|
3134
|
-
return u.pos =
|
|
3137
|
+
return u.pos = c, u.posMax = _, !0;
|
|
3135
3138
|
}
|
|
3136
|
-
const
|
|
3137
|
-
function
|
|
3139
|
+
const No = /^([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])?)*)$/, Po = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3140
|
+
function Bo(u, e) {
|
|
3138
3141
|
let t = u.pos;
|
|
3139
3142
|
if (u.src.charCodeAt(t) !== 60)
|
|
3140
3143
|
return !1;
|
|
@@ -3145,88 +3148,88 @@ function zc(u, e) {
|
|
|
3145
3148
|
if (i === 60) return !1;
|
|
3146
3149
|
if (i === 62) break;
|
|
3147
3150
|
}
|
|
3148
|
-
const
|
|
3149
|
-
if (
|
|
3150
|
-
const i = u.md.normalizeLink(
|
|
3151
|
+
const c = u.src.slice(n + 1, t);
|
|
3152
|
+
if (Po.test(c)) {
|
|
3153
|
+
const i = u.md.normalizeLink(c);
|
|
3151
3154
|
if (!u.md.validateLink(i))
|
|
3152
3155
|
return !1;
|
|
3153
3156
|
if (!e) {
|
|
3154
|
-
const
|
|
3155
|
-
|
|
3157
|
+
const o = u.push("link_open", "a", 1);
|
|
3158
|
+
o.attrs = [["href", i]], o.markup = "autolink", o.info = "auto";
|
|
3156
3159
|
const a = u.push("text", "", 0);
|
|
3157
|
-
a.content = u.md.normalizeLinkText(
|
|
3160
|
+
a.content = u.md.normalizeLinkText(c);
|
|
3158
3161
|
const s = u.push("link_close", "a", -1);
|
|
3159
3162
|
s.markup = "autolink", s.info = "auto";
|
|
3160
3163
|
}
|
|
3161
|
-
return u.pos +=
|
|
3164
|
+
return u.pos += c.length + 2, !0;
|
|
3162
3165
|
}
|
|
3163
|
-
if (
|
|
3164
|
-
const i = u.md.normalizeLink("mailto:" +
|
|
3166
|
+
if (No.test(c)) {
|
|
3167
|
+
const i = u.md.normalizeLink("mailto:" + c);
|
|
3165
3168
|
if (!u.md.validateLink(i))
|
|
3166
3169
|
return !1;
|
|
3167
3170
|
if (!e) {
|
|
3168
|
-
const
|
|
3169
|
-
|
|
3171
|
+
const o = u.push("link_open", "a", 1);
|
|
3172
|
+
o.attrs = [["href", i]], o.markup = "autolink", o.info = "auto";
|
|
3170
3173
|
const a = u.push("text", "", 0);
|
|
3171
|
-
a.content = u.md.normalizeLinkText(
|
|
3174
|
+
a.content = u.md.normalizeLinkText(c);
|
|
3172
3175
|
const s = u.push("link_close", "a", -1);
|
|
3173
3176
|
s.markup = "autolink", s.info = "auto";
|
|
3174
3177
|
}
|
|
3175
|
-
return u.pos +=
|
|
3178
|
+
return u.pos += c.length + 2, !0;
|
|
3176
3179
|
}
|
|
3177
3180
|
return !1;
|
|
3178
3181
|
}
|
|
3179
|
-
function
|
|
3182
|
+
function zo(u) {
|
|
3180
3183
|
return /^<a[>\s]/i.test(u);
|
|
3181
3184
|
}
|
|
3182
|
-
function
|
|
3185
|
+
function qo(u) {
|
|
3183
3186
|
return /^<\/a\s*>/i.test(u);
|
|
3184
3187
|
}
|
|
3185
|
-
function
|
|
3188
|
+
function Uo(u) {
|
|
3186
3189
|
const e = u | 32;
|
|
3187
3190
|
return e >= 97 && e <= 122;
|
|
3188
3191
|
}
|
|
3189
|
-
function
|
|
3192
|
+
function Ho(u, e) {
|
|
3190
3193
|
if (!u.md.options.html)
|
|
3191
3194
|
return !1;
|
|
3192
3195
|
const t = u.posMax, n = u.pos;
|
|
3193
3196
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3194
3197
|
return !1;
|
|
3195
3198
|
const r = u.src.charCodeAt(n + 1);
|
|
3196
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3199
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Uo(r))
|
|
3197
3200
|
return !1;
|
|
3198
|
-
const
|
|
3199
|
-
if (!
|
|
3201
|
+
const c = u.src.slice(n).match(mo);
|
|
3202
|
+
if (!c)
|
|
3200
3203
|
return !1;
|
|
3201
3204
|
if (!e) {
|
|
3202
3205
|
const i = u.push("html_inline", "", 0);
|
|
3203
|
-
i.content =
|
|
3206
|
+
i.content = c[0], zo(i.content) && u.linkLevel++, qo(i.content) && u.linkLevel--;
|
|
3204
3207
|
}
|
|
3205
|
-
return u.pos +=
|
|
3208
|
+
return u.pos += c[0].length, !0;
|
|
3206
3209
|
}
|
|
3207
|
-
const
|
|
3208
|
-
function
|
|
3210
|
+
const $o = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, jo = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3211
|
+
function Go(u, e) {
|
|
3209
3212
|
const t = u.pos, n = u.posMax;
|
|
3210
3213
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3211
3214
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3212
|
-
const
|
|
3213
|
-
if (
|
|
3215
|
+
const c = u.src.slice(t).match($o);
|
|
3216
|
+
if (c) {
|
|
3214
3217
|
if (!e) {
|
|
3215
|
-
const i =
|
|
3216
|
-
|
|
3218
|
+
const i = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), o = u.push("text_special", "", 0);
|
|
3219
|
+
o.content = b0(i) ? Fe(i) : Fe(65533), o.markup = c[0], o.info = "entity";
|
|
3217
3220
|
}
|
|
3218
|
-
return u.pos +=
|
|
3221
|
+
return u.pos += c[0].length, !0;
|
|
3219
3222
|
}
|
|
3220
3223
|
} else {
|
|
3221
|
-
const
|
|
3222
|
-
if (
|
|
3223
|
-
const i = Bt(
|
|
3224
|
-
if (i !==
|
|
3224
|
+
const c = u.src.slice(t).match(jo);
|
|
3225
|
+
if (c) {
|
|
3226
|
+
const i = Bt(c[0]);
|
|
3227
|
+
if (i !== c[0]) {
|
|
3225
3228
|
if (!e) {
|
|
3226
|
-
const
|
|
3227
|
-
|
|
3229
|
+
const o = u.push("text_special", "", 0);
|
|
3230
|
+
o.content = i, o.markup = c[0], o.info = "entity";
|
|
3228
3231
|
}
|
|
3229
|
-
return u.pos +=
|
|
3232
|
+
return u.pos += c[0].length, !0;
|
|
3230
3233
|
}
|
|
3231
3234
|
}
|
|
3232
3235
|
}
|
|
@@ -3236,60 +3239,60 @@ function xt(u) {
|
|
|
3236
3239
|
const e = {}, t = u.length;
|
|
3237
3240
|
if (!t) return;
|
|
3238
3241
|
let n = 0, r = -2;
|
|
3239
|
-
const
|
|
3242
|
+
const c = [];
|
|
3240
3243
|
for (let i = 0; i < t; i++) {
|
|
3241
|
-
const
|
|
3242
|
-
if (
|
|
3243
|
-
e.hasOwnProperty(
|
|
3244
|
-
const a = e[
|
|
3245
|
-
let s = n -
|
|
3246
|
-
for (; s > a; s -=
|
|
3244
|
+
const o = u[i];
|
|
3245
|
+
if (c.push(0), (u[n].marker !== o.marker || r !== o.token - 1) && (n = i), r = o.token, o.length = o.length || 0, !o.close) continue;
|
|
3246
|
+
e.hasOwnProperty(o.marker) || (e[o.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3247
|
+
const a = e[o.marker][(o.open ? 3 : 0) + o.length % 3];
|
|
3248
|
+
let s = n - c[n] - 1, f = s;
|
|
3249
|
+
for (; s > a; s -= c[s] + 1) {
|
|
3247
3250
|
const d = u[s];
|
|
3248
|
-
if (d.marker ===
|
|
3251
|
+
if (d.marker === o.marker && d.open && d.end < 0) {
|
|
3249
3252
|
let _ = !1;
|
|
3250
|
-
if ((d.close ||
|
|
3251
|
-
const h = s > 0 && !u[s - 1].open ?
|
|
3252
|
-
|
|
3253
|
+
if ((d.close || o.open) && (d.length + o.length) % 3 === 0 && (d.length % 3 !== 0 || o.length % 3 !== 0) && (_ = !0), !_) {
|
|
3254
|
+
const h = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
|
3255
|
+
c[i] = i - s + h, c[s] = h, o.open = !1, d.end = i, d.close = !1, f = -1, r = -2;
|
|
3253
3256
|
break;
|
|
3254
3257
|
}
|
|
3255
3258
|
}
|
|
3256
3259
|
}
|
|
3257
|
-
f !== -1 && (e[
|
|
3260
|
+
f !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = f);
|
|
3258
3261
|
}
|
|
3259
3262
|
}
|
|
3260
|
-
function
|
|
3263
|
+
function Wo(u) {
|
|
3261
3264
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3262
3265
|
xt(u.delimiters);
|
|
3263
3266
|
for (let n = 0; n < t; n++)
|
|
3264
3267
|
e[n] && e[n].delimiters && xt(e[n].delimiters);
|
|
3265
3268
|
}
|
|
3266
|
-
function
|
|
3269
|
+
function Zo(u) {
|
|
3267
3270
|
let e, t, n = 0;
|
|
3268
|
-
const r = u.tokens,
|
|
3269
|
-
for (e = t = 0; e <
|
|
3270
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3271
|
+
const r = u.tokens, c = u.tokens.length;
|
|
3272
|
+
for (e = t = 0; e < c; e++)
|
|
3273
|
+
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < c && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3271
3274
|
e !== t && (r.length = t);
|
|
3272
3275
|
}
|
|
3273
3276
|
const Ke = [
|
|
3274
|
-
["text",
|
|
3275
|
-
["linkify",
|
|
3276
|
-
["newline",
|
|
3277
|
-
["escape",
|
|
3278
|
-
["backticks",
|
|
3277
|
+
["text", Do],
|
|
3278
|
+
["linkify", Fo],
|
|
3279
|
+
["newline", To],
|
|
3280
|
+
["escape", So],
|
|
3281
|
+
["backticks", wo],
|
|
3279
3282
|
["strikethrough", Gt.tokenize],
|
|
3280
3283
|
["emphasis", Wt.tokenize],
|
|
3281
|
-
["link",
|
|
3282
|
-
["image",
|
|
3283
|
-
["autolink",
|
|
3284
|
-
["html_inline",
|
|
3285
|
-
["entity",
|
|
3284
|
+
["link", Lo],
|
|
3285
|
+
["image", Oo],
|
|
3286
|
+
["autolink", Bo],
|
|
3287
|
+
["html_inline", Ho],
|
|
3288
|
+
["entity", Go]
|
|
3286
3289
|
], u0 = [
|
|
3287
|
-
["balance_pairs",
|
|
3290
|
+
["balance_pairs", Wo],
|
|
3288
3291
|
["strikethrough", Gt.postProcess],
|
|
3289
3292
|
["emphasis", Wt.postProcess],
|
|
3290
3293
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3291
3294
|
// rule below merges unused segments back with the rest of the text
|
|
3292
|
-
["fragments_join",
|
|
3295
|
+
["fragments_join", Zo]
|
|
3293
3296
|
];
|
|
3294
3297
|
function fe() {
|
|
3295
3298
|
this.ruler = new V();
|
|
@@ -3300,32 +3303,32 @@ function fe() {
|
|
|
3300
3303
|
this.ruler2.push(u0[u][0], u0[u][1]);
|
|
3301
3304
|
}
|
|
3302
3305
|
fe.prototype.skipToken = function(u) {
|
|
3303
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
3304
|
-
if (typeof
|
|
3305
|
-
u.pos =
|
|
3306
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, c = u.cache;
|
|
3307
|
+
if (typeof c[e] < "u") {
|
|
3308
|
+
u.pos = c[e];
|
|
3306
3309
|
return;
|
|
3307
3310
|
}
|
|
3308
3311
|
let i = !1;
|
|
3309
3312
|
if (u.level < r) {
|
|
3310
|
-
for (let
|
|
3311
|
-
if (u.level++, i = t[
|
|
3313
|
+
for (let o = 0; o < n; o++)
|
|
3314
|
+
if (u.level++, i = t[o](u, !0), u.level--, i) {
|
|
3312
3315
|
if (e >= u.pos)
|
|
3313
3316
|
throw new Error("inline rule didn't increment state.pos");
|
|
3314
3317
|
break;
|
|
3315
3318
|
}
|
|
3316
3319
|
} else
|
|
3317
3320
|
u.pos = u.posMax;
|
|
3318
|
-
i || u.pos++,
|
|
3321
|
+
i || u.pos++, c[e] = u.pos;
|
|
3319
3322
|
};
|
|
3320
3323
|
fe.prototype.tokenize = function(u) {
|
|
3321
3324
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3322
3325
|
for (; u.pos < n; ) {
|
|
3323
|
-
const
|
|
3326
|
+
const c = u.pos;
|
|
3324
3327
|
let i = !1;
|
|
3325
3328
|
if (u.level < r) {
|
|
3326
|
-
for (let
|
|
3327
|
-
if (i = e[
|
|
3328
|
-
if (
|
|
3329
|
+
for (let o = 0; o < t; o++)
|
|
3330
|
+
if (i = e[o](u, !1), i) {
|
|
3331
|
+
if (c >= u.pos)
|
|
3329
3332
|
throw new Error("inline rule didn't increment state.pos");
|
|
3330
3333
|
break;
|
|
3331
3334
|
}
|
|
@@ -3342,12 +3345,12 @@ fe.prototype.tokenize = function(u) {
|
|
|
3342
3345
|
fe.prototype.parse = function(u, e, t, n) {
|
|
3343
3346
|
const r = new this.State(u, e, t, n);
|
|
3344
3347
|
this.tokenize(r);
|
|
3345
|
-
const
|
|
3346
|
-
for (let
|
|
3347
|
-
o
|
|
3348
|
+
const c = this.ruler2.getRules(""), i = c.length;
|
|
3349
|
+
for (let o = 0; o < i; o++)
|
|
3350
|
+
c[o](r);
|
|
3348
3351
|
};
|
|
3349
3352
|
fe.prototype.State = le;
|
|
3350
|
-
function
|
|
3353
|
+
function Vo(u) {
|
|
3351
3354
|
const e = {};
|
|
3352
3355
|
u = u || {}, e.src_Any = It.source, e.src_Cc = Lt.source, e.src_Z = Nt.source, e.src_P = p0.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3353
3356
|
const t = "[><|]";
|
|
@@ -3369,19 +3372,19 @@ function i0(u) {
|
|
|
3369
3372
|
function Me(u) {
|
|
3370
3373
|
return Object.prototype.toString.call(u);
|
|
3371
3374
|
}
|
|
3372
|
-
function
|
|
3375
|
+
function Yo(u) {
|
|
3373
3376
|
return Me(u) === "[object String]";
|
|
3374
3377
|
}
|
|
3375
|
-
function
|
|
3378
|
+
function Xo(u) {
|
|
3376
3379
|
return Me(u) === "[object Object]";
|
|
3377
3380
|
}
|
|
3378
|
-
function
|
|
3381
|
+
function Jo(u) {
|
|
3379
3382
|
return Me(u) === "[object RegExp]";
|
|
3380
3383
|
}
|
|
3381
3384
|
function gt(u) {
|
|
3382
3385
|
return Me(u) === "[object Function]";
|
|
3383
3386
|
}
|
|
3384
|
-
function
|
|
3387
|
+
function Qo(u) {
|
|
3385
3388
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3386
3389
|
}
|
|
3387
3390
|
const Zt = {
|
|
@@ -3389,12 +3392,12 @@ const Zt = {
|
|
|
3389
3392
|
fuzzyEmail: !0,
|
|
3390
3393
|
fuzzyIP: !1
|
|
3391
3394
|
};
|
|
3392
|
-
function
|
|
3395
|
+
function Ko(u) {
|
|
3393
3396
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3394
3397
|
return e || Zt.hasOwnProperty(t);
|
|
3395
3398
|
}, !1);
|
|
3396
3399
|
}
|
|
3397
|
-
const
|
|
3400
|
+
const ui = {
|
|
3398
3401
|
"http:": {
|
|
3399
3402
|
validate: function(u, e, t) {
|
|
3400
3403
|
const n = u.slice(e);
|
|
@@ -3426,11 +3429,11 @@ const ei = {
|
|
|
3426
3429
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3427
3430
|
}
|
|
3428
3431
|
}
|
|
3429
|
-
},
|
|
3430
|
-
function
|
|
3432
|
+
}, ei = "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]", ti = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3433
|
+
function ni(u) {
|
|
3431
3434
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3432
3435
|
}
|
|
3433
|
-
function
|
|
3436
|
+
function ri(u) {
|
|
3434
3437
|
return function(e, t) {
|
|
3435
3438
|
const n = e.slice(t);
|
|
3436
3439
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3442,41 +3445,41 @@ function kt() {
|
|
|
3442
3445
|
};
|
|
3443
3446
|
}
|
|
3444
3447
|
function Te(u) {
|
|
3445
|
-
const e = u.re =
|
|
3446
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3447
|
-
function n(
|
|
3448
|
-
return
|
|
3448
|
+
const e = u.re = Vo(u.__opts__), t = u.__tlds__.slice();
|
|
3449
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(ei), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3450
|
+
function n(o) {
|
|
3451
|
+
return o.replace("%TLDS%", e.src_tlds);
|
|
3449
3452
|
}
|
|
3450
3453
|
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");
|
|
3451
3454
|
const r = [];
|
|
3452
3455
|
u.__compiled__ = {};
|
|
3453
|
-
function o
|
|
3454
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3456
|
+
function c(o, a) {
|
|
3457
|
+
throw new Error('(LinkifyIt) Invalid schema "' + o + '": ' + a);
|
|
3455
3458
|
}
|
|
3456
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3457
|
-
const a = u.__schemas__[
|
|
3459
|
+
Object.keys(u.__schemas__).forEach(function(o) {
|
|
3460
|
+
const a = u.__schemas__[o];
|
|
3458
3461
|
if (a === null)
|
|
3459
3462
|
return;
|
|
3460
3463
|
const s = { validate: null, link: null };
|
|
3461
|
-
if (u.__compiled__[
|
|
3462
|
-
|
|
3464
|
+
if (u.__compiled__[o] = s, Xo(a)) {
|
|
3465
|
+
Jo(a.validate) ? s.validate = ri(a.validate) : gt(a.validate) ? s.validate = a.validate : c(o, a), gt(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(o, a) : s.normalize = kt();
|
|
3463
3466
|
return;
|
|
3464
3467
|
}
|
|
3465
|
-
if (
|
|
3466
|
-
r.push(
|
|
3468
|
+
if (Yo(a)) {
|
|
3469
|
+
r.push(o);
|
|
3467
3470
|
return;
|
|
3468
3471
|
}
|
|
3469
|
-
o
|
|
3470
|
-
}), r.forEach(function(
|
|
3471
|
-
u.__compiled__[u.__schemas__[
|
|
3472
|
+
c(o, a);
|
|
3473
|
+
}), r.forEach(function(o) {
|
|
3474
|
+
u.__compiled__[u.__schemas__[o]] && (u.__compiled__[o].validate = u.__compiled__[u.__schemas__[o]].validate, u.__compiled__[o].normalize = u.__compiled__[u.__schemas__[o]].normalize);
|
|
3472
3475
|
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3473
|
-
const i = Object.keys(u.__compiled__).filter(function(
|
|
3474
|
-
return
|
|
3475
|
-
}).map(
|
|
3476
|
+
const i = Object.keys(u.__compiled__).filter(function(o) {
|
|
3477
|
+
return o.length > 0 && u.__compiled__[o];
|
|
3478
|
+
}).map(Qo).join("|");
|
|
3476
3479
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3477
3480
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3478
3481
|
"i"
|
|
3479
|
-
),
|
|
3482
|
+
), ni(u);
|
|
3480
3483
|
}
|
|
3481
3484
|
function ci(u, e) {
|
|
3482
3485
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
@@ -3489,7 +3492,7 @@ function a0(u, e) {
|
|
|
3489
3492
|
function X(u, e) {
|
|
3490
3493
|
if (!(this instanceof X))
|
|
3491
3494
|
return new X(u, e);
|
|
3492
|
-
e ||
|
|
3495
|
+
e || Ko(u) && (e = u, u = {}), this.__opts__ = i0({}, Zt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = i0({}, ui, u), this.__compiled__ = {}, this.__tlds__ = ti, this.__tlds_replaced__ = !1, this.re = {}, Te(this);
|
|
3493
3496
|
}
|
|
3494
3497
|
X.prototype.add = function(e, t) {
|
|
3495
3498
|
return this.__schemas__[e] = t, Te(this), this;
|
|
@@ -3500,15 +3503,15 @@ X.prototype.set = function(e) {
|
|
|
3500
3503
|
X.prototype.test = function(e) {
|
|
3501
3504
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3502
3505
|
return !1;
|
|
3503
|
-
let t, n, r,
|
|
3506
|
+
let t, n, r, c, i, o, a, s, f;
|
|
3504
3507
|
if (this.re.schema_test.test(e)) {
|
|
3505
3508
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
3506
|
-
if (
|
|
3507
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3509
|
+
if (c = this.testSchemaAt(e, t[2], a.lastIndex), c) {
|
|
3510
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + c;
|
|
3508
3511
|
break;
|
|
3509
3512
|
}
|
|
3510
3513
|
}
|
|
3511
|
-
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 && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length,
|
|
3514
|
+
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 && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, o = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && o > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = o))), this.__index__ >= 0;
|
|
3512
3515
|
};
|
|
3513
3516
|
X.prototype.pretest = function(e) {
|
|
3514
3517
|
return this.re.pretest.test(e);
|
|
@@ -3533,8 +3536,8 @@ X.prototype.matchAtStart = function(e) {
|
|
|
3533
3536
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, a0(this, 0)) : null;
|
|
3534
3537
|
};
|
|
3535
3538
|
X.prototype.tlds = function(e, t) {
|
|
3536
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
3537
|
-
return n !==
|
|
3539
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
|
3540
|
+
return n !== c[r - 1];
|
|
3538
3541
|
}).reverse(), Te(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Te(this), this);
|
|
3539
3542
|
};
|
|
3540
3543
|
X.prototype.normalize = function(e) {
|
|
@@ -3542,15 +3545,15 @@ X.prototype.normalize = function(e) {
|
|
|
3542
3545
|
};
|
|
3543
3546
|
X.prototype.onCompile = function() {
|
|
3544
3547
|
};
|
|
3545
|
-
const Bu = 2147483647,
|
|
3548
|
+
const Bu = 2147483647, cu = 36, x0 = 1, ie = 26, oi = 38, ii = 700, Vt = 72, Yt = 128, Xt = "-", ai = /^xn--/, si = /[^\0-\x7F]/, li = /[\x2E\u3002\uFF0E\uFF61]/g, fi = {
|
|
3546
3549
|
overflow: "Overflow: input needs wider integers to process",
|
|
3547
3550
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3548
3551
|
"invalid-input": "Invalid input"
|
|
3549
|
-
}, e0 =
|
|
3552
|
+
}, e0 = cu - x0, ou = Math.floor, t0 = String.fromCharCode;
|
|
3550
3553
|
function hu(u) {
|
|
3551
|
-
throw new RangeError(
|
|
3554
|
+
throw new RangeError(fi[u]);
|
|
3552
3555
|
}
|
|
3553
|
-
function
|
|
3556
|
+
function di(u, e) {
|
|
3554
3557
|
const t = [];
|
|
3555
3558
|
let n = u.length;
|
|
3556
3559
|
for (; n--; )
|
|
@@ -3560,9 +3563,9 @@ function pi(u, e) {
|
|
|
3560
3563
|
function Jt(u, e) {
|
|
3561
3564
|
const t = u.split("@");
|
|
3562
3565
|
let n = "";
|
|
3563
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3564
|
-
const r = u.split("."),
|
|
3565
|
-
return n +
|
|
3566
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(li, ".");
|
|
3567
|
+
const r = u.split("."), c = di(r, e).join(".");
|
|
3568
|
+
return n + c;
|
|
3566
3569
|
}
|
|
3567
3570
|
function Qt(u) {
|
|
3568
3571
|
const e = [];
|
|
@@ -3571,83 +3574,83 @@ function Qt(u) {
|
|
|
3571
3574
|
for (; t < n; ) {
|
|
3572
3575
|
const r = u.charCodeAt(t++);
|
|
3573
3576
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
3574
|
-
const
|
|
3575
|
-
(
|
|
3577
|
+
const c = u.charCodeAt(t++);
|
|
3578
|
+
(c & 64512) == 56320 ? e.push(((r & 1023) << 10) + (c & 1023) + 65536) : (e.push(r), t--);
|
|
3576
3579
|
} else
|
|
3577
3580
|
e.push(r);
|
|
3578
3581
|
}
|
|
3579
3582
|
return e;
|
|
3580
3583
|
}
|
|
3581
|
-
const
|
|
3582
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3584
|
+
const pi = (u) => String.fromCodePoint(...u), hi = function(u) {
|
|
3585
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : cu;
|
|
3583
3586
|
}, Et = function(u, e) {
|
|
3584
3587
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3585
3588
|
}, Kt = function(u, e, t) {
|
|
3586
3589
|
let n = 0;
|
|
3587
|
-
for (u = t ?
|
|
3588
|
-
u =
|
|
3589
|
-
return
|
|
3590
|
+
for (u = t ? ou(u / ii) : u >> 1, u += ou(u / e); u > e0 * ie >> 1; n += cu)
|
|
3591
|
+
u = ou(u / e0);
|
|
3592
|
+
return ou(n + (e0 + 1) * u / (u + oi));
|
|
3590
3593
|
}, un = function(u) {
|
|
3591
3594
|
const e = [], t = u.length;
|
|
3592
|
-
let n = 0, r = Yt,
|
|
3595
|
+
let n = 0, r = Yt, c = Vt, i = u.lastIndexOf(Xt);
|
|
3593
3596
|
i < 0 && (i = 0);
|
|
3594
|
-
for (let
|
|
3595
|
-
u.charCodeAt(
|
|
3596
|
-
for (let
|
|
3597
|
+
for (let o = 0; o < i; ++o)
|
|
3598
|
+
u.charCodeAt(o) >= 128 && hu("not-basic"), e.push(u.charCodeAt(o));
|
|
3599
|
+
for (let o = i > 0 ? i + 1 : 0; o < t; ) {
|
|
3597
3600
|
const a = n;
|
|
3598
|
-
for (let f = 1, d =
|
|
3599
|
-
|
|
3600
|
-
const _ =
|
|
3601
|
-
_ >=
|
|
3602
|
-
const h = d <=
|
|
3601
|
+
for (let f = 1, d = cu; ; d += cu) {
|
|
3602
|
+
o >= t && hu("invalid-input");
|
|
3603
|
+
const _ = hi(u.charCodeAt(o++));
|
|
3604
|
+
_ >= cu && hu("invalid-input"), _ > ou((Bu - n) / f) && hu("overflow"), n += _ * f;
|
|
3605
|
+
const h = d <= c ? x0 : d >= c + ie ? ie : d - c;
|
|
3603
3606
|
if (_ < h)
|
|
3604
3607
|
break;
|
|
3605
|
-
const p =
|
|
3606
|
-
f >
|
|
3608
|
+
const p = cu - h;
|
|
3609
|
+
f > ou(Bu / p) && hu("overflow"), f *= p;
|
|
3607
3610
|
}
|
|
3608
3611
|
const s = e.length + 1;
|
|
3609
|
-
|
|
3612
|
+
c = Kt(n - a, s, a == 0), ou(n / s) > Bu - r && hu("overflow"), r += ou(n / s), n %= s, e.splice(n++, 0, r);
|
|
3610
3613
|
}
|
|
3611
3614
|
return String.fromCodePoint(...e);
|
|
3612
3615
|
}, en = function(u) {
|
|
3613
3616
|
const e = [];
|
|
3614
3617
|
u = Qt(u);
|
|
3615
3618
|
const t = u.length;
|
|
3616
|
-
let n = Yt, r = 0,
|
|
3619
|
+
let n = Yt, r = 0, c = Vt;
|
|
3617
3620
|
for (const a of u)
|
|
3618
3621
|
a < 128 && e.push(t0(a));
|
|
3619
3622
|
const i = e.length;
|
|
3620
|
-
let
|
|
3621
|
-
for (i && e.push(Xt);
|
|
3623
|
+
let o = i;
|
|
3624
|
+
for (i && e.push(Xt); o < t; ) {
|
|
3622
3625
|
let a = Bu;
|
|
3623
3626
|
for (const f of u)
|
|
3624
3627
|
f >= n && f < a && (a = f);
|
|
3625
|
-
const s =
|
|
3626
|
-
a - n >
|
|
3628
|
+
const s = o + 1;
|
|
3629
|
+
a - n > ou((Bu - r) / s) && hu("overflow"), r += (a - n) * s, n = a;
|
|
3627
3630
|
for (const f of u)
|
|
3628
3631
|
if (f < n && ++r > Bu && hu("overflow"), f === n) {
|
|
3629
3632
|
let d = r;
|
|
3630
|
-
for (let _ =
|
|
3631
|
-
const h = _ <=
|
|
3633
|
+
for (let _ = cu; ; _ += cu) {
|
|
3634
|
+
const h = _ <= c ? x0 : _ >= c + ie ? ie : _ - c;
|
|
3632
3635
|
if (d < h)
|
|
3633
3636
|
break;
|
|
3634
|
-
const p = d - h,
|
|
3637
|
+
const p = d - h, A = cu - h;
|
|
3635
3638
|
e.push(
|
|
3636
|
-
t0(Et(h + p %
|
|
3637
|
-
), d =
|
|
3639
|
+
t0(Et(h + p % A, 0))
|
|
3640
|
+
), d = ou(p / A);
|
|
3638
3641
|
}
|
|
3639
|
-
e.push(t0(Et(d, 0))),
|
|
3642
|
+
e.push(t0(Et(d, 0))), c = Kt(r, s, o === i), r = 0, ++o;
|
|
3640
3643
|
}
|
|
3641
3644
|
++r, ++n;
|
|
3642
3645
|
}
|
|
3643
3646
|
return e.join("");
|
|
3644
|
-
},
|
|
3647
|
+
}, bi = function(u) {
|
|
3645
3648
|
return Jt(u, function(e) {
|
|
3646
|
-
return
|
|
3649
|
+
return ai.test(e) ? un(e.slice(4).toLowerCase()) : e;
|
|
3647
3650
|
});
|
|
3648
|
-
},
|
|
3651
|
+
}, _i = function(u) {
|
|
3649
3652
|
return Jt(u, function(e) {
|
|
3650
|
-
return
|
|
3653
|
+
return si.test(e) ? "xn--" + en(e) : e;
|
|
3651
3654
|
});
|
|
3652
3655
|
}, tn = {
|
|
3653
3656
|
/**
|
|
@@ -3665,13 +3668,13 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3665
3668
|
*/
|
|
3666
3669
|
ucs2: {
|
|
3667
3670
|
decode: Qt,
|
|
3668
|
-
encode:
|
|
3671
|
+
encode: pi
|
|
3669
3672
|
},
|
|
3670
3673
|
decode: un,
|
|
3671
3674
|
encode: en,
|
|
3672
|
-
toASCII:
|
|
3673
|
-
toUnicode:
|
|
3674
|
-
},
|
|
3675
|
+
toASCII: _i,
|
|
3676
|
+
toUnicode: bi
|
|
3677
|
+
}, mi = {
|
|
3675
3678
|
options: {
|
|
3676
3679
|
// Enable HTML tags in source
|
|
3677
3680
|
html: !1,
|
|
@@ -3707,7 +3710,7 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3707
3710
|
block: {},
|
|
3708
3711
|
inline: {}
|
|
3709
3712
|
}
|
|
3710
|
-
},
|
|
3713
|
+
}, xi = {
|
|
3711
3714
|
options: {
|
|
3712
3715
|
// Enable HTML tags in source
|
|
3713
3716
|
html: !1,
|
|
@@ -3762,7 +3765,7 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3762
3765
|
]
|
|
3763
3766
|
}
|
|
3764
3767
|
}
|
|
3765
|
-
},
|
|
3768
|
+
}, gi = {
|
|
3766
3769
|
options: {
|
|
3767
3770
|
// Enable HTML tags in source
|
|
3768
3771
|
html: !0,
|
|
@@ -3836,17 +3839,17 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3836
3839
|
]
|
|
3837
3840
|
}
|
|
3838
3841
|
}
|
|
3839
|
-
},
|
|
3840
|
-
default:
|
|
3841
|
-
zero:
|
|
3842
|
-
commonmark:
|
|
3843
|
-
},
|
|
3844
|
-
function
|
|
3842
|
+
}, ki = {
|
|
3843
|
+
default: mi,
|
|
3844
|
+
zero: xi,
|
|
3845
|
+
commonmark: gi
|
|
3846
|
+
}, Ei = /^(vbscript|javascript|file|data):/, Ci = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3847
|
+
function Ai(u) {
|
|
3845
3848
|
const e = u.trim().toLowerCase();
|
|
3846
|
-
return
|
|
3849
|
+
return Ei.test(e) ? Ci.test(e) : !0;
|
|
3847
3850
|
}
|
|
3848
3851
|
const nn = ["http:", "https:", "mailto:"];
|
|
3849
|
-
function
|
|
3852
|
+
function Di(u) {
|
|
3850
3853
|
const e = d0(u, !0);
|
|
3851
3854
|
if (e.hostname && (!e.protocol || nn.indexOf(e.protocol) >= 0))
|
|
3852
3855
|
try {
|
|
@@ -3855,7 +3858,7 @@ function yi(u) {
|
|
|
3855
3858
|
}
|
|
3856
3859
|
return se(f0(e));
|
|
3857
3860
|
}
|
|
3858
|
-
function
|
|
3861
|
+
function yi(u) {
|
|
3859
3862
|
const e = d0(u, !0);
|
|
3860
3863
|
if (e.hostname && (!e.protocol || nn.indexOf(e.protocol) >= 0))
|
|
3861
3864
|
try {
|
|
@@ -3867,7 +3870,7 @@ function Fi(u) {
|
|
|
3867
3870
|
function Q(u, e) {
|
|
3868
3871
|
if (!(this instanceof Q))
|
|
3869
3872
|
return new Q(u, e);
|
|
3870
|
-
e || h0(u) || (e = u || {}, u = "default"), this.inline = new fe(), this.block = new Re(), this.core = new _0(), this.renderer = new Hu(), this.linkify = new X(), this.validateLink =
|
|
3873
|
+
e || h0(u) || (e = u || {}, u = "default"), this.inline = new fe(), this.block = new Re(), this.core = new _0(), this.renderer = new Hu(), this.linkify = new X(), this.validateLink = Ai, this.normalizeLink = Di, this.normalizeLinkText = yi, this.utils = Fc, this.helpers = we({}, vc), this.options = {}, this.configure(u), e && this.set(e);
|
|
3871
3874
|
}
|
|
3872
3875
|
Q.prototype.set = function(u) {
|
|
3873
3876
|
return we(this.options, u), this;
|
|
@@ -3876,7 +3879,7 @@ Q.prototype.configure = function(u) {
|
|
|
3876
3879
|
const e = this;
|
|
3877
3880
|
if (h0(u)) {
|
|
3878
3881
|
const t = u;
|
|
3879
|
-
if (u =
|
|
3882
|
+
if (u = ki[t], !u)
|
|
3880
3883
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3881
3884
|
}
|
|
3882
3885
|
if (!u)
|
|
@@ -3929,26 +3932,26 @@ Q.prototype.parseInline = function(u, e) {
|
|
|
3929
3932
|
Q.prototype.renderInline = function(u, e) {
|
|
3930
3933
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3931
3934
|
};
|
|
3932
|
-
class
|
|
3933
|
-
constructor({ mdConfig: t, dompurifyConfig: n, sanitizeDisabled: r, styleOptions:
|
|
3935
|
+
class Pi extends s0 {
|
|
3936
|
+
constructor({ mdConfig: t, dompurifyConfig: n, sanitizeDisabled: r, styleOptions: c } = {}) {
|
|
3934
3937
|
super();
|
|
3935
3938
|
Iu(this, "md");
|
|
3936
3939
|
Iu(this, "mdConfig");
|
|
3937
3940
|
Iu(this, "dompurifyConfig");
|
|
3938
3941
|
Iu(this, "sanitizeDisabled");
|
|
3939
3942
|
Iu(this, "styleOptions");
|
|
3940
|
-
this.mdConfig = t || {}, this.dompurifyConfig = n || {}, this.md = Q(this.mdConfig), this.sanitizeDisabled = r ?? !1, this.styleOptions =
|
|
3943
|
+
this.mdConfig = t || {}, this.dompurifyConfig = n || {}, this.md = Q(this.mdConfig), this.sanitizeDisabled = r ?? !1, this.styleOptions = c ?? {};
|
|
3941
3944
|
}
|
|
3942
3945
|
render(t) {
|
|
3943
3946
|
let n = "";
|
|
3944
3947
|
try {
|
|
3945
3948
|
n = this.md.render(t.content ?? "");
|
|
3946
|
-
} catch (
|
|
3947
|
-
console.error("Error rendering markdown:",
|
|
3949
|
+
} catch (c) {
|
|
3950
|
+
console.error("Error rendering markdown:", c), n = t.content ?? "";
|
|
3948
3951
|
}
|
|
3949
3952
|
if (this.sanitizeDisabled)
|
|
3950
3953
|
return console.warn("HTML sanitization is disabled, potential XSS risk"), Z0("div", { innerHTML: n, class: this.styleOptions.class, style: this.styleOptions.style });
|
|
3951
|
-
const r =
|
|
3954
|
+
const r = zr.sanitize(n, this.dompurifyConfig);
|
|
3952
3955
|
return Z0("div", { innerHTML: r, class: this.styleOptions.class, style: this.styleOptions.style });
|
|
3953
3956
|
}
|
|
3954
3957
|
}
|
|
@@ -3963,32 +3966,32 @@ const ae = /* @__PURE__ */ ku({
|
|
|
3963
3966
|
t.set(n, r);
|
|
3964
3967
|
for (const [n, r] of Object.entries(e.messageRenderers))
|
|
3965
3968
|
t.set(n, r);
|
|
3966
|
-
return V0(Ft, t), V0(Tt, l0), (n, r) =>
|
|
3969
|
+
return V0(Ft, t), V0(Tt, l0), (n, r) => Ae(n.$slots, "default");
|
|
3967
3970
|
}
|
|
3968
3971
|
});
|
|
3969
3972
|
Du.name = "TrBubble";
|
|
3970
|
-
const
|
|
3973
|
+
const Fi = function(u) {
|
|
3971
3974
|
u.component(Du.name, Du);
|
|
3972
3975
|
};
|
|
3973
|
-
Du.install =
|
|
3974
|
-
const
|
|
3976
|
+
Du.install = Fi;
|
|
3977
|
+
const Bi = Du;
|
|
3975
3978
|
ne.name = "TrBubbleList";
|
|
3976
|
-
const
|
|
3979
|
+
const Ti = function(u) {
|
|
3977
3980
|
u.component(ne.name, ne);
|
|
3978
3981
|
};
|
|
3979
|
-
ne.install =
|
|
3980
|
-
const
|
|
3982
|
+
ne.install = Ti;
|
|
3983
|
+
const zi = ne;
|
|
3981
3984
|
ae.name = "TrBubbleProvider";
|
|
3982
|
-
const
|
|
3985
|
+
const Si = function(u) {
|
|
3983
3986
|
u.component(ae.name, ae);
|
|
3984
3987
|
};
|
|
3985
|
-
ae.install =
|
|
3986
|
-
const
|
|
3988
|
+
ae.install = Si;
|
|
3989
|
+
const qi = ae;
|
|
3987
3990
|
export {
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3991
|
+
Bi as Bubble,
|
|
3992
|
+
Ni as BubbleChainMessageRenderer,
|
|
3993
|
+
zi as BubbleList,
|
|
3994
|
+
Pi as BubbleMarkdownMessageRenderer,
|
|
3992
3995
|
s0 as BubbleMessageClassRenderer,
|
|
3993
|
-
|
|
3996
|
+
qi as BubbleProvider
|
|
3994
3997
|
};
|