@adyen/bento-vue3 1.75.0 → 1.76.1
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/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/chunks/calendar.Tm7Cvpwu.js +2001 -0
- package/dist/chunks/calendar.Tm7Cvpwu.js.map +1 -0
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{dashboard-section.CVttsom5.js → dashboard-section.Cqi0PWeJ.js} +2 -2
- package/dist/chunks/{dashboard-section.CVttsom5.js.map → dashboard-section.Cqi0PWeJ.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CFt1NV_4.js → data-grid-template.D7kB3S1u.js} +2 -2
- package/dist/chunks/{data-grid-template.CFt1NV_4.js.map → data-grid-template.D7kB3S1u.js.map} +1 -1
- package/dist/chunks/{data-grid.8Neri_45.js → data-grid.Bi4JDhQD.js} +17 -20
- package/dist/chunks/{data-grid.8Neri_45.js.map → data-grid.Bi4JDhQD.js.map} +1 -1
- package/dist/chunks/{date-picker.DSkvT_CA.js → date-picker.OI-sQ232.js} +4 -4
- package/dist/chunks/date-picker.OI-sQ232.js.map +1 -0
- package/dist/chunks/date-range-picker.DkEoczJ0.js +1114 -0
- package/dist/chunks/date-range-picker.DkEoczJ0.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.C6A0MJ8m.js → filter-bar.DdSw_K3n.js} +733 -707
- package/dist/chunks/filter-bar.DdSw_K3n.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.BE6QfUNi.js +221 -0
- package/dist/chunks/header-meta.BE6QfUNi.js.map +1 -0
- package/dist/chunks/{header-with-views.f5BlTD7U.js → header-with-views.DLAINkjk.js} +2 -2
- package/dist/chunks/{header-with-views.f5BlTD7U.js.map → header-with-views.DLAINkjk.js.map} +1 -1
- package/dist/chunks/{header.DARVAeE9.js → header.3It50Clh.js} +2 -2
- package/dist/chunks/{header.DARVAeE9.js.map → header.3It50Clh.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BK9AivIm.js → rich-text-editor.Bh7KS617.js} +353 -351
- package/dist/chunks/{rich-text-editor.BK9AivIm.js.map → rich-text-editor.Bh7KS617.js.map} +1 -1
- package/dist/chunks/timeline-item.DNjubXL2.js +556 -0
- package/dist/chunks/timeline-item.DNjubXL2.js.map +1 -0
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +11 -11
- package/dist/internal.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -23
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.Cqjyxc69.js +0 -2223
- package/dist/chunks/calendar.Cqjyxc69.js.map +0 -1
- package/dist/chunks/date-picker.DSkvT_CA.js.map +0 -1
- package/dist/chunks/date-range-picker.DSMt6XMF.js +0 -1117
- package/dist/chunks/date-range-picker.DSMt6XMF.js.map +0 -1
- package/dist/chunks/filter-bar.C6A0MJ8m.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.C4iaUsfq.js +0 -236
- package/dist/chunks/header-meta.C4iaUsfq.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/timeline-item.C8PA_w7m.js +0 -568
- package/dist/chunks/timeline-item.C8PA_w7m.js.map +0 -1
|
@@ -8,10 +8,9 @@ import { B as xr } from "./checkbox.BI0dqARY.js";
|
|
|
8
8
|
import { u as br } from "./index.pdBj0KQU.js";
|
|
9
9
|
import { u as yr } from "./aria-label.CaUURpnB.js";
|
|
10
10
|
import { g as Re } from "./generate-uid.NJ8tVoha.js";
|
|
11
|
-
import {
|
|
12
|
-
import { F as Fr, E as Sr } from "./field-label.C97CrBI_.js";
|
|
11
|
+
import { F as wr, E as Fr } from "./field-label.C97CrBI_.js";
|
|
13
12
|
import "../assets/rich-text-editor.css";
|
|
14
|
-
const
|
|
13
|
+
const Sr = ["disabled"], Cr = /* @__PURE__ */ Dt({
|
|
15
14
|
__name: "rich-text-editor-content-area",
|
|
16
15
|
props: {
|
|
17
16
|
value: { default: null },
|
|
@@ -39,9 +38,9 @@ const Cr = ["disabled"], Ar = /* @__PURE__ */ Dt({
|
|
|
39
38
|
class: "b-rich-text-editor-content-area",
|
|
40
39
|
onInput: l,
|
|
41
40
|
onKeydown: u
|
|
42
|
-
}, null, 40,
|
|
41
|
+
}, null, 40, Sr));
|
|
43
42
|
}
|
|
44
|
-
}),
|
|
43
|
+
}), Ar = /* @__PURE__ */ Fe(Cr, [["__scopeId", "data-v-36c7b18d"]]);
|
|
45
44
|
function X(t, n, e, r) {
|
|
46
45
|
const i = t.length;
|
|
47
46
|
let l = 0, u;
|
|
@@ -59,10 +58,10 @@ function yn(t) {
|
|
|
59
58
|
const n = {};
|
|
60
59
|
let e = -1;
|
|
61
60
|
for (; ++e < t.length; )
|
|
62
|
-
|
|
61
|
+
Er(n, t[e]);
|
|
63
62
|
return n;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
64
|
+
function Er(t, n) {
|
|
66
65
|
let e;
|
|
67
66
|
for (e in n) {
|
|
68
67
|
const i = (je.call(t, e) ? t[e] : void 0) || (t[e] = {}), l = n[e];
|
|
@@ -71,7 +70,7 @@ function zr(t, n) {
|
|
|
71
70
|
for (u in l) {
|
|
72
71
|
je.call(i, u) || (i[u] = []);
|
|
73
72
|
const a = l[u];
|
|
74
|
-
|
|
73
|
+
zr(
|
|
75
74
|
// @ts-expect-error Looks like a list.
|
|
76
75
|
i[u],
|
|
77
76
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -79,14 +78,14 @@ function zr(t, n) {
|
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function zr(t, n) {
|
|
83
82
|
let e = -1;
|
|
84
83
|
const r = [];
|
|
85
84
|
for (; ++e < n.length; )
|
|
86
85
|
(n[e].add === "after" ? t : r).push(n[e]);
|
|
87
86
|
X(t, 0, 0, r);
|
|
88
87
|
}
|
|
89
|
-
const
|
|
88
|
+
const Ir = /[!-\/:-@\[-`\{-~\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]/, G = bt(/[A-Za-z]/), J = bt(/[\dA-Za-z]/), Tr = bt(/[#-'*+\--9=?A-Z^-~]/);
|
|
90
89
|
function Wt(t) {
|
|
91
90
|
return (
|
|
92
91
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -94,7 +93,7 @@ function Wt(t) {
|
|
|
94
93
|
t !== null && (t < 32 || t === 127)
|
|
95
94
|
);
|
|
96
95
|
}
|
|
97
|
-
const ge = bt(/\d/),
|
|
96
|
+
const ge = bt(/\d/), Dr = bt(/[\dA-Fa-f]/), _r = bt(/[!-/:-@[-`{-~]/);
|
|
98
97
|
function T(t) {
|
|
99
98
|
return t !== null && t < -2;
|
|
100
99
|
}
|
|
@@ -104,38 +103,38 @@ function V(t) {
|
|
|
104
103
|
function B(t) {
|
|
105
104
|
return t === -2 || t === -1 || t === 32;
|
|
106
105
|
}
|
|
107
|
-
const Zt = bt(
|
|
106
|
+
const Zt = bt(Ir), St = bt(/\s/);
|
|
108
107
|
function bt(t) {
|
|
109
108
|
return n;
|
|
110
109
|
function n(e) {
|
|
111
110
|
return e !== null && t.test(String.fromCharCode(e));
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
|
-
const
|
|
115
|
-
tokenize:
|
|
113
|
+
const Lr = {
|
|
114
|
+
tokenize: jr,
|
|
116
115
|
partial: !0
|
|
117
116
|
}, wn = {
|
|
118
|
-
tokenize:
|
|
117
|
+
tokenize: Vr,
|
|
119
118
|
partial: !0
|
|
120
119
|
}, Fn = {
|
|
121
|
-
tokenize:
|
|
120
|
+
tokenize: qr,
|
|
122
121
|
partial: !0
|
|
123
122
|
}, Sn = {
|
|
124
|
-
tokenize:
|
|
123
|
+
tokenize: Hr,
|
|
125
124
|
partial: !0
|
|
126
|
-
},
|
|
127
|
-
tokenize:
|
|
125
|
+
}, Br = {
|
|
126
|
+
tokenize: Nr,
|
|
128
127
|
partial: !0
|
|
129
128
|
}, Cn = {
|
|
130
|
-
tokenize:
|
|
129
|
+
tokenize: Or,
|
|
131
130
|
previous: En
|
|
132
131
|
}, An = {
|
|
133
|
-
tokenize:
|
|
132
|
+
tokenize: Rr,
|
|
134
133
|
previous: zn
|
|
135
134
|
}, mt = {
|
|
136
|
-
tokenize:
|
|
135
|
+
tokenize: Mr,
|
|
137
136
|
previous: In
|
|
138
|
-
}, at = {},
|
|
137
|
+
}, at = {}, Pr = {
|
|
139
138
|
text: at
|
|
140
139
|
};
|
|
141
140
|
let yt = 48;
|
|
@@ -149,7 +148,7 @@ at[72] = [mt, An];
|
|
|
149
148
|
at[104] = [mt, An];
|
|
150
149
|
at[87] = [mt, Cn];
|
|
151
150
|
at[119] = [mt, Cn];
|
|
152
|
-
function
|
|
151
|
+
function Mr(t, n, e) {
|
|
153
152
|
const r = this;
|
|
154
153
|
let i, l;
|
|
155
154
|
return u;
|
|
@@ -161,7 +160,7 @@ function Or(t, n, e) {
|
|
|
161
160
|
}
|
|
162
161
|
function c(o) {
|
|
163
162
|
return o === 46 ? t.check(
|
|
164
|
-
|
|
163
|
+
Br,
|
|
165
164
|
f,
|
|
166
165
|
s
|
|
167
166
|
)(o) : o === 45 || o === 95 || J(o) ? (l = !0, t.consume(o), c) : f(o);
|
|
@@ -173,12 +172,12 @@ function Or(t, n, e) {
|
|
|
173
172
|
return l && i && G(r.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), n(o)) : e(o);
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
|
-
function
|
|
175
|
+
function Or(t, n, e) {
|
|
177
176
|
const r = this;
|
|
178
177
|
return i;
|
|
179
178
|
function i(u) {
|
|
180
179
|
return u !== 87 && u !== 119 || !En.call(r, r.previous) || Se(r.events) ? e(u) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
181
|
-
|
|
180
|
+
Lr,
|
|
182
181
|
t.attempt(wn, t.attempt(Fn, l), e),
|
|
183
182
|
e
|
|
184
183
|
)(u));
|
|
@@ -187,7 +186,7 @@ function Rr(t, n, e) {
|
|
|
187
186
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), n(u);
|
|
188
187
|
}
|
|
189
188
|
}
|
|
190
|
-
function
|
|
189
|
+
function Rr(t, n, e) {
|
|
191
190
|
const r = this;
|
|
192
191
|
let i = "", l = !1;
|
|
193
192
|
return u;
|
|
@@ -214,7 +213,7 @@ function jr(t, n, e) {
|
|
|
214
213
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), n(o);
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
|
-
function
|
|
216
|
+
function jr(t, n, e) {
|
|
218
217
|
let r = 0;
|
|
219
218
|
return i;
|
|
220
219
|
function i(u) {
|
|
@@ -224,7 +223,7 @@ function Vr(t, n, e) {
|
|
|
224
223
|
return u === null ? e(u) : n(u);
|
|
225
224
|
}
|
|
226
225
|
}
|
|
227
|
-
function
|
|
226
|
+
function Vr(t, n, e) {
|
|
228
227
|
let r, i, l;
|
|
229
228
|
return u;
|
|
230
229
|
function u(s) {
|
|
@@ -237,7 +236,7 @@ function qr(t, n, e) {
|
|
|
237
236
|
return i || r || !l ? e(s) : n(s);
|
|
238
237
|
}
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function qr(t, n) {
|
|
241
240
|
let e = 0, r = 0;
|
|
242
241
|
return i;
|
|
243
242
|
function i(u) {
|
|
@@ -247,7 +246,7 @@ function Hr(t, n) {
|
|
|
247
246
|
return u === 41 && r++, t.consume(u), i;
|
|
248
247
|
}
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function Hr(t, n, e) {
|
|
251
250
|
return r;
|
|
252
251
|
function r(a) {
|
|
253
252
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (t.consume(a), r) : a === 38 ? (t.consume(a), l) : a === 93 ? (t.consume(a), i) : (
|
|
@@ -266,7 +265,7 @@ function Nr(t, n, e) {
|
|
|
266
265
|
return a === 59 ? (t.consume(a), r) : G(a) ? (t.consume(a), u) : e(a);
|
|
267
266
|
}
|
|
268
267
|
}
|
|
269
|
-
function
|
|
268
|
+
function Nr(t, n, e) {
|
|
270
269
|
return r;
|
|
271
270
|
function r(l) {
|
|
272
271
|
return t.consume(l), i;
|
|
@@ -319,10 +318,10 @@ function Gt(t, n, e) {
|
|
|
319
318
|
}
|
|
320
319
|
const ke = {
|
|
321
320
|
name: "attention",
|
|
322
|
-
tokenize:
|
|
323
|
-
resolveAll:
|
|
321
|
+
tokenize: Ur,
|
|
322
|
+
resolveAll: $r
|
|
324
323
|
};
|
|
325
|
-
function
|
|
324
|
+
function $r(t, n) {
|
|
326
325
|
let e = -1, r, i, l, u, a, c, s, f;
|
|
327
326
|
for (; ++e < t.length; )
|
|
328
327
|
if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
|
|
@@ -380,7 +379,7 @@ function Ur(t, n) {
|
|
|
380
379
|
t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
|
|
381
380
|
return t;
|
|
382
381
|
}
|
|
383
|
-
function
|
|
382
|
+
function Ur(t, n) {
|
|
384
383
|
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i = vt(r);
|
|
385
384
|
let l;
|
|
386
385
|
return u;
|
|
@@ -397,11 +396,11 @@ function Wr(t, n) {
|
|
|
397
396
|
function Ve(t, n) {
|
|
398
397
|
t.column += n, t.offset += n, t._bufferIndex += n;
|
|
399
398
|
}
|
|
400
|
-
const
|
|
399
|
+
const Wr = {
|
|
401
400
|
name: "autolink",
|
|
402
|
-
tokenize:
|
|
401
|
+
tokenize: vr
|
|
403
402
|
};
|
|
404
|
-
function
|
|
403
|
+
function vr(t, n, e) {
|
|
405
404
|
let r = 0;
|
|
406
405
|
return i;
|
|
407
406
|
function i(h) {
|
|
@@ -420,7 +419,7 @@ function Qr(t, n, e) {
|
|
|
420
419
|
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 || Wt(h) ? e(h) : (t.consume(h), c);
|
|
421
420
|
}
|
|
422
421
|
function s(h) {
|
|
423
|
-
return h === 64 ? (t.consume(h), f) :
|
|
422
|
+
return h === 64 ? (t.consume(h), f) : Tr(h) ? (t.consume(h), s) : e(h);
|
|
424
423
|
}
|
|
425
424
|
function f(h) {
|
|
426
425
|
return J(h) ? o(h) : e(h);
|
|
@@ -448,10 +447,10 @@ function P(t, n, e, r) {
|
|
|
448
447
|
}
|
|
449
448
|
}
|
|
450
449
|
const Ot = {
|
|
451
|
-
tokenize:
|
|
450
|
+
tokenize: Qr,
|
|
452
451
|
partial: !0
|
|
453
452
|
};
|
|
454
|
-
function
|
|
453
|
+
function Qr(t, n, e) {
|
|
455
454
|
return r;
|
|
456
455
|
function r(l) {
|
|
457
456
|
return B(l) ? P(t, i, "linePrefix")(l) : i(l);
|
|
@@ -462,13 +461,13 @@ function Zr(t, n, e) {
|
|
|
462
461
|
}
|
|
463
462
|
const Tn = {
|
|
464
463
|
name: "blockQuote",
|
|
465
|
-
tokenize:
|
|
464
|
+
tokenize: Zr,
|
|
466
465
|
continuation: {
|
|
467
|
-
tokenize:
|
|
466
|
+
tokenize: Gr
|
|
468
467
|
},
|
|
469
|
-
exit:
|
|
468
|
+
exit: Yr
|
|
470
469
|
};
|
|
471
|
-
function
|
|
470
|
+
function Zr(t, n, e) {
|
|
472
471
|
const r = this;
|
|
473
472
|
return i;
|
|
474
473
|
function i(u) {
|
|
@@ -484,7 +483,7 @@ function Gr(t, n, e) {
|
|
|
484
483
|
return B(u) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(u), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), n) : (t.exit("blockQuotePrefix"), n(u));
|
|
485
484
|
}
|
|
486
485
|
}
|
|
487
|
-
function
|
|
486
|
+
function Gr(t, n, e) {
|
|
488
487
|
const r = this;
|
|
489
488
|
return i;
|
|
490
489
|
function i(u) {
|
|
@@ -499,20 +498,20 @@ function Yr(t, n, e) {
|
|
|
499
498
|
return t.attempt(Tn, n, e)(u);
|
|
500
499
|
}
|
|
501
500
|
}
|
|
502
|
-
function
|
|
501
|
+
function Yr(t) {
|
|
503
502
|
t.exit("blockQuote");
|
|
504
503
|
}
|
|
505
504
|
const Dn = {
|
|
506
505
|
name: "characterEscape",
|
|
507
|
-
tokenize:
|
|
506
|
+
tokenize: Jr
|
|
508
507
|
};
|
|
509
|
-
function
|
|
508
|
+
function Jr(t, n, e) {
|
|
510
509
|
return r;
|
|
511
510
|
function r(l) {
|
|
512
511
|
return t.enter("characterEscape"), t.enter("escapeMarker"), t.consume(l), t.exit("escapeMarker"), i;
|
|
513
512
|
}
|
|
514
513
|
function i(l) {
|
|
515
|
-
return
|
|
514
|
+
return _r(l) ? (t.enter("characterEscapeValue"), t.consume(l), t.exit("characterEscapeValue"), t.exit("characterEscape"), n) : e(l);
|
|
516
515
|
}
|
|
517
516
|
}
|
|
518
517
|
const qe = document.createElement("i");
|
|
@@ -528,9 +527,9 @@ function Ce(t) {
|
|
|
528
527
|
}
|
|
529
528
|
const _n = {
|
|
530
529
|
name: "characterReference",
|
|
531
|
-
tokenize:
|
|
530
|
+
tokenize: Kr
|
|
532
531
|
};
|
|
533
|
-
function
|
|
532
|
+
function Kr(t, n, e) {
|
|
534
533
|
const r = this;
|
|
535
534
|
let i = 0, l, u;
|
|
536
535
|
return a;
|
|
@@ -541,7 +540,7 @@ function Xr(t, n, e) {
|
|
|
541
540
|
return o === 35 ? (t.enter("characterReferenceMarkerNumeric"), t.consume(o), t.exit("characterReferenceMarkerNumeric"), s) : (t.enter("characterReferenceValue"), l = 31, u = J, f(o));
|
|
542
541
|
}
|
|
543
542
|
function s(o) {
|
|
544
|
-
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u =
|
|
543
|
+
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u = Dr, f) : (t.enter("characterReferenceValue"), l = 7, u = ge, f(o));
|
|
545
544
|
}
|
|
546
545
|
function f(o) {
|
|
547
546
|
if (o === 59 && i) {
|
|
@@ -552,14 +551,14 @@ function Xr(t, n, e) {
|
|
|
552
551
|
}
|
|
553
552
|
}
|
|
554
553
|
const He = {
|
|
555
|
-
tokenize:
|
|
554
|
+
tokenize: ti,
|
|
556
555
|
partial: !0
|
|
557
556
|
}, Ne = {
|
|
558
557
|
name: "codeFenced",
|
|
559
|
-
tokenize:
|
|
558
|
+
tokenize: Xr,
|
|
560
559
|
concrete: !0
|
|
561
560
|
};
|
|
562
|
-
function
|
|
561
|
+
function Xr(t, n, e) {
|
|
563
562
|
const r = this, i = {
|
|
564
563
|
tokenize: z,
|
|
565
564
|
partial: !0
|
|
@@ -640,7 +639,7 @@ function ti(t, n, e) {
|
|
|
640
639
|
}
|
|
641
640
|
}
|
|
642
641
|
}
|
|
643
|
-
function
|
|
642
|
+
function ti(t, n, e) {
|
|
644
643
|
const r = this;
|
|
645
644
|
return i;
|
|
646
645
|
function i(u) {
|
|
@@ -652,12 +651,12 @@ function ei(t, n, e) {
|
|
|
652
651
|
}
|
|
653
652
|
const ee = {
|
|
654
653
|
name: "codeIndented",
|
|
655
|
-
tokenize:
|
|
656
|
-
},
|
|
657
|
-
tokenize:
|
|
654
|
+
tokenize: ni
|
|
655
|
+
}, ei = {
|
|
656
|
+
tokenize: ri,
|
|
658
657
|
partial: !0
|
|
659
658
|
};
|
|
660
|
-
function
|
|
659
|
+
function ni(t, n, e) {
|
|
661
660
|
const r = this;
|
|
662
661
|
return i;
|
|
663
662
|
function i(s) {
|
|
@@ -668,7 +667,7 @@ function ri(t, n, e) {
|
|
|
668
667
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? u(s) : e(s);
|
|
669
668
|
}
|
|
670
669
|
function u(s) {
|
|
671
|
-
return s === null ? c(s) : T(s) ? t.attempt(
|
|
670
|
+
return s === null ? c(s) : T(s) ? t.attempt(ei, u, c)(s) : (t.enter("codeFlowValue"), a(s));
|
|
672
671
|
}
|
|
673
672
|
function a(s) {
|
|
674
673
|
return s === null || T(s) ? (t.exit("codeFlowValue"), u(s)) : (t.consume(s), a);
|
|
@@ -677,7 +676,7 @@ function ri(t, n, e) {
|
|
|
677
676
|
return t.exit("codeIndented"), n(s);
|
|
678
677
|
}
|
|
679
678
|
}
|
|
680
|
-
function
|
|
679
|
+
function ri(t, n, e) {
|
|
681
680
|
const r = this;
|
|
682
681
|
return i;
|
|
683
682
|
function i(u) {
|
|
@@ -688,13 +687,13 @@ function ii(t, n, e) {
|
|
|
688
687
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(u) : T(u) ? i(u) : e(u);
|
|
689
688
|
}
|
|
690
689
|
}
|
|
691
|
-
const
|
|
690
|
+
const ii = {
|
|
692
691
|
name: "codeText",
|
|
693
|
-
tokenize:
|
|
694
|
-
resolve:
|
|
695
|
-
previous:
|
|
692
|
+
tokenize: ai,
|
|
693
|
+
resolve: ui,
|
|
694
|
+
previous: li
|
|
696
695
|
};
|
|
697
|
-
function
|
|
696
|
+
function ui(t) {
|
|
698
697
|
let n = t.length - 4, e = 3, r, i;
|
|
699
698
|
if ((t[e][1].type === "lineEnding" || t[e][1].type === "space") && (t[n][1].type === "lineEnding" || t[n][1].type === "space")) {
|
|
700
699
|
for (r = e; ++r < n; )
|
|
@@ -707,10 +706,10 @@ function li(t) {
|
|
|
707
706
|
i === void 0 ? r !== n && t[r][1].type !== "lineEnding" && (i = r) : (r === n || t[r][1].type === "lineEnding") && (t[i][1].type = "codeTextData", r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
708
707
|
return t;
|
|
709
708
|
}
|
|
710
|
-
function
|
|
709
|
+
function li(t) {
|
|
711
710
|
return t !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
712
711
|
}
|
|
713
|
-
function
|
|
712
|
+
function ai(t, n, e) {
|
|
714
713
|
let r = 0, i, l;
|
|
715
714
|
return u;
|
|
716
715
|
function u(o) {
|
|
@@ -739,7 +738,7 @@ function Ln(t) {
|
|
|
739
738
|
for (; ++l < c.length && c[l][1].type !== "content"; )
|
|
740
739
|
c[l][1].type === "chunkText" && (c[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
741
740
|
if (r[0] === "enter")
|
|
742
|
-
r[1].contentType && (Object.assign(n,
|
|
741
|
+
r[1].contentType && (Object.assign(n, oi(t, e)), e = n[e], s = !0);
|
|
743
742
|
else if (r[1]._container) {
|
|
744
743
|
for (l = e, i = void 0; l-- && (u = t[l], u[1].type === "lineEnding" || u[1].type === "lineEndingBlank"); )
|
|
745
744
|
u[0] === "enter" && (i && (t[i][1].type = "lineEndingBlank"), u[1].type = "lineEnding", i = l);
|
|
@@ -748,7 +747,7 @@ function Ln(t) {
|
|
|
748
747
|
}
|
|
749
748
|
return !s;
|
|
750
749
|
}
|
|
751
|
-
function
|
|
750
|
+
function oi(t, n) {
|
|
752
751
|
const e = t[n][1], r = t[n][2];
|
|
753
752
|
let i = n - 1;
|
|
754
753
|
const l = [], u = e._tokenizer || r.parser[e.contentType](e.start), a = u.events, c = [], s = {};
|
|
@@ -770,17 +769,17 @@ function si(t, n) {
|
|
|
770
769
|
s[d + c[g][0]] = d + c[g][1], d += c[g][1] - c[g][0] - 1;
|
|
771
770
|
return s;
|
|
772
771
|
}
|
|
773
|
-
const
|
|
772
|
+
const si = {
|
|
773
|
+
tokenize: hi,
|
|
774
|
+
resolve: fi
|
|
775
|
+
}, ci = {
|
|
774
776
|
tokenize: pi,
|
|
775
|
-
resolve: hi
|
|
776
|
-
}, fi = {
|
|
777
|
-
tokenize: mi,
|
|
778
777
|
partial: !0
|
|
779
778
|
};
|
|
780
|
-
function
|
|
779
|
+
function fi(t) {
|
|
781
780
|
return Ln(t), t;
|
|
782
781
|
}
|
|
783
|
-
function
|
|
782
|
+
function hi(t, n) {
|
|
784
783
|
let e;
|
|
785
784
|
return r;
|
|
786
785
|
function r(a) {
|
|
@@ -790,7 +789,7 @@ function pi(t, n) {
|
|
|
790
789
|
}
|
|
791
790
|
function i(a) {
|
|
792
791
|
return a === null ? l(a) : T(a) ? t.check(
|
|
793
|
-
|
|
792
|
+
ci,
|
|
794
793
|
u,
|
|
795
794
|
l
|
|
796
795
|
)(a) : (t.consume(a), i);
|
|
@@ -805,7 +804,7 @@ function pi(t, n) {
|
|
|
805
804
|
}), e = e.next, i;
|
|
806
805
|
}
|
|
807
806
|
}
|
|
808
|
-
function
|
|
807
|
+
function pi(t, n, e) {
|
|
809
808
|
const r = this;
|
|
810
809
|
return i;
|
|
811
810
|
function i(u) {
|
|
@@ -904,14 +903,14 @@ function Mt(t, n) {
|
|
|
904
903
|
function ut(t) {
|
|
905
904
|
return t.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
906
905
|
}
|
|
907
|
-
const
|
|
906
|
+
const mi = {
|
|
908
907
|
name: "definition",
|
|
909
|
-
tokenize:
|
|
910
|
-
},
|
|
911
|
-
tokenize:
|
|
908
|
+
tokenize: di
|
|
909
|
+
}, gi = {
|
|
910
|
+
tokenize: ki,
|
|
912
911
|
partial: !0
|
|
913
912
|
};
|
|
914
|
-
function
|
|
913
|
+
function di(t, n, e) {
|
|
915
914
|
const r = this;
|
|
916
915
|
let i;
|
|
917
916
|
return l;
|
|
@@ -952,7 +951,7 @@ function ki(t, n, e) {
|
|
|
952
951
|
)(h);
|
|
953
952
|
}
|
|
954
953
|
function f(h) {
|
|
955
|
-
return t.attempt(
|
|
954
|
+
return t.attempt(gi, o, o)(h);
|
|
956
955
|
}
|
|
957
956
|
function o(h) {
|
|
958
957
|
return B(h) ? P(t, g, "whitespace")(h) : g(h);
|
|
@@ -961,7 +960,7 @@ function ki(t, n, e) {
|
|
|
961
960
|
return h === null || T(h) ? (t.exit("definition"), r.parser.defined.push(i), n(h)) : e(h);
|
|
962
961
|
}
|
|
963
962
|
}
|
|
964
|
-
function
|
|
963
|
+
function ki(t, n, e) {
|
|
965
964
|
return r;
|
|
966
965
|
function r(a) {
|
|
967
966
|
return V(a) ? Mt(t, i)(a) : e(a);
|
|
@@ -983,11 +982,11 @@ function xi(t, n, e) {
|
|
|
983
982
|
return a === null || T(a) ? n(a) : e(a);
|
|
984
983
|
}
|
|
985
984
|
}
|
|
986
|
-
const
|
|
985
|
+
const xi = {
|
|
987
986
|
name: "hardBreakEscape",
|
|
988
|
-
tokenize:
|
|
987
|
+
tokenize: bi
|
|
989
988
|
};
|
|
990
|
-
function
|
|
989
|
+
function bi(t, n, e) {
|
|
991
990
|
return r;
|
|
992
991
|
function r(l) {
|
|
993
992
|
return t.enter("hardBreakEscape"), t.consume(l), i;
|
|
@@ -996,12 +995,12 @@ function yi(t, n, e) {
|
|
|
996
995
|
return T(l) ? (t.exit("hardBreakEscape"), n(l)) : e(l);
|
|
997
996
|
}
|
|
998
997
|
}
|
|
999
|
-
const
|
|
998
|
+
const yi = {
|
|
1000
999
|
name: "headingAtx",
|
|
1001
|
-
tokenize:
|
|
1002
|
-
resolve:
|
|
1000
|
+
tokenize: Fi,
|
|
1001
|
+
resolve: wi
|
|
1003
1002
|
};
|
|
1004
|
-
function
|
|
1003
|
+
function wi(t, n) {
|
|
1005
1004
|
let e = t.length - 2, r = 3, i, l;
|
|
1006
1005
|
return t[r][1].type === "whitespace" && (r += 2), e - 2 > r && t[e][1].type === "whitespace" && (e -= 2), t[e][1].type === "atxHeadingSequence" && (r === e - 1 || e - 4 > r && t[e - 2][1].type === "whitespace") && (e -= r + 1 === e ? 2 : 4), e > r && (i = {
|
|
1007
1006
|
type: "atxHeadingText",
|
|
@@ -1019,7 +1018,7 @@ function Fi(t, n) {
|
|
|
1019
1018
|
["exit", i, n]
|
|
1020
1019
|
])), t;
|
|
1021
1020
|
}
|
|
1022
|
-
function
|
|
1021
|
+
function Fi(t, n, e) {
|
|
1023
1022
|
let r = 0;
|
|
1024
1023
|
return i;
|
|
1025
1024
|
function i(f) {
|
|
@@ -1041,7 +1040,7 @@ function Si(t, n, e) {
|
|
|
1041
1040
|
return f === null || f === 35 || V(f) ? (t.exit("atxHeadingText"), a(f)) : (t.consume(f), s);
|
|
1042
1041
|
}
|
|
1043
1042
|
}
|
|
1044
|
-
const
|
|
1043
|
+
const Si = [
|
|
1045
1044
|
"address",
|
|
1046
1045
|
"article",
|
|
1047
1046
|
"aside",
|
|
@@ -1104,25 +1103,25 @@ const Ci = [
|
|
|
1104
1103
|
"tr",
|
|
1105
1104
|
"track",
|
|
1106
1105
|
"ul"
|
|
1107
|
-
], $e = ["pre", "script", "style", "textarea"],
|
|
1106
|
+
], $e = ["pre", "script", "style", "textarea"], Ci = {
|
|
1108
1107
|
name: "htmlFlow",
|
|
1109
|
-
tokenize:
|
|
1110
|
-
resolveTo:
|
|
1108
|
+
tokenize: Ii,
|
|
1109
|
+
resolveTo: zi,
|
|
1111
1110
|
concrete: !0
|
|
1112
|
-
},
|
|
1113
|
-
tokenize: _i,
|
|
1114
|
-
partial: !0
|
|
1115
|
-
}, zi = {
|
|
1111
|
+
}, Ai = {
|
|
1116
1112
|
tokenize: Di,
|
|
1117
1113
|
partial: !0
|
|
1114
|
+
}, Ei = {
|
|
1115
|
+
tokenize: Ti,
|
|
1116
|
+
partial: !0
|
|
1118
1117
|
};
|
|
1119
|
-
function
|
|
1118
|
+
function zi(t) {
|
|
1120
1119
|
let n = t.length;
|
|
1121
1120
|
for (; n-- && !(t[n][0] === "enter" && t[n][1].type === "htmlFlow"); )
|
|
1122
1121
|
;
|
|
1123
1122
|
return n > 1 && t[n - 2][1].type === "linePrefix" && (t[n][1].start = t[n - 2][1].start, t[n + 1][1].start = t[n - 2][1].start, t.splice(n - 2, 2)), t;
|
|
1124
1123
|
}
|
|
1125
|
-
function
|
|
1124
|
+
function Ii(t, n, e) {
|
|
1126
1125
|
const r = this;
|
|
1127
1126
|
let i, l, u, a, c;
|
|
1128
1127
|
return s;
|
|
@@ -1151,7 +1150,7 @@ function Ti(t, n, e) {
|
|
|
1151
1150
|
function C(m) {
|
|
1152
1151
|
if (m === null || m === 47 || m === 62 || V(m)) {
|
|
1153
1152
|
const rt = m === 47, Ct = u.toLowerCase();
|
|
1154
|
-
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(m) : E(m)) :
|
|
1153
|
+
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(m) : E(m)) : Si.includes(u.toLowerCase()) ? (i = 6, rt ? (t.consume(m), b) : r.interrupt ? n(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? e(m) : l ? I(m) : F(m));
|
|
1155
1154
|
}
|
|
1156
1155
|
return m === 45 || J(m) ? (t.consume(m), u += String.fromCharCode(m), C) : e(m);
|
|
1157
1156
|
}
|
|
@@ -1190,14 +1189,14 @@ function Ti(t, n, e) {
|
|
|
1190
1189
|
}
|
|
1191
1190
|
function E(m) {
|
|
1192
1191
|
return m === 45 && i === 2 ? (t.consume(m), v) : m === 60 && i === 1 ? (t.consume(m), U) : m === 62 && i === 4 ? (t.consume(m), nt) : m === 63 && i === 3 ? (t.consume(m), p) : m === 93 && i === 5 ? (t.consume(m), ot) : T(m) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(
|
|
1193
|
-
|
|
1192
|
+
Ai,
|
|
1194
1193
|
st,
|
|
1195
1194
|
R
|
|
1196
1195
|
)(m)) : m === null || T(m) ? (t.exit("htmlFlowData"), R(m)) : (t.consume(m), E);
|
|
1197
1196
|
}
|
|
1198
1197
|
function R(m) {
|
|
1199
1198
|
return t.check(
|
|
1200
|
-
|
|
1199
|
+
Ei,
|
|
1201
1200
|
H,
|
|
1202
1201
|
st
|
|
1203
1202
|
)(m);
|
|
@@ -1234,7 +1233,7 @@ function Ti(t, n, e) {
|
|
|
1234
1233
|
return t.exit("htmlFlow"), n(m);
|
|
1235
1234
|
}
|
|
1236
1235
|
}
|
|
1237
|
-
function
|
|
1236
|
+
function Ti(t, n, e) {
|
|
1238
1237
|
const r = this;
|
|
1239
1238
|
return i;
|
|
1240
1239
|
function i(u) {
|
|
@@ -1244,17 +1243,17 @@ function Di(t, n, e) {
|
|
|
1244
1243
|
return r.parser.lazy[r.now().line] ? e(u) : n(u);
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
function
|
|
1246
|
+
function Di(t, n, e) {
|
|
1248
1247
|
return r;
|
|
1249
1248
|
function r(i) {
|
|
1250
1249
|
return t.enter("lineEnding"), t.consume(i), t.exit("lineEnding"), t.attempt(Ot, n, e);
|
|
1251
1250
|
}
|
|
1252
1251
|
}
|
|
1253
|
-
const
|
|
1252
|
+
const _i = {
|
|
1254
1253
|
name: "htmlText",
|
|
1255
|
-
tokenize:
|
|
1254
|
+
tokenize: Li
|
|
1256
1255
|
};
|
|
1257
|
-
function
|
|
1256
|
+
function Li(t, n, e) {
|
|
1258
1257
|
const r = this;
|
|
1259
1258
|
let i, l, u;
|
|
1260
1259
|
return a;
|
|
@@ -1354,17 +1353,17 @@ function Bi(t, n, e) {
|
|
|
1354
1353
|
}
|
|
1355
1354
|
const Ae = {
|
|
1356
1355
|
name: "labelEnd",
|
|
1357
|
-
tokenize:
|
|
1358
|
-
resolveTo:
|
|
1359
|
-
resolveAll:
|
|
1356
|
+
tokenize: ji,
|
|
1357
|
+
resolveTo: Ri,
|
|
1358
|
+
resolveAll: Oi
|
|
1359
|
+
}, Bi = {
|
|
1360
|
+
tokenize: Vi
|
|
1360
1361
|
}, Pi = {
|
|
1361
1362
|
tokenize: qi
|
|
1362
1363
|
}, Mi = {
|
|
1363
1364
|
tokenize: Hi
|
|
1364
|
-
}, Oi = {
|
|
1365
|
-
tokenize: Ni
|
|
1366
1365
|
};
|
|
1367
|
-
function
|
|
1366
|
+
function Oi(t) {
|
|
1368
1367
|
let n = -1;
|
|
1369
1368
|
for (; ++n < t.length; ) {
|
|
1370
1369
|
const e = t[n][1];
|
|
@@ -1372,7 +1371,7 @@ function Ri(t) {
|
|
|
1372
1371
|
}
|
|
1373
1372
|
return t;
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1374
|
+
function Ri(t, n) {
|
|
1376
1375
|
let e = t.length, r = 0, i, l, u, a;
|
|
1377
1376
|
for (; e--; )
|
|
1378
1377
|
if (i = t[e][1], l) {
|
|
@@ -1415,7 +1414,7 @@ function ji(t, n) {
|
|
|
1415
1414
|
["exit", s, n]
|
|
1416
1415
|
]), a = tt(a, t.slice(u + 1)), a = tt(a, [["exit", c, n]]), X(t, l, t.length, a), t;
|
|
1417
1416
|
}
|
|
1418
|
-
function
|
|
1417
|
+
function ji(t, n, e) {
|
|
1419
1418
|
const r = this;
|
|
1420
1419
|
let i = r.events.length, l, u;
|
|
1421
1420
|
for (; i--; )
|
|
@@ -1436,18 +1435,18 @@ function Vi(t, n, e) {
|
|
|
1436
1435
|
}
|
|
1437
1436
|
function c(g) {
|
|
1438
1437
|
return g === 40 ? t.attempt(
|
|
1439
|
-
|
|
1438
|
+
Bi,
|
|
1440
1439
|
f,
|
|
1441
1440
|
u ? f : o
|
|
1442
1441
|
)(g) : g === 91 ? t.attempt(
|
|
1443
|
-
|
|
1442
|
+
Pi,
|
|
1444
1443
|
f,
|
|
1445
1444
|
u ? s : o
|
|
1446
1445
|
)(g) : u ? f(g) : o(g);
|
|
1447
1446
|
}
|
|
1448
1447
|
function s(g) {
|
|
1449
1448
|
return t.attempt(
|
|
1450
|
-
|
|
1449
|
+
Mi,
|
|
1451
1450
|
f,
|
|
1452
1451
|
o
|
|
1453
1452
|
)(g);
|
|
@@ -1459,7 +1458,7 @@ function Vi(t, n, e) {
|
|
|
1459
1458
|
return l._balanced = !0, e(g);
|
|
1460
1459
|
}
|
|
1461
1460
|
}
|
|
1462
|
-
function
|
|
1461
|
+
function Vi(t, n, e) {
|
|
1463
1462
|
return r;
|
|
1464
1463
|
function r(o) {
|
|
1465
1464
|
return t.enter("resource"), t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), i;
|
|
@@ -1503,7 +1502,7 @@ function qi(t, n, e) {
|
|
|
1503
1502
|
return o === 41 ? (t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), t.exit("resource"), n) : e(o);
|
|
1504
1503
|
}
|
|
1505
1504
|
}
|
|
1506
|
-
function
|
|
1505
|
+
function qi(t, n, e) {
|
|
1507
1506
|
const r = this;
|
|
1508
1507
|
return i;
|
|
1509
1508
|
function i(a) {
|
|
@@ -1528,7 +1527,7 @@ function Hi(t, n, e) {
|
|
|
1528
1527
|
return e(a);
|
|
1529
1528
|
}
|
|
1530
1529
|
}
|
|
1531
|
-
function
|
|
1530
|
+
function Hi(t, n, e) {
|
|
1532
1531
|
return r;
|
|
1533
1532
|
function r(l) {
|
|
1534
1533
|
return t.enter("reference"), t.enter("referenceMarker"), t.consume(l), t.exit("referenceMarker"), i;
|
|
@@ -1537,12 +1536,12 @@ function Ni(t, n, e) {
|
|
|
1537
1536
|
return l === 93 ? (t.enter("referenceMarker"), t.consume(l), t.exit("referenceMarker"), t.exit("reference"), n) : e(l);
|
|
1538
1537
|
}
|
|
1539
1538
|
}
|
|
1540
|
-
const
|
|
1539
|
+
const Ni = {
|
|
1541
1540
|
name: "labelStartImage",
|
|
1542
|
-
tokenize:
|
|
1541
|
+
tokenize: $i,
|
|
1543
1542
|
resolveAll: Ae.resolveAll
|
|
1544
1543
|
};
|
|
1545
|
-
function
|
|
1544
|
+
function $i(t, n, e) {
|
|
1546
1545
|
const r = this;
|
|
1547
1546
|
return i;
|
|
1548
1547
|
function i(a) {
|
|
@@ -1555,12 +1554,12 @@ function Ui(t, n, e) {
|
|
|
1555
1554
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? e(a) : n(a);
|
|
1556
1555
|
}
|
|
1557
1556
|
}
|
|
1558
|
-
const
|
|
1557
|
+
const Ui = {
|
|
1559
1558
|
name: "labelStartLink",
|
|
1560
|
-
tokenize:
|
|
1559
|
+
tokenize: Wi,
|
|
1561
1560
|
resolveAll: Ae.resolveAll
|
|
1562
1561
|
};
|
|
1563
|
-
function
|
|
1562
|
+
function Wi(t, n, e) {
|
|
1564
1563
|
const r = this;
|
|
1565
1564
|
return i;
|
|
1566
1565
|
function i(u) {
|
|
@@ -1572,9 +1571,9 @@ function vi(t, n, e) {
|
|
|
1572
1571
|
}
|
|
1573
1572
|
const ne = {
|
|
1574
1573
|
name: "lineEnding",
|
|
1575
|
-
tokenize:
|
|
1574
|
+
tokenize: vi
|
|
1576
1575
|
};
|
|
1577
|
-
function
|
|
1576
|
+
function vi(t, n) {
|
|
1578
1577
|
return e;
|
|
1579
1578
|
function e(r) {
|
|
1580
1579
|
return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), P(t, n, "linePrefix");
|
|
@@ -1582,9 +1581,9 @@ function Qi(t, n) {
|
|
|
1582
1581
|
}
|
|
1583
1582
|
const qt = {
|
|
1584
1583
|
name: "thematicBreak",
|
|
1585
|
-
tokenize:
|
|
1584
|
+
tokenize: Qi
|
|
1586
1585
|
};
|
|
1587
|
-
function
|
|
1586
|
+
function Qi(t, n, e) {
|
|
1588
1587
|
let r = 0, i;
|
|
1589
1588
|
return l;
|
|
1590
1589
|
function l(s) {
|
|
@@ -1602,19 +1601,19 @@ function Zi(t, n, e) {
|
|
|
1602
1601
|
}
|
|
1603
1602
|
const Y = {
|
|
1604
1603
|
name: "list",
|
|
1605
|
-
tokenize:
|
|
1604
|
+
tokenize: Yi,
|
|
1606
1605
|
continuation: {
|
|
1607
|
-
tokenize:
|
|
1606
|
+
tokenize: Ji
|
|
1608
1607
|
},
|
|
1609
|
-
exit:
|
|
1610
|
-
},
|
|
1611
|
-
tokenize:
|
|
1608
|
+
exit: Xi
|
|
1609
|
+
}, Zi = {
|
|
1610
|
+
tokenize: tu,
|
|
1612
1611
|
partial: !0
|
|
1613
|
-
},
|
|
1614
|
-
tokenize:
|
|
1612
|
+
}, Gi = {
|
|
1613
|
+
tokenize: Ki,
|
|
1615
1614
|
partial: !0
|
|
1616
1615
|
};
|
|
1617
|
-
function
|
|
1616
|
+
function Yi(t, n, e) {
|
|
1618
1617
|
const r = this, i = r.events[r.events.length - 1];
|
|
1619
1618
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, u = 0;
|
|
1620
1619
|
return a;
|
|
@@ -1639,7 +1638,7 @@ function Ji(t, n, e) {
|
|
|
1639
1638
|
// Can’t be empty when interrupting.
|
|
1640
1639
|
r.interrupt ? e : f,
|
|
1641
1640
|
t.attempt(
|
|
1642
|
-
|
|
1641
|
+
Zi,
|
|
1643
1642
|
g,
|
|
1644
1643
|
o
|
|
1645
1644
|
)
|
|
@@ -1655,7 +1654,7 @@ function Ji(t, n, e) {
|
|
|
1655
1654
|
return r.containerState.size = l + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, n(h);
|
|
1656
1655
|
}
|
|
1657
1656
|
}
|
|
1658
|
-
function
|
|
1657
|
+
function Ji(t, n, e) {
|
|
1659
1658
|
const r = this;
|
|
1660
1659
|
return r.containerState._closeFlow = void 0, t.check(Ot, i, l);
|
|
1661
1660
|
function i(a) {
|
|
@@ -1667,7 +1666,7 @@ function Ki(t, n, e) {
|
|
|
1667
1666
|
)(a);
|
|
1668
1667
|
}
|
|
1669
1668
|
function l(a) {
|
|
1670
|
-
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(
|
|
1669
|
+
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(Gi, n, u)(a));
|
|
1671
1670
|
}
|
|
1672
1671
|
function u(a) {
|
|
1673
1672
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, P(
|
|
@@ -1678,7 +1677,7 @@ function Ki(t, n, e) {
|
|
|
1678
1677
|
)(a);
|
|
1679
1678
|
}
|
|
1680
1679
|
}
|
|
1681
|
-
function
|
|
1680
|
+
function Ki(t, n, e) {
|
|
1682
1681
|
const r = this;
|
|
1683
1682
|
return P(
|
|
1684
1683
|
t,
|
|
@@ -1691,10 +1690,10 @@ function Xi(t, n, e) {
|
|
|
1691
1690
|
return u && u[1].type === "listItemIndent" && u[2].sliceSerialize(u[1], !0).length === r.containerState.size ? n(l) : e(l);
|
|
1692
1691
|
}
|
|
1693
1692
|
}
|
|
1694
|
-
function
|
|
1693
|
+
function Xi(t) {
|
|
1695
1694
|
t.exit(this.containerState.type);
|
|
1696
1695
|
}
|
|
1697
|
-
function
|
|
1696
|
+
function tu(t, n, e) {
|
|
1698
1697
|
const r = this;
|
|
1699
1698
|
return P(
|
|
1700
1699
|
t,
|
|
@@ -1709,10 +1708,10 @@ function eu(t, n, e) {
|
|
|
1709
1708
|
}
|
|
1710
1709
|
const Ue = {
|
|
1711
1710
|
name: "setextUnderline",
|
|
1712
|
-
tokenize:
|
|
1713
|
-
resolveTo:
|
|
1711
|
+
tokenize: nu,
|
|
1712
|
+
resolveTo: eu
|
|
1714
1713
|
};
|
|
1715
|
-
function
|
|
1714
|
+
function eu(t, n) {
|
|
1716
1715
|
let e = t.length, r, i, l;
|
|
1717
1716
|
for (; e--; )
|
|
1718
1717
|
if (t[e][0] === "enter") {
|
|
@@ -1730,7 +1729,7 @@ function nu(t, n) {
|
|
|
1730
1729
|
};
|
|
1731
1730
|
return t[i][1].type = "setextHeadingText", l ? (t.splice(i, 0, ["enter", u, n]), t.splice(l + 1, 0, ["exit", t[r][1], n]), t[r][1].end = Object.assign({}, t[l][1].end)) : t[r][1] = u, t.push(["exit", u, n]), t;
|
|
1732
1731
|
}
|
|
1733
|
-
function
|
|
1732
|
+
function nu(t, n, e) {
|
|
1734
1733
|
const r = this;
|
|
1735
1734
|
let i;
|
|
1736
1735
|
return l;
|
|
@@ -1753,34 +1752,34 @@ function ru(t, n, e) {
|
|
|
1753
1752
|
return s === null || T(s) ? (t.exit("setextHeadingLine"), n(s)) : e(s);
|
|
1754
1753
|
}
|
|
1755
1754
|
}
|
|
1756
|
-
const
|
|
1757
|
-
tokenize:
|
|
1755
|
+
const ru = {
|
|
1756
|
+
tokenize: fu,
|
|
1758
1757
|
partial: !0
|
|
1759
1758
|
};
|
|
1760
|
-
function
|
|
1759
|
+
function iu() {
|
|
1761
1760
|
return {
|
|
1762
1761
|
document: {
|
|
1763
1762
|
91: {
|
|
1764
|
-
tokenize:
|
|
1763
|
+
tokenize: ou,
|
|
1765
1764
|
continuation: {
|
|
1766
|
-
tokenize:
|
|
1765
|
+
tokenize: su
|
|
1767
1766
|
},
|
|
1768
|
-
exit:
|
|
1767
|
+
exit: cu
|
|
1769
1768
|
}
|
|
1770
1769
|
},
|
|
1771
1770
|
text: {
|
|
1772
1771
|
91: {
|
|
1773
|
-
tokenize:
|
|
1772
|
+
tokenize: au
|
|
1774
1773
|
},
|
|
1775
1774
|
93: {
|
|
1776
1775
|
add: "after",
|
|
1777
|
-
tokenize:
|
|
1778
|
-
resolveTo:
|
|
1776
|
+
tokenize: uu,
|
|
1777
|
+
resolveTo: lu
|
|
1779
1778
|
}
|
|
1780
1779
|
}
|
|
1781
1780
|
};
|
|
1782
1781
|
}
|
|
1783
|
-
function
|
|
1782
|
+
function uu(t, n, e) {
|
|
1784
1783
|
const r = this;
|
|
1785
1784
|
let i = r.events.length;
|
|
1786
1785
|
const l = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -1807,7 +1806,7 @@ function lu(t, n, e) {
|
|
|
1807
1806
|
return s.codePointAt(0) !== 94 || !l.includes(s.slice(1)) ? e(c) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(c), t.exit("gfmFootnoteCallLabelMarker"), n(c));
|
|
1808
1807
|
}
|
|
1809
1808
|
}
|
|
1810
|
-
function
|
|
1809
|
+
function lu(t, n) {
|
|
1811
1810
|
let e = t.length;
|
|
1812
1811
|
for (; e--; )
|
|
1813
1812
|
if (t[e][1].type === "labelImage" && t[e][0] === "enter") {
|
|
@@ -1857,7 +1856,7 @@ function au(t, n) {
|
|
|
1857
1856
|
];
|
|
1858
1857
|
return t.splice(e, t.length - e + 1, ...a), t;
|
|
1859
1858
|
}
|
|
1860
|
-
function
|
|
1859
|
+
function au(t, n, e) {
|
|
1861
1860
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1862
1861
|
let l = 0, u;
|
|
1863
1862
|
return a;
|
|
@@ -1887,7 +1886,7 @@ function ou(t, n, e) {
|
|
|
1887
1886
|
return o === 91 || o === 92 || o === 93 ? (t.consume(o), l++, s) : s(o);
|
|
1888
1887
|
}
|
|
1889
1888
|
}
|
|
1890
|
-
function
|
|
1889
|
+
function ou(t, n, e) {
|
|
1891
1890
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1892
1891
|
let l, u = 0, a;
|
|
1893
1892
|
return c;
|
|
@@ -1927,13 +1926,13 @@ function su(t, n, e) {
|
|
|
1927
1926
|
return n(d);
|
|
1928
1927
|
}
|
|
1929
1928
|
}
|
|
1930
|
-
function
|
|
1931
|
-
return t.check(Ot, n, t.attempt(
|
|
1929
|
+
function su(t, n, e) {
|
|
1930
|
+
return t.check(Ot, n, t.attempt(ru, n, e));
|
|
1932
1931
|
}
|
|
1933
|
-
function
|
|
1932
|
+
function cu(t) {
|
|
1934
1933
|
t.exit("gfmFootnoteDefinition");
|
|
1935
1934
|
}
|
|
1936
|
-
function
|
|
1935
|
+
function fu(t, n, e) {
|
|
1937
1936
|
const r = this;
|
|
1938
1937
|
return P(
|
|
1939
1938
|
t,
|
|
@@ -1946,7 +1945,7 @@ function hu(t, n, e) {
|
|
|
1946
1945
|
return u && u[1].type === "gfmFootnoteDefinitionIndent" && u[2].sliceSerialize(u[1], !0).length === 4 ? n(l) : e(l);
|
|
1947
1946
|
}
|
|
1948
1947
|
}
|
|
1949
|
-
function
|
|
1948
|
+
function hu(t) {
|
|
1950
1949
|
let e = (t || {}).singleTilde;
|
|
1951
1950
|
const r = {
|
|
1952
1951
|
tokenize: l,
|
|
@@ -2021,7 +2020,7 @@ function pu(t) {
|
|
|
2021
2020
|
}
|
|
2022
2021
|
}
|
|
2023
2022
|
}
|
|
2024
|
-
class
|
|
2023
|
+
class pu {
|
|
2025
2024
|
/**
|
|
2026
2025
|
* Create a new edit map.
|
|
2027
2026
|
*/
|
|
@@ -2037,7 +2036,7 @@ class mu {
|
|
|
2037
2036
|
* @returns {void}
|
|
2038
2037
|
*/
|
|
2039
2038
|
add(n, e, r) {
|
|
2040
|
-
|
|
2039
|
+
mu(this, n, e, r);
|
|
2041
2040
|
}
|
|
2042
2041
|
// To do: not used here.
|
|
2043
2042
|
// /**
|
|
@@ -2071,7 +2070,7 @@ class mu {
|
|
|
2071
2070
|
this.map.length = 0;
|
|
2072
2071
|
}
|
|
2073
2072
|
}
|
|
2074
|
-
function
|
|
2073
|
+
function mu(t, n, e, r) {
|
|
2075
2074
|
let i = 0;
|
|
2076
2075
|
if (!(e === 0 && r.length === 0)) {
|
|
2077
2076
|
for (; i < t.map.length; ) {
|
|
@@ -2084,7 +2083,7 @@ function gu(t, n, e, r) {
|
|
|
2084
2083
|
t.map.push([n, e, r]);
|
|
2085
2084
|
}
|
|
2086
2085
|
}
|
|
2087
|
-
function
|
|
2086
|
+
function gu(t, n) {
|
|
2088
2087
|
let e = !1;
|
|
2089
2088
|
const r = [];
|
|
2090
2089
|
for (; n < t.length; ) {
|
|
@@ -2106,15 +2105,15 @@ function du(t, n) {
|
|
|
2106
2105
|
}
|
|
2107
2106
|
return r;
|
|
2108
2107
|
}
|
|
2109
|
-
const
|
|
2108
|
+
const du = {
|
|
2110
2109
|
flow: {
|
|
2111
2110
|
null: {
|
|
2112
|
-
tokenize:
|
|
2113
|
-
resolveAll:
|
|
2111
|
+
tokenize: ku,
|
|
2112
|
+
resolveAll: xu
|
|
2114
2113
|
}
|
|
2115
2114
|
}
|
|
2116
2115
|
};
|
|
2117
|
-
function
|
|
2116
|
+
function ku(t, n, e) {
|
|
2118
2117
|
const r = this;
|
|
2119
2118
|
let i = 0, l = 0, u;
|
|
2120
2119
|
return a;
|
|
@@ -2190,9 +2189,9 @@ function xu(t, n, e) {
|
|
|
2190
2189
|
return k === 92 || k === 124 ? (t.consume(k), q) : q(k);
|
|
2191
2190
|
}
|
|
2192
2191
|
}
|
|
2193
|
-
function
|
|
2192
|
+
function xu(t, n) {
|
|
2194
2193
|
let e = -1, r = !0, i = 0, l = [0, 0, 0, 0], u = [0, 0, 0, 0], a = !1, c = 0, s, f, o;
|
|
2195
|
-
const g = new
|
|
2194
|
+
const g = new pu();
|
|
2196
2195
|
for (; ++e < t.length; ) {
|
|
2197
2196
|
const h = t[e], d = h[1];
|
|
2198
2197
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, c !== 0 && (We(g, n, c, s, f), f = void 0, c = 0), s = {
|
|
@@ -2230,7 +2229,7 @@ function bu(t, n) {
|
|
|
2230
2229
|
}
|
|
2231
2230
|
for (c !== 0 && We(g, n, c, s, f), g.consume(n.events), e = -1; ++e < n.events.length; ) {
|
|
2232
2231
|
const h = n.events[e];
|
|
2233
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
2232
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = gu(n.events, e));
|
|
2234
2233
|
}
|
|
2235
2234
|
return t;
|
|
2236
2235
|
}
|
|
@@ -2268,14 +2267,14 @@ function It(t, n) {
|
|
|
2268
2267
|
const e = t[n], r = e[0] === "enter" ? "start" : "end";
|
|
2269
2268
|
return e[1][r];
|
|
2270
2269
|
}
|
|
2271
|
-
const
|
|
2272
|
-
tokenize:
|
|
2273
|
-
},
|
|
2270
|
+
const bu = {
|
|
2271
|
+
tokenize: wu
|
|
2272
|
+
}, yu = {
|
|
2274
2273
|
text: {
|
|
2275
|
-
91:
|
|
2274
|
+
91: bu
|
|
2276
2275
|
}
|
|
2277
2276
|
};
|
|
2278
|
-
function
|
|
2277
|
+
function wu(t, n, e) {
|
|
2279
2278
|
const r = this;
|
|
2280
2279
|
return i;
|
|
2281
2280
|
function i(c) {
|
|
@@ -2295,26 +2294,26 @@ function Fu(t, n, e) {
|
|
|
2295
2294
|
function a(c) {
|
|
2296
2295
|
return T(c) ? n(c) : B(c) ? t.check(
|
|
2297
2296
|
{
|
|
2298
|
-
tokenize:
|
|
2297
|
+
tokenize: Fu
|
|
2299
2298
|
},
|
|
2300
2299
|
n,
|
|
2301
2300
|
e
|
|
2302
2301
|
)(c) : e(c);
|
|
2303
2302
|
}
|
|
2304
2303
|
}
|
|
2305
|
-
function
|
|
2304
|
+
function Fu(t, n, e) {
|
|
2306
2305
|
return P(t, r, "whitespace");
|
|
2307
2306
|
function r(i) {
|
|
2308
2307
|
return i === null ? e(i) : n(i);
|
|
2309
2308
|
}
|
|
2310
2309
|
}
|
|
2311
|
-
function
|
|
2310
|
+
function Su(t) {
|
|
2312
2311
|
return yn([
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2312
|
+
Pr,
|
|
2313
|
+
iu(),
|
|
2314
|
+
hu(t),
|
|
2315
|
+
du,
|
|
2316
|
+
yu
|
|
2318
2317
|
]);
|
|
2319
2318
|
}
|
|
2320
2319
|
function ve(t, n) {
|
|
@@ -2326,7 +2325,7 @@ function ve(t, n) {
|
|
|
2326
2325
|
r++, i = e.indexOf(n, i + n.length);
|
|
2327
2326
|
return r;
|
|
2328
2327
|
}
|
|
2329
|
-
function
|
|
2328
|
+
function Cu(t) {
|
|
2330
2329
|
if (typeof t != "string")
|
|
2331
2330
|
throw new TypeError("Expected a string");
|
|
2332
2331
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
@@ -2344,17 +2343,17 @@ const Ee = (
|
|
|
2344
2343
|
*/
|
|
2345
2344
|
function(t) {
|
|
2346
2345
|
if (t == null)
|
|
2347
|
-
return
|
|
2346
|
+
return Iu;
|
|
2348
2347
|
if (typeof t == "string")
|
|
2349
|
-
return
|
|
2348
|
+
return zu(t);
|
|
2350
2349
|
if (typeof t == "object")
|
|
2351
|
-
return Array.isArray(t) ?
|
|
2350
|
+
return Array.isArray(t) ? Au(t) : Eu(t);
|
|
2352
2351
|
if (typeof t == "function")
|
|
2353
2352
|
return Yt(t);
|
|
2354
2353
|
throw new Error("Expected function, string, or object as test");
|
|
2355
2354
|
}
|
|
2356
2355
|
);
|
|
2357
|
-
function
|
|
2356
|
+
function Au(t) {
|
|
2358
2357
|
const n = [];
|
|
2359
2358
|
let e = -1;
|
|
2360
2359
|
for (; ++e < t.length; )
|
|
@@ -2367,7 +2366,7 @@ function Eu(t) {
|
|
|
2367
2366
|
return !1;
|
|
2368
2367
|
}
|
|
2369
2368
|
}
|
|
2370
|
-
function
|
|
2369
|
+
function Eu(t) {
|
|
2371
2370
|
return Yt(n);
|
|
2372
2371
|
function n(e) {
|
|
2373
2372
|
let r;
|
|
@@ -2376,7 +2375,7 @@ function zu(t) {
|
|
|
2376
2375
|
return !0;
|
|
2377
2376
|
}
|
|
2378
2377
|
}
|
|
2379
|
-
function
|
|
2378
|
+
function zu(t) {
|
|
2380
2379
|
return Yt(n);
|
|
2381
2380
|
function n(e) {
|
|
2382
2381
|
return e && e.type === t;
|
|
@@ -2388,10 +2387,10 @@ function Yt(t) {
|
|
|
2388
2387
|
return !!(e && typeof e == "object" && "type" in e && t.call(this, e, ...r));
|
|
2389
2388
|
}
|
|
2390
2389
|
}
|
|
2391
|
-
function
|
|
2390
|
+
function Iu() {
|
|
2392
2391
|
return !0;
|
|
2393
2392
|
}
|
|
2394
|
-
const
|
|
2393
|
+
const Tu = !0, Qe = !1, Du = "skip", _u = (
|
|
2395
2394
|
/**
|
|
2396
2395
|
* @type {(
|
|
2397
2396
|
* (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
|
|
@@ -2425,9 +2424,9 @@ const Du = !0, Qe = !1, _u = "skip", Lu = (
|
|
|
2425
2424
|
return o;
|
|
2426
2425
|
function o() {
|
|
2427
2426
|
let g = [], h, d, w;
|
|
2428
|
-
if (i(a, c, s[s.length - 1] || null) && (g =
|
|
2427
|
+
if (i(a, c, s[s.length - 1] || null) && (g = Lu(e(a, s)), g[0] === Qe))
|
|
2429
2428
|
return g;
|
|
2430
|
-
if (a.children && g[0] !==
|
|
2429
|
+
if (a.children && g[0] !== Du)
|
|
2431
2430
|
for (d = -1 + l, w = s.concat(a); d > -1 && d < a.children.length; ) {
|
|
2432
2431
|
if (h = u(a.children[d], d, w)(), h[0] === Qe)
|
|
2433
2432
|
return h;
|
|
@@ -2438,10 +2437,10 @@ const Du = !0, Qe = !1, _u = "skip", Lu = (
|
|
|
2438
2437
|
}
|
|
2439
2438
|
}
|
|
2440
2439
|
);
|
|
2441
|
-
function
|
|
2442
|
-
return Array.isArray(t) ? t : typeof t == "number" ? [
|
|
2440
|
+
function Lu(t) {
|
|
2441
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [Tu, t] : [t];
|
|
2443
2442
|
}
|
|
2444
|
-
const
|
|
2443
|
+
const Bu = {}.hasOwnProperty, Pu = (
|
|
2445
2444
|
/**
|
|
2446
2445
|
* @type {(
|
|
2447
2446
|
* (<Tree extends Node>(tree: Tree, find: Find, replace?: Replace | null | undefined, options?: Options | null | undefined) => Tree) &
|
|
@@ -2459,10 +2458,10 @@ const Pu = {}.hasOwnProperty, Mu = (
|
|
|
2459
2458
|
function(t, n, e, r) {
|
|
2460
2459
|
let i, l;
|
|
2461
2460
|
typeof n == "string" || n instanceof RegExp ? (l = [[n, e]], i = r) : (l = n, i = e), i || (i = {});
|
|
2462
|
-
const u = Ee(i.ignore || []), a =
|
|
2461
|
+
const u = Ee(i.ignore || []), a = Mu(l);
|
|
2463
2462
|
let c = -1;
|
|
2464
2463
|
for (; ++c < a.length; )
|
|
2465
|
-
|
|
2464
|
+
_u(t, "text", s);
|
|
2466
2465
|
return t;
|
|
2467
2466
|
function s(o, g) {
|
|
2468
2467
|
let h = -1, d;
|
|
@@ -2506,7 +2505,7 @@ const Pu = {}.hasOwnProperty, Mu = (
|
|
|
2506
2505
|
}
|
|
2507
2506
|
}
|
|
2508
2507
|
);
|
|
2509
|
-
function
|
|
2508
|
+
function Mu(t) {
|
|
2510
2509
|
const n = [];
|
|
2511
2510
|
if (typeof t != "object")
|
|
2512
2511
|
throw new TypeError("Expected array or object as schema");
|
|
@@ -2520,31 +2519,31 @@ function Ou(t) {
|
|
|
2520
2519
|
} else {
|
|
2521
2520
|
let e;
|
|
2522
2521
|
for (e in t)
|
|
2523
|
-
|
|
2522
|
+
Bu.call(t, e) && n.push([Ze(e), Ge(t[e])]);
|
|
2524
2523
|
}
|
|
2525
2524
|
return n;
|
|
2526
2525
|
}
|
|
2527
2526
|
function Ze(t) {
|
|
2528
|
-
return typeof t == "string" ? new RegExp(
|
|
2527
|
+
return typeof t == "string" ? new RegExp(Cu(t), "g") : t;
|
|
2529
2528
|
}
|
|
2530
2529
|
function Ge(t) {
|
|
2531
2530
|
return typeof t == "function" ? t : () => t;
|
|
2532
2531
|
}
|
|
2533
|
-
const re = "phrasing", ie = ["autolink", "link", "image", "label"],
|
|
2534
|
-
transforms: [
|
|
2532
|
+
const re = "phrasing", ie = ["autolink", "link", "image", "label"], Ou = {
|
|
2533
|
+
transforms: [$u],
|
|
2535
2534
|
enter: {
|
|
2536
|
-
literalAutolink:
|
|
2535
|
+
literalAutolink: ju,
|
|
2537
2536
|
literalAutolinkEmail: ue,
|
|
2538
2537
|
literalAutolinkHttp: ue,
|
|
2539
2538
|
literalAutolinkWww: ue
|
|
2540
2539
|
},
|
|
2541
2540
|
exit: {
|
|
2542
|
-
literalAutolink:
|
|
2543
|
-
literalAutolinkEmail:
|
|
2544
|
-
literalAutolinkHttp:
|
|
2545
|
-
literalAutolinkWww:
|
|
2541
|
+
literalAutolink: Nu,
|
|
2542
|
+
literalAutolinkEmail: Hu,
|
|
2543
|
+
literalAutolinkHttp: Vu,
|
|
2544
|
+
literalAutolinkWww: qu
|
|
2546
2545
|
}
|
|
2547
|
-
},
|
|
2546
|
+
}, Ru = {
|
|
2548
2547
|
unsafe: [
|
|
2549
2548
|
{
|
|
2550
2549
|
character: "@",
|
|
@@ -2563,16 +2562,16 @@ const re = "phrasing", ie = ["autolink", "link", "image", "label"], Ru = {
|
|
|
2563
2562
|
{ character: ":", before: "[ps]", after: "\\/", inConstruct: re, notInConstruct: ie }
|
|
2564
2563
|
]
|
|
2565
2564
|
};
|
|
2566
|
-
function
|
|
2565
|
+
function ju(t) {
|
|
2567
2566
|
this.enter({ type: "link", title: null, url: "", children: [] }, t);
|
|
2568
2567
|
}
|
|
2569
2568
|
function ue(t) {
|
|
2570
2569
|
this.config.enter.autolinkProtocol.call(this, t);
|
|
2571
2570
|
}
|
|
2572
|
-
function
|
|
2571
|
+
function Vu(t) {
|
|
2573
2572
|
this.config.exit.autolinkProtocol.call(this, t);
|
|
2574
2573
|
}
|
|
2575
|
-
function
|
|
2574
|
+
function qu(t) {
|
|
2576
2575
|
this.config.exit.data.call(this, t);
|
|
2577
2576
|
const n = (
|
|
2578
2577
|
/** @type {Link} */
|
|
@@ -2580,27 +2579,27 @@ function Hu(t) {
|
|
|
2580
2579
|
);
|
|
2581
2580
|
n.url = "http://" + this.sliceSerialize(t);
|
|
2582
2581
|
}
|
|
2583
|
-
function
|
|
2582
|
+
function Hu(t) {
|
|
2584
2583
|
this.config.exit.autolinkEmail.call(this, t);
|
|
2585
2584
|
}
|
|
2586
|
-
function
|
|
2585
|
+
function Nu(t) {
|
|
2587
2586
|
this.exit(t);
|
|
2588
2587
|
}
|
|
2589
|
-
function
|
|
2590
|
-
|
|
2588
|
+
function $u(t) {
|
|
2589
|
+
Pu(
|
|
2591
2590
|
t,
|
|
2592
2591
|
[
|
|
2593
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
2594
|
-
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,
|
|
2592
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Uu],
|
|
2593
|
+
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, Wu]
|
|
2595
2594
|
],
|
|
2596
2595
|
{ ignore: ["link", "linkReference"] }
|
|
2597
2596
|
);
|
|
2598
2597
|
}
|
|
2599
|
-
function
|
|
2598
|
+
function Uu(t, n, e, r, i) {
|
|
2600
2599
|
let l = "";
|
|
2601
|
-
if (!On(i) || (/^w/i.test(n) && (e = n + e, n = "", l = "http://"), !
|
|
2600
|
+
if (!On(i) || (/^w/i.test(n) && (e = n + e, n = "", l = "http://"), !vu(e)))
|
|
2602
2601
|
return !1;
|
|
2603
|
-
const u =
|
|
2602
|
+
const u = Qu(e + r);
|
|
2604
2603
|
if (!u[0]) return !1;
|
|
2605
2604
|
const a = {
|
|
2606
2605
|
type: "link",
|
|
@@ -2610,7 +2609,7 @@ function Wu(t, n, e, r, i) {
|
|
|
2610
2609
|
};
|
|
2611
2610
|
return u[1] ? [a, { type: "text", value: u[1] }] : a;
|
|
2612
2611
|
}
|
|
2613
|
-
function
|
|
2612
|
+
function Wu(t, n, e, r) {
|
|
2614
2613
|
return (
|
|
2615
2614
|
// Not an expected previous character.
|
|
2616
2615
|
!On(r, !0) || // Label ends in not allowed character.
|
|
@@ -2622,11 +2621,11 @@ function vu(t, n, e, r) {
|
|
|
2622
2621
|
}
|
|
2623
2622
|
);
|
|
2624
2623
|
}
|
|
2625
|
-
function
|
|
2624
|
+
function vu(t) {
|
|
2626
2625
|
const n = t.split(".");
|
|
2627
2626
|
return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
|
|
2628
2627
|
}
|
|
2629
|
-
function
|
|
2628
|
+
function Qu(t) {
|
|
2630
2629
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(t);
|
|
2631
2630
|
if (!n)
|
|
2632
2631
|
return [t, void 0];
|
|
@@ -2653,11 +2652,11 @@ function Rn(t, n) {
|
|
|
2653
2652
|
e > 1114111 ? "�" : String.fromCharCode(e)
|
|
2654
2653
|
);
|
|
2655
2654
|
}
|
|
2656
|
-
const
|
|
2655
|
+
const Zu = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
2657
2656
|
function jn(t) {
|
|
2658
|
-
return t.replace(
|
|
2657
|
+
return t.replace(Zu, Gu);
|
|
2659
2658
|
}
|
|
2660
|
-
function
|
|
2659
|
+
function Gu(t, n, e) {
|
|
2661
2660
|
if (n)
|
|
2662
2661
|
return n;
|
|
2663
2662
|
if (e.charCodeAt(0) === 35) {
|
|
@@ -2669,7 +2668,7 @@ function Yu(t, n, e) {
|
|
|
2669
2668
|
function Vn(t) {
|
|
2670
2669
|
return t.label || !t.identifier ? t.label || "" : jn(t.identifier);
|
|
2671
2670
|
}
|
|
2672
|
-
function
|
|
2671
|
+
function Yu(t, n, e) {
|
|
2673
2672
|
const r = n.indexStack, i = t.children || [], l = n.createTracker(e), u = [];
|
|
2674
2673
|
let a = -1;
|
|
2675
2674
|
for (r.push(-1); ++a < i.length; ) {
|
|
@@ -2685,12 +2684,12 @@ function Ju(t, n, e) {
|
|
|
2685
2684
|
})
|
|
2686
2685
|
)
|
|
2687
2686
|
), c.type !== "list" && (n.bulletLastUsed = void 0), a < i.length - 1 && u.push(
|
|
2688
|
-
l.move(
|
|
2687
|
+
l.move(Ju(c, i[a + 1], t, n))
|
|
2689
2688
|
);
|
|
2690
2689
|
}
|
|
2691
2690
|
return r.pop(), u.join("");
|
|
2692
2691
|
}
|
|
2693
|
-
function
|
|
2692
|
+
function Ju(t, n, e, r) {
|
|
2694
2693
|
let i = r.join.length;
|
|
2695
2694
|
for (; i--; ) {
|
|
2696
2695
|
const l = r.join[i](t, n, e, r);
|
|
@@ -2710,11 +2709,11 @@ function Ku(t, n, e, r) {
|
|
|
2710
2709
|
|
|
2711
2710
|
`;
|
|
2712
2711
|
}
|
|
2713
|
-
const
|
|
2714
|
-
function
|
|
2712
|
+
const Ku = /\r?\n|\r/g;
|
|
2713
|
+
function Xu(t, n) {
|
|
2715
2714
|
const e = [];
|
|
2716
2715
|
let r = 0, i = 0, l;
|
|
2717
|
-
for (; l =
|
|
2716
|
+
for (; l = Ku.exec(t); )
|
|
2718
2717
|
u(t.slice(r, l.index)), e.push(l[0]), r = l.index + l[0].length, i++;
|
|
2719
2718
|
return u(t.slice(r)), e.join("");
|
|
2720
2719
|
function u(a) {
|
|
@@ -2731,7 +2730,7 @@ function qn(t) {
|
|
|
2731
2730
|
}
|
|
2732
2731
|
return t._compiled;
|
|
2733
2732
|
}
|
|
2734
|
-
function
|
|
2733
|
+
function tl(t, n) {
|
|
2735
2734
|
return Ye(t, n.inConstruct, !0) && !Ye(t, n.notInConstruct, !1);
|
|
2736
2735
|
}
|
|
2737
2736
|
function Ye(t, n, e) {
|
|
@@ -2748,7 +2747,7 @@ function Hn(t, n, e) {
|
|
|
2748
2747
|
let a = -1;
|
|
2749
2748
|
for (; ++a < t.unsafe.length; ) {
|
|
2750
2749
|
const f = t.unsafe[a];
|
|
2751
|
-
if (!
|
|
2750
|
+
if (!tl(t.stack, f))
|
|
2752
2751
|
continue;
|
|
2753
2752
|
const o = qn(f);
|
|
2754
2753
|
let g;
|
|
@@ -2757,7 +2756,7 @@ function Hn(t, n, e) {
|
|
|
2757
2756
|
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !d && (u[w].after = !1)) : (i.push(w), u[w] = { before: h, after: d });
|
|
2758
2757
|
}
|
|
2759
2758
|
}
|
|
2760
|
-
i.sort(
|
|
2759
|
+
i.sort(el);
|
|
2761
2760
|
let c = e.before ? e.before.length : 0;
|
|
2762
2761
|
const s = r.length - (e.after ? e.after.length : 0);
|
|
2763
2762
|
for (a = -1; ++a < i.length; ) {
|
|
@@ -2768,7 +2767,7 @@ function Hn(t, n, e) {
|
|
|
2768
2767
|
}
|
|
2769
2768
|
return l.push(Je(r.slice(c, s), e.after)), l.join("");
|
|
2770
2769
|
}
|
|
2771
|
-
function
|
|
2770
|
+
function el(t, n) {
|
|
2772
2771
|
return t - n;
|
|
2773
2772
|
}
|
|
2774
2773
|
function Je(t, n) {
|
|
@@ -2795,40 +2794,40 @@ function Jt(t) {
|
|
|
2795
2794
|
return i += o.length - 1, l = o.length === 1 ? l + g.length : 1 + g.length + r, f;
|
|
2796
2795
|
}
|
|
2797
2796
|
}
|
|
2798
|
-
Nn.peek =
|
|
2799
|
-
function
|
|
2797
|
+
Nn.peek = hl;
|
|
2798
|
+
function nl() {
|
|
2800
2799
|
return {
|
|
2801
2800
|
enter: {
|
|
2802
|
-
gfmFootnoteDefinition:
|
|
2803
|
-
gfmFootnoteDefinitionLabelString:
|
|
2804
|
-
gfmFootnoteCall:
|
|
2805
|
-
gfmFootnoteCallString:
|
|
2801
|
+
gfmFootnoteDefinition: il,
|
|
2802
|
+
gfmFootnoteDefinitionLabelString: ul,
|
|
2803
|
+
gfmFootnoteCall: ol,
|
|
2804
|
+
gfmFootnoteCallString: sl
|
|
2806
2805
|
},
|
|
2807
2806
|
exit: {
|
|
2808
|
-
gfmFootnoteDefinition:
|
|
2809
|
-
gfmFootnoteDefinitionLabelString:
|
|
2810
|
-
gfmFootnoteCall:
|
|
2811
|
-
gfmFootnoteCallString:
|
|
2807
|
+
gfmFootnoteDefinition: al,
|
|
2808
|
+
gfmFootnoteDefinitionLabelString: ll,
|
|
2809
|
+
gfmFootnoteCall: fl,
|
|
2810
|
+
gfmFootnoteCallString: cl
|
|
2812
2811
|
}
|
|
2813
2812
|
};
|
|
2814
2813
|
}
|
|
2815
|
-
function
|
|
2814
|
+
function rl() {
|
|
2816
2815
|
return {
|
|
2817
2816
|
// This is on by default already.
|
|
2818
2817
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
2819
|
-
handlers: { footnoteDefinition:
|
|
2818
|
+
handlers: { footnoteDefinition: pl, footnoteReference: Nn }
|
|
2820
2819
|
};
|
|
2821
2820
|
}
|
|
2822
|
-
function
|
|
2821
|
+
function il(t) {
|
|
2823
2822
|
this.enter(
|
|
2824
2823
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
2825
2824
|
t
|
|
2826
2825
|
);
|
|
2827
2826
|
}
|
|
2828
|
-
function
|
|
2827
|
+
function ul() {
|
|
2829
2828
|
this.buffer();
|
|
2830
2829
|
}
|
|
2831
|
-
function
|
|
2830
|
+
function ll(t) {
|
|
2832
2831
|
const n = this.resume(), e = (
|
|
2833
2832
|
/** @type {FootnoteDefinition} */
|
|
2834
2833
|
this.stack[this.stack.length - 1]
|
|
@@ -2837,16 +2836,16 @@ function al(t) {
|
|
|
2837
2836
|
this.sliceSerialize(t)
|
|
2838
2837
|
).toLowerCase();
|
|
2839
2838
|
}
|
|
2840
|
-
function
|
|
2839
|
+
function al(t) {
|
|
2841
2840
|
this.exit(t);
|
|
2842
2841
|
}
|
|
2843
|
-
function
|
|
2842
|
+
function ol(t) {
|
|
2844
2843
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, t);
|
|
2845
2844
|
}
|
|
2846
|
-
function
|
|
2845
|
+
function sl() {
|
|
2847
2846
|
this.buffer();
|
|
2848
2847
|
}
|
|
2849
|
-
function
|
|
2848
|
+
function cl(t) {
|
|
2850
2849
|
const n = this.resume(), e = (
|
|
2851
2850
|
/** @type {FootnoteDefinition} */
|
|
2852
2851
|
this.stack[this.stack.length - 1]
|
|
@@ -2855,7 +2854,7 @@ function fl(t) {
|
|
|
2855
2854
|
this.sliceSerialize(t)
|
|
2856
2855
|
).toLowerCase();
|
|
2857
2856
|
}
|
|
2858
|
-
function
|
|
2857
|
+
function fl(t) {
|
|
2859
2858
|
this.exit(t);
|
|
2860
2859
|
}
|
|
2861
2860
|
function Nn(t, n, e, r) {
|
|
@@ -2870,10 +2869,10 @@ function Nn(t, n, e, r) {
|
|
|
2870
2869
|
})
|
|
2871
2870
|
), a(), u(), l += i.move("]"), l;
|
|
2872
2871
|
}
|
|
2873
|
-
function
|
|
2872
|
+
function hl() {
|
|
2874
2873
|
return "[";
|
|
2875
2874
|
}
|
|
2876
|
-
function
|
|
2875
|
+
function pl(t, n, e, r) {
|
|
2877
2876
|
const i = Jt(r);
|
|
2878
2877
|
let l = i.move("[^");
|
|
2879
2878
|
const u = e.enter("footnoteDefinition"), a = e.enter("label");
|
|
@@ -2886,10 +2885,10 @@ function ml(t, n, e, r) {
|
|
|
2886
2885
|
), a(), l += i.move(
|
|
2887
2886
|
"]:" + (t.children && t.children.length > 0 ? " " : "")
|
|
2888
2887
|
), i.shift(4), l += i.move(
|
|
2889
|
-
|
|
2888
|
+
Xu(Yu(t, e, i.current()), ml)
|
|
2890
2889
|
), u(), l;
|
|
2891
2890
|
}
|
|
2892
|
-
function
|
|
2891
|
+
function ml(t, n, e) {
|
|
2893
2892
|
return n === 0 ? t : (e ? "" : " ") + t;
|
|
2894
2893
|
}
|
|
2895
2894
|
function $n(t, n, e) {
|
|
@@ -2925,7 +2924,7 @@ function $n(t, n, e) {
|
|
|
2925
2924
|
}
|
|
2926
2925
|
return r.pop(), l.join("");
|
|
2927
2926
|
}
|
|
2928
|
-
const
|
|
2927
|
+
const gl = [
|
|
2929
2928
|
"autolink",
|
|
2930
2929
|
"destinationLiteral",
|
|
2931
2930
|
"destinationRaw",
|
|
@@ -2933,25 +2932,25 @@ const dl = [
|
|
|
2933
2932
|
"titleQuote",
|
|
2934
2933
|
"titleApostrophe"
|
|
2935
2934
|
];
|
|
2936
|
-
Un.peek =
|
|
2937
|
-
const
|
|
2935
|
+
Un.peek = yl;
|
|
2936
|
+
const dl = {
|
|
2938
2937
|
canContainEols: ["delete"],
|
|
2939
|
-
enter: { strikethrough:
|
|
2940
|
-
exit: { strikethrough:
|
|
2941
|
-
},
|
|
2938
|
+
enter: { strikethrough: xl },
|
|
2939
|
+
exit: { strikethrough: bl }
|
|
2940
|
+
}, kl = {
|
|
2942
2941
|
unsafe: [
|
|
2943
2942
|
{
|
|
2944
2943
|
character: "~",
|
|
2945
2944
|
inConstruct: "phrasing",
|
|
2946
|
-
notInConstruct:
|
|
2945
|
+
notInConstruct: gl
|
|
2947
2946
|
}
|
|
2948
2947
|
],
|
|
2949
2948
|
handlers: { delete: Un }
|
|
2950
2949
|
};
|
|
2951
|
-
function
|
|
2950
|
+
function xl(t) {
|
|
2952
2951
|
this.enter({ type: "delete", children: [] }, t);
|
|
2953
2952
|
}
|
|
2954
|
-
function
|
|
2953
|
+
function bl(t) {
|
|
2955
2954
|
this.exit(t);
|
|
2956
2955
|
}
|
|
2957
2956
|
function Un(t, n, e, r) {
|
|
@@ -2963,10 +2962,10 @@ function Un(t, n, e, r) {
|
|
|
2963
2962
|
after: "~"
|
|
2964
2963
|
}), u += i.move("~~"), l(), u;
|
|
2965
2964
|
}
|
|
2966
|
-
function
|
|
2965
|
+
function yl() {
|
|
2967
2966
|
return "~";
|
|
2968
2967
|
}
|
|
2969
|
-
Wn.peek =
|
|
2968
|
+
Wn.peek = wl;
|
|
2970
2969
|
function Wn(t, n, e) {
|
|
2971
2970
|
let r = t.value || "", i = "`", l = -1;
|
|
2972
2971
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -2982,20 +2981,20 @@ function Wn(t, n, e) {
|
|
|
2982
2981
|
}
|
|
2983
2982
|
return i + r + i;
|
|
2984
2983
|
}
|
|
2985
|
-
function
|
|
2984
|
+
function wl() {
|
|
2986
2985
|
return "`";
|
|
2987
2986
|
}
|
|
2988
|
-
function
|
|
2987
|
+
function Fl(t) {
|
|
2989
2988
|
return t.length;
|
|
2990
2989
|
}
|
|
2991
|
-
function
|
|
2992
|
-
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength ||
|
|
2990
|
+
function Sl(t, n) {
|
|
2991
|
+
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength || Fl, l = [], u = [], a = [], c = [];
|
|
2993
2992
|
let s = 0, f = -1;
|
|
2994
2993
|
for (; ++f < t.length; ) {
|
|
2995
2994
|
const w = [], C = [];
|
|
2996
2995
|
let b = -1;
|
|
2997
2996
|
for (t[f].length > s && (s = t[f].length); ++b < t[f].length; ) {
|
|
2998
|
-
const I =
|
|
2997
|
+
const I = Cl(t[f][b]);
|
|
2999
2998
|
if (e.alignDelimiters !== !1) {
|
|
3000
2999
|
const F = i(I);
|
|
3001
3000
|
C[b] = F, (c[b] === void 0 || F > c[b]) && (c[b] = F);
|
|
@@ -3050,29 +3049,29 @@ function Cl(t, n) {
|
|
|
3050
3049
|
return d.join(`
|
|
3051
3050
|
`);
|
|
3052
3051
|
}
|
|
3053
|
-
function
|
|
3052
|
+
function Cl(t) {
|
|
3054
3053
|
return t == null ? "" : String(t);
|
|
3055
3054
|
}
|
|
3056
3055
|
function Ke(t) {
|
|
3057
3056
|
const n = typeof t == "string" ? t.codePointAt(0) : 0;
|
|
3058
3057
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
3059
3058
|
}
|
|
3060
|
-
const
|
|
3059
|
+
const Al = {
|
|
3061
3060
|
enter: {
|
|
3062
|
-
table:
|
|
3061
|
+
table: El,
|
|
3063
3062
|
tableData: Xe,
|
|
3064
3063
|
tableHeader: Xe,
|
|
3065
|
-
tableRow:
|
|
3064
|
+
tableRow: Il
|
|
3066
3065
|
},
|
|
3067
3066
|
exit: {
|
|
3068
|
-
codeText:
|
|
3069
|
-
table:
|
|
3067
|
+
codeText: Tl,
|
|
3068
|
+
table: zl,
|
|
3070
3069
|
tableData: le,
|
|
3071
3070
|
tableHeader: le,
|
|
3072
3071
|
tableRow: le
|
|
3073
3072
|
}
|
|
3074
3073
|
};
|
|
3075
|
-
function
|
|
3074
|
+
function El(t) {
|
|
3076
3075
|
const n = t._align;
|
|
3077
3076
|
this.enter(
|
|
3078
3077
|
{
|
|
@@ -3083,10 +3082,10 @@ function zl(t) {
|
|
|
3083
3082
|
t
|
|
3084
3083
|
), this.setData("inTable", !0);
|
|
3085
3084
|
}
|
|
3086
|
-
function
|
|
3085
|
+
function zl(t) {
|
|
3087
3086
|
this.exit(t), this.setData("inTable");
|
|
3088
3087
|
}
|
|
3089
|
-
function
|
|
3088
|
+
function Il(t) {
|
|
3090
3089
|
this.enter({ type: "tableRow", children: [] }, t);
|
|
3091
3090
|
}
|
|
3092
3091
|
function le(t) {
|
|
@@ -3095,19 +3094,19 @@ function le(t) {
|
|
|
3095
3094
|
function Xe(t) {
|
|
3096
3095
|
this.enter({ type: "tableCell", children: [] }, t);
|
|
3097
3096
|
}
|
|
3098
|
-
function
|
|
3097
|
+
function Tl(t) {
|
|
3099
3098
|
let n = this.resume();
|
|
3100
|
-
this.getData("inTable") && (n = n.replace(/\\([\\|])/g,
|
|
3099
|
+
this.getData("inTable") && (n = n.replace(/\\([\\|])/g, Dl));
|
|
3101
3100
|
const e = (
|
|
3102
3101
|
/** @type {InlineCode} */
|
|
3103
3102
|
this.stack[this.stack.length - 1]
|
|
3104
3103
|
);
|
|
3105
3104
|
e.value = n, this.exit(t);
|
|
3106
3105
|
}
|
|
3107
|
-
function
|
|
3106
|
+
function Dl(t, n) {
|
|
3108
3107
|
return n === "|" ? n : t;
|
|
3109
3108
|
}
|
|
3110
|
-
function
|
|
3109
|
+
function _l(t) {
|
|
3111
3110
|
const n = t || {}, e = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, l = e ? " " : "|";
|
|
3112
3111
|
return {
|
|
3113
3112
|
unsafe: [
|
|
@@ -3156,7 +3155,7 @@ function Ll(t) {
|
|
|
3156
3155
|
return I(), b(), F;
|
|
3157
3156
|
}
|
|
3158
3157
|
function s(h, d) {
|
|
3159
|
-
return
|
|
3158
|
+
return Sl(h, {
|
|
3160
3159
|
align: d,
|
|
3161
3160
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
3162
3161
|
alignDelimiters: r,
|
|
@@ -3196,7 +3195,7 @@ function Ll(t) {
|
|
|
3196
3195
|
return w.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
3197
3196
|
}
|
|
3198
3197
|
}
|
|
3199
|
-
function
|
|
3198
|
+
function Ll(t) {
|
|
3200
3199
|
const n = t.options.bullet || "*";
|
|
3201
3200
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
3202
3201
|
throw new Error(
|
|
@@ -3204,7 +3203,7 @@ function Bl(t) {
|
|
|
3204
3203
|
);
|
|
3205
3204
|
return n;
|
|
3206
3205
|
}
|
|
3207
|
-
function
|
|
3206
|
+
function Bl(t) {
|
|
3208
3207
|
const n = t.options.listItemIndent || "tab";
|
|
3209
3208
|
if (n === 1 || n === "1")
|
|
3210
3209
|
return "one";
|
|
@@ -3214,9 +3213,9 @@ function Pl(t) {
|
|
|
3214
3213
|
);
|
|
3215
3214
|
return n;
|
|
3216
3215
|
}
|
|
3217
|
-
function
|
|
3218
|
-
const i =
|
|
3219
|
-
let l = e.bulletCurrent ||
|
|
3216
|
+
function Pl(t, n, e, r) {
|
|
3217
|
+
const i = Bl(e);
|
|
3218
|
+
let l = e.bulletCurrent || Ll(e);
|
|
3220
3219
|
n && n.type === "list" && n.ordered && (l = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (e.options.incrementListMarker === !1 ? 0 : n.children.indexOf(t)) + l);
|
|
3221
3220
|
let u = l.length + 1;
|
|
3222
3221
|
(i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || t.spread)) && (u = Math.ceil(u / 4) * 4);
|
|
@@ -3231,15 +3230,15 @@ function Ml(t, n, e, r) {
|
|
|
3231
3230
|
return g ? (h ? "" : " ".repeat(u)) + o : (h ? l : l + " ".repeat(u - l.length)) + o;
|
|
3232
3231
|
}
|
|
3233
3232
|
}
|
|
3234
|
-
const
|
|
3233
|
+
const Ml = {
|
|
3235
3234
|
exit: {
|
|
3236
3235
|
taskListCheckValueChecked: tn,
|
|
3237
3236
|
taskListCheckValueUnchecked: tn,
|
|
3238
|
-
paragraph:
|
|
3237
|
+
paragraph: Rl
|
|
3239
3238
|
}
|
|
3240
|
-
},
|
|
3239
|
+
}, Ol = {
|
|
3241
3240
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
3242
|
-
handlers: { listItem:
|
|
3241
|
+
handlers: { listItem: jl }
|
|
3243
3242
|
};
|
|
3244
3243
|
function tn(t) {
|
|
3245
3244
|
const n = (
|
|
@@ -3248,7 +3247,7 @@ function tn(t) {
|
|
|
3248
3247
|
);
|
|
3249
3248
|
n.checked = t.type === "taskListCheckValueChecked";
|
|
3250
3249
|
}
|
|
3251
|
-
function
|
|
3250
|
+
function Rl(t) {
|
|
3252
3251
|
const n = (
|
|
3253
3252
|
/** @type {Parents} */
|
|
3254
3253
|
this.stack[this.stack.length - 2]
|
|
@@ -3273,10 +3272,10 @@ function jl(t) {
|
|
|
3273
3272
|
}
|
|
3274
3273
|
this.exit(t);
|
|
3275
3274
|
}
|
|
3276
|
-
function
|
|
3275
|
+
function jl(t, n, e, r) {
|
|
3277
3276
|
const i = t.children[0], l = typeof t.checked == "boolean" && i && i.type === "paragraph", u = "[" + (t.checked ? "x" : " ") + "] ", a = Jt(r);
|
|
3278
3277
|
l && a.move(u);
|
|
3279
|
-
let c =
|
|
3278
|
+
let c = Pl(t, n, e, {
|
|
3280
3279
|
...r,
|
|
3281
3280
|
...a.current()
|
|
3282
3281
|
});
|
|
@@ -3285,29 +3284,29 @@ function Vl(t, n, e, r) {
|
|
|
3285
3284
|
return f + u;
|
|
3286
3285
|
}
|
|
3287
3286
|
}
|
|
3288
|
-
function
|
|
3287
|
+
function Vl() {
|
|
3289
3288
|
return [
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3289
|
+
Ou,
|
|
3290
|
+
nl(),
|
|
3291
|
+
dl,
|
|
3292
|
+
Al,
|
|
3293
|
+
Ml
|
|
3295
3294
|
];
|
|
3296
3295
|
}
|
|
3297
|
-
function
|
|
3296
|
+
function ql(t) {
|
|
3298
3297
|
return {
|
|
3299
3298
|
extensions: [
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3299
|
+
Ru,
|
|
3300
|
+
rl(),
|
|
3301
|
+
kl,
|
|
3302
|
+
_l(t),
|
|
3303
|
+
Ol
|
|
3305
3304
|
]
|
|
3306
3305
|
};
|
|
3307
3306
|
}
|
|
3308
|
-
function
|
|
3307
|
+
function Hl(t = {}) {
|
|
3309
3308
|
const n = this.data();
|
|
3310
|
-
e("micromarkExtensions",
|
|
3309
|
+
e("micromarkExtensions", Su(t)), e("fromMarkdownExtensions", Vl()), e("toMarkdownExtensions", ql(t));
|
|
3311
3310
|
function e(r, i) {
|
|
3312
3311
|
/** @type {unknown[]} */
|
|
3313
3312
|
// Other extensions
|
|
@@ -3319,6 +3318,9 @@ function en(t) {
|
|
|
3319
3318
|
if (t)
|
|
3320
3319
|
throw t;
|
|
3321
3320
|
}
|
|
3321
|
+
function Nl(t) {
|
|
3322
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3323
|
+
}
|
|
3322
3324
|
var Ht = Object.prototype.hasOwnProperty, vn = Object.prototype.toString, nn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, un = function(n) {
|
|
3323
3325
|
return typeof Array.isArray == "function" ? Array.isArray(n) : vn.call(n) === "[object Array]";
|
|
3324
3326
|
}, ln = function(n) {
|
|
@@ -3353,7 +3355,7 @@ var Ht = Object.prototype.hasOwnProperty, vn = Object.prototype.toString, nn = O
|
|
|
3353
3355
|
r = on(a, e), i = on(n, e), a !== i && (f && i && (ln(i) || (l = un(i))) ? (l ? (l = !1, u = r && un(r) ? r : []) : u = r && ln(r) ? r : {}, an(a, { name: e, newValue: t(f, u, i) })) : typeof i < "u" && an(a, { name: e, newValue: i }));
|
|
3354
3356
|
return a;
|
|
3355
3357
|
};
|
|
3356
|
-
const ae = /* @__PURE__ */
|
|
3358
|
+
const ae = /* @__PURE__ */ Nl($l);
|
|
3357
3359
|
function xe(t) {
|
|
3358
3360
|
if (typeof t != "object" || t === null)
|
|
3359
3361
|
return !1;
|
|
@@ -4828,7 +4830,7 @@ function ya(t) {
|
|
|
4828
4830
|
t.attempt(
|
|
4829
4831
|
this.parser.constructs.flow,
|
|
4830
4832
|
i,
|
|
4831
|
-
t.attempt(
|
|
4833
|
+
t.attempt(si, i)
|
|
4832
4834
|
),
|
|
4833
4835
|
"linePrefix"
|
|
4834
4836
|
)
|
|
@@ -5171,16 +5173,16 @@ const Ia = {
|
|
|
5171
5173
|
57: Y,
|
|
5172
5174
|
62: Tn
|
|
5173
5175
|
}, Ta = {
|
|
5174
|
-
91:
|
|
5176
|
+
91: mi
|
|
5175
5177
|
}, Da = {
|
|
5176
5178
|
[-2]: ee,
|
|
5177
5179
|
[-1]: ee,
|
|
5178
5180
|
32: ee
|
|
5179
5181
|
}, _a = {
|
|
5180
|
-
35:
|
|
5182
|
+
35: yi,
|
|
5181
5183
|
42: qt,
|
|
5182
5184
|
45: [Ue, qt],
|
|
5183
|
-
60:
|
|
5185
|
+
60: Ci,
|
|
5184
5186
|
61: Ue,
|
|
5185
5187
|
95: qt,
|
|
5186
5188
|
96: Ne,
|
|
@@ -5192,15 +5194,15 @@ const Ia = {
|
|
|
5192
5194
|
[-5]: ne,
|
|
5193
5195
|
[-4]: ne,
|
|
5194
5196
|
[-3]: ne,
|
|
5195
|
-
33:
|
|
5197
|
+
33: Ni,
|
|
5196
5198
|
38: _n,
|
|
5197
5199
|
42: ke,
|
|
5198
|
-
60: [
|
|
5199
|
-
91:
|
|
5200
|
-
92: [
|
|
5200
|
+
60: [Wr, _i],
|
|
5201
|
+
91: Ui,
|
|
5202
|
+
92: [xi, Dn],
|
|
5201
5203
|
93: Ae,
|
|
5202
5204
|
95: ke,
|
|
5203
|
-
96:
|
|
5205
|
+
96: ii
|
|
5204
5206
|
}, Pa = {
|
|
5205
5207
|
null: [ke, wa]
|
|
5206
5208
|
}, Ma = {
|
|
@@ -5892,7 +5894,7 @@ function Ua(t) {
|
|
|
5892
5894
|
} });
|
|
5893
5895
|
}
|
|
5894
5896
|
function Wa(t) {
|
|
5895
|
-
return aa().use(Ua).use(
|
|
5897
|
+
return aa().use(Ua).use(Hl).freeze().parse(t);
|
|
5896
5898
|
}
|
|
5897
5899
|
const va = new RegExp(
|
|
5898
5900
|
"^[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])?)*$"
|
|
@@ -6147,7 +6149,7 @@ const ao = {
|
|
|
6147
6149
|
"rich-text": ""
|
|
6148
6150
|
}, {
|
|
6149
6151
|
default: Pt(() => [
|
|
6150
|
-
z.hideLabel ? te("", !0) : (Z(), pt(ht(
|
|
6152
|
+
z.hideLabel ? te("", !0) : (Z(), pt(ht(wr), {
|
|
6151
6153
|
key: 0,
|
|
6152
6154
|
label: z.label,
|
|
6153
6155
|
"tooltip-text": z.tooltipText,
|
|
@@ -6166,7 +6168,7 @@ const ao = {
|
|
|
6166
6168
|
}, null, 8, ["modelValue", "items"])
|
|
6167
6169
|
]),
|
|
6168
6170
|
(Z(), pt(pr, null, [
|
|
6169
|
-
c.value === "markdown" ? (Z(), pt(
|
|
6171
|
+
c.value === "markdown" ? (Z(), pt(Ar, {
|
|
6170
6172
|
key: 0,
|
|
6171
6173
|
value: s.value,
|
|
6172
6174
|
role: "textbox",
|
|
@@ -6190,7 +6192,7 @@ const ao = {
|
|
|
6190
6192
|
}, null, 8, ["node", "class"]))
|
|
6191
6193
|
], 1024))
|
|
6192
6194
|
], 16, oo),
|
|
6193
|
-
z.errorMessage ? (Z(), pt(ht(
|
|
6195
|
+
z.errorMessage ? (Z(), pt(ht(Fr), {
|
|
6194
6196
|
key: 1,
|
|
6195
6197
|
id: ht(r),
|
|
6196
6198
|
"error-message": z.errorMessage,
|
|
@@ -6215,8 +6217,8 @@ const ao = {
|
|
|
6215
6217
|
_: 1
|
|
6216
6218
|
}));
|
|
6217
6219
|
}
|
|
6218
|
-
}),
|
|
6220
|
+
}), Ao = /* @__PURE__ */ Fe(ho, [["__scopeId", "data-v-d60367f9"]]);
|
|
6219
6221
|
export {
|
|
6220
|
-
|
|
6222
|
+
Ao as r
|
|
6221
6223
|
};
|
|
6222
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6224
|
+
//# sourceMappingURL=rich-text-editor.Bh7KS617.js.map
|