zudoku 0.37.0 → 0.38.0
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/app/main.js +2 -0
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/common.d.ts +287 -18
- package/dist/config/validators/common.js +2 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +107 -7
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/providers/clerk.js +19 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -0
- package/dist/lib/authentication/providers/openid.js +5 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +5 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +1 -16
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +7 -0
- package/dist/lib/core/ZudokuContext.js +8 -3
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +8 -6
- package/dist/lib/plugins/markdown/MdxPage.js +2 -8
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +29 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +26 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +13 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +19 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -8
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +18 -12
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +8 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{AuthenticationPlugin-Cij2tPWa.js → AuthenticationPlugin-Duy_R1TU.js} +3 -3
- package/lib/{AuthenticationPlugin-Cij2tPWa.js.map → AuthenticationPlugin-Duy_R1TU.js.map} +1 -1
- package/lib/{Markdown-DT5Rrq8_.js → Markdown-DIZ8nBVC.js} +742 -738
- package/lib/{Markdown-DT5Rrq8_.js.map → Markdown-DIZ8nBVC.js.map} +1 -1
- package/lib/{MdxPage-D2rD1vC4.js → MdxPage-JEdbfW-f.js} +42 -47
- package/lib/MdxPage-JEdbfW-f.js.map +1 -0
- package/lib/{OasProvider-DdEBf2qS.js → OasProvider-D1A10JeA.js} +4 -4
- package/lib/{OasProvider-DdEBf2qS.js.map → OasProvider-D1A10JeA.js.map} +1 -1
- package/lib/{OperationList-DT4-gm_S.js → OperationList-yOmYzMIp.js} +1128 -1112
- package/lib/OperationList-yOmYzMIp.js.map +1 -0
- package/lib/{Select-z1Lwl0-J.js → Select-fAYcJ0OU.js} +8 -8
- package/lib/{Select-z1Lwl0-J.js.map → Select-fAYcJ0OU.js.map} +1 -1
- package/lib/{SlotletProvider-D8OBnr77.js → SlotletProvider-BEwNY8q0.js} +4 -4
- package/lib/{SlotletProvider-D8OBnr77.js.map → SlotletProvider-BEwNY8q0.js.map} +1 -1
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js → chunk-HA7DTUK3-C4gP41vD.js} +5 -5
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js.map → chunk-HA7DTUK3-C4gP41vD.js.map} +1 -1
- package/lib/hook-Cge6LiTK.js +1483 -0
- package/lib/hook-Cge6LiTK.js.map +1 -0
- package/lib/{index-DdQSV2RF.js → index-B0y3fTg-.js} +261 -243
- package/lib/index-B0y3fTg-.js.map +1 -0
- package/lib/{mutation-_Z5C2wFZ.js → mutation-EChriCeF.js} +2 -2
- package/lib/{mutation-_Z5C2wFZ.js.map → mutation-EChriCeF.js.map} +1 -1
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/{useExposedProps-BslIn-FE.js → useExposedProps-B9qXJedG.js} +2 -2
- package/lib/{useExposedProps-BslIn-FE.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +59 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +76 -73
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +370 -354
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +23 -24
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +15 -16
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +133 -98
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +2 -2
- package/src/app/main.tsx +2 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/providers/clerk.tsx +20 -0
- package/src/lib/authentication/providers/openid.tsx +6 -0
- package/src/lib/authentication/providers/supabase.tsx +6 -0
- package/src/lib/authentication/state.ts +1 -35
- package/src/lib/components/Layout.tsx +14 -2
- package/src/lib/components/Zudoku.tsx +5 -2
- package/src/lib/core/ZudokuContext.ts +13 -6
- package/src/lib/core/plugins.ts +9 -9
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -8
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +36 -7
- package/src/lib/plugins/openapi/interfaces.ts +29 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +26 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +59 -47
- package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
- package/src/lib/util/traverse.ts +2 -6
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useScrollToAnchor.ts +20 -12
- package/lib/MdxPage-D2rD1vC4.js.map +0 -1
- package/lib/OperationList-DT4-gm_S.js.map +0 -1
- package/lib/hook-DzQC8PzJ.js +0 -355
- package/lib/hook-DzQC8PzJ.js.map +0 -1
- package/lib/index-DdQSV2RF.js.map +0 -1
- package/lib/joinUrl-BjDooT-T.js +0 -1154
- package/lib/joinUrl-BjDooT-T.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as B } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
|
-
import { createContext as zs, useContext as Ys, useRef as
|
|
3
|
-
import { d as qs,
|
|
2
|
+
import { createContext as zs, useContext as Ys, useRef as vt, useEffect as Tt, useCallback as Si, useState as ur, useMemo as tu, memo as Ii } from "react";
|
|
3
|
+
import { d as qs, g as Cr, u as xr, b as js, h as Vs } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
4
4
|
import { c as ki } from "./index-CPNSgwSb.js";
|
|
5
5
|
import { ChevronRightIcon as Ws, ExternalLinkIcon as Gs } from "lucide-react";
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import * as
|
|
6
|
+
import { N as Qs, j as yi } from "./hook-Cge6LiTK.js";
|
|
7
|
+
import { c as Ht } from "./cn-qaFjX9_3.js";
|
|
8
|
+
import * as Bn from "@radix-ui/react-collapsible";
|
|
9
9
|
import { B as Xs } from "./Button-Fp19CMUr.js";
|
|
10
10
|
import { Slot as Ks } from "@radix-ui/react-slot";
|
|
11
11
|
import { Callout as Ze } from "./ui/Callout.js";
|
|
@@ -13,13 +13,13 @@ import { Stepper as $s } from "./ui/Stepper.js";
|
|
|
13
13
|
import { S as nu } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
14
14
|
import { g as Ni } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
15
15
|
import { e as Js } from "./index-Bn6Lc9tq.js";
|
|
16
|
-
const Oi = -1,
|
|
16
|
+
const Oi = -1, Sn = 0, gn = 1, Tn = 2, Sr = 3, Ir = 4, kr = 5, yr = 6, Li = 7, Ri = 8, ru = typeof self == "object" ? self : globalThis, Zs = (e, t) => {
|
|
17
17
|
const n = (u, i) => (e.set(i, u), u), r = (u) => {
|
|
18
18
|
if (e.has(u))
|
|
19
19
|
return e.get(u);
|
|
20
20
|
const [i, a] = t[u];
|
|
21
21
|
switch (i) {
|
|
22
|
-
case
|
|
22
|
+
case Sn:
|
|
23
23
|
case Oi:
|
|
24
24
|
return n(a, u);
|
|
25
25
|
case gn: {
|
|
@@ -36,17 +36,17 @@ const Oi = -1, In = 0, gn = 1, Tn = 2, Sr = 3, kr = 4, yr = 5, Nr = 6, Li = 7, R
|
|
|
36
36
|
}
|
|
37
37
|
case Sr:
|
|
38
38
|
return n(new Date(a), u);
|
|
39
|
-
case
|
|
39
|
+
case Ir: {
|
|
40
40
|
const { source: o, flags: l } = a;
|
|
41
41
|
return n(new RegExp(o, l), u);
|
|
42
42
|
}
|
|
43
|
-
case
|
|
43
|
+
case kr: {
|
|
44
44
|
const o = n(/* @__PURE__ */ new Map(), u);
|
|
45
45
|
for (const [l, c] of a)
|
|
46
46
|
o.set(r(l), r(c));
|
|
47
47
|
return o;
|
|
48
48
|
}
|
|
49
|
-
case
|
|
49
|
+
case yr: {
|
|
50
50
|
const o = n(/* @__PURE__ */ new Set(), u);
|
|
51
51
|
for (const l of a)
|
|
52
52
|
o.add(r(l));
|
|
@@ -64,10 +64,10 @@ const Oi = -1, In = 0, gn = 1, Tn = 2, Sr = 3, kr = 4, yr = 5, Nr = 6, Li = 7, R
|
|
|
64
64
|
return n(new ru[i](a), u);
|
|
65
65
|
};
|
|
66
66
|
return r;
|
|
67
|
-
}, uu = (e) => Zs(/* @__PURE__ */ new Map(), e)(0), ct = "", { toString: eo } = {}, { keys: to } = Object,
|
|
67
|
+
}, uu = (e) => Zs(/* @__PURE__ */ new Map(), e)(0), ct = "", { toString: eo } = {}, { keys: to } = Object, Rt = (e) => {
|
|
68
68
|
const t = typeof e;
|
|
69
69
|
if (t !== "object" || !e)
|
|
70
|
-
return [
|
|
70
|
+
return [Sn, t];
|
|
71
71
|
const n = eo.call(e).slice(8, -1);
|
|
72
72
|
switch (n) {
|
|
73
73
|
case "Array":
|
|
@@ -77,23 +77,23 @@ const Oi = -1, In = 0, gn = 1, Tn = 2, Sr = 3, kr = 4, yr = 5, Nr = 6, Li = 7, R
|
|
|
77
77
|
case "Date":
|
|
78
78
|
return [Sr, ct];
|
|
79
79
|
case "RegExp":
|
|
80
|
-
return [
|
|
80
|
+
return [Ir, ct];
|
|
81
81
|
case "Map":
|
|
82
|
-
return [
|
|
82
|
+
return [kr, ct];
|
|
83
83
|
case "Set":
|
|
84
|
-
return [
|
|
84
|
+
return [yr, ct];
|
|
85
85
|
}
|
|
86
86
|
return n.includes("Array") ? [gn, n] : n.includes("Error") ? [Li, n] : [Tn, n];
|
|
87
|
-
},
|
|
87
|
+
}, an = ([e, t]) => e === Sn && (t === "function" || t === "symbol"), no = (e, t, n, r) => {
|
|
88
88
|
const u = (a, o) => {
|
|
89
89
|
const l = r.push(a) - 1;
|
|
90
90
|
return n.set(o, l), l;
|
|
91
91
|
}, i = (a) => {
|
|
92
92
|
if (n.has(a))
|
|
93
93
|
return n.get(a);
|
|
94
|
-
let [o, l] =
|
|
94
|
+
let [o, l] = Rt(a);
|
|
95
95
|
switch (o) {
|
|
96
|
-
case
|
|
96
|
+
case Sn: {
|
|
97
97
|
let h = a;
|
|
98
98
|
switch (l) {
|
|
99
99
|
case "bigint":
|
|
@@ -132,25 +132,25 @@ const Oi = -1, In = 0, gn = 1, Tn = 2, Sr = 3, kr = 4, yr = 5, Nr = 6, Li = 7, R
|
|
|
132
132
|
return i(a.toJSON());
|
|
133
133
|
const h = [], f = u([o, h], a);
|
|
134
134
|
for (const E of to(a))
|
|
135
|
-
(e || !
|
|
135
|
+
(e || !an(Rt(a[E]))) && h.push([i(E), i(a[E])]);
|
|
136
136
|
return f;
|
|
137
137
|
}
|
|
138
138
|
case Sr:
|
|
139
139
|
return u([o, a.toISOString()], a);
|
|
140
|
-
case
|
|
140
|
+
case Ir: {
|
|
141
141
|
const { source: h, flags: f } = a;
|
|
142
142
|
return u([o, { source: h, flags: f }], a);
|
|
143
143
|
}
|
|
144
|
-
case
|
|
144
|
+
case kr: {
|
|
145
145
|
const h = [], f = u([o, h], a);
|
|
146
146
|
for (const [E, m] of a)
|
|
147
|
-
(e || !(
|
|
147
|
+
(e || !(an(Rt(E)) || an(Rt(m)))) && h.push([i(E), i(m)]);
|
|
148
148
|
return f;
|
|
149
149
|
}
|
|
150
|
-
case
|
|
150
|
+
case yr: {
|
|
151
151
|
const h = [], f = u([o, h], a);
|
|
152
152
|
for (const E of a)
|
|
153
|
-
(e || !
|
|
153
|
+
(e || !an(Rt(E))) && h.push(i(E));
|
|
154
154
|
return f;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -161,11 +161,11 @@ const Oi = -1, In = 0, gn = 1, Tn = 2, Sr = 3, kr = 4, yr = 5, Nr = 6, Li = 7, R
|
|
|
161
161
|
}, iu = (e, { json: t, lossy: n } = {}) => {
|
|
162
162
|
const r = [];
|
|
163
163
|
return no(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
164
|
-
},
|
|
164
|
+
}, bt = typeof structuredClone == "function" ? (
|
|
165
165
|
/* c8 ignore start */
|
|
166
166
|
(e, t) => t && ("json" in t || "lossy" in t) ? uu(iu(e, t)) : structuredClone(e)
|
|
167
167
|
) : (e, t) => uu(iu(e, t));
|
|
168
|
-
let
|
|
168
|
+
let $t = class {
|
|
169
169
|
/**
|
|
170
170
|
* @constructor
|
|
171
171
|
* @param {Properties} property
|
|
@@ -176,17 +176,17 @@ let Kt = class {
|
|
|
176
176
|
this.property = t, this.normal = n, r && (this.space = r);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
$t.prototype.property = {};
|
|
180
|
+
$t.prototype.normal = {};
|
|
181
|
+
$t.prototype.space = null;
|
|
182
182
|
function Di(e, t) {
|
|
183
183
|
const n = {}, r = {};
|
|
184
184
|
let u = -1;
|
|
185
185
|
for (; ++u < e.length; )
|
|
186
186
|
Object.assign(n, e[u].property), Object.assign(r, e[u].normal);
|
|
187
|
-
return new
|
|
187
|
+
return new $t(n, r, t);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Gt(e) {
|
|
190
190
|
return e.toLowerCase();
|
|
191
191
|
}
|
|
192
192
|
let ke = class {
|
|
@@ -214,7 +214,7 @@ const W = ut(), se = ut(), Pi = ut(), P = ut(), re = ut(), pt = ut(), Ce = ut();
|
|
|
214
214
|
function ut() {
|
|
215
215
|
return 2 ** ++ro;
|
|
216
216
|
}
|
|
217
|
-
const
|
|
217
|
+
const ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
218
218
|
__proto__: null,
|
|
219
219
|
boolean: W,
|
|
220
220
|
booleanish: se,
|
|
@@ -223,8 +223,8 @@ const ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
223
223
|
number: P,
|
|
224
224
|
overloadedBoolean: Pi,
|
|
225
225
|
spaceSeparated: re
|
|
226
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
227
|
-
let
|
|
226
|
+
}, Symbol.toStringTag, { value: "Module" })), Fn = Object.keys(ir);
|
|
227
|
+
let Nr = class extends ke {
|
|
228
228
|
/**
|
|
229
229
|
* @constructor
|
|
230
230
|
* @param {string} property
|
|
@@ -235,33 +235,33 @@ let Or = class extends ke {
|
|
|
235
235
|
constructor(t, n, r, u) {
|
|
236
236
|
let i = -1;
|
|
237
237
|
if (super(t, n), au(this, "space", u), typeof r == "number")
|
|
238
|
-
for (; ++i <
|
|
239
|
-
const a =
|
|
240
|
-
au(this,
|
|
238
|
+
for (; ++i < Fn.length; ) {
|
|
239
|
+
const a = Fn[i];
|
|
240
|
+
au(this, Fn[i], (r & ir[a]) === ir[a]);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
Nr.prototype.defined = !0;
|
|
245
245
|
function au(e, t, n) {
|
|
246
246
|
n && (e[t] = n);
|
|
247
247
|
}
|
|
248
248
|
const uo = {}.hasOwnProperty;
|
|
249
|
-
function
|
|
249
|
+
function Ct(e) {
|
|
250
250
|
const t = {}, n = {};
|
|
251
251
|
let r;
|
|
252
252
|
for (r in e.properties)
|
|
253
253
|
if (uo.call(e.properties, r)) {
|
|
254
|
-
const u = e.properties[r], i = new
|
|
254
|
+
const u = e.properties[r], i = new Nr(
|
|
255
255
|
r,
|
|
256
256
|
e.transform(e.attributes || {}, r),
|
|
257
257
|
u,
|
|
258
258
|
e.space
|
|
259
259
|
);
|
|
260
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[
|
|
260
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[Gt(r)] = r, n[Gt(i.attribute)] = r;
|
|
261
261
|
}
|
|
262
|
-
return new
|
|
262
|
+
return new $t(t, n, e.space);
|
|
263
263
|
}
|
|
264
|
-
const wi =
|
|
264
|
+
const wi = Ct({
|
|
265
265
|
space: "xlink",
|
|
266
266
|
transform(e, t) {
|
|
267
267
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
@@ -275,7 +275,7 @@ const wi = _t({
|
|
|
275
275
|
xLinkTitle: null,
|
|
276
276
|
xLinkType: null
|
|
277
277
|
}
|
|
278
|
-
}), Mi =
|
|
278
|
+
}), Mi = Ct({
|
|
279
279
|
space: "xml",
|
|
280
280
|
transform(e, t) {
|
|
281
281
|
return "xml:" + t.slice(3).toLowerCase();
|
|
@@ -288,12 +288,12 @@ function Bi(e, t) {
|
|
|
288
288
|
function Fi(e, t) {
|
|
289
289
|
return Bi(e, t.toLowerCase());
|
|
290
290
|
}
|
|
291
|
-
const vi =
|
|
291
|
+
const vi = Ct({
|
|
292
292
|
space: "xmlns",
|
|
293
293
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
294
294
|
transform: Fi,
|
|
295
295
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
296
|
-
}), Hi =
|
|
296
|
+
}), Hi = Ct({
|
|
297
297
|
transform(e, t) {
|
|
298
298
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
299
299
|
},
|
|
@@ -348,7 +348,7 @@ const vi = _t({
|
|
|
348
348
|
ariaValueText: null,
|
|
349
349
|
role: null
|
|
350
350
|
}
|
|
351
|
-
}), io =
|
|
351
|
+
}), io = Ct({
|
|
352
352
|
space: "html",
|
|
353
353
|
attributes: {
|
|
354
354
|
acceptcharset: "accept-charset",
|
|
@@ -709,7 +709,7 @@ const vi = _t({
|
|
|
709
709
|
security: null,
|
|
710
710
|
unselectable: null
|
|
711
711
|
}
|
|
712
|
-
}), ao =
|
|
712
|
+
}), ao = Ct({
|
|
713
713
|
space: "svg",
|
|
714
714
|
attributes: {
|
|
715
715
|
accentHeight: "accent-height",
|
|
@@ -1269,8 +1269,8 @@ const vi = _t({
|
|
|
1269
1269
|
zoomAndPan: null
|
|
1270
1270
|
}
|
|
1271
1271
|
}), so = /^data[-\w.:]+$/i, su = /-[a-z]/g, oo = /[A-Z]/g;
|
|
1272
|
-
function
|
|
1273
|
-
const n =
|
|
1272
|
+
function Or(e, t) {
|
|
1273
|
+
const n = Gt(t);
|
|
1274
1274
|
let r = t, u = ke;
|
|
1275
1275
|
if (n in e.normal)
|
|
1276
1276
|
return e.property[e.normal[n]];
|
|
@@ -1285,7 +1285,7 @@ function Lr(e, t) {
|
|
|
1285
1285
|
a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
u =
|
|
1288
|
+
u = Nr;
|
|
1289
1289
|
}
|
|
1290
1290
|
return new u(r, t);
|
|
1291
1291
|
}
|
|
@@ -1295,7 +1295,7 @@ function lo(e) {
|
|
|
1295
1295
|
function co(e) {
|
|
1296
1296
|
return e.charAt(1).toUpperCase();
|
|
1297
1297
|
}
|
|
1298
|
-
const
|
|
1298
|
+
const In = Di([Mi, wi, vi, Hi, io], "html"), Jt = Di([Mi, wi, vi, Hi, ao], "svg");
|
|
1299
1299
|
function ou(e) {
|
|
1300
1300
|
const t = [], n = String(e || "");
|
|
1301
1301
|
let r = n.indexOf(","), u = 0, i = !1;
|
|
@@ -1336,7 +1336,7 @@ function cu(e) {
|
|
|
1336
1336
|
function zi(e) {
|
|
1337
1337
|
return e.join(" ").trim();
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const ar = {}.hasOwnProperty;
|
|
1340
1340
|
function Yi(e, t, n) {
|
|
1341
1341
|
const r = n && Eo(n);
|
|
1342
1342
|
function u(i, a, ...o) {
|
|
@@ -1348,15 +1348,15 @@ function Yi(e, t, n) {
|
|
|
1348
1348
|
a
|
|
1349
1349
|
);
|
|
1350
1350
|
o.unshift(h);
|
|
1351
|
-
} else if (c = fo(i, t), c.tagName = c.tagName.toLowerCase(), r &&
|
|
1351
|
+
} else if (c = fo(i, t), c.tagName = c.tagName.toLowerCase(), r && ar.call(r, c.tagName) && (c.tagName = r[c.tagName]), ho(a))
|
|
1352
1352
|
o.unshift(a);
|
|
1353
1353
|
else {
|
|
1354
1354
|
let h;
|
|
1355
1355
|
for (h in a)
|
|
1356
|
-
|
|
1356
|
+
ar.call(a, h) && mo(e, c.properties, h, a[h]);
|
|
1357
1357
|
}
|
|
1358
1358
|
for (; ++l < o.length; )
|
|
1359
|
-
|
|
1359
|
+
sr(c.children, o[l]);
|
|
1360
1360
|
return c.type === "element" && c.tagName === "template" && (c.content = { type: "root", children: c.children }, c.children = []), c;
|
|
1361
1361
|
}
|
|
1362
1362
|
return u;
|
|
@@ -1385,7 +1385,7 @@ function ho(e) {
|
|
|
1385
1385
|
return !!("children" in e && Array.isArray(e.children));
|
|
1386
1386
|
}
|
|
1387
1387
|
function mo(e, t, n, r) {
|
|
1388
|
-
const u =
|
|
1388
|
+
const u = Or(e, n);
|
|
1389
1389
|
let i = -1, a;
|
|
1390
1390
|
if (r != null) {
|
|
1391
1391
|
if (typeof r == "number") {
|
|
@@ -1413,15 +1413,15 @@ function mo(e, t, n, r) {
|
|
|
1413
1413
|
t[u.property] = a;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function sr(e, t) {
|
|
1417
1417
|
let n = -1;
|
|
1418
1418
|
if (t != null) if (typeof t == "string" || typeof t == "number")
|
|
1419
1419
|
e.push({ type: "text", value: String(t) });
|
|
1420
1420
|
else if (Array.isArray(t))
|
|
1421
1421
|
for (; ++n < t.length; )
|
|
1422
|
-
|
|
1422
|
+
sr(e, t[n]);
|
|
1423
1423
|
else if (typeof t == "object" && "type" in t)
|
|
1424
|
-
t.type === "root" ?
|
|
1424
|
+
t.type === "root" ? sr(e, t.children) : e.push(t);
|
|
1425
1425
|
else
|
|
1426
1426
|
throw new Error("Expected node, nodes, or string, got `" + t + "`");
|
|
1427
1427
|
}
|
|
@@ -1429,7 +1429,7 @@ function fu(e, t, n) {
|
|
|
1429
1429
|
if (typeof n == "string") {
|
|
1430
1430
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
1431
1431
|
return Number(n);
|
|
1432
|
-
if ((e.boolean || e.overloadedBoolean) && (n === "" ||
|
|
1432
|
+
if ((e.boolean || e.overloadedBoolean) && (n === "" || Gt(n) === Gt(t)))
|
|
1433
1433
|
return !0;
|
|
1434
1434
|
}
|
|
1435
1435
|
return n;
|
|
@@ -1438,7 +1438,7 @@ function po(e) {
|
|
|
1438
1438
|
const t = [];
|
|
1439
1439
|
let n;
|
|
1440
1440
|
for (n in e)
|
|
1441
|
-
|
|
1441
|
+
ar.call(e, n) && t.push([n, e[n]].join(": "));
|
|
1442
1442
|
return t.join("; ");
|
|
1443
1443
|
}
|
|
1444
1444
|
function Eo(e) {
|
|
@@ -1488,7 +1488,7 @@ const go = [
|
|
|
1488
1488
|
"solidColor",
|
|
1489
1489
|
"textArea",
|
|
1490
1490
|
"textPath"
|
|
1491
|
-
], To = Yi(
|
|
1491
|
+
], To = Yi(In, "div"), bo = Yi(Jt, "g", go);
|
|
1492
1492
|
function Ao(e) {
|
|
1493
1493
|
const t = String(e), n = [];
|
|
1494
1494
|
return { toOffset: u, toPoint: r };
|
|
@@ -1538,17 +1538,17 @@ const tt = {
|
|
|
1538
1538
|
}, qi = {}.hasOwnProperty, _o = Object.prototype;
|
|
1539
1539
|
function Co(e, t) {
|
|
1540
1540
|
const n = t || {};
|
|
1541
|
-
return
|
|
1541
|
+
return Lr(
|
|
1542
1542
|
{
|
|
1543
1543
|
file: n.file || void 0,
|
|
1544
1544
|
location: !1,
|
|
1545
|
-
schema: n.space === "svg" ?
|
|
1545
|
+
schema: n.space === "svg" ? Jt : In,
|
|
1546
1546
|
verbose: n.verbose || !1
|
|
1547
1547
|
},
|
|
1548
1548
|
e
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function Lr(e, t) {
|
|
1552
1552
|
let n;
|
|
1553
1553
|
switch (t.nodeName) {
|
|
1554
1554
|
case "#comment": {
|
|
@@ -1603,7 +1603,7 @@ function ji(e, t) {
|
|
|
1603
1603
|
for (; ++n < t.length; ) {
|
|
1604
1604
|
const u = (
|
|
1605
1605
|
/** @type {RootContent} */
|
|
1606
|
-
|
|
1606
|
+
Lr(e, t[n])
|
|
1607
1607
|
);
|
|
1608
1608
|
r.push(u);
|
|
1609
1609
|
}
|
|
@@ -1611,7 +1611,7 @@ function ji(e, t) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
function xo(e, t) {
|
|
1613
1613
|
const n = e.schema;
|
|
1614
|
-
e.schema = t.namespaceURI === tt.svg ?
|
|
1614
|
+
e.schema = t.namespaceURI === tt.svg ? Jt : In;
|
|
1615
1615
|
let r = -1;
|
|
1616
1616
|
const u = {};
|
|
1617
1617
|
for (; ++r < t.attrs.length; ) {
|
|
@@ -1625,7 +1625,7 @@ function xo(e, t) {
|
|
|
1625
1625
|
t
|
|
1626
1626
|
), l = o.sourceCodeLocation, c = l && l.startTag && mt(l.startTag), h = l && l.endTag && mt(l.endTag), f = (
|
|
1627
1627
|
/** @type {Root} */
|
|
1628
|
-
|
|
1628
|
+
Lr(e, o.content)
|
|
1629
1629
|
);
|
|
1630
1630
|
c && h && e.file && (f.position = { start: c.end, end: h.start }), a.content = f;
|
|
1631
1631
|
}
|
|
@@ -1633,11 +1633,11 @@ function xo(e, t) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
function hn(e, t, n) {
|
|
1635
1635
|
if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
|
|
1636
|
-
const r =
|
|
1636
|
+
const r = So(e, n, t.sourceCodeLocation);
|
|
1637
1637
|
r && (e.location = !0, n.position = r);
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function So(e, t, n) {
|
|
1641
1641
|
const r = mt(n);
|
|
1642
1642
|
if (t.type === "element") {
|
|
1643
1643
|
const u = t.children[t.children.length - 1];
|
|
@@ -1646,7 +1646,7 @@ function Io(e, t, n) {
|
|
|
1646
1646
|
let a;
|
|
1647
1647
|
if (n.attrs)
|
|
1648
1648
|
for (a in n.attrs)
|
|
1649
|
-
qi.call(n.attrs, a) && (i[
|
|
1649
|
+
qi.call(n.attrs, a) && (i[Or(e.schema, a).property] = mt(
|
|
1650
1650
|
n.attrs[a]
|
|
1651
1651
|
));
|
|
1652
1652
|
n.startTag;
|
|
@@ -1686,10 +1686,10 @@ function Vi(e, t) {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1689
|
+
const Io = {}, ko = {}.hasOwnProperty, Wi = Vi("type", { handlers: { root: No, element: Po, text: Ro, comment: Do, doctype: Lo } });
|
|
1690
1690
|
function yo(e, t) {
|
|
1691
|
-
const r = (t ||
|
|
1692
|
-
return Wi(e, r === "svg" ?
|
|
1691
|
+
const r = (t || Io).space;
|
|
1692
|
+
return Wi(e, r === "svg" ? Jt : In);
|
|
1693
1693
|
}
|
|
1694
1694
|
function No(e, t) {
|
|
1695
1695
|
const n = {
|
|
@@ -1698,11 +1698,11 @@ function No(e, t) {
|
|
|
1698
1698
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
1699
1699
|
childNodes: []
|
|
1700
1700
|
};
|
|
1701
|
-
return n.childNodes =
|
|
1701
|
+
return n.childNodes = Rr(e.children, n, t), xt(e, n), n;
|
|
1702
1702
|
}
|
|
1703
1703
|
function Oo(e, t) {
|
|
1704
1704
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
1705
|
-
return n.childNodes =
|
|
1705
|
+
return n.childNodes = Rr(e.children, n, t), xt(e, n), n;
|
|
1706
1706
|
}
|
|
1707
1707
|
function Lo(e) {
|
|
1708
1708
|
const t = {
|
|
@@ -1712,7 +1712,7 @@ function Lo(e) {
|
|
|
1712
1712
|
systemId: "",
|
|
1713
1713
|
parentNode: null
|
|
1714
1714
|
};
|
|
1715
|
-
return
|
|
1715
|
+
return xt(e, t), t;
|
|
1716
1716
|
}
|
|
1717
1717
|
function Ro(e) {
|
|
1718
1718
|
const t = {
|
|
@@ -1720,7 +1720,7 @@ function Ro(e) {
|
|
|
1720
1720
|
value: e.value,
|
|
1721
1721
|
parentNode: null
|
|
1722
1722
|
};
|
|
1723
|
-
return
|
|
1723
|
+
return xt(e, t), t;
|
|
1724
1724
|
}
|
|
1725
1725
|
function Do(e) {
|
|
1726
1726
|
const t = {
|
|
@@ -1728,12 +1728,12 @@ function Do(e) {
|
|
|
1728
1728
|
data: e.value,
|
|
1729
1729
|
parentNode: null
|
|
1730
1730
|
};
|
|
1731
|
-
return
|
|
1731
|
+
return xt(e, t), t;
|
|
1732
1732
|
}
|
|
1733
1733
|
function Po(e, t) {
|
|
1734
1734
|
const n = t;
|
|
1735
1735
|
let r = n;
|
|
1736
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r =
|
|
1736
|
+
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = Jt);
|
|
1737
1737
|
const u = [];
|
|
1738
1738
|
let i;
|
|
1739
1739
|
if (e.properties) {
|
|
@@ -1756,10 +1756,10 @@ function Po(e, t) {
|
|
|
1756
1756
|
childNodes: [],
|
|
1757
1757
|
parentNode: null
|
|
1758
1758
|
};
|
|
1759
|
-
return o.childNodes =
|
|
1759
|
+
return o.childNodes = Rr(e.children, o, r), xt(e, o), e.tagName === "template" && e.content && (o.content = Oo(e.content, r)), o;
|
|
1760
1760
|
}
|
|
1761
1761
|
function wo(e, t, n) {
|
|
1762
|
-
const r =
|
|
1762
|
+
const r = Or(e, t);
|
|
1763
1763
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
|
1764
1764
|
return;
|
|
1765
1765
|
Array.isArray(n) && (n = r.commaSeparated ? Ui(n) : zi(n));
|
|
@@ -1773,7 +1773,7 @@ function wo(e, t, n) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
return u;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function Rr(e, t, n) {
|
|
1777
1777
|
let r = -1;
|
|
1778
1778
|
const u = [];
|
|
1779
1779
|
if (e)
|
|
@@ -1783,7 +1783,7 @@ function Dr(e, t, n) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
return u;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function xt(e, t) {
|
|
1787
1787
|
const n = e.position;
|
|
1788
1788
|
n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
|
|
1789
1789
|
startLine: n.start.line,
|
|
@@ -1878,10 +1878,10 @@ function Qi(e) {
|
|
|
1878
1878
|
function Xi(e) {
|
|
1879
1879
|
return e >= 64976 && e <= 65007 || Bo.has(e);
|
|
1880
1880
|
}
|
|
1881
|
-
var
|
|
1881
|
+
var S;
|
|
1882
1882
|
(function(e) {
|
|
1883
1883
|
e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
|
|
1884
|
-
})(
|
|
1884
|
+
})(S || (S = {}));
|
|
1885
1885
|
const Ho = 65536;
|
|
1886
1886
|
class Uo {
|
|
1887
1887
|
constructor(t) {
|
|
@@ -1919,7 +1919,7 @@ class Uo {
|
|
|
1919
1919
|
return this.pos++, this._addGap(), vo(t, n);
|
|
1920
1920
|
} else if (!this.lastChunkWritten)
|
|
1921
1921
|
return this.endOfChunkHit = !0, d.EOF;
|
|
1922
|
-
return this._err(
|
|
1922
|
+
return this._err(S.surrogateInInputStream), t;
|
|
1923
1923
|
}
|
|
1924
1924
|
willDropParsedChunk() {
|
|
1925
1925
|
return this.pos > this.bufferWaterline;
|
|
@@ -1957,7 +1957,7 @@ class Uo {
|
|
|
1957
1957
|
return t === d.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, d.LINE_FEED) : t === d.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Gi(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === d.LINE_FEED || t === d.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
|
|
1958
1958
|
}
|
|
1959
1959
|
_checkForProblematicCharacters(t) {
|
|
1960
|
-
Qi(t) ? this._err(
|
|
1960
|
+
Qi(t) ? this._err(S.controlCharacterInInputStream) : Xi(t) && this._err(S.noncharacterInInputStream);
|
|
1961
1961
|
}
|
|
1962
1962
|
retreat(t) {
|
|
1963
1963
|
for (this.pos -= t; this.pos < this.lastGapPos; )
|
|
@@ -1982,7 +1982,7 @@ const $i = new Uint16Array(
|
|
|
1982
1982
|
// prettier-ignore
|
|
1983
1983
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
1984
1984
|
);
|
|
1985
|
-
var
|
|
1985
|
+
var vn;
|
|
1986
1986
|
const Yo = /* @__PURE__ */ new Map([
|
|
1987
1987
|
[0, 65533],
|
|
1988
1988
|
// C1 Unicode control character reference replacements
|
|
@@ -2015,7 +2015,7 @@ const Yo = /* @__PURE__ */ new Map([
|
|
|
2015
2015
|
[159, 376]
|
|
2016
2016
|
]), qo = (
|
|
2017
2017
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
2018
|
-
(
|
|
2018
|
+
(vn = String.fromCodePoint) !== null && vn !== void 0 ? vn : function(e) {
|
|
2019
2019
|
let t = "";
|
|
2020
2020
|
return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), t += String.fromCharCode(e), t;
|
|
2021
2021
|
}
|
|
@@ -2033,14 +2033,14 @@ var Ge;
|
|
|
2033
2033
|
(function(e) {
|
|
2034
2034
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
2035
2035
|
})(Ge || (Ge = {}));
|
|
2036
|
-
function
|
|
2036
|
+
function or(e) {
|
|
2037
2037
|
return e >= fe.ZERO && e <= fe.NINE;
|
|
2038
2038
|
}
|
|
2039
2039
|
function Wo(e) {
|
|
2040
2040
|
return e >= fe.UPPER_A && e <= fe.UPPER_F || e >= fe.LOWER_A && e <= fe.LOWER_F;
|
|
2041
2041
|
}
|
|
2042
2042
|
function Go(e) {
|
|
2043
|
-
return e >= fe.UPPER_A && e <= fe.UPPER_Z || e >= fe.LOWER_A && e <= fe.LOWER_Z ||
|
|
2043
|
+
return e >= fe.UPPER_A && e <= fe.UPPER_Z || e >= fe.LOWER_A && e <= fe.LOWER_Z || or(e);
|
|
2044
2044
|
}
|
|
2045
2045
|
function Qo(e) {
|
|
2046
2046
|
return e === fe.EQUALS || Go(e);
|
|
@@ -2117,7 +2117,7 @@ class Ji {
|
|
|
2117
2117
|
const r = n;
|
|
2118
2118
|
for (; n < t.length; ) {
|
|
2119
2119
|
const u = t.charCodeAt(n);
|
|
2120
|
-
if (
|
|
2120
|
+
if (or(u) || Wo(u))
|
|
2121
2121
|
n += 1;
|
|
2122
2122
|
else
|
|
2123
2123
|
return this.addToNumericResult(t, r, n, 16), this.emitNumericEntity(u, 3);
|
|
@@ -2137,7 +2137,7 @@ class Ji {
|
|
|
2137
2137
|
const r = n;
|
|
2138
2138
|
for (; n < t.length; ) {
|
|
2139
2139
|
const u = t.charCodeAt(n);
|
|
2140
|
-
if (
|
|
2140
|
+
if (or(u))
|
|
2141
2141
|
n += 1;
|
|
2142
2142
|
else
|
|
2143
2143
|
return this.addToNumericResult(t, r, n, 10), this.emitNumericEntity(u, 2);
|
|
@@ -2293,10 +2293,10 @@ var nt;
|
|
|
2293
2293
|
(function(e) {
|
|
2294
2294
|
e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
|
|
2295
2295
|
})(nt || (nt = {}));
|
|
2296
|
-
var
|
|
2296
|
+
var Se;
|
|
2297
2297
|
(function(e) {
|
|
2298
2298
|
e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
|
|
2299
|
-
})(
|
|
2299
|
+
})(Se || (Se = {}));
|
|
2300
2300
|
var _;
|
|
2301
2301
|
(function(e) {
|
|
2302
2302
|
e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SEARCH = "search", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp";
|
|
@@ -2430,7 +2430,7 @@ const Ko = /* @__PURE__ */ new Map([
|
|
|
2430
2430
|
[_.WBR, s.WBR],
|
|
2431
2431
|
[_.XMP, s.XMP]
|
|
2432
2432
|
]);
|
|
2433
|
-
function
|
|
2433
|
+
function St(e) {
|
|
2434
2434
|
var t;
|
|
2435
2435
|
return (t = Ko.get(e)) !== null && t !== void 0 ? t : s.UNKNOWN;
|
|
2436
2436
|
}
|
|
@@ -2523,7 +2523,7 @@ const D = s, $o = {
|
|
|
2523
2523
|
[R.XLINK]: /* @__PURE__ */ new Set(),
|
|
2524
2524
|
[R.XML]: /* @__PURE__ */ new Set(),
|
|
2525
2525
|
[R.XMLNS]: /* @__PURE__ */ new Set()
|
|
2526
|
-
},
|
|
2526
|
+
}, lr = /* @__PURE__ */ new Set([D.H1, D.H2, D.H3, D.H4, D.H5, D.H6]);
|
|
2527
2527
|
_.STYLE, _.SCRIPT, _.XMP, _.IFRAME, _.NOEMBED, _.NOFRAMES, _.PLAINTEXT;
|
|
2528
2528
|
var p;
|
|
2529
2529
|
(function(e) {
|
|
@@ -2540,19 +2540,19 @@ const ae = {
|
|
|
2540
2540
|
function Jo(e) {
|
|
2541
2541
|
return e >= d.DIGIT_0 && e <= d.DIGIT_9;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function Ft(e) {
|
|
2544
2544
|
return e >= d.LATIN_CAPITAL_A && e <= d.LATIN_CAPITAL_Z;
|
|
2545
2545
|
}
|
|
2546
2546
|
function Zo(e) {
|
|
2547
2547
|
return e >= d.LATIN_SMALL_A && e <= d.LATIN_SMALL_Z;
|
|
2548
2548
|
}
|
|
2549
2549
|
function Ve(e) {
|
|
2550
|
-
return Zo(e) ||
|
|
2550
|
+
return Zo(e) || Ft(e);
|
|
2551
2551
|
}
|
|
2552
2552
|
function pu(e) {
|
|
2553
2553
|
return Ve(e) || Jo(e);
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function sn(e) {
|
|
2556
2556
|
return e + 32;
|
|
2557
2557
|
}
|
|
2558
2558
|
function ea(e) {
|
|
@@ -2562,7 +2562,7 @@ function Eu(e) {
|
|
|
2562
2562
|
return ea(e) || e === d.SOLIDUS || e === d.GREATER_THAN_SIGN;
|
|
2563
2563
|
}
|
|
2564
2564
|
function el(e) {
|
|
2565
|
-
return e === d.NULL ?
|
|
2565
|
+
return e === d.NULL ? S.nullCharacterReference : e > 1114111 ? S.characterReferenceOutsideUnicodeRange : Gi(e) ? S.surrogateCharacterReference : Xi(e) ? S.noncharacterCharacterReference : Qi(e) || e === d.CARRIAGE_RETURN ? S.controlCharacterReference : null;
|
|
2566
2566
|
}
|
|
2567
2567
|
class tl {
|
|
2568
2568
|
constructor(t, n) {
|
|
@@ -2570,10 +2570,10 @@ class tl {
|
|
|
2570
2570
|
this.preprocessor.pos = this.entityStartPos + u - 1, this._flushCodePointConsumedAsCharacterReference(r);
|
|
2571
2571
|
}, n.onParseError ? {
|
|
2572
2572
|
missingSemicolonAfterCharacterReference: () => {
|
|
2573
|
-
this._err(
|
|
2573
|
+
this._err(S.missingSemicolonAfterCharacterReference, 1);
|
|
2574
2574
|
},
|
|
2575
2575
|
absenceOfDigitsInNumericCharacterReference: (r) => {
|
|
2576
|
-
this._err(
|
|
2576
|
+
this._err(S.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
|
|
2577
2577
|
},
|
|
2578
2578
|
validateNumericCharacterReference: (r) => {
|
|
2579
2579
|
const u = el(r);
|
|
@@ -2701,7 +2701,7 @@ class tl {
|
|
|
2701
2701
|
u[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
|
|
2702
2702
|
}
|
|
2703
2703
|
} else
|
|
2704
|
-
this._err(
|
|
2704
|
+
this._err(S.duplicateAttribute);
|
|
2705
2705
|
}
|
|
2706
2706
|
_leaveAttrValue() {
|
|
2707
2707
|
this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
|
|
@@ -2712,7 +2712,7 @@ class tl {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
emitCurrentTagToken() {
|
|
2714
2714
|
const t = this.currentToken;
|
|
2715
|
-
this.prepareToken(t), t.tagID =
|
|
2715
|
+
this.prepareToken(t), t.tagID = St(t.tagName), t.type === X.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(S.endTagWithAttributes), t.selfClosing && this._err(S.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
2716
2716
|
}
|
|
2717
2717
|
emitCurrentComment(t) {
|
|
2718
2718
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -3093,7 +3093,7 @@ class tl {
|
|
|
3093
3093
|
break;
|
|
3094
3094
|
}
|
|
3095
3095
|
case d.NULL: {
|
|
3096
|
-
this._err(
|
|
3096
|
+
this._err(S.unexpectedNullCharacter), this._emitCodePoint(t);
|
|
3097
3097
|
break;
|
|
3098
3098
|
}
|
|
3099
3099
|
case d.EOF: {
|
|
@@ -3117,7 +3117,7 @@ class tl {
|
|
|
3117
3117
|
break;
|
|
3118
3118
|
}
|
|
3119
3119
|
case d.NULL: {
|
|
3120
|
-
this._err(
|
|
3120
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3121
3121
|
break;
|
|
3122
3122
|
}
|
|
3123
3123
|
case d.EOF: {
|
|
@@ -3137,7 +3137,7 @@ class tl {
|
|
|
3137
3137
|
break;
|
|
3138
3138
|
}
|
|
3139
3139
|
case d.NULL: {
|
|
3140
|
-
this._err(
|
|
3140
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3141
3141
|
break;
|
|
3142
3142
|
}
|
|
3143
3143
|
case d.EOF: {
|
|
@@ -3157,7 +3157,7 @@ class tl {
|
|
|
3157
3157
|
break;
|
|
3158
3158
|
}
|
|
3159
3159
|
case d.NULL: {
|
|
3160
|
-
this._err(
|
|
3160
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3161
3161
|
break;
|
|
3162
3162
|
}
|
|
3163
3163
|
case d.EOF: {
|
|
@@ -3173,7 +3173,7 @@ class tl {
|
|
|
3173
3173
|
_statePlaintext(t) {
|
|
3174
3174
|
switch (t) {
|
|
3175
3175
|
case d.NULL: {
|
|
3176
|
-
this._err(
|
|
3176
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3177
3177
|
break;
|
|
3178
3178
|
}
|
|
3179
3179
|
case d.EOF: {
|
|
@@ -3200,15 +3200,15 @@ class tl {
|
|
|
3200
3200
|
break;
|
|
3201
3201
|
}
|
|
3202
3202
|
case d.QUESTION_MARK: {
|
|
3203
|
-
this._err(
|
|
3203
|
+
this._err(S.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = p.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
3204
3204
|
break;
|
|
3205
3205
|
}
|
|
3206
3206
|
case d.EOF: {
|
|
3207
|
-
this._err(
|
|
3207
|
+
this._err(S.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
|
|
3208
3208
|
break;
|
|
3209
3209
|
}
|
|
3210
3210
|
default:
|
|
3211
|
-
this._err(
|
|
3211
|
+
this._err(S.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = p.DATA, this._stateData(t);
|
|
3212
3212
|
}
|
|
3213
3213
|
}
|
|
3214
3214
|
// End tag open state
|
|
@@ -3219,15 +3219,15 @@ class tl {
|
|
|
3219
3219
|
else
|
|
3220
3220
|
switch (t) {
|
|
3221
3221
|
case d.GREATER_THAN_SIGN: {
|
|
3222
|
-
this._err(
|
|
3222
|
+
this._err(S.missingEndTagName), this.state = p.DATA;
|
|
3223
3223
|
break;
|
|
3224
3224
|
}
|
|
3225
3225
|
case d.EOF: {
|
|
3226
|
-
this._err(
|
|
3226
|
+
this._err(S.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
|
|
3227
3227
|
break;
|
|
3228
3228
|
}
|
|
3229
3229
|
default:
|
|
3230
|
-
this._err(
|
|
3230
|
+
this._err(S.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = p.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
3233
|
// Tag name state
|
|
@@ -3251,15 +3251,15 @@ class tl {
|
|
|
3251
3251
|
break;
|
|
3252
3252
|
}
|
|
3253
3253
|
case d.NULL: {
|
|
3254
|
-
this._err(
|
|
3254
|
+
this._err(S.unexpectedNullCharacter), n.tagName += ie;
|
|
3255
3255
|
break;
|
|
3256
3256
|
}
|
|
3257
3257
|
case d.EOF: {
|
|
3258
|
-
this._err(
|
|
3258
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3259
3259
|
break;
|
|
3260
3260
|
}
|
|
3261
3261
|
default:
|
|
3262
|
-
n.tagName += String.fromCodePoint(
|
|
3262
|
+
n.tagName += String.fromCodePoint(Ft(t) ? sn(t) : t);
|
|
3263
3263
|
}
|
|
3264
3264
|
}
|
|
3265
3265
|
// RCDATA less-than sign state
|
|
@@ -3360,11 +3360,11 @@ class tl {
|
|
|
3360
3360
|
break;
|
|
3361
3361
|
}
|
|
3362
3362
|
case d.NULL: {
|
|
3363
|
-
this._err(
|
|
3363
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3364
3364
|
break;
|
|
3365
3365
|
}
|
|
3366
3366
|
case d.EOF: {
|
|
3367
|
-
this._err(
|
|
3367
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3368
3368
|
break;
|
|
3369
3369
|
}
|
|
3370
3370
|
default:
|
|
@@ -3384,11 +3384,11 @@ class tl {
|
|
|
3384
3384
|
break;
|
|
3385
3385
|
}
|
|
3386
3386
|
case d.NULL: {
|
|
3387
|
-
this._err(
|
|
3387
|
+
this._err(S.unexpectedNullCharacter), this.state = p.SCRIPT_DATA_ESCAPED, this._emitChars(ie);
|
|
3388
3388
|
break;
|
|
3389
3389
|
}
|
|
3390
3390
|
case d.EOF: {
|
|
3391
|
-
this._err(
|
|
3391
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3392
3392
|
break;
|
|
3393
3393
|
}
|
|
3394
3394
|
default:
|
|
@@ -3412,11 +3412,11 @@ class tl {
|
|
|
3412
3412
|
break;
|
|
3413
3413
|
}
|
|
3414
3414
|
case d.NULL: {
|
|
3415
|
-
this._err(
|
|
3415
|
+
this._err(S.unexpectedNullCharacter), this.state = p.SCRIPT_DATA_ESCAPED, this._emitChars(ie);
|
|
3416
3416
|
break;
|
|
3417
3417
|
}
|
|
3418
3418
|
case d.EOF: {
|
|
3419
|
-
this._err(
|
|
3419
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3420
3420
|
break;
|
|
3421
3421
|
}
|
|
3422
3422
|
default:
|
|
@@ -3461,11 +3461,11 @@ class tl {
|
|
|
3461
3461
|
break;
|
|
3462
3462
|
}
|
|
3463
3463
|
case d.NULL: {
|
|
3464
|
-
this._err(
|
|
3464
|
+
this._err(S.unexpectedNullCharacter), this._emitChars(ie);
|
|
3465
3465
|
break;
|
|
3466
3466
|
}
|
|
3467
3467
|
case d.EOF: {
|
|
3468
|
-
this._err(
|
|
3468
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3469
3469
|
break;
|
|
3470
3470
|
}
|
|
3471
3471
|
default:
|
|
@@ -3485,11 +3485,11 @@ class tl {
|
|
|
3485
3485
|
break;
|
|
3486
3486
|
}
|
|
3487
3487
|
case d.NULL: {
|
|
3488
|
-
this._err(
|
|
3488
|
+
this._err(S.unexpectedNullCharacter), this.state = p.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(ie);
|
|
3489
3489
|
break;
|
|
3490
3490
|
}
|
|
3491
3491
|
case d.EOF: {
|
|
3492
|
-
this._err(
|
|
3492
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3493
3493
|
break;
|
|
3494
3494
|
}
|
|
3495
3495
|
default:
|
|
@@ -3513,11 +3513,11 @@ class tl {
|
|
|
3513
3513
|
break;
|
|
3514
3514
|
}
|
|
3515
3515
|
case d.NULL: {
|
|
3516
|
-
this._err(
|
|
3516
|
+
this._err(S.unexpectedNullCharacter), this.state = p.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(ie);
|
|
3517
3517
|
break;
|
|
3518
3518
|
}
|
|
3519
3519
|
case d.EOF: {
|
|
3520
|
-
this._err(
|
|
3520
|
+
this._err(S.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3521
3521
|
break;
|
|
3522
3522
|
}
|
|
3523
3523
|
default:
|
|
@@ -3555,7 +3555,7 @@ class tl {
|
|
|
3555
3555
|
break;
|
|
3556
3556
|
}
|
|
3557
3557
|
case d.EQUALS_SIGN: {
|
|
3558
|
-
this._err(
|
|
3558
|
+
this._err(S.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = p.ATTRIBUTE_NAME;
|
|
3559
3559
|
break;
|
|
3560
3560
|
}
|
|
3561
3561
|
default:
|
|
@@ -3583,15 +3583,15 @@ class tl {
|
|
|
3583
3583
|
case d.QUOTATION_MARK:
|
|
3584
3584
|
case d.APOSTROPHE:
|
|
3585
3585
|
case d.LESS_THAN_SIGN: {
|
|
3586
|
-
this._err(
|
|
3586
|
+
this._err(S.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
|
|
3587
3587
|
break;
|
|
3588
3588
|
}
|
|
3589
3589
|
case d.NULL: {
|
|
3590
|
-
this._err(
|
|
3590
|
+
this._err(S.unexpectedNullCharacter), this.currentAttr.name += ie;
|
|
3591
3591
|
break;
|
|
3592
3592
|
}
|
|
3593
3593
|
default:
|
|
3594
|
-
this.currentAttr.name += String.fromCodePoint(
|
|
3594
|
+
this.currentAttr.name += String.fromCodePoint(Ft(t) ? sn(t) : t);
|
|
3595
3595
|
}
|
|
3596
3596
|
}
|
|
3597
3597
|
// After attribute name state
|
|
@@ -3616,7 +3616,7 @@ class tl {
|
|
|
3616
3616
|
break;
|
|
3617
3617
|
}
|
|
3618
3618
|
case d.EOF: {
|
|
3619
|
-
this._err(
|
|
3619
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3620
3620
|
break;
|
|
3621
3621
|
}
|
|
3622
3622
|
default:
|
|
@@ -3641,7 +3641,7 @@ class tl {
|
|
|
3641
3641
|
break;
|
|
3642
3642
|
}
|
|
3643
3643
|
case d.GREATER_THAN_SIGN: {
|
|
3644
|
-
this._err(
|
|
3644
|
+
this._err(S.missingAttributeValue), this.state = p.DATA, this.emitCurrentTagToken();
|
|
3645
3645
|
break;
|
|
3646
3646
|
}
|
|
3647
3647
|
default:
|
|
@@ -3661,11 +3661,11 @@ class tl {
|
|
|
3661
3661
|
break;
|
|
3662
3662
|
}
|
|
3663
3663
|
case d.NULL: {
|
|
3664
|
-
this._err(
|
|
3664
|
+
this._err(S.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3665
3665
|
break;
|
|
3666
3666
|
}
|
|
3667
3667
|
case d.EOF: {
|
|
3668
|
-
this._err(
|
|
3668
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3669
3669
|
break;
|
|
3670
3670
|
}
|
|
3671
3671
|
default:
|
|
@@ -3685,11 +3685,11 @@ class tl {
|
|
|
3685
3685
|
break;
|
|
3686
3686
|
}
|
|
3687
3687
|
case d.NULL: {
|
|
3688
|
-
this._err(
|
|
3688
|
+
this._err(S.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3689
3689
|
break;
|
|
3690
3690
|
}
|
|
3691
3691
|
case d.EOF: {
|
|
3692
|
-
this._err(
|
|
3692
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3693
3693
|
break;
|
|
3694
3694
|
}
|
|
3695
3695
|
default:
|
|
@@ -3716,7 +3716,7 @@ class tl {
|
|
|
3716
3716
|
break;
|
|
3717
3717
|
}
|
|
3718
3718
|
case d.NULL: {
|
|
3719
|
-
this._err(
|
|
3719
|
+
this._err(S.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3720
3720
|
break;
|
|
3721
3721
|
}
|
|
3722
3722
|
case d.QUOTATION_MARK:
|
|
@@ -3724,11 +3724,11 @@ class tl {
|
|
|
3724
3724
|
case d.LESS_THAN_SIGN:
|
|
3725
3725
|
case d.EQUALS_SIGN:
|
|
3726
3726
|
case d.GRAVE_ACCENT: {
|
|
3727
|
-
this._err(
|
|
3727
|
+
this._err(S.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
|
|
3728
3728
|
break;
|
|
3729
3729
|
}
|
|
3730
3730
|
case d.EOF: {
|
|
3731
|
-
this._err(
|
|
3731
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3732
3732
|
break;
|
|
3733
3733
|
}
|
|
3734
3734
|
default:
|
|
@@ -3755,11 +3755,11 @@ class tl {
|
|
|
3755
3755
|
break;
|
|
3756
3756
|
}
|
|
3757
3757
|
case d.EOF: {
|
|
3758
|
-
this._err(
|
|
3758
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3759
3759
|
break;
|
|
3760
3760
|
}
|
|
3761
3761
|
default:
|
|
3762
|
-
this._err(
|
|
3762
|
+
this._err(S.missingWhitespaceBetweenAttributes), this.state = p.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
3763
3763
|
}
|
|
3764
3764
|
}
|
|
3765
3765
|
// Self-closing start tag state
|
|
@@ -3772,11 +3772,11 @@ class tl {
|
|
|
3772
3772
|
break;
|
|
3773
3773
|
}
|
|
3774
3774
|
case d.EOF: {
|
|
3775
|
-
this._err(
|
|
3775
|
+
this._err(S.eofInTag), this._emitEOFToken();
|
|
3776
3776
|
break;
|
|
3777
3777
|
}
|
|
3778
3778
|
default:
|
|
3779
|
-
this._err(
|
|
3779
|
+
this._err(S.unexpectedSolidusInTag), this.state = p.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
3782
3782
|
// Bogus comment state
|
|
@@ -3793,7 +3793,7 @@ class tl {
|
|
|
3793
3793
|
break;
|
|
3794
3794
|
}
|
|
3795
3795
|
case d.NULL: {
|
|
3796
|
-
this._err(
|
|
3796
|
+
this._err(S.unexpectedNullCharacter), n.data += ie;
|
|
3797
3797
|
break;
|
|
3798
3798
|
}
|
|
3799
3799
|
default:
|
|
@@ -3803,7 +3803,7 @@ class tl {
|
|
|
3803
3803
|
// Markup declaration open state
|
|
3804
3804
|
//------------------------------------------------------------------
|
|
3805
3805
|
_stateMarkupDeclarationOpen(t) {
|
|
3806
|
-
this._consumeSequenceIfMatch(Te.DASH_DASH, !0) ? (this._createCommentToken(Te.DASH_DASH.length + 1), this.state = p.COMMENT_START) : this._consumeSequenceIfMatch(Te.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Te.DOCTYPE.length + 1), this.state = p.DOCTYPE) : this._consumeSequenceIfMatch(Te.CDATA_START, !0) ? this.inForeignNode ? this.state = p.CDATA_SECTION : (this._err(
|
|
3806
|
+
this._consumeSequenceIfMatch(Te.DASH_DASH, !0) ? (this._createCommentToken(Te.DASH_DASH.length + 1), this.state = p.COMMENT_START) : this._consumeSequenceIfMatch(Te.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Te.DOCTYPE.length + 1), this.state = p.DOCTYPE) : this._consumeSequenceIfMatch(Te.CDATA_START, !0) ? this.inForeignNode ? this.state = p.CDATA_SECTION : (this._err(S.cdataInHtmlContent), this._createCommentToken(Te.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = p.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(S.incorrectlyOpenedComment), this._createCommentToken(2), this.state = p.BOGUS_COMMENT, this._stateBogusComment(t));
|
|
3807
3807
|
}
|
|
3808
3808
|
// Comment start state
|
|
3809
3809
|
//------------------------------------------------------------------
|
|
@@ -3814,7 +3814,7 @@ class tl {
|
|
|
3814
3814
|
break;
|
|
3815
3815
|
}
|
|
3816
3816
|
case d.GREATER_THAN_SIGN: {
|
|
3817
|
-
this._err(
|
|
3817
|
+
this._err(S.abruptClosingOfEmptyComment), this.state = p.DATA;
|
|
3818
3818
|
const n = this.currentToken;
|
|
3819
3819
|
this.emitCurrentComment(n);
|
|
3820
3820
|
break;
|
|
@@ -3833,11 +3833,11 @@ class tl {
|
|
|
3833
3833
|
break;
|
|
3834
3834
|
}
|
|
3835
3835
|
case d.GREATER_THAN_SIGN: {
|
|
3836
|
-
this._err(
|
|
3836
|
+
this._err(S.abruptClosingOfEmptyComment), this.state = p.DATA, this.emitCurrentComment(n);
|
|
3837
3837
|
break;
|
|
3838
3838
|
}
|
|
3839
3839
|
case d.EOF: {
|
|
3840
|
-
this._err(
|
|
3840
|
+
this._err(S.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3841
3841
|
break;
|
|
3842
3842
|
}
|
|
3843
3843
|
default:
|
|
@@ -3858,11 +3858,11 @@ class tl {
|
|
|
3858
3858
|
break;
|
|
3859
3859
|
}
|
|
3860
3860
|
case d.NULL: {
|
|
3861
|
-
this._err(
|
|
3861
|
+
this._err(S.unexpectedNullCharacter), n.data += ie;
|
|
3862
3862
|
break;
|
|
3863
3863
|
}
|
|
3864
3864
|
case d.EOF: {
|
|
3865
|
-
this._err(
|
|
3865
|
+
this._err(S.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3866
3866
|
break;
|
|
3867
3867
|
}
|
|
3868
3868
|
default:
|
|
@@ -3899,7 +3899,7 @@ class tl {
|
|
|
3899
3899
|
// Comment less-than sign bang dash dash state
|
|
3900
3900
|
//------------------------------------------------------------------
|
|
3901
3901
|
_stateCommentLessThanSignBangDashDash(t) {
|
|
3902
|
-
t !== d.GREATER_THAN_SIGN && t !== d.EOF && this._err(
|
|
3902
|
+
t !== d.GREATER_THAN_SIGN && t !== d.EOF && this._err(S.nestedComment), this.state = p.COMMENT_END, this._stateCommentEnd(t);
|
|
3903
3903
|
}
|
|
3904
3904
|
// Comment end dash state
|
|
3905
3905
|
//------------------------------------------------------------------
|
|
@@ -3911,7 +3911,7 @@ class tl {
|
|
|
3911
3911
|
break;
|
|
3912
3912
|
}
|
|
3913
3913
|
case d.EOF: {
|
|
3914
|
-
this._err(
|
|
3914
|
+
this._err(S.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3915
3915
|
break;
|
|
3916
3916
|
}
|
|
3917
3917
|
default:
|
|
@@ -3936,7 +3936,7 @@ class tl {
|
|
|
3936
3936
|
break;
|
|
3937
3937
|
}
|
|
3938
3938
|
case d.EOF: {
|
|
3939
|
-
this._err(
|
|
3939
|
+
this._err(S.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3940
3940
|
break;
|
|
3941
3941
|
}
|
|
3942
3942
|
default:
|
|
@@ -3953,11 +3953,11 @@ class tl {
|
|
|
3953
3953
|
break;
|
|
3954
3954
|
}
|
|
3955
3955
|
case d.GREATER_THAN_SIGN: {
|
|
3956
|
-
this._err(
|
|
3956
|
+
this._err(S.incorrectlyClosedComment), this.state = p.DATA, this.emitCurrentComment(n);
|
|
3957
3957
|
break;
|
|
3958
3958
|
}
|
|
3959
3959
|
case d.EOF: {
|
|
3960
|
-
this._err(
|
|
3960
|
+
this._err(S.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3961
3961
|
break;
|
|
3962
3962
|
}
|
|
3963
3963
|
default:
|
|
@@ -3980,20 +3980,20 @@ class tl {
|
|
|
3980
3980
|
break;
|
|
3981
3981
|
}
|
|
3982
3982
|
case d.EOF: {
|
|
3983
|
-
this._err(
|
|
3983
|
+
this._err(S.eofInDoctype), this._createDoctypeToken(null);
|
|
3984
3984
|
const n = this.currentToken;
|
|
3985
3985
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
3986
3986
|
break;
|
|
3987
3987
|
}
|
|
3988
3988
|
default:
|
|
3989
|
-
this._err(
|
|
3989
|
+
this._err(S.missingWhitespaceBeforeDoctypeName), this.state = p.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
// Before DOCTYPE name state
|
|
3993
3993
|
//------------------------------------------------------------------
|
|
3994
3994
|
_stateBeforeDoctypeName(t) {
|
|
3995
|
-
if (
|
|
3996
|
-
this._createDoctypeToken(String.fromCharCode(
|
|
3995
|
+
if (Ft(t))
|
|
3996
|
+
this._createDoctypeToken(String.fromCharCode(sn(t))), this.state = p.DOCTYPE_NAME;
|
|
3997
3997
|
else
|
|
3998
3998
|
switch (t) {
|
|
3999
3999
|
case d.SPACE:
|
|
@@ -4002,17 +4002,17 @@ class tl {
|
|
|
4002
4002
|
case d.FORM_FEED:
|
|
4003
4003
|
break;
|
|
4004
4004
|
case d.NULL: {
|
|
4005
|
-
this._err(
|
|
4005
|
+
this._err(S.unexpectedNullCharacter), this._createDoctypeToken(ie), this.state = p.DOCTYPE_NAME;
|
|
4006
4006
|
break;
|
|
4007
4007
|
}
|
|
4008
4008
|
case d.GREATER_THAN_SIGN: {
|
|
4009
|
-
this._err(
|
|
4009
|
+
this._err(S.missingDoctypeName), this._createDoctypeToken(null);
|
|
4010
4010
|
const n = this.currentToken;
|
|
4011
4011
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = p.DATA;
|
|
4012
4012
|
break;
|
|
4013
4013
|
}
|
|
4014
4014
|
case d.EOF: {
|
|
4015
|
-
this._err(
|
|
4015
|
+
this._err(S.eofInDoctype), this._createDoctypeToken(null);
|
|
4016
4016
|
const n = this.currentToken;
|
|
4017
4017
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4018
4018
|
break;
|
|
@@ -4038,15 +4038,15 @@ class tl {
|
|
|
4038
4038
|
break;
|
|
4039
4039
|
}
|
|
4040
4040
|
case d.NULL: {
|
|
4041
|
-
this._err(
|
|
4041
|
+
this._err(S.unexpectedNullCharacter), n.name += ie;
|
|
4042
4042
|
break;
|
|
4043
4043
|
}
|
|
4044
4044
|
case d.EOF: {
|
|
4045
|
-
this._err(
|
|
4045
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4046
4046
|
break;
|
|
4047
4047
|
}
|
|
4048
4048
|
default:
|
|
4049
|
-
n.name += String.fromCodePoint(
|
|
4049
|
+
n.name += String.fromCodePoint(Ft(t) ? sn(t) : t);
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
// After DOCTYPE name state
|
|
@@ -4064,11 +4064,11 @@ class tl {
|
|
|
4064
4064
|
break;
|
|
4065
4065
|
}
|
|
4066
4066
|
case d.EOF: {
|
|
4067
|
-
this._err(
|
|
4067
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4068
4068
|
break;
|
|
4069
4069
|
}
|
|
4070
4070
|
default:
|
|
4071
|
-
this._consumeSequenceIfMatch(Te.PUBLIC, !1) ? this.state = p.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Te.SYSTEM, !1) ? this.state = p.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(
|
|
4071
|
+
this._consumeSequenceIfMatch(Te.PUBLIC, !1) ? this.state = p.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Te.SYSTEM, !1) ? this.state = p.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(S.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
|
4072
4072
|
}
|
|
4073
4073
|
}
|
|
4074
4074
|
// After DOCTYPE public keyword state
|
|
@@ -4084,23 +4084,23 @@ class tl {
|
|
|
4084
4084
|
break;
|
|
4085
4085
|
}
|
|
4086
4086
|
case d.QUOTATION_MARK: {
|
|
4087
|
-
this._err(
|
|
4087
|
+
this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = p.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
4088
4088
|
break;
|
|
4089
4089
|
}
|
|
4090
4090
|
case d.APOSTROPHE: {
|
|
4091
|
-
this._err(
|
|
4091
|
+
this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = p.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
4092
4092
|
break;
|
|
4093
4093
|
}
|
|
4094
4094
|
case d.GREATER_THAN_SIGN: {
|
|
4095
|
-
this._err(
|
|
4095
|
+
this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = p.DATA, this.emitCurrentDoctype(n);
|
|
4096
4096
|
break;
|
|
4097
4097
|
}
|
|
4098
4098
|
case d.EOF: {
|
|
4099
|
-
this._err(
|
|
4099
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4100
4100
|
break;
|
|
4101
4101
|
}
|
|
4102
4102
|
default:
|
|
4103
|
-
this._err(
|
|
4103
|
+
this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
// Before DOCTYPE public identifier state
|
|
@@ -4122,15 +4122,15 @@ class tl {
|
|
|
4122
4122
|
break;
|
|
4123
4123
|
}
|
|
4124
4124
|
case d.GREATER_THAN_SIGN: {
|
|
4125
|
-
this._err(
|
|
4125
|
+
this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = p.DATA, this.emitCurrentDoctype(n);
|
|
4126
4126
|
break;
|
|
4127
4127
|
}
|
|
4128
4128
|
case d.EOF: {
|
|
4129
|
-
this._err(
|
|
4129
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4130
4130
|
break;
|
|
4131
4131
|
}
|
|
4132
4132
|
default:
|
|
4133
|
-
this._err(
|
|
4133
|
+
this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
4136
|
// DOCTYPE public identifier (double-quoted) state
|
|
@@ -4143,15 +4143,15 @@ class tl {
|
|
|
4143
4143
|
break;
|
|
4144
4144
|
}
|
|
4145
4145
|
case d.NULL: {
|
|
4146
|
-
this._err(
|
|
4146
|
+
this._err(S.unexpectedNullCharacter), n.publicId += ie;
|
|
4147
4147
|
break;
|
|
4148
4148
|
}
|
|
4149
4149
|
case d.GREATER_THAN_SIGN: {
|
|
4150
|
-
this._err(
|
|
4150
|
+
this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = p.DATA;
|
|
4151
4151
|
break;
|
|
4152
4152
|
}
|
|
4153
4153
|
case d.EOF: {
|
|
4154
|
-
this._err(
|
|
4154
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4155
4155
|
break;
|
|
4156
4156
|
}
|
|
4157
4157
|
default:
|
|
@@ -4168,15 +4168,15 @@ class tl {
|
|
|
4168
4168
|
break;
|
|
4169
4169
|
}
|
|
4170
4170
|
case d.NULL: {
|
|
4171
|
-
this._err(
|
|
4171
|
+
this._err(S.unexpectedNullCharacter), n.publicId += ie;
|
|
4172
4172
|
break;
|
|
4173
4173
|
}
|
|
4174
4174
|
case d.GREATER_THAN_SIGN: {
|
|
4175
|
-
this._err(
|
|
4175
|
+
this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = p.DATA;
|
|
4176
4176
|
break;
|
|
4177
4177
|
}
|
|
4178
4178
|
case d.EOF: {
|
|
4179
|
-
this._err(
|
|
4179
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4180
4180
|
break;
|
|
4181
4181
|
}
|
|
4182
4182
|
default:
|
|
@@ -4200,19 +4200,19 @@ class tl {
|
|
|
4200
4200
|
break;
|
|
4201
4201
|
}
|
|
4202
4202
|
case d.QUOTATION_MARK: {
|
|
4203
|
-
this._err(
|
|
4203
|
+
this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = p.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
4204
4204
|
break;
|
|
4205
4205
|
}
|
|
4206
4206
|
case d.APOSTROPHE: {
|
|
4207
|
-
this._err(
|
|
4207
|
+
this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = p.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
4208
4208
|
break;
|
|
4209
4209
|
}
|
|
4210
4210
|
case d.EOF: {
|
|
4211
|
-
this._err(
|
|
4211
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4212
4212
|
break;
|
|
4213
4213
|
}
|
|
4214
4214
|
default:
|
|
4215
|
-
this._err(
|
|
4215
|
+
this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
4218
|
// Between DOCTYPE public and system identifiers state
|
|
@@ -4238,11 +4238,11 @@ class tl {
|
|
|
4238
4238
|
break;
|
|
4239
4239
|
}
|
|
4240
4240
|
case d.EOF: {
|
|
4241
|
-
this._err(
|
|
4241
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4242
4242
|
break;
|
|
4243
4243
|
}
|
|
4244
4244
|
default:
|
|
4245
|
-
this._err(
|
|
4245
|
+
this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4246
4246
|
}
|
|
4247
4247
|
}
|
|
4248
4248
|
// After DOCTYPE system keyword state
|
|
@@ -4258,23 +4258,23 @@ class tl {
|
|
|
4258
4258
|
break;
|
|
4259
4259
|
}
|
|
4260
4260
|
case d.QUOTATION_MARK: {
|
|
4261
|
-
this._err(
|
|
4261
|
+
this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = p.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
4262
4262
|
break;
|
|
4263
4263
|
}
|
|
4264
4264
|
case d.APOSTROPHE: {
|
|
4265
|
-
this._err(
|
|
4265
|
+
this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = p.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
4266
4266
|
break;
|
|
4267
4267
|
}
|
|
4268
4268
|
case d.GREATER_THAN_SIGN: {
|
|
4269
|
-
this._err(
|
|
4269
|
+
this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.DATA, this.emitCurrentDoctype(n);
|
|
4270
4270
|
break;
|
|
4271
4271
|
}
|
|
4272
4272
|
case d.EOF: {
|
|
4273
|
-
this._err(
|
|
4273
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4274
4274
|
break;
|
|
4275
4275
|
}
|
|
4276
4276
|
default:
|
|
4277
|
-
this._err(
|
|
4277
|
+
this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
4280
|
// Before DOCTYPE system identifier state
|
|
@@ -4296,15 +4296,15 @@ class tl {
|
|
|
4296
4296
|
break;
|
|
4297
4297
|
}
|
|
4298
4298
|
case d.GREATER_THAN_SIGN: {
|
|
4299
|
-
this._err(
|
|
4299
|
+
this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.DATA, this.emitCurrentDoctype(n);
|
|
4300
4300
|
break;
|
|
4301
4301
|
}
|
|
4302
4302
|
case d.EOF: {
|
|
4303
|
-
this._err(
|
|
4303
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4304
4304
|
break;
|
|
4305
4305
|
}
|
|
4306
4306
|
default:
|
|
4307
|
-
this._err(
|
|
4307
|
+
this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4308
4308
|
}
|
|
4309
4309
|
}
|
|
4310
4310
|
// DOCTYPE system identifier (double-quoted) state
|
|
@@ -4317,15 +4317,15 @@ class tl {
|
|
|
4317
4317
|
break;
|
|
4318
4318
|
}
|
|
4319
4319
|
case d.NULL: {
|
|
4320
|
-
this._err(
|
|
4320
|
+
this._err(S.unexpectedNullCharacter), n.systemId += ie;
|
|
4321
4321
|
break;
|
|
4322
4322
|
}
|
|
4323
4323
|
case d.GREATER_THAN_SIGN: {
|
|
4324
|
-
this._err(
|
|
4324
|
+
this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = p.DATA;
|
|
4325
4325
|
break;
|
|
4326
4326
|
}
|
|
4327
4327
|
case d.EOF: {
|
|
4328
|
-
this._err(
|
|
4328
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4329
4329
|
break;
|
|
4330
4330
|
}
|
|
4331
4331
|
default:
|
|
@@ -4342,15 +4342,15 @@ class tl {
|
|
|
4342
4342
|
break;
|
|
4343
4343
|
}
|
|
4344
4344
|
case d.NULL: {
|
|
4345
|
-
this._err(
|
|
4345
|
+
this._err(S.unexpectedNullCharacter), n.systemId += ie;
|
|
4346
4346
|
break;
|
|
4347
4347
|
}
|
|
4348
4348
|
case d.GREATER_THAN_SIGN: {
|
|
4349
|
-
this._err(
|
|
4349
|
+
this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = p.DATA;
|
|
4350
4350
|
break;
|
|
4351
4351
|
}
|
|
4352
4352
|
case d.EOF: {
|
|
4353
|
-
this._err(
|
|
4353
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4354
4354
|
break;
|
|
4355
4355
|
}
|
|
4356
4356
|
default:
|
|
@@ -4372,11 +4372,11 @@ class tl {
|
|
|
4372
4372
|
break;
|
|
4373
4373
|
}
|
|
4374
4374
|
case d.EOF: {
|
|
4375
|
-
this._err(
|
|
4375
|
+
this._err(S.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4376
4376
|
break;
|
|
4377
4377
|
}
|
|
4378
4378
|
default:
|
|
4379
|
-
this._err(
|
|
4379
|
+
this._err(S.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = p.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4380
4380
|
}
|
|
4381
4381
|
}
|
|
4382
4382
|
// Bogus DOCTYPE state
|
|
@@ -4389,7 +4389,7 @@ class tl {
|
|
|
4389
4389
|
break;
|
|
4390
4390
|
}
|
|
4391
4391
|
case d.NULL: {
|
|
4392
|
-
this._err(
|
|
4392
|
+
this._err(S.unexpectedNullCharacter);
|
|
4393
4393
|
break;
|
|
4394
4394
|
}
|
|
4395
4395
|
case d.EOF: {
|
|
@@ -4407,7 +4407,7 @@ class tl {
|
|
|
4407
4407
|
break;
|
|
4408
4408
|
}
|
|
4409
4409
|
case d.EOF: {
|
|
4410
|
-
this._err(
|
|
4410
|
+
this._err(S.eofInCdata), this._emitEOFToken();
|
|
4411
4411
|
break;
|
|
4412
4412
|
}
|
|
4413
4413
|
default:
|
|
@@ -4451,7 +4451,7 @@ class tl {
|
|
|
4451
4451
|
// Ambiguos ampersand state
|
|
4452
4452
|
//------------------------------------------------------------------
|
|
4453
4453
|
_stateAmbiguousAmpersand(t) {
|
|
4454
|
-
pu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(
|
|
4454
|
+
pu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(S.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
|
|
4455
4455
|
}
|
|
4456
4456
|
}
|
|
4457
4457
|
const ta = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), gu = /* @__PURE__ */ new Set([
|
|
@@ -4531,7 +4531,7 @@ class ol {
|
|
|
4531
4531
|
this.shortenToLength(r < 0 ? 0 : r);
|
|
4532
4532
|
}
|
|
4533
4533
|
popUntilNumberedHeaderPopped() {
|
|
4534
|
-
this.popUntilPopped(
|
|
4534
|
+
this.popUntilPopped(lr, R.HTML);
|
|
4535
4535
|
}
|
|
4536
4536
|
popUntilTableCellPopped() {
|
|
4537
4537
|
this.popUntilPopped(sl, R.HTML);
|
|
@@ -4616,7 +4616,7 @@ class ol {
|
|
|
4616
4616
|
const n = this.tagIDs[t];
|
|
4617
4617
|
switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
|
|
4618
4618
|
case R.HTML: {
|
|
4619
|
-
if (
|
|
4619
|
+
if (lr.has(n))
|
|
4620
4620
|
return !0;
|
|
4621
4621
|
if (bn.has(n))
|
|
4622
4622
|
return !1;
|
|
@@ -4690,7 +4690,7 @@ class ol {
|
|
|
4690
4690
|
this.pop();
|
|
4691
4691
|
}
|
|
4692
4692
|
}
|
|
4693
|
-
const
|
|
4693
|
+
const Hn = 3;
|
|
4694
4694
|
var Pe;
|
|
4695
4695
|
(function(e) {
|
|
4696
4696
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
@@ -4718,16 +4718,16 @@ class ll {
|
|
|
4718
4718
|
return r;
|
|
4719
4719
|
}
|
|
4720
4720
|
_ensureNoahArkCondition(t) {
|
|
4721
|
-
if (this.entries.length <
|
|
4721
|
+
if (this.entries.length < Hn)
|
|
4722
4722
|
return;
|
|
4723
4723
|
const n = this.treeAdapter.getAttrList(t), r = this._getNoahArkConditionCandidates(t, n);
|
|
4724
|
-
if (r.length <
|
|
4724
|
+
if (r.length < Hn)
|
|
4725
4725
|
return;
|
|
4726
4726
|
const u = new Map(n.map((a) => [a.name, a.value]));
|
|
4727
4727
|
let i = 0;
|
|
4728
4728
|
for (let a = 0; a < r.length; a++) {
|
|
4729
4729
|
const o = r[a];
|
|
4730
|
-
o.attrs.every((l) => u.get(l.name) === l.value) && (i += 1, i >=
|
|
4730
|
+
o.attrs.every((l) => u.get(l.name) === l.value) && (i += 1, i >= Hn && this.entries.splice(o.idx, 1));
|
|
4731
4731
|
}
|
|
4732
4732
|
}
|
|
4733
4733
|
//Mutations
|
|
@@ -4776,7 +4776,7 @@ const We = {
|
|
|
4776
4776
|
createDocument() {
|
|
4777
4777
|
return {
|
|
4778
4778
|
nodeName: "#document",
|
|
4779
|
-
mode:
|
|
4779
|
+
mode: Se.NO_QUIRKS,
|
|
4780
4780
|
childNodes: []
|
|
4781
4781
|
};
|
|
4782
4782
|
},
|
|
@@ -5005,21 +5005,21 @@ function pl(e) {
|
|
|
5005
5005
|
}
|
|
5006
5006
|
function El(e) {
|
|
5007
5007
|
if (e.name !== na)
|
|
5008
|
-
return
|
|
5008
|
+
return Se.QUIRKS;
|
|
5009
5009
|
const { systemId: t } = e;
|
|
5010
5010
|
if (t && t.toLowerCase() === fl)
|
|
5011
|
-
return
|
|
5011
|
+
return Se.QUIRKS;
|
|
5012
5012
|
let { publicId: n } = e;
|
|
5013
5013
|
if (n !== null) {
|
|
5014
5014
|
if (n = n.toLowerCase(), dl.has(n))
|
|
5015
|
-
return
|
|
5015
|
+
return Se.QUIRKS;
|
|
5016
5016
|
let r = t === null ? hl : ra;
|
|
5017
5017
|
if (_u(n, r))
|
|
5018
|
-
return
|
|
5018
|
+
return Se.QUIRKS;
|
|
5019
5019
|
if (r = t === null ? ua : ml, _u(n, r))
|
|
5020
|
-
return
|
|
5020
|
+
return Se.LIMITED_QUIRKS;
|
|
5021
5021
|
}
|
|
5022
|
-
return
|
|
5022
|
+
return Se.NO_QUIRKS;
|
|
5023
5023
|
}
|
|
5024
5024
|
const Cu = {
|
|
5025
5025
|
TEXT_HTML: "text/html",
|
|
@@ -5195,17 +5195,17 @@ function aa(e) {
|
|
|
5195
5195
|
n != null && (e.attrs[t].name = n);
|
|
5196
5196
|
}
|
|
5197
5197
|
}
|
|
5198
|
-
function
|
|
5198
|
+
function Dr(e) {
|
|
5199
5199
|
for (let t = 0; t < e.attrs.length; t++) {
|
|
5200
5200
|
const n = Al.get(e.attrs[t].name);
|
|
5201
5201
|
n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
|
|
5202
5202
|
}
|
|
5203
5203
|
}
|
|
5204
|
-
function
|
|
5204
|
+
function Sl(e) {
|
|
5205
5205
|
const t = _l.get(e.tagName);
|
|
5206
|
-
t != null && (e.tagName = t, e.tagID =
|
|
5206
|
+
t != null && (e.tagName = t, e.tagID = St(e.tagName));
|
|
5207
5207
|
}
|
|
5208
|
-
function
|
|
5208
|
+
function Il(e, t) {
|
|
5209
5209
|
return t === R.MATHML && (e === s.MI || e === s.MO || e === s.MN || e === s.MS || e === s.MTEXT);
|
|
5210
5210
|
}
|
|
5211
5211
|
function kl(e, t, n) {
|
|
@@ -5219,7 +5219,7 @@ function kl(e, t, n) {
|
|
|
5219
5219
|
return t === R.SVG && (e === s.FOREIGN_OBJECT || e === s.DESC || e === s.TITLE);
|
|
5220
5220
|
}
|
|
5221
5221
|
function yl(e, t, n, r) {
|
|
5222
|
-
return (!r || r === R.HTML) && kl(e, t, n) || (!r || r === R.MATHML) &&
|
|
5222
|
+
return (!r || r === R.HTML) && kl(e, t, n) || (!r || r === R.MATHML) && Il(e, t);
|
|
5223
5223
|
}
|
|
5224
5224
|
const Nl = "hidden", Ol = 8, Ll = 3;
|
|
5225
5225
|
var g;
|
|
@@ -5239,12 +5239,12 @@ const Rl = {
|
|
|
5239
5239
|
treeAdapter: We,
|
|
5240
5240
|
onParseError: null
|
|
5241
5241
|
};
|
|
5242
|
-
class
|
|
5242
|
+
class Su {
|
|
5243
5243
|
constructor(t, n, r = null, u = null) {
|
|
5244
5244
|
this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = g.INITIAL, this.originalInsertionMode = g.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
5245
5245
|
...xu,
|
|
5246
5246
|
...t
|
|
5247
|
-
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new tl(this.options, this), this.activeFormattingElements = new ll(this.treeAdapter), this.fragmentContextID = r ?
|
|
5247
|
+
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new tl(this.options, this), this.activeFormattingElements = new ll(this.treeAdapter), this.fragmentContextID = r ? St(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new ol(this.document, this.treeAdapter, this);
|
|
5248
5248
|
}
|
|
5249
5249
|
// API
|
|
5250
5250
|
static parse(t, n) {
|
|
@@ -5645,27 +5645,27 @@ class Iu {
|
|
|
5645
5645
|
}
|
|
5646
5646
|
switch (this.insertionMode) {
|
|
5647
5647
|
case g.INITIAL: {
|
|
5648
|
-
|
|
5648
|
+
Dt(this, t);
|
|
5649
5649
|
break;
|
|
5650
5650
|
}
|
|
5651
5651
|
case g.BEFORE_HTML: {
|
|
5652
|
-
|
|
5652
|
+
Ut(this, t);
|
|
5653
5653
|
break;
|
|
5654
5654
|
}
|
|
5655
5655
|
case g.BEFORE_HEAD: {
|
|
5656
|
-
|
|
5656
|
+
zt(this, t);
|
|
5657
5657
|
break;
|
|
5658
5658
|
}
|
|
5659
5659
|
case g.IN_HEAD: {
|
|
5660
|
-
|
|
5660
|
+
Yt(this, t);
|
|
5661
5661
|
break;
|
|
5662
5662
|
}
|
|
5663
5663
|
case g.IN_HEAD_NO_SCRIPT: {
|
|
5664
|
-
|
|
5664
|
+
qt(this, t);
|
|
5665
5665
|
break;
|
|
5666
5666
|
}
|
|
5667
5667
|
case g.AFTER_HEAD: {
|
|
5668
|
-
|
|
5668
|
+
jt(this, t);
|
|
5669
5669
|
break;
|
|
5670
5670
|
}
|
|
5671
5671
|
case g.IN_BODY:
|
|
@@ -5684,7 +5684,7 @@ class Iu {
|
|
|
5684
5684
|
case g.IN_TABLE:
|
|
5685
5685
|
case g.IN_TABLE_BODY:
|
|
5686
5686
|
case g.IN_ROW: {
|
|
5687
|
-
|
|
5687
|
+
Un(this, t);
|
|
5688
5688
|
break;
|
|
5689
5689
|
}
|
|
5690
5690
|
case g.IN_TABLE_TEXT: {
|
|
@@ -5713,27 +5713,27 @@ class Iu {
|
|
|
5713
5713
|
}
|
|
5714
5714
|
switch (this.insertionMode) {
|
|
5715
5715
|
case g.INITIAL: {
|
|
5716
|
-
|
|
5716
|
+
Dt(this, t);
|
|
5717
5717
|
break;
|
|
5718
5718
|
}
|
|
5719
5719
|
case g.BEFORE_HTML: {
|
|
5720
|
-
|
|
5720
|
+
Ut(this, t);
|
|
5721
5721
|
break;
|
|
5722
5722
|
}
|
|
5723
5723
|
case g.BEFORE_HEAD: {
|
|
5724
|
-
|
|
5724
|
+
zt(this, t);
|
|
5725
5725
|
break;
|
|
5726
5726
|
}
|
|
5727
5727
|
case g.IN_HEAD: {
|
|
5728
|
-
|
|
5728
|
+
Yt(this, t);
|
|
5729
5729
|
break;
|
|
5730
5730
|
}
|
|
5731
5731
|
case g.IN_HEAD_NO_SCRIPT: {
|
|
5732
|
-
|
|
5732
|
+
qt(this, t);
|
|
5733
5733
|
break;
|
|
5734
5734
|
}
|
|
5735
5735
|
case g.AFTER_HEAD: {
|
|
5736
|
-
|
|
5736
|
+
jt(this, t);
|
|
5737
5737
|
break;
|
|
5738
5738
|
}
|
|
5739
5739
|
case g.TEXT: {
|
|
@@ -5743,7 +5743,7 @@ class Iu {
|
|
|
5743
5743
|
case g.IN_TABLE:
|
|
5744
5744
|
case g.IN_TABLE_BODY:
|
|
5745
5745
|
case g.IN_ROW: {
|
|
5746
|
-
|
|
5746
|
+
Un(this, t);
|
|
5747
5747
|
break;
|
|
5748
5748
|
}
|
|
5749
5749
|
case g.IN_COLUMN_GROUP: {
|
|
@@ -5763,7 +5763,7 @@ class Iu {
|
|
|
5763
5763
|
/** @internal */
|
|
5764
5764
|
onComment(t) {
|
|
5765
5765
|
if (this.skipNextNewLine = !1, this.currentNotInHTML) {
|
|
5766
|
-
|
|
5766
|
+
cr(this, t);
|
|
5767
5767
|
return;
|
|
5768
5768
|
}
|
|
5769
5769
|
switch (this.insertionMode) {
|
|
@@ -5785,11 +5785,11 @@ class Iu {
|
|
|
5785
5785
|
case g.IN_TEMPLATE:
|
|
5786
5786
|
case g.IN_FRAMESET:
|
|
5787
5787
|
case g.AFTER_FRAMESET: {
|
|
5788
|
-
|
|
5788
|
+
cr(this, t);
|
|
5789
5789
|
break;
|
|
5790
5790
|
}
|
|
5791
5791
|
case g.IN_TABLE_TEXT: {
|
|
5792
|
-
|
|
5792
|
+
Pt(this, t);
|
|
5793
5793
|
break;
|
|
5794
5794
|
}
|
|
5795
5795
|
case g.AFTER_BODY: {
|
|
@@ -5814,18 +5814,18 @@ class Iu {
|
|
|
5814
5814
|
case g.IN_HEAD:
|
|
5815
5815
|
case g.IN_HEAD_NO_SCRIPT:
|
|
5816
5816
|
case g.AFTER_HEAD: {
|
|
5817
|
-
this._err(t,
|
|
5817
|
+
this._err(t, S.misplacedDoctype);
|
|
5818
5818
|
break;
|
|
5819
5819
|
}
|
|
5820
5820
|
case g.IN_TABLE_TEXT: {
|
|
5821
|
-
|
|
5821
|
+
Pt(this, t);
|
|
5822
5822
|
break;
|
|
5823
5823
|
}
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
5826
|
/** @internal */
|
|
5827
5827
|
onStartTag(t) {
|
|
5828
|
-
this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t,
|
|
5828
|
+
this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, S.nonVoidHtmlElementStartTagWithTrailingSolidus);
|
|
5829
5829
|
}
|
|
5830
5830
|
/**
|
|
5831
5831
|
* Processes a given start tag.
|
|
@@ -5845,7 +5845,7 @@ class Iu {
|
|
|
5845
5845
|
_startTagOutsideForeignContent(t) {
|
|
5846
5846
|
switch (this.insertionMode) {
|
|
5847
5847
|
case g.INITIAL: {
|
|
5848
|
-
|
|
5848
|
+
Dt(this, t);
|
|
5849
5849
|
break;
|
|
5850
5850
|
}
|
|
5851
5851
|
case g.BEFORE_HTML: {
|
|
@@ -5873,11 +5873,11 @@ class Iu {
|
|
|
5873
5873
|
break;
|
|
5874
5874
|
}
|
|
5875
5875
|
case g.IN_TABLE: {
|
|
5876
|
-
|
|
5876
|
+
At(this, t);
|
|
5877
5877
|
break;
|
|
5878
5878
|
}
|
|
5879
5879
|
case g.IN_TABLE_TEXT: {
|
|
5880
|
-
|
|
5880
|
+
Pt(this, t);
|
|
5881
5881
|
break;
|
|
5882
5882
|
}
|
|
5883
5883
|
case g.IN_CAPTION: {
|
|
@@ -5885,7 +5885,7 @@ class Iu {
|
|
|
5885
5885
|
break;
|
|
5886
5886
|
}
|
|
5887
5887
|
case g.IN_COLUMN_GROUP: {
|
|
5888
|
-
|
|
5888
|
+
Mr(this, t);
|
|
5889
5889
|
break;
|
|
5890
5890
|
}
|
|
5891
5891
|
case g.IN_TABLE_BODY: {
|
|
@@ -5942,7 +5942,7 @@ class Iu {
|
|
|
5942
5942
|
_endTagOutsideForeignContent(t) {
|
|
5943
5943
|
switch (this.insertionMode) {
|
|
5944
5944
|
case g.INITIAL: {
|
|
5945
|
-
|
|
5945
|
+
Dt(this, t);
|
|
5946
5946
|
break;
|
|
5947
5947
|
}
|
|
5948
5948
|
case g.BEFORE_HTML: {
|
|
@@ -5974,11 +5974,11 @@ class Iu {
|
|
|
5974
5974
|
break;
|
|
5975
5975
|
}
|
|
5976
5976
|
case g.IN_TABLE: {
|
|
5977
|
-
|
|
5977
|
+
Qt(this, t);
|
|
5978
5978
|
break;
|
|
5979
5979
|
}
|
|
5980
5980
|
case g.IN_TABLE_TEXT: {
|
|
5981
|
-
|
|
5981
|
+
Pt(this, t);
|
|
5982
5982
|
break;
|
|
5983
5983
|
}
|
|
5984
5984
|
case g.IN_CAPTION: {
|
|
@@ -5990,7 +5990,7 @@ class Iu {
|
|
|
5990
5990
|
break;
|
|
5991
5991
|
}
|
|
5992
5992
|
case g.IN_TABLE_BODY: {
|
|
5993
|
-
|
|
5993
|
+
fr(this, t);
|
|
5994
5994
|
break;
|
|
5995
5995
|
}
|
|
5996
5996
|
case g.IN_ROW: {
|
|
@@ -6035,27 +6035,27 @@ class Iu {
|
|
|
6035
6035
|
onEof(t) {
|
|
6036
6036
|
switch (this.insertionMode) {
|
|
6037
6037
|
case g.INITIAL: {
|
|
6038
|
-
|
|
6038
|
+
Dt(this, t);
|
|
6039
6039
|
break;
|
|
6040
6040
|
}
|
|
6041
6041
|
case g.BEFORE_HTML: {
|
|
6042
|
-
|
|
6042
|
+
Ut(this, t);
|
|
6043
6043
|
break;
|
|
6044
6044
|
}
|
|
6045
6045
|
case g.BEFORE_HEAD: {
|
|
6046
|
-
|
|
6046
|
+
zt(this, t);
|
|
6047
6047
|
break;
|
|
6048
6048
|
}
|
|
6049
6049
|
case g.IN_HEAD: {
|
|
6050
|
-
|
|
6050
|
+
Yt(this, t);
|
|
6051
6051
|
break;
|
|
6052
6052
|
}
|
|
6053
6053
|
case g.IN_HEAD_NO_SCRIPT: {
|
|
6054
|
-
|
|
6054
|
+
qt(this, t);
|
|
6055
6055
|
break;
|
|
6056
6056
|
}
|
|
6057
6057
|
case g.AFTER_HEAD: {
|
|
6058
|
-
|
|
6058
|
+
jt(this, t);
|
|
6059
6059
|
break;
|
|
6060
6060
|
}
|
|
6061
6061
|
case g.IN_BODY:
|
|
@@ -6075,7 +6075,7 @@ class Iu {
|
|
|
6075
6075
|
break;
|
|
6076
6076
|
}
|
|
6077
6077
|
case g.IN_TABLE_TEXT: {
|
|
6078
|
-
|
|
6078
|
+
Pt(this, t);
|
|
6079
6079
|
break;
|
|
6080
6080
|
}
|
|
6081
6081
|
case g.IN_TEMPLATE: {
|
|
@@ -6087,7 +6087,7 @@ class Iu {
|
|
|
6087
6087
|
case g.AFTER_FRAMESET:
|
|
6088
6088
|
case g.AFTER_AFTER_BODY:
|
|
6089
6089
|
case g.AFTER_AFTER_FRAMESET: {
|
|
6090
|
-
|
|
6090
|
+
wr(this, t);
|
|
6091
6091
|
break;
|
|
6092
6092
|
}
|
|
6093
6093
|
}
|
|
@@ -6129,7 +6129,7 @@ class Iu {
|
|
|
6129
6129
|
case g.IN_TABLE:
|
|
6130
6130
|
case g.IN_TABLE_BODY:
|
|
6131
6131
|
case g.IN_ROW: {
|
|
6132
|
-
|
|
6132
|
+
Un(this, t);
|
|
6133
6133
|
break;
|
|
6134
6134
|
}
|
|
6135
6135
|
case g.IN_TABLE_TEXT: {
|
|
@@ -6167,7 +6167,7 @@ function Ml(e, t) {
|
|
|
6167
6167
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
6168
6168
|
}
|
|
6169
6169
|
function Bl(e, t, n) {
|
|
6170
|
-
const r = e.treeAdapter.getTagName(t), u =
|
|
6170
|
+
const r = e.treeAdapter.getTagName(t), u = St(r);
|
|
6171
6171
|
if (e._isElementCausesFosterParenting(u))
|
|
6172
6172
|
e._fosterParentElement(n);
|
|
6173
6173
|
else {
|
|
@@ -6179,7 +6179,7 @@ function Fl(e, t, n) {
|
|
|
6179
6179
|
const r = e.treeAdapter.getNamespaceURI(n.element), { token: u } = n, i = e.treeAdapter.createElement(u.tagName, r, u.attrs);
|
|
6180
6180
|
e._adoptNodes(t, i), e.treeAdapter.appendChild(t, i), e.activeFormattingElements.insertElementAfterBookmark(i, u), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, i, u.tagID);
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function Pr(e, t) {
|
|
6183
6183
|
for (let n = 0; n < Ol; n++) {
|
|
6184
6184
|
const r = Dl(e, t);
|
|
6185
6185
|
if (!r)
|
|
@@ -6192,7 +6192,7 @@ function wr(e, t) {
|
|
|
6192
6192
|
e.treeAdapter.detachNode(i), a && Bl(e, a, i), Fl(e, u, r);
|
|
6193
6193
|
}
|
|
6194
6194
|
}
|
|
6195
|
-
function
|
|
6195
|
+
function cr(e, t) {
|
|
6196
6196
|
e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
|
|
6197
6197
|
}
|
|
6198
6198
|
function vl(e, t) {
|
|
@@ -6201,7 +6201,7 @@ function vl(e, t) {
|
|
|
6201
6201
|
function Hl(e, t) {
|
|
6202
6202
|
e._appendCommentNode(t, e.document);
|
|
6203
6203
|
}
|
|
6204
|
-
function
|
|
6204
|
+
function wr(e, t) {
|
|
6205
6205
|
if (e.stopped = !0, t.location) {
|
|
6206
6206
|
const n = e.fragmentContext ? 0 : 2;
|
|
6207
6207
|
for (let r = e.openElements.stackTop; r >= n; r--)
|
|
@@ -6217,20 +6217,20 @@ function Mr(e, t) {
|
|
|
6217
6217
|
}
|
|
6218
6218
|
function Ul(e, t) {
|
|
6219
6219
|
e._setDocumentType(t);
|
|
6220
|
-
const n = t.forceQuirks ?
|
|
6221
|
-
pl(t) || e._err(t,
|
|
6220
|
+
const n = t.forceQuirks ? Se.QUIRKS : El(t);
|
|
6221
|
+
pl(t) || e._err(t, S.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = g.BEFORE_HTML;
|
|
6222
6222
|
}
|
|
6223
|
-
function
|
|
6224
|
-
e._err(t,
|
|
6223
|
+
function Dt(e, t) {
|
|
6224
|
+
e._err(t, S.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Se.QUIRKS), e.insertionMode = g.BEFORE_HTML, e._processToken(t);
|
|
6225
6225
|
}
|
|
6226
6226
|
function zl(e, t) {
|
|
6227
|
-
t.tagID === s.HTML ? (e._insertElement(t, R.HTML), e.insertionMode = g.BEFORE_HEAD) :
|
|
6227
|
+
t.tagID === s.HTML ? (e._insertElement(t, R.HTML), e.insertionMode = g.BEFORE_HEAD) : Ut(e, t);
|
|
6228
6228
|
}
|
|
6229
6229
|
function Yl(e, t) {
|
|
6230
6230
|
const n = t.tagID;
|
|
6231
|
-
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) &&
|
|
6231
|
+
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Ut(e, t);
|
|
6232
6232
|
}
|
|
6233
|
-
function
|
|
6233
|
+
function Ut(e, t) {
|
|
6234
6234
|
e._insertFakeRootElement(), e.insertionMode = g.BEFORE_HEAD, e._processToken(t);
|
|
6235
6235
|
}
|
|
6236
6236
|
function ql(e, t) {
|
|
@@ -6244,14 +6244,14 @@ function ql(e, t) {
|
|
|
6244
6244
|
break;
|
|
6245
6245
|
}
|
|
6246
6246
|
default:
|
|
6247
|
-
|
|
6247
|
+
zt(e, t);
|
|
6248
6248
|
}
|
|
6249
6249
|
}
|
|
6250
6250
|
function jl(e, t) {
|
|
6251
6251
|
const n = t.tagID;
|
|
6252
|
-
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ?
|
|
6252
|
+
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? zt(e, t) : e._err(t, S.endTagWithoutMatchingOpenElement);
|
|
6253
6253
|
}
|
|
6254
|
-
function
|
|
6254
|
+
function zt(e, t) {
|
|
6255
6255
|
e._insertFakeElement(_.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = g.IN_HEAD, e._processToken(t);
|
|
6256
6256
|
}
|
|
6257
6257
|
function Re(e, t) {
|
|
@@ -6290,11 +6290,11 @@ function Re(e, t) {
|
|
|
6290
6290
|
break;
|
|
6291
6291
|
}
|
|
6292
6292
|
case s.HEAD: {
|
|
6293
|
-
e._err(t,
|
|
6293
|
+
e._err(t, S.misplacedStartTagForHeadElement);
|
|
6294
6294
|
break;
|
|
6295
6295
|
}
|
|
6296
6296
|
default:
|
|
6297
|
-
|
|
6297
|
+
Yt(e, t);
|
|
6298
6298
|
}
|
|
6299
6299
|
}
|
|
6300
6300
|
function Vl(e, t) {
|
|
@@ -6306,7 +6306,7 @@ function Vl(e, t) {
|
|
|
6306
6306
|
case s.BODY:
|
|
6307
6307
|
case s.BR:
|
|
6308
6308
|
case s.HTML: {
|
|
6309
|
-
|
|
6309
|
+
Yt(e, t);
|
|
6310
6310
|
break;
|
|
6311
6311
|
}
|
|
6312
6312
|
case s.TEMPLATE: {
|
|
@@ -6314,13 +6314,13 @@ function Vl(e, t) {
|
|
|
6314
6314
|
break;
|
|
6315
6315
|
}
|
|
6316
6316
|
default:
|
|
6317
|
-
e._err(t,
|
|
6317
|
+
e._err(t, S.endTagWithoutMatchingOpenElement);
|
|
6318
6318
|
}
|
|
6319
6319
|
}
|
|
6320
6320
|
function it(e, t) {
|
|
6321
|
-
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t,
|
|
6321
|
+
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, S.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, S.endTagWithoutMatchingOpenElement);
|
|
6322
6322
|
}
|
|
6323
|
-
function
|
|
6323
|
+
function Yt(e, t) {
|
|
6324
6324
|
e.openElements.pop(), e.insertionMode = g.AFTER_HEAD, e._processToken(t);
|
|
6325
6325
|
}
|
|
6326
6326
|
function Wl(e, t) {
|
|
@@ -6340,11 +6340,11 @@ function Wl(e, t) {
|
|
|
6340
6340
|
break;
|
|
6341
6341
|
}
|
|
6342
6342
|
case s.NOSCRIPT: {
|
|
6343
|
-
e._err(t,
|
|
6343
|
+
e._err(t, S.nestedNoscriptInHead);
|
|
6344
6344
|
break;
|
|
6345
6345
|
}
|
|
6346
6346
|
default:
|
|
6347
|
-
|
|
6347
|
+
qt(e, t);
|
|
6348
6348
|
}
|
|
6349
6349
|
}
|
|
6350
6350
|
function Gl(e, t) {
|
|
@@ -6354,15 +6354,15 @@ function Gl(e, t) {
|
|
|
6354
6354
|
break;
|
|
6355
6355
|
}
|
|
6356
6356
|
case s.BR: {
|
|
6357
|
-
|
|
6357
|
+
qt(e, t);
|
|
6358
6358
|
break;
|
|
6359
6359
|
}
|
|
6360
6360
|
default:
|
|
6361
|
-
e._err(t,
|
|
6361
|
+
e._err(t, S.endTagWithoutMatchingOpenElement);
|
|
6362
6362
|
}
|
|
6363
6363
|
}
|
|
6364
|
-
function
|
|
6365
|
-
const n = t.type === X.EOF ?
|
|
6364
|
+
function qt(e, t) {
|
|
6365
|
+
const n = t.type === X.EOF ? S.openElementsLeftAfterEof : S.disallowedContentInNoscriptInHead;
|
|
6366
6366
|
e._err(t, n), e.openElements.pop(), e.insertionMode = g.IN_HEAD, e._processToken(t);
|
|
6367
6367
|
}
|
|
6368
6368
|
function Ql(e, t) {
|
|
@@ -6389,15 +6389,15 @@ function Ql(e, t) {
|
|
|
6389
6389
|
case s.STYLE:
|
|
6390
6390
|
case s.TEMPLATE:
|
|
6391
6391
|
case s.TITLE: {
|
|
6392
|
-
e._err(t,
|
|
6392
|
+
e._err(t, S.abandonedHeadElementChild), e.openElements.push(e.headElement, s.HEAD), Re(e, t), e.openElements.remove(e.headElement);
|
|
6393
6393
|
break;
|
|
6394
6394
|
}
|
|
6395
6395
|
case s.HEAD: {
|
|
6396
|
-
e._err(t,
|
|
6396
|
+
e._err(t, S.misplacedStartTagForHeadElement);
|
|
6397
6397
|
break;
|
|
6398
6398
|
}
|
|
6399
6399
|
default:
|
|
6400
|
-
|
|
6400
|
+
jt(e, t);
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
6403
|
function Xl(e, t) {
|
|
@@ -6405,7 +6405,7 @@ function Xl(e, t) {
|
|
|
6405
6405
|
case s.BODY:
|
|
6406
6406
|
case s.HTML:
|
|
6407
6407
|
case s.BR: {
|
|
6408
|
-
|
|
6408
|
+
jt(e, t);
|
|
6409
6409
|
break;
|
|
6410
6410
|
}
|
|
6411
6411
|
case s.TEMPLATE: {
|
|
@@ -6413,10 +6413,10 @@ function Xl(e, t) {
|
|
|
6413
6413
|
break;
|
|
6414
6414
|
}
|
|
6415
6415
|
default:
|
|
6416
|
-
e._err(t,
|
|
6416
|
+
e._err(t, S.endTagWithoutMatchingOpenElement);
|
|
6417
6417
|
}
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6419
|
+
function jt(e, t) {
|
|
6420
6420
|
e._insertFakeElement(_.BODY, s.BODY), e.insertionMode = g.IN_BODY, kn(e, t);
|
|
6421
6421
|
}
|
|
6422
6422
|
function kn(e, t) {
|
|
@@ -6430,7 +6430,7 @@ function kn(e, t) {
|
|
|
6430
6430
|
break;
|
|
6431
6431
|
}
|
|
6432
6432
|
case X.COMMENT: {
|
|
6433
|
-
|
|
6433
|
+
cr(e, t);
|
|
6434
6434
|
break;
|
|
6435
6435
|
}
|
|
6436
6436
|
case X.START_TAG: {
|
|
@@ -6468,7 +6468,7 @@ function Zl(e, t) {
|
|
|
6468
6468
|
e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, R.HTML);
|
|
6469
6469
|
}
|
|
6470
6470
|
function ec(e, t) {
|
|
6471
|
-
e.openElements.hasInButtonScope(s.P) && e._closePElement(),
|
|
6471
|
+
e.openElements.hasInButtonScope(s.P) && e._closePElement(), lr.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, R.HTML);
|
|
6472
6472
|
}
|
|
6473
6473
|
function tc(e, t) {
|
|
6474
6474
|
e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, R.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
|
|
@@ -6499,19 +6499,19 @@ function ic(e, t) {
|
|
|
6499
6499
|
}
|
|
6500
6500
|
function ac(e, t) {
|
|
6501
6501
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
|
|
6502
|
-
n && (
|
|
6502
|
+
n && (Pr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6503
6503
|
}
|
|
6504
6504
|
function sc(e, t) {
|
|
6505
6505
|
e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6506
6506
|
}
|
|
6507
6507
|
function oc(e, t) {
|
|
6508
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (
|
|
6508
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Pr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, R.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6509
6509
|
}
|
|
6510
6510
|
function lc(e, t) {
|
|
6511
6511
|
e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
6512
6512
|
}
|
|
6513
6513
|
function cc(e, t) {
|
|
6514
|
-
e.treeAdapter.getDocumentMode(e.document) !==
|
|
6514
|
+
e.treeAdapter.getDocumentMode(e.document) !== Se.QUIRKS && e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, R.HTML), e.framesetOk = !1, e.insertionMode = g.IN_TABLE;
|
|
6515
6515
|
}
|
|
6516
6516
|
function ca(e, t) {
|
|
6517
6517
|
e._reconstructActiveFormattingElements(), e._appendElement(t, R.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
@@ -6541,7 +6541,7 @@ function Ec(e, t) {
|
|
|
6541
6541
|
function gc(e, t) {
|
|
6542
6542
|
e.framesetOk = !1, e._switchToTextParsing(t, ae.RAWTEXT);
|
|
6543
6543
|
}
|
|
6544
|
-
function
|
|
6544
|
+
function Iu(e, t) {
|
|
6545
6545
|
e._switchToTextParsing(t, ae.RAWTEXT);
|
|
6546
6546
|
}
|
|
6547
6547
|
function Tc(e, t) {
|
|
@@ -6557,10 +6557,10 @@ function _c(e, t) {
|
|
|
6557
6557
|
e.openElements.hasInScope(s.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(s.RTC), e._insertElement(t, R.HTML);
|
|
6558
6558
|
}
|
|
6559
6559
|
function Cc(e, t) {
|
|
6560
|
-
e._reconstructActiveFormattingElements(), ia(t),
|
|
6560
|
+
e._reconstructActiveFormattingElements(), ia(t), Dr(t), t.selfClosing ? e._appendElement(t, R.MATHML) : e._insertElement(t, R.MATHML), t.ackSelfClosing = !0;
|
|
6561
6561
|
}
|
|
6562
6562
|
function xc(e, t) {
|
|
6563
|
-
e._reconstructActiveFormattingElements(), aa(t),
|
|
6563
|
+
e._reconstructActiveFormattingElements(), aa(t), Dr(t), t.selfClosing ? e._appendElement(t, R.SVG) : e._insertElement(t, R.SVG), t.ackSelfClosing = !0;
|
|
6564
6564
|
}
|
|
6565
6565
|
function ku(e, t) {
|
|
6566
6566
|
e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML);
|
|
@@ -6740,7 +6740,7 @@ function pe(e, t) {
|
|
|
6740
6740
|
}
|
|
6741
6741
|
case s.NOEMBED:
|
|
6742
6742
|
case s.NOFRAMES: {
|
|
6743
|
-
|
|
6743
|
+
Iu(e, t);
|
|
6744
6744
|
break;
|
|
6745
6745
|
}
|
|
6746
6746
|
case s.FRAMESET: {
|
|
@@ -6752,7 +6752,7 @@ function pe(e, t) {
|
|
|
6752
6752
|
break;
|
|
6753
6753
|
}
|
|
6754
6754
|
case s.NOSCRIPT: {
|
|
6755
|
-
e.options.scriptingEnabled ?
|
|
6755
|
+
e.options.scriptingEnabled ? Iu(e, t) : ku(e, t);
|
|
6756
6756
|
break;
|
|
6757
6757
|
}
|
|
6758
6758
|
case s.PLAINTEXT: {
|
|
@@ -6775,13 +6775,13 @@ function pe(e, t) {
|
|
|
6775
6775
|
ku(e, t);
|
|
6776
6776
|
}
|
|
6777
6777
|
}
|
|
6778
|
-
function
|
|
6778
|
+
function Sc(e, t) {
|
|
6779
6779
|
if (e.openElements.hasInScope(s.BODY) && (e.insertionMode = g.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
|
|
6780
6780
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
6781
6781
|
n && e._setEndLocation(n, t);
|
|
6782
6782
|
}
|
|
6783
6783
|
}
|
|
6784
|
-
function
|
|
6784
|
+
function Ic(e, t) {
|
|
6785
6785
|
e.openElements.hasInScope(s.BODY) && (e.insertionMode = g.AFTER_BODY, _a(e, t));
|
|
6786
6786
|
}
|
|
6787
6787
|
function kc(e, t) {
|
|
@@ -6840,7 +6840,7 @@ function yn(e, t) {
|
|
|
6840
6840
|
case s.SMALL:
|
|
6841
6841
|
case s.STRIKE:
|
|
6842
6842
|
case s.STRONG: {
|
|
6843
|
-
|
|
6843
|
+
Pr(e, t);
|
|
6844
6844
|
break;
|
|
6845
6845
|
}
|
|
6846
6846
|
case s.P: {
|
|
@@ -6900,11 +6900,11 @@ function yn(e, t) {
|
|
|
6900
6900
|
break;
|
|
6901
6901
|
}
|
|
6902
6902
|
case s.BODY: {
|
|
6903
|
-
|
|
6903
|
+
Sc(e, t);
|
|
6904
6904
|
break;
|
|
6905
6905
|
}
|
|
6906
6906
|
case s.HTML: {
|
|
6907
|
-
|
|
6907
|
+
Ic(e, t);
|
|
6908
6908
|
break;
|
|
6909
6909
|
}
|
|
6910
6910
|
case s.FORM: {
|
|
@@ -6926,16 +6926,16 @@ function yn(e, t) {
|
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
function da(e, t) {
|
|
6929
|
-
e.tmplInsertionModeStack.length > 0 ? Aa(e, t) :
|
|
6929
|
+
e.tmplInsertionModeStack.length > 0 ? Aa(e, t) : wr(e, t);
|
|
6930
6930
|
}
|
|
6931
6931
|
function wc(e, t) {
|
|
6932
6932
|
var n;
|
|
6933
6933
|
t.tagID === s.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
|
6934
6934
|
}
|
|
6935
6935
|
function Mc(e, t) {
|
|
6936
|
-
e._err(t,
|
|
6936
|
+
e._err(t, S.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
|
|
6937
6937
|
}
|
|
6938
|
-
function
|
|
6938
|
+
function Un(e, t) {
|
|
6939
6939
|
if (sa.has(e.openElements.currentTagId))
|
|
6940
6940
|
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = g.IN_TABLE_TEXT, t.type) {
|
|
6941
6941
|
case X.CHARACTER: {
|
|
@@ -6948,7 +6948,7 @@ function zn(e, t) {
|
|
|
6948
6948
|
}
|
|
6949
6949
|
}
|
|
6950
6950
|
else
|
|
6951
|
-
|
|
6951
|
+
Zt(e, t);
|
|
6952
6952
|
}
|
|
6953
6953
|
function Bc(e, t) {
|
|
6954
6954
|
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, R.HTML), e.insertionMode = g.IN_CAPTION;
|
|
@@ -6957,7 +6957,7 @@ function Fc(e, t) {
|
|
|
6957
6957
|
e.openElements.clearBackToTableContext(), e._insertElement(t, R.HTML), e.insertionMode = g.IN_COLUMN_GROUP;
|
|
6958
6958
|
}
|
|
6959
6959
|
function vc(e, t) {
|
|
6960
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = g.IN_COLUMN_GROUP,
|
|
6960
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = g.IN_COLUMN_GROUP, Mr(e, t);
|
|
6961
6961
|
}
|
|
6962
6962
|
function Hc(e, t) {
|
|
6963
6963
|
e.openElements.clearBackToTableContext(), e._insertElement(t, R.HTML), e.insertionMode = g.IN_TABLE_BODY;
|
|
@@ -6969,12 +6969,12 @@ function zc(e, t) {
|
|
|
6969
6969
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
6970
6970
|
}
|
|
6971
6971
|
function Yc(e, t) {
|
|
6972
|
-
fa(t) ? e._appendElement(t, R.HTML) :
|
|
6972
|
+
fa(t) ? e._appendElement(t, R.HTML) : Zt(e, t), t.ackSelfClosing = !0;
|
|
6973
6973
|
}
|
|
6974
6974
|
function qc(e, t) {
|
|
6975
6975
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, R.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
6976
6976
|
}
|
|
6977
|
-
function
|
|
6977
|
+
function At(e, t) {
|
|
6978
6978
|
switch (t.tagID) {
|
|
6979
6979
|
case s.TD:
|
|
6980
6980
|
case s.TH:
|
|
@@ -7019,10 +7019,10 @@ function bt(e, t) {
|
|
|
7019
7019
|
break;
|
|
7020
7020
|
}
|
|
7021
7021
|
default:
|
|
7022
|
-
|
|
7022
|
+
Zt(e, t);
|
|
7023
7023
|
}
|
|
7024
7024
|
}
|
|
7025
|
-
function
|
|
7025
|
+
function Qt(e, t) {
|
|
7026
7026
|
switch (t.tagID) {
|
|
7027
7027
|
case s.TABLE: {
|
|
7028
7028
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode());
|
|
@@ -7045,10 +7045,10 @@ function Gt(e, t) {
|
|
|
7045
7045
|
case s.TR:
|
|
7046
7046
|
break;
|
|
7047
7047
|
default:
|
|
7048
|
-
|
|
7048
|
+
Zt(e, t);
|
|
7049
7049
|
}
|
|
7050
7050
|
}
|
|
7051
|
-
function
|
|
7051
|
+
function Zt(e, t) {
|
|
7052
7052
|
const n = e.fosterParentingEnabled;
|
|
7053
7053
|
e.fosterParentingEnabled = !0, kn(e, t), e.fosterParentingEnabled = n;
|
|
7054
7054
|
}
|
|
@@ -7058,11 +7058,11 @@ function ma(e, t) {
|
|
|
7058
7058
|
function pa(e, t) {
|
|
7059
7059
|
e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
|
|
7060
7060
|
}
|
|
7061
|
-
function
|
|
7061
|
+
function Pt(e, t) {
|
|
7062
7062
|
let n = 0;
|
|
7063
7063
|
if (e.hasNonWhitespacePendingCharacterToken)
|
|
7064
7064
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
7065
|
-
|
|
7065
|
+
Zt(e, e.pendingCharacterTokens[n]);
|
|
7066
7066
|
else
|
|
7067
7067
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
7068
7068
|
e._insertCharacters(e.pendingCharacterTokens[n]);
|
|
@@ -7071,14 +7071,14 @@ function Dt(e, t) {
|
|
|
7071
7071
|
const Ea = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
|
|
7072
7072
|
function jc(e, t) {
|
|
7073
7073
|
const n = t.tagID;
|
|
7074
|
-
Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE,
|
|
7074
|
+
Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE, At(e, t)) : pe(e, t);
|
|
7075
7075
|
}
|
|
7076
7076
|
function Vc(e, t) {
|
|
7077
7077
|
const n = t.tagID;
|
|
7078
7078
|
switch (n) {
|
|
7079
7079
|
case s.CAPTION:
|
|
7080
7080
|
case s.TABLE: {
|
|
7081
|
-
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE, n === s.TABLE &&
|
|
7081
|
+
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE, n === s.TABLE && Qt(e, t));
|
|
7082
7082
|
break;
|
|
7083
7083
|
}
|
|
7084
7084
|
case s.BODY:
|
|
@@ -7096,7 +7096,7 @@ function Vc(e, t) {
|
|
|
7096
7096
|
yn(e, t);
|
|
7097
7097
|
}
|
|
7098
7098
|
}
|
|
7099
|
-
function
|
|
7099
|
+
function Mr(e, t) {
|
|
7100
7100
|
switch (t.tagID) {
|
|
7101
7101
|
case s.HTML: {
|
|
7102
7102
|
pe(e, t);
|
|
@@ -7150,14 +7150,14 @@ function Nn(e, t) {
|
|
|
7150
7150
|
case s.TBODY:
|
|
7151
7151
|
case s.TFOOT:
|
|
7152
7152
|
case s.THEAD: {
|
|
7153
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE,
|
|
7153
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE, At(e, t));
|
|
7154
7154
|
break;
|
|
7155
7155
|
}
|
|
7156
7156
|
default:
|
|
7157
|
-
|
|
7157
|
+
At(e, t);
|
|
7158
7158
|
}
|
|
7159
7159
|
}
|
|
7160
|
-
function
|
|
7160
|
+
function fr(e, t) {
|
|
7161
7161
|
const n = t.tagID;
|
|
7162
7162
|
switch (t.tagID) {
|
|
7163
7163
|
case s.TBODY:
|
|
@@ -7167,7 +7167,7 @@ function hr(e, t) {
|
|
|
7167
7167
|
break;
|
|
7168
7168
|
}
|
|
7169
7169
|
case s.TABLE: {
|
|
7170
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE,
|
|
7170
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE, Qt(e, t));
|
|
7171
7171
|
break;
|
|
7172
7172
|
}
|
|
7173
7173
|
case s.BODY:
|
|
@@ -7180,7 +7180,7 @@ function hr(e, t) {
|
|
|
7180
7180
|
case s.TR:
|
|
7181
7181
|
break;
|
|
7182
7182
|
default:
|
|
7183
|
-
|
|
7183
|
+
Qt(e, t);
|
|
7184
7184
|
}
|
|
7185
7185
|
}
|
|
7186
7186
|
function On(e, t) {
|
|
@@ -7201,7 +7201,7 @@ function On(e, t) {
|
|
|
7201
7201
|
break;
|
|
7202
7202
|
}
|
|
7203
7203
|
default:
|
|
7204
|
-
|
|
7204
|
+
At(e, t);
|
|
7205
7205
|
}
|
|
7206
7206
|
}
|
|
7207
7207
|
function ga(e, t) {
|
|
@@ -7211,13 +7211,13 @@ function ga(e, t) {
|
|
|
7211
7211
|
break;
|
|
7212
7212
|
}
|
|
7213
7213
|
case s.TABLE: {
|
|
7214
|
-
e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY,
|
|
7214
|
+
e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY, fr(e, t));
|
|
7215
7215
|
break;
|
|
7216
7216
|
}
|
|
7217
7217
|
case s.TBODY:
|
|
7218
7218
|
case s.TFOOT:
|
|
7219
7219
|
case s.THEAD: {
|
|
7220
|
-
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY,
|
|
7220
|
+
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY, fr(e, t));
|
|
7221
7221
|
break;
|
|
7222
7222
|
}
|
|
7223
7223
|
case s.BODY:
|
|
@@ -7229,7 +7229,7 @@ function ga(e, t) {
|
|
|
7229
7229
|
case s.TH:
|
|
7230
7230
|
break;
|
|
7231
7231
|
default:
|
|
7232
|
-
|
|
7232
|
+
Qt(e, t);
|
|
7233
7233
|
}
|
|
7234
7234
|
}
|
|
7235
7235
|
function Gc(e, t) {
|
|
@@ -7344,11 +7344,11 @@ function $c(e, t) {
|
|
|
7344
7344
|
case s.TBODY:
|
|
7345
7345
|
case s.TFOOT:
|
|
7346
7346
|
case s.THEAD: {
|
|
7347
|
-
e.tmplInsertionModeStack[0] = g.IN_TABLE, e.insertionMode = g.IN_TABLE,
|
|
7347
|
+
e.tmplInsertionModeStack[0] = g.IN_TABLE, e.insertionMode = g.IN_TABLE, At(e, t);
|
|
7348
7348
|
break;
|
|
7349
7349
|
}
|
|
7350
7350
|
case s.COL: {
|
|
7351
|
-
e.tmplInsertionModeStack[0] = g.IN_COLUMN_GROUP, e.insertionMode = g.IN_COLUMN_GROUP,
|
|
7351
|
+
e.tmplInsertionModeStack[0] = g.IN_COLUMN_GROUP, e.insertionMode = g.IN_COLUMN_GROUP, Mr(e, t);
|
|
7352
7352
|
break;
|
|
7353
7353
|
}
|
|
7354
7354
|
case s.TR: {
|
|
@@ -7368,7 +7368,7 @@ function Jc(e, t) {
|
|
|
7368
7368
|
t.tagID === s.TEMPLATE && it(e, t);
|
|
7369
7369
|
}
|
|
7370
7370
|
function Aa(e, t) {
|
|
7371
|
-
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) :
|
|
7371
|
+
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : wr(e, t);
|
|
7372
7372
|
}
|
|
7373
7373
|
function Zc(e, t) {
|
|
7374
7374
|
t.tagID === s.HTML ? pe(e, t) : _n(e, t);
|
|
@@ -7458,7 +7458,7 @@ function o0(e, t) {
|
|
|
7458
7458
|
Ca(e), e._startTagOutsideForeignContent(t);
|
|
7459
7459
|
else {
|
|
7460
7460
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
|
7461
|
-
r === R.MATHML ? ia(t) : r === R.SVG && (
|
|
7461
|
+
r === R.MATHML ? ia(t) : r === R.SVG && (Sl(t), aa(t)), Dr(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
7464
7464
|
function l0(e, t) {
|
|
@@ -7579,8 +7579,8 @@ function m0() {
|
|
|
7579
7579
|
function p0(e) {
|
|
7580
7580
|
return e !== null && typeof e == "object" && "type" in e;
|
|
7581
7581
|
}
|
|
7582
|
-
const
|
|
7583
|
-
function
|
|
7582
|
+
const Sa = [], E0 = !0, hr = !1, g0 = "skip";
|
|
7583
|
+
function Ia(e, t, n, r) {
|
|
7584
7584
|
let u;
|
|
7585
7585
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : u = t;
|
|
7586
7586
|
const i = Rn(u), a = r ? -1 : 1;
|
|
@@ -7604,8 +7604,8 @@ function Sa(e, t, n, r) {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
return E;
|
|
7606
7606
|
function E() {
|
|
7607
|
-
let m =
|
|
7608
|
-
if ((!t || i(l, c, h[h.length - 1] || void 0)) && (m = T0(n(l, h)), m[0] ===
|
|
7607
|
+
let m = Sa, A, C, y;
|
|
7608
|
+
if ((!t || i(l, c, h[h.length - 1] || void 0)) && (m = T0(n(l, h)), m[0] === hr))
|
|
7609
7609
|
return m;
|
|
7610
7610
|
if ("children" in l && l.children) {
|
|
7611
7611
|
const x = (
|
|
@@ -7615,7 +7615,7 @@ function Sa(e, t, n, r) {
|
|
|
7615
7615
|
if (x.children && m[0] !== g0)
|
|
7616
7616
|
for (C = (r ? x.children.length : -1) + a, y = h.concat(x); C > -1 && C < x.children.length; ) {
|
|
7617
7617
|
const O = x.children[C];
|
|
7618
|
-
if (A = o(O, C, y)(), A[0] ===
|
|
7618
|
+
if (A = o(O, C, y)(), A[0] === hr)
|
|
7619
7619
|
return A;
|
|
7620
7620
|
C = typeof A[1] == "number" ? A[1] : C + a;
|
|
7621
7621
|
}
|
|
@@ -7625,11 +7625,11 @@ function Sa(e, t, n, r) {
|
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
7627
|
function T0(e) {
|
|
7628
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [E0, e] : e == null ?
|
|
7628
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [E0, e] : e == null ? Sa : [e];
|
|
7629
7629
|
}
|
|
7630
|
-
function
|
|
7630
|
+
function en(e, t, n, r) {
|
|
7631
7631
|
let u, i, a;
|
|
7632
|
-
typeof t == "function" && typeof n != "function" ? (i = void 0, a = t, u = n) : (i = t, a = n, u = r),
|
|
7632
|
+
typeof t == "function" && typeof n != "function" ? (i = void 0, a = t, u = n) : (i = t, a = n, u = r), Ia(e, i, o, u);
|
|
7633
7633
|
function o(l, c) {
|
|
7634
7634
|
const h = c[c.length - 1], f = h ? h.children.indexOf(l) : void 0;
|
|
7635
7635
|
return a(l, f, h);
|
|
@@ -7644,10 +7644,10 @@ const b0 = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
|
|
|
7644
7644
|
]), yu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
|
|
7645
7645
|
function ka(e, t) {
|
|
7646
7646
|
const n = L0(e), r = Vi("type", {
|
|
7647
|
-
handlers: { root: _0, element: C0, text: x0, comment: Na, doctype:
|
|
7647
|
+
handlers: { root: _0, element: C0, text: x0, comment: Na, doctype: S0, raw: k0 },
|
|
7648
7648
|
unknown: y0
|
|
7649
7649
|
}), u = {
|
|
7650
|
-
parser: n ? new
|
|
7650
|
+
parser: n ? new Su(yu) : Su.getFragmentParser(void 0, yu),
|
|
7651
7651
|
handle(o) {
|
|
7652
7652
|
r(o, u);
|
|
7653
7653
|
},
|
|
@@ -7659,7 +7659,7 @@ function ka(e, t) {
|
|
|
7659
7659
|
// To do: support `space`?
|
|
7660
7660
|
file: u.options.file
|
|
7661
7661
|
});
|
|
7662
|
-
return u.stitches &&
|
|
7662
|
+
return u.stitches && en(a, "comment", function(o, l, c) {
|
|
7663
7663
|
const h = (
|
|
7664
7664
|
/** @type {Stitch} */
|
|
7665
7665
|
/** @type {unknown} */
|
|
@@ -7688,22 +7688,22 @@ function x0(e, t) {
|
|
|
7688
7688
|
const n = {
|
|
7689
7689
|
type: X.CHARACTER,
|
|
7690
7690
|
chars: e.value,
|
|
7691
|
-
location:
|
|
7691
|
+
location: tn(e)
|
|
7692
7692
|
};
|
|
7693
7693
|
It(t, Me(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
7694
7694
|
}
|
|
7695
|
-
function
|
|
7695
|
+
function S0(e, t) {
|
|
7696
7696
|
const n = {
|
|
7697
7697
|
type: X.DOCTYPE,
|
|
7698
7698
|
name: "html",
|
|
7699
7699
|
forceQuirks: !1,
|
|
7700
7700
|
publicId: "",
|
|
7701
7701
|
systemId: "",
|
|
7702
|
-
location:
|
|
7702
|
+
location: tn(e)
|
|
7703
7703
|
};
|
|
7704
7704
|
It(t, Me(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
7705
7705
|
}
|
|
7706
|
-
function
|
|
7706
|
+
function I0(e, t) {
|
|
7707
7707
|
t.stitches = !0;
|
|
7708
7708
|
const n = R0(e);
|
|
7709
7709
|
if ("children" in e && "children" in n) {
|
|
@@ -7719,7 +7719,7 @@ function Na(e, t) {
|
|
|
7719
7719
|
const n = e.value, r = {
|
|
7720
7720
|
type: X.COMMENT,
|
|
7721
7721
|
data: n,
|
|
7722
|
-
location:
|
|
7722
|
+
location: tn(e)
|
|
7723
7723
|
};
|
|
7724
7724
|
It(t, Me(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
7725
7725
|
}
|
|
@@ -7740,7 +7740,7 @@ function y0(e, t) {
|
|
|
7740
7740
|
e
|
|
7741
7741
|
);
|
|
7742
7742
|
if (t.options.passThrough && t.options.passThrough.includes(n.type))
|
|
7743
|
-
|
|
7743
|
+
I0(n, t);
|
|
7744
7744
|
else {
|
|
7745
7745
|
let r = "";
|
|
7746
7746
|
throw A0.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
|
|
@@ -7778,14 +7778,14 @@ function N0(e, t) {
|
|
|
7778
7778
|
), a = {
|
|
7779
7779
|
type: X.START_TAG,
|
|
7780
7780
|
tagName: n,
|
|
7781
|
-
tagID:
|
|
7781
|
+
tagID: St(n),
|
|
7782
7782
|
// We always send start and end tags.
|
|
7783
7783
|
selfClosing: !1,
|
|
7784
7784
|
ackSelfClosing: !1,
|
|
7785
7785
|
// Always element.
|
|
7786
7786
|
/* c8 ignore next */
|
|
7787
7787
|
attrs: "attrs" in i ? i.attrs : [],
|
|
7788
|
-
location:
|
|
7788
|
+
location: tn(e)
|
|
7789
7789
|
};
|
|
7790
7790
|
t.parser.currentToken = a, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
|
|
7791
7791
|
}
|
|
@@ -7796,11 +7796,11 @@ function O0(e, t) {
|
|
|
7796
7796
|
const r = {
|
|
7797
7797
|
type: X.END_TAG,
|
|
7798
7798
|
tagName: n,
|
|
7799
|
-
tagID:
|
|
7799
|
+
tagID: St(n),
|
|
7800
7800
|
selfClosing: !1,
|
|
7801
7801
|
ackSelfClosing: !1,
|
|
7802
7802
|
attrs: [],
|
|
7803
|
-
location:
|
|
7803
|
+
location: tn(e)
|
|
7804
7804
|
};
|
|
7805
7805
|
t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
|
|
7806
7806
|
n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
|
@@ -7812,7 +7812,7 @@ function L0(e) {
|
|
|
7812
7812
|
const t = e.type === "root" ? e.children[0] : e;
|
|
7813
7813
|
return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
|
|
7814
7814
|
}
|
|
7815
|
-
function
|
|
7815
|
+
function tn(e) {
|
|
7816
7816
|
const t = Me(e) || {
|
|
7817
7817
|
line: void 0,
|
|
7818
7818
|
column: void 0,
|
|
@@ -7832,7 +7832,7 @@ function en(e) {
|
|
|
7832
7832
|
};
|
|
7833
7833
|
}
|
|
7834
7834
|
function R0(e) {
|
|
7835
|
-
return "children" in e ?
|
|
7835
|
+
return "children" in e ? bt({ ...e, children: [] }) : bt(e);
|
|
7836
7836
|
}
|
|
7837
7837
|
function D0(e) {
|
|
7838
7838
|
return function(t, n) {
|
|
@@ -7859,7 +7859,7 @@ function Cn(e) {
|
|
|
7859
7859
|
e !== null && (e < 32 || e === 127)
|
|
7860
7860
|
);
|
|
7861
7861
|
}
|
|
7862
|
-
const
|
|
7862
|
+
const dr = Qe(/\d/), w0 = Qe(/[\dA-Fa-f]/), M0 = Qe(/[!-/:-@[-`{-~]/);
|
|
7863
7863
|
function z(e) {
|
|
7864
7864
|
return e !== null && e < -2;
|
|
7865
7865
|
}
|
|
@@ -7880,7 +7880,7 @@ function B0(e, t, n) {
|
|
|
7880
7880
|
const u = Rn((n || {}).ignore || []), i = F0(t);
|
|
7881
7881
|
let a = -1;
|
|
7882
7882
|
for (; ++a < i.length; )
|
|
7883
|
-
|
|
7883
|
+
Ia(e, "text", o);
|
|
7884
7884
|
function o(c, h) {
|
|
7885
7885
|
let f = -1, E;
|
|
7886
7886
|
for (; ++f < h.length; ) {
|
|
@@ -7940,15 +7940,15 @@ function H0(e) {
|
|
|
7940
7940
|
return e;
|
|
7941
7941
|
};
|
|
7942
7942
|
}
|
|
7943
|
-
const
|
|
7943
|
+
const zn = "phrasing", Yn = ["autolink", "link", "image", "label"];
|
|
7944
7944
|
function U0() {
|
|
7945
7945
|
return {
|
|
7946
7946
|
transforms: [G0],
|
|
7947
7947
|
enter: {
|
|
7948
7948
|
literalAutolink: Y0,
|
|
7949
|
-
literalAutolinkEmail:
|
|
7950
|
-
literalAutolinkHttp:
|
|
7951
|
-
literalAutolinkWww:
|
|
7949
|
+
literalAutolinkEmail: qn,
|
|
7950
|
+
literalAutolinkHttp: qn,
|
|
7951
|
+
literalAutolinkWww: qn
|
|
7952
7952
|
},
|
|
7953
7953
|
exit: {
|
|
7954
7954
|
literalAutolink: W0,
|
|
@@ -7965,22 +7965,22 @@ function z0() {
|
|
|
7965
7965
|
character: "@",
|
|
7966
7966
|
before: "[+\\-.\\w]",
|
|
7967
7967
|
after: "[\\-.\\w]",
|
|
7968
|
-
inConstruct:
|
|
7969
|
-
notInConstruct:
|
|
7968
|
+
inConstruct: zn,
|
|
7969
|
+
notInConstruct: Yn
|
|
7970
7970
|
},
|
|
7971
7971
|
{
|
|
7972
7972
|
character: ".",
|
|
7973
7973
|
before: "[Ww]",
|
|
7974
7974
|
after: "[\\-.\\w]",
|
|
7975
|
-
inConstruct:
|
|
7976
|
-
notInConstruct:
|
|
7975
|
+
inConstruct: zn,
|
|
7976
|
+
notInConstruct: Yn
|
|
7977
7977
|
},
|
|
7978
7978
|
{
|
|
7979
7979
|
character: ":",
|
|
7980
7980
|
before: "[ps]",
|
|
7981
7981
|
after: "\\/",
|
|
7982
|
-
inConstruct:
|
|
7983
|
-
notInConstruct:
|
|
7982
|
+
inConstruct: zn,
|
|
7983
|
+
notInConstruct: Yn
|
|
7984
7984
|
}
|
|
7985
7985
|
]
|
|
7986
7986
|
};
|
|
@@ -7988,7 +7988,7 @@ function z0() {
|
|
|
7988
7988
|
function Y0(e) {
|
|
7989
7989
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
7990
7990
|
}
|
|
7991
|
-
function
|
|
7991
|
+
function qn(e) {
|
|
7992
7992
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
7993
7993
|
}
|
|
7994
7994
|
function q0(e) {
|
|
@@ -8062,7 +8062,7 @@ function La(e, t) {
|
|
|
8062
8062
|
return (e.index === 0 || rt(n) || Pn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
8063
8063
|
(!t || n !== 47);
|
|
8064
8064
|
}
|
|
8065
|
-
function
|
|
8065
|
+
function nn(e) {
|
|
8066
8066
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
8067
8067
|
}
|
|
8068
8068
|
Ra.peek = sf;
|
|
@@ -8083,7 +8083,7 @@ function tf(e) {
|
|
|
8083
8083
|
}
|
|
8084
8084
|
function nf(e) {
|
|
8085
8085
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
8086
|
-
n.type, n.identifier =
|
|
8086
|
+
n.type, n.identifier = nn(
|
|
8087
8087
|
this.sliceSerialize(e)
|
|
8088
8088
|
).toLowerCase(), n.label = t;
|
|
8089
8089
|
}
|
|
@@ -8092,7 +8092,7 @@ function rf(e) {
|
|
|
8092
8092
|
}
|
|
8093
8093
|
function uf(e) {
|
|
8094
8094
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
8095
|
-
n.type, n.identifier =
|
|
8095
|
+
n.type, n.identifier = nn(
|
|
8096
8096
|
this.sliceSerialize(e)
|
|
8097
8097
|
).toLowerCase(), n.label = t;
|
|
8098
8098
|
}
|
|
@@ -8314,13 +8314,13 @@ function xf(e, t) {
|
|
|
8314
8314
|
r === u ? ++i > a && (a = i) : i = 1, u = r + t.length, r = n.indexOf(t, u);
|
|
8315
8315
|
return a;
|
|
8316
8316
|
}
|
|
8317
|
-
function
|
|
8317
|
+
function Sf(e, t) {
|
|
8318
8318
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
8319
8319
|
!e.lang && // And there’s a non-whitespace character…
|
|
8320
8320
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
8321
8321
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
8322
8322
|
}
|
|
8323
|
-
function
|
|
8323
|
+
function If(e) {
|
|
8324
8324
|
const t = e.options.fence || "`";
|
|
8325
8325
|
if (t !== "`" && t !== "~")
|
|
8326
8326
|
throw new Error(
|
|
@@ -8329,8 +8329,8 @@ function Sf(e) {
|
|
|
8329
8329
|
return t;
|
|
8330
8330
|
}
|
|
8331
8331
|
function kf(e, t, n, r) {
|
|
8332
|
-
const u =
|
|
8333
|
-
if (
|
|
8332
|
+
const u = If(n), i = e.value || "", a = u === "`" ? "GraveAccent" : "Tilde";
|
|
8333
|
+
if (Sf(e, n)) {
|
|
8334
8334
|
const f = n.enter("codeIndented"), E = n.indentLines(i, yf);
|
|
8335
8335
|
return f(), E;
|
|
8336
8336
|
}
|
|
@@ -8366,7 +8366,7 @@ function kf(e, t, n, r) {
|
|
|
8366
8366
|
function yf(e, t, n) {
|
|
8367
8367
|
return (n ? "" : " ") + e;
|
|
8368
8368
|
}
|
|
8369
|
-
function
|
|
8369
|
+
function Br(e) {
|
|
8370
8370
|
const t = e.options.quote || '"';
|
|
8371
8371
|
if (t !== '"' && t !== "'")
|
|
8372
8372
|
throw new Error(
|
|
@@ -8375,7 +8375,7 @@ function Fr(e) {
|
|
|
8375
8375
|
return t;
|
|
8376
8376
|
}
|
|
8377
8377
|
function Nf(e, t, n, r) {
|
|
8378
|
-
const u =
|
|
8378
|
+
const u = Br(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
|
|
8379
8379
|
let o = n.enter("label");
|
|
8380
8380
|
const l = n.createTracker(r);
|
|
8381
8381
|
let c = l.move("[");
|
|
@@ -8412,17 +8412,17 @@ function Of(e) {
|
|
|
8412
8412
|
);
|
|
8413
8413
|
return t;
|
|
8414
8414
|
}
|
|
8415
|
-
function
|
|
8415
|
+
function Xt(e) {
|
|
8416
8416
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
8417
8417
|
}
|
|
8418
|
-
function
|
|
8418
|
+
function _t(e) {
|
|
8419
8419
|
if (e === null || ne(e) || rt(e))
|
|
8420
8420
|
return 1;
|
|
8421
8421
|
if (Pn(e))
|
|
8422
8422
|
return 2;
|
|
8423
8423
|
}
|
|
8424
8424
|
function xn(e, t, n) {
|
|
8425
|
-
const r =
|
|
8425
|
+
const r = _t(e), u = _t(t);
|
|
8426
8426
|
return r === void 0 ? u === void 0 ? (
|
|
8427
8427
|
// Letter inside:
|
|
8428
8428
|
// we have to encode *both* letters for `_` as it is looser.
|
|
@@ -8469,9 +8469,9 @@ function wa(e, t, n, r) {
|
|
|
8469
8469
|
c,
|
|
8470
8470
|
u
|
|
8471
8471
|
);
|
|
8472
|
-
h.inside && (l =
|
|
8472
|
+
h.inside && (l = Xt(c) + l.slice(1));
|
|
8473
8473
|
const f = l.charCodeAt(l.length - 1), E = xn(r.after.charCodeAt(0), f, u);
|
|
8474
|
-
E.inside && (l = l.slice(0, -1) +
|
|
8474
|
+
E.inside && (l = l.slice(0, -1) + Xt(f));
|
|
8475
8475
|
const m = a.move(u);
|
|
8476
8476
|
return i(), n.attentionEncodeSurroundingInfo = {
|
|
8477
8477
|
after: E.outside,
|
|
@@ -8482,7 +8482,7 @@ function Lf(e, t, n) {
|
|
|
8482
8482
|
return n.options.emphasis || "*";
|
|
8483
8483
|
}
|
|
8484
8484
|
const Rf = {};
|
|
8485
|
-
function
|
|
8485
|
+
function Fr(e, t) {
|
|
8486
8486
|
const n = Rf, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, u = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
8487
8487
|
return Ma(e, r, u);
|
|
8488
8488
|
}
|
|
@@ -8509,10 +8509,10 @@ function Df(e) {
|
|
|
8509
8509
|
}
|
|
8510
8510
|
function Pf(e, t) {
|
|
8511
8511
|
let n = !1;
|
|
8512
|
-
return
|
|
8512
|
+
return en(e, function(r) {
|
|
8513
8513
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
8514
|
-
return n = !0,
|
|
8515
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
8514
|
+
return n = !0, hr;
|
|
8515
|
+
}), !!((!e.depth || e.depth < 3) && Fr(e) && (t.options.setext || n));
|
|
8516
8516
|
}
|
|
8517
8517
|
function wf(e, t, n, r) {
|
|
8518
8518
|
const u = Math.max(Math.min(6, e.depth || 1), 1), i = n.createTracker(r);
|
|
@@ -8541,7 +8541,7 @@ function wf(e, t, n, r) {
|
|
|
8541
8541
|
`,
|
|
8542
8542
|
...i.current()
|
|
8543
8543
|
});
|
|
8544
|
-
return /^[\t ]/.test(c) && (c =
|
|
8544
|
+
return /^[\t ]/.test(c) && (c = Xt(c.charCodeAt(0)) + c.slice(1)), c = c ? a + " " + c : a, n.options.closeAtx && (c += " " + a), l(), o(), c;
|
|
8545
8545
|
}
|
|
8546
8546
|
Ba.peek = Mf;
|
|
8547
8547
|
function Ba(e) {
|
|
@@ -8552,7 +8552,7 @@ function Mf() {
|
|
|
8552
8552
|
}
|
|
8553
8553
|
Fa.peek = Bf;
|
|
8554
8554
|
function Fa(e, t, n, r) {
|
|
8555
|
-
const u =
|
|
8555
|
+
const u = Br(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
|
|
8556
8556
|
let o = n.enter("label");
|
|
8557
8557
|
const l = n.createTracker(r);
|
|
8558
8558
|
let c = l.move("![");
|
|
@@ -8623,7 +8623,7 @@ function vf() {
|
|
|
8623
8623
|
return "`";
|
|
8624
8624
|
}
|
|
8625
8625
|
function Ua(e, t) {
|
|
8626
|
-
const n =
|
|
8626
|
+
const n = Fr(e);
|
|
8627
8627
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
8628
8628
|
e.url && // And there’s a no title…
|
|
8629
8629
|
!e.title && // And the content of `node` is a single text node…
|
|
@@ -8635,7 +8635,7 @@ function Ua(e, t) {
|
|
|
8635
8635
|
}
|
|
8636
8636
|
za.peek = Hf;
|
|
8637
8637
|
function za(e, t, n, r) {
|
|
8638
|
-
const u =
|
|
8638
|
+
const u = Br(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
|
|
8639
8639
|
let o, l;
|
|
8640
8640
|
if (Ua(e, n)) {
|
|
8641
8641
|
const h = n.stack;
|
|
@@ -8702,7 +8702,7 @@ function Ya(e, t, n, r) {
|
|
|
8702
8702
|
function Uf() {
|
|
8703
8703
|
return "[";
|
|
8704
8704
|
}
|
|
8705
|
-
function
|
|
8705
|
+
function vr(e) {
|
|
8706
8706
|
const t = e.options.bullet || "*";
|
|
8707
8707
|
if (t !== "*" && t !== "+" && t !== "-")
|
|
8708
8708
|
throw new Error(
|
|
@@ -8711,7 +8711,7 @@ function Hr(e) {
|
|
|
8711
8711
|
return t;
|
|
8712
8712
|
}
|
|
8713
8713
|
function zf(e) {
|
|
8714
|
-
const t =
|
|
8714
|
+
const t = vr(e), n = e.options.bulletOther;
|
|
8715
8715
|
if (!n)
|
|
8716
8716
|
return t === "*" ? "-" : "*";
|
|
8717
8717
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
@@ -8742,7 +8742,7 @@ function qa(e) {
|
|
|
8742
8742
|
}
|
|
8743
8743
|
function qf(e, t, n, r) {
|
|
8744
8744
|
const u = n.enter("list"), i = n.bulletCurrent;
|
|
8745
|
-
let a = e.ordered ? Yf(n) :
|
|
8745
|
+
let a = e.ordered ? Yf(n) : vr(n);
|
|
8746
8746
|
const o = e.ordered ? a === "." ? ")" : "." : zf(n);
|
|
8747
8747
|
let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
|
|
8748
8748
|
if (!e.ordered) {
|
|
@@ -8778,7 +8778,7 @@ function jf(e) {
|
|
|
8778
8778
|
}
|
|
8779
8779
|
function Vf(e, t, n, r) {
|
|
8780
8780
|
const u = jf(n);
|
|
8781
|
-
let i = n.bulletCurrent ||
|
|
8781
|
+
let i = n.bulletCurrent || vr(n);
|
|
8782
8782
|
t && t.type === "list" && t.ordered && (i = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + i);
|
|
8783
8783
|
let a = i.length + 1;
|
|
8784
8784
|
(u === "tab" || u === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (a = Math.ceil(a / 4) * 4);
|
|
@@ -8851,9 +8851,9 @@ function ja(e, t, n, r) {
|
|
|
8851
8851
|
c,
|
|
8852
8852
|
u
|
|
8853
8853
|
);
|
|
8854
|
-
h.inside && (l =
|
|
8854
|
+
h.inside && (l = Xt(c) + l.slice(1));
|
|
8855
8855
|
const f = l.charCodeAt(l.length - 1), E = xn(r.after.charCodeAt(0), f, u);
|
|
8856
|
-
E.inside && (l = l.slice(0, -1) +
|
|
8856
|
+
E.inside && (l = l.slice(0, -1) + Xt(f));
|
|
8857
8857
|
const m = a.move(u + u);
|
|
8858
8858
|
return i(), n.attentionEncodeSurroundingInfo = {
|
|
8859
8859
|
after: E.outside,
|
|
@@ -8911,9 +8911,9 @@ function eh() {
|
|
|
8911
8911
|
exit: {
|
|
8912
8912
|
codeText: uh,
|
|
8913
8913
|
table: nh,
|
|
8914
|
-
tableData:
|
|
8915
|
-
tableHeader:
|
|
8916
|
-
tableRow:
|
|
8914
|
+
tableData: jn,
|
|
8915
|
+
tableHeader: jn,
|
|
8916
|
+
tableRow: jn
|
|
8917
8917
|
}
|
|
8918
8918
|
};
|
|
8919
8919
|
}
|
|
@@ -8936,7 +8936,7 @@ function nh(e) {
|
|
|
8936
8936
|
function rh(e) {
|
|
8937
8937
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
8938
8938
|
}
|
|
8939
|
-
function
|
|
8939
|
+
function jn(e) {
|
|
8940
8940
|
this.exit(e);
|
|
8941
8941
|
}
|
|
8942
8942
|
function Pu(e) {
|
|
@@ -9148,10 +9148,10 @@ const Eh = {
|
|
|
9148
9148
|
tokenize: xh,
|
|
9149
9149
|
partial: !0
|
|
9150
9150
|
}, Ga = {
|
|
9151
|
-
tokenize:
|
|
9151
|
+
tokenize: Sh,
|
|
9152
9152
|
partial: !0
|
|
9153
9153
|
}, Qa = {
|
|
9154
|
-
tokenize:
|
|
9154
|
+
tokenize: Ih,
|
|
9155
9155
|
partial: !0
|
|
9156
9156
|
}, gh = {
|
|
9157
9157
|
tokenize: kh,
|
|
@@ -9190,10 +9190,10 @@ function bh(e, t, n) {
|
|
|
9190
9190
|
let u, i;
|
|
9191
9191
|
return a;
|
|
9192
9192
|
function a(f) {
|
|
9193
|
-
return !
|
|
9193
|
+
return !mr(f) || !Za.call(r, r.previous) || Hr(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
|
|
9194
9194
|
}
|
|
9195
9195
|
function o(f) {
|
|
9196
|
-
return
|
|
9196
|
+
return mr(f) ? (e.consume(f), o) : f === 64 ? (e.consume(f), l) : n(f);
|
|
9197
9197
|
}
|
|
9198
9198
|
function l(f) {
|
|
9199
9199
|
return f === 46 ? e.check(gh, h, c)(f) : f === 45 || f === 95 || me(f) ? (i = !0, e.consume(f), l) : h(f);
|
|
@@ -9209,7 +9209,7 @@ function Ah(e, t, n) {
|
|
|
9209
9209
|
const r = this;
|
|
9210
9210
|
return u;
|
|
9211
9211
|
function u(a) {
|
|
9212
|
-
return a !== 87 && a !== 119 || !$a.call(r, r.previous) ||
|
|
9212
|
+
return a !== 87 && a !== 119 || !$a.call(r, r.previous) || Hr(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Eh, e.attempt(Wa, e.attempt(Ga, i), n), n)(a));
|
|
9213
9213
|
}
|
|
9214
9214
|
function i(a) {
|
|
9215
9215
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
|
|
@@ -9220,7 +9220,7 @@ function _h(e, t, n) {
|
|
|
9220
9220
|
let u = "", i = !1;
|
|
9221
9221
|
return a;
|
|
9222
9222
|
function a(f) {
|
|
9223
|
-
return (f === 72 || f === 104) && Ja.call(r, r.previous) && !
|
|
9223
|
+
return (f === 72 || f === 104) && Ja.call(r, r.previous) && !Hr(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
|
|
9224
9224
|
}
|
|
9225
9225
|
function o(f) {
|
|
9226
9226
|
if (ge(f) && u.length < 5)
|
|
@@ -9265,7 +9265,7 @@ function xh(e, t, n) {
|
|
|
9265
9265
|
return u || r || !i ? n(c) : t(c);
|
|
9266
9266
|
}
|
|
9267
9267
|
}
|
|
9268
|
-
function
|
|
9268
|
+
function Sh(e, t) {
|
|
9269
9269
|
let n = 0, r = 0;
|
|
9270
9270
|
return u;
|
|
9271
9271
|
function u(a) {
|
|
@@ -9275,7 +9275,7 @@ function Ih(e, t) {
|
|
|
9275
9275
|
return a === 41 && r++, e.consume(a), u;
|
|
9276
9276
|
}
|
|
9277
9277
|
}
|
|
9278
|
-
function
|
|
9278
|
+
function Ih(e, t, n) {
|
|
9279
9279
|
return r;
|
|
9280
9280
|
function r(o) {
|
|
9281
9281
|
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), i) : o === 93 ? (e.consume(o), u) : (
|
|
@@ -9310,12 +9310,12 @@ function Ja(e) {
|
|
|
9310
9310
|
return !ge(e);
|
|
9311
9311
|
}
|
|
9312
9312
|
function Za(e) {
|
|
9313
|
-
return !(e === 47 ||
|
|
9313
|
+
return !(e === 47 || mr(e));
|
|
9314
9314
|
}
|
|
9315
|
-
function
|
|
9315
|
+
function mr(e) {
|
|
9316
9316
|
return e === 43 || e === 45 || e === 46 || e === 95 || me(e);
|
|
9317
9317
|
}
|
|
9318
|
-
function
|
|
9318
|
+
function Hr(e) {
|
|
9319
9319
|
let t = e.length, n = !1;
|
|
9320
9320
|
for (; t--; ) {
|
|
9321
9321
|
const r = e[t][1];
|
|
@@ -9363,7 +9363,7 @@ function Oh(e, t, n) {
|
|
|
9363
9363
|
return i === null || z(i) ? t(i) : n(i);
|
|
9364
9364
|
}
|
|
9365
9365
|
}
|
|
9366
|
-
function
|
|
9366
|
+
function Vt(e, t) {
|
|
9367
9367
|
let n;
|
|
9368
9368
|
return r;
|
|
9369
9369
|
function r(u) {
|
|
@@ -9418,7 +9418,7 @@ function Dh(e, t, n) {
|
|
|
9418
9418
|
function o(l) {
|
|
9419
9419
|
if (!a || !a._balanced)
|
|
9420
9420
|
return n(l);
|
|
9421
|
-
const c =
|
|
9421
|
+
const c = nn(r.sliceSerialize({
|
|
9422
9422
|
start: a.end,
|
|
9423
9423
|
end: r.now()
|
|
9424
9424
|
}));
|
|
@@ -9497,7 +9497,7 @@ function wh(e, t, n) {
|
|
|
9497
9497
|
if (f === 93) {
|
|
9498
9498
|
e.exit("chunkString");
|
|
9499
9499
|
const E = e.exit("gfmFootnoteCallString");
|
|
9500
|
-
return u.includes(
|
|
9500
|
+
return u.includes(nn(r.sliceSerialize(E))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(f), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(f);
|
|
9501
9501
|
}
|
|
9502
9502
|
return ne(f) || (a = !0), i++, e.consume(f), f === 92 ? h : c;
|
|
9503
9503
|
}
|
|
@@ -9527,7 +9527,7 @@ function Mh(e, t, n) {
|
|
|
9527
9527
|
if (A === 93) {
|
|
9528
9528
|
e.exit("chunkString");
|
|
9529
9529
|
const C = e.exit("gfmFootnoteDefinitionLabelString");
|
|
9530
|
-
return i =
|
|
9530
|
+
return i = nn(r.sliceSerialize(C)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(A), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), E;
|
|
9531
9531
|
}
|
|
9532
9532
|
return ne(A) || (o = !0), a++, e.consume(A), A === 92 ? f : h;
|
|
9533
9533
|
}
|
|
@@ -9607,11 +9607,11 @@ function Hh(e) {
|
|
|
9607
9607
|
return c === 126 && h[h.length - 1][1].type !== "characterEscape" ? l(A) : (a.enter("strikethroughSequenceTemporary"), m(A));
|
|
9608
9608
|
}
|
|
9609
9609
|
function m(A) {
|
|
9610
|
-
const C =
|
|
9610
|
+
const C = _t(c);
|
|
9611
9611
|
if (A === 126)
|
|
9612
9612
|
return f > 1 ? l(A) : (a.consume(A), f++, m);
|
|
9613
9613
|
if (f < 2 && !n) return l(A);
|
|
9614
|
-
const y = a.exit("strikethroughSequenceTemporary"), x =
|
|
9614
|
+
const y = a.exit("strikethroughSequenceTemporary"), x = _t(A);
|
|
9615
9615
|
return y._open = !x || x === 2 && !!C, y._close = !C || C === 2 && !!x, o(A);
|
|
9616
9616
|
}
|
|
9617
9617
|
}
|
|
@@ -9719,7 +9719,7 @@ function jh(e, t, n) {
|
|
|
9719
9719
|
const r = this;
|
|
9720
9720
|
let u = 0, i = 0, a;
|
|
9721
9721
|
return o;
|
|
9722
|
-
function o(
|
|
9722
|
+
function o(I) {
|
|
9723
9723
|
let v = r.events.length - 1;
|
|
9724
9724
|
for (; v > -1; ) {
|
|
9725
9725
|
const F = r.events[v][1].type;
|
|
@@ -9728,61 +9728,61 @@ function jh(e, t, n) {
|
|
|
9728
9728
|
else break;
|
|
9729
9729
|
}
|
|
9730
9730
|
const H = v > -1 ? r.events[v][1].type : null, U = H === "tableHead" || H === "tableRow" ? k : l;
|
|
9731
|
-
return U === k && r.parser.lazy[r.now().line] ? n(
|
|
9731
|
+
return U === k && r.parser.lazy[r.now().line] ? n(I) : U(I);
|
|
9732
9732
|
}
|
|
9733
|
-
function l(
|
|
9734
|
-
return e.enter("tableHead"), e.enter("tableRow"), c(
|
|
9733
|
+
function l(I) {
|
|
9734
|
+
return e.enter("tableHead"), e.enter("tableRow"), c(I);
|
|
9735
9735
|
}
|
|
9736
|
-
function c(
|
|
9737
|
-
return
|
|
9736
|
+
function c(I) {
|
|
9737
|
+
return I === 124 || (a = !0, i += 1), h(I);
|
|
9738
9738
|
}
|
|
9739
|
-
function h(
|
|
9740
|
-
return
|
|
9739
|
+
function h(I) {
|
|
9740
|
+
return I === null ? n(I) : z(I) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), m) : n(I) : K(I) ? J(e, h, "whitespace")(I) : (i += 1, a && (a = !1, u += 1), I === 124 ? (e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), a = !0, h) : (e.enter("data"), f(I)));
|
|
9741
9741
|
}
|
|
9742
|
-
function f(
|
|
9743
|
-
return
|
|
9742
|
+
function f(I) {
|
|
9743
|
+
return I === null || I === 124 || ne(I) ? (e.exit("data"), h(I)) : (e.consume(I), I === 92 ? E : f);
|
|
9744
9744
|
}
|
|
9745
|
-
function E(
|
|
9746
|
-
return
|
|
9745
|
+
function E(I) {
|
|
9746
|
+
return I === 92 || I === 124 ? (e.consume(I), f) : f(I);
|
|
9747
9747
|
}
|
|
9748
|
-
function m(
|
|
9749
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
9748
|
+
function m(I) {
|
|
9749
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(I) : (e.enter("tableDelimiterRow"), a = !1, K(I) ? J(e, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : A(I));
|
|
9750
9750
|
}
|
|
9751
|
-
function A(
|
|
9752
|
-
return
|
|
9751
|
+
function A(I) {
|
|
9752
|
+
return I === 45 || I === 58 ? y(I) : I === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), C) : q(I);
|
|
9753
9753
|
}
|
|
9754
|
-
function C(
|
|
9755
|
-
return K(
|
|
9754
|
+
function C(I) {
|
|
9755
|
+
return K(I) ? J(e, y, "whitespace")(I) : y(I);
|
|
9756
9756
|
}
|
|
9757
|
-
function y(
|
|
9758
|
-
return
|
|
9757
|
+
function y(I) {
|
|
9758
|
+
return I === 58 ? (i += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(I), e.exit("tableDelimiterMarker"), x) : I === 45 ? (i += 1, x(I)) : I === null || z(I) ? Y(I) : q(I);
|
|
9759
9759
|
}
|
|
9760
|
-
function x(
|
|
9761
|
-
return
|
|
9760
|
+
function x(I) {
|
|
9761
|
+
return I === 45 ? (e.enter("tableDelimiterFiller"), O(I)) : q(I);
|
|
9762
9762
|
}
|
|
9763
|
-
function O(
|
|
9764
|
-
return
|
|
9763
|
+
function O(I) {
|
|
9764
|
+
return I === 45 ? (e.consume(I), O) : I === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(I), e.exit("tableDelimiterMarker"), L) : (e.exit("tableDelimiterFiller"), L(I));
|
|
9765
9765
|
}
|
|
9766
|
-
function L(
|
|
9767
|
-
return K(
|
|
9766
|
+
function L(I) {
|
|
9767
|
+
return K(I) ? J(e, Y, "whitespace")(I) : Y(I);
|
|
9768
9768
|
}
|
|
9769
|
-
function Y(
|
|
9770
|
-
return
|
|
9769
|
+
function Y(I) {
|
|
9770
|
+
return I === 124 ? A(I) : I === null || z(I) ? !a || u !== i ? q(I) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(I)) : q(I);
|
|
9771
9771
|
}
|
|
9772
|
-
function q(
|
|
9773
|
-
return n(
|
|
9772
|
+
function q(I) {
|
|
9773
|
+
return n(I);
|
|
9774
9774
|
}
|
|
9775
|
-
function k(
|
|
9776
|
-
return e.enter("tableRow"), Q(
|
|
9775
|
+
function k(I) {
|
|
9776
|
+
return e.enter("tableRow"), Q(I);
|
|
9777
9777
|
}
|
|
9778
|
-
function Q(
|
|
9779
|
-
return
|
|
9778
|
+
function Q(I) {
|
|
9779
|
+
return I === 124 ? (e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), Q) : I === null || z(I) ? (e.exit("tableRow"), t(I)) : K(I) ? J(e, Q, "whitespace")(I) : (e.enter("data"), Z(I));
|
|
9780
9780
|
}
|
|
9781
|
-
function Z(
|
|
9782
|
-
return
|
|
9781
|
+
function Z(I) {
|
|
9782
|
+
return I === null || I === 124 || ne(I) ? (e.exit("data"), Q(I)) : (e.consume(I), I === 92 ? ee : Z);
|
|
9783
9783
|
}
|
|
9784
|
-
function ee(
|
|
9785
|
-
return
|
|
9784
|
+
function ee(I) {
|
|
9785
|
+
return I === 92 || I === 124 ? (e.consume(I), Z) : Z(I);
|
|
9786
9786
|
}
|
|
9787
9787
|
}
|
|
9788
9788
|
function Vh(e, t) {
|
|
@@ -9800,7 +9800,7 @@ function Vh(e, t) {
|
|
|
9800
9800
|
start: Object.assign({}, A.start),
|
|
9801
9801
|
// Note: correct end is set later.
|
|
9802
9802
|
end: Object.assign({}, A.end)
|
|
9803
|
-
}, E.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], f =
|
|
9803
|
+
}, E.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], f = on(E, t, i, u, void 0, f), i = [0, 0, 0, 0]), a[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (i[1] !== 0 && (a[0] = a[1], f = on(E, t, i, u, void 0, f)), i = a, a = [i[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, i[1] !== 0 ? (a[0] = a[1], f = on(E, t, i, u, n, f)) : a[1] !== 0 && (f = on(E, t, a, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (a[3] = n);
|
|
9804
9804
|
}
|
|
9805
9805
|
for (l !== 0 && Bu(E, t, l, c, h), E.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
9806
9806
|
const m = t.events[n];
|
|
@@ -9808,7 +9808,7 @@ function Vh(e, t) {
|
|
|
9808
9808
|
}
|
|
9809
9809
|
return e;
|
|
9810
9810
|
}
|
|
9811
|
-
function
|
|
9811
|
+
function on(e, t, n, r, u, i) {
|
|
9812
9812
|
const a = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", o = "tableContent";
|
|
9813
9813
|
n[0] !== 0 && (i.end = Object.assign({}, dt(t.events, n[0])), e.add(n[0], 0, [["exit", i, t]]));
|
|
9814
9814
|
const l = dt(t.events, n[1]);
|
|
@@ -9901,7 +9901,7 @@ function Jh(e) {
|
|
|
9901
9901
|
}
|
|
9902
9902
|
const es = zs(
|
|
9903
9903
|
void 0
|
|
9904
|
-
),
|
|
9904
|
+
), Ur = () => {
|
|
9905
9905
|
const e = Ys(es);
|
|
9906
9906
|
if (!e)
|
|
9907
9907
|
throw new Error(
|
|
@@ -9909,17 +9909,17 @@ const es = zs(
|
|
|
9909
9909
|
);
|
|
9910
9910
|
return e;
|
|
9911
9911
|
}, Zh = () => {
|
|
9912
|
-
const e =
|
|
9913
|
-
return
|
|
9912
|
+
const e = vt(null), { observe: t, unobserve: n } = Ur();
|
|
9913
|
+
return Tt(() => {
|
|
9914
9914
|
const u = e.current;
|
|
9915
9915
|
if (u)
|
|
9916
9916
|
return t(u), () => n(u);
|
|
9917
|
-
}, [t, n]), { ref:
|
|
9917
|
+
}, [t, n]), { ref: Si((u) => {
|
|
9918
9918
|
u && (e.current = u);
|
|
9919
9919
|
}, []) };
|
|
9920
9920
|
}, ug = ({ children: e }) => {
|
|
9921
|
-
const [t, n] =
|
|
9922
|
-
|
|
9921
|
+
const [t, n] = ur(""), r = vt(null), u = vt(/* @__PURE__ */ new Set()), i = vt(/* @__PURE__ */ new Set());
|
|
9922
|
+
Tt(() => (r.current = new IntersectionObserver(
|
|
9923
9923
|
(l) => {
|
|
9924
9924
|
for (const c of l)
|
|
9925
9925
|
c.isIntersecting && c.target.id && n(c.target.id);
|
|
@@ -9934,7 +9934,7 @@ const es = zs(
|
|
|
9934
9934
|
}), i.current.clear(), () => {
|
|
9935
9935
|
var l;
|
|
9936
9936
|
return (l = r.current) == null ? void 0 : l.disconnect();
|
|
9937
|
-
}), []),
|
|
9937
|
+
}), []), Tt(() => {
|
|
9938
9938
|
const l = u.current, c = () => {
|
|
9939
9939
|
const h = window.scrollY === 0, f = window.innerHeight + window.scrollY >= document.body.scrollHeight;
|
|
9940
9940
|
if (h)
|
|
@@ -9993,7 +9993,7 @@ const es = zs(
|
|
|
9993
9993
|
}) => /* @__PURE__ */ B.jsx(
|
|
9994
9994
|
"span",
|
|
9995
9995
|
{
|
|
9996
|
-
className:
|
|
9996
|
+
className: Ht(
|
|
9997
9997
|
"flex items-center duration-200 transition-opacity text-center uppercase text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-full",
|
|
9998
9998
|
e === "outline" ? "px-3" : "mt-0.5 px-1",
|
|
9999
9999
|
r ? td[e] : ed[e],
|
|
@@ -10008,7 +10008,7 @@ function vu(e, t) {
|
|
|
10008
10008
|
return e(r, u, i) && t(r, u, i);
|
|
10009
10009
|
};
|
|
10010
10010
|
}
|
|
10011
|
-
function
|
|
10011
|
+
function ln(e) {
|
|
10012
10012
|
return function(n, r, u) {
|
|
10013
10013
|
if (!n || !r || typeof n != "object" || typeof r != "object")
|
|
10014
10014
|
return e(n, r, u);
|
|
@@ -10083,7 +10083,7 @@ function md(e, t, n) {
|
|
|
10083
10083
|
return !1;
|
|
10084
10084
|
return !0;
|
|
10085
10085
|
}
|
|
10086
|
-
function
|
|
10086
|
+
function wt(e, t, n) {
|
|
10087
10087
|
var r = Hu(e), u = r.length;
|
|
10088
10088
|
if (Hu(t).length !== u)
|
|
10089
10089
|
return !1;
|
|
@@ -10132,7 +10132,7 @@ function Td(e, t) {
|
|
|
10132
10132
|
function ts(e, t, n, r) {
|
|
10133
10133
|
return (r === od || r === sd || r === ad) && (e.$$typeof || t.$$typeof) ? !0 : id(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
|
|
10134
10134
|
}
|
|
10135
|
-
var bd = "[object Arguments]", Ad = "[object Boolean]", _d = "[object Date]", Cd = "[object Error]", xd = "[object Map]",
|
|
10135
|
+
var bd = "[object Arguments]", Ad = "[object Boolean]", _d = "[object Date]", Cd = "[object Error]", xd = "[object Map]", Sd = "[object Number]", Id = "[object Object]", kd = "[object RegExp]", yd = "[object Set]", Nd = "[object String]", Od = "[object URL]", Ld = Array.isArray, ju = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, Vu = Object.assign, Rd = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
10136
10136
|
function Dd(e) {
|
|
10137
10137
|
var t = e.areArraysEqual, n = e.areDatesEqual, r = e.areErrorsEqual, u = e.areFunctionsEqual, i = e.areMapsEqual, a = e.areNumbersEqual, o = e.areObjectsEqual, l = e.arePrimitiveWrappersEqual, c = e.areRegExpsEqual, h = e.areSetsEqual, f = e.areTypedArraysEqual, E = e.areUrlsEqual;
|
|
10138
10138
|
return function(A, C, y) {
|
|
@@ -10163,26 +10163,26 @@ function Dd(e) {
|
|
|
10163
10163
|
if (O === Set)
|
|
10164
10164
|
return h(A, C, y);
|
|
10165
10165
|
var L = Rd(A);
|
|
10166
|
-
return L === _d ? n(A, C, y) : L === kd ? c(A, C, y) : L === xd ? i(A, C, y) : L === yd ? h(A, C, y) : L ===
|
|
10166
|
+
return L === _d ? n(A, C, y) : L === kd ? c(A, C, y) : L === xd ? i(A, C, y) : L === yd ? h(A, C, y) : L === Id ? typeof A.then != "function" && typeof C.then != "function" && o(A, C, y) : L === Od ? E(A, C, y) : L === Cd ? r(A, C, y) : L === bd ? o(A, C, y) : L === Ad || L === Sd || L === Nd ? l(A, C, y) : !1;
|
|
10167
10167
|
};
|
|
10168
10168
|
}
|
|
10169
10169
|
function Pd(e) {
|
|
10170
10170
|
var t = e.circular, n = e.createCustomConfig, r = e.strict, u = {
|
|
10171
|
-
areArraysEqual: r ?
|
|
10171
|
+
areArraysEqual: r ? wt : ld,
|
|
10172
10172
|
areDatesEqual: cd,
|
|
10173
10173
|
areErrorsEqual: fd,
|
|
10174
10174
|
areFunctionsEqual: hd,
|
|
10175
|
-
areMapsEqual: r ? vu(Yu,
|
|
10175
|
+
areMapsEqual: r ? vu(Yu, wt) : Yu,
|
|
10176
10176
|
areNumbersEqual: dd,
|
|
10177
|
-
areObjectsEqual: r ?
|
|
10177
|
+
areObjectsEqual: r ? wt : md,
|
|
10178
10178
|
arePrimitiveWrappersEqual: pd,
|
|
10179
10179
|
areRegExpsEqual: Ed,
|
|
10180
|
-
areSetsEqual: r ? vu(qu,
|
|
10181
|
-
areTypedArraysEqual: r ?
|
|
10180
|
+
areSetsEqual: r ? vu(qu, wt) : qu,
|
|
10181
|
+
areTypedArraysEqual: r ? wt : gd,
|
|
10182
10182
|
areUrlsEqual: Td
|
|
10183
10183
|
};
|
|
10184
10184
|
if (n && (u = Vu({}, u, n(u))), t) {
|
|
10185
|
-
var i =
|
|
10185
|
+
var i = ln(u.areArraysEqual), a = ln(u.areMapsEqual), o = ln(u.areObjectsEqual), l = ln(u.areSetsEqual);
|
|
10186
10186
|
u = Vu({}, u, {
|
|
10187
10187
|
areArraysEqual: i,
|
|
10188
10188
|
areMapsEqual: a,
|
|
@@ -10269,8 +10269,8 @@ const Fd = ({
|
|
|
10269
10269
|
onRequestClose: t
|
|
10270
10270
|
}) => {
|
|
10271
10271
|
var A, C;
|
|
10272
|
-
const n = Qs(e), [r, u] =
|
|
10273
|
-
|
|
10272
|
+
const n = Qs(e), [r, u] = ur(!1), i = e.collapsible ?? !0, a = e.collapsed ?? !0, o = !!(!i || !a || n), [l, c] = ur(o), h = qs(((A = e.link) == null ? void 0 : A.id) ?? "");
|
|
10273
|
+
Tt(() => {
|
|
10274
10274
|
n && c(!0);
|
|
10275
10275
|
}, [n]);
|
|
10276
10276
|
const f = i && /* @__PURE__ */ B.jsx(
|
|
@@ -10286,7 +10286,7 @@ const Fd = ({
|
|
|
10286
10286
|
Ws,
|
|
10287
10287
|
{
|
|
10288
10288
|
size: 16,
|
|
10289
|
-
className:
|
|
10289
|
+
className: Ht(
|
|
10290
10290
|
r && "transition",
|
|
10291
10291
|
"shrink-0 group-data-[state=open]:rotate-90"
|
|
10292
10292
|
)
|
|
@@ -10297,7 +10297,7 @@ const Fd = ({
|
|
|
10297
10297
|
e.icon,
|
|
10298
10298
|
{
|
|
10299
10299
|
size: 16,
|
|
10300
|
-
className:
|
|
10300
|
+
className: Ht("align-[-0.125em] ", h && "text-primary")
|
|
10301
10301
|
}
|
|
10302
10302
|
), m = pn({
|
|
10303
10303
|
className: [
|
|
@@ -10306,15 +10306,15 @@ const Fd = ({
|
|
|
10306
10306
|
]
|
|
10307
10307
|
});
|
|
10308
10308
|
return /* @__PURE__ */ B.jsxs(
|
|
10309
|
-
|
|
10309
|
+
Bn.Root,
|
|
10310
10310
|
{
|
|
10311
10311
|
className: "flex flex-col",
|
|
10312
10312
|
defaultOpen: o,
|
|
10313
10313
|
open: l,
|
|
10314
10314
|
onOpenChange: () => c(!0),
|
|
10315
10315
|
children: [
|
|
10316
|
-
/* @__PURE__ */ B.jsx(
|
|
10317
|
-
|
|
10316
|
+
/* @__PURE__ */ B.jsx(Bn.Trigger, { className: "group", asChild: !0, disabled: !i, children: ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ B.jsxs(
|
|
10317
|
+
Cr,
|
|
10318
10318
|
{
|
|
10319
10319
|
to: yi(e.link.id),
|
|
10320
10320
|
className: m,
|
|
@@ -10337,9 +10337,9 @@ const Fd = ({
|
|
|
10337
10337
|
] })
|
|
10338
10338
|
] }) }),
|
|
10339
10339
|
/* @__PURE__ */ B.jsx(
|
|
10340
|
-
|
|
10340
|
+
Bn.Content,
|
|
10341
10341
|
{
|
|
10342
|
-
className:
|
|
10342
|
+
className: Ht(
|
|
10343
10343
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
10344
10344
|
r && "CollapsibleContent",
|
|
10345
10345
|
e.items.length === 0 && "hidden",
|
|
@@ -10358,7 +10358,7 @@ const Fd = ({
|
|
|
10358
10358
|
]
|
|
10359
10359
|
}
|
|
10360
10360
|
);
|
|
10361
|
-
}, ns =
|
|
10361
|
+
}, ns = Ii(Fd, Bd);
|
|
10362
10362
|
ns.displayName = "SidebarCategory";
|
|
10363
10363
|
const pn = ki(
|
|
10364
10364
|
"flex items-center gap-2 px-[--padding-nav-item] my-0.5 py-1.5 rounded-lg hover:bg-accent",
|
|
@@ -10382,13 +10382,13 @@ const pn = ki(
|
|
|
10382
10382
|
onRequestClose: t
|
|
10383
10383
|
}) => {
|
|
10384
10384
|
var i;
|
|
10385
|
-
const n =
|
|
10385
|
+
const n = xr(), { activeAnchor: r } = Ur(), [u] = js();
|
|
10386
10386
|
switch (e.type) {
|
|
10387
10387
|
case "category":
|
|
10388
10388
|
return /* @__PURE__ */ B.jsx(ns, { category: e, onRequestClose: t });
|
|
10389
10389
|
case "doc":
|
|
10390
10390
|
return /* @__PURE__ */ B.jsxs(
|
|
10391
|
-
|
|
10391
|
+
Cr,
|
|
10392
10392
|
{
|
|
10393
10393
|
className: ({ isActive: a }) => pn({ isActive: a }),
|
|
10394
10394
|
to: yi(e.id),
|
|
@@ -10443,8 +10443,8 @@ const pn = ki(
|
|
|
10443
10443
|
const n = e.getBoundingClientRect();
|
|
10444
10444
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
10445
10445
|
}, us = () => {
|
|
10446
|
-
const { setActiveAnchor: e } =
|
|
10447
|
-
return
|
|
10446
|
+
const { setActiveAnchor: e } = Ur();
|
|
10447
|
+
return Si(
|
|
10448
10448
|
(n) => {
|
|
10449
10449
|
const r = n.replace(/^#/, ""), u = r.split("/").at(0), i = document.getElementById(decodeURIComponent(r)), a = document.querySelector(
|
|
10450
10450
|
`[${rs}="${u}"]`
|
|
@@ -10454,21 +10454,25 @@ const pn = ki(
|
|
|
10454
10454
|
[e]
|
|
10455
10455
|
);
|
|
10456
10456
|
}, ig = () => {
|
|
10457
|
-
const e =
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
return
|
|
10457
|
+
const e = xr(), t = us(), n = vt(!1);
|
|
10458
|
+
Tt(() => {
|
|
10459
|
+
!e.hash || !n.current || t(e.hash);
|
|
10460
|
+
}, [e.hash, t]), Tt(() => {
|
|
10461
|
+
if (!e.hash) {
|
|
10462
|
+
n.current = !0;
|
|
10463
|
+
return;
|
|
10464
10464
|
}
|
|
10465
|
-
|
|
10465
|
+
const r = new MutationObserver((u, i) => {
|
|
10466
|
+
t(e.hash) && (n.current = !0, i.disconnect());
|
|
10467
|
+
});
|
|
10468
|
+
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
10469
|
+
}, [e.hash, t]);
|
|
10466
10470
|
}, is = (e) => {
|
|
10467
|
-
const t =
|
|
10471
|
+
const t = xr(), n = us(), r = Vs(e.to), [u, i] = r.split("#"), a = (o) => {
|
|
10468
10472
|
var l;
|
|
10469
10473
|
(l = e.onClick) == null || l.call(e, o), !(i !== t.hash.slice(1) || u !== t.pathname) && (o.preventDefault(), n(i));
|
|
10470
10474
|
};
|
|
10471
|
-
return /* @__PURE__ */ B.jsx(
|
|
10475
|
+
return /* @__PURE__ */ B.jsx(Cr, { ...e, onClick: a });
|
|
10472
10476
|
}, Ud = ki("group relative", {
|
|
10473
10477
|
variants: {
|
|
10474
10478
|
level: {
|
|
@@ -10558,7 +10562,7 @@ const pn = ki(
|
|
|
10558
10562
|
}) => /* @__PURE__ */ B.jsx(Yd, { asChild: !0, enabled: n, onClick: r, children: /* @__PURE__ */ B.jsx(
|
|
10559
10563
|
"code",
|
|
10560
10564
|
{
|
|
10561
|
-
className:
|
|
10565
|
+
className: Ht(
|
|
10562
10566
|
"font-mono border p-1 py-0.5 rounded bg-border/50 dark:bg-border/70 [overflow-wrap:anywhere]",
|
|
10563
10567
|
e
|
|
10564
10568
|
),
|
|
@@ -10610,7 +10614,7 @@ function Xd(e) {
|
|
|
10610
10614
|
function Gu(e) {
|
|
10611
10615
|
return e.replace(Qd, "") === "";
|
|
10612
10616
|
}
|
|
10613
|
-
class
|
|
10617
|
+
class rn {
|
|
10614
10618
|
/**
|
|
10615
10619
|
* @param {SchemaType['property']} property
|
|
10616
10620
|
* Property.
|
|
@@ -10625,16 +10629,16 @@ class nn {
|
|
|
10625
10629
|
this.normal = n, this.property = t, r && (this.space = r);
|
|
10626
10630
|
}
|
|
10627
10631
|
}
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10632
|
+
rn.prototype.normal = {};
|
|
10633
|
+
rn.prototype.property = {};
|
|
10634
|
+
rn.prototype.space = void 0;
|
|
10631
10635
|
function as(e, t) {
|
|
10632
10636
|
const n = {}, r = {};
|
|
10633
10637
|
for (const u of e)
|
|
10634
10638
|
Object.assign(n, u.property), Object.assign(r, u.normal);
|
|
10635
|
-
return new
|
|
10639
|
+
return new rn(n, r, t);
|
|
10636
10640
|
}
|
|
10637
|
-
function
|
|
10641
|
+
function pr(e) {
|
|
10638
10642
|
return e.toLowerCase();
|
|
10639
10643
|
}
|
|
10640
10644
|
class Ae {
|
|
@@ -10667,7 +10671,7 @@ const G = st(), oe = st(), ss = st(), w = st(), ue = st(), Et = st(), xe = st();
|
|
|
10667
10671
|
function st() {
|
|
10668
10672
|
return 2 ** ++Kd;
|
|
10669
10673
|
}
|
|
10670
|
-
const
|
|
10674
|
+
const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10671
10675
|
__proto__: null,
|
|
10672
10676
|
boolean: G,
|
|
10673
10677
|
booleanish: oe,
|
|
@@ -10676,9 +10680,9 @@ const gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10676
10680
|
number: w,
|
|
10677
10681
|
overloadedBoolean: ss,
|
|
10678
10682
|
spaceSeparated: ue
|
|
10679
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10683
|
+
}, Symbol.toStringTag, { value: "Module" })), Vn = (
|
|
10680
10684
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
10681
|
-
Object.keys(
|
|
10685
|
+
Object.keys(Er)
|
|
10682
10686
|
);
|
|
10683
10687
|
class zr extends Ae {
|
|
10684
10688
|
/**
|
|
@@ -10697,9 +10701,9 @@ class zr extends Ae {
|
|
|
10697
10701
|
constructor(t, n, r, u) {
|
|
10698
10702
|
let i = -1;
|
|
10699
10703
|
if (super(t, n), Qu(this, "space", u), typeof r == "number")
|
|
10700
|
-
for (; ++i <
|
|
10701
|
-
const a =
|
|
10702
|
-
Qu(this,
|
|
10704
|
+
for (; ++i < Vn.length; ) {
|
|
10705
|
+
const a = Vn[i];
|
|
10706
|
+
Qu(this, Vn[i], (r & Er[a]) === Er[a]);
|
|
10703
10707
|
}
|
|
10704
10708
|
}
|
|
10705
10709
|
}
|
|
@@ -10707,7 +10711,7 @@ zr.prototype.defined = !0;
|
|
|
10707
10711
|
function Qu(e, t, n) {
|
|
10708
10712
|
n && (e[t] = n);
|
|
10709
10713
|
}
|
|
10710
|
-
function
|
|
10714
|
+
function kt(e) {
|
|
10711
10715
|
const t = {}, n = {};
|
|
10712
10716
|
for (const [r, u] of Object.entries(e.properties)) {
|
|
10713
10717
|
const i = new zr(
|
|
@@ -10716,11 +10720,11 @@ function St(e) {
|
|
|
10716
10720
|
u,
|
|
10717
10721
|
e.space
|
|
10718
10722
|
);
|
|
10719
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[
|
|
10723
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[pr(r)] = r, n[pr(i.attribute)] = r;
|
|
10720
10724
|
}
|
|
10721
|
-
return new
|
|
10725
|
+
return new rn(t, n, e.space);
|
|
10722
10726
|
}
|
|
10723
|
-
const os =
|
|
10727
|
+
const os = kt({
|
|
10724
10728
|
properties: {
|
|
10725
10729
|
ariaActiveDescendant: null,
|
|
10726
10730
|
ariaAtomic: oe,
|
|
@@ -10782,7 +10786,7 @@ function ls(e, t) {
|
|
|
10782
10786
|
function cs(e, t) {
|
|
10783
10787
|
return ls(e, t.toLowerCase());
|
|
10784
10788
|
}
|
|
10785
|
-
const $d =
|
|
10789
|
+
const $d = kt({
|
|
10786
10790
|
attributes: {
|
|
10787
10791
|
acceptcharset: "accept-charset",
|
|
10788
10792
|
classname: "class",
|
|
@@ -11143,7 +11147,7 @@ const $d = St({
|
|
|
11143
11147
|
},
|
|
11144
11148
|
space: "html",
|
|
11145
11149
|
transform: cs
|
|
11146
|
-
}), Jd =
|
|
11150
|
+
}), Jd = kt({
|
|
11147
11151
|
attributes: {
|
|
11148
11152
|
accentHeight: "accent-height",
|
|
11149
11153
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -11702,7 +11706,7 @@ const $d = St({
|
|
|
11702
11706
|
},
|
|
11703
11707
|
space: "svg",
|
|
11704
11708
|
transform: ls
|
|
11705
|
-
}), fs =
|
|
11709
|
+
}), fs = kt({
|
|
11706
11710
|
properties: {
|
|
11707
11711
|
xLinkActuate: null,
|
|
11708
11712
|
xLinkArcRole: null,
|
|
@@ -11716,12 +11720,12 @@ const $d = St({
|
|
|
11716
11720
|
transform(e, t) {
|
|
11717
11721
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
11718
11722
|
}
|
|
11719
|
-
}), hs =
|
|
11723
|
+
}), hs = kt({
|
|
11720
11724
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
11721
11725
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
11722
11726
|
space: "xmlns",
|
|
11723
11727
|
transform: cs
|
|
11724
|
-
}), ds =
|
|
11728
|
+
}), ds = kt({
|
|
11725
11729
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
11726
11730
|
space: "xml",
|
|
11727
11731
|
transform(e, t) {
|
|
@@ -11747,7 +11751,7 @@ const $d = St({
|
|
|
11747
11751
|
xmlnsXLink: "xmlnsXlink"
|
|
11748
11752
|
}, em = /[A-Z]/g, Xu = /-[a-z]/g, tm = /^data[-\w.:]+$/i;
|
|
11749
11753
|
function nm(e, t) {
|
|
11750
|
-
const n =
|
|
11754
|
+
const n = pr(t);
|
|
11751
11755
|
let r = t, u = Ae;
|
|
11752
11756
|
if (n in e.normal)
|
|
11753
11757
|
return e.property[e.normal[n]];
|
|
@@ -11773,13 +11777,13 @@ function um(e) {
|
|
|
11773
11777
|
return e.charAt(1).toUpperCase();
|
|
11774
11778
|
}
|
|
11775
11779
|
const im = as([os, $d, fs, hs, ds], "html"), Yr = as([os, Jd, fs, hs, ds], "svg");
|
|
11776
|
-
var ht = {},
|
|
11780
|
+
var ht = {}, Wn, Ku;
|
|
11777
11781
|
function am() {
|
|
11778
|
-
if (Ku) return
|
|
11782
|
+
if (Ku) return Wn;
|
|
11779
11783
|
Ku = 1;
|
|
11780
11784
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
|
|
11781
11785
|
`, c = "/", h = "*", f = "", E = "comment", m = "declaration";
|
|
11782
|
-
|
|
11786
|
+
Wn = function(C, y) {
|
|
11783
11787
|
if (typeof C != "string")
|
|
11784
11788
|
throw new TypeError("First argument must be a string");
|
|
11785
11789
|
if (!C) return [];
|
|
@@ -11819,11 +11823,11 @@ function am() {
|
|
|
11819
11823
|
}
|
|
11820
11824
|
function ee(U) {
|
|
11821
11825
|
var F;
|
|
11822
|
-
for (U = U || []; F =
|
|
11826
|
+
for (U = U || []; F = I(); )
|
|
11823
11827
|
F !== !1 && U.push(F);
|
|
11824
11828
|
return U;
|
|
11825
11829
|
}
|
|
11826
|
-
function
|
|
11830
|
+
function I() {
|
|
11827
11831
|
var U = Y();
|
|
11828
11832
|
if (!(c != C.charAt(0) || h != C.charAt(1))) {
|
|
11829
11833
|
for (var F = 2; f != C.charAt(F) && (h != C.charAt(F) || c != C.charAt(F + 1)); )
|
|
@@ -11840,7 +11844,7 @@ function am() {
|
|
|
11840
11844
|
function v() {
|
|
11841
11845
|
var U = Y(), F = Q(r);
|
|
11842
11846
|
if (F) {
|
|
11843
|
-
if (
|
|
11847
|
+
if (I(), !Q(u)) return k("property missing ':'");
|
|
11844
11848
|
var j = Q(i), le = U({
|
|
11845
11849
|
type: m,
|
|
11846
11850
|
property: A(F[0].replace(e, f)),
|
|
@@ -11861,7 +11865,7 @@ function am() {
|
|
|
11861
11865
|
function A(C) {
|
|
11862
11866
|
return C ? C.replace(o, f) : f;
|
|
11863
11867
|
}
|
|
11864
|
-
return
|
|
11868
|
+
return Wn;
|
|
11865
11869
|
}
|
|
11866
11870
|
var $u;
|
|
11867
11871
|
function sm() {
|
|
@@ -11886,10 +11890,10 @@ function sm() {
|
|
|
11886
11890
|
}
|
|
11887
11891
|
return ht;
|
|
11888
11892
|
}
|
|
11889
|
-
var
|
|
11893
|
+
var Mt = {}, Ju;
|
|
11890
11894
|
function om() {
|
|
11891
|
-
if (Ju) return
|
|
11892
|
-
Ju = 1, Object.defineProperty(
|
|
11895
|
+
if (Ju) return Mt;
|
|
11896
|
+
Ju = 1, Object.defineProperty(Mt, "__esModule", { value: !0 }), Mt.camelCase = void 0;
|
|
11893
11897
|
var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, u = /^-(ms)-/, i = function(c) {
|
|
11894
11898
|
return !c || n.test(c) || e.test(c);
|
|
11895
11899
|
}, a = function(c, h) {
|
|
@@ -11899,13 +11903,13 @@ function om() {
|
|
|
11899
11903
|
}, l = function(c, h) {
|
|
11900
11904
|
return h === void 0 && (h = {}), i(c) ? c : (c = c.toLowerCase(), h.reactCompat ? c = c.replace(u, o) : c = c.replace(r, o), c.replace(t, a));
|
|
11901
11905
|
};
|
|
11902
|
-
return
|
|
11906
|
+
return Mt.camelCase = l, Mt;
|
|
11903
11907
|
}
|
|
11904
|
-
var
|
|
11908
|
+
var Bt, Zu;
|
|
11905
11909
|
function lm() {
|
|
11906
|
-
if (Zu) return
|
|
11910
|
+
if (Zu) return Bt;
|
|
11907
11911
|
Zu = 1;
|
|
11908
|
-
var e =
|
|
11912
|
+
var e = Bt && Bt.__importDefault || function(u) {
|
|
11909
11913
|
return u && u.__esModule ? u : { default: u };
|
|
11910
11914
|
}, t = e(sm()), n = om();
|
|
11911
11915
|
function r(u, i) {
|
|
@@ -11914,18 +11918,18 @@ function lm() {
|
|
|
11914
11918
|
o && l && (a[(0, n.camelCase)(o, i)] = l);
|
|
11915
11919
|
}), a;
|
|
11916
11920
|
}
|
|
11917
|
-
return r.default = r,
|
|
11921
|
+
return r.default = r, Bt = r, Bt;
|
|
11918
11922
|
}
|
|
11919
11923
|
var cm = lm();
|
|
11920
11924
|
const fm = /* @__PURE__ */ Ni(cm);
|
|
11921
|
-
function
|
|
11922
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ei(e.position) : "start" in e || "end" in e ? ei(e) : "line" in e || "column" in e ?
|
|
11925
|
+
function Wt(e) {
|
|
11926
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ei(e.position) : "start" in e || "end" in e ? ei(e) : "line" in e || "column" in e ? gr(e) : "";
|
|
11923
11927
|
}
|
|
11924
|
-
function
|
|
11928
|
+
function gr(e) {
|
|
11925
11929
|
return ti(e && e.line) + ":" + ti(e && e.column);
|
|
11926
11930
|
}
|
|
11927
11931
|
function ei(e) {
|
|
11928
|
-
return
|
|
11932
|
+
return gr(e && e.start) + "-" + gr(e && e.end);
|
|
11929
11933
|
}
|
|
11930
11934
|
function ti(e) {
|
|
11931
11935
|
return e && typeof e == "number" ? e : 1;
|
|
@@ -12001,7 +12005,7 @@ class Ee extends Error {
|
|
|
12001
12005
|
l && (i.place = l.position);
|
|
12002
12006
|
}
|
|
12003
12007
|
const o = i.place && "start" in i.place ? i.place.start : i.place;
|
|
12004
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = u, this.line = o ? o.line : void 0, this.name =
|
|
12008
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = u, this.line = o ? o.line : void 0, this.name = Wt(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
12005
12009
|
}
|
|
12006
12010
|
}
|
|
12007
12011
|
Ee.prototype.file = "";
|
|
@@ -12028,7 +12032,7 @@ function Em(e, t) {
|
|
|
12028
12032
|
throw new TypeError(
|
|
12029
12033
|
"Expected `jsxDEV` in options when `development: true`"
|
|
12030
12034
|
);
|
|
12031
|
-
r =
|
|
12035
|
+
r = Sm(n, t.jsxDEV);
|
|
12032
12036
|
} else {
|
|
12033
12037
|
if (typeof t.jsx != "function")
|
|
12034
12038
|
throw new TypeError("Expected `jsx` in production options");
|
|
@@ -12076,7 +12080,7 @@ function gm(e, t, n) {
|
|
|
12076
12080
|
const r = e.schema;
|
|
12077
12081
|
let u = r;
|
|
12078
12082
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (u = Yr, e.schema = u), e.ancestors.push(t);
|
|
12079
|
-
const i = gs(e, t.tagName, !1), a =
|
|
12083
|
+
const i = gs(e, t.tagName, !1), a = Im(e, t);
|
|
12080
12084
|
let o = Vr(e, t);
|
|
12081
12085
|
return mm.has(t.tagName) && (o = o.filter(function(l) {
|
|
12082
12086
|
return typeof l == "string" ? !Xd(l) : !0;
|
|
@@ -12088,7 +12092,7 @@ function Tm(e, t) {
|
|
|
12088
12092
|
return r.type, /** @type {Child | undefined} */
|
|
12089
12093
|
e.evaluater.evaluateExpression(r.expression);
|
|
12090
12094
|
}
|
|
12091
|
-
|
|
12095
|
+
Kt(e, t.position);
|
|
12092
12096
|
}
|
|
12093
12097
|
function bm(e, t) {
|
|
12094
12098
|
if (t.data && t.data.estree && e.evaluater)
|
|
@@ -12096,7 +12100,7 @@ function bm(e, t) {
|
|
|
12096
12100
|
/** @type {Child | undefined} */
|
|
12097
12101
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
12098
12102
|
);
|
|
12099
|
-
|
|
12103
|
+
Kt(e, t.position);
|
|
12100
12104
|
}
|
|
12101
12105
|
function Am(e, t, n) {
|
|
12102
12106
|
const r = e.schema;
|
|
@@ -12128,7 +12132,7 @@ function xm(e, t, n) {
|
|
|
12128
12132
|
return o ? c(i, a, o) : c(i, a);
|
|
12129
12133
|
}
|
|
12130
12134
|
}
|
|
12131
|
-
function
|
|
12135
|
+
function Sm(e, t) {
|
|
12132
12136
|
return n;
|
|
12133
12137
|
function n(r, u, i, a) {
|
|
12134
12138
|
const o = Array.isArray(i.children), l = Me(r);
|
|
@@ -12146,7 +12150,7 @@ function Im(e, t) {
|
|
|
12146
12150
|
);
|
|
12147
12151
|
}
|
|
12148
12152
|
}
|
|
12149
|
-
function
|
|
12153
|
+
function Im(e, t) {
|
|
12150
12154
|
const n = {};
|
|
12151
12155
|
let r, u;
|
|
12152
12156
|
for (u in t.properties)
|
|
@@ -12181,7 +12185,7 @@ function km(e, t) {
|
|
|
12181
12185
|
e.evaluater.evaluateExpression(o.argument)
|
|
12182
12186
|
);
|
|
12183
12187
|
} else
|
|
12184
|
-
|
|
12188
|
+
Kt(e, t.position);
|
|
12185
12189
|
else {
|
|
12186
12190
|
const u = r.name;
|
|
12187
12191
|
let i;
|
|
@@ -12190,7 +12194,7 @@ function km(e, t) {
|
|
|
12190
12194
|
const o = r.value.data.estree.body[0];
|
|
12191
12195
|
o.type, i = e.evaluater.evaluateExpression(o.expression);
|
|
12192
12196
|
} else
|
|
12193
|
-
|
|
12197
|
+
Kt(e, t.position);
|
|
12194
12198
|
else
|
|
12195
12199
|
i = r.value === null ? !0 : r.value;
|
|
12196
12200
|
n[u] = /** @type {Props[keyof Props]} */
|
|
@@ -12277,9 +12281,9 @@ function gs(e, t, n) {
|
|
|
12277
12281
|
}
|
|
12278
12282
|
if (e.evaluater)
|
|
12279
12283
|
return e.evaluater.evaluateExpression(r);
|
|
12280
|
-
|
|
12284
|
+
Kt(e);
|
|
12281
12285
|
}
|
|
12282
|
-
function
|
|
12286
|
+
function Kt(e, t) {
|
|
12283
12287
|
const n = new Ee(
|
|
12284
12288
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
12285
12289
|
{
|
|
@@ -12305,7 +12309,7 @@ function Lm(e) {
|
|
|
12305
12309
|
function Rm(e) {
|
|
12306
12310
|
return "-" + e.toLowerCase();
|
|
12307
12311
|
}
|
|
12308
|
-
const
|
|
12312
|
+
const Gn = {
|
|
12309
12313
|
action: ["form"],
|
|
12310
12314
|
cite: ["blockquote", "del", "ins", "q"],
|
|
12311
12315
|
data: ["object"],
|
|
@@ -12343,7 +12347,7 @@ function we(e, t, n, r) {
|
|
|
12343
12347
|
for (n && e.splice(t, n); i < r.length; )
|
|
12344
12348
|
a = r.slice(i, i + 1e4), a.unshift(t, 0), e.splice(...a), i += 1e4, t += 1e4;
|
|
12345
12349
|
}
|
|
12346
|
-
function
|
|
12350
|
+
function Ie(e, t) {
|
|
12347
12351
|
return e.length > 0 ? (we(e, e.length, 0, t), e) : t;
|
|
12348
12352
|
}
|
|
12349
12353
|
const ri = {}.hasOwnProperty;
|
|
@@ -12394,7 +12398,7 @@ function Ts(e, t) {
|
|
|
12394
12398
|
function gt(e) {
|
|
12395
12399
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
12396
12400
|
}
|
|
12397
|
-
function
|
|
12401
|
+
function yt(e) {
|
|
12398
12402
|
const t = [];
|
|
12399
12403
|
let n = -1, r = 0, u = 0;
|
|
12400
12404
|
for (; ++n < e.length; ) {
|
|
@@ -12553,17 +12557,17 @@ function vm(e) {
|
|
|
12553
12557
|
)
|
|
12554
12558
|
return;
|
|
12555
12559
|
const Q = t.events.length;
|
|
12556
|
-
let Z = Q, ee,
|
|
12560
|
+
let Z = Q, ee, I;
|
|
12557
12561
|
for (; Z--; )
|
|
12558
12562
|
if (t.events[Z][0] === "exit" && t.events[Z][1].type === "chunkFlow") {
|
|
12559
12563
|
if (ee) {
|
|
12560
|
-
|
|
12564
|
+
I = t.events[Z][1].end;
|
|
12561
12565
|
break;
|
|
12562
12566
|
}
|
|
12563
12567
|
ee = !0;
|
|
12564
12568
|
}
|
|
12565
12569
|
for (x(r), k = Q; k < t.events.length; )
|
|
12566
|
-
t.events[k][1].end = Object.assign({},
|
|
12570
|
+
t.events[k][1].end = Object.assign({}, I), k++;
|
|
12567
12571
|
we(
|
|
12568
12572
|
t.events,
|
|
12569
12573
|
Z + 1,
|
|
@@ -12601,7 +12605,7 @@ function Gr(e, t, n) {
|
|
|
12601
12605
|
}
|
|
12602
12606
|
return t;
|
|
12603
12607
|
}
|
|
12604
|
-
const
|
|
12608
|
+
const Tr = {
|
|
12605
12609
|
name: "attention",
|
|
12606
12610
|
tokenize: zm,
|
|
12607
12611
|
resolveAll: Um
|
|
@@ -12633,27 +12637,27 @@ function Um(e, t) {
|
|
|
12633
12637
|
type: l > 1 ? "strong" : "emphasis",
|
|
12634
12638
|
start: Object.assign({}, a.start),
|
|
12635
12639
|
end: Object.assign({}, o.end)
|
|
12636
|
-
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, o.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c =
|
|
12640
|
+
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, o.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c = Ie(c, [
|
|
12637
12641
|
["enter", e[r][1], t],
|
|
12638
12642
|
["exit", e[r][1], t]
|
|
12639
|
-
])), c =
|
|
12643
|
+
])), c = Ie(c, [
|
|
12640
12644
|
["enter", u, t],
|
|
12641
12645
|
["enter", a, t],
|
|
12642
12646
|
["exit", a, t],
|
|
12643
12647
|
["enter", i, t]
|
|
12644
|
-
]), c =
|
|
12648
|
+
]), c = Ie(
|
|
12645
12649
|
c,
|
|
12646
12650
|
Gr(
|
|
12647
12651
|
t.parser.constructs.insideSpan.null,
|
|
12648
12652
|
e.slice(r + 1, n),
|
|
12649
12653
|
t
|
|
12650
12654
|
)
|
|
12651
|
-
), c =
|
|
12655
|
+
), c = Ie(c, [
|
|
12652
12656
|
["exit", i, t],
|
|
12653
12657
|
["enter", o, t],
|
|
12654
12658
|
["exit", o, t],
|
|
12655
12659
|
["exit", u, t]
|
|
12656
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (h = 2, c =
|
|
12660
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (h = 2, c = Ie(c, [
|
|
12657
12661
|
["enter", e[n][1], t],
|
|
12658
12662
|
["exit", e[n][1], t]
|
|
12659
12663
|
])) : h = 0, we(e, r - 1, n - r + 3, c), n = r + c.length - h - 2;
|
|
@@ -12665,7 +12669,7 @@ function Um(e, t) {
|
|
|
12665
12669
|
return e;
|
|
12666
12670
|
}
|
|
12667
12671
|
function zm(e, t) {
|
|
12668
|
-
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u =
|
|
12672
|
+
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u = _t(r);
|
|
12669
12673
|
let i;
|
|
12670
12674
|
return a;
|
|
12671
12675
|
function a(l) {
|
|
@@ -12674,7 +12678,7 @@ function zm(e, t) {
|
|
|
12674
12678
|
function o(l) {
|
|
12675
12679
|
if (l === i)
|
|
12676
12680
|
return e.consume(l), o;
|
|
12677
|
-
const c = e.exit("attentionSequence"), h =
|
|
12681
|
+
const c = e.exit("attentionSequence"), h = _t(l), f = !h || h === 2 && u || n.includes(l), E = !u || u === 2 && h || n.includes(r);
|
|
12678
12682
|
return c._open = !!(i === 42 ? f : f && (u || !E)), c._close = !!(i === 42 ? E : E && (h || !f)), t(l);
|
|
12679
12683
|
}
|
|
12680
12684
|
}
|
|
@@ -12720,7 +12724,7 @@ function qm(e, t, n) {
|
|
|
12720
12724
|
return n(m);
|
|
12721
12725
|
}
|
|
12722
12726
|
}
|
|
12723
|
-
const
|
|
12727
|
+
const wn = {
|
|
12724
12728
|
tokenize: jm,
|
|
12725
12729
|
partial: !0
|
|
12726
12730
|
};
|
|
@@ -12803,7 +12807,7 @@ function Xm(e, t, n) {
|
|
|
12803
12807
|
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, a = me, h(f));
|
|
12804
12808
|
}
|
|
12805
12809
|
function c(f) {
|
|
12806
|
-
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, a = w0, h) : (e.enter("characterReferenceValue"), i = 7, a =
|
|
12810
|
+
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, a = w0, h) : (e.enter("characterReferenceValue"), i = 7, a = dr, h(f));
|
|
12807
12811
|
}
|
|
12808
12812
|
function h(f) {
|
|
12809
12813
|
if (f === 59 && u) {
|
|
@@ -12879,8 +12883,8 @@ function Km(e, t, n) {
|
|
|
12879
12883
|
}
|
|
12880
12884
|
function q(k, Q, Z) {
|
|
12881
12885
|
let ee = 0;
|
|
12882
|
-
return
|
|
12883
|
-
function
|
|
12886
|
+
return I;
|
|
12887
|
+
function I(j) {
|
|
12884
12888
|
return k.enter("lineEnding"), k.consume(j), k.exit("lineEnding"), v;
|
|
12885
12889
|
}
|
|
12886
12890
|
function v(j) {
|
|
@@ -12912,7 +12916,7 @@ function $m(e, t, n) {
|
|
|
12912
12916
|
return r.parser.lazy[r.now().line] ? n(a) : t(a);
|
|
12913
12917
|
}
|
|
12914
12918
|
}
|
|
12915
|
-
const
|
|
12919
|
+
const Qn = {
|
|
12916
12920
|
name: "codeIndented",
|
|
12917
12921
|
tokenize: Zm
|
|
12918
12922
|
}, Jm = {
|
|
@@ -13107,7 +13111,7 @@ function xs(e, t, n, r, u, i, a, o, l) {
|
|
|
13107
13111
|
return x === 40 || x === 41 || x === 92 ? (e.consume(x), C) : C(x);
|
|
13108
13112
|
}
|
|
13109
13113
|
}
|
|
13110
|
-
function
|
|
13114
|
+
function Ss(e, t, n, r, u, i) {
|
|
13111
13115
|
const a = this;
|
|
13112
13116
|
let o = 0, l;
|
|
13113
13117
|
return c;
|
|
@@ -13131,7 +13135,7 @@ function Is(e, t, n, r, u, i) {
|
|
|
13131
13135
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, f) : f(m);
|
|
13132
13136
|
}
|
|
13133
13137
|
}
|
|
13134
|
-
function
|
|
13138
|
+
function Is(e, t, n, r, u, i) {
|
|
13135
13139
|
let a;
|
|
13136
13140
|
return o;
|
|
13137
13141
|
function o(E) {
|
|
@@ -13167,7 +13171,7 @@ function dp(e, t, n) {
|
|
|
13167
13171
|
return e.enter("definition"), a(m);
|
|
13168
13172
|
}
|
|
13169
13173
|
function a(m) {
|
|
13170
|
-
return
|
|
13174
|
+
return Ss.call(
|
|
13171
13175
|
r,
|
|
13172
13176
|
e,
|
|
13173
13177
|
o,
|
|
@@ -13184,7 +13188,7 @@ function dp(e, t, n) {
|
|
|
13184
13188
|
), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : n(m);
|
|
13185
13189
|
}
|
|
13186
13190
|
function l(m) {
|
|
13187
|
-
return ne(m) ?
|
|
13191
|
+
return ne(m) ? Vt(e, c)(m) : c(m);
|
|
13188
13192
|
}
|
|
13189
13193
|
function c(m) {
|
|
13190
13194
|
return xs(
|
|
@@ -13212,10 +13216,10 @@ function dp(e, t, n) {
|
|
|
13212
13216
|
function mp(e, t, n) {
|
|
13213
13217
|
return r;
|
|
13214
13218
|
function r(o) {
|
|
13215
|
-
return ne(o) ?
|
|
13219
|
+
return ne(o) ? Vt(e, u)(o) : n(o);
|
|
13216
13220
|
}
|
|
13217
13221
|
function u(o) {
|
|
13218
|
-
return
|
|
13222
|
+
return Is(
|
|
13219
13223
|
e,
|
|
13220
13224
|
i,
|
|
13221
13225
|
n,
|
|
@@ -13354,8 +13358,8 @@ const Ap = [
|
|
|
13354
13358
|
"ul"
|
|
13355
13359
|
], oi = ["pre", "script", "style", "textarea"], _p = {
|
|
13356
13360
|
name: "htmlFlow",
|
|
13357
|
-
tokenize:
|
|
13358
|
-
resolveTo:
|
|
13361
|
+
tokenize: Ip,
|
|
13362
|
+
resolveTo: Sp,
|
|
13359
13363
|
concrete: !0
|
|
13360
13364
|
}, Cp = {
|
|
13361
13365
|
tokenize: yp,
|
|
@@ -13364,13 +13368,13 @@ const Ap = [
|
|
|
13364
13368
|
tokenize: kp,
|
|
13365
13369
|
partial: !0
|
|
13366
13370
|
};
|
|
13367
|
-
function
|
|
13371
|
+
function Sp(e) {
|
|
13368
13372
|
let t = e.length;
|
|
13369
13373
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
13370
13374
|
;
|
|
13371
13375
|
return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
|
|
13372
13376
|
}
|
|
13373
|
-
function
|
|
13377
|
+
function Ip(e, t, n) {
|
|
13374
13378
|
const r = this;
|
|
13375
13379
|
let u, i, a, o, l;
|
|
13376
13380
|
return c;
|
|
@@ -13407,10 +13411,10 @@ function Sp(e, t, n) {
|
|
|
13407
13411
|
return b === 62 ? (e.consume(b), r.interrupt ? t : H) : n(b);
|
|
13408
13412
|
}
|
|
13409
13413
|
function O(b) {
|
|
13410
|
-
return K(b) ? (e.consume(b), O) :
|
|
13414
|
+
return K(b) ? (e.consume(b), O) : I(b);
|
|
13411
13415
|
}
|
|
13412
13416
|
function L(b) {
|
|
13413
|
-
return b === 47 ? (e.consume(b),
|
|
13417
|
+
return b === 47 ? (e.consume(b), I) : b === 58 || b === 95 || ge(b) ? (e.consume(b), Y) : K(b) ? (e.consume(b), L) : I(b);
|
|
13414
13418
|
}
|
|
13415
13419
|
function Y(b) {
|
|
13416
13420
|
return b === 45 || b === 46 || b === 58 || b === 95 || me(b) ? (e.consume(b), Y) : q(b);
|
|
@@ -13430,7 +13434,7 @@ function Sp(e, t, n) {
|
|
|
13430
13434
|
function ee(b) {
|
|
13431
13435
|
return b === 47 || b === 62 || K(b) ? L(b) : n(b);
|
|
13432
13436
|
}
|
|
13433
|
-
function
|
|
13437
|
+
function I(b) {
|
|
13434
13438
|
return b === 62 ? (e.consume(b), v) : n(b);
|
|
13435
13439
|
}
|
|
13436
13440
|
function v(b) {
|
|
@@ -13495,7 +13499,7 @@ function kp(e, t, n) {
|
|
|
13495
13499
|
function yp(e, t, n) {
|
|
13496
13500
|
return r;
|
|
13497
13501
|
function r(u) {
|
|
13498
|
-
return e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), e.attempt(
|
|
13502
|
+
return e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), e.attempt(wn, t, n);
|
|
13499
13503
|
}
|
|
13500
13504
|
}
|
|
13501
13505
|
const Np = {
|
|
@@ -13562,10 +13566,10 @@ function Op(e, t, n) {
|
|
|
13562
13566
|
return T === 45 || me(T) ? (e.consume(T), Z) : T === 47 || T === 62 || ne(T) ? ee(T) : n(T);
|
|
13563
13567
|
}
|
|
13564
13568
|
function ee(T) {
|
|
13565
|
-
return T === 47 ? (e.consume(T), le) : T === 58 || T === 95 || ge(T) ? (e.consume(T),
|
|
13569
|
+
return T === 47 ? (e.consume(T), le) : T === 58 || T === 95 || ge(T) ? (e.consume(T), I) : z(T) ? (a = ee, he(T)) : K(T) ? (e.consume(T), ee) : le(T);
|
|
13566
13570
|
}
|
|
13567
|
-
function
|
|
13568
|
-
return T === 45 || T === 46 || T === 58 || T === 95 || me(T) ? (e.consume(T),
|
|
13571
|
+
function I(T) {
|
|
13572
|
+
return T === 45 || T === 46 || T === 58 || T === 95 || me(T) ? (e.consume(T), I) : v(T);
|
|
13569
13573
|
}
|
|
13570
13574
|
function v(T) {
|
|
13571
13575
|
return T === 61 ? (e.consume(T), H) : z(T) ? (a = v, he(T)) : K(T) ? (e.consume(T), v) : ee(T);
|
|
@@ -13649,19 +13653,19 @@ function wp(e, t) {
|
|
|
13649
13653
|
return o = [
|
|
13650
13654
|
["enter", l, t],
|
|
13651
13655
|
["enter", c, t]
|
|
13652
|
-
], o =
|
|
13656
|
+
], o = Ie(o, e.slice(i + 1, i + r + 3)), o = Ie(o, [["enter", h, t]]), o = Ie(
|
|
13653
13657
|
o,
|
|
13654
13658
|
Gr(
|
|
13655
13659
|
t.parser.constructs.insideSpan.null,
|
|
13656
13660
|
e.slice(i + r + 4, a - 3),
|
|
13657
13661
|
t
|
|
13658
13662
|
)
|
|
13659
|
-
), o =
|
|
13663
|
+
), o = Ie(o, [
|
|
13660
13664
|
["exit", h, t],
|
|
13661
13665
|
e[a - 2],
|
|
13662
13666
|
e[a - 1],
|
|
13663
13667
|
["exit", c, t]
|
|
13664
|
-
]), o =
|
|
13668
|
+
]), o = Ie(o, e.slice(a + 1)), o = Ie(o, [["exit", l, t]]), we(e, i, e.length, o), e;
|
|
13665
13669
|
}
|
|
13666
13670
|
function Mp(e, t, n) {
|
|
13667
13671
|
const r = this;
|
|
@@ -13713,7 +13717,7 @@ function Bp(e, t, n) {
|
|
|
13713
13717
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), u;
|
|
13714
13718
|
}
|
|
13715
13719
|
function u(f) {
|
|
13716
|
-
return ne(f) ?
|
|
13720
|
+
return ne(f) ? Vt(e, i)(f) : i(f);
|
|
13717
13721
|
}
|
|
13718
13722
|
function i(f) {
|
|
13719
13723
|
return f === 41 ? h(f) : xs(
|
|
@@ -13729,13 +13733,13 @@ function Bp(e, t, n) {
|
|
|
13729
13733
|
)(f);
|
|
13730
13734
|
}
|
|
13731
13735
|
function a(f) {
|
|
13732
|
-
return ne(f) ?
|
|
13736
|
+
return ne(f) ? Vt(e, l)(f) : h(f);
|
|
13733
13737
|
}
|
|
13734
13738
|
function o(f) {
|
|
13735
13739
|
return n(f);
|
|
13736
13740
|
}
|
|
13737
13741
|
function l(f) {
|
|
13738
|
-
return f === 34 || f === 39 || f === 40 ?
|
|
13742
|
+
return f === 34 || f === 39 || f === 40 ? Is(
|
|
13739
13743
|
e,
|
|
13740
13744
|
c,
|
|
13741
13745
|
n,
|
|
@@ -13745,7 +13749,7 @@ function Bp(e, t, n) {
|
|
|
13745
13749
|
)(f) : h(f);
|
|
13746
13750
|
}
|
|
13747
13751
|
function c(f) {
|
|
13748
|
-
return ne(f) ?
|
|
13752
|
+
return ne(f) ? Vt(e, h)(f) : h(f);
|
|
13749
13753
|
}
|
|
13750
13754
|
function h(f) {
|
|
13751
13755
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
|
@@ -13755,7 +13759,7 @@ function Fp(e, t, n) {
|
|
|
13755
13759
|
const r = this;
|
|
13756
13760
|
return u;
|
|
13757
13761
|
function u(o) {
|
|
13758
|
-
return
|
|
13762
|
+
return Ss.call(
|
|
13759
13763
|
r,
|
|
13760
13764
|
e,
|
|
13761
13765
|
i,
|
|
@@ -13818,7 +13822,7 @@ function Yp(e, t, n) {
|
|
|
13818
13822
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
|
13819
13823
|
}
|
|
13820
13824
|
}
|
|
13821
|
-
const
|
|
13825
|
+
const Xn = {
|
|
13822
13826
|
name: "lineEnding",
|
|
13823
13827
|
tokenize: qp
|
|
13824
13828
|
};
|
|
@@ -13868,7 +13872,7 @@ function Gp(e, t, n) {
|
|
|
13868
13872
|
return o;
|
|
13869
13873
|
function o(m) {
|
|
13870
13874
|
const A = r.containerState.type || (m === 42 || m === 43 || m === 45 ? "listUnordered" : "listOrdered");
|
|
13871
|
-
if (A === "listUnordered" ? !r.containerState.marker || m === r.containerState.marker :
|
|
13875
|
+
if (A === "listUnordered" ? !r.containerState.marker || m === r.containerState.marker : dr(m)) {
|
|
13872
13876
|
if (r.containerState.type || (r.containerState.type = A, e.enter(A, {
|
|
13873
13877
|
_container: !0
|
|
13874
13878
|
})), A === "listUnordered")
|
|
@@ -13879,11 +13883,11 @@ function Gp(e, t, n) {
|
|
|
13879
13883
|
return n(m);
|
|
13880
13884
|
}
|
|
13881
13885
|
function l(m) {
|
|
13882
|
-
return
|
|
13886
|
+
return dr(m) && ++a < 10 ? (e.consume(m), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? m === r.containerState.marker : m === 41 || m === 46) ? (e.exit("listItemValue"), c(m)) : n(m);
|
|
13883
13887
|
}
|
|
13884
13888
|
function c(m) {
|
|
13885
13889
|
return e.enter("listItemMarker"), e.consume(m), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || m, e.check(
|
|
13886
|
-
|
|
13890
|
+
wn,
|
|
13887
13891
|
// Can’t be empty when interrupting.
|
|
13888
13892
|
r.interrupt ? n : h,
|
|
13889
13893
|
e.attempt(
|
|
@@ -13905,7 +13909,7 @@ function Gp(e, t, n) {
|
|
|
13905
13909
|
}
|
|
13906
13910
|
function Qp(e, t, n) {
|
|
13907
13911
|
const r = this;
|
|
13908
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
13912
|
+
return r.containerState._closeFlow = void 0, e.check(wn, u, i);
|
|
13909
13913
|
function u(o) {
|
|
13910
13914
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, J(
|
|
13911
13915
|
e,
|
|
@@ -14007,7 +14011,7 @@ const e1 = {
|
|
|
14007
14011
|
function t1(e) {
|
|
14008
14012
|
const t = this, n = e.attempt(
|
|
14009
14013
|
// Try to parse a blank line.
|
|
14010
|
-
|
|
14014
|
+
wn,
|
|
14011
14015
|
r,
|
|
14012
14016
|
// Try to parse initial flow (essentially, only code).
|
|
14013
14017
|
e.attempt(
|
|
@@ -14171,7 +14175,7 @@ function a1(e, t, n) {
|
|
|
14171
14175
|
let h = t.tokenize.call(c, l);
|
|
14172
14176
|
return t.resolveAll && i.push(t), c;
|
|
14173
14177
|
function f(v) {
|
|
14174
|
-
return a =
|
|
14178
|
+
return a = Ie(a, v), y(), a[a.length - 1] !== null ? [] : (Z(t, 0), c.events = Gr(i, c.events, c), c.events);
|
|
14175
14179
|
}
|
|
14176
14180
|
function E(v, H) {
|
|
14177
14181
|
return o1(m(v), H);
|
|
@@ -14190,7 +14194,7 @@ function a1(e, t, n) {
|
|
|
14190
14194
|
};
|
|
14191
14195
|
}
|
|
14192
14196
|
function C(v) {
|
|
14193
|
-
u[v.line] = v.column,
|
|
14197
|
+
u[v.line] = v.column, I();
|
|
14194
14198
|
}
|
|
14195
14199
|
function y() {
|
|
14196
14200
|
let v;
|
|
@@ -14207,7 +14211,7 @@ function a1(e, t, n) {
|
|
|
14207
14211
|
h = h(v);
|
|
14208
14212
|
}
|
|
14209
14213
|
function O(v) {
|
|
14210
|
-
z(v) ? (r.line++, r.column = 1, r.offset += v === -3 ? 2 : 1,
|
|
14214
|
+
z(v) ? (r.line++, r.column = 1, r.offset += v === -3 ? 2 : 1, I()) : v !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = v;
|
|
14211
14215
|
}
|
|
14212
14216
|
function L(v, H) {
|
|
14213
14217
|
const U = H || {};
|
|
@@ -14232,23 +14236,23 @@ function a1(e, t, n) {
|
|
|
14232
14236
|
ve([F])
|
|
14233
14237
|
) : Ne(F);
|
|
14234
14238
|
function Ne(de) {
|
|
14235
|
-
return
|
|
14236
|
-
function
|
|
14237
|
-
const ot = qe !== null && de[qe], $e = qe !== null && de.null,
|
|
14239
|
+
return Nt;
|
|
14240
|
+
function Nt(qe) {
|
|
14241
|
+
const ot = qe !== null && de[qe], $e = qe !== null && de.null, Mn = [
|
|
14238
14242
|
// To do: add more extension tests.
|
|
14239
14243
|
/* c8 ignore next 2 */
|
|
14240
14244
|
...Array.isArray(ot) ? ot : ot ? [ot] : [],
|
|
14241
14245
|
...Array.isArray($e) ? $e : $e ? [$e] : []
|
|
14242
14246
|
];
|
|
14243
|
-
return ve(
|
|
14247
|
+
return ve(Mn)(qe);
|
|
14244
14248
|
}
|
|
14245
14249
|
}
|
|
14246
14250
|
function ve(de) {
|
|
14247
14251
|
return he = de, ye = 0, de.length === 0 ? le : b(de[ye]);
|
|
14248
14252
|
}
|
|
14249
14253
|
function b(de) {
|
|
14250
|
-
return
|
|
14251
|
-
function
|
|
14254
|
+
return Nt;
|
|
14255
|
+
function Nt(qe) {
|
|
14252
14256
|
return T = ee(), Fe = de, de.partial || (c.currentConstruct = de), de.name && c.parser.constructs.disable.null.includes(de.name) ? Ke() : de.tokenize.call(
|
|
14253
14257
|
// If we do have fields, create an object w/ `context` as its
|
|
14254
14258
|
// prototype.
|
|
@@ -14283,10 +14287,10 @@ function a1(e, t, n) {
|
|
|
14283
14287
|
from: F
|
|
14284
14288
|
};
|
|
14285
14289
|
function le() {
|
|
14286
|
-
r = v, c.previous = H, c.currentConstruct = U, c.events.length = F, o = j,
|
|
14290
|
+
r = v, c.previous = H, c.currentConstruct = U, c.events.length = F, o = j, I();
|
|
14287
14291
|
}
|
|
14288
14292
|
}
|
|
14289
|
-
function
|
|
14293
|
+
function I() {
|
|
14290
14294
|
r.line in u && r.column < 2 && (r.column = u[r.line], r.offset += u[r.line] - 1);
|
|
14291
14295
|
}
|
|
14292
14296
|
}
|
|
@@ -14363,9 +14367,9 @@ const l1 = {
|
|
|
14363
14367
|
}, c1 = {
|
|
14364
14368
|
91: fp
|
|
14365
14369
|
}, f1 = {
|
|
14366
|
-
[-2]:
|
|
14367
|
-
[-1]:
|
|
14368
|
-
32:
|
|
14370
|
+
[-2]: Qn,
|
|
14371
|
+
[-1]: Qn,
|
|
14372
|
+
32: Qn
|
|
14369
14373
|
}, h1 = {
|
|
14370
14374
|
35: gp,
|
|
14371
14375
|
42: En,
|
|
@@ -14379,20 +14383,20 @@ const l1 = {
|
|
|
14379
14383
|
38: _s,
|
|
14380
14384
|
92: As
|
|
14381
14385
|
}, m1 = {
|
|
14382
|
-
[-5]:
|
|
14383
|
-
[-4]:
|
|
14384
|
-
[-3]:
|
|
14386
|
+
[-5]: Xn,
|
|
14387
|
+
[-4]: Xn,
|
|
14388
|
+
[-3]: Xn,
|
|
14385
14389
|
33: Hp,
|
|
14386
14390
|
38: _s,
|
|
14387
|
-
42:
|
|
14391
|
+
42: Tr,
|
|
14388
14392
|
60: [Ym, Np],
|
|
14389
14393
|
91: zp,
|
|
14390
14394
|
92: [pp, As],
|
|
14391
14395
|
93: Qr,
|
|
14392
|
-
95:
|
|
14396
|
+
95: Tr,
|
|
14393
14397
|
96: tp
|
|
14394
14398
|
}, p1 = {
|
|
14395
|
-
null: [
|
|
14399
|
+
null: [Tr, n1]
|
|
14396
14400
|
}, E1 = {
|
|
14397
14401
|
null: [42, 95]
|
|
14398
14402
|
}, g1 = {
|
|
@@ -14474,9 +14478,9 @@ function _1() {
|
|
|
14474
14478
|
}
|
|
14475
14479
|
const C1 = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
14476
14480
|
function x1(e) {
|
|
14477
|
-
return e.replace(C1,
|
|
14481
|
+
return e.replace(C1, S1);
|
|
14478
14482
|
}
|
|
14479
|
-
function
|
|
14483
|
+
function S1(e, t, n) {
|
|
14480
14484
|
if (t)
|
|
14481
14485
|
return t;
|
|
14482
14486
|
if (n.charCodeAt(0) === 35) {
|
|
@@ -14486,7 +14490,7 @@ function I1(e, t, n) {
|
|
|
14486
14490
|
return Wr(n) || e;
|
|
14487
14491
|
}
|
|
14488
14492
|
const Ns = {}.hasOwnProperty;
|
|
14489
|
-
function
|
|
14493
|
+
function I1(e, t, n) {
|
|
14490
14494
|
return typeof t != "string" && (n = t, t = void 0), k1(n)(
|
|
14491
14495
|
A1(
|
|
14492
14496
|
b1(n).document().write(_1()(e, t, !0))
|
|
@@ -14509,7 +14513,7 @@ function k1(e) {
|
|
|
14509
14513
|
codeFencedFenceInfo: a,
|
|
14510
14514
|
codeFencedFenceMeta: a,
|
|
14511
14515
|
codeIndented: i($e, a),
|
|
14512
|
-
codeText: i(
|
|
14516
|
+
codeText: i(Mn, a),
|
|
14513
14517
|
codeTextData: ee,
|
|
14514
14518
|
data: ee,
|
|
14515
14519
|
codeFlowValue: ee,
|
|
@@ -14545,9 +14549,9 @@ function k1(e) {
|
|
|
14545
14549
|
atxHeadingSequence: q,
|
|
14546
14550
|
autolink: l(),
|
|
14547
14551
|
autolinkEmail: qe,
|
|
14548
|
-
autolinkProtocol:
|
|
14552
|
+
autolinkProtocol: Nt,
|
|
14549
14553
|
blockQuote: l(),
|
|
14550
|
-
characterEscapeValue:
|
|
14554
|
+
characterEscapeValue: I,
|
|
14551
14555
|
characterReferenceMarkerHexadecimal: Ke,
|
|
14552
14556
|
characterReferenceMarkerNumeric: Ke,
|
|
14553
14557
|
characterReferenceValue: de,
|
|
@@ -14555,11 +14559,11 @@ function k1(e) {
|
|
|
14555
14559
|
codeFencedFence: C,
|
|
14556
14560
|
codeFencedFenceInfo: m,
|
|
14557
14561
|
codeFencedFenceMeta: A,
|
|
14558
|
-
codeFlowValue:
|
|
14562
|
+
codeFlowValue: I,
|
|
14559
14563
|
codeIndented: l(x),
|
|
14560
14564
|
codeText: l(j),
|
|
14561
|
-
codeTextData:
|
|
14562
|
-
data:
|
|
14565
|
+
codeTextData: I,
|
|
14566
|
+
data: I,
|
|
14563
14567
|
definition: l(),
|
|
14564
14568
|
definitionDestinationString: Y,
|
|
14565
14569
|
definitionLabelString: O,
|
|
@@ -14568,9 +14572,9 @@ function k1(e) {
|
|
|
14568
14572
|
hardBreakEscape: l(H),
|
|
14569
14573
|
hardBreakTrailing: l(H),
|
|
14570
14574
|
htmlFlow: l(U),
|
|
14571
|
-
htmlFlowData:
|
|
14575
|
+
htmlFlowData: I,
|
|
14572
14576
|
htmlText: l(F),
|
|
14573
|
-
htmlTextData:
|
|
14577
|
+
htmlTextData: I,
|
|
14574
14578
|
image: l(he),
|
|
14575
14579
|
label: Fe,
|
|
14576
14580
|
labelText: ye,
|
|
@@ -14654,18 +14658,18 @@ function k1(e) {
|
|
|
14654
14658
|
return M;
|
|
14655
14659
|
}
|
|
14656
14660
|
function u(N, M, V) {
|
|
14657
|
-
let $ = M - 1, te = -1, Le = !1, Je, He,
|
|
14661
|
+
let $ = M - 1, te = -1, Le = !1, Je, He, Ot, Lt;
|
|
14658
14662
|
for (; ++$ <= V; ) {
|
|
14659
14663
|
const _e = N[$];
|
|
14660
14664
|
switch (_e[1].type) {
|
|
14661
14665
|
case "listUnordered":
|
|
14662
14666
|
case "listOrdered":
|
|
14663
14667
|
case "blockQuote": {
|
|
14664
|
-
_e[0] === "enter" ? te++ : te--,
|
|
14668
|
+
_e[0] === "enter" ? te++ : te--, Lt = void 0;
|
|
14665
14669
|
break;
|
|
14666
14670
|
}
|
|
14667
14671
|
case "lineEndingBlank": {
|
|
14668
|
-
_e[0] === "enter" && (Je && !
|
|
14672
|
+
_e[0] === "enter" && (Je && !Lt && !te && !Ot && (Ot = $), Lt = void 0);
|
|
14669
14673
|
break;
|
|
14670
14674
|
}
|
|
14671
14675
|
case "linePrefix":
|
|
@@ -14675,7 +14679,7 @@ function k1(e) {
|
|
|
14675
14679
|
case "listItemPrefixWhitespace":
|
|
14676
14680
|
break;
|
|
14677
14681
|
default:
|
|
14678
|
-
|
|
14682
|
+
Lt = void 0;
|
|
14679
14683
|
}
|
|
14680
14684
|
if (!te && _e[0] === "enter" && _e[1].type === "listItemPrefix" || te === -1 && _e[0] === "exit" && (_e[1].type === "listUnordered" || _e[1].type === "listOrdered")) {
|
|
14681
14685
|
if (Je) {
|
|
@@ -14687,7 +14691,7 @@ function k1(e) {
|
|
|
14687
14691
|
He && (N[He][1].type = "lineEndingBlank", Le = !0), Ue[1].type = "lineEnding", He = lt;
|
|
14688
14692
|
} else if (!(Ue[1].type === "linePrefix" || Ue[1].type === "blockQuotePrefix" || Ue[1].type === "blockQuotePrefixWhitespace" || Ue[1].type === "blockQuoteMarker" || Ue[1].type === "listItemIndent")) break;
|
|
14689
14693
|
}
|
|
14690
|
-
|
|
14694
|
+
Ot && (!He || Ot < He) && (Je._spread = !0), Je.end = Object.assign(
|
|
14691
14695
|
{},
|
|
14692
14696
|
He ? N[He][1].start : _e[1].end
|
|
14693
14697
|
), N.splice(He || $, 0, ["exit", Je, _e[2]]), $++, V++;
|
|
@@ -14700,7 +14704,7 @@ function k1(e) {
|
|
|
14700
14704
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
14701
14705
|
end: void 0
|
|
14702
14706
|
};
|
|
14703
|
-
Je = lt, N.splice($, 0, ["enter", lt, _e[2]]), $++, V++,
|
|
14707
|
+
Je = lt, N.splice($, 0, ["enter", lt, _e[2]]), $++, V++, Ot = void 0, Lt = !0;
|
|
14704
14708
|
}
|
|
14705
14709
|
}
|
|
14706
14710
|
}
|
|
@@ -14736,7 +14740,7 @@ function k1(e) {
|
|
|
14736
14740
|
if ($)
|
|
14737
14741
|
$[0].type !== N.type && (M ? M.call(this, N, $[0]) : ($[1] || fi).call(this, N, $[0]));
|
|
14738
14742
|
else throw new Error(
|
|
14739
|
-
"Cannot close `" + N.type + "` (" +
|
|
14743
|
+
"Cannot close `" + N.type + "` (" + Wt({
|
|
14740
14744
|
start: N.start,
|
|
14741
14745
|
end: N.end
|
|
14742
14746
|
}) + "): it’s not open"
|
|
@@ -14744,7 +14748,7 @@ function k1(e) {
|
|
|
14744
14748
|
V.position.end = je(N.end);
|
|
14745
14749
|
}
|
|
14746
14750
|
function h() {
|
|
14747
|
-
return
|
|
14751
|
+
return Fr(this.stack.pop());
|
|
14748
14752
|
}
|
|
14749
14753
|
function f() {
|
|
14750
14754
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -14814,7 +14818,7 @@ function k1(e) {
|
|
|
14814
14818
|
end: void 0
|
|
14815
14819
|
}, V.push($)), this.stack.push($);
|
|
14816
14820
|
}
|
|
14817
|
-
function
|
|
14821
|
+
function I(N) {
|
|
14818
14822
|
const M = this.stack.pop();
|
|
14819
14823
|
M.value += this.sliceSerialize(N), M.position.end = je(N.end);
|
|
14820
14824
|
}
|
|
@@ -14825,7 +14829,7 @@ function k1(e) {
|
|
|
14825
14829
|
V.position.end = je(N.end), this.data.atHardBreak = void 0;
|
|
14826
14830
|
return;
|
|
14827
14831
|
}
|
|
14828
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (ee.call(this, N),
|
|
14832
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (ee.call(this, N), I.call(this, N));
|
|
14829
14833
|
}
|
|
14830
14834
|
function H() {
|
|
14831
14835
|
this.data.atHardBreak = !0;
|
|
@@ -14905,13 +14909,13 @@ function k1(e) {
|
|
|
14905
14909
|
const te = this.stack.pop();
|
|
14906
14910
|
te.value += $, te.position.end = je(N.end);
|
|
14907
14911
|
}
|
|
14908
|
-
function
|
|
14909
|
-
|
|
14912
|
+
function Nt(N) {
|
|
14913
|
+
I.call(this, N);
|
|
14910
14914
|
const M = this.stack[this.stack.length - 1];
|
|
14911
14915
|
M.url = this.sliceSerialize(N);
|
|
14912
14916
|
}
|
|
14913
14917
|
function qe(N) {
|
|
14914
|
-
|
|
14918
|
+
I.call(this, N);
|
|
14915
14919
|
const M = this.stack[this.stack.length - 1];
|
|
14916
14920
|
M.url = "mailto:" + this.sliceSerialize(N);
|
|
14917
14921
|
}
|
|
@@ -14929,7 +14933,7 @@ function k1(e) {
|
|
|
14929
14933
|
value: ""
|
|
14930
14934
|
};
|
|
14931
14935
|
}
|
|
14932
|
-
function
|
|
14936
|
+
function Mn() {
|
|
14933
14937
|
return {
|
|
14934
14938
|
type: "inlineCode",
|
|
14935
14939
|
value: ""
|
|
@@ -15065,15 +15069,15 @@ function y1(e, t) {
|
|
|
15065
15069
|
}
|
|
15066
15070
|
function fi(e, t) {
|
|
15067
15071
|
throw e ? new Error(
|
|
15068
|
-
"Cannot close `" + e.type + "` (" +
|
|
15072
|
+
"Cannot close `" + e.type + "` (" + Wt({
|
|
15069
15073
|
start: e.start,
|
|
15070
15074
|
end: e.end
|
|
15071
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
15075
|
+
}) + "): a different token (`" + t.type + "`, " + Wt({
|
|
15072
15076
|
start: t.start,
|
|
15073
15077
|
end: t.end
|
|
15074
15078
|
}) + ") is open"
|
|
15075
15079
|
) : new Error(
|
|
15076
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
15080
|
+
"Cannot close document, a token (`" + t.type + "`, " + Wt({
|
|
15077
15081
|
start: t.start,
|
|
15078
15082
|
end: t.end
|
|
15079
15083
|
}) + ") is still open"
|
|
@@ -15083,7 +15087,7 @@ function N1(e) {
|
|
|
15083
15087
|
const t = this;
|
|
15084
15088
|
t.parser = n;
|
|
15085
15089
|
function n(r) {
|
|
15086
|
-
return
|
|
15090
|
+
return I1(r, {
|
|
15087
15091
|
...t.data("settings"),
|
|
15088
15092
|
...e,
|
|
15089
15093
|
// Note: these options are not in the readme.
|
|
@@ -15139,7 +15143,7 @@ function P1(e, t) {
|
|
|
15139
15143
|
return e.patch(t, n), e.applyData(t, n);
|
|
15140
15144
|
}
|
|
15141
15145
|
function w1(e, t) {
|
|
15142
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u =
|
|
15146
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u = yt(r.toLowerCase()), i = e.footnoteOrder.indexOf(r);
|
|
15143
15147
|
let a, o = e.footnoteCounts.get(r);
|
|
15144
15148
|
o === void 0 ? (o = 0, e.footnoteOrder.push(r), a = e.footnoteOrder.length) : a = i + 1, o += 1, e.footnoteCounts.set(r, o);
|
|
15145
15149
|
const l = {
|
|
@@ -15191,13 +15195,13 @@ function F1(e, t) {
|
|
|
15191
15195
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
15192
15196
|
if (!r)
|
|
15193
15197
|
return Ls(e, t);
|
|
15194
|
-
const u = { src:
|
|
15198
|
+
const u = { src: yt(r.url || ""), alt: t.alt };
|
|
15195
15199
|
r.title !== null && r.title !== void 0 && (u.title = r.title);
|
|
15196
15200
|
const i = { type: "element", tagName: "img", properties: u, children: [] };
|
|
15197
15201
|
return e.patch(t, i), e.applyData(t, i);
|
|
15198
15202
|
}
|
|
15199
15203
|
function v1(e, t) {
|
|
15200
|
-
const n = { src:
|
|
15204
|
+
const n = { src: yt(t.url) };
|
|
15201
15205
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
15202
15206
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
15203
15207
|
return e.patch(t, r), e.applyData(t, r);
|
|
@@ -15217,7 +15221,7 @@ function U1(e, t) {
|
|
|
15217
15221
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
15218
15222
|
if (!r)
|
|
15219
15223
|
return Ls(e, t);
|
|
15220
|
-
const u = { href:
|
|
15224
|
+
const u = { href: yt(r.url || "") };
|
|
15221
15225
|
r.title !== null && r.title !== void 0 && (u.title = r.title);
|
|
15222
15226
|
const i = {
|
|
15223
15227
|
type: "element",
|
|
@@ -15228,7 +15232,7 @@ function U1(e, t) {
|
|
|
15228
15232
|
return e.patch(t, i), e.applyData(t, i);
|
|
15229
15233
|
}
|
|
15230
15234
|
function z1(e, t) {
|
|
15231
|
-
const n = { href:
|
|
15235
|
+
const n = { href: yt(t.url) };
|
|
15232
15236
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
15233
15237
|
const r = {
|
|
15234
15238
|
type: "element",
|
|
@@ -15437,12 +15441,12 @@ const eE = {
|
|
|
15437
15441
|
tableRow: X1,
|
|
15438
15442
|
text: J1,
|
|
15439
15443
|
thematicBreak: Z1,
|
|
15440
|
-
toml:
|
|
15441
|
-
yaml:
|
|
15442
|
-
definition:
|
|
15443
|
-
footnoteDefinition:
|
|
15444
|
+
toml: cn,
|
|
15445
|
+
yaml: cn,
|
|
15446
|
+
definition: cn,
|
|
15447
|
+
footnoteDefinition: cn
|
|
15444
15448
|
};
|
|
15445
|
-
function
|
|
15449
|
+
function cn() {
|
|
15446
15450
|
}
|
|
15447
15451
|
function tE(e, t) {
|
|
15448
15452
|
const n = [{ type: "text", value: "↩" }];
|
|
@@ -15465,7 +15469,7 @@ function rE(e) {
|
|
|
15465
15469
|
const c = e.footnoteById.get(e.footnoteOrder[l]);
|
|
15466
15470
|
if (!c)
|
|
15467
15471
|
continue;
|
|
15468
|
-
const h = e.all(c), f = String(c.identifier).toUpperCase(), E =
|
|
15472
|
+
const h = e.all(c), f = String(c.identifier).toUpperCase(), E = yt(f.toLowerCase());
|
|
15469
15473
|
let m = 0;
|
|
15470
15474
|
const A = [], C = e.footnoteCounts.get(f);
|
|
15471
15475
|
for (; C !== void 0 && ++m <= C; ) {
|
|
@@ -15507,7 +15511,7 @@ function rE(e) {
|
|
|
15507
15511
|
type: "element",
|
|
15508
15512
|
tagName: i,
|
|
15509
15513
|
properties: {
|
|
15510
|
-
...
|
|
15514
|
+
...bt(a),
|
|
15511
15515
|
id: "footnote-label"
|
|
15512
15516
|
},
|
|
15513
15517
|
children: [{ type: "text", value: u }]
|
|
@@ -15525,7 +15529,7 @@ function rE(e) {
|
|
|
15525
15529
|
]
|
|
15526
15530
|
};
|
|
15527
15531
|
}
|
|
15528
|
-
const
|
|
15532
|
+
const br = {}.hasOwnProperty, uE = {};
|
|
15529
15533
|
function iE(e, t) {
|
|
15530
15534
|
const n = t || uE, r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = { ...eE, ...n.handlers }, o = {
|
|
15531
15535
|
all: c,
|
|
@@ -15540,7 +15544,7 @@ function iE(e, t) {
|
|
|
15540
15544
|
patch: aE,
|
|
15541
15545
|
wrap: lE
|
|
15542
15546
|
};
|
|
15543
|
-
return
|
|
15547
|
+
return en(e, function(h) {
|
|
15544
15548
|
if (h.type === "definition" || h.type === "footnoteDefinition") {
|
|
15545
15549
|
const f = h.type === "definition" ? r : u, E = String(h.identifier).toUpperCase();
|
|
15546
15550
|
f.has(E) || f.set(E, h);
|
|
@@ -15548,14 +15552,14 @@ function iE(e, t) {
|
|
|
15548
15552
|
}), o;
|
|
15549
15553
|
function l(h, f) {
|
|
15550
15554
|
const E = h.type, m = o.handlers[E];
|
|
15551
|
-
if (
|
|
15555
|
+
if (br.call(o.handlers, E) && m)
|
|
15552
15556
|
return m(o, h, f);
|
|
15553
15557
|
if (o.options.passThrough && o.options.passThrough.includes(E)) {
|
|
15554
15558
|
if ("children" in h) {
|
|
15555
|
-
const { children: C, ...y } = h, x =
|
|
15559
|
+
const { children: C, ...y } = h, x = bt(y);
|
|
15556
15560
|
return x.children = o.all(h), x;
|
|
15557
15561
|
}
|
|
15558
|
-
return
|
|
15562
|
+
return bt(h);
|
|
15559
15563
|
}
|
|
15560
15564
|
return (o.options.unknownHandler || oE)(o, h, f);
|
|
15561
15565
|
}
|
|
@@ -15592,12 +15596,12 @@ function sE(e, t) {
|
|
|
15592
15596
|
const a = "children" in n ? n.children : [n];
|
|
15593
15597
|
n = { type: "element", tagName: r, properties: {}, children: a };
|
|
15594
15598
|
}
|
|
15595
|
-
n.type === "element" && i && Object.assign(n.properties,
|
|
15599
|
+
n.type === "element" && i && Object.assign(n.properties, bt(i)), "children" in n && n.children && u !== null && u !== void 0 && (n.children = u);
|
|
15596
15600
|
}
|
|
15597
15601
|
return n;
|
|
15598
15602
|
}
|
|
15599
15603
|
function oE(e, t) {
|
|
15600
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
15604
|
+
const n = t.data || {}, r = "value" in t && !(br.call(n, "hProperties") || br.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
15601
15605
|
type: "element",
|
|
15602
15606
|
tagName: "div",
|
|
15603
15607
|
properties: {},
|
|
@@ -15644,9 +15648,9 @@ function gi(e) {
|
|
|
15644
15648
|
if (e)
|
|
15645
15649
|
throw e;
|
|
15646
15650
|
}
|
|
15647
|
-
var
|
|
15651
|
+
var Kn, Ti;
|
|
15648
15652
|
function fE() {
|
|
15649
|
-
if (Ti) return
|
|
15653
|
+
if (Ti) return Kn;
|
|
15650
15654
|
Ti = 1;
|
|
15651
15655
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, u = function(c) {
|
|
15652
15656
|
return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
|
|
@@ -15675,18 +15679,18 @@ function fE() {
|
|
|
15675
15679
|
} else return;
|
|
15676
15680
|
return c[h];
|
|
15677
15681
|
};
|
|
15678
|
-
return
|
|
15682
|
+
return Kn = function l() {
|
|
15679
15683
|
var c, h, f, E, m, A, C = arguments[0], y = 1, x = arguments.length, O = !1;
|
|
15680
15684
|
for (typeof C == "boolean" && (O = C, C = arguments[1] || {}, y = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); y < x; ++y)
|
|
15681
15685
|
if (c = arguments[y], c != null)
|
|
15682
15686
|
for (h in c)
|
|
15683
15687
|
f = o(C, h), E = o(c, h), C !== E && (O && E && (i(E) || (m = u(E))) ? (m ? (m = !1, A = f && u(f) ? f : []) : A = f && i(f) ? f : {}, a(C, { name: h, newValue: l(O, A, E) })) : typeof E < "u" && a(C, { name: h, newValue: E }));
|
|
15684
15688
|
return C;
|
|
15685
|
-
},
|
|
15689
|
+
}, Kn;
|
|
15686
15690
|
}
|
|
15687
15691
|
var hE = fE();
|
|
15688
|
-
const
|
|
15689
|
-
function
|
|
15692
|
+
const $n = /* @__PURE__ */ Ni(hE);
|
|
15693
|
+
function Ar(e) {
|
|
15690
15694
|
if (typeof e != "object" || e === null)
|
|
15691
15695
|
return !1;
|
|
15692
15696
|
const t = Object.getPrototypeOf(e);
|
|
@@ -15752,7 +15756,7 @@ const De = { basename: pE, dirname: EE, extname: gE, join: TE, sep: "/" };
|
|
|
15752
15756
|
function pE(e, t) {
|
|
15753
15757
|
if (t !== void 0 && typeof t != "string")
|
|
15754
15758
|
throw new TypeError('"ext" argument must be a string');
|
|
15755
|
-
|
|
15759
|
+
un(e);
|
|
15756
15760
|
let n = 0, r = -1, u = e.length, i;
|
|
15757
15761
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
15758
15762
|
for (; u--; )
|
|
@@ -15778,7 +15782,7 @@ function pE(e, t) {
|
|
|
15778
15782
|
return n === r ? r = a : r < 0 && (r = e.length), e.slice(n, r);
|
|
15779
15783
|
}
|
|
15780
15784
|
function EE(e) {
|
|
15781
|
-
if (
|
|
15785
|
+
if (un(e), e.length === 0)
|
|
15782
15786
|
return ".";
|
|
15783
15787
|
let t = -1, n = e.length, r;
|
|
15784
15788
|
for (; --n; )
|
|
@@ -15791,7 +15795,7 @@ function EE(e) {
|
|
|
15791
15795
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
15792
15796
|
}
|
|
15793
15797
|
function gE(e) {
|
|
15794
|
-
|
|
15798
|
+
un(e);
|
|
15795
15799
|
let t = e.length, n = -1, r = 0, u = -1, i = 0, a;
|
|
15796
15800
|
for (; t--; ) {
|
|
15797
15801
|
const o = e.codePointAt(t);
|
|
@@ -15811,11 +15815,11 @@ function gE(e) {
|
|
|
15811
15815
|
function TE(...e) {
|
|
15812
15816
|
let t = -1, n;
|
|
15813
15817
|
for (; ++t < e.length; )
|
|
15814
|
-
|
|
15818
|
+
un(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
15815
15819
|
return n === void 0 ? "." : bE(n);
|
|
15816
15820
|
}
|
|
15817
15821
|
function bE(e) {
|
|
15818
|
-
|
|
15822
|
+
un(e);
|
|
15819
15823
|
const t = e.codePointAt(0) === 47;
|
|
15820
15824
|
let n = AE(e, !t);
|
|
15821
15825
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
@@ -15851,7 +15855,7 @@ function AE(e, t) {
|
|
|
15851
15855
|
}
|
|
15852
15856
|
return n;
|
|
15853
15857
|
}
|
|
15854
|
-
function
|
|
15858
|
+
function un(e) {
|
|
15855
15859
|
if (typeof e != "string")
|
|
15856
15860
|
throw new TypeError(
|
|
15857
15861
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
@@ -15861,14 +15865,14 @@ const _E = { cwd: CE };
|
|
|
15861
15865
|
function CE() {
|
|
15862
15866
|
return "/";
|
|
15863
15867
|
}
|
|
15864
|
-
function
|
|
15868
|
+
function _r(e) {
|
|
15865
15869
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
15866
15870
|
e.auth === void 0);
|
|
15867
15871
|
}
|
|
15868
15872
|
function xE(e) {
|
|
15869
15873
|
if (typeof e == "string")
|
|
15870
15874
|
e = new URL(e);
|
|
15871
|
-
else if (!
|
|
15875
|
+
else if (!_r(e)) {
|
|
15872
15876
|
const t = new TypeError(
|
|
15873
15877
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
15874
15878
|
);
|
|
@@ -15878,9 +15882,9 @@ function xE(e) {
|
|
|
15878
15882
|
const t = new TypeError("The URL must be of scheme file");
|
|
15879
15883
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
15880
15884
|
}
|
|
15881
|
-
return
|
|
15885
|
+
return SE(e);
|
|
15882
15886
|
}
|
|
15883
|
-
function
|
|
15887
|
+
function SE(e) {
|
|
15884
15888
|
if (e.hostname !== "") {
|
|
15885
15889
|
const r = new TypeError(
|
|
15886
15890
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -15901,7 +15905,7 @@ function IE(e) {
|
|
|
15901
15905
|
}
|
|
15902
15906
|
return decodeURIComponent(t);
|
|
15903
15907
|
}
|
|
15904
|
-
const
|
|
15908
|
+
const Jn = (
|
|
15905
15909
|
/** @type {const} */
|
|
15906
15910
|
[
|
|
15907
15911
|
"history",
|
|
@@ -15937,15 +15941,15 @@ class Ds {
|
|
|
15937
15941
|
*/
|
|
15938
15942
|
constructor(t) {
|
|
15939
15943
|
let n;
|
|
15940
|
-
t ?
|
|
15944
|
+
t ? _r(t) ? n = { path: t } : typeof t == "string" || IE(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : _E.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
15941
15945
|
let r = -1;
|
|
15942
|
-
for (; ++r <
|
|
15943
|
-
const i =
|
|
15946
|
+
for (; ++r < Jn.length; ) {
|
|
15947
|
+
const i = Jn[r];
|
|
15944
15948
|
i in n && n[i] !== void 0 && n[i] !== null && (this[i] = i === "history" ? [...n[i]] : n[i]);
|
|
15945
15949
|
}
|
|
15946
15950
|
let u;
|
|
15947
15951
|
for (u in n)
|
|
15948
|
-
|
|
15952
|
+
Jn.includes(u) || (this[u] = n[u]);
|
|
15949
15953
|
}
|
|
15950
15954
|
/**
|
|
15951
15955
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -15969,7 +15973,7 @@ class Ds {
|
|
|
15969
15973
|
* Nothing.
|
|
15970
15974
|
*/
|
|
15971
15975
|
set basename(t) {
|
|
15972
|
-
|
|
15976
|
+
er(t, "basename"), Zn(t, "basename"), this.path = De.join(this.dirname || "", t);
|
|
15973
15977
|
}
|
|
15974
15978
|
/**
|
|
15975
15979
|
* Get the parent path (example: `'~'`).
|
|
@@ -16015,7 +16019,7 @@ class Ds {
|
|
|
16015
16019
|
* Nothing.
|
|
16016
16020
|
*/
|
|
16017
16021
|
set extname(t) {
|
|
16018
|
-
if (
|
|
16022
|
+
if (Zn(t, "extname"), bi(this.dirname, "extname"), t) {
|
|
16019
16023
|
if (t.codePointAt(0) !== 46)
|
|
16020
16024
|
throw new Error("`extname` must start with `.`");
|
|
16021
16025
|
if (t.includes(".", 1))
|
|
@@ -16045,7 +16049,7 @@ class Ds {
|
|
|
16045
16049
|
* Nothing.
|
|
16046
16050
|
*/
|
|
16047
16051
|
set path(t) {
|
|
16048
|
-
|
|
16052
|
+
_r(t) && (t = xE(t)), er(t, "path"), this.path !== t && this.history.push(t);
|
|
16049
16053
|
}
|
|
16050
16054
|
/**
|
|
16051
16055
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -16069,7 +16073,7 @@ class Ds {
|
|
|
16069
16073
|
* Nothing.
|
|
16070
16074
|
*/
|
|
16071
16075
|
set stem(t) {
|
|
16072
|
-
|
|
16076
|
+
er(t, "stem"), Zn(t, "stem"), this.path = De.join(this.dirname || "", t + (this.extname || ""));
|
|
16073
16077
|
}
|
|
16074
16078
|
// Normal prototypal methods.
|
|
16075
16079
|
/**
|
|
@@ -16282,13 +16286,13 @@ class Ds {
|
|
|
16282
16286
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
16283
16287
|
}
|
|
16284
16288
|
}
|
|
16285
|
-
function
|
|
16289
|
+
function Zn(e, t) {
|
|
16286
16290
|
if (e && e.includes(De.sep))
|
|
16287
16291
|
throw new Error(
|
|
16288
16292
|
"`" + t + "` cannot be a path: did not expect `" + De.sep + "`"
|
|
16289
16293
|
);
|
|
16290
16294
|
}
|
|
16291
|
-
function
|
|
16295
|
+
function er(e, t) {
|
|
16292
16296
|
if (!e)
|
|
16293
16297
|
throw new Error("`" + t + "` cannot be empty");
|
|
16294
16298
|
}
|
|
@@ -16296,7 +16300,7 @@ function bi(e, t) {
|
|
|
16296
16300
|
if (!e)
|
|
16297
16301
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
16298
16302
|
}
|
|
16299
|
-
function
|
|
16303
|
+
function IE(e) {
|
|
16300
16304
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
16301
16305
|
}
|
|
16302
16306
|
const kE = (
|
|
@@ -16349,7 +16353,7 @@ class Xr extends kE {
|
|
|
16349
16353
|
const r = this.attachers[n];
|
|
16350
16354
|
t.use(...r);
|
|
16351
16355
|
}
|
|
16352
|
-
return t.data(
|
|
16356
|
+
return t.data($n(!0, {}, this.namespace)), t;
|
|
16353
16357
|
}
|
|
16354
16358
|
/**
|
|
16355
16359
|
* Configure the processor with info available to all plugins.
|
|
@@ -16411,7 +16415,7 @@ class Xr extends kE {
|
|
|
16411
16415
|
* the entire dataset when getting without key.
|
|
16412
16416
|
*/
|
|
16413
16417
|
data(t, n) {
|
|
16414
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
16418
|
+
return typeof t == "string" ? arguments.length === 2 ? (rr("data", this.frozen), this.namespace[t] = n, this) : yE.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (rr("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
16415
16419
|
}
|
|
16416
16420
|
/**
|
|
16417
16421
|
* Freeze a processor.
|
|
@@ -16464,8 +16468,8 @@ class Xr extends kE {
|
|
|
16464
16468
|
*/
|
|
16465
16469
|
parse(t) {
|
|
16466
16470
|
this.freeze();
|
|
16467
|
-
const n =
|
|
16468
|
-
return
|
|
16471
|
+
const n = fn(t), r = this.parser || this.Parser;
|
|
16472
|
+
return tr("parse", r), r(String(n), n);
|
|
16469
16473
|
}
|
|
16470
16474
|
/**
|
|
16471
16475
|
* Process the given file as configured on the processor.
|
|
@@ -16511,9 +16515,9 @@ class Xr extends kE {
|
|
|
16511
16515
|
*/
|
|
16512
16516
|
process(t, n) {
|
|
16513
16517
|
const r = this;
|
|
16514
|
-
return this.freeze(),
|
|
16518
|
+
return this.freeze(), tr("process", this.parser || this.Parser), nr("process", this.compiler || this.Compiler), n ? u(void 0, n) : new Promise(u);
|
|
16515
16519
|
function u(i, a) {
|
|
16516
|
-
const o =
|
|
16520
|
+
const o = fn(t), l = (
|
|
16517
16521
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
16518
16522
|
/** @type {unknown} */
|
|
16519
16523
|
r.parse(o)
|
|
@@ -16570,7 +16574,7 @@ class Xr extends kE {
|
|
|
16570
16574
|
*/
|
|
16571
16575
|
processSync(t) {
|
|
16572
16576
|
let n = !1, r;
|
|
16573
|
-
return this.freeze(),
|
|
16577
|
+
return this.freeze(), tr("processSync", this.parser || this.Parser), nr("processSync", this.compiler || this.Compiler), this.process(t, u), _i("processSync", "process", n), r;
|
|
16574
16578
|
function u(i, a) {
|
|
16575
16579
|
n = !0, gi(i), r = a;
|
|
16576
16580
|
}
|
|
@@ -16618,7 +16622,7 @@ class Xr extends kE {
|
|
|
16618
16622
|
const u = this.transformers;
|
|
16619
16623
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? i(void 0, r) : new Promise(i);
|
|
16620
16624
|
function i(a, o) {
|
|
16621
|
-
const l =
|
|
16625
|
+
const l = fn(n);
|
|
16622
16626
|
u.run(t, l, c);
|
|
16623
16627
|
function c(h, f, E) {
|
|
16624
16628
|
const m = (
|
|
@@ -16684,8 +16688,8 @@ class Xr extends kE {
|
|
|
16684
16688
|
*/
|
|
16685
16689
|
stringify(t, n) {
|
|
16686
16690
|
this.freeze();
|
|
16687
|
-
const r =
|
|
16688
|
-
return
|
|
16691
|
+
const r = fn(n), u = this.compiler || this.Compiler;
|
|
16692
|
+
return nr("stringify", u), Ai(t), u(t, r);
|
|
16689
16693
|
}
|
|
16690
16694
|
/**
|
|
16691
16695
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -16746,7 +16750,7 @@ class Xr extends kE {
|
|
|
16746
16750
|
*/
|
|
16747
16751
|
use(t, ...n) {
|
|
16748
16752
|
const r = this.attachers, u = this.namespace;
|
|
16749
|
-
if (
|
|
16753
|
+
if (rr("use", this.frozen), t != null) if (typeof t == "function")
|
|
16750
16754
|
l(t, n);
|
|
16751
16755
|
else if (typeof t == "object")
|
|
16752
16756
|
Array.isArray(t) ? o(t) : a(t);
|
|
@@ -16773,7 +16777,7 @@ class Xr extends kE {
|
|
|
16773
16777
|
throw new Error(
|
|
16774
16778
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
16775
16779
|
);
|
|
16776
|
-
o(c.plugins), c.settings && (u.settings =
|
|
16780
|
+
o(c.plugins), c.settings && (u.settings = $n(!0, u.settings, c.settings));
|
|
16777
16781
|
}
|
|
16778
16782
|
function o(c) {
|
|
16779
16783
|
let h = -1;
|
|
@@ -16797,28 +16801,28 @@ class Xr extends kE {
|
|
|
16797
16801
|
else if (h.length > 0) {
|
|
16798
16802
|
let [m, ...A] = h;
|
|
16799
16803
|
const C = r[E][1];
|
|
16800
|
-
|
|
16804
|
+
Ar(C) && Ar(m) && (m = $n(!0, C, m)), r[E] = [c, m, ...A];
|
|
16801
16805
|
}
|
|
16802
16806
|
}
|
|
16803
16807
|
}
|
|
16804
16808
|
}
|
|
16805
16809
|
const NE = new Xr().freeze();
|
|
16806
|
-
function
|
|
16810
|
+
function tr(e, t) {
|
|
16807
16811
|
if (typeof t != "function")
|
|
16808
16812
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
16809
16813
|
}
|
|
16810
|
-
function
|
|
16814
|
+
function nr(e, t) {
|
|
16811
16815
|
if (typeof t != "function")
|
|
16812
16816
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
16813
16817
|
}
|
|
16814
|
-
function
|
|
16818
|
+
function rr(e, t) {
|
|
16815
16819
|
if (t)
|
|
16816
16820
|
throw new Error(
|
|
16817
16821
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
16818
16822
|
);
|
|
16819
16823
|
}
|
|
16820
16824
|
function Ai(e) {
|
|
16821
|
-
if (!
|
|
16825
|
+
if (!Ar(e) || typeof e.type != "string")
|
|
16822
16826
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
16823
16827
|
}
|
|
16824
16828
|
function _i(e, t, n) {
|
|
@@ -16827,7 +16831,7 @@ function _i(e, t, n) {
|
|
|
16827
16831
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
16828
16832
|
);
|
|
16829
16833
|
}
|
|
16830
|
-
function
|
|
16834
|
+
function fn(e) {
|
|
16831
16835
|
return OE(e) ? e : new Ds(e);
|
|
16832
16836
|
}
|
|
16833
16837
|
function OE(e) {
|
|
@@ -16890,7 +16894,7 @@ function ME(e) {
|
|
|
16890
16894
|
tagName: "div",
|
|
16891
16895
|
properties: { className: u },
|
|
16892
16896
|
children: y.type === "root" ? y.children : [y]
|
|
16893
|
-
}),
|
|
16897
|
+
}), en(y, x), Em(y, {
|
|
16894
16898
|
Fragment: B.Fragment,
|
|
16895
16899
|
components: i,
|
|
16896
16900
|
ignoreInvalidStyle: !0,
|
|
@@ -16903,9 +16907,9 @@ function ME(e) {
|
|
|
16903
16907
|
if (O.type === "raw" && Y && typeof L == "number")
|
|
16904
16908
|
return h ? Y.children.splice(L, 1) : Y.children[L] = { type: "text", value: O.value }, L;
|
|
16905
16909
|
if (O.type === "element") {
|
|
16906
|
-
for (const k in
|
|
16907
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
16908
|
-
const Q = O.properties[k], Z =
|
|
16910
|
+
for (const k in Gn)
|
|
16911
|
+
if (Object.prototype.hasOwnProperty.call(Gn, k) && Object.prototype.hasOwnProperty.call(O.properties, k)) {
|
|
16912
|
+
const Q = O.properties[k], Z = Gn[k];
|
|
16909
16913
|
(Z == null || Z.includes(O.tagName)) && (O.properties[k] = E(String(Q || ""), k, O));
|
|
16910
16914
|
}
|
|
16911
16915
|
let q = t ? !t.includes(O.tagName) : a ? a.includes(O.tagName) : !1;
|
|
@@ -16919,10 +16923,10 @@ function BE(e) {
|
|
|
16919
16923
|
return t < 0 || u > -1 && t > u || n > -1 && t > n || r > -1 && t > r || PE.test(e.slice(0, t)) ? e : "";
|
|
16920
16924
|
}
|
|
16921
16925
|
const FE = () => (e) => {
|
|
16922
|
-
|
|
16926
|
+
en(e, "element", (t, n, r) => {
|
|
16923
16927
|
t.tagName === "code" && (t.properties.inline = String((r == null ? void 0 : r.tagName) !== "pre"));
|
|
16924
16928
|
});
|
|
16925
|
-
}, vE = [Jh], HE = [FE, D0], ag = "prose dark:prose-invert prose-neutral", UE =
|
|
16929
|
+
}, vE = [Jh], HE = [FE, D0], ag = "prose dark:prose-invert prose-neutral", UE = Ii(
|
|
16926
16930
|
({ content: e, className: t }) => /* @__PURE__ */ B.jsx(
|
|
16927
16931
|
ME,
|
|
16928
16932
|
{
|
|
@@ -16947,6 +16951,6 @@ export {
|
|
|
16947
16951
|
jd as b,
|
|
16948
16952
|
Yd as c,
|
|
16949
16953
|
Hd as s,
|
|
16950
|
-
|
|
16954
|
+
Ur as u
|
|
16951
16955
|
};
|
|
16952
|
-
//# sourceMappingURL=Markdown-
|
|
16956
|
+
//# sourceMappingURL=Markdown-DIZ8nBVC.js.map
|