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