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