@opentiny/tiny-robot 0.3.0-alpha.2 → 0.3.0-alpha.21
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 +46 -43
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +4 -0
- package/dist/bubble/index.js +1217 -1253
- package/dist/container/index.js +44 -40
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +151 -64
- package/dist/feedback/index.js +79 -80
- package/dist/flow-layout-buttons/index.js +28 -25
- package/dist/history/index.js +71 -72
- package/dist/icon-button/index.js +18 -19
- package/dist/index.d.ts +1319 -885
- package/dist/index.js +216 -77
- package/dist/index2.js +501 -343
- package/dist/index3.js +152 -298
- package/dist/mcp-add-form/index.js +212 -0
- package/dist/mcp-server-picker/index.js +551 -0
- package/dist/no-data.js +4 -0
- package/dist/prompts/index.js +36 -39
- package/dist/sender/index.js +1131 -1210
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +131 -155
- package/dist/suggestion-popover/index.js +253 -221
- package/dist/theme-provider/index.js +83 -0
- package/dist/useSlotRefs.js +36 -0
- package/dist/utils.js +8 -13
- package/package.json +4 -9
- package/dist/close.js +0 -29
- package/dist/index4.js +0 -637
- package/dist/index5.js +0 -2157
- package/dist/index6.js +0 -4752
- package/dist/question/index.js +0 -429
- package/dist/suggestion/index.js +0 -497
- package/dist/tiny-robot-svgs.js +0 -643
package/dist/bubble/index.js
CHANGED
|
@@ -1,446 +1,250 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var pn = (u, e, t) => e in u ? hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
+
var Mu = (u, e, t) => pn(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as Du, ref as c0, createElementBlock as $, openBlock as S, createElementVNode as Y, createVNode as At, toDisplayString as Au, unref as i0, normalizeClass as Eu, withDirectives as bn, vShow as _n, computed as J, useCssModule as mn, createCommentVNode as Xu, createBlock as eu, resolveDynamicComponent as mu, createTextVNode as xn, inject as $0, normalizeProps as Ae, mergeProps as Ju, h as j0, useSlots as gn, useAttrs as kn, normalizeStyle as En, renderSlot as ge, Fragment as u0, renderList as ke, watch as An, createSlots as G0, withCtx as W0, guardReactiveProps as Cn, provide as Z0 } from "vue";
|
|
5
5
|
import { _ as Dn } from "../loading.js";
|
|
6
6
|
import { t as yn } from "../utils.js";
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
10
|
-
class
|
|
7
|
+
import { IconArrowUp as Fn, IconPlugin as V0, IconArrowDown as Tn, IconLoading as Sn, IconError as wn, IconCancelled as vn } from "@opentiny/tiny-robot-svgs";
|
|
8
|
+
import { _ as re } from "../_plugin-vue_export-helper.js";
|
|
9
|
+
import { u as Rn } from "../index2.js";
|
|
10
|
+
class a0 {
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const In = { class: "tr-bubble__step-text" }, Mn = { class: "tr-bubble__step-text-title" }, Ln = { class: "tr-bubble__step-text-content-wrapper" }, On = /* @__PURE__ */ Du({
|
|
13
13
|
__name: "collapsible-text",
|
|
14
14
|
props: {
|
|
15
15
|
title: {},
|
|
16
|
-
content: {}
|
|
16
|
+
content: {},
|
|
17
|
+
defaultOpen: { type: Boolean }
|
|
17
18
|
},
|
|
18
19
|
setup(u) {
|
|
19
|
-
const e = u, t =
|
|
20
|
-
return (n, r) => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class:
|
|
20
|
+
const e = u, t = c0(e.defaultOpen ?? !1);
|
|
21
|
+
return (n, r) => (S(), $("div", In, [
|
|
22
|
+
Y("div", Mn, [
|
|
23
|
+
Y("span", null, Au(e.title), 1),
|
|
24
|
+
At(i0(Fn), {
|
|
25
|
+
class: Eu(["expand-icon", { "rotate-180": !t.value }]),
|
|
25
26
|
onClick: r[0] || (r[0] = (o) => t.value = !t.value)
|
|
26
27
|
}, null, 8, ["class"])
|
|
27
28
|
]),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
[
|
|
29
|
+
Y("div", Ln, [
|
|
30
|
+
bn(Y("div", { class: "tr-bubble__step-text-content" }, Au(e.content), 513), [
|
|
31
|
+
[_n, t.value]
|
|
31
32
|
])
|
|
32
33
|
])
|
|
33
34
|
]));
|
|
34
35
|
}
|
|
35
|
-
}),
|
|
36
|
+
}), Nn = /* @__PURE__ */ re(On, [["__scopeId", "data-v-c614ffd3"]]), Bn = Nn, Pn = { class: "tr-bubble__text" }, zn = /* @__PURE__ */ Du({
|
|
36
37
|
__name: "text",
|
|
37
38
|
props: {
|
|
38
39
|
content: {}
|
|
39
40
|
},
|
|
40
41
|
setup(u) {
|
|
41
42
|
const e = u;
|
|
42
|
-
return (t, n) => (
|
|
43
|
+
return (t, n) => (S(), $("span", Pn, Au(e.content), 1));
|
|
43
44
|
}
|
|
44
|
-
}),
|
|
45
|
+
}), qn = /* @__PURE__ */ re(zn, [["__scopeId", "data-v-ddb66b72"]]), s0 = qn, Un = { class: "tr-bubble__step-tool" }, Hn = { class: "tr-bubble__step-tool-header" }, $n = { class: "tr-bubble__step-tool-left" }, jn = { class: "tr-bubble__step-tool-title" }, Gn = { class: "tr-bubble__step-tool-name" }, Wn = { class: "tr-bubble__step-tool-expand" }, Zn = {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "tr-bubble__step-tool-params"
|
|
47
|
-
},
|
|
48
|
+
}, Vn = ["innerHTML"], Yn = /* @__PURE__ */ Du({
|
|
48
49
|
__name: "tool",
|
|
49
50
|
props: {
|
|
50
51
|
name: {},
|
|
51
52
|
status: {},
|
|
52
|
-
|
|
53
|
-
formatPretty: { type: Boolean }
|
|
53
|
+
content: {},
|
|
54
|
+
formatPretty: { type: Boolean },
|
|
55
|
+
defaultOpen: { type: Boolean }
|
|
54
56
|
},
|
|
55
57
|
setup(u) {
|
|
56
|
-
const e = u, t =
|
|
57
|
-
|
|
58
|
+
const e = u, t = c0(e.defaultOpen ?? !1), n = /* @__PURE__ */ new Map([
|
|
59
|
+
["running", { text: "正在调用", icon: Sn }],
|
|
60
|
+
["success", { text: "已调用", icon: V0 }],
|
|
61
|
+
["failed", { text: "调用失败", icon: wn }],
|
|
62
|
+
["cancelled", { text: "已取消", icon: vn }]
|
|
63
|
+
]), r = J(() => n.get(e.status) || { text: "", icon: V0 }), o = mn(), i = (c) => {
|
|
64
|
+
if (!c)
|
|
58
65
|
return "";
|
|
59
|
-
let
|
|
60
|
-
const
|
|
66
|
+
let a = "";
|
|
67
|
+
const s = e.formatPretty ? 2 : 0;
|
|
61
68
|
try {
|
|
62
|
-
typeof
|
|
63
|
-
} catch (
|
|
64
|
-
console.warn(
|
|
69
|
+
typeof c == "string" ? a = JSON.stringify(JSON.parse(c), null, s) : a = JSON.stringify(c, null, s);
|
|
70
|
+
} catch (d) {
|
|
71
|
+
console.warn(d);
|
|
65
72
|
}
|
|
66
|
-
return
|
|
73
|
+
return a = a.replace(
|
|
67
74
|
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
68
|
-
(
|
|
75
|
+
(d) => {
|
|
69
76
|
let f = "number";
|
|
70
|
-
return /^"/.test(
|
|
77
|
+
return /^"/.test(d) ? f = /:$/.test(d) ? "key" : "string" : /true|false/.test(d) ? f = "boolean" : /null/.test(d) && (f = "null"), `<span class="${o[f]}">${d}</span>`;
|
|
71
78
|
}
|
|
72
|
-
),
|
|
79
|
+
), a;
|
|
73
80
|
};
|
|
74
|
-
return (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
return (c, a) => (S(), $("div", Un, [
|
|
82
|
+
Y("div", Hn, [
|
|
83
|
+
Y("div", $n, [
|
|
84
|
+
(S(), eu(mu(r.value.icon), {
|
|
85
|
+
class: Eu(["tr-bubble__step-tool-icon", `icon-${e.status}`])
|
|
86
|
+
}, null, 8, ["class"])),
|
|
87
|
+
Y("span", jn, [
|
|
88
|
+
xn(Au(r.value.text) + " ", 1),
|
|
89
|
+
Y("span", Gn, Au(e.name), 1)
|
|
81
90
|
])
|
|
82
91
|
]),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
-
onClick:
|
|
92
|
+
Y("div", Wn, [
|
|
93
|
+
At(i0(Tn), {
|
|
94
|
+
class: Eu(["expand-icon", { "-rotate-90": !t.value }]),
|
|
95
|
+
onClick: a[0] || (a[0] = (s) => t.value = !t.value)
|
|
87
96
|
}, null, 8, ["class"])
|
|
88
97
|
])
|
|
89
98
|
]),
|
|
90
|
-
t.value ?
|
|
91
|
-
|
|
92
|
-
|
|
99
|
+
t.value ? (S(), $("div", Zn, [
|
|
100
|
+
a[1] || (a[1] = Y("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
101
|
+
Y("div", {
|
|
93
102
|
class: "tr-bubble__step-tool-params-content",
|
|
94
|
-
innerHTML:
|
|
95
|
-
}, null, 8,
|
|
96
|
-
]))
|
|
103
|
+
innerHTML: i(e.content)
|
|
104
|
+
}, null, 8, Vn)
|
|
105
|
+
])) : Xu("", !0)
|
|
97
106
|
]));
|
|
98
107
|
}
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
string:
|
|
103
|
-
boolean:
|
|
104
|
-
null: "
|
|
105
|
-
},
|
|
106
|
-
$style:
|
|
107
|
-
},
|
|
108
|
-
["text",
|
|
109
|
-
["tool",
|
|
110
|
-
["collapsible-text",
|
|
111
|
-
]),
|
|
112
|
-
|
|
113
|
-
__name: "Message",
|
|
114
|
-
props: {
|
|
115
|
-
type: {}
|
|
116
|
-
},
|
|
117
|
-
setup(u) {
|
|
118
|
-
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(), o = (s) => {
|
|
119
|
-
const f = { ...r, ...n }, d = e.get(s) || t;
|
|
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: c, defaultProps: a } = o(n.type);
|
|
122
|
-
return (s, f) => uu(i) ? (T(), ru(Cu(uu(c)), Pu({ key: 0 }, { ...uu(a), ...n, ...uu(r) }, {
|
|
123
|
-
"data-type": n.type
|
|
124
|
-
}), null, 16, ["data-type"])) : (T(), ru(Cu(uu(c)), {
|
|
125
|
-
key: 1,
|
|
126
|
-
"data-type": n.type
|
|
127
|
-
}, null, 8, ["data-type"]));
|
|
128
|
-
}
|
|
129
|
-
}), nr = {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: "tr-bubble__avatar"
|
|
132
|
-
}, rr = { class: "tr-bubble__content-wrapper" }, or = {
|
|
133
|
-
key: 0,
|
|
134
|
-
class: "tr-bubble__content-messages"
|
|
135
|
-
}, cr = {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: "tr-bubble__body-text"
|
|
138
|
-
}, ir = {
|
|
139
|
-
key: 2,
|
|
140
|
-
class: "tr-bubble__aborted"
|
|
141
|
-
}, ar = {
|
|
142
|
-
key: 3,
|
|
143
|
-
class: "tr-bubble__footer"
|
|
144
|
-
}, sr = /* @__PURE__ */ ku({
|
|
145
|
-
__name: "Bubble",
|
|
108
|
+
}), Xn = "_key_1b448_2", Jn = "_number_1b448_6", Qn = "_string_1b448_10", Kn = "_boolean_1b448_14", ur = {
|
|
109
|
+
key: Xn,
|
|
110
|
+
number: Jn,
|
|
111
|
+
string: Qn,
|
|
112
|
+
boolean: Kn,
|
|
113
|
+
null: "_null_1b448_18"
|
|
114
|
+
}, er = {
|
|
115
|
+
$style: ur
|
|
116
|
+
}, tr = /* @__PURE__ */ re(Yn, [["__cssModules", er], ["__scopeId", "data-v-1c37a4c4"]]), nr = tr, Ct = /* @__PURE__ */ new Map([
|
|
117
|
+
["text", s0],
|
|
118
|
+
["tool", nr],
|
|
119
|
+
["collapsible-text", Bn]
|
|
120
|
+
]), Dt = Symbol("bubbleContentRendererMap"), yt = Symbol("bubbleContentFallbackRenderer"), rr = /* @__PURE__ */ Du({
|
|
121
|
+
__name: "ContentItem",
|
|
146
122
|
props: {
|
|
147
|
-
|
|
148
|
-
messages: {},
|
|
149
|
-
id: {},
|
|
150
|
-
role: {},
|
|
151
|
-
loading: { type: Boolean },
|
|
152
|
-
aborted: { type: Boolean },
|
|
153
|
-
placement: { default: "start" },
|
|
154
|
-
avatar: {},
|
|
155
|
-
shape: { default: "corner" },
|
|
156
|
-
contentRenderer: {},
|
|
157
|
-
hidden: { type: Boolean },
|
|
158
|
-
maxWidth: { default: "80%" }
|
|
123
|
+
item: {}
|
|
159
124
|
},
|
|
160
125
|
setup(u) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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), o = Ou(() => e.placement === "start");
|
|
168
|
-
return (i, c) => {
|
|
169
|
-
var a;
|
|
170
|
-
return T(), M("div", {
|
|
171
|
-
class: mu([
|
|
172
|
-
"tr-bubble",
|
|
173
|
-
{
|
|
174
|
-
"placement-start": o.value,
|
|
175
|
-
"placement-end": !o.value
|
|
176
|
-
}
|
|
177
|
-
])
|
|
178
|
-
}, [
|
|
179
|
-
e.avatar ? (T(), M("div", nr, [
|
|
180
|
-
(T(), ru(Cu(e.avatar)))
|
|
181
|
-
])) : Nu("", !0),
|
|
182
|
-
I("div", rr, [
|
|
183
|
-
e.loading ? Ce(i.$slots, "loading", {
|
|
184
|
-
key: 0,
|
|
185
|
-
bubbleProps: e
|
|
186
|
-
}, () => [
|
|
187
|
-
I("div", {
|
|
188
|
-
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
189
|
-
}, c[0] || (c[0] = [
|
|
190
|
-
I("img", {
|
|
191
|
-
src: Dn,
|
|
192
|
-
alt: "loading",
|
|
193
|
-
class: "tr-bubble__loading"
|
|
194
|
-
}, null, -1)
|
|
195
|
-
]), 2)
|
|
196
|
-
], !0) : (T(), M("div", {
|
|
197
|
-
key: 1,
|
|
198
|
-
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
199
|
-
}, [
|
|
200
|
-
(a = e.messages) != null && a.length ? (T(), M("div", or, [
|
|
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
|
-
])) : Ce(i.$slots, "default", {
|
|
203
|
-
key: 1,
|
|
204
|
-
bubbleProps: e
|
|
205
|
-
}, () => [
|
|
206
|
-
n.value ? (T(), M(te, { key: 0 }, [
|
|
207
|
-
n.value.isComponent ? (T(), ru(Cu(n.value.vNodeOrComponent), n0(Pu({ key: 0 }, { ...n.value.defaultProps, ...e })), null, 16)) : (T(), ru(Cu(n.value.vNodeOrComponent), { key: 1 }))
|
|
208
|
-
], 64)) : (T(), M("span", cr, xu(r.value), 1))
|
|
209
|
-
], !0),
|
|
210
|
-
e.aborted ? (T(), M("span", ir, "(用户停止)")) : Nu("", !0),
|
|
211
|
-
t.footer ? (T(), M("div", ar, [
|
|
212
|
-
Ce(i.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
213
|
-
])) : Nu("", !0)
|
|
214
|
-
], 2))
|
|
215
|
-
])
|
|
216
|
-
], 2);
|
|
217
|
-
};
|
|
126
|
+
const e = $0(Dt, Ct), t = $0(yt, s0), n = u, r = (i) => {
|
|
127
|
+
const c = e.get(i) || t;
|
|
128
|
+
return typeof c == "function" ? { isComponent: !1, vNodeOrComponent: c(n.item) } : c instanceof a0 ? { isComponent: !1, vNodeOrComponent: c.render(n.item) } : { isComponent: !0, vNodeOrComponent: c };
|
|
129
|
+
}, o = J(() => r(n.item.type));
|
|
130
|
+
return (i, c) => o.value.isComponent ? (S(), eu(mu(o.value.vNodeOrComponent), Ae(Ju({ key: 0 }, n.item)), null, 16)) : (S(), eu(mu(o.value.vNodeOrComponent), { key: 1 }));
|
|
218
131
|
}
|
|
219
|
-
})
|
|
220
|
-
__name: "BubbleList",
|
|
221
|
-
props: {
|
|
222
|
-
items: {},
|
|
223
|
-
roles: {},
|
|
224
|
-
loading: { type: Boolean },
|
|
225
|
-
loadingRole: {},
|
|
226
|
-
autoScroll: { type: Boolean }
|
|
227
|
-
},
|
|
228
|
-
setup(u) {
|
|
229
|
-
const e = u, t = Se(null), { y: n } = wn(t, {
|
|
230
|
-
behavior: "smooth",
|
|
231
|
-
throttle: 100
|
|
232
|
-
}), r = Ou(() => e.items.at(-1));
|
|
233
|
-
An([() => e.items.length, () => {
|
|
234
|
-
var a;
|
|
235
|
-
return (a = r.value) == null ? void 0 : a.content;
|
|
236
|
-
}], () => {
|
|
237
|
-
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
238
|
-
});
|
|
239
|
-
const o = (a) => {
|
|
240
|
-
var p;
|
|
241
|
-
const s = a.role ? ((p = e.roles) == null ? void 0 : p[a.role]) || {} : {}, { slots: f, ...d } = s, { slots: _, ...h } = a;
|
|
242
|
-
return { ...d, ...h };
|
|
243
|
-
}, i = (a) => {
|
|
244
|
-
var f;
|
|
245
|
-
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
246
|
-
}, c = Ou(() => {
|
|
247
|
-
var f;
|
|
248
|
-
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
249
|
-
return null;
|
|
250
|
-
const { slots: a, ...s } = e.roles[e.loadingRole];
|
|
251
|
-
return { props: { ...s, loading: !0 }, slots: a };
|
|
252
|
-
});
|
|
253
|
-
return (a, s) => (T(), M("div", {
|
|
254
|
-
class: "tr-bubble-list",
|
|
255
|
-
ref_key: "scrollContainerRef",
|
|
256
|
-
ref: t
|
|
257
|
-
}, [
|
|
258
|
-
(T(!0), M(te, null, ue(e.items, (f, d) => (T(), M(te, {
|
|
259
|
-
key: f.id || d
|
|
260
|
-
}, [
|
|
261
|
-
f.hidden ? Nu("", !0) : (T(), ru(Du, Pu({
|
|
262
|
-
key: 0,
|
|
263
|
-
ref_for: !0
|
|
264
|
-
}, o(f)), G0({ _: 2 }, [
|
|
265
|
-
ue(i(f), (_, h) => ({
|
|
266
|
-
name: h,
|
|
267
|
-
fn: W0((p) => [
|
|
268
|
-
(T(), ru(Cu(_), Pu({ ref_for: !0 }, p), null, 16))
|
|
269
|
-
])
|
|
270
|
-
}))
|
|
271
|
-
]), 1040))
|
|
272
|
-
], 64))), 128)),
|
|
273
|
-
c.value ? (T(), ru(Du, n0(Pu({ key: 0 }, c.value.props)), G0({ _: 2 }, [
|
|
274
|
-
ue(c.value.slots, (f, d) => ({
|
|
275
|
-
name: d,
|
|
276
|
-
fn: W0((_) => [
|
|
277
|
-
(T(), ru(Cu(f), n0(Cn(_)), null, 16))
|
|
278
|
-
])
|
|
279
|
-
}))
|
|
280
|
-
]), 1040)) : Nu("", !0)
|
|
281
|
-
], 512));
|
|
282
|
-
}
|
|
283
|
-
}), ne = /* @__PURE__ */ Uu(lr, [["__scopeId", "data-v-24c3a7d6"]]), fr = { class: "tr-chain-list" }, dr = { class: "tr-chain-item__header" }, pr = { class: "tr-chain-item__icon" }, hr = { class: "tr-chain-item__title" }, br = { class: "tr-chain-item__body" }, _r = ["innerHTML"], mr = /* @__PURE__ */ ku({
|
|
284
|
-
__name: "chain",
|
|
285
|
-
props: {
|
|
286
|
-
items: {},
|
|
287
|
-
html: { type: Boolean, default: !0 },
|
|
288
|
-
contentClass: {},
|
|
289
|
-
contentRenderer: {}
|
|
290
|
-
},
|
|
291
|
-
setup(u) {
|
|
292
|
-
const e = u, t = Se({}), n = (o) => {
|
|
293
|
-
t.value[o] = !t.value[o];
|
|
294
|
-
}, r = (o) => e.contentRenderer ? e.contentRenderer(o) : o;
|
|
295
|
-
return (o, i) => (T(), M("div", fr, [
|
|
296
|
-
(T(!0), M(te, null, ue(e.items, (c, a) => (T(), M("div", {
|
|
297
|
-
class: "tr-chain-item",
|
|
298
|
-
key: a
|
|
299
|
-
}, [
|
|
300
|
-
I("div", dr, [
|
|
301
|
-
I("div", pr, [
|
|
302
|
-
ee(uu(Sn))
|
|
303
|
-
]),
|
|
304
|
-
I("div", hr, xu(c.title), 1),
|
|
305
|
-
ee(uu(Dt), {
|
|
306
|
-
class: mu(["expand-icon", { "rotate-180": t.value[a] }]),
|
|
307
|
-
onClick: (s) => n(a)
|
|
308
|
-
}, null, 8, ["class", "onClick"])
|
|
309
|
-
]),
|
|
310
|
-
At(I("div", br, [
|
|
311
|
-
i[0] || (i[0] = I("div", { class: "tr-chain-item__chain-line-wrapper" }, [
|
|
312
|
-
I("div", { class: "tr-chain-item__chain-line" })
|
|
313
|
-
], -1)),
|
|
314
|
-
e.html ? (T(), M("div", {
|
|
315
|
-
key: 1,
|
|
316
|
-
class: mu(["tr-chain-item__content", e.contentClass]),
|
|
317
|
-
innerHTML: r(c.content)
|
|
318
|
-
}, null, 10, _r)) : (T(), M("div", {
|
|
319
|
-
key: 0,
|
|
320
|
-
class: mu(["tr-chain-item__content", e.contentClass])
|
|
321
|
-
}, xu(r(c.content)), 3))
|
|
322
|
-
], 512), [
|
|
323
|
-
[Ct, !t.value[a]]
|
|
324
|
-
])
|
|
325
|
-
]))), 128))
|
|
326
|
-
]));
|
|
327
|
-
}
|
|
328
|
-
}), xr = /* @__PURE__ */ Uu(mr, [["__scopeId", "data-v-92295647"]]), Pi = xr;
|
|
132
|
+
});
|
|
329
133
|
/*! @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
134
|
const {
|
|
331
|
-
entries:
|
|
135
|
+
entries: Ft,
|
|
332
136
|
setPrototypeOf: Y0,
|
|
333
|
-
isFrozen:
|
|
334
|
-
getPrototypeOf:
|
|
335
|
-
getOwnPropertyDescriptor:
|
|
137
|
+
isFrozen: or,
|
|
138
|
+
getPrototypeOf: cr,
|
|
139
|
+
getOwnPropertyDescriptor: ir
|
|
336
140
|
} = Object;
|
|
337
141
|
let {
|
|
338
|
-
freeze:
|
|
339
|
-
seal:
|
|
340
|
-
create:
|
|
142
|
+
freeze: j,
|
|
143
|
+
seal: Q,
|
|
144
|
+
create: Tt
|
|
341
145
|
} = Object, {
|
|
342
|
-
apply:
|
|
343
|
-
construct:
|
|
146
|
+
apply: e0,
|
|
147
|
+
construct: t0
|
|
344
148
|
} = typeof Reflect < "u" && Reflect;
|
|
345
|
-
|
|
149
|
+
j || (j = function(e) {
|
|
346
150
|
return e;
|
|
347
151
|
});
|
|
348
|
-
|
|
152
|
+
Q || (Q = function(e) {
|
|
349
153
|
return e;
|
|
350
154
|
});
|
|
351
|
-
|
|
155
|
+
e0 || (e0 = function(e, t, n) {
|
|
352
156
|
return e.apply(t, n);
|
|
353
157
|
});
|
|
354
|
-
|
|
158
|
+
t0 || (t0 = function(e, t) {
|
|
355
159
|
return new e(...t);
|
|
356
160
|
});
|
|
357
|
-
const
|
|
358
|
-
function
|
|
161
|
+
const be = G(Array.prototype.forEach), ar = G(Array.prototype.lastIndexOf), X0 = G(Array.prototype.pop), Gu = G(Array.prototype.push), sr = G(Array.prototype.splice), Ee = G(String.prototype.toLowerCase), He = G(String.prototype.toString), J0 = G(String.prototype.match), Wu = G(String.prototype.replace), lr = G(String.prototype.indexOf), fr = G(String.prototype.trim), uu = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), Zu = dr(TypeError);
|
|
162
|
+
function G(u) {
|
|
359
163
|
return function(e) {
|
|
360
164
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
361
165
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
362
166
|
n[r - 1] = arguments[r];
|
|
363
|
-
return
|
|
167
|
+
return e0(u, e, n);
|
|
364
168
|
};
|
|
365
169
|
}
|
|
366
|
-
function
|
|
170
|
+
function dr(u) {
|
|
367
171
|
return function() {
|
|
368
172
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
369
173
|
t[n] = arguments[n];
|
|
370
|
-
return
|
|
174
|
+
return t0(u, t);
|
|
371
175
|
};
|
|
372
176
|
}
|
|
373
177
|
function F(u, e) {
|
|
374
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
178
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ee;
|
|
375
179
|
Y0 && Y0(u, null);
|
|
376
180
|
let n = e.length;
|
|
377
181
|
for (; n--; ) {
|
|
378
182
|
let r = e[n];
|
|
379
183
|
if (typeof r == "string") {
|
|
380
184
|
const o = t(r);
|
|
381
|
-
o !== r && (
|
|
185
|
+
o !== r && (or(e) || (e[n] = o), r = o);
|
|
382
186
|
}
|
|
383
187
|
u[r] = !0;
|
|
384
188
|
}
|
|
385
189
|
return u;
|
|
386
190
|
}
|
|
387
|
-
function
|
|
191
|
+
function hr(u) {
|
|
388
192
|
for (let e = 0; e < u.length; e++)
|
|
389
|
-
|
|
193
|
+
uu(u, e) || (u[e] = null);
|
|
390
194
|
return u;
|
|
391
195
|
}
|
|
392
196
|
function du(u) {
|
|
393
|
-
const e =
|
|
394
|
-
for (const [t, n] of
|
|
395
|
-
|
|
197
|
+
const e = Tt(null);
|
|
198
|
+
for (const [t, n] of Ft(u))
|
|
199
|
+
uu(u, t) && (Array.isArray(n) ? e[t] = hr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = du(n) : e[t] = n);
|
|
396
200
|
return e;
|
|
397
201
|
}
|
|
398
|
-
function
|
|
202
|
+
function Vu(u, e) {
|
|
399
203
|
for (; u !== null; ) {
|
|
400
|
-
const n =
|
|
204
|
+
const n = ir(u, e);
|
|
401
205
|
if (n) {
|
|
402
206
|
if (n.get)
|
|
403
|
-
return
|
|
207
|
+
return G(n.get);
|
|
404
208
|
if (typeof n.value == "function")
|
|
405
|
-
return
|
|
209
|
+
return G(n.value);
|
|
406
210
|
}
|
|
407
|
-
u =
|
|
211
|
+
u = cr(u);
|
|
408
212
|
}
|
|
409
213
|
function t() {
|
|
410
214
|
return null;
|
|
411
215
|
}
|
|
412
216
|
return t;
|
|
413
217
|
}
|
|
414
|
-
const Q0 =
|
|
218
|
+
const Q0 = j(["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"]), $e = j(["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"]), je = j(["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"]), pr = j(["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"]), Ge = j(["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"]), br = j(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), K0 = j(["#text"]), ut = j(["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"]), We = j(["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 = j(["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"]), _e = j(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _r = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mr = Q(/<%[\w\W]*|[\w\W]*%>/gm), xr = Q(/\$\{[\w\W]*/gm), gr = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), kr = Q(/^aria-[\-\w]+$/), St = Q(
|
|
415
219
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
416
220
|
// eslint-disable-line no-useless-escape
|
|
417
|
-
),
|
|
221
|
+
), Er = Q(/^(?:\w+script|data):/i), Ar = Q(
|
|
418
222
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
419
223
|
// eslint-disable-line no-control-regex
|
|
420
|
-
),
|
|
224
|
+
), wt = Q(/^html$/i), Cr = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
421
225
|
var tt = /* @__PURE__ */ Object.freeze({
|
|
422
226
|
__proto__: null,
|
|
423
|
-
ARIA_ATTR:
|
|
424
|
-
ATTR_WHITESPACE:
|
|
425
|
-
CUSTOM_ELEMENT:
|
|
426
|
-
DATA_ATTR:
|
|
427
|
-
DOCTYPE_NAME:
|
|
428
|
-
ERB_EXPR:
|
|
429
|
-
IS_ALLOWED_URI:
|
|
430
|
-
IS_SCRIPT_OR_DATA:
|
|
431
|
-
MUSTACHE_EXPR:
|
|
432
|
-
TMPLIT_EXPR:
|
|
227
|
+
ARIA_ATTR: kr,
|
|
228
|
+
ATTR_WHITESPACE: Ar,
|
|
229
|
+
CUSTOM_ELEMENT: Cr,
|
|
230
|
+
DATA_ATTR: gr,
|
|
231
|
+
DOCTYPE_NAME: wt,
|
|
232
|
+
ERB_EXPR: mr,
|
|
233
|
+
IS_ALLOWED_URI: St,
|
|
234
|
+
IS_SCRIPT_OR_DATA: Er,
|
|
235
|
+
MUSTACHE_EXPR: _r,
|
|
236
|
+
TMPLIT_EXPR: xr
|
|
433
237
|
});
|
|
434
|
-
const
|
|
238
|
+
const Yu = {
|
|
435
239
|
element: 1,
|
|
436
240
|
text: 3,
|
|
437
241
|
// Deprecated
|
|
438
242
|
progressingInstruction: 7,
|
|
439
243
|
comment: 8,
|
|
440
244
|
document: 9
|
|
441
|
-
},
|
|
245
|
+
}, Dr = function() {
|
|
442
246
|
return typeof window > "u" ? null : window;
|
|
443
|
-
},
|
|
247
|
+
}, yr = function(e, t) {
|
|
444
248
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
445
249
|
return null;
|
|
446
250
|
let n = null;
|
|
@@ -472,10 +276,10 @@ const Ku = {
|
|
|
472
276
|
uponSanitizeShadowNode: []
|
|
473
277
|
};
|
|
474
278
|
};
|
|
475
|
-
function
|
|
476
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
477
|
-
const e = (g) =>
|
|
478
|
-
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !==
|
|
279
|
+
function vt() {
|
|
280
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Dr();
|
|
281
|
+
const e = (g) => vt(g);
|
|
282
|
+
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Yu.document || !u.Element)
|
|
479
283
|
return e.isSupported = !1, e;
|
|
480
284
|
let {
|
|
481
285
|
document: t
|
|
@@ -486,11 +290,11 @@ function Mt() {
|
|
|
486
290
|
Node: c,
|
|
487
291
|
Element: a,
|
|
488
292
|
NodeFilter: s,
|
|
489
|
-
NamedNodeMap:
|
|
490
|
-
HTMLFormElement:
|
|
293
|
+
NamedNodeMap: d = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
294
|
+
HTMLFormElement: f,
|
|
491
295
|
DOMParser: _,
|
|
492
|
-
trustedTypes:
|
|
493
|
-
} = u,
|
|
296
|
+
trustedTypes: p
|
|
297
|
+
} = u, h = a.prototype, C = Vu(h, "cloneNode"), D = Vu(h, "remove"), T = Vu(h, "nextSibling"), E = Vu(h, "childNodes"), k = Vu(h, "parentNode");
|
|
494
298
|
if (typeof i == "function") {
|
|
495
299
|
const g = t.createElement("template");
|
|
496
300
|
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
@@ -498,31 +302,31 @@ function Mt() {
|
|
|
498
302
|
let m, A = "";
|
|
499
303
|
const {
|
|
500
304
|
implementation: y,
|
|
501
|
-
createNodeIterator:
|
|
502
|
-
createDocumentFragment:
|
|
503
|
-
getElementsByTagName:
|
|
305
|
+
createNodeIterator: I,
|
|
306
|
+
createDocumentFragment: V,
|
|
307
|
+
getElementsByTagName: nu
|
|
504
308
|
} = t, {
|
|
505
|
-
importNode:
|
|
309
|
+
importNode: gu
|
|
506
310
|
} = n;
|
|
507
|
-
let
|
|
508
|
-
e.isSupported = typeof
|
|
311
|
+
let M = nt();
|
|
312
|
+
e.isSupported = typeof Ft == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
509
313
|
const {
|
|
510
|
-
MUSTACHE_EXPR:
|
|
511
|
-
ERB_EXPR:
|
|
314
|
+
MUSTACHE_EXPR: zu,
|
|
315
|
+
ERB_EXPR: qu,
|
|
512
316
|
TMPLIT_EXPR: yu,
|
|
513
|
-
DATA_ATTR:
|
|
514
|
-
ARIA_ATTR:
|
|
515
|
-
IS_SCRIPT_OR_DATA:
|
|
516
|
-
ATTR_WHITESPACE:
|
|
517
|
-
CUSTOM_ELEMENT:
|
|
317
|
+
DATA_ATTR: hu,
|
|
318
|
+
ARIA_ATTR: ve,
|
|
319
|
+
IS_SCRIPT_OR_DATA: tn,
|
|
320
|
+
ATTR_WHITESPACE: x0,
|
|
321
|
+
CUSTOM_ELEMENT: nn
|
|
518
322
|
} = tt;
|
|
519
323
|
let {
|
|
520
|
-
IS_ALLOWED_URI:
|
|
521
|
-
} = tt,
|
|
522
|
-
const
|
|
523
|
-
let
|
|
524
|
-
const
|
|
525
|
-
let R = Object.seal(
|
|
324
|
+
IS_ALLOWED_URI: g0
|
|
325
|
+
} = tt, O = null;
|
|
326
|
+
const k0 = F({}, [...Q0, ...$e, ...je, ...Ge, ...K0]);
|
|
327
|
+
let z = null;
|
|
328
|
+
const E0 = F({}, [...ut, ...We, ...et, ..._e]);
|
|
329
|
+
let R = Object.seal(Tt(null, {
|
|
526
330
|
tagNameCheck: {
|
|
527
331
|
writable: !0,
|
|
528
332
|
configurable: !1,
|
|
@@ -541,47 +345,47 @@ function Mt() {
|
|
|
541
345
|
enumerable: !0,
|
|
542
346
|
value: !1
|
|
543
347
|
}
|
|
544
|
-
})),
|
|
545
|
-
const
|
|
546
|
-
let
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
const
|
|
550
|
-
let
|
|
551
|
-
const
|
|
552
|
-
let vu = su,
|
|
553
|
-
const
|
|
554
|
-
let
|
|
555
|
-
const
|
|
556
|
-
let
|
|
557
|
-
const
|
|
558
|
-
let
|
|
559
|
-
const
|
|
348
|
+
})), Uu = null, Re = null, A0 = !0, Ie = !0, C0 = !1, D0 = !0, Fu = !1, ae = !0, ku = !1, Me = !1, Le = !1, Tu = !1, se = !1, le = !1, y0 = !0, F0 = !1;
|
|
349
|
+
const rn = "user-content-";
|
|
350
|
+
let Oe = !0, Hu = !1, Su = {}, wu = null;
|
|
351
|
+
const T0 = 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"]);
|
|
352
|
+
let S0 = null;
|
|
353
|
+
const w0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
354
|
+
let Ne = null;
|
|
355
|
+
const v0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), fe = "http://www.w3.org/1998/Math/MathML", de = "http://www.w3.org/2000/svg", su = "http://www.w3.org/1999/xhtml";
|
|
356
|
+
let vu = su, Be = !1, Pe = null;
|
|
357
|
+
const on = F({}, [fe, de, su], He);
|
|
358
|
+
let he = F({}, ["mi", "mo", "mn", "ms", "mtext"]), pe = F({}, ["annotation-xml"]);
|
|
359
|
+
const cn = F({}, ["title", "style", "font", "a", "script"]);
|
|
360
|
+
let $u = null;
|
|
361
|
+
const an = ["application/xhtml+xml", "text/html"], sn = "text/html";
|
|
362
|
+
let N = null, Ru = null;
|
|
363
|
+
const ln = t.createElement("form"), R0 = function(l) {
|
|
560
364
|
return l instanceof RegExp || l instanceof Function;
|
|
561
|
-
},
|
|
365
|
+
}, ze = function() {
|
|
562
366
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
563
367
|
if (!(Ru && Ru === l)) {
|
|
564
|
-
if ((!l || typeof l != "object") && (l = {}), l = du(l),
|
|
565
|
-
|
|
368
|
+
if ((!l || typeof l != "object") && (l = {}), l = du(l), $u = // eslint-disable-next-line unicorn/prefer-includes
|
|
369
|
+
an.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? sn : l.PARSER_MEDIA_TYPE, N = $u === "application/xhtml+xml" ? He : Ee, O = uu(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : k0, z = uu(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : E0, Pe = uu(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, He) : on, Ne = uu(l, "ADD_URI_SAFE_ATTR") ? F(du(v0), l.ADD_URI_SAFE_ATTR, N) : v0, S0 = uu(l, "ADD_DATA_URI_TAGS") ? F(du(w0), l.ADD_DATA_URI_TAGS, N) : w0, wu = uu(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : T0, Uu = uu(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : du({}), Re = uu(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : du({}), Su = uu(l, "USE_PROFILES") ? l.USE_PROFILES : !1, A0 = l.ALLOW_ARIA_ATTR !== !1, Ie = l.ALLOW_DATA_ATTR !== !1, C0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, D0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Fu = l.SAFE_FOR_TEMPLATES || !1, ae = l.SAFE_FOR_XML !== !1, ku = l.WHOLE_DOCUMENT || !1, Tu = l.RETURN_DOM || !1, se = l.RETURN_DOM_FRAGMENT || !1, le = l.RETURN_TRUSTED_TYPE || !1, Le = l.FORCE_BODY || !1, y0 = l.SANITIZE_DOM !== !1, F0 = l.SANITIZE_NAMED_PROPS || !1, Oe = l.KEEP_CONTENT !== !1, Hu = l.IN_PLACE || !1, g0 = l.ALLOWED_URI_REGEXP || St, vu = l.NAMESPACE || su, he = l.MATHML_TEXT_INTEGRATION_POINTS || he, pe = l.HTML_INTEGRATION_POINTS || pe, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && R0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && R0(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 && (Ie = !1), se && (Tu = !0), Su && (O = F({}, K0), z = [], Su.html === !0 && (F(O, Q0), F(z, ut)), Su.svg === !0 && (F(O, $e), F(z, We), F(z, _e)), Su.svgFilters === !0 && (F(O, je), F(z, We), F(z, _e)), Su.mathMl === !0 && (F(O, Ge), F(z, et), F(z, _e))), l.ADD_TAGS && (O === k0 && (O = du(O)), F(O, l.ADD_TAGS, N)), l.ADD_ATTR && (z === E0 && (z = du(z)), F(z, l.ADD_ATTR, N)), l.ADD_URI_SAFE_ATTR && F(Ne, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (wu === T0 && (wu = du(wu)), F(wu, l.FORBID_CONTENTS, N)), Oe && (O["#text"] = !0), ku && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete Uu.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
566
370
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
567
|
-
throw
|
|
371
|
+
throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
568
372
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
569
|
-
throw
|
|
373
|
+
throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
570
374
|
m = l.TRUSTED_TYPES_POLICY, A = m.createHTML("");
|
|
571
375
|
} else
|
|
572
|
-
m === void 0 && (m =
|
|
573
|
-
|
|
376
|
+
m === void 0 && (m = yr(p, r)), m !== null && typeof A == "string" && (A = m.createHTML(""));
|
|
377
|
+
j && j(l), Ru = l;
|
|
574
378
|
}
|
|
575
|
-
}, I0 = F({}, [
|
|
379
|
+
}, I0 = F({}, [...$e, ...je, ...pr]), M0 = F({}, [...Ge, ...br]), fn = function(l) {
|
|
576
380
|
let b = k(l);
|
|
577
381
|
(!b || !b.tagName) && (b = {
|
|
578
382
|
namespaceURI: vu,
|
|
579
383
|
tagName: "template"
|
|
580
384
|
});
|
|
581
|
-
const x =
|
|
582
|
-
return
|
|
583
|
-
},
|
|
584
|
-
|
|
385
|
+
const x = Ee(l.tagName), v = Ee(b.tagName);
|
|
386
|
+
return Pe[l.namespaceURI] ? l.namespaceURI === de ? b.namespaceURI === su ? x === "svg" : b.namespaceURI === fe ? x === "svg" && (v === "annotation-xml" || he[v]) : !!I0[x] : l.namespaceURI === fe ? b.namespaceURI === su ? x === "math" : b.namespaceURI === de ? x === "math" && pe[v] : !!M0[x] : l.namespaceURI === su ? b.namespaceURI === de && !pe[v] || b.namespaceURI === fe && !he[v] ? !1 : !M0[x] && (cn[x] || !I0[x]) : !!($u === "application/xhtml+xml" && Pe[l.namespaceURI]) : !1;
|
|
387
|
+
}, ru = function(l) {
|
|
388
|
+
Gu(e.removed, {
|
|
585
389
|
element: l
|
|
586
390
|
});
|
|
587
391
|
try {
|
|
@@ -589,22 +393,22 @@ function Mt() {
|
|
|
589
393
|
} catch {
|
|
590
394
|
D(l);
|
|
591
395
|
}
|
|
592
|
-
},
|
|
396
|
+
}, Iu = function(l, b) {
|
|
593
397
|
try {
|
|
594
|
-
|
|
398
|
+
Gu(e.removed, {
|
|
595
399
|
attribute: b.getAttributeNode(l),
|
|
596
400
|
from: b
|
|
597
401
|
});
|
|
598
402
|
} catch {
|
|
599
|
-
|
|
403
|
+
Gu(e.removed, {
|
|
600
404
|
attribute: null,
|
|
601
405
|
from: b
|
|
602
406
|
});
|
|
603
407
|
}
|
|
604
408
|
if (b.removeAttribute(l), l === "is")
|
|
605
|
-
if (Tu ||
|
|
409
|
+
if (Tu || se)
|
|
606
410
|
try {
|
|
607
|
-
|
|
411
|
+
ru(b);
|
|
608
412
|
} catch {
|
|
609
413
|
}
|
|
610
414
|
else
|
|
@@ -612,96 +416,96 @@ function Mt() {
|
|
|
612
416
|
b.setAttribute(l, "");
|
|
613
417
|
} catch {
|
|
614
418
|
}
|
|
615
|
-
},
|
|
419
|
+
}, L0 = function(l) {
|
|
616
420
|
let b = null, x = null;
|
|
617
|
-
if (
|
|
421
|
+
if (Le)
|
|
618
422
|
l = "<remove></remove>" + l;
|
|
619
423
|
else {
|
|
620
|
-
const
|
|
621
|
-
x =
|
|
424
|
+
const L = J0(l, /^[\r\n\t ]+/);
|
|
425
|
+
x = L && L[0];
|
|
622
426
|
}
|
|
623
|
-
|
|
427
|
+
$u === "application/xhtml+xml" && vu === su && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
624
428
|
const v = m ? m.createHTML(l) : l;
|
|
625
429
|
if (vu === su)
|
|
626
430
|
try {
|
|
627
|
-
b = new _().parseFromString(v,
|
|
431
|
+
b = new _().parseFromString(v, $u);
|
|
628
432
|
} catch {
|
|
629
433
|
}
|
|
630
434
|
if (!b || !b.documentElement) {
|
|
631
435
|
b = y.createDocument(vu, "template", null);
|
|
632
436
|
try {
|
|
633
|
-
b.documentElement.innerHTML =
|
|
437
|
+
b.documentElement.innerHTML = Be ? A : v;
|
|
634
438
|
} catch {
|
|
635
439
|
}
|
|
636
440
|
}
|
|
637
|
-
const
|
|
638
|
-
return l && x &&
|
|
639
|
-
},
|
|
640
|
-
return
|
|
441
|
+
const q = b.body || b.documentElement;
|
|
442
|
+
return l && x && q.insertBefore(t.createTextNode(x), q.childNodes[0] || null), vu === su ? nu.call(b, ku ? "html" : "body")[0] : ku ? b.documentElement : q;
|
|
443
|
+
}, O0 = function(l) {
|
|
444
|
+
return I.call(
|
|
641
445
|
l.ownerDocument || l,
|
|
642
446
|
l,
|
|
643
447
|
// eslint-disable-next-line no-bitwise
|
|
644
448
|
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
645
449
|
null
|
|
646
450
|
);
|
|
647
|
-
},
|
|
648
|
-
return l instanceof
|
|
649
|
-
},
|
|
451
|
+
}, qe = function(l) {
|
|
452
|
+
return l instanceof f && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof d) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
453
|
+
}, N0 = function(l) {
|
|
650
454
|
return typeof c == "function" && l instanceof c;
|
|
651
455
|
};
|
|
652
456
|
function lu(g, l, b) {
|
|
653
|
-
|
|
457
|
+
be(g, (x) => {
|
|
654
458
|
x.call(e, l, b, Ru);
|
|
655
459
|
});
|
|
656
460
|
}
|
|
657
461
|
const B0 = function(l) {
|
|
658
462
|
let b = null;
|
|
659
|
-
if (lu(
|
|
660
|
-
return
|
|
661
|
-
const x =
|
|
662
|
-
if (lu(
|
|
463
|
+
if (lu(M.beforeSanitizeElements, l, null), qe(l))
|
|
464
|
+
return ru(l), !0;
|
|
465
|
+
const x = N(l.nodeName);
|
|
466
|
+
if (lu(M.uponSanitizeElement, l, {
|
|
663
467
|
tagName: x,
|
|
664
|
-
allowedTags:
|
|
665
|
-
}),
|
|
666
|
-
return
|
|
667
|
-
if (!
|
|
668
|
-
if (!
|
|
468
|
+
allowedTags: O
|
|
469
|
+
}), ae && l.hasChildNodes() && !N0(l.firstElementChild) && H(/<[/\w!]/g, l.innerHTML) && H(/<[/\w!]/g, l.textContent) || l.nodeType === Yu.progressingInstruction || ae && l.nodeType === Yu.comment && H(/<[/\w]/g, l.data))
|
|
470
|
+
return ru(l), !0;
|
|
471
|
+
if (!O[x] || Uu[x]) {
|
|
472
|
+
if (!Uu[x] && z0(x) && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
669
473
|
return !1;
|
|
670
|
-
if (
|
|
671
|
-
const v = k(l) || l.parentNode,
|
|
672
|
-
if (
|
|
673
|
-
const
|
|
674
|
-
for (let
|
|
675
|
-
const fu = C(
|
|
676
|
-
fu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(fu,
|
|
474
|
+
if (Oe && !wu[x]) {
|
|
475
|
+
const v = k(l) || l.parentNode, q = E(l) || l.childNodes;
|
|
476
|
+
if (q && v) {
|
|
477
|
+
const L = q.length;
|
|
478
|
+
for (let W = L - 1; W >= 0; --W) {
|
|
479
|
+
const fu = C(q[W], !0);
|
|
480
|
+
fu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(fu, T(l));
|
|
677
481
|
}
|
|
678
482
|
}
|
|
679
483
|
}
|
|
680
|
-
return
|
|
484
|
+
return ru(l), !0;
|
|
681
485
|
}
|
|
682
|
-
return l instanceof a && !
|
|
683
|
-
b =
|
|
684
|
-
}), l.textContent !== b && (
|
|
486
|
+
return l instanceof a && !fn(l) || (x === "noscript" || x === "noembed" || x === "noframes") && H(/<\/no(script|embed|frames)/i, l.innerHTML) ? (ru(l), !0) : (Fu && l.nodeType === Yu.text && (b = l.textContent, be([zu, qu, yu], (v) => {
|
|
487
|
+
b = Wu(b, v, " ");
|
|
488
|
+
}), l.textContent !== b && (Gu(e.removed, {
|
|
685
489
|
element: l.cloneNode()
|
|
686
|
-
}), l.textContent = b)), lu(
|
|
687
|
-
},
|
|
688
|
-
if (
|
|
490
|
+
}), l.textContent = b)), lu(M.afterSanitizeElements, l, null), !1);
|
|
491
|
+
}, P0 = function(l, b, x) {
|
|
492
|
+
if (y0 && (b === "id" || b === "name") && (x in t || x in ln))
|
|
689
493
|
return !1;
|
|
690
|
-
if (!(
|
|
691
|
-
if (!(
|
|
692
|
-
if (!
|
|
494
|
+
if (!(Ie && !Re[b] && H(hu, b))) {
|
|
495
|
+
if (!(A0 && H(ve, b))) {
|
|
496
|
+
if (!z[b] || Re[b]) {
|
|
693
497
|
if (
|
|
694
498
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
695
499
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
696
500
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
697
|
-
!(
|
|
501
|
+
!(z0(l) && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, l) || R.tagNameCheck instanceof Function && R.tagNameCheck(l)) && (R.attributeNameCheck instanceof RegExp && H(R.attributeNameCheck, b) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
698
502
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
699
|
-
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp &&
|
|
503
|
+
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
700
504
|
) return !1;
|
|
701
|
-
} else if (!
|
|
702
|
-
if (!
|
|
703
|
-
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" &&
|
|
704
|
-
if (!(
|
|
505
|
+
} else if (!Ne[b]) {
|
|
506
|
+
if (!H(g0, Wu(x, x0, ""))) {
|
|
507
|
+
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && lr(x, "data:") === 0 && S0[l])) {
|
|
508
|
+
if (!(C0 && !H(tn, Wu(x, x0, "")))) {
|
|
705
509
|
if (x)
|
|
706
510
|
return !1;
|
|
707
511
|
}
|
|
@@ -711,148 +515,148 @@ function Mt() {
|
|
|
711
515
|
}
|
|
712
516
|
}
|
|
713
517
|
return !0;
|
|
518
|
+
}, z0 = function(l) {
|
|
519
|
+
return l !== "annotation-xml" && J0(l, nn);
|
|
714
520
|
}, q0 = function(l) {
|
|
715
|
-
|
|
716
|
-
}, U0 = function(l) {
|
|
717
|
-
lu(O.beforeSanitizeAttributes, l, null);
|
|
521
|
+
lu(M.beforeSanitizeAttributes, l, null);
|
|
718
522
|
const {
|
|
719
523
|
attributes: b
|
|
720
524
|
} = l;
|
|
721
|
-
if (!b ||
|
|
525
|
+
if (!b || qe(l))
|
|
722
526
|
return;
|
|
723
527
|
const x = {
|
|
724
528
|
attrName: "",
|
|
725
529
|
attrValue: "",
|
|
726
530
|
keepAttr: !0,
|
|
727
|
-
allowedAttributes:
|
|
531
|
+
allowedAttributes: z,
|
|
728
532
|
forceKeepAttr: void 0
|
|
729
533
|
};
|
|
730
534
|
let v = b.length;
|
|
731
535
|
for (; v--; ) {
|
|
732
|
-
const
|
|
733
|
-
name:
|
|
734
|
-
namespaceURI:
|
|
536
|
+
const q = b[v], {
|
|
537
|
+
name: L,
|
|
538
|
+
namespaceURI: W,
|
|
735
539
|
value: fu
|
|
736
|
-
} =
|
|
737
|
-
let
|
|
738
|
-
if (x.attrName =
|
|
739
|
-
|
|
540
|
+
} = q, ju = N(L), Ue = fu;
|
|
541
|
+
let U = L === "value" ? Ue : fr(Ue);
|
|
542
|
+
if (x.attrName = ju, x.attrValue = U, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(M.uponSanitizeAttribute, l, x), U = x.attrValue, F0 && (ju === "id" || ju === "name") && (Iu(L, l), U = rn + U), ae && H(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
543
|
+
Iu(L, l);
|
|
740
544
|
continue;
|
|
741
545
|
}
|
|
742
546
|
if (x.forceKeepAttr)
|
|
743
547
|
continue;
|
|
744
548
|
if (!x.keepAttr) {
|
|
745
|
-
|
|
549
|
+
Iu(L, l);
|
|
746
550
|
continue;
|
|
747
551
|
}
|
|
748
|
-
if (!
|
|
749
|
-
|
|
552
|
+
if (!D0 && H(/\/>/i, U)) {
|
|
553
|
+
Iu(L, l);
|
|
750
554
|
continue;
|
|
751
555
|
}
|
|
752
|
-
Fu &&
|
|
753
|
-
|
|
556
|
+
Fu && be([zu, qu, yu], (H0) => {
|
|
557
|
+
U = Wu(U, H0, " ");
|
|
754
558
|
});
|
|
755
|
-
const
|
|
756
|
-
if (!
|
|
757
|
-
|
|
559
|
+
const U0 = N(l.nodeName);
|
|
560
|
+
if (!P0(U0, ju, U)) {
|
|
561
|
+
Iu(L, l);
|
|
758
562
|
continue;
|
|
759
563
|
}
|
|
760
|
-
if (m && typeof
|
|
761
|
-
switch (
|
|
564
|
+
if (m && typeof p == "object" && typeof p.getAttributeType == "function" && !W)
|
|
565
|
+
switch (p.getAttributeType(U0, ju)) {
|
|
762
566
|
case "TrustedHTML": {
|
|
763
|
-
|
|
567
|
+
U = m.createHTML(U);
|
|
764
568
|
break;
|
|
765
569
|
}
|
|
766
570
|
case "TrustedScriptURL": {
|
|
767
|
-
|
|
571
|
+
U = m.createScriptURL(U);
|
|
768
572
|
break;
|
|
769
573
|
}
|
|
770
574
|
}
|
|
771
|
-
if (
|
|
575
|
+
if (U !== Ue)
|
|
772
576
|
try {
|
|
773
|
-
|
|
577
|
+
W ? l.setAttributeNS(W, L, U) : l.setAttribute(L, U), qe(l) ? ru(l) : X0(e.removed);
|
|
774
578
|
} catch {
|
|
775
|
-
|
|
579
|
+
Iu(L, l);
|
|
776
580
|
}
|
|
777
581
|
}
|
|
778
|
-
lu(
|
|
779
|
-
},
|
|
582
|
+
lu(M.afterSanitizeAttributes, l, null);
|
|
583
|
+
}, dn = function g(l) {
|
|
780
584
|
let b = null;
|
|
781
|
-
const x =
|
|
782
|
-
for (lu(
|
|
783
|
-
lu(
|
|
784
|
-
lu(
|
|
585
|
+
const x = O0(l);
|
|
586
|
+
for (lu(M.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
587
|
+
lu(M.uponSanitizeShadowNode, b, null), B0(b), q0(b), b.content instanceof o && g(b.content);
|
|
588
|
+
lu(M.afterSanitizeShadowDOM, l, null);
|
|
785
589
|
};
|
|
786
590
|
return e.sanitize = function(g) {
|
|
787
|
-
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null,
|
|
788
|
-
if (
|
|
591
|
+
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null, q = null;
|
|
592
|
+
if (Be = !g, Be && (g = "<!-->"), typeof g != "string" && !N0(g))
|
|
789
593
|
if (typeof g.toString == "function") {
|
|
790
594
|
if (g = g.toString(), typeof g != "string")
|
|
791
|
-
throw
|
|
595
|
+
throw Zu("dirty is not a string, aborting");
|
|
792
596
|
} else
|
|
793
|
-
throw
|
|
597
|
+
throw Zu("toString is not a function");
|
|
794
598
|
if (!e.isSupported)
|
|
795
599
|
return g;
|
|
796
|
-
if (
|
|
600
|
+
if (Me || ze(l), e.removed = [], typeof g == "string" && (Hu = !1), Hu) {
|
|
797
601
|
if (g.nodeName) {
|
|
798
|
-
const fu =
|
|
799
|
-
if (!
|
|
800
|
-
throw
|
|
602
|
+
const fu = N(g.nodeName);
|
|
603
|
+
if (!O[fu] || Uu[fu])
|
|
604
|
+
throw Zu("root node is forbidden and cannot be sanitized in-place");
|
|
801
605
|
}
|
|
802
606
|
} else if (g instanceof c)
|
|
803
|
-
b =
|
|
607
|
+
b = L0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Yu.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
804
608
|
else {
|
|
805
|
-
if (!Tu && !Fu && !
|
|
609
|
+
if (!Tu && !Fu && !ku && // eslint-disable-next-line unicorn/prefer-includes
|
|
806
610
|
g.indexOf("<") === -1)
|
|
807
|
-
return m &&
|
|
808
|
-
if (b =
|
|
809
|
-
return Tu ? null :
|
|
810
|
-
}
|
|
811
|
-
b &&
|
|
812
|
-
const
|
|
813
|
-
for (; v =
|
|
814
|
-
B0(v),
|
|
815
|
-
if (
|
|
611
|
+
return m && le ? m.createHTML(g) : g;
|
|
612
|
+
if (b = L0(g), !b)
|
|
613
|
+
return Tu ? null : le ? A : "";
|
|
614
|
+
}
|
|
615
|
+
b && Le && ru(b.firstChild);
|
|
616
|
+
const L = O0(Hu ? g : b);
|
|
617
|
+
for (; v = L.nextNode(); )
|
|
618
|
+
B0(v), q0(v), v.content instanceof o && dn(v.content);
|
|
619
|
+
if (Hu)
|
|
816
620
|
return g;
|
|
817
621
|
if (Tu) {
|
|
818
|
-
if (
|
|
819
|
-
for (
|
|
820
|
-
|
|
622
|
+
if (se)
|
|
623
|
+
for (q = V.call(b.ownerDocument); b.firstChild; )
|
|
624
|
+
q.appendChild(b.firstChild);
|
|
821
625
|
else
|
|
822
|
-
|
|
823
|
-
return (
|
|
824
|
-
}
|
|
825
|
-
let
|
|
826
|
-
return
|
|
827
|
-
` +
|
|
828
|
-
|
|
829
|
-
}), m &&
|
|
626
|
+
q = b;
|
|
627
|
+
return (z.shadowroot || z.shadowrootmode) && (q = gu.call(n, q, !0)), q;
|
|
628
|
+
}
|
|
629
|
+
let W = ku ? b.outerHTML : b.innerHTML;
|
|
630
|
+
return ku && O["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && H(wt, b.ownerDocument.doctype.name) && (W = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
631
|
+
` + W), Fu && be([zu, qu, yu], (fu) => {
|
|
632
|
+
W = Wu(W, fu, " ");
|
|
633
|
+
}), m && le ? m.createHTML(W) : W;
|
|
830
634
|
}, e.setConfig = function() {
|
|
831
635
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
832
|
-
|
|
636
|
+
ze(g), Me = !0;
|
|
833
637
|
}, e.clearConfig = function() {
|
|
834
|
-
Ru = null,
|
|
638
|
+
Ru = null, Me = !1;
|
|
835
639
|
}, e.isValidAttribute = function(g, l, b) {
|
|
836
|
-
Ru ||
|
|
837
|
-
const x =
|
|
838
|
-
return
|
|
640
|
+
Ru || ze({});
|
|
641
|
+
const x = N(g), v = N(l);
|
|
642
|
+
return P0(x, v, b);
|
|
839
643
|
}, e.addHook = function(g, l) {
|
|
840
|
-
typeof l == "function" &&
|
|
644
|
+
typeof l == "function" && Gu(M[g], l);
|
|
841
645
|
}, e.removeHook = function(g, l) {
|
|
842
646
|
if (l !== void 0) {
|
|
843
|
-
const b =
|
|
844
|
-
return b === -1 ? void 0 :
|
|
647
|
+
const b = ar(M[g], l);
|
|
648
|
+
return b === -1 ? void 0 : sr(M[g], b, 1)[0];
|
|
845
649
|
}
|
|
846
|
-
return X0(
|
|
650
|
+
return X0(M[g]);
|
|
847
651
|
}, e.removeHooks = function(g) {
|
|
848
|
-
|
|
652
|
+
M[g] = [];
|
|
849
653
|
}, e.removeAllHooks = function() {
|
|
850
|
-
|
|
654
|
+
M = nt();
|
|
851
655
|
}, e;
|
|
852
656
|
}
|
|
853
|
-
var
|
|
657
|
+
var Fr = vt();
|
|
854
658
|
const rt = {};
|
|
855
|
-
function
|
|
659
|
+
function Tr(u) {
|
|
856
660
|
let e = rt[u];
|
|
857
661
|
if (e)
|
|
858
662
|
return e;
|
|
@@ -867,9 +671,9 @@ function Ur(u) {
|
|
|
867
671
|
}
|
|
868
672
|
return e;
|
|
869
673
|
}
|
|
870
|
-
function
|
|
871
|
-
typeof e != "string" && (e =
|
|
872
|
-
const t =
|
|
674
|
+
function Nu(u, e) {
|
|
675
|
+
typeof e != "string" && (e = Nu.defaultChars);
|
|
676
|
+
const t = Tr(e);
|
|
873
677
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
874
678
|
let r = "";
|
|
875
679
|
for (let o = 0, i = n.length; o < i; o += 3) {
|
|
@@ -889,16 +693,16 @@ function zu(u, e) {
|
|
|
889
693
|
if ((c & 240) === 224 && o + 6 < i) {
|
|
890
694
|
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
891
695
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
892
|
-
const
|
|
893
|
-
|
|
696
|
+
const d = c << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
697
|
+
d < 2048 || d >= 55296 && d <= 57343 ? r += "���" : r += String.fromCharCode(d), o += 6;
|
|
894
698
|
continue;
|
|
895
699
|
}
|
|
896
700
|
}
|
|
897
701
|
if ((c & 248) === 240 && o + 9 < i) {
|
|
898
|
-
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16),
|
|
899
|
-
if ((a & 192) === 128 && (s & 192) === 128 && (
|
|
900
|
-
let
|
|
901
|
-
|
|
702
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), d = parseInt(n.slice(o + 10, o + 12), 16);
|
|
703
|
+
if ((a & 192) === 128 && (s & 192) === 128 && (d & 192) === 128) {
|
|
704
|
+
let f = c << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | d & 63;
|
|
705
|
+
f < 65536 || f > 1114111 ? r += "����" : (f -= 65536, r += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), o += 9;
|
|
902
706
|
continue;
|
|
903
707
|
}
|
|
904
708
|
}
|
|
@@ -907,10 +711,10 @@ function zu(u, e) {
|
|
|
907
711
|
return r;
|
|
908
712
|
});
|
|
909
713
|
}
|
|
910
|
-
|
|
911
|
-
|
|
714
|
+
Nu.defaultChars = ";/?:@&=+$,#";
|
|
715
|
+
Nu.componentChars = "";
|
|
912
716
|
const ot = {};
|
|
913
|
-
function
|
|
717
|
+
function Sr(u) {
|
|
914
718
|
let e = ot[u];
|
|
915
719
|
if (e)
|
|
916
720
|
return e;
|
|
@@ -923,9 +727,9 @@ function Hr(u) {
|
|
|
923
727
|
e[u.charCodeAt(t)] = u[t];
|
|
924
728
|
return e;
|
|
925
729
|
}
|
|
926
|
-
function
|
|
927
|
-
typeof e != "string" && (t = e, e =
|
|
928
|
-
const n =
|
|
730
|
+
function oe(u, e, t) {
|
|
731
|
+
typeof e != "string" && (t = e, e = oe.defaultChars), typeof t > "u" && (t = !0);
|
|
732
|
+
const n = Sr(e);
|
|
929
733
|
let r = "";
|
|
930
734
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
931
735
|
const c = u.charCodeAt(o);
|
|
@@ -952,17 +756,17 @@ function se(u, e, t) {
|
|
|
952
756
|
}
|
|
953
757
|
return r;
|
|
954
758
|
}
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
function
|
|
759
|
+
oe.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
760
|
+
oe.componentChars = "-_.!~*'()";
|
|
761
|
+
function l0(u) {
|
|
958
762
|
let e = "";
|
|
959
763
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
|
960
764
|
}
|
|
961
|
-
function
|
|
765
|
+
function Ce() {
|
|
962
766
|
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
767
|
}
|
|
964
|
-
const
|
|
965
|
-
`, " "],
|
|
768
|
+
const wr = /^([a-z0-9.+-]+:)/i, vr = /:[0-9]*$/, Rr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Ir = ["<", ">", '"', "`", " ", "\r", `
|
|
769
|
+
`, " "], Mr = ["{", "}", "|", "\\", "^", "`"].concat(Ir), Lr = ["'"].concat(Mr), ct = ["%", "/", "?", ";", "#"].concat(Lr), it = ["/", "?", "#"], Or = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, Nr = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
966
770
|
javascript: !0,
|
|
967
771
|
"javascript:": !0
|
|
968
772
|
}, lt = {
|
|
@@ -977,81 +781,81 @@ const $r = /^([a-z0-9.+-]+:)/i, jr = /:[0-9]*$/, Gr = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
977
781
|
"gopher:": !0,
|
|
978
782
|
"file:": !0
|
|
979
783
|
};
|
|
980
|
-
function
|
|
981
|
-
if (u && u instanceof
|
|
982
|
-
const t = new
|
|
784
|
+
function f0(u, e) {
|
|
785
|
+
if (u && u instanceof Ce) return u;
|
|
786
|
+
const t = new Ce();
|
|
983
787
|
return t.parse(u, e), t;
|
|
984
788
|
}
|
|
985
|
-
|
|
789
|
+
Ce.prototype.parse = function(u, e) {
|
|
986
790
|
let t, n, r, o = u;
|
|
987
791
|
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
988
|
-
const s =
|
|
792
|
+
const s = Rr.exec(o);
|
|
989
793
|
if (s)
|
|
990
794
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
991
795
|
}
|
|
992
|
-
let i =
|
|
796
|
+
let i = wr.exec(o);
|
|
993
797
|
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, o = o.substr(i.length)), (e || i || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(i && st[i]) && (o = o.substr(2), this.slashes = !0)), !st[i] && (r || i && !lt[i])) {
|
|
994
798
|
let s = -1;
|
|
995
|
-
for (let
|
|
996
|
-
n = o.indexOf(it[
|
|
997
|
-
let
|
|
998
|
-
s === -1 ?
|
|
999
|
-
for (let
|
|
1000
|
-
n = o.indexOf(ct[
|
|
799
|
+
for (let h = 0; h < it.length; h++)
|
|
800
|
+
n = o.indexOf(it[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
801
|
+
let d, f;
|
|
802
|
+
s === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", s), f !== -1 && (d = o.slice(0, f), o = o.slice(f + 1), this.auth = d), s = -1;
|
|
803
|
+
for (let h = 0; h < ct.length; h++)
|
|
804
|
+
n = o.indexOf(ct[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1001
805
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1002
806
|
const _ = o.slice(0, s);
|
|
1003
807
|
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1004
|
-
const
|
|
1005
|
-
if (!
|
|
1006
|
-
const
|
|
1007
|
-
for (let C = 0, D =
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
808
|
+
const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
809
|
+
if (!p) {
|
|
810
|
+
const h = this.hostname.split(/\./);
|
|
811
|
+
for (let C = 0, D = h.length; C < D; C++) {
|
|
812
|
+
const T = h[C];
|
|
813
|
+
if (T && !T.match(at)) {
|
|
1010
814
|
let E = "";
|
|
1011
|
-
for (let k = 0, m =
|
|
1012
|
-
|
|
815
|
+
for (let k = 0, m = T.length; k < m; k++)
|
|
816
|
+
T.charCodeAt(k) > 127 ? E += "x" : E += T[k];
|
|
1013
817
|
if (!E.match(at)) {
|
|
1014
|
-
const k =
|
|
818
|
+
const k = h.slice(0, C), m = h.slice(C + 1), A = T.match(Nr);
|
|
1015
819
|
A && (k.push(A[1]), m.unshift(A[2])), m.length && (o = m.join(".") + o), this.hostname = k.join(".");
|
|
1016
820
|
break;
|
|
1017
821
|
}
|
|
1018
822
|
}
|
|
1019
823
|
}
|
|
1020
824
|
}
|
|
1021
|
-
this.hostname.length >
|
|
825
|
+
this.hostname.length > Or && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1022
826
|
}
|
|
1023
827
|
const c = o.indexOf("#");
|
|
1024
828
|
c !== -1 && (this.hash = o.substr(c), o = o.slice(0, c));
|
|
1025
829
|
const a = o.indexOf("?");
|
|
1026
830
|
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1027
831
|
};
|
|
1028
|
-
|
|
1029
|
-
let e =
|
|
832
|
+
Ce.prototype.parseHost = function(u) {
|
|
833
|
+
let e = vr.exec(u);
|
|
1030
834
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
1031
835
|
};
|
|
1032
|
-
const
|
|
836
|
+
const Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1033
837
|
__proto__: null,
|
|
1034
|
-
decode:
|
|
1035
|
-
encode:
|
|
1036
|
-
format:
|
|
1037
|
-
parse:
|
|
1038
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
838
|
+
decode: Nu,
|
|
839
|
+
encode: oe,
|
|
840
|
+
format: l0,
|
|
841
|
+
parse: f0
|
|
842
|
+
}, Symbol.toStringTag, { value: "Module" })), Rt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, It = /[\0-\x1F\x7F-\x9F]/, Pr = /[\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]/, d0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, Mt = /[\$\+<->\^`\|~\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]/, Lt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1039
843
|
__proto__: null,
|
|
1040
|
-
Any:
|
|
1041
|
-
Cc:
|
|
1042
|
-
Cf:
|
|
1043
|
-
P:
|
|
1044
|
-
S:
|
|
1045
|
-
Z:
|
|
1046
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
844
|
+
Any: Rt,
|
|
845
|
+
Cc: It,
|
|
846
|
+
Cf: Pr,
|
|
847
|
+
P: d0,
|
|
848
|
+
S: Mt,
|
|
849
|
+
Z: Lt
|
|
850
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = new Uint16Array(
|
|
1047
851
|
// prettier-ignore
|
|
1048
852
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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
|
-
),
|
|
853
|
+
), Ur = new Uint16Array(
|
|
1050
854
|
// prettier-ignore
|
|
1051
855
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1052
856
|
);
|
|
1053
|
-
var
|
|
1054
|
-
const
|
|
857
|
+
var Ze;
|
|
858
|
+
const Hr = /* @__PURE__ */ new Map([
|
|
1055
859
|
[0, 65533],
|
|
1056
860
|
// C1 Unicode control character reference replacements
|
|
1057
861
|
[128, 8364],
|
|
@@ -1081,53 +885,53 @@ const to = /* @__PURE__ */ new Map([
|
|
|
1081
885
|
[156, 339],
|
|
1082
886
|
[158, 382],
|
|
1083
887
|
[159, 376]
|
|
1084
|
-
]),
|
|
888
|
+
]), $r = (
|
|
1085
889
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1086
|
-
(
|
|
890
|
+
(Ze = String.fromCodePoint) !== null && Ze !== void 0 ? Ze : function(u) {
|
|
1087
891
|
let e = "";
|
|
1088
892
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1089
893
|
}
|
|
1090
894
|
);
|
|
1091
|
-
function
|
|
895
|
+
function jr(u) {
|
|
1092
896
|
var e;
|
|
1093
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
897
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Hr.get(u)) !== null && e !== void 0 ? e : u;
|
|
1094
898
|
}
|
|
1095
|
-
var
|
|
899
|
+
var P;
|
|
1096
900
|
(function(u) {
|
|
1097
901
|
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
|
-
})(
|
|
1099
|
-
const
|
|
902
|
+
})(P || (P = {}));
|
|
903
|
+
const Gr = 32;
|
|
1100
904
|
var _u;
|
|
1101
905
|
(function(u) {
|
|
1102
906
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1103
907
|
})(_u || (_u = {}));
|
|
1104
|
-
function
|
|
1105
|
-
return u >=
|
|
908
|
+
function n0(u) {
|
|
909
|
+
return u >= P.ZERO && u <= P.NINE;
|
|
1106
910
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return u >=
|
|
911
|
+
function Wr(u) {
|
|
912
|
+
return u >= P.UPPER_A && u <= P.UPPER_F || u >= P.LOWER_A && u <= P.LOWER_F;
|
|
1109
913
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return u >=
|
|
914
|
+
function Zr(u) {
|
|
915
|
+
return u >= P.UPPER_A && u <= P.UPPER_Z || u >= P.LOWER_A && u <= P.LOWER_Z || n0(u);
|
|
1112
916
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return u ===
|
|
917
|
+
function Vr(u) {
|
|
918
|
+
return u === P.EQUALS || Zr(u);
|
|
1115
919
|
}
|
|
1116
|
-
var
|
|
920
|
+
var B;
|
|
1117
921
|
(function(u) {
|
|
1118
922
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
1119
|
-
})(
|
|
923
|
+
})(B || (B = {}));
|
|
1120
924
|
var bu;
|
|
1121
925
|
(function(u) {
|
|
1122
926
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1123
927
|
})(bu || (bu = {}));
|
|
1124
|
-
class
|
|
928
|
+
class Yr {
|
|
1125
929
|
constructor(e, t, n) {
|
|
1126
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
930
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = B.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
|
|
1127
931
|
}
|
|
1128
932
|
/** Resets the instance to make it reusable. */
|
|
1129
933
|
startEntity(e) {
|
|
1130
|
-
this.decodeMode = e, this.state =
|
|
934
|
+
this.decodeMode = e, this.state = B.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1131
935
|
}
|
|
1132
936
|
/**
|
|
1133
937
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -1142,15 +946,15 @@ class so {
|
|
|
1142
946
|
*/
|
|
1143
947
|
write(e, t) {
|
|
1144
948
|
switch (this.state) {
|
|
1145
|
-
case
|
|
1146
|
-
return e.charCodeAt(t) ===
|
|
1147
|
-
case
|
|
949
|
+
case B.EntityStart:
|
|
950
|
+
return e.charCodeAt(t) === P.NUM ? (this.state = B.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = B.NamedEntity, this.stateNamedEntity(e, t));
|
|
951
|
+
case B.NumericStart:
|
|
1148
952
|
return this.stateNumericStart(e, t);
|
|
1149
|
-
case
|
|
953
|
+
case B.NumericDecimal:
|
|
1150
954
|
return this.stateNumericDecimal(e, t);
|
|
1151
|
-
case
|
|
955
|
+
case B.NumericHex:
|
|
1152
956
|
return this.stateNumericHex(e, t);
|
|
1153
|
-
case
|
|
957
|
+
case B.NamedEntity:
|
|
1154
958
|
return this.stateNamedEntity(e, t);
|
|
1155
959
|
}
|
|
1156
960
|
}
|
|
@@ -1164,7 +968,7 @@ class so {
|
|
|
1164
968
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1165
969
|
*/
|
|
1166
970
|
stateNumericStart(e, t) {
|
|
1167
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
971
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | Gr) === P.LOWER_X ? (this.state = B.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = B.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1168
972
|
}
|
|
1169
973
|
addToNumericResult(e, t, n, r) {
|
|
1170
974
|
if (t !== n) {
|
|
@@ -1185,7 +989,7 @@ class so {
|
|
|
1185
989
|
const n = t;
|
|
1186
990
|
for (; t < e.length; ) {
|
|
1187
991
|
const r = e.charCodeAt(t);
|
|
1188
|
-
if (
|
|
992
|
+
if (n0(r) || Wr(r))
|
|
1189
993
|
t += 1;
|
|
1190
994
|
else
|
|
1191
995
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1205,7 +1009,7 @@ class so {
|
|
|
1205
1009
|
const n = t;
|
|
1206
1010
|
for (; t < e.length; ) {
|
|
1207
1011
|
const r = e.charCodeAt(t);
|
|
1208
|
-
if (
|
|
1012
|
+
if (n0(r))
|
|
1209
1013
|
t += 1;
|
|
1210
1014
|
else
|
|
1211
1015
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1229,11 +1033,11 @@ class so {
|
|
|
1229
1033
|
var n;
|
|
1230
1034
|
if (this.consumed <= t)
|
|
1231
1035
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1232
|
-
if (e ===
|
|
1036
|
+
if (e === P.SEMI)
|
|
1233
1037
|
this.consumed += 1;
|
|
1234
1038
|
else if (this.decodeMode === bu.Strict)
|
|
1235
1039
|
return 0;
|
|
1236
|
-
return this.emitCodePoint(
|
|
1040
|
+
return this.emitCodePoint(jr(this.result), this.consumed), this.errors && (e !== P.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1237
1041
|
}
|
|
1238
1042
|
/**
|
|
1239
1043
|
* Parses a named entity.
|
|
@@ -1249,13 +1053,13 @@ class so {
|
|
|
1249
1053
|
let r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14;
|
|
1250
1054
|
for (; t < e.length; t++, this.excess++) {
|
|
1251
1055
|
const i = e.charCodeAt(t);
|
|
1252
|
-
if (this.treeIndex =
|
|
1056
|
+
if (this.treeIndex = Xr(n, r, this.treeIndex + Math.max(1, o), i), this.treeIndex < 0)
|
|
1253
1057
|
return this.result === 0 || // If we are parsing an attribute
|
|
1254
1058
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1255
1059
|
(o === 0 || // And there should be no invalid characters.
|
|
1256
|
-
|
|
1060
|
+
Vr(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1257
1061
|
if (r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1258
|
-
if (i ===
|
|
1062
|
+
if (i === P.SEMI)
|
|
1259
1063
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1260
1064
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1261
1065
|
}
|
|
@@ -1295,22 +1099,22 @@ class so {
|
|
|
1295
1099
|
end() {
|
|
1296
1100
|
var e;
|
|
1297
1101
|
switch (this.state) {
|
|
1298
|
-
case
|
|
1102
|
+
case B.NamedEntity:
|
|
1299
1103
|
return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1300
|
-
case
|
|
1104
|
+
case B.NumericDecimal:
|
|
1301
1105
|
return this.emitNumericEntity(0, 2);
|
|
1302
|
-
case
|
|
1106
|
+
case B.NumericHex:
|
|
1303
1107
|
return this.emitNumericEntity(0, 3);
|
|
1304
|
-
case
|
|
1108
|
+
case B.NumericStart:
|
|
1305
1109
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1306
|
-
case
|
|
1110
|
+
case B.EntityStart:
|
|
1307
1111
|
return 0;
|
|
1308
1112
|
}
|
|
1309
1113
|
}
|
|
1310
1114
|
}
|
|
1311
|
-
function
|
|
1115
|
+
function Ot(u) {
|
|
1312
1116
|
let e = "";
|
|
1313
|
-
const t = new
|
|
1117
|
+
const t = new Yr(u, (n) => e += $r(n));
|
|
1314
1118
|
return function(r, o) {
|
|
1315
1119
|
let i = 0, c = 0;
|
|
1316
1120
|
for (; (c = r.indexOf("&", c)) >= 0; ) {
|
|
@@ -1330,7 +1134,7 @@ function Pt(u) {
|
|
|
1330
1134
|
return e = "", a;
|
|
1331
1135
|
};
|
|
1332
1136
|
}
|
|
1333
|
-
function
|
|
1137
|
+
function Xr(u, e, t, n) {
|
|
1334
1138
|
const r = (e & _u.BRANCH_LENGTH) >> 7, o = e & _u.JUMP_TABLE;
|
|
1335
1139
|
if (r === 0)
|
|
1336
1140
|
return o !== 0 && n === o ? t : -1;
|
|
@@ -1350,22 +1154,22 @@ function lo(u, e, t, n) {
|
|
|
1350
1154
|
}
|
|
1351
1155
|
return -1;
|
|
1352
1156
|
}
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1157
|
+
const Jr = Ot(qr);
|
|
1158
|
+
Ot(Ur);
|
|
1159
|
+
function Nt(u, e = bu.Legacy) {
|
|
1160
|
+
return Jr(u, e);
|
|
1357
1161
|
}
|
|
1358
|
-
function
|
|
1162
|
+
function Qr(u) {
|
|
1359
1163
|
return Object.prototype.toString.call(u);
|
|
1360
1164
|
}
|
|
1361
1165
|
function h0(u) {
|
|
1362
|
-
return
|
|
1166
|
+
return Qr(u) === "[object String]";
|
|
1363
1167
|
}
|
|
1364
|
-
const
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1168
|
+
const Kr = Object.prototype.hasOwnProperty;
|
|
1169
|
+
function uo(u, e) {
|
|
1170
|
+
return Kr.call(u, e);
|
|
1367
1171
|
}
|
|
1368
|
-
function
|
|
1172
|
+
function Fe(u) {
|
|
1369
1173
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1370
1174
|
if (t) {
|
|
1371
1175
|
if (typeof t != "object")
|
|
@@ -1376,13 +1180,13 @@ function we(u) {
|
|
|
1376
1180
|
}
|
|
1377
1181
|
}), u;
|
|
1378
1182
|
}
|
|
1379
|
-
function
|
|
1183
|
+
function Bt(u, e, t) {
|
|
1380
1184
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1381
1185
|
}
|
|
1382
|
-
function
|
|
1186
|
+
function p0(u) {
|
|
1383
1187
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
|
1384
1188
|
}
|
|
1385
|
-
function
|
|
1189
|
+
function De(u) {
|
|
1386
1190
|
if (u > 65535) {
|
|
1387
1191
|
u -= 65536;
|
|
1388
1192
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -1390,38 +1194,38 @@ function Fe(u) {
|
|
|
1390
1194
|
}
|
|
1391
1195
|
return String.fromCharCode(u);
|
|
1392
1196
|
}
|
|
1393
|
-
const
|
|
1394
|
-
function
|
|
1395
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1197
|
+
const Pt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, eo = /&([a-z#][a-z0-9]{1,31});/gi, to = new RegExp(Pt.source + "|" + eo.source, "gi"), no = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1198
|
+
function ro(u, e) {
|
|
1199
|
+
if (e.charCodeAt(0) === 35 && no.test(e)) {
|
|
1396
1200
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1397
|
-
return
|
|
1201
|
+
return p0(n) ? De(n) : u;
|
|
1398
1202
|
}
|
|
1399
|
-
const t =
|
|
1203
|
+
const t = Nt(u);
|
|
1400
1204
|
return t !== u ? t : u;
|
|
1401
1205
|
}
|
|
1402
|
-
function
|
|
1403
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1206
|
+
function oo(u) {
|
|
1207
|
+
return u.indexOf("\\") < 0 ? u : u.replace(Pt, "$1");
|
|
1404
1208
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1407
|
-
return t ||
|
|
1209
|
+
function Bu(u) {
|
|
1210
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(to, function(e, t, n) {
|
|
1211
|
+
return t || ro(e, n);
|
|
1408
1212
|
});
|
|
1409
1213
|
}
|
|
1410
|
-
const
|
|
1214
|
+
const co = /[&<>"]/, io = /[&<>"]/g, ao = {
|
|
1411
1215
|
"&": "&",
|
|
1412
1216
|
"<": "<",
|
|
1413
1217
|
">": ">",
|
|
1414
1218
|
'"': """
|
|
1415
1219
|
};
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1220
|
+
function so(u) {
|
|
1221
|
+
return ao[u];
|
|
1418
1222
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1223
|
+
function xu(u) {
|
|
1224
|
+
return co.test(u) ? u.replace(io, so) : u;
|
|
1421
1225
|
}
|
|
1422
|
-
const
|
|
1423
|
-
function
|
|
1424
|
-
return u.replace(
|
|
1226
|
+
const lo = /[.?*+^$[\]\\(){}|-]/g;
|
|
1227
|
+
function fo(u) {
|
|
1228
|
+
return u.replace(lo, "\\$&");
|
|
1425
1229
|
}
|
|
1426
1230
|
function w(u) {
|
|
1427
1231
|
switch (u) {
|
|
@@ -1431,7 +1235,7 @@ function w(u) {
|
|
|
1431
1235
|
}
|
|
1432
1236
|
return !1;
|
|
1433
1237
|
}
|
|
1434
|
-
function
|
|
1238
|
+
function Qu(u) {
|
|
1435
1239
|
if (u >= 8192 && u <= 8202)
|
|
1436
1240
|
return !0;
|
|
1437
1241
|
switch (u) {
|
|
@@ -1450,10 +1254,10 @@ function re(u) {
|
|
|
1450
1254
|
}
|
|
1451
1255
|
return !1;
|
|
1452
1256
|
}
|
|
1453
|
-
function
|
|
1454
|
-
return
|
|
1257
|
+
function Ku(u) {
|
|
1258
|
+
return d0.test(u) || Mt.test(u);
|
|
1455
1259
|
}
|
|
1456
|
-
function
|
|
1260
|
+
function ue(u) {
|
|
1457
1261
|
switch (u) {
|
|
1458
1262
|
case 33:
|
|
1459
1263
|
case 34:
|
|
@@ -1492,29 +1296,29 @@ function ce(u) {
|
|
|
1492
1296
|
return !1;
|
|
1493
1297
|
}
|
|
1494
1298
|
}
|
|
1495
|
-
function
|
|
1299
|
+
function Te(u) {
|
|
1496
1300
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1497
1301
|
}
|
|
1498
|
-
const
|
|
1302
|
+
const ho = { mdurl: Br, ucmicro: zr }, po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1499
1303
|
__proto__: null,
|
|
1500
|
-
arrayReplaceAt:
|
|
1501
|
-
assign:
|
|
1502
|
-
escapeHtml:
|
|
1503
|
-
escapeRE:
|
|
1504
|
-
fromCodePoint:
|
|
1505
|
-
has:
|
|
1506
|
-
isMdAsciiPunct:
|
|
1507
|
-
isPunctChar:
|
|
1304
|
+
arrayReplaceAt: Bt,
|
|
1305
|
+
assign: Fe,
|
|
1306
|
+
escapeHtml: xu,
|
|
1307
|
+
escapeRE: fo,
|
|
1308
|
+
fromCodePoint: De,
|
|
1309
|
+
has: uo,
|
|
1310
|
+
isMdAsciiPunct: ue,
|
|
1311
|
+
isPunctChar: Ku,
|
|
1508
1312
|
isSpace: w,
|
|
1509
1313
|
isString: h0,
|
|
1510
|
-
isValidEntityCode:
|
|
1511
|
-
isWhiteSpace:
|
|
1512
|
-
lib:
|
|
1513
|
-
normalizeReference:
|
|
1514
|
-
unescapeAll:
|
|
1515
|
-
unescapeMd:
|
|
1314
|
+
isValidEntityCode: p0,
|
|
1315
|
+
isWhiteSpace: Qu,
|
|
1316
|
+
lib: ho,
|
|
1317
|
+
normalizeReference: Te,
|
|
1318
|
+
unescapeAll: Bu,
|
|
1319
|
+
unescapeMd: oo
|
|
1516
1320
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1517
|
-
function
|
|
1321
|
+
function bo(u, e, t) {
|
|
1518
1322
|
let n, r, o, i;
|
|
1519
1323
|
const c = u.posMax, a = u.pos;
|
|
1520
1324
|
for (u.pos = e + 1, n = 1; u.pos < c; ) {
|
|
@@ -1532,7 +1336,7 @@ function wo(u, e, t) {
|
|
|
1532
1336
|
let s = -1;
|
|
1533
1337
|
return r && (s = u.pos), u.pos = a, s;
|
|
1534
1338
|
}
|
|
1535
|
-
function
|
|
1339
|
+
function _o(u, e, t) {
|
|
1536
1340
|
let n, r = e;
|
|
1537
1341
|
const o = {
|
|
1538
1342
|
ok: !1,
|
|
@@ -1544,7 +1348,7 @@ function vo(u, e, t) {
|
|
|
1544
1348
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1545
1349
|
return o;
|
|
1546
1350
|
if (n === 62)
|
|
1547
|
-
return o.pos = r + 1, o.str =
|
|
1351
|
+
return o.pos = r + 1, o.str = Bu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1548
1352
|
if (n === 92 && r + 1 < t) {
|
|
1549
1353
|
r += 2;
|
|
1550
1354
|
continue;
|
|
@@ -1570,9 +1374,9 @@ function vo(u, e, t) {
|
|
|
1570
1374
|
}
|
|
1571
1375
|
r++;
|
|
1572
1376
|
}
|
|
1573
|
-
return e === r || i !== 0 || (o.str =
|
|
1377
|
+
return e === r || i !== 0 || (o.str = Bu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1574
1378
|
}
|
|
1575
|
-
function
|
|
1379
|
+
function mo(u, e, t, n) {
|
|
1576
1380
|
let r, o = e;
|
|
1577
1381
|
const i = {
|
|
1578
1382
|
// if `true`, this is a valid link title
|
|
@@ -1598,44 +1402,44 @@ function Ro(u, e, t, n) {
|
|
|
1598
1402
|
}
|
|
1599
1403
|
for (; o < t; ) {
|
|
1600
1404
|
if (r = u.charCodeAt(o), r === i.marker)
|
|
1601
|
-
return i.pos = o + 1, i.str +=
|
|
1405
|
+
return i.pos = o + 1, i.str += Bu(u.slice(e, o)), i.ok = !0, i;
|
|
1602
1406
|
if (r === 40 && i.marker === 41)
|
|
1603
1407
|
return i;
|
|
1604
1408
|
r === 92 && o + 1 < t && o++, o++;
|
|
1605
1409
|
}
|
|
1606
|
-
return i.can_continue = !0, i.str +=
|
|
1410
|
+
return i.can_continue = !0, i.str += Bu(u.slice(e, o)), i;
|
|
1607
1411
|
}
|
|
1608
|
-
const
|
|
1412
|
+
const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1609
1413
|
__proto__: null,
|
|
1610
|
-
parseLinkDestination:
|
|
1611
|
-
parseLinkLabel:
|
|
1612
|
-
parseLinkTitle:
|
|
1414
|
+
parseLinkDestination: _o,
|
|
1415
|
+
parseLinkLabel: bo,
|
|
1416
|
+
parseLinkTitle: mo
|
|
1613
1417
|
}, Symbol.toStringTag, { value: "Module" })), iu = {};
|
|
1614
1418
|
iu.code_inline = function(u, e, t, n, r) {
|
|
1615
1419
|
const o = u[e];
|
|
1616
|
-
return "<code" + r.renderAttrs(o) + ">" +
|
|
1420
|
+
return "<code" + r.renderAttrs(o) + ">" + xu(o.content) + "</code>";
|
|
1617
1421
|
};
|
|
1618
1422
|
iu.code_block = function(u, e, t, n, r) {
|
|
1619
1423
|
const o = u[e];
|
|
1620
|
-
return "<pre" + r.renderAttrs(o) + "><code>" +
|
|
1424
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + xu(u[e].content) + `</code></pre>
|
|
1621
1425
|
`;
|
|
1622
1426
|
};
|
|
1623
1427
|
iu.fence = function(u, e, t, n, r) {
|
|
1624
|
-
const o = u[e], i = o.info ?
|
|
1428
|
+
const o = u[e], i = o.info ? Bu(o.info).trim() : "";
|
|
1625
1429
|
let c = "", a = "";
|
|
1626
1430
|
if (i) {
|
|
1627
|
-
const
|
|
1628
|
-
c =
|
|
1431
|
+
const d = i.split(/(\s+)/g);
|
|
1432
|
+
c = d[0], a = d.slice(2).join("");
|
|
1629
1433
|
}
|
|
1630
1434
|
let s;
|
|
1631
|
-
if (t.highlight ? s = t.highlight(o.content, c, a) ||
|
|
1435
|
+
if (t.highlight ? s = t.highlight(o.content, c, a) || xu(o.content) : s = xu(o.content), s.indexOf("<pre") === 0)
|
|
1632
1436
|
return s + `
|
|
1633
1437
|
`;
|
|
1634
1438
|
if (i) {
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1439
|
+
const d = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
|
|
1440
|
+
d < 0 ? f.push(["class", t.langPrefix + c]) : (f[d] = f[d].slice(), f[d][1] += " " + t.langPrefix + c);
|
|
1637
1441
|
const _ = {
|
|
1638
|
-
attrs:
|
|
1442
|
+
attrs: f
|
|
1639
1443
|
};
|
|
1640
1444
|
return `<pre><code${r.renderAttrs(_)}>${s}</code></pre>
|
|
1641
1445
|
`;
|
|
@@ -1659,7 +1463,7 @@ iu.softbreak = function(u, e, t) {
|
|
|
1659
1463
|
`;
|
|
1660
1464
|
};
|
|
1661
1465
|
iu.text = function(u, e) {
|
|
1662
|
-
return
|
|
1466
|
+
return xu(u[e].content);
|
|
1663
1467
|
};
|
|
1664
1468
|
iu.html_block = function(u, e) {
|
|
1665
1469
|
return u[e].content;
|
|
@@ -1667,18 +1471,18 @@ iu.html_block = function(u, e) {
|
|
|
1667
1471
|
iu.html_inline = function(u, e) {
|
|
1668
1472
|
return u[e].content;
|
|
1669
1473
|
};
|
|
1670
|
-
function
|
|
1671
|
-
this.rules =
|
|
1474
|
+
function Pu() {
|
|
1475
|
+
this.rules = Fe({}, iu);
|
|
1672
1476
|
}
|
|
1673
|
-
|
|
1477
|
+
Pu.prototype.renderAttrs = function(e) {
|
|
1674
1478
|
let t, n, r;
|
|
1675
1479
|
if (!e.attrs)
|
|
1676
1480
|
return "";
|
|
1677
1481
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
1678
|
-
r += " " +
|
|
1482
|
+
r += " " + xu(e.attrs[t][0]) + '="' + xu(e.attrs[t][1]) + '"';
|
|
1679
1483
|
return r;
|
|
1680
1484
|
};
|
|
1681
|
-
|
|
1485
|
+
Pu.prototype.renderToken = function(e, t, n) {
|
|
1682
1486
|
const r = e[t];
|
|
1683
1487
|
let o = "";
|
|
1684
1488
|
if (r.hidden)
|
|
@@ -1693,7 +1497,7 @@ Hu.prototype.renderToken = function(e, t, n) {
|
|
|
1693
1497
|
return o += i ? `>
|
|
1694
1498
|
` : ">", o;
|
|
1695
1499
|
};
|
|
1696
|
-
|
|
1500
|
+
Pu.prototype.renderInline = function(u, e, t) {
|
|
1697
1501
|
let n = "";
|
|
1698
1502
|
const r = this.rules;
|
|
1699
1503
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1702,7 +1506,7 @@ Hu.prototype.renderInline = function(u, e, t) {
|
|
|
1702
1506
|
}
|
|
1703
1507
|
return n;
|
|
1704
1508
|
};
|
|
1705
|
-
|
|
1509
|
+
Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1706
1510
|
let n = "";
|
|
1707
1511
|
for (let r = 0, o = u.length; r < o; r++)
|
|
1708
1512
|
switch (u[r].type) {
|
|
@@ -1724,7 +1528,7 @@ Hu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1724
1528
|
}
|
|
1725
1529
|
return n;
|
|
1726
1530
|
};
|
|
1727
|
-
|
|
1531
|
+
Pu.prototype.render = function(u, e, t) {
|
|
1728
1532
|
let n = "";
|
|
1729
1533
|
const r = this.rules;
|
|
1730
1534
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1733,16 +1537,16 @@ Hu.prototype.render = function(u, e, t) {
|
|
|
1733
1537
|
}
|
|
1734
1538
|
return n;
|
|
1735
1539
|
};
|
|
1736
|
-
function
|
|
1540
|
+
function Z() {
|
|
1737
1541
|
this.__rules__ = [], this.__cache__ = null;
|
|
1738
1542
|
}
|
|
1739
|
-
|
|
1543
|
+
Z.prototype.__find__ = function(u) {
|
|
1740
1544
|
for (let e = 0; e < this.__rules__.length; e++)
|
|
1741
1545
|
if (this.__rules__[e].name === u)
|
|
1742
1546
|
return e;
|
|
1743
1547
|
return -1;
|
|
1744
1548
|
};
|
|
1745
|
-
|
|
1549
|
+
Z.prototype.__compile__ = function() {
|
|
1746
1550
|
const u = this, e = [""];
|
|
1747
1551
|
u.__rules__.forEach(function(t) {
|
|
1748
1552
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -1754,13 +1558,13 @@ V.prototype.__compile__ = function() {
|
|
|
1754
1558
|
});
|
|
1755
1559
|
});
|
|
1756
1560
|
};
|
|
1757
|
-
|
|
1561
|
+
Z.prototype.at = function(u, e, t) {
|
|
1758
1562
|
const n = this.__find__(u), r = t || {};
|
|
1759
1563
|
if (n === -1)
|
|
1760
1564
|
throw new Error("Parser rule not found: " + u);
|
|
1761
1565
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1762
1566
|
};
|
|
1763
|
-
|
|
1567
|
+
Z.prototype.before = function(u, e, t, n) {
|
|
1764
1568
|
const r = this.__find__(u), o = n || {};
|
|
1765
1569
|
if (r === -1)
|
|
1766
1570
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1771,7 +1575,7 @@ V.prototype.before = function(u, e, t, n) {
|
|
|
1771
1575
|
alt: o.alt || []
|
|
1772
1576
|
}), this.__cache__ = null;
|
|
1773
1577
|
};
|
|
1774
|
-
|
|
1578
|
+
Z.prototype.after = function(u, e, t, n) {
|
|
1775
1579
|
const r = this.__find__(u), o = n || {};
|
|
1776
1580
|
if (r === -1)
|
|
1777
1581
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1782,7 +1586,7 @@ V.prototype.after = function(u, e, t, n) {
|
|
|
1782
1586
|
alt: o.alt || []
|
|
1783
1587
|
}), this.__cache__ = null;
|
|
1784
1588
|
};
|
|
1785
|
-
|
|
1589
|
+
Z.prototype.push = function(u, e, t) {
|
|
1786
1590
|
const n = t || {};
|
|
1787
1591
|
this.__rules__.push({
|
|
1788
1592
|
name: u,
|
|
@@ -1791,7 +1595,7 @@ V.prototype.push = function(u, e, t) {
|
|
|
1791
1595
|
alt: n.alt || []
|
|
1792
1596
|
}), this.__cache__ = null;
|
|
1793
1597
|
};
|
|
1794
|
-
|
|
1598
|
+
Z.prototype.enable = function(u, e) {
|
|
1795
1599
|
Array.isArray(u) || (u = [u]);
|
|
1796
1600
|
const t = [];
|
|
1797
1601
|
return u.forEach(function(n) {
|
|
@@ -1804,12 +1608,12 @@ V.prototype.enable = function(u, e) {
|
|
|
1804
1608
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
1805
1609
|
}, this), this.__cache__ = null, t;
|
|
1806
1610
|
};
|
|
1807
|
-
|
|
1611
|
+
Z.prototype.enableOnly = function(u, e) {
|
|
1808
1612
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
|
1809
1613
|
t.enabled = !1;
|
|
1810
1614
|
}), this.enable(u, e);
|
|
1811
1615
|
};
|
|
1812
|
-
|
|
1616
|
+
Z.prototype.disable = function(u, e) {
|
|
1813
1617
|
Array.isArray(u) || (u = [u]);
|
|
1814
1618
|
const t = [];
|
|
1815
1619
|
return u.forEach(function(n) {
|
|
@@ -1822,13 +1626,13 @@ V.prototype.disable = function(u, e) {
|
|
|
1822
1626
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
1823
1627
|
}, this), this.__cache__ = null, t;
|
|
1824
1628
|
};
|
|
1825
|
-
|
|
1629
|
+
Z.prototype.getRules = function(u) {
|
|
1826
1630
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1827
1631
|
};
|
|
1828
|
-
function
|
|
1632
|
+
function tu(u, e, t) {
|
|
1829
1633
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1830
1634
|
}
|
|
1831
|
-
|
|
1635
|
+
tu.prototype.attrIndex = function(e) {
|
|
1832
1636
|
if (!this.attrs)
|
|
1833
1637
|
return -1;
|
|
1834
1638
|
const t = this.attrs;
|
|
@@ -1837,50 +1641,50 @@ eu.prototype.attrIndex = function(e) {
|
|
|
1837
1641
|
return n;
|
|
1838
1642
|
return -1;
|
|
1839
1643
|
};
|
|
1840
|
-
|
|
1644
|
+
tu.prototype.attrPush = function(e) {
|
|
1841
1645
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1842
1646
|
};
|
|
1843
|
-
|
|
1647
|
+
tu.prototype.attrSet = function(e, t) {
|
|
1844
1648
|
const n = this.attrIndex(e), r = [e, t];
|
|
1845
1649
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1846
1650
|
};
|
|
1847
|
-
|
|
1651
|
+
tu.prototype.attrGet = function(e) {
|
|
1848
1652
|
const t = this.attrIndex(e);
|
|
1849
1653
|
let n = null;
|
|
1850
1654
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1851
1655
|
};
|
|
1852
|
-
|
|
1656
|
+
tu.prototype.attrJoin = function(e, t) {
|
|
1853
1657
|
const n = this.attrIndex(e);
|
|
1854
1658
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1855
1659
|
};
|
|
1856
|
-
function
|
|
1660
|
+
function zt(u, e, t) {
|
|
1857
1661
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1858
1662
|
}
|
|
1859
|
-
|
|
1860
|
-
const
|
|
1861
|
-
function
|
|
1663
|
+
zt.prototype.Token = tu;
|
|
1664
|
+
const go = /\r\n?|\n/g, ko = /\0/g;
|
|
1665
|
+
function Eo(u) {
|
|
1862
1666
|
let e;
|
|
1863
|
-
e = u.src.replace(
|
|
1864
|
-
`), e = e.replace(
|
|
1667
|
+
e = u.src.replace(go, `
|
|
1668
|
+
`), e = e.replace(ko, "�"), u.src = e;
|
|
1865
1669
|
}
|
|
1866
|
-
function
|
|
1670
|
+
function Ao(u) {
|
|
1867
1671
|
let e;
|
|
1868
1672
|
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
1673
|
}
|
|
1870
|
-
function
|
|
1674
|
+
function Co(u) {
|
|
1871
1675
|
const e = u.tokens;
|
|
1872
1676
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1873
1677
|
const r = e[t];
|
|
1874
1678
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1875
1679
|
}
|
|
1876
1680
|
}
|
|
1877
|
-
function
|
|
1681
|
+
function Do(u) {
|
|
1878
1682
|
return /^<a[>\s]/i.test(u);
|
|
1879
1683
|
}
|
|
1880
|
-
function
|
|
1684
|
+
function yo(u) {
|
|
1881
1685
|
return /^<\/a\s*>/i.test(u);
|
|
1882
1686
|
}
|
|
1883
|
-
function
|
|
1687
|
+
function Fo(u) {
|
|
1884
1688
|
const e = u.tokens;
|
|
1885
1689
|
if (u.md.options.linkify)
|
|
1886
1690
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
@@ -1894,72 +1698,72 @@ function qo(u) {
|
|
|
1894
1698
|
i--;
|
|
1895
1699
|
continue;
|
|
1896
1700
|
}
|
|
1897
|
-
if (c.type === "html_inline" && (
|
|
1701
|
+
if (c.type === "html_inline" && (Do(c.content) && o > 0 && o--, yo(c.content) && o++), !(o > 0) && c.type === "text" && u.md.linkify.test(c.content)) {
|
|
1898
1702
|
const a = c.content;
|
|
1899
1703
|
let s = u.md.linkify.match(a);
|
|
1900
|
-
const
|
|
1901
|
-
let
|
|
1704
|
+
const d = [];
|
|
1705
|
+
let f = c.level, _ = 0;
|
|
1902
1706
|
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1903
|
-
for (let
|
|
1904
|
-
const
|
|
1707
|
+
for (let p = 0; p < s.length; p++) {
|
|
1708
|
+
const h = s[p].url, C = u.md.normalizeLink(h);
|
|
1905
1709
|
if (!u.md.validateLink(C))
|
|
1906
1710
|
continue;
|
|
1907
|
-
let D = s[
|
|
1908
|
-
s[
|
|
1909
|
-
const
|
|
1910
|
-
if (
|
|
1711
|
+
let D = s[p].text;
|
|
1712
|
+
s[p].schema ? s[p].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:\/\//, "");
|
|
1713
|
+
const T = s[p].index;
|
|
1714
|
+
if (T > _) {
|
|
1911
1715
|
const A = new u.Token("text", "", 0);
|
|
1912
|
-
A.content = a.slice(_,
|
|
1716
|
+
A.content = a.slice(_, T), A.level = f, d.push(A);
|
|
1913
1717
|
}
|
|
1914
1718
|
const E = new u.Token("link_open", "a", 1);
|
|
1915
|
-
E.attrs = [["href", C]], E.level =
|
|
1719
|
+
E.attrs = [["href", C]], E.level = f++, E.markup = "linkify", E.info = "auto", d.push(E);
|
|
1916
1720
|
const k = new u.Token("text", "", 0);
|
|
1917
|
-
k.content = D, k.level =
|
|
1721
|
+
k.content = D, k.level = f, d.push(k);
|
|
1918
1722
|
const m = new u.Token("link_close", "a", -1);
|
|
1919
|
-
m.level = --
|
|
1723
|
+
m.level = --f, m.markup = "linkify", m.info = "auto", d.push(m), _ = s[p].lastIndex;
|
|
1920
1724
|
}
|
|
1921
1725
|
if (_ < a.length) {
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1726
|
+
const p = new u.Token("text", "", 0);
|
|
1727
|
+
p.content = a.slice(_), p.level = f, d.push(p);
|
|
1924
1728
|
}
|
|
1925
|
-
e[t].children = r =
|
|
1729
|
+
e[t].children = r = Bt(r, i, d);
|
|
1926
1730
|
}
|
|
1927
1731
|
}
|
|
1928
1732
|
}
|
|
1929
1733
|
}
|
|
1930
|
-
const
|
|
1734
|
+
const qt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, To = /\((c|tm|r)\)/i, So = /\((c|tm|r)\)/ig, wo = {
|
|
1931
1735
|
c: "©",
|
|
1932
1736
|
r: "®",
|
|
1933
1737
|
tm: "™"
|
|
1934
1738
|
};
|
|
1935
|
-
function
|
|
1936
|
-
return
|
|
1739
|
+
function vo(u, e) {
|
|
1740
|
+
return wo[e.toLowerCase()];
|
|
1937
1741
|
}
|
|
1938
|
-
function
|
|
1742
|
+
function Ro(u) {
|
|
1939
1743
|
let e = 0;
|
|
1940
1744
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1941
1745
|
const n = u[t];
|
|
1942
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1746
|
+
n.type === "text" && !e && (n.content = n.content.replace(So, vo)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1943
1747
|
}
|
|
1944
1748
|
}
|
|
1945
|
-
function
|
|
1749
|
+
function Io(u) {
|
|
1946
1750
|
let e = 0;
|
|
1947
1751
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1948
1752
|
const n = u[t];
|
|
1949
|
-
n.type === "text" && !e &&
|
|
1753
|
+
n.type === "text" && !e && qt.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
1754
|
}
|
|
1951
1755
|
}
|
|
1952
|
-
function
|
|
1756
|
+
function Mo(u) {
|
|
1953
1757
|
let e;
|
|
1954
1758
|
if (u.md.options.typographer)
|
|
1955
1759
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1956
|
-
u.tokens[e].type === "inline" && (
|
|
1760
|
+
u.tokens[e].type === "inline" && (To.test(u.tokens[e].content) && Ro(u.tokens[e].children), qt.test(u.tokens[e].content) && Io(u.tokens[e].children));
|
|
1957
1761
|
}
|
|
1958
|
-
const
|
|
1959
|
-
function
|
|
1762
|
+
const Lo = /['"]/, ft = /['"]/g, dt = "’";
|
|
1763
|
+
function me(u, e, t) {
|
|
1960
1764
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1961
1765
|
}
|
|
1962
|
-
function
|
|
1766
|
+
function Oo(u, e) {
|
|
1963
1767
|
let t;
|
|
1964
1768
|
const n = [];
|
|
1965
1769
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -1972,19 +1776,19 @@ function Yo(u, e) {
|
|
|
1972
1776
|
u:
|
|
1973
1777
|
for (; a < s; ) {
|
|
1974
1778
|
ft.lastIndex = a;
|
|
1975
|
-
const
|
|
1976
|
-
if (!
|
|
1779
|
+
const d = ft.exec(c);
|
|
1780
|
+
if (!d)
|
|
1977
1781
|
break;
|
|
1978
|
-
let
|
|
1979
|
-
a =
|
|
1980
|
-
const
|
|
1981
|
-
let
|
|
1982
|
-
if (
|
|
1983
|
-
|
|
1782
|
+
let f = !0, _ = !0;
|
|
1783
|
+
a = d.index + 1;
|
|
1784
|
+
const p = d[0] === "'";
|
|
1785
|
+
let h = 32;
|
|
1786
|
+
if (d.index - 1 >= 0)
|
|
1787
|
+
h = c.charCodeAt(d.index - 1);
|
|
1984
1788
|
else
|
|
1985
1789
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1986
1790
|
if (u[t].content) {
|
|
1987
|
-
|
|
1791
|
+
h = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1988
1792
|
break;
|
|
1989
1793
|
}
|
|
1990
1794
|
let C = 32;
|
|
@@ -1996,9 +1800,9 @@ function Yo(u, e) {
|
|
|
1996
1800
|
C = u[t].content.charCodeAt(0);
|
|
1997
1801
|
break;
|
|
1998
1802
|
}
|
|
1999
|
-
const D =
|
|
2000
|
-
if (k ?
|
|
2001
|
-
|
|
1803
|
+
const D = ue(h) || Ku(String.fromCharCode(h)), T = ue(C) || Ku(String.fromCharCode(C)), E = Qu(h), k = Qu(C);
|
|
1804
|
+
if (k ? f = !1 : T && (E || D || (f = !1)), E ? _ = !1 : D && (k || T || (_ = !1)), C === 34 && d[0] === '"' && h >= 48 && h <= 57 && (_ = f = !1), f && _ && (f = D, _ = T), !f && !_) {
|
|
1805
|
+
p && (o.content = me(o.content, d.index, dt));
|
|
2002
1806
|
continue;
|
|
2003
1807
|
}
|
|
2004
1808
|
if (_)
|
|
@@ -2006,10 +1810,10 @@ function Yo(u, e) {
|
|
|
2006
1810
|
let m = n[t];
|
|
2007
1811
|
if (n[t].level < i)
|
|
2008
1812
|
break;
|
|
2009
|
-
if (m.single ===
|
|
1813
|
+
if (m.single === p && n[t].level === i) {
|
|
2010
1814
|
m = n[t];
|
|
2011
1815
|
let A, y;
|
|
2012
|
-
|
|
1816
|
+
p ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), o.content = me(o.content, d.index, y), u[m.token].content = me(
|
|
2013
1817
|
u[m.token].content,
|
|
2014
1818
|
m.pos,
|
|
2015
1819
|
A
|
|
@@ -2017,21 +1821,21 @@ function Yo(u, e) {
|
|
|
2017
1821
|
continue u;
|
|
2018
1822
|
}
|
|
2019
1823
|
}
|
|
2020
|
-
|
|
1824
|
+
f ? n.push({
|
|
2021
1825
|
token: r,
|
|
2022
|
-
pos:
|
|
2023
|
-
single:
|
|
1826
|
+
pos: d.index,
|
|
1827
|
+
single: p,
|
|
2024
1828
|
level: i
|
|
2025
|
-
}) : _ &&
|
|
1829
|
+
}) : _ && p && (o.content = me(o.content, d.index, dt));
|
|
2026
1830
|
}
|
|
2027
1831
|
}
|
|
2028
1832
|
}
|
|
2029
|
-
function
|
|
1833
|
+
function No(u) {
|
|
2030
1834
|
if (u.md.options.typographer)
|
|
2031
1835
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
2032
|
-
u.tokens[e].type !== "inline" || !
|
|
1836
|
+
u.tokens[e].type !== "inline" || !Lo.test(u.tokens[e].content) || Oo(u.tokens[e].children, u);
|
|
2033
1837
|
}
|
|
2034
|
-
function
|
|
1838
|
+
function Bo(u) {
|
|
2035
1839
|
let e, t;
|
|
2036
1840
|
const n = u.tokens, r = n.length;
|
|
2037
1841
|
for (let o = 0; o < r; o++) {
|
|
@@ -2044,45 +1848,45 @@ function Jo(u) {
|
|
|
2044
1848
|
e !== t && (i.length = t);
|
|
2045
1849
|
}
|
|
2046
1850
|
}
|
|
2047
|
-
const
|
|
2048
|
-
["normalize",
|
|
2049
|
-
["block",
|
|
2050
|
-
["inline",
|
|
2051
|
-
["linkify",
|
|
2052
|
-
["replacements",
|
|
2053
|
-
["smartquotes",
|
|
1851
|
+
const Ve = [
|
|
1852
|
+
["normalize", Eo],
|
|
1853
|
+
["block", Ao],
|
|
1854
|
+
["inline", Co],
|
|
1855
|
+
["linkify", Fo],
|
|
1856
|
+
["replacements", Mo],
|
|
1857
|
+
["smartquotes", No],
|
|
2054
1858
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
2055
1859
|
// and joins them with the rest of the text
|
|
2056
|
-
["text_join",
|
|
1860
|
+
["text_join", Bo]
|
|
2057
1861
|
];
|
|
2058
|
-
function
|
|
2059
|
-
this.ruler = new
|
|
2060
|
-
for (let u = 0; u <
|
|
2061
|
-
this.ruler.push(
|
|
1862
|
+
function b0() {
|
|
1863
|
+
this.ruler = new Z();
|
|
1864
|
+
for (let u = 0; u < Ve.length; u++)
|
|
1865
|
+
this.ruler.push(Ve[u][0], Ve[u][1]);
|
|
2062
1866
|
}
|
|
2063
|
-
|
|
1867
|
+
b0.prototype.process = function(u) {
|
|
2064
1868
|
const e = this.ruler.getRules("");
|
|
2065
1869
|
for (let t = 0, n = e.length; t < n; t++)
|
|
2066
1870
|
e[t](u);
|
|
2067
1871
|
};
|
|
2068
|
-
|
|
1872
|
+
b0.prototype.State = zt;
|
|
2069
1873
|
function au(u, e, t, n) {
|
|
2070
1874
|
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
1875
|
const r = this.src;
|
|
2072
|
-
for (let o = 0, i = 0, c = 0, a = 0, s = r.length,
|
|
2073
|
-
const
|
|
2074
|
-
if (!
|
|
2075
|
-
if (w(
|
|
2076
|
-
c++,
|
|
1876
|
+
for (let o = 0, i = 0, c = 0, a = 0, s = r.length, d = !1; i < s; i++) {
|
|
1877
|
+
const f = r.charCodeAt(i);
|
|
1878
|
+
if (!d)
|
|
1879
|
+
if (w(f)) {
|
|
1880
|
+
c++, f === 9 ? a += 4 - a % 4 : a++;
|
|
2077
1881
|
continue;
|
|
2078
1882
|
} else
|
|
2079
|
-
|
|
2080
|
-
(
|
|
1883
|
+
d = !0;
|
|
1884
|
+
(f === 10 || i === s - 1) && (f !== 10 && i++, this.bMarks.push(o), this.eMarks.push(i), this.tShift.push(c), this.sCount.push(a), this.bsCount.push(0), d = !1, c = 0, a = 0, o = i + 1);
|
|
2081
1885
|
}
|
|
2082
1886
|
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
1887
|
}
|
|
2084
1888
|
au.prototype.push = function(u, e, t) {
|
|
2085
|
-
const n = new
|
|
1889
|
+
const n = new tu(u, e, t);
|
|
2086
1890
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2087
1891
|
};
|
|
2088
1892
|
au.prototype.isEmpty = function(e) {
|
|
@@ -2129,35 +1933,35 @@ au.prototype.getLines = function(e, t, n, r) {
|
|
|
2129
1933
|
for (let i = 0, c = e; c < t; c++, i++) {
|
|
2130
1934
|
let a = 0;
|
|
2131
1935
|
const s = this.bMarks[c];
|
|
2132
|
-
let
|
|
2133
|
-
for (c + 1 < t || r ?
|
|
2134
|
-
const _ = this.src.charCodeAt(
|
|
1936
|
+
let d = s, f;
|
|
1937
|
+
for (c + 1 < t || r ? f = this.eMarks[c] + 1 : f = this.eMarks[c]; d < f && a < n; ) {
|
|
1938
|
+
const _ = this.src.charCodeAt(d);
|
|
2135
1939
|
if (w(_))
|
|
2136
1940
|
_ === 9 ? a += 4 - (a + this.bsCount[c]) % 4 : a++;
|
|
2137
|
-
else if (
|
|
1941
|
+
else if (d - s < this.tShift[c])
|
|
2138
1942
|
a++;
|
|
2139
1943
|
else
|
|
2140
1944
|
break;
|
|
2141
|
-
|
|
1945
|
+
d++;
|
|
2142
1946
|
}
|
|
2143
|
-
a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(
|
|
1947
|
+
a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(d, f) : o[i] = this.src.slice(d, f);
|
|
2144
1948
|
}
|
|
2145
1949
|
return o.join("");
|
|
2146
1950
|
};
|
|
2147
|
-
au.prototype.Token =
|
|
2148
|
-
const
|
|
2149
|
-
function
|
|
1951
|
+
au.prototype.Token = tu;
|
|
1952
|
+
const Po = 65536;
|
|
1953
|
+
function Ye(u, e) {
|
|
2150
1954
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2151
1955
|
return u.src.slice(t, n);
|
|
2152
1956
|
}
|
|
2153
|
-
function
|
|
1957
|
+
function ht(u) {
|
|
2154
1958
|
const e = [], t = u.length;
|
|
2155
1959
|
let n = 0, r = u.charCodeAt(n), o = !1, i = 0, c = "";
|
|
2156
1960
|
for (; n < t; )
|
|
2157
1961
|
r === 124 && (o ? (c += u.substring(i, n - 1), i = n) : (e.push(c + u.substring(i, n)), c = "", i = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2158
1962
|
return e.push(c + u.substring(i)), e;
|
|
2159
1963
|
}
|
|
2160
|
-
function
|
|
1964
|
+
function zo(u, e, t, n) {
|
|
2161
1965
|
if (e + 2 > t)
|
|
2162
1966
|
return !1;
|
|
2163
1967
|
let r = e + 1;
|
|
@@ -2178,8 +1982,8 @@ function Ko(u, e, t, n) {
|
|
|
2178
1982
|
return !1;
|
|
2179
1983
|
o++;
|
|
2180
1984
|
}
|
|
2181
|
-
let a =
|
|
2182
|
-
const
|
|
1985
|
+
let a = Ye(u, e + 1), s = a.split("|");
|
|
1986
|
+
const d = [];
|
|
2183
1987
|
for (let m = 0; m < s.length; m++) {
|
|
2184
1988
|
const A = s[m].trim();
|
|
2185
1989
|
if (!A) {
|
|
@@ -2189,27 +1993,27 @@ function Ko(u, e, t, n) {
|
|
|
2189
1993
|
}
|
|
2190
1994
|
if (!/^:?-+:?$/.test(A))
|
|
2191
1995
|
return !1;
|
|
2192
|
-
A.charCodeAt(A.length - 1) === 58 ?
|
|
1996
|
+
A.charCodeAt(A.length - 1) === 58 ? d.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
2193
1997
|
}
|
|
2194
|
-
if (a =
|
|
1998
|
+
if (a = Ye(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2195
1999
|
return !1;
|
|
2196
|
-
s =
|
|
2197
|
-
const
|
|
2198
|
-
if (
|
|
2000
|
+
s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2001
|
+
const f = s.length;
|
|
2002
|
+
if (f === 0 || f !== d.length)
|
|
2199
2003
|
return !1;
|
|
2200
2004
|
if (n)
|
|
2201
2005
|
return !0;
|
|
2202
2006
|
const _ = u.parentType;
|
|
2203
2007
|
u.parentType = "table";
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2008
|
+
const p = u.md.block.ruler.getRules("blockquote"), h = u.push("table_open", "table", 1), C = [e, 0];
|
|
2009
|
+
h.map = C;
|
|
2206
2010
|
const D = u.push("thead_open", "thead", 1);
|
|
2207
2011
|
D.map = [e, e + 1];
|
|
2208
|
-
const
|
|
2209
|
-
|
|
2012
|
+
const T = u.push("tr_open", "tr", 1);
|
|
2013
|
+
T.map = [e, e + 1];
|
|
2210
2014
|
for (let m = 0; m < s.length; m++) {
|
|
2211
2015
|
const A = u.push("th_open", "th", 1);
|
|
2212
|
-
|
|
2016
|
+
d[m] && (A.attrs = [["style", "text-align:" + d[m]]]);
|
|
2213
2017
|
const y = u.push("inline", "", 0);
|
|
2214
2018
|
y.content = s[m].trim(), y.children = [], u.push("th_close", "th", -1);
|
|
2215
2019
|
}
|
|
@@ -2217,12 +2021,12 @@ function Ko(u, e, t, n) {
|
|
|
2217
2021
|
let E, k = 0;
|
|
2218
2022
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2219
2023
|
let m = !1;
|
|
2220
|
-
for (let y = 0,
|
|
2221
|
-
if (
|
|
2024
|
+
for (let y = 0, I = p.length; y < I; y++)
|
|
2025
|
+
if (p[y](u, r, t, !0)) {
|
|
2222
2026
|
m = !0;
|
|
2223
2027
|
break;
|
|
2224
2028
|
}
|
|
2225
|
-
if (m || (a =
|
|
2029
|
+
if (m || (a = Ye(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += f - s.length, k > Po))
|
|
2226
2030
|
break;
|
|
2227
2031
|
if (r === e + 2) {
|
|
2228
2032
|
const y = u.push("tbody_open", "tbody", 1);
|
|
@@ -2230,17 +2034,17 @@ function Ko(u, e, t, n) {
|
|
|
2230
2034
|
}
|
|
2231
2035
|
const A = u.push("tr_open", "tr", 1);
|
|
2232
2036
|
A.map = [r, r + 1];
|
|
2233
|
-
for (let y = 0; y <
|
|
2234
|
-
const
|
|
2235
|
-
|
|
2236
|
-
const
|
|
2237
|
-
|
|
2037
|
+
for (let y = 0; y < f; y++) {
|
|
2038
|
+
const I = u.push("td_open", "td", 1);
|
|
2039
|
+
d[y] && (I.attrs = [["style", "text-align:" + d[y]]]);
|
|
2040
|
+
const V = u.push("inline", "", 0);
|
|
2041
|
+
V.content = s[y] ? s[y].trim() : "", V.children = [], u.push("td_close", "td", -1);
|
|
2238
2042
|
}
|
|
2239
2043
|
u.push("tr_close", "tr", -1);
|
|
2240
2044
|
}
|
|
2241
2045
|
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = _, u.line = r, !0;
|
|
2242
2046
|
}
|
|
2243
|
-
function
|
|
2047
|
+
function qo(u, e, t) {
|
|
2244
2048
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2245
2049
|
return !1;
|
|
2246
2050
|
let n = e + 1, r = n;
|
|
@@ -2260,7 +2064,7 @@ function uc(u, e, t) {
|
|
|
2260
2064
|
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2261
2065
|
`, o.map = [e, u.line], !0;
|
|
2262
2066
|
}
|
|
2263
|
-
function
|
|
2067
|
+
function Uo(u, e, t, n) {
|
|
2264
2068
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2265
2069
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2266
2070
|
return !1;
|
|
@@ -2272,77 +2076,77 @@ function ec(u, e, t, n) {
|
|
|
2272
2076
|
let a = r - c;
|
|
2273
2077
|
if (a < 3)
|
|
2274
2078
|
return !1;
|
|
2275
|
-
const s = u.src.slice(c, r),
|
|
2276
|
-
if (i === 96 &&
|
|
2079
|
+
const s = u.src.slice(c, r), d = u.src.slice(r, o);
|
|
2080
|
+
if (i === 96 && d.indexOf(String.fromCharCode(i)) >= 0)
|
|
2277
2081
|
return !1;
|
|
2278
2082
|
if (n)
|
|
2279
2083
|
return !0;
|
|
2280
|
-
let
|
|
2281
|
-
for (;
|
|
2282
|
-
if (u.src.charCodeAt(r) === i && !(u.sCount[
|
|
2084
|
+
let f = e, _ = !1;
|
|
2085
|
+
for (; f++, !(f >= t || (r = c = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r < o && u.sCount[f] < u.blkIndent)); )
|
|
2086
|
+
if (u.src.charCodeAt(r) === i && !(u.sCount[f] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - c < a) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2283
2087
|
_ = !0;
|
|
2284
2088
|
break;
|
|
2285
2089
|
}
|
|
2286
|
-
a = u.sCount[e], u.line =
|
|
2287
|
-
const
|
|
2288
|
-
return
|
|
2090
|
+
a = u.sCount[e], u.line = f + (_ ? 1 : 0);
|
|
2091
|
+
const p = u.push("fence", "code", 0);
|
|
2092
|
+
return p.info = d, p.content = u.getLines(e + 1, f, a, !0), p.markup = s, p.map = [e, u.line], !0;
|
|
2289
2093
|
}
|
|
2290
|
-
function
|
|
2094
|
+
function Ho(u, e, t, n) {
|
|
2291
2095
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2292
2096
|
const i = u.lineMax;
|
|
2293
2097
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2294
2098
|
return !1;
|
|
2295
2099
|
if (n)
|
|
2296
2100
|
return !0;
|
|
2297
|
-
const c = [], a = [], s = [],
|
|
2101
|
+
const c = [], a = [], s = [], d = [], f = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2298
2102
|
u.parentType = "blockquote";
|
|
2299
|
-
let
|
|
2300
|
-
for (
|
|
2301
|
-
const k = u.sCount[
|
|
2302
|
-
if (r = u.bMarks[
|
|
2103
|
+
let p = !1, h;
|
|
2104
|
+
for (h = e; h < t; h++) {
|
|
2105
|
+
const k = u.sCount[h] < u.blkIndent;
|
|
2106
|
+
if (r = u.bMarks[h] + u.tShift[h], o = u.eMarks[h], r >= o)
|
|
2303
2107
|
break;
|
|
2304
2108
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2305
|
-
let A = u.sCount[
|
|
2306
|
-
u.src.charCodeAt(r) === 32 ? (r++, A++,
|
|
2307
|
-
let
|
|
2308
|
-
for (c.push(u.bMarks[
|
|
2309
|
-
const
|
|
2310
|
-
if (w(
|
|
2311
|
-
|
|
2109
|
+
let A = u.sCount[h] + 1, y, I;
|
|
2110
|
+
u.src.charCodeAt(r) === 32 ? (r++, A++, I = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[h] + A) % 4 === 3 ? (r++, A++, I = !1) : I = !0) : y = !1;
|
|
2111
|
+
let V = A;
|
|
2112
|
+
for (c.push(u.bMarks[h]), u.bMarks[h] = r; r < o; ) {
|
|
2113
|
+
const nu = u.src.charCodeAt(r);
|
|
2114
|
+
if (w(nu))
|
|
2115
|
+
nu === 9 ? V += 4 - (V + u.bsCount[h] + (I ? 1 : 0)) % 4 : V++;
|
|
2312
2116
|
else
|
|
2313
2117
|
break;
|
|
2314
2118
|
r++;
|
|
2315
2119
|
}
|
|
2316
|
-
|
|
2120
|
+
p = r >= o, a.push(u.bsCount[h]), u.bsCount[h] = u.sCount[h] + 1 + (y ? 1 : 0), s.push(u.sCount[h]), u.sCount[h] = V - A, d.push(u.tShift[h]), u.tShift[h] = r - u.bMarks[h];
|
|
2317
2121
|
continue;
|
|
2318
2122
|
}
|
|
2319
|
-
if (
|
|
2123
|
+
if (p)
|
|
2320
2124
|
break;
|
|
2321
2125
|
let m = !1;
|
|
2322
|
-
for (let A = 0, y =
|
|
2323
|
-
if (
|
|
2126
|
+
for (let A = 0, y = f.length; A < y; A++)
|
|
2127
|
+
if (f[A](u, h, t, !0)) {
|
|
2324
2128
|
m = !0;
|
|
2325
2129
|
break;
|
|
2326
2130
|
}
|
|
2327
2131
|
if (m) {
|
|
2328
|
-
u.lineMax =
|
|
2132
|
+
u.lineMax = h, u.blkIndent !== 0 && (c.push(u.bMarks[h]), a.push(u.bsCount[h]), d.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] -= u.blkIndent);
|
|
2329
2133
|
break;
|
|
2330
2134
|
}
|
|
2331
|
-
c.push(u.bMarks[
|
|
2135
|
+
c.push(u.bMarks[h]), a.push(u.bsCount[h]), d.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] = -1;
|
|
2332
2136
|
}
|
|
2333
2137
|
const C = u.blkIndent;
|
|
2334
2138
|
u.blkIndent = 0;
|
|
2335
2139
|
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2336
2140
|
D.markup = ">";
|
|
2337
|
-
const
|
|
2338
|
-
D.map =
|
|
2141
|
+
const T = [e, 0];
|
|
2142
|
+
D.map = T, u.md.block.tokenize(u, e, h);
|
|
2339
2143
|
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2340
|
-
E.markup = ">", u.lineMax = i, u.parentType = _,
|
|
2341
|
-
for (let k = 0; k <
|
|
2342
|
-
u.bMarks[k + e] = c[k], u.tShift[k + e] =
|
|
2144
|
+
E.markup = ">", u.lineMax = i, u.parentType = _, T[1] = u.line;
|
|
2145
|
+
for (let k = 0; k < d.length; k++)
|
|
2146
|
+
u.bMarks[k + e] = c[k], u.tShift[k + e] = d[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
|
|
2343
2147
|
return u.blkIndent = C, !0;
|
|
2344
2148
|
}
|
|
2345
|
-
function
|
|
2149
|
+
function $o(u, e, t, n) {
|
|
2346
2150
|
const r = u.eMarks[e];
|
|
2347
2151
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2348
2152
|
return !1;
|
|
@@ -2365,7 +2169,7 @@ function nc(u, e, t, n) {
|
|
|
2365
2169
|
const a = u.push("hr", "hr", 0);
|
|
2366
2170
|
return a.map = [e, u.line], a.markup = Array(c + 1).join(String.fromCharCode(i)), !0;
|
|
2367
2171
|
}
|
|
2368
|
-
function
|
|
2172
|
+
function pt(u, e) {
|
|
2369
2173
|
const t = u.eMarks[e];
|
|
2370
2174
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2371
2175
|
const r = u.src.charCodeAt(n++);
|
|
@@ -2400,78 +2204,78 @@ function bt(u, e) {
|
|
|
2400
2204
|
}
|
|
2401
2205
|
return r < n && (o = u.src.charCodeAt(r), !w(o)) ? -1 : r;
|
|
2402
2206
|
}
|
|
2403
|
-
function
|
|
2207
|
+
function jo(u, e) {
|
|
2404
2208
|
const t = u.level + 2;
|
|
2405
2209
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2406
2210
|
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
2211
|
}
|
|
2408
|
-
function
|
|
2212
|
+
function Go(u, e, t, n) {
|
|
2409
2213
|
let r, o, i, c, a = e, s = !0;
|
|
2410
2214
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2411
2215
|
return !1;
|
|
2412
|
-
let
|
|
2413
|
-
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (
|
|
2414
|
-
let
|
|
2415
|
-
if ((
|
|
2416
|
-
if (
|
|
2417
|
-
} else if ((
|
|
2418
|
-
|
|
2216
|
+
let d = !1;
|
|
2217
|
+
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (d = !0);
|
|
2218
|
+
let f, _, p;
|
|
2219
|
+
if ((p = bt(u, a)) >= 0) {
|
|
2220
|
+
if (f = !0, i = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(i, p - 1)), d && _ !== 1) return !1;
|
|
2221
|
+
} else if ((p = pt(u, a)) >= 0)
|
|
2222
|
+
f = !1;
|
|
2419
2223
|
else
|
|
2420
2224
|
return !1;
|
|
2421
|
-
if (
|
|
2225
|
+
if (d && u.skipSpaces(p) >= u.eMarks[a])
|
|
2422
2226
|
return !1;
|
|
2423
2227
|
if (n)
|
|
2424
2228
|
return !0;
|
|
2425
|
-
const
|
|
2426
|
-
|
|
2229
|
+
const h = u.src.charCodeAt(p - 1), C = u.tokens.length;
|
|
2230
|
+
f ? (c = u.push("ordered_list_open", "ol", 1), _ !== 1 && (c.attrs = [["start", _]])) : c = u.push("bullet_list_open", "ul", 1);
|
|
2427
2231
|
const D = [a, 0];
|
|
2428
|
-
c.map = D, c.markup = String.fromCharCode(
|
|
2429
|
-
let
|
|
2232
|
+
c.map = D, c.markup = String.fromCharCode(h);
|
|
2233
|
+
let T = !1;
|
|
2430
2234
|
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2431
2235
|
for (u.parentType = "list"; a < t; ) {
|
|
2432
|
-
o =
|
|
2433
|
-
const m = u.sCount[a] +
|
|
2236
|
+
o = p, r = u.eMarks[a];
|
|
2237
|
+
const m = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
|
|
2434
2238
|
let A = m;
|
|
2435
2239
|
for (; o < r; ) {
|
|
2436
|
-
const
|
|
2437
|
-
if (
|
|
2240
|
+
const hu = u.src.charCodeAt(o);
|
|
2241
|
+
if (hu === 9)
|
|
2438
2242
|
A += 4 - (A + u.bsCount[a]) % 4;
|
|
2439
|
-
else if (
|
|
2243
|
+
else if (hu === 32)
|
|
2440
2244
|
A++;
|
|
2441
2245
|
else
|
|
2442
2246
|
break;
|
|
2443
2247
|
o++;
|
|
2444
2248
|
}
|
|
2445
2249
|
const y = o;
|
|
2446
|
-
let
|
|
2447
|
-
y >= r ?
|
|
2448
|
-
const
|
|
2449
|
-
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(
|
|
2450
|
-
const
|
|
2451
|
-
c.map =
|
|
2452
|
-
const
|
|
2453
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
2250
|
+
let I;
|
|
2251
|
+
y >= r ? I = 1 : I = A - m, I > 4 && (I = 1);
|
|
2252
|
+
const V = m + I;
|
|
2253
|
+
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(h);
|
|
2254
|
+
const nu = [a, 0];
|
|
2255
|
+
c.map = nu, f && (c.info = u.src.slice(i, p - 1));
|
|
2256
|
+
const gu = u.tight, M = u.tShift[a], zu = u.sCount[a], qu = u.listIndent;
|
|
2257
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = V, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || T) && (s = !1), T = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = qu, u.tShift[a] = M, u.sCount[a] = zu, u.tight = gu, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(h), a = u.line, nu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2454
2258
|
break;
|
|
2455
2259
|
let yu = !1;
|
|
2456
|
-
for (let
|
|
2457
|
-
if (E[
|
|
2260
|
+
for (let hu = 0, ve = E.length; hu < ve; hu++)
|
|
2261
|
+
if (E[hu](u, a, t, !0)) {
|
|
2458
2262
|
yu = !0;
|
|
2459
2263
|
break;
|
|
2460
2264
|
}
|
|
2461
2265
|
if (yu)
|
|
2462
2266
|
break;
|
|
2463
|
-
if (
|
|
2464
|
-
if (
|
|
2267
|
+
if (f) {
|
|
2268
|
+
if (p = bt(u, a), p < 0)
|
|
2465
2269
|
break;
|
|
2466
2270
|
i = u.bMarks[a] + u.tShift[a];
|
|
2467
|
-
} else if (
|
|
2271
|
+
} else if (p = pt(u, a), p < 0)
|
|
2468
2272
|
break;
|
|
2469
|
-
if (
|
|
2273
|
+
if (h !== u.src.charCodeAt(p - 1))
|
|
2470
2274
|
break;
|
|
2471
2275
|
}
|
|
2472
|
-
return
|
|
2276
|
+
return f ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(h), D[1] = a, u.line = a, u.parentType = k, s && jo(u, C), !0;
|
|
2473
2277
|
}
|
|
2474
|
-
function
|
|
2278
|
+
function Wo(u, e, t, n) {
|
|
2475
2279
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], i = e + 1;
|
|
2476
2280
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2477
2281
|
return !1;
|
|
@@ -2481,15 +2285,15 @@ function cc(u, e, t, n) {
|
|
|
2481
2285
|
return null;
|
|
2482
2286
|
let m = !1;
|
|
2483
2287
|
if (u.sCount[E] - u.blkIndent > 3 && (m = !0), u.sCount[E] < 0 && (m = !0), !m) {
|
|
2484
|
-
const
|
|
2288
|
+
const I = u.md.block.ruler.getRules("reference"), V = u.parentType;
|
|
2485
2289
|
u.parentType = "reference";
|
|
2486
|
-
let
|
|
2487
|
-
for (let
|
|
2488
|
-
if (
|
|
2489
|
-
|
|
2290
|
+
let nu = !1;
|
|
2291
|
+
for (let gu = 0, M = I.length; gu < M; gu++)
|
|
2292
|
+
if (I[gu](u, E, k, !0)) {
|
|
2293
|
+
nu = !0;
|
|
2490
2294
|
break;
|
|
2491
2295
|
}
|
|
2492
|
-
if (u.parentType =
|
|
2296
|
+
if (u.parentType = V, nu)
|
|
2493
2297
|
return null;
|
|
2494
2298
|
}
|
|
2495
2299
|
const A = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
@@ -2522,14 +2326,14 @@ function cc(u, e, t, n) {
|
|
|
2522
2326
|
k !== null && (a += k, o = a.length, i++);
|
|
2523
2327
|
} else if (!w(E)) break;
|
|
2524
2328
|
}
|
|
2525
|
-
const
|
|
2526
|
-
if (!
|
|
2329
|
+
const d = u.md.helpers.parseLinkDestination(a, r, o);
|
|
2330
|
+
if (!d.ok)
|
|
2527
2331
|
return !1;
|
|
2528
|
-
const
|
|
2529
|
-
if (!u.md.validateLink(
|
|
2332
|
+
const f = u.md.normalizeLink(d.str);
|
|
2333
|
+
if (!u.md.validateLink(f))
|
|
2530
2334
|
return !1;
|
|
2531
|
-
r =
|
|
2532
|
-
const _ = r,
|
|
2335
|
+
r = d.pos;
|
|
2336
|
+
const _ = r, p = i, h = r;
|
|
2533
2337
|
for (; r < o; r++) {
|
|
2534
2338
|
const E = a.charCodeAt(r);
|
|
2535
2339
|
if (E === 10) {
|
|
@@ -2544,14 +2348,14 @@ function cc(u, e, t, n) {
|
|
|
2544
2348
|
a += E, r = o, o = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
|
|
2545
2349
|
}
|
|
2546
2350
|
let D;
|
|
2547
|
-
for (r < o &&
|
|
2351
|
+
for (r < o && h !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = _, i = p); r < o; ) {
|
|
2548
2352
|
const E = a.charCodeAt(r);
|
|
2549
2353
|
if (!w(E))
|
|
2550
2354
|
break;
|
|
2551
2355
|
r++;
|
|
2552
2356
|
}
|
|
2553
2357
|
if (r < o && a.charCodeAt(r) !== 10 && D)
|
|
2554
|
-
for (D = "", r = _, i =
|
|
2358
|
+
for (D = "", r = _, i = p; r < o; ) {
|
|
2555
2359
|
const E = a.charCodeAt(r);
|
|
2556
2360
|
if (!w(E))
|
|
2557
2361
|
break;
|
|
@@ -2559,10 +2363,10 @@ function cc(u, e, t, n) {
|
|
|
2559
2363
|
}
|
|
2560
2364
|
if (r < o && a.charCodeAt(r) !== 10)
|
|
2561
2365
|
return !1;
|
|
2562
|
-
const
|
|
2563
|
-
return
|
|
2366
|
+
const T = Te(a.slice(1, s));
|
|
2367
|
+
return T ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[T] > "u" && (u.env.references[T] = { title: D, href: f }), u.line = i), !0) : !1;
|
|
2564
2368
|
}
|
|
2565
|
-
const
|
|
2369
|
+
const Zo = [
|
|
2566
2370
|
"address",
|
|
2567
2371
|
"article",
|
|
2568
2372
|
"aside",
|
|
@@ -2625,16 +2429,16 @@ const ic = [
|
|
|
2625
2429
|
"tr",
|
|
2626
2430
|
"track",
|
|
2627
2431
|
"ul"
|
|
2628
|
-
],
|
|
2432
|
+
], Vo = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Yo = "[^\"'=<>`\\x00-\\x20]+", Xo = "'[^']*'", Jo = '"[^"]*"', Qo = "(?:" + Yo + "|" + Xo + "|" + Jo + ")", Ko = "(?:\\s+" + Vo + "(?:\\s*=\\s*" + Qo + ")?)", Ut = "<[A-Za-z][A-Za-z0-9\\-]*" + Ko + "*\\s*\\/?>", Ht = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", uc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ec = "<[?][\\s\\S]*?[?]>", tc = "<![A-Za-z][^>]*>", nc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", rc = new RegExp("^(?:" + Ut + "|" + Ht + "|" + uc + "|" + ec + "|" + tc + "|" + nc + ")"), oc = new RegExp("^(?:" + Ut + "|" + Ht + ")"), Lu = [
|
|
2629
2433
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2630
2434
|
[/^<!--/, /-->/, !0],
|
|
2631
2435
|
[/^<\?/, /\?>/, !0],
|
|
2632
2436
|
[/^<![A-Z]/, />/, !0],
|
|
2633
2437
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2634
|
-
[new RegExp("^</?(" +
|
|
2635
|
-
[new RegExp(
|
|
2438
|
+
[new RegExp("^</?(" + Zo.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2439
|
+
[new RegExp(oc.source + "\\s*$"), /^$/, !1]
|
|
2636
2440
|
];
|
|
2637
|
-
function
|
|
2441
|
+
function cc(u, e, t, n) {
|
|
2638
2442
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2639
2443
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2640
2444
|
return !1;
|
|
@@ -2657,7 +2461,7 @@ function kc(u, e, t, n) {
|
|
|
2657
2461
|
const s = u.push("html_block", "", 0);
|
|
2658
2462
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2659
2463
|
}
|
|
2660
|
-
function
|
|
2464
|
+
function ic(u, e, t, n) {
|
|
2661
2465
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2662
2466
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2663
2467
|
return !1;
|
|
@@ -2676,12 +2480,12 @@ function Ec(u, e, t, n) {
|
|
|
2676
2480
|
a > r && w(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
|
|
2677
2481
|
const s = u.push("heading_open", "h" + String(c), 1);
|
|
2678
2482
|
s.markup = "########".slice(0, c), s.map = [e, u.line];
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2681
|
-
const
|
|
2682
|
-
return
|
|
2483
|
+
const d = u.push("inline", "", 0);
|
|
2484
|
+
d.content = u.src.slice(r, o).trim(), d.map = [e, u.line], d.children = [];
|
|
2485
|
+
const f = u.push("heading_close", "h" + String(c), -1);
|
|
2486
|
+
return f.markup = "########".slice(0, c), !0;
|
|
2683
2487
|
}
|
|
2684
|
-
function
|
|
2488
|
+
function ac(u, e, t) {
|
|
2685
2489
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2686
2490
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2687
2491
|
return !1;
|
|
@@ -2692,9 +2496,9 @@ function Ac(u, e, t) {
|
|
|
2692
2496
|
if (u.sCount[c] - u.blkIndent > 3)
|
|
2693
2497
|
continue;
|
|
2694
2498
|
if (u.sCount[c] >= u.blkIndent) {
|
|
2695
|
-
let
|
|
2696
|
-
const
|
|
2697
|
-
if (
|
|
2499
|
+
let p = u.bMarks[c] + u.tShift[c];
|
|
2500
|
+
const h = u.eMarks[c];
|
|
2501
|
+
if (p < h && (i = u.src.charCodeAt(p), (i === 45 || i === 61) && (p = u.skipChars(p, i), p = u.skipSpaces(p), p >= h))) {
|
|
2698
2502
|
o = i === 61 ? 1 : 2;
|
|
2699
2503
|
break;
|
|
2700
2504
|
}
|
|
@@ -2702,8 +2506,8 @@ function Ac(u, e, t) {
|
|
|
2702
2506
|
if (u.sCount[c] < 0)
|
|
2703
2507
|
continue;
|
|
2704
2508
|
let _ = !1;
|
|
2705
|
-
for (let
|
|
2706
|
-
if (n[
|
|
2509
|
+
for (let p = 0, h = n.length; p < h; p++)
|
|
2510
|
+
if (n[p](u, c, t, !0)) {
|
|
2707
2511
|
_ = !0;
|
|
2708
2512
|
break;
|
|
2709
2513
|
}
|
|
@@ -2716,20 +2520,20 @@ function Ac(u, e, t) {
|
|
|
2716
2520
|
u.line = c + 1;
|
|
2717
2521
|
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2718
2522
|
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
|
2719
|
-
const
|
|
2720
|
-
|
|
2721
|
-
const
|
|
2722
|
-
return
|
|
2523
|
+
const d = u.push("inline", "", 0);
|
|
2524
|
+
d.content = a, d.map = [e, u.line - 1], d.children = [];
|
|
2525
|
+
const f = u.push("heading_close", "h" + String(o), -1);
|
|
2526
|
+
return f.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
2723
2527
|
}
|
|
2724
|
-
function
|
|
2528
|
+
function sc(u, e, t) {
|
|
2725
2529
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2726
2530
|
let o = e + 1;
|
|
2727
2531
|
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
2728
2532
|
if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
|
|
2729
2533
|
continue;
|
|
2730
2534
|
let s = !1;
|
|
2731
|
-
for (let
|
|
2732
|
-
if (n[
|
|
2535
|
+
for (let d = 0, f = n.length; d < f; d++)
|
|
2536
|
+
if (n[d](u, o, t, !0)) {
|
|
2733
2537
|
s = !0;
|
|
2734
2538
|
break;
|
|
2735
2539
|
}
|
|
@@ -2743,27 +2547,27 @@ function Cc(u, e, t) {
|
|
|
2743
2547
|
const a = u.push("inline", "", 0);
|
|
2744
2548
|
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2745
2549
|
}
|
|
2746
|
-
const
|
|
2550
|
+
const xe = [
|
|
2747
2551
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2748
2552
|
// 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",
|
|
2553
|
+
["table", zo, ["paragraph", "reference"]],
|
|
2554
|
+
["code", qo],
|
|
2555
|
+
["fence", Uo, ["paragraph", "reference", "blockquote", "list"]],
|
|
2556
|
+
["blockquote", Ho, ["paragraph", "reference", "blockquote", "list"]],
|
|
2557
|
+
["hr", $o, ["paragraph", "reference", "blockquote", "list"]],
|
|
2558
|
+
["list", Go, ["paragraph", "reference", "blockquote"]],
|
|
2559
|
+
["reference", Wo],
|
|
2560
|
+
["html_block", cc, ["paragraph", "reference", "blockquote"]],
|
|
2561
|
+
["heading", ic, ["paragraph", "reference", "blockquote"]],
|
|
2562
|
+
["lheading", ac],
|
|
2563
|
+
["paragraph", sc]
|
|
2760
2564
|
];
|
|
2761
|
-
function
|
|
2762
|
-
this.ruler = new
|
|
2763
|
-
for (let u = 0; u <
|
|
2764
|
-
this.ruler.push(
|
|
2565
|
+
function Se() {
|
|
2566
|
+
this.ruler = new Z();
|
|
2567
|
+
for (let u = 0; u < xe.length; u++)
|
|
2568
|
+
this.ruler.push(xe[u][0], xe[u][1], { alt: (xe[u][2] || []).slice() });
|
|
2765
2569
|
}
|
|
2766
|
-
|
|
2570
|
+
Se.prototype.tokenize = function(u, e, t) {
|
|
2767
2571
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2768
2572
|
let i = e, c = !1;
|
|
2769
2573
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
@@ -2773,8 +2577,8 @@ Re.prototype.tokenize = function(u, e, t) {
|
|
|
2773
2577
|
}
|
|
2774
2578
|
const a = u.line;
|
|
2775
2579
|
let s = !1;
|
|
2776
|
-
for (let
|
|
2777
|
-
if (s = n[
|
|
2580
|
+
for (let d = 0; d < r; d++)
|
|
2581
|
+
if (s = n[d](u, i, t, !1), s) {
|
|
2778
2582
|
if (a >= u.line)
|
|
2779
2583
|
throw new Error("block rule didn't increment state.line");
|
|
2780
2584
|
break;
|
|
@@ -2783,36 +2587,36 @@ Re.prototype.tokenize = function(u, e, t) {
|
|
|
2783
2587
|
u.tight = !c, u.isEmpty(u.line - 1) && (c = !0), i = u.line, i < t && u.isEmpty(i) && (c = !0, i++, u.line = i);
|
|
2784
2588
|
}
|
|
2785
2589
|
};
|
|
2786
|
-
|
|
2590
|
+
Se.prototype.parse = function(u, e, t, n) {
|
|
2787
2591
|
if (!u)
|
|
2788
2592
|
return;
|
|
2789
2593
|
const r = new this.State(u, e, t, n);
|
|
2790
2594
|
this.tokenize(r, r.line, r.lineMax);
|
|
2791
2595
|
};
|
|
2792
|
-
|
|
2793
|
-
function
|
|
2596
|
+
Se.prototype.State = au;
|
|
2597
|
+
function ce(u, e, t, n) {
|
|
2794
2598
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2795
2599
|
}
|
|
2796
|
-
|
|
2797
|
-
const u = new
|
|
2600
|
+
ce.prototype.pushPending = function() {
|
|
2601
|
+
const u = new tu("text", "", 0);
|
|
2798
2602
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2799
2603
|
};
|
|
2800
|
-
|
|
2604
|
+
ce.prototype.push = function(u, e, t) {
|
|
2801
2605
|
this.pending && this.pushPending();
|
|
2802
|
-
const n = new
|
|
2606
|
+
const n = new tu(u, e, t);
|
|
2803
2607
|
let r = null;
|
|
2804
2608
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2805
2609
|
};
|
|
2806
|
-
|
|
2610
|
+
ce.prototype.scanDelims = function(u, e) {
|
|
2807
2611
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2808
2612
|
let o = u;
|
|
2809
2613
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2810
2614
|
o++;
|
|
2811
|
-
const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a =
|
|
2812
|
-
return { can_open: _ && (e || !
|
|
2615
|
+
const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a = ue(r) || Ku(String.fromCharCode(r)), s = ue(c) || Ku(String.fromCharCode(c)), d = Qu(r), f = Qu(c), _ = !f && (!s || d || a), p = !d && (!a || f || s);
|
|
2616
|
+
return { can_open: _ && (e || !p || a), can_close: p && (e || !_ || s), length: i };
|
|
2813
2617
|
};
|
|
2814
|
-
|
|
2815
|
-
function
|
|
2618
|
+
ce.prototype.Token = tu;
|
|
2619
|
+
function lc(u) {
|
|
2816
2620
|
switch (u) {
|
|
2817
2621
|
case 10:
|
|
2818
2622
|
case 33:
|
|
@@ -2842,18 +2646,18 @@ function Dc(u) {
|
|
|
2842
2646
|
return !1;
|
|
2843
2647
|
}
|
|
2844
2648
|
}
|
|
2845
|
-
function
|
|
2649
|
+
function fc(u, e) {
|
|
2846
2650
|
let t = u.pos;
|
|
2847
|
-
for (; t < u.posMax && !
|
|
2651
|
+
for (; t < u.posMax && !lc(u.src.charCodeAt(t)); )
|
|
2848
2652
|
t++;
|
|
2849
2653
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2850
2654
|
}
|
|
2851
|
-
const
|
|
2852
|
-
function
|
|
2655
|
+
const dc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2656
|
+
function hc(u, e) {
|
|
2853
2657
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2854
2658
|
const t = u.pos, n = u.posMax;
|
|
2855
2659
|
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(
|
|
2660
|
+
const r = u.pending.match(dc);
|
|
2857
2661
|
if (!r) return !1;
|
|
2858
2662
|
const o = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2859
2663
|
if (!i) return !1;
|
|
@@ -2866,14 +2670,14 @@ function Tc(u, e) {
|
|
|
2866
2670
|
u.pending = u.pending.slice(0, -o.length);
|
|
2867
2671
|
const s = u.push("link_open", "a", 1);
|
|
2868
2672
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2869
|
-
const
|
|
2870
|
-
|
|
2871
|
-
const
|
|
2872
|
-
|
|
2673
|
+
const d = u.push("text", "", 0);
|
|
2674
|
+
d.content = u.md.normalizeLinkText(c);
|
|
2675
|
+
const f = u.push("link_close", "a", -1);
|
|
2676
|
+
f.markup = "linkify", f.info = "auto";
|
|
2873
2677
|
}
|
|
2874
2678
|
return u.pos += c.length - o.length, !0;
|
|
2875
2679
|
}
|
|
2876
|
-
function
|
|
2680
|
+
function pc(u, e) {
|
|
2877
2681
|
let t = u.pos;
|
|
2878
2682
|
if (u.src.charCodeAt(t) !== 10)
|
|
2879
2683
|
return !1;
|
|
@@ -2892,13 +2696,13 @@ function Sc(u, e) {
|
|
|
2892
2696
|
t++;
|
|
2893
2697
|
return u.pos = t, !0;
|
|
2894
2698
|
}
|
|
2895
|
-
const
|
|
2699
|
+
const _0 = [];
|
|
2896
2700
|
for (let u = 0; u < 256; u++)
|
|
2897
|
-
|
|
2701
|
+
_0.push(0);
|
|
2898
2702
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2899
|
-
|
|
2703
|
+
_0[u.charCodeAt(0)] = 1;
|
|
2900
2704
|
});
|
|
2901
|
-
function
|
|
2705
|
+
function bc(u, e) {
|
|
2902
2706
|
let t = u.pos;
|
|
2903
2707
|
const n = u.posMax;
|
|
2904
2708
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2916,11 +2720,11 @@ function wc(u, e) {
|
|
|
2916
2720
|
const i = "\\" + o;
|
|
2917
2721
|
if (!e) {
|
|
2918
2722
|
const c = u.push("text_special", "", 0);
|
|
2919
|
-
r < 256 &&
|
|
2723
|
+
r < 256 && _0[r] !== 0 ? c.content = o : c.content = i, c.markup = i, c.info = "escape";
|
|
2920
2724
|
}
|
|
2921
2725
|
return u.pos = t + 1, !0;
|
|
2922
2726
|
}
|
|
2923
|
-
function
|
|
2727
|
+
function _c(u, e) {
|
|
2924
2728
|
let t = u.pos;
|
|
2925
2729
|
if (u.src.charCodeAt(t) !== 96)
|
|
2926
2730
|
return !1;
|
|
@@ -2936,19 +2740,19 @@ function vc(u, e) {
|
|
|
2936
2740
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2937
2741
|
for (a = s + 1; a < o && u.src.charCodeAt(a) === 96; )
|
|
2938
2742
|
a++;
|
|
2939
|
-
const
|
|
2940
|
-
if (
|
|
2743
|
+
const d = a - s;
|
|
2744
|
+
if (d === c) {
|
|
2941
2745
|
if (!e) {
|
|
2942
|
-
const
|
|
2943
|
-
|
|
2746
|
+
const f = u.push("code_inline", "code", 0);
|
|
2747
|
+
f.markup = i, f.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2944
2748
|
}
|
|
2945
2749
|
return u.pos = a, !0;
|
|
2946
2750
|
}
|
|
2947
|
-
u.backticks[
|
|
2751
|
+
u.backticks[d] = s;
|
|
2948
2752
|
}
|
|
2949
2753
|
return u.backticksScanned = !0, e || (u.pending += i), u.pos += c, !0;
|
|
2950
2754
|
}
|
|
2951
|
-
function
|
|
2755
|
+
function mc(u, e) {
|
|
2952
2756
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2953
2757
|
if (e || n !== 126)
|
|
2954
2758
|
return !1;
|
|
@@ -2989,17 +2793,17 @@ function _t(u, e) {
|
|
|
2989
2793
|
i--, o !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[o], u.tokens[o] = t);
|
|
2990
2794
|
}
|
|
2991
2795
|
}
|
|
2992
|
-
function
|
|
2796
|
+
function xc(u) {
|
|
2993
2797
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2994
2798
|
_t(u, u.delimiters);
|
|
2995
2799
|
for (let n = 0; n < t; n++)
|
|
2996
2800
|
e[n] && e[n].delimiters && _t(u, e[n].delimiters);
|
|
2997
2801
|
}
|
|
2998
|
-
const
|
|
2999
|
-
tokenize:
|
|
3000
|
-
postProcess:
|
|
2802
|
+
const $t = {
|
|
2803
|
+
tokenize: mc,
|
|
2804
|
+
postProcess: xc
|
|
3001
2805
|
};
|
|
3002
|
-
function
|
|
2806
|
+
function gc(u, e) {
|
|
3003
2807
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3004
2808
|
if (e || n !== 95 && n !== 42)
|
|
3005
2809
|
return !1;
|
|
@@ -3043,66 +2847,66 @@ function mt(u, e) {
|
|
|
3043
2847
|
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? c + c : c, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3044
2848
|
}
|
|
3045
2849
|
}
|
|
3046
|
-
function
|
|
2850
|
+
function kc(u) {
|
|
3047
2851
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3048
2852
|
mt(u, u.delimiters);
|
|
3049
2853
|
for (let n = 0; n < t; n++)
|
|
3050
2854
|
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
3051
2855
|
}
|
|
3052
|
-
const
|
|
3053
|
-
tokenize:
|
|
3054
|
-
postProcess:
|
|
2856
|
+
const jt = {
|
|
2857
|
+
tokenize: gc,
|
|
2858
|
+
postProcess: kc
|
|
3055
2859
|
};
|
|
3056
|
-
function
|
|
2860
|
+
function Ec(u, e) {
|
|
3057
2861
|
let t, n, r, o, i = "", c = "", a = u.pos, s = !0;
|
|
3058
2862
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3059
2863
|
return !1;
|
|
3060
|
-
const
|
|
3061
|
-
if (
|
|
2864
|
+
const d = u.pos, f = u.posMax, _ = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2865
|
+
if (p < 0)
|
|
3062
2866
|
return !1;
|
|
3063
|
-
let
|
|
3064
|
-
if (
|
|
3065
|
-
for (s = !1,
|
|
2867
|
+
let h = p + 1;
|
|
2868
|
+
if (h < f && u.src.charCodeAt(h) === 40) {
|
|
2869
|
+
for (s = !1, h++; h < f && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3066
2870
|
;
|
|
3067
|
-
if (
|
|
2871
|
+
if (h >= f)
|
|
3068
2872
|
return !1;
|
|
3069
|
-
if (a =
|
|
3070
|
-
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ?
|
|
2873
|
+
if (a = h, r = u.md.helpers.parseLinkDestination(u.src, h, u.posMax), r.ok) {
|
|
2874
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? h = r.pos : i = "", a = h; h < f && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3071
2875
|
;
|
|
3072
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
3073
|
-
for (c = r.str,
|
|
2876
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, h, u.posMax), h < f && a !== h && r.ok)
|
|
2877
|
+
for (c = r.str, h = r.pos; h < f && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3074
2878
|
;
|
|
3075
2879
|
}
|
|
3076
|
-
(
|
|
2880
|
+
(h >= f || u.src.charCodeAt(h) !== 41) && (s = !0), h++;
|
|
3077
2881
|
}
|
|
3078
2882
|
if (s) {
|
|
3079
2883
|
if (typeof u.env.references > "u")
|
|
3080
2884
|
return !1;
|
|
3081
|
-
if (
|
|
3082
|
-
return u.pos =
|
|
2885
|
+
if (h < f && u.src.charCodeAt(h) === 91 ? (a = h + 1, h = u.md.helpers.parseLinkLabel(u, h), h >= 0 ? n = u.src.slice(a, h++) : h = p + 1) : h = p + 1, n || (n = u.src.slice(_, p)), o = u.env.references[Te(n)], !o)
|
|
2886
|
+
return u.pos = d, !1;
|
|
3083
2887
|
i = o.href, c = o.title;
|
|
3084
2888
|
}
|
|
3085
2889
|
if (!e) {
|
|
3086
|
-
u.pos = _, u.posMax =
|
|
2890
|
+
u.pos = _, u.posMax = p;
|
|
3087
2891
|
const C = u.push("link_open", "a", 1), D = [["href", i]];
|
|
3088
2892
|
C.attrs = D, c && D.push(["title", c]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3089
2893
|
}
|
|
3090
|
-
return u.pos =
|
|
2894
|
+
return u.pos = h, u.posMax = f, !0;
|
|
3091
2895
|
}
|
|
3092
|
-
function
|
|
3093
|
-
let t, n, r, o, i, c, a, s,
|
|
3094
|
-
const
|
|
2896
|
+
function Ac(u, e) {
|
|
2897
|
+
let t, n, r, o, i, c, a, s, d = "";
|
|
2898
|
+
const f = u.pos, _ = u.posMax;
|
|
3095
2899
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3096
2900
|
return !1;
|
|
3097
|
-
const
|
|
3098
|
-
if (
|
|
2901
|
+
const p = u.pos + 2, h = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2902
|
+
if (h < 0)
|
|
3099
2903
|
return !1;
|
|
3100
|
-
if (o =
|
|
2904
|
+
if (o = h + 1, o < _ && u.src.charCodeAt(o) === 40) {
|
|
3101
2905
|
for (o++; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
3102
2906
|
;
|
|
3103
2907
|
if (o >= _)
|
|
3104
2908
|
return !1;
|
|
3105
|
-
for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (
|
|
2909
|
+
for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (d = u.md.normalizeLink(c.str), u.md.validateLink(d) ? o = c.pos : d = ""), s = o; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
3106
2910
|
;
|
|
3107
2911
|
if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < _ && s !== o && c.ok)
|
|
3108
2912
|
for (a = c.str, o = c.pos; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
@@ -3110,17 +2914,17 @@ function Nc(u, e) {
|
|
|
3110
2914
|
else
|
|
3111
2915
|
a = "";
|
|
3112
2916
|
if (o >= _ || u.src.charCodeAt(o) !== 41)
|
|
3113
|
-
return u.pos =
|
|
2917
|
+
return u.pos = f, !1;
|
|
3114
2918
|
o++;
|
|
3115
2919
|
} else {
|
|
3116
2920
|
if (typeof u.env.references > "u")
|
|
3117
2921
|
return !1;
|
|
3118
|
-
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o =
|
|
3119
|
-
return u.pos =
|
|
3120
|
-
|
|
2922
|
+
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = h + 1) : o = h + 1, r || (r = u.src.slice(p, h)), i = u.env.references[Te(r)], !i)
|
|
2923
|
+
return u.pos = f, !1;
|
|
2924
|
+
d = i.href, a = i.title;
|
|
3121
2925
|
}
|
|
3122
2926
|
if (!e) {
|
|
3123
|
-
n = u.src.slice(
|
|
2927
|
+
n = u.src.slice(p, h);
|
|
3124
2928
|
const C = [];
|
|
3125
2929
|
u.md.inline.parse(
|
|
3126
2930
|
n,
|
|
@@ -3128,13 +2932,13 @@ function Nc(u, e) {
|
|
|
3128
2932
|
u.env,
|
|
3129
2933
|
C
|
|
3130
2934
|
);
|
|
3131
|
-
const D = u.push("image", "img", 0),
|
|
3132
|
-
D.attrs =
|
|
2935
|
+
const D = u.push("image", "img", 0), T = [["src", d], ["alt", ""]];
|
|
2936
|
+
D.attrs = T, D.children = C, D.content = n, a && T.push(["title", a]);
|
|
3133
2937
|
}
|
|
3134
2938
|
return u.pos = o, u.posMax = _, !0;
|
|
3135
2939
|
}
|
|
3136
|
-
const
|
|
3137
|
-
function
|
|
2940
|
+
const Cc = /^([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])?)*)$/, Dc = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2941
|
+
function yc(u, e) {
|
|
3138
2942
|
let t = u.pos;
|
|
3139
2943
|
if (u.src.charCodeAt(t) !== 60)
|
|
3140
2944
|
return !1;
|
|
@@ -3146,7 +2950,7 @@ function zc(u, e) {
|
|
|
3146
2950
|
if (i === 62) break;
|
|
3147
2951
|
}
|
|
3148
2952
|
const o = u.src.slice(n + 1, t);
|
|
3149
|
-
if (
|
|
2953
|
+
if (Dc.test(o)) {
|
|
3150
2954
|
const i = u.md.normalizeLink(o);
|
|
3151
2955
|
if (!u.md.validateLink(i))
|
|
3152
2956
|
return !1;
|
|
@@ -3160,7 +2964,7 @@ function zc(u, e) {
|
|
|
3160
2964
|
}
|
|
3161
2965
|
return u.pos += o.length + 2, !0;
|
|
3162
2966
|
}
|
|
3163
|
-
if (
|
|
2967
|
+
if (Cc.test(o)) {
|
|
3164
2968
|
const i = u.md.normalizeLink("mailto:" + o);
|
|
3165
2969
|
if (!u.md.validateLink(i))
|
|
3166
2970
|
return !1;
|
|
@@ -3176,51 +2980,51 @@ function zc(u, e) {
|
|
|
3176
2980
|
}
|
|
3177
2981
|
return !1;
|
|
3178
2982
|
}
|
|
3179
|
-
function
|
|
2983
|
+
function Fc(u) {
|
|
3180
2984
|
return /^<a[>\s]/i.test(u);
|
|
3181
2985
|
}
|
|
3182
|
-
function
|
|
2986
|
+
function Tc(u) {
|
|
3183
2987
|
return /^<\/a\s*>/i.test(u);
|
|
3184
2988
|
}
|
|
3185
|
-
function
|
|
2989
|
+
function Sc(u) {
|
|
3186
2990
|
const e = u | 32;
|
|
3187
2991
|
return e >= 97 && e <= 122;
|
|
3188
2992
|
}
|
|
3189
|
-
function
|
|
2993
|
+
function wc(u, e) {
|
|
3190
2994
|
if (!u.md.options.html)
|
|
3191
2995
|
return !1;
|
|
3192
2996
|
const t = u.posMax, n = u.pos;
|
|
3193
2997
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3194
2998
|
return !1;
|
|
3195
2999
|
const r = u.src.charCodeAt(n + 1);
|
|
3196
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3000
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Sc(r))
|
|
3197
3001
|
return !1;
|
|
3198
|
-
const o = u.src.slice(n).match(
|
|
3002
|
+
const o = u.src.slice(n).match(rc);
|
|
3199
3003
|
if (!o)
|
|
3200
3004
|
return !1;
|
|
3201
3005
|
if (!e) {
|
|
3202
3006
|
const i = u.push("html_inline", "", 0);
|
|
3203
|
-
i.content = o[0],
|
|
3007
|
+
i.content = o[0], Fc(i.content) && u.linkLevel++, Tc(i.content) && u.linkLevel--;
|
|
3204
3008
|
}
|
|
3205
3009
|
return u.pos += o[0].length, !0;
|
|
3206
3010
|
}
|
|
3207
|
-
const
|
|
3208
|
-
function
|
|
3011
|
+
const vc = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Rc = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3012
|
+
function Ic(u, e) {
|
|
3209
3013
|
const t = u.pos, n = u.posMax;
|
|
3210
3014
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3211
3015
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3212
|
-
const o = u.src.slice(t).match(
|
|
3016
|
+
const o = u.src.slice(t).match(vc);
|
|
3213
3017
|
if (o) {
|
|
3214
3018
|
if (!e) {
|
|
3215
3019
|
const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), c = u.push("text_special", "", 0);
|
|
3216
|
-
c.content =
|
|
3020
|
+
c.content = p0(i) ? De(i) : De(65533), c.markup = o[0], c.info = "entity";
|
|
3217
3021
|
}
|
|
3218
3022
|
return u.pos += o[0].length, !0;
|
|
3219
3023
|
}
|
|
3220
3024
|
} else {
|
|
3221
|
-
const o = u.src.slice(t).match(
|
|
3025
|
+
const o = u.src.slice(t).match(Rc);
|
|
3222
3026
|
if (o) {
|
|
3223
|
-
const i =
|
|
3027
|
+
const i = Nt(o[0]);
|
|
3224
3028
|
if (i !== o[0]) {
|
|
3225
3029
|
if (!e) {
|
|
3226
3030
|
const c = u.push("text_special", "", 0);
|
|
@@ -3242,64 +3046,64 @@ function xt(u) {
|
|
|
3242
3046
|
if (o.push(0), (u[n].marker !== c.marker || r !== c.token - 1) && (n = i), r = c.token, c.length = c.length || 0, !c.close) continue;
|
|
3243
3047
|
e.hasOwnProperty(c.marker) || (e[c.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3244
3048
|
const a = e[c.marker][(c.open ? 3 : 0) + c.length % 3];
|
|
3245
|
-
let s = n - o[n] - 1,
|
|
3049
|
+
let s = n - o[n] - 1, d = s;
|
|
3246
3050
|
for (; s > a; s -= o[s] + 1) {
|
|
3247
|
-
const
|
|
3248
|
-
if (
|
|
3051
|
+
const f = u[s];
|
|
3052
|
+
if (f.marker === c.marker && f.open && f.end < 0) {
|
|
3249
3053
|
let _ = !1;
|
|
3250
|
-
if ((
|
|
3251
|
-
const
|
|
3252
|
-
o[i] = i - s +
|
|
3054
|
+
if ((f.close || c.open) && (f.length + c.length) % 3 === 0 && (f.length % 3 !== 0 || c.length % 3 !== 0) && (_ = !0), !_) {
|
|
3055
|
+
const p = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3056
|
+
o[i] = i - s + p, o[s] = p, c.open = !1, f.end = i, f.close = !1, d = -1, r = -2;
|
|
3253
3057
|
break;
|
|
3254
3058
|
}
|
|
3255
3059
|
}
|
|
3256
3060
|
}
|
|
3257
|
-
|
|
3061
|
+
d !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = d);
|
|
3258
3062
|
}
|
|
3259
3063
|
}
|
|
3260
|
-
function
|
|
3064
|
+
function Mc(u) {
|
|
3261
3065
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3262
3066
|
xt(u.delimiters);
|
|
3263
3067
|
for (let n = 0; n < t; n++)
|
|
3264
3068
|
e[n] && e[n].delimiters && xt(e[n].delimiters);
|
|
3265
3069
|
}
|
|
3266
|
-
function
|
|
3070
|
+
function Lc(u) {
|
|
3267
3071
|
let e, t, n = 0;
|
|
3268
3072
|
const r = u.tokens, o = u.tokens.length;
|
|
3269
3073
|
for (e = t = 0; e < o; e++)
|
|
3270
3074
|
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < o && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3271
3075
|
e !== t && (r.length = t);
|
|
3272
3076
|
}
|
|
3273
|
-
const
|
|
3274
|
-
["text",
|
|
3275
|
-
["linkify",
|
|
3276
|
-
["newline",
|
|
3277
|
-
["escape",
|
|
3278
|
-
["backticks",
|
|
3279
|
-
["strikethrough",
|
|
3280
|
-
["emphasis",
|
|
3281
|
-
["link",
|
|
3282
|
-
["image",
|
|
3283
|
-
["autolink",
|
|
3284
|
-
["html_inline",
|
|
3285
|
-
["entity",
|
|
3286
|
-
],
|
|
3287
|
-
["balance_pairs",
|
|
3288
|
-
["strikethrough",
|
|
3289
|
-
["emphasis",
|
|
3077
|
+
const Xe = [
|
|
3078
|
+
["text", fc],
|
|
3079
|
+
["linkify", hc],
|
|
3080
|
+
["newline", pc],
|
|
3081
|
+
["escape", bc],
|
|
3082
|
+
["backticks", _c],
|
|
3083
|
+
["strikethrough", $t.tokenize],
|
|
3084
|
+
["emphasis", jt.tokenize],
|
|
3085
|
+
["link", Ec],
|
|
3086
|
+
["image", Ac],
|
|
3087
|
+
["autolink", yc],
|
|
3088
|
+
["html_inline", wc],
|
|
3089
|
+
["entity", Ic]
|
|
3090
|
+
], Je = [
|
|
3091
|
+
["balance_pairs", Mc],
|
|
3092
|
+
["strikethrough", $t.postProcess],
|
|
3093
|
+
["emphasis", jt.postProcess],
|
|
3290
3094
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3291
3095
|
// rule below merges unused segments back with the rest of the text
|
|
3292
|
-
["fragments_join",
|
|
3096
|
+
["fragments_join", Lc]
|
|
3293
3097
|
];
|
|
3294
|
-
function
|
|
3295
|
-
this.ruler = new
|
|
3296
|
-
for (let u = 0; u <
|
|
3297
|
-
this.ruler.push(
|
|
3298
|
-
this.ruler2 = new
|
|
3299
|
-
for (let u = 0; u <
|
|
3300
|
-
this.ruler2.push(
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3098
|
+
function ie() {
|
|
3099
|
+
this.ruler = new Z();
|
|
3100
|
+
for (let u = 0; u < Xe.length; u++)
|
|
3101
|
+
this.ruler.push(Xe[u][0], Xe[u][1]);
|
|
3102
|
+
this.ruler2 = new Z();
|
|
3103
|
+
for (let u = 0; u < Je.length; u++)
|
|
3104
|
+
this.ruler2.push(Je[u][0], Je[u][1]);
|
|
3105
|
+
}
|
|
3106
|
+
ie.prototype.skipToken = function(u) {
|
|
3303
3107
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3304
3108
|
if (typeof o[e] < "u") {
|
|
3305
3109
|
u.pos = o[e];
|
|
@@ -3317,7 +3121,7 @@ fe.prototype.skipToken = function(u) {
|
|
|
3317
3121
|
u.pos = u.posMax;
|
|
3318
3122
|
i || u.pos++, o[e] = u.pos;
|
|
3319
3123
|
};
|
|
3320
|
-
|
|
3124
|
+
ie.prototype.tokenize = function(u) {
|
|
3321
3125
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3322
3126
|
for (; u.pos < n; ) {
|
|
3323
3127
|
const o = u.pos;
|
|
@@ -3339,17 +3143,17 @@ fe.prototype.tokenize = function(u) {
|
|
|
3339
3143
|
}
|
|
3340
3144
|
u.pending && u.pushPending();
|
|
3341
3145
|
};
|
|
3342
|
-
|
|
3146
|
+
ie.prototype.parse = function(u, e, t, n) {
|
|
3343
3147
|
const r = new this.State(u, e, t, n);
|
|
3344
3148
|
this.tokenize(r);
|
|
3345
3149
|
const o = this.ruler2.getRules(""), i = o.length;
|
|
3346
3150
|
for (let c = 0; c < i; c++)
|
|
3347
3151
|
o[c](r);
|
|
3348
3152
|
};
|
|
3349
|
-
|
|
3350
|
-
function
|
|
3153
|
+
ie.prototype.State = ce;
|
|
3154
|
+
function Oc(u) {
|
|
3351
3155
|
const e = {};
|
|
3352
|
-
u = u || {}, e.src_Any =
|
|
3156
|
+
u = u || {}, e.src_Any = Rt.source, e.src_Cc = It.source, e.src_Z = Lt.source, e.src_P = d0.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
3157
|
const t = "[><|]";
|
|
3354
3158
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3355
3159
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3359,42 +3163,42 @@ function Yc(u) {
|
|
|
3359
3163
|
// but can start with > (markdown blockquote)
|
|
3360
3164
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
3361
3165
|
}
|
|
3362
|
-
function
|
|
3166
|
+
function r0(u) {
|
|
3363
3167
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3364
3168
|
t && Object.keys(t).forEach(function(n) {
|
|
3365
3169
|
u[n] = t[n];
|
|
3366
3170
|
});
|
|
3367
3171
|
}), u;
|
|
3368
3172
|
}
|
|
3369
|
-
function
|
|
3173
|
+
function we(u) {
|
|
3370
3174
|
return Object.prototype.toString.call(u);
|
|
3371
3175
|
}
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3176
|
+
function Nc(u) {
|
|
3177
|
+
return we(u) === "[object String]";
|
|
3374
3178
|
}
|
|
3375
|
-
function
|
|
3376
|
-
return
|
|
3179
|
+
function Bc(u) {
|
|
3180
|
+
return we(u) === "[object Object]";
|
|
3377
3181
|
}
|
|
3378
|
-
function
|
|
3379
|
-
return
|
|
3182
|
+
function Pc(u) {
|
|
3183
|
+
return we(u) === "[object RegExp]";
|
|
3380
3184
|
}
|
|
3381
3185
|
function gt(u) {
|
|
3382
|
-
return
|
|
3186
|
+
return we(u) === "[object Function]";
|
|
3383
3187
|
}
|
|
3384
|
-
function
|
|
3188
|
+
function zc(u) {
|
|
3385
3189
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3386
3190
|
}
|
|
3387
|
-
const
|
|
3191
|
+
const Gt = {
|
|
3388
3192
|
fuzzyLink: !0,
|
|
3389
3193
|
fuzzyEmail: !0,
|
|
3390
3194
|
fuzzyIP: !1
|
|
3391
3195
|
};
|
|
3392
|
-
function
|
|
3196
|
+
function qc(u) {
|
|
3393
3197
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3394
|
-
return e ||
|
|
3198
|
+
return e || Gt.hasOwnProperty(t);
|
|
3395
3199
|
}, !1);
|
|
3396
3200
|
}
|
|
3397
|
-
const
|
|
3201
|
+
const Uc = {
|
|
3398
3202
|
"http:": {
|
|
3399
3203
|
validate: function(u, e, t) {
|
|
3400
3204
|
const n = u.slice(e);
|
|
@@ -3426,11 +3230,11 @@ const ei = {
|
|
|
3426
3230
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3427
3231
|
}
|
|
3428
3232
|
}
|
|
3429
|
-
},
|
|
3430
|
-
function
|
|
3233
|
+
}, Hc = "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]", $c = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3234
|
+
function jc(u) {
|
|
3431
3235
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3432
3236
|
}
|
|
3433
|
-
function
|
|
3237
|
+
function Gc(u) {
|
|
3434
3238
|
return function(e, t) {
|
|
3435
3239
|
const n = e.slice(t);
|
|
3436
3240
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3441,9 +3245,9 @@ function kt() {
|
|
|
3441
3245
|
e.normalize(u);
|
|
3442
3246
|
};
|
|
3443
3247
|
}
|
|
3444
|
-
function
|
|
3445
|
-
const e = u.re =
|
|
3446
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3248
|
+
function ye(u) {
|
|
3249
|
+
const e = u.re = Oc(u.__opts__), t = u.__tlds__.slice();
|
|
3250
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Hc), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3447
3251
|
function n(c) {
|
|
3448
3252
|
return c.replace("%TLDS%", e.src_tlds);
|
|
3449
3253
|
}
|
|
@@ -3458,11 +3262,11 @@ function Te(u) {
|
|
|
3458
3262
|
if (a === null)
|
|
3459
3263
|
return;
|
|
3460
3264
|
const s = { validate: null, link: null };
|
|
3461
|
-
if (u.__compiled__[c] = s,
|
|
3462
|
-
|
|
3265
|
+
if (u.__compiled__[c] = s, Bc(a)) {
|
|
3266
|
+
Pc(a.validate) ? s.validate = Gc(a.validate) : gt(a.validate) ? s.validate = a.validate : o(c, a), gt(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(c, a) : s.normalize = kt();
|
|
3463
3267
|
return;
|
|
3464
3268
|
}
|
|
3465
|
-
if (
|
|
3269
|
+
if (Nc(a)) {
|
|
3466
3270
|
r.push(c);
|
|
3467
3271
|
return;
|
|
3468
3272
|
}
|
|
@@ -3472,35 +3276,35 @@ function Te(u) {
|
|
|
3472
3276
|
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3473
3277
|
const i = Object.keys(u.__compiled__).filter(function(c) {
|
|
3474
3278
|
return c.length > 0 && u.__compiled__[c];
|
|
3475
|
-
}).map(
|
|
3279
|
+
}).map(zc).join("|");
|
|
3476
3280
|
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
3281
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3478
3282
|
"i"
|
|
3479
|
-
),
|
|
3283
|
+
), jc(u);
|
|
3480
3284
|
}
|
|
3481
|
-
function
|
|
3285
|
+
function Wc(u, e) {
|
|
3482
3286
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3483
3287
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3484
3288
|
}
|
|
3485
|
-
function
|
|
3486
|
-
const t = new
|
|
3289
|
+
function o0(u, e) {
|
|
3290
|
+
const t = new Wc(u, e);
|
|
3487
3291
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3488
3292
|
}
|
|
3489
3293
|
function X(u, e) {
|
|
3490
3294
|
if (!(this instanceof X))
|
|
3491
3295
|
return new X(u, e);
|
|
3492
|
-
e ||
|
|
3296
|
+
e || qc(u) && (e = u, u = {}), this.__opts__ = r0({}, Gt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = r0({}, Uc, u), this.__compiled__ = {}, this.__tlds__ = $c, this.__tlds_replaced__ = !1, this.re = {}, ye(this);
|
|
3493
3297
|
}
|
|
3494
3298
|
X.prototype.add = function(e, t) {
|
|
3495
|
-
return this.__schemas__[e] = t,
|
|
3299
|
+
return this.__schemas__[e] = t, ye(this), this;
|
|
3496
3300
|
};
|
|
3497
3301
|
X.prototype.set = function(e) {
|
|
3498
|
-
return this.__opts__ =
|
|
3302
|
+
return this.__opts__ = r0(this.__opts__, e), this;
|
|
3499
3303
|
};
|
|
3500
3304
|
X.prototype.test = function(e) {
|
|
3501
3305
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3502
3306
|
return !1;
|
|
3503
|
-
let t, n, r, o, i, c, a, s,
|
|
3307
|
+
let t, n, r, o, i, c, a, s, d;
|
|
3504
3308
|
if (this.re.schema_test.test(e)) {
|
|
3505
3309
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
3506
3310
|
if (o = this.testSchemaAt(e, t[2], a.lastIndex), o) {
|
|
@@ -3508,7 +3312,7 @@ X.prototype.test = function(e) {
|
|
|
3508
3312
|
break;
|
|
3509
3313
|
}
|
|
3510
3314
|
}
|
|
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:"] && (
|
|
3315
|
+
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:"] && (d = e.indexOf("@"), d >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, c = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && c > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = c))), this.__index__ >= 0;
|
|
3512
3316
|
};
|
|
3513
3317
|
X.prototype.pretest = function(e) {
|
|
3514
3318
|
return this.re.pretest.test(e);
|
|
@@ -3519,10 +3323,10 @@ X.prototype.testSchemaAt = function(e, t, n) {
|
|
|
3519
3323
|
X.prototype.match = function(e) {
|
|
3520
3324
|
const t = [];
|
|
3521
3325
|
let n = 0;
|
|
3522
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
3326
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(o0(this, n)), n = this.__last_index__);
|
|
3523
3327
|
let r = n ? e.slice(n) : e;
|
|
3524
3328
|
for (; this.test(r); )
|
|
3525
|
-
t.push(
|
|
3329
|
+
t.push(o0(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3526
3330
|
return t.length ? t : null;
|
|
3527
3331
|
};
|
|
3528
3332
|
X.prototype.matchAtStart = function(e) {
|
|
@@ -3530,41 +3334,41 @@ X.prototype.matchAtStart = function(e) {
|
|
|
3530
3334
|
const t = this.re.schema_at_start.exec(e);
|
|
3531
3335
|
if (!t) return null;
|
|
3532
3336
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3533
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3337
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, o0(this, 0)) : null;
|
|
3534
3338
|
};
|
|
3535
3339
|
X.prototype.tlds = function(e, t) {
|
|
3536
3340
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3537
3341
|
return n !== o[r - 1];
|
|
3538
|
-
}).reverse(),
|
|
3342
|
+
}).reverse(), ye(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, ye(this), this);
|
|
3539
3343
|
};
|
|
3540
3344
|
X.prototype.normalize = function(e) {
|
|
3541
3345
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3542
3346
|
};
|
|
3543
3347
|
X.prototype.onCompile = function() {
|
|
3544
3348
|
};
|
|
3545
|
-
const
|
|
3349
|
+
const Ou = 2147483647, ou = 36, m0 = 1, ee = 26, Zc = 38, Vc = 700, Wt = 72, Zt = 128, Vt = "-", Yc = /^xn--/, Xc = /[^\0-\x7F]/, Jc = /[\x2E\u3002\uFF0E\uFF61]/g, Qc = {
|
|
3546
3350
|
overflow: "Overflow: input needs wider integers to process",
|
|
3547
3351
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3548
3352
|
"invalid-input": "Invalid input"
|
|
3549
|
-
},
|
|
3550
|
-
function
|
|
3551
|
-
throw new RangeError(
|
|
3353
|
+
}, Qe = ou - m0, cu = Math.floor, Ke = String.fromCharCode;
|
|
3354
|
+
function pu(u) {
|
|
3355
|
+
throw new RangeError(Qc[u]);
|
|
3552
3356
|
}
|
|
3553
|
-
function
|
|
3357
|
+
function Kc(u, e) {
|
|
3554
3358
|
const t = [];
|
|
3555
3359
|
let n = u.length;
|
|
3556
3360
|
for (; n--; )
|
|
3557
3361
|
t[n] = e(u[n]);
|
|
3558
3362
|
return t;
|
|
3559
3363
|
}
|
|
3560
|
-
function
|
|
3364
|
+
function Yt(u, e) {
|
|
3561
3365
|
const t = u.split("@");
|
|
3562
3366
|
let n = "";
|
|
3563
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3564
|
-
const r = u.split("."), o =
|
|
3367
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(Jc, ".");
|
|
3368
|
+
const r = u.split("."), o = Kc(r, e).join(".");
|
|
3565
3369
|
return n + o;
|
|
3566
3370
|
}
|
|
3567
|
-
function
|
|
3371
|
+
function Xt(u) {
|
|
3568
3372
|
const e = [];
|
|
3569
3373
|
let t = 0;
|
|
3570
3374
|
const n = u.length;
|
|
@@ -3578,78 +3382,78 @@ function Qt(u) {
|
|
|
3578
3382
|
}
|
|
3579
3383
|
return e;
|
|
3580
3384
|
}
|
|
3581
|
-
const
|
|
3385
|
+
const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
3582
3386
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : ou;
|
|
3583
3387
|
}, Et = function(u, e) {
|
|
3584
3388
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3585
|
-
},
|
|
3389
|
+
}, Jt = function(u, e, t) {
|
|
3586
3390
|
let n = 0;
|
|
3587
|
-
for (u = t ? cu(u /
|
|
3588
|
-
u = cu(u /
|
|
3589
|
-
return cu(n + (
|
|
3590
|
-
},
|
|
3391
|
+
for (u = t ? cu(u / Vc) : u >> 1, u += cu(u / e); u > Qe * ee >> 1; n += ou)
|
|
3392
|
+
u = cu(u / Qe);
|
|
3393
|
+
return cu(n + (Qe + 1) * u / (u + Zc));
|
|
3394
|
+
}, Qt = function(u) {
|
|
3591
3395
|
const e = [], t = u.length;
|
|
3592
|
-
let n = 0, r =
|
|
3396
|
+
let n = 0, r = Zt, o = Wt, i = u.lastIndexOf(Vt);
|
|
3593
3397
|
i < 0 && (i = 0);
|
|
3594
3398
|
for (let c = 0; c < i; ++c)
|
|
3595
|
-
u.charCodeAt(c) >= 128 &&
|
|
3399
|
+
u.charCodeAt(c) >= 128 && pu("not-basic"), e.push(u.charCodeAt(c));
|
|
3596
3400
|
for (let c = i > 0 ? i + 1 : 0; c < t; ) {
|
|
3597
3401
|
const a = n;
|
|
3598
|
-
for (let
|
|
3599
|
-
c >= t &&
|
|
3600
|
-
const _ =
|
|
3601
|
-
_ >= ou &&
|
|
3602
|
-
const
|
|
3603
|
-
if (_ <
|
|
3402
|
+
for (let d = 1, f = ou; ; f += ou) {
|
|
3403
|
+
c >= t && pu("invalid-input");
|
|
3404
|
+
const _ = ei(u.charCodeAt(c++));
|
|
3405
|
+
_ >= ou && pu("invalid-input"), _ > cu((Ou - n) / d) && pu("overflow"), n += _ * d;
|
|
3406
|
+
const p = f <= o ? m0 : f >= o + ee ? ee : f - o;
|
|
3407
|
+
if (_ < p)
|
|
3604
3408
|
break;
|
|
3605
|
-
const
|
|
3606
|
-
|
|
3409
|
+
const h = ou - p;
|
|
3410
|
+
d > cu(Ou / h) && pu("overflow"), d *= h;
|
|
3607
3411
|
}
|
|
3608
3412
|
const s = e.length + 1;
|
|
3609
|
-
o =
|
|
3413
|
+
o = Jt(n - a, s, a == 0), cu(n / s) > Ou - r && pu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3610
3414
|
}
|
|
3611
3415
|
return String.fromCodePoint(...e);
|
|
3612
|
-
},
|
|
3416
|
+
}, Kt = function(u) {
|
|
3613
3417
|
const e = [];
|
|
3614
|
-
u =
|
|
3418
|
+
u = Xt(u);
|
|
3615
3419
|
const t = u.length;
|
|
3616
|
-
let n =
|
|
3420
|
+
let n = Zt, r = 0, o = Wt;
|
|
3617
3421
|
for (const a of u)
|
|
3618
|
-
a < 128 && e.push(
|
|
3422
|
+
a < 128 && e.push(Ke(a));
|
|
3619
3423
|
const i = e.length;
|
|
3620
3424
|
let c = i;
|
|
3621
|
-
for (i && e.push(
|
|
3622
|
-
let a =
|
|
3623
|
-
for (const
|
|
3624
|
-
|
|
3425
|
+
for (i && e.push(Vt); c < t; ) {
|
|
3426
|
+
let a = Ou;
|
|
3427
|
+
for (const d of u)
|
|
3428
|
+
d >= n && d < a && (a = d);
|
|
3625
3429
|
const s = c + 1;
|
|
3626
|
-
a - n > cu((
|
|
3627
|
-
for (const
|
|
3628
|
-
if (
|
|
3629
|
-
let
|
|
3430
|
+
a - n > cu((Ou - r) / s) && pu("overflow"), r += (a - n) * s, n = a;
|
|
3431
|
+
for (const d of u)
|
|
3432
|
+
if (d < n && ++r > Ou && pu("overflow"), d === n) {
|
|
3433
|
+
let f = r;
|
|
3630
3434
|
for (let _ = ou; ; _ += ou) {
|
|
3631
|
-
const
|
|
3632
|
-
if (
|
|
3435
|
+
const p = _ <= o ? m0 : _ >= o + ee ? ee : _ - o;
|
|
3436
|
+
if (f < p)
|
|
3633
3437
|
break;
|
|
3634
|
-
const
|
|
3438
|
+
const h = f - p, C = ou - p;
|
|
3635
3439
|
e.push(
|
|
3636
|
-
|
|
3637
|
-
),
|
|
3440
|
+
Ke(Et(p + h % C, 0))
|
|
3441
|
+
), f = cu(h / C);
|
|
3638
3442
|
}
|
|
3639
|
-
e.push(
|
|
3443
|
+
e.push(Ke(Et(f, 0))), o = Jt(r, s, c === i), r = 0, ++c;
|
|
3640
3444
|
}
|
|
3641
3445
|
++r, ++n;
|
|
3642
3446
|
}
|
|
3643
3447
|
return e.join("");
|
|
3644
|
-
},
|
|
3645
|
-
return
|
|
3646
|
-
return
|
|
3448
|
+
}, ti = function(u) {
|
|
3449
|
+
return Yt(u, function(e) {
|
|
3450
|
+
return Yc.test(e) ? Qt(e.slice(4).toLowerCase()) : e;
|
|
3647
3451
|
});
|
|
3648
|
-
},
|
|
3649
|
-
return
|
|
3650
|
-
return
|
|
3452
|
+
}, ni = function(u) {
|
|
3453
|
+
return Yt(u, function(e) {
|
|
3454
|
+
return Xc.test(e) ? "xn--" + Kt(e) : e;
|
|
3651
3455
|
});
|
|
3652
|
-
},
|
|
3456
|
+
}, un = {
|
|
3653
3457
|
/**
|
|
3654
3458
|
* A string representing the current Punycode.js version number.
|
|
3655
3459
|
* @memberOf punycode
|
|
@@ -3664,14 +3468,14 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3664
3468
|
* @type Object
|
|
3665
3469
|
*/
|
|
3666
3470
|
ucs2: {
|
|
3667
|
-
decode:
|
|
3668
|
-
encode:
|
|
3471
|
+
decode: Xt,
|
|
3472
|
+
encode: ui
|
|
3669
3473
|
},
|
|
3670
|
-
decode:
|
|
3671
|
-
encode:
|
|
3672
|
-
toASCII:
|
|
3673
|
-
toUnicode:
|
|
3674
|
-
},
|
|
3474
|
+
decode: Qt,
|
|
3475
|
+
encode: Kt,
|
|
3476
|
+
toASCII: ni,
|
|
3477
|
+
toUnicode: ti
|
|
3478
|
+
}, ri = {
|
|
3675
3479
|
options: {
|
|
3676
3480
|
// Enable HTML tags in source
|
|
3677
3481
|
html: !1,
|
|
@@ -3707,7 +3511,7 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3707
3511
|
block: {},
|
|
3708
3512
|
inline: {}
|
|
3709
3513
|
}
|
|
3710
|
-
},
|
|
3514
|
+
}, oi = {
|
|
3711
3515
|
options: {
|
|
3712
3516
|
// Enable HTML tags in source
|
|
3713
3517
|
html: !1,
|
|
@@ -3762,7 +3566,7 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3762
3566
|
]
|
|
3763
3567
|
}
|
|
3764
3568
|
}
|
|
3765
|
-
},
|
|
3569
|
+
}, ci = {
|
|
3766
3570
|
options: {
|
|
3767
3571
|
// Enable HTML tags in source
|
|
3768
3572
|
html: !0,
|
|
@@ -3836,47 +3640,47 @@ const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3836
3640
|
]
|
|
3837
3641
|
}
|
|
3838
3642
|
}
|
|
3839
|
-
},
|
|
3840
|
-
default:
|
|
3841
|
-
zero:
|
|
3842
|
-
commonmark:
|
|
3843
|
-
},
|
|
3844
|
-
function
|
|
3643
|
+
}, ii = {
|
|
3644
|
+
default: ri,
|
|
3645
|
+
zero: oi,
|
|
3646
|
+
commonmark: ci
|
|
3647
|
+
}, ai = /^(vbscript|javascript|file|data):/, si = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3648
|
+
function li(u) {
|
|
3845
3649
|
const e = u.trim().toLowerCase();
|
|
3846
|
-
return
|
|
3650
|
+
return ai.test(e) ? si.test(e) : !0;
|
|
3847
3651
|
}
|
|
3848
|
-
const
|
|
3849
|
-
function
|
|
3850
|
-
const e =
|
|
3851
|
-
if (e.hostname && (!e.protocol ||
|
|
3652
|
+
const en = ["http:", "https:", "mailto:"];
|
|
3653
|
+
function fi(u) {
|
|
3654
|
+
const e = f0(u, !0);
|
|
3655
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3852
3656
|
try {
|
|
3853
|
-
e.hostname =
|
|
3657
|
+
e.hostname = un.toASCII(e.hostname);
|
|
3854
3658
|
} catch {
|
|
3855
3659
|
}
|
|
3856
|
-
return
|
|
3660
|
+
return oe(l0(e));
|
|
3857
3661
|
}
|
|
3858
|
-
function
|
|
3859
|
-
const e =
|
|
3860
|
-
if (e.hostname && (!e.protocol ||
|
|
3662
|
+
function di(u) {
|
|
3663
|
+
const e = f0(u, !0);
|
|
3664
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3861
3665
|
try {
|
|
3862
|
-
e.hostname =
|
|
3666
|
+
e.hostname = un.toUnicode(e.hostname);
|
|
3863
3667
|
} catch {
|
|
3864
3668
|
}
|
|
3865
|
-
return
|
|
3669
|
+
return Nu(l0(e), Nu.defaultChars + "%");
|
|
3866
3670
|
}
|
|
3867
|
-
function
|
|
3868
|
-
if (!(this instanceof
|
|
3869
|
-
return new
|
|
3870
|
-
e || h0(u) || (e = u || {}, u = "default"), this.inline = new
|
|
3671
|
+
function K(u, e) {
|
|
3672
|
+
if (!(this instanceof K))
|
|
3673
|
+
return new K(u, e);
|
|
3674
|
+
e || h0(u) || (e = u || {}, u = "default"), this.inline = new ie(), this.block = new Se(), this.core = new b0(), this.renderer = new Pu(), this.linkify = new X(), this.validateLink = li, this.normalizeLink = fi, this.normalizeLinkText = di, this.utils = po, this.helpers = Fe({}, xo), this.options = {}, this.configure(u), e && this.set(e);
|
|
3871
3675
|
}
|
|
3872
|
-
|
|
3873
|
-
return
|
|
3676
|
+
K.prototype.set = function(u) {
|
|
3677
|
+
return Fe(this.options, u), this;
|
|
3874
3678
|
};
|
|
3875
|
-
|
|
3679
|
+
K.prototype.configure = function(u) {
|
|
3876
3680
|
const e = this;
|
|
3877
3681
|
if (h0(u)) {
|
|
3878
3682
|
const t = u;
|
|
3879
|
-
if (u =
|
|
3683
|
+
if (u = ii[t], !u)
|
|
3880
3684
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3881
3685
|
}
|
|
3882
3686
|
if (!u)
|
|
@@ -3885,7 +3689,7 @@ Q.prototype.configure = function(u) {
|
|
|
3885
3689
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3886
3690
|
}), this;
|
|
3887
3691
|
};
|
|
3888
|
-
|
|
3692
|
+
K.prototype.enable = function(u, e) {
|
|
3889
3693
|
let t = [];
|
|
3890
3694
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3891
3695
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3897,7 +3701,7 @@ Q.prototype.enable = function(u, e) {
|
|
|
3897
3701
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3898
3702
|
return this;
|
|
3899
3703
|
};
|
|
3900
|
-
|
|
3704
|
+
K.prototype.disable = function(u, e) {
|
|
3901
3705
|
let t = [];
|
|
3902
3706
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3903
3707
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3909,86 +3713,246 @@ Q.prototype.disable = function(u, e) {
|
|
|
3909
3713
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3910
3714
|
return this;
|
|
3911
3715
|
};
|
|
3912
|
-
|
|
3716
|
+
K.prototype.use = function(u) {
|
|
3913
3717
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3914
3718
|
return u.apply(u, e), this;
|
|
3915
3719
|
};
|
|
3916
|
-
|
|
3720
|
+
K.prototype.parse = function(u, e) {
|
|
3917
3721
|
if (typeof u != "string")
|
|
3918
3722
|
throw new Error("Input data should be a String");
|
|
3919
3723
|
const t = new this.core.State(u, this, e);
|
|
3920
3724
|
return this.core.process(t), t.tokens;
|
|
3921
3725
|
};
|
|
3922
|
-
|
|
3726
|
+
K.prototype.render = function(u, e) {
|
|
3923
3727
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3924
3728
|
};
|
|
3925
|
-
|
|
3729
|
+
K.prototype.parseInline = function(u, e) {
|
|
3926
3730
|
const t = new this.core.State(u, this, e);
|
|
3927
3731
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
3928
3732
|
};
|
|
3929
|
-
|
|
3733
|
+
K.prototype.renderInline = function(u, e) {
|
|
3930
3734
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3931
3735
|
};
|
|
3932
|
-
class
|
|
3933
|
-
constructor(
|
|
3736
|
+
class vi extends a0 {
|
|
3737
|
+
constructor(t = {}) {
|
|
3934
3738
|
super();
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
this.mdConfig = t || {}, this.dompurifyConfig =
|
|
3739
|
+
Mu(this, "mdConfig");
|
|
3740
|
+
Mu(this, "dompurifyConfig");
|
|
3741
|
+
Mu(this, "sanitizeDisabled");
|
|
3742
|
+
Mu(this, "defaultAttrs");
|
|
3743
|
+
Mu(this, "md");
|
|
3744
|
+
this.mdConfig = t.mdConfig || {}, this.dompurifyConfig = t.dompurifyConfig || {}, this.sanitizeDisabled = t.sanitizeDisabled ?? !1, this.defaultAttrs = t.defaultAttrs || {}, this.md = K(this.mdConfig);
|
|
3941
3745
|
}
|
|
3942
3746
|
render(t) {
|
|
3943
|
-
|
|
3747
|
+
const { content: n, ...r } = t;
|
|
3748
|
+
let o = "";
|
|
3944
3749
|
try {
|
|
3945
|
-
|
|
3946
|
-
} catch (
|
|
3947
|
-
console.error("Error rendering markdown:",
|
|
3750
|
+
o = this.md.render(n ?? "");
|
|
3751
|
+
} catch (c) {
|
|
3752
|
+
console.error("Error rendering markdown:", c), o = n ?? "";
|
|
3948
3753
|
}
|
|
3949
3754
|
if (this.sanitizeDisabled)
|
|
3950
|
-
return console.warn("HTML sanitization is disabled, potential XSS risk"),
|
|
3951
|
-
const
|
|
3952
|
-
return
|
|
3755
|
+
return console.warn("HTML sanitization is disabled, potential XSS risk"), j0("div", { ...this.defaultAttrs, ...r, innerHTML: o });
|
|
3756
|
+
const i = Fr.sanitize(o, this.dompurifyConfig);
|
|
3757
|
+
return j0("div", { ...this.defaultAttrs, ...r, innerHTML: i });
|
|
3953
3758
|
}
|
|
3954
3759
|
}
|
|
3955
|
-
const
|
|
3760
|
+
const hi = {
|
|
3761
|
+
key: 0,
|
|
3762
|
+
class: /* @__PURE__ */ Eu(["tr-bubble__avatar"])
|
|
3763
|
+
}, pi = {
|
|
3764
|
+
key: 0,
|
|
3765
|
+
class: "tr-bubble__content-items"
|
|
3766
|
+
}, bi = {
|
|
3767
|
+
key: 1,
|
|
3768
|
+
class: "tr-bubble__body-text"
|
|
3769
|
+
}, _i = {
|
|
3770
|
+
key: 2,
|
|
3771
|
+
class: "tr-bubble__aborted"
|
|
3772
|
+
}, mi = {
|
|
3773
|
+
key: 3,
|
|
3774
|
+
class: "tr-bubble__footer"
|
|
3775
|
+
}, xi = /* @__PURE__ */ Du({
|
|
3776
|
+
__name: "Bubble",
|
|
3777
|
+
props: {
|
|
3778
|
+
content: { default: "" },
|
|
3779
|
+
id: {},
|
|
3780
|
+
role: {},
|
|
3781
|
+
loading: { type: Boolean },
|
|
3782
|
+
aborted: { type: Boolean },
|
|
3783
|
+
placement: { default: "start" },
|
|
3784
|
+
avatar: {},
|
|
3785
|
+
shape: { default: "corner" },
|
|
3786
|
+
contentRenderer: {},
|
|
3787
|
+
customContentField: {},
|
|
3788
|
+
abortedText: { default: "(用户停止)" },
|
|
3789
|
+
maxWidth: {}
|
|
3790
|
+
},
|
|
3791
|
+
setup(u) {
|
|
3792
|
+
const e = u, t = gn(), n = J(() => {
|
|
3793
|
+
const f = e.contentRenderer;
|
|
3794
|
+
return f ? typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(e) } : f instanceof a0 ? { isComponent: !1, vNodeOrComponent: f.render(e) } : { isComponent: !0, vNodeOrComponent: f } : null;
|
|
3795
|
+
}), r = kn(), o = J(() => {
|
|
3796
|
+
if (!e.customContentField)
|
|
3797
|
+
return null;
|
|
3798
|
+
const f = r[e.customContentField];
|
|
3799
|
+
return typeof f == "string" || Array.isArray(f) && f.length > 0 ? f : null;
|
|
3800
|
+
}), i = J(() => o.value || e.content), c = J(() => Array.isArray(i.value) ? "" : i.value), a = J(() => Array.isArray(i.value) ? i.value : []), s = J(() => e.placement === "start"), d = J(() => e.maxWidth ? {
|
|
3801
|
+
"--max-width": yn(e.maxWidth)
|
|
3802
|
+
} : {});
|
|
3803
|
+
return (f, _) => (S(), $("div", {
|
|
3804
|
+
class: Eu([
|
|
3805
|
+
"tr-bubble",
|
|
3806
|
+
{
|
|
3807
|
+
"placement-start": s.value,
|
|
3808
|
+
"placement-end": !s.value
|
|
3809
|
+
}
|
|
3810
|
+
]),
|
|
3811
|
+
style: En(d.value)
|
|
3812
|
+
}, [
|
|
3813
|
+
e.avatar ? (S(), $("div", hi, [
|
|
3814
|
+
(S(), eu(mu(e.avatar)))
|
|
3815
|
+
])) : Xu("", !0),
|
|
3816
|
+
e.loading ? ge(f.$slots, "loading", {
|
|
3817
|
+
key: 1,
|
|
3818
|
+
bubbleProps: e
|
|
3819
|
+
}, () => [
|
|
3820
|
+
Y("div", {
|
|
3821
|
+
class: Eu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3822
|
+
}, [..._[0] || (_[0] = [
|
|
3823
|
+
Y("img", {
|
|
3824
|
+
src: Dn,
|
|
3825
|
+
alt: "loading",
|
|
3826
|
+
class: "tr-bubble__loading"
|
|
3827
|
+
}, null, -1)
|
|
3828
|
+
])], 2)
|
|
3829
|
+
], !0) : (S(), $("div", {
|
|
3830
|
+
key: 2,
|
|
3831
|
+
class: Eu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3832
|
+
}, [
|
|
3833
|
+
a.value.length ? (S(), $("div", pi, [
|
|
3834
|
+
(S(!0), $(u0, null, ke(a.value, (p, h) => (S(), eu(i0(rr), {
|
|
3835
|
+
key: h,
|
|
3836
|
+
item: p
|
|
3837
|
+
}, null, 8, ["item"]))), 128))
|
|
3838
|
+
])) : ge(f.$slots, "default", {
|
|
3839
|
+
key: 1,
|
|
3840
|
+
bubbleProps: e
|
|
3841
|
+
}, () => [
|
|
3842
|
+
n.value ? (S(), $(u0, { key: 0 }, [
|
|
3843
|
+
n.value.isComponent ? (S(), eu(mu(n.value.vNodeOrComponent), Ae(Ju({ key: 0 }, e)), null, 16)) : (S(), eu(mu(n.value.vNodeOrComponent), { key: 1 }))
|
|
3844
|
+
], 64)) : (S(), $("span", bi, Au(c.value), 1))
|
|
3845
|
+
], !0),
|
|
3846
|
+
e.aborted ? (S(), $("span", _i, Au(e.abortedText), 1)) : Xu("", !0),
|
|
3847
|
+
t.footer ? (S(), $("div", mi, [
|
|
3848
|
+
ge(f.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
3849
|
+
])) : Xu("", !0)
|
|
3850
|
+
], 2))
|
|
3851
|
+
], 6));
|
|
3852
|
+
}
|
|
3853
|
+
}), Cu = /* @__PURE__ */ re(xi, [["__scopeId", "data-v-1d4a4139"]]), gi = /* @__PURE__ */ Du({
|
|
3854
|
+
__name: "BubbleList",
|
|
3855
|
+
props: {
|
|
3856
|
+
items: {},
|
|
3857
|
+
roles: {},
|
|
3858
|
+
loading: { type: Boolean },
|
|
3859
|
+
loadingRole: {},
|
|
3860
|
+
autoScroll: { type: Boolean }
|
|
3861
|
+
},
|
|
3862
|
+
setup(u) {
|
|
3863
|
+
const e = u, t = c0(null), { y: n } = Rn(t, {
|
|
3864
|
+
behavior: "smooth",
|
|
3865
|
+
throttle: 100
|
|
3866
|
+
}), r = J(() => e.items.at(-1));
|
|
3867
|
+
An(
|
|
3868
|
+
[() => e.items.length, () => {
|
|
3869
|
+
var c;
|
|
3870
|
+
return (c = r.value) == null ? void 0 : c.content;
|
|
3871
|
+
}],
|
|
3872
|
+
() => {
|
|
3873
|
+
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
3874
|
+
},
|
|
3875
|
+
{ deep: !0 }
|
|
3876
|
+
);
|
|
3877
|
+
const o = J(() => e.items.map((c) => {
|
|
3878
|
+
var h;
|
|
3879
|
+
const a = c.role ? ((h = e.roles) == null ? void 0 : h[c.role]) || {} : {};
|
|
3880
|
+
if (a.hidden)
|
|
3881
|
+
return null;
|
|
3882
|
+
const { slots: s, hidden: d, ...f } = a, { slots: _, ...p } = c;
|
|
3883
|
+
return {
|
|
3884
|
+
id: c.id,
|
|
3885
|
+
props: { ...f, ...p, "data-role": c.role },
|
|
3886
|
+
slots: { ...s, ..._ }
|
|
3887
|
+
};
|
|
3888
|
+
}).filter((c) => !!c)), i = J(() => {
|
|
3889
|
+
var s;
|
|
3890
|
+
if (!(e.loading && e.loadingRole && ((s = e.roles) != null && s[e.loadingRole])))
|
|
3891
|
+
return null;
|
|
3892
|
+
const { slots: c, ...a } = e.roles[e.loadingRole];
|
|
3893
|
+
return { props: { ...a, loading: !0 }, slots: c };
|
|
3894
|
+
});
|
|
3895
|
+
return (c, a) => (S(), $("div", {
|
|
3896
|
+
class: "tr-bubble-list",
|
|
3897
|
+
ref_key: "scrollContainerRef",
|
|
3898
|
+
ref: t
|
|
3899
|
+
}, [
|
|
3900
|
+
(S(!0), $(u0, null, ke(o.value, (s, d) => (S(), eu(Cu, Ju({
|
|
3901
|
+
key: s.id || d
|
|
3902
|
+
}, { ref_for: !0 }, s.props), G0({ _: 2 }, [
|
|
3903
|
+
ke(s.slots, (f, _) => ({
|
|
3904
|
+
name: _,
|
|
3905
|
+
fn: W0((p) => [
|
|
3906
|
+
(S(), eu(mu(f), Ju({ ref_for: !0 }, p), null, 16))
|
|
3907
|
+
])
|
|
3908
|
+
}))
|
|
3909
|
+
]), 1040))), 128)),
|
|
3910
|
+
i.value ? (S(), eu(Cu, Ae(Ju({ key: 0 }, i.value.props)), G0({ _: 2 }, [
|
|
3911
|
+
ke(i.value.slots, (s, d) => ({
|
|
3912
|
+
name: d,
|
|
3913
|
+
fn: W0((f) => [
|
|
3914
|
+
(S(), eu(mu(s), Ae(Cn(f)), null, 16))
|
|
3915
|
+
])
|
|
3916
|
+
}))
|
|
3917
|
+
]), 1040)) : Xu("", !0)
|
|
3918
|
+
], 512));
|
|
3919
|
+
}
|
|
3920
|
+
}), te = /* @__PURE__ */ re(gi, [["__scopeId", "data-v-4f1ab0c2"]]), ne = /* @__PURE__ */ Du({
|
|
3956
3921
|
__name: "BubbleProvider",
|
|
3957
3922
|
props: {
|
|
3958
|
-
|
|
3923
|
+
contentRenderers: { default: () => ({}) }
|
|
3959
3924
|
},
|
|
3960
3925
|
setup(u) {
|
|
3961
3926
|
const e = u, t = /* @__PURE__ */ new Map();
|
|
3962
|
-
for (const [n, r] of
|
|
3927
|
+
for (const [n, r] of Ct.entries())
|
|
3963
3928
|
t.set(n, r);
|
|
3964
|
-
for (const [n, r] of Object.entries(e.
|
|
3929
|
+
for (const [n, r] of Object.entries(e.contentRenderers))
|
|
3965
3930
|
t.set(n, r);
|
|
3966
|
-
return
|
|
3931
|
+
return Z0(Dt, t), Z0(yt, s0), (n, r) => ge(n.$slots, "default");
|
|
3967
3932
|
}
|
|
3968
3933
|
});
|
|
3969
|
-
|
|
3970
|
-
const
|
|
3971
|
-
u.component(
|
|
3972
|
-
};
|
|
3973
|
-
|
|
3974
|
-
const
|
|
3975
|
-
|
|
3976
|
-
const
|
|
3934
|
+
Cu.name = "TrBubble";
|
|
3935
|
+
const ki = function(u) {
|
|
3936
|
+
u.component(Cu.name, Cu);
|
|
3937
|
+
};
|
|
3938
|
+
Cu.install = ki;
|
|
3939
|
+
const Ri = Cu;
|
|
3940
|
+
te.name = "TrBubbleList";
|
|
3941
|
+
const Ei = function(u) {
|
|
3942
|
+
u.component(te.name, te);
|
|
3943
|
+
};
|
|
3944
|
+
te.install = Ei;
|
|
3945
|
+
const Ii = te;
|
|
3946
|
+
ne.name = "TrBubbleProvider";
|
|
3947
|
+
const Ai = function(u) {
|
|
3977
3948
|
u.component(ne.name, ne);
|
|
3978
3949
|
};
|
|
3979
|
-
ne.install =
|
|
3980
|
-
const
|
|
3981
|
-
ae.name = "TrBubbleProvider";
|
|
3982
|
-
const wi = function(u) {
|
|
3983
|
-
u.component(ae.name, ae);
|
|
3984
|
-
};
|
|
3985
|
-
ae.install = wi;
|
|
3986
|
-
const Ui = ae;
|
|
3950
|
+
ne.install = Ai;
|
|
3951
|
+
const Mi = ne;
|
|
3987
3952
|
export {
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
Ui as BubbleProvider
|
|
3953
|
+
Ri as Bubble,
|
|
3954
|
+
a0 as BubbleContentClassRenderer,
|
|
3955
|
+
Ii as BubbleList,
|
|
3956
|
+
vi as BubbleMarkdownContentRenderer,
|
|
3957
|
+
Mi as BubbleProvider
|
|
3994
3958
|
};
|