@linkdesk/ui 0.2.51 → 0.2.53
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/file-associations-manager/types.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +617 -614
- package/dist/shell-provenance.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Io = Object.defineProperty;
|
|
|
3
3
|
var yo = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ve = (e, t, n) => yo(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
5
|
import { jsx as N, jsxs as $, Fragment as xt } from "react/jsx-runtime";
|
|
6
|
-
import { memo as xo, useMemo as Me, useRef as se, useEffect as ae, useState as re, useCallback as ie, useLayoutEffect as Mn, useId as Uu, isValidElement as So, cloneElement as Lo, forwardRef as Br, useImperativeHandle as Oo, useContext as Do, createContext as Ro, createElement as
|
|
6
|
+
import { memo as xo, useMemo as Me, useRef as se, useEffect as ae, useState as re, useCallback as ie, useLayoutEffect as Mn, useId as Uu, isValidElement as So, cloneElement as Lo, forwardRef as Br, useImperativeHandle as Oo, useContext as Do, createContext as Ro, createElement as Tr } from "react";
|
|
7
7
|
import wo, { createPortal as Fn } from "react-dom";
|
|
8
8
|
import { useTranslation as Ae } from "react-i18next";
|
|
9
9
|
const et = "data-hint", Po = "data-hint-command", vr = "data-hint-delay", Mo = "data-hint-placement";
|
|
@@ -28,14 +28,14 @@ function zu(e, t) {
|
|
|
28
28
|
).trim();
|
|
29
29
|
}
|
|
30
30
|
const Fo = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Bo = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, vo = {};
|
|
31
|
-
function
|
|
31
|
+
function bi(e, t) {
|
|
32
32
|
return (vo.jsx ? Bo : Fo).test(e);
|
|
33
33
|
}
|
|
34
34
|
const Ho = /[ \t\n\f\r]/g;
|
|
35
35
|
function Uo(e) {
|
|
36
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
36
|
+
return typeof e == "object" ? e.type === "text" ? Ti(e.value) : !1 : Ti(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ti(e) {
|
|
39
39
|
return e.replace(Ho, "") === "";
|
|
40
40
|
}
|
|
41
41
|
class nn {
|
|
@@ -1223,7 +1223,7 @@ function Qu(e) {
|
|
|
1223
1223
|
function Ku(e) {
|
|
1224
1224
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1225
1225
|
}
|
|
1226
|
-
var
|
|
1226
|
+
var Tt = {}, Kn, Ci;
|
|
1227
1227
|
function Qo() {
|
|
1228
1228
|
if (Ci) return Kn;
|
|
1229
1229
|
Ci = 1;
|
|
@@ -1267,7 +1267,7 @@ function Qo() {
|
|
|
1267
1267
|
function z() {
|
|
1268
1268
|
U(n);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function T(F) {
|
|
1271
1271
|
var R;
|
|
1272
1272
|
for (F = F || []; R = L(); )
|
|
1273
1273
|
R !== !1 && F.push(R);
|
|
@@ -1301,9 +1301,9 @@ function Qo() {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function J() {
|
|
1303
1303
|
var F = [];
|
|
1304
|
-
|
|
1304
|
+
T(F);
|
|
1305
1305
|
for (var R; R = V(); )
|
|
1306
|
-
R !== !1 && (F.push(R),
|
|
1306
|
+
R !== !1 && (F.push(R), T(F));
|
|
1307
1307
|
return F;
|
|
1308
1308
|
}
|
|
1309
1309
|
return z(), J();
|
|
@@ -1315,12 +1315,12 @@ function Qo() {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
var Ni;
|
|
1317
1317
|
function Ko() {
|
|
1318
|
-
if (Ni) return
|
|
1318
|
+
if (Ni) return Tt;
|
|
1319
1319
|
Ni = 1;
|
|
1320
|
-
var e =
|
|
1320
|
+
var e = Tt && Tt.__importDefault || function(r) {
|
|
1321
1321
|
return r && r.__esModule ? r : { default: r };
|
|
1322
1322
|
};
|
|
1323
|
-
Object.defineProperty(
|
|
1323
|
+
Object.defineProperty(Tt, "__esModule", { value: !0 }), Tt.default = n;
|
|
1324
1324
|
const t = e(Qo());
|
|
1325
1325
|
function n(r, i) {
|
|
1326
1326
|
let u = null;
|
|
@@ -1334,7 +1334,7 @@ function Ko() {
|
|
|
1334
1334
|
s ? i(c, f, l) : f && (u = u || {}, u[c] = f);
|
|
1335
1335
|
}), u;
|
|
1336
1336
|
}
|
|
1337
|
-
return
|
|
1337
|
+
return Tt;
|
|
1338
1338
|
}
|
|
1339
1339
|
var Ft = {}, Ii;
|
|
1340
1340
|
function Xo() {
|
|
@@ -1689,7 +1689,7 @@ function El(e, t, n) {
|
|
|
1689
1689
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1690
1690
|
if (Array.isArray(n) && (n = r.commaSeparated ? zu(n) : Qu(n)), r.property === "style") {
|
|
1691
1691
|
let i = typeof n == "object" ? n : gl(e, String(n));
|
|
1692
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1692
|
+
return e.stylePropertyNameCase === "css" && (i = bl(i)), ["style", i];
|
|
1693
1693
|
}
|
|
1694
1694
|
return [
|
|
1695
1695
|
e.elementAttributeNameCase === "react" && r.space ? qo[r.property] || r.property : r.attribute,
|
|
@@ -1723,7 +1723,7 @@ function na(e, t, n) {
|
|
|
1723
1723
|
const i = t.split(".");
|
|
1724
1724
|
let u = -1, a;
|
|
1725
1725
|
for (; ++u < i.length; ) {
|
|
1726
|
-
const s =
|
|
1726
|
+
const s = bi(i[u]) ? { type: "Identifier", name: i[u] } : { type: "Literal", value: i[u] };
|
|
1727
1727
|
a = a ? {
|
|
1728
1728
|
type: "MemberExpression",
|
|
1729
1729
|
object: a,
|
|
@@ -1734,7 +1734,7 @@ function na(e, t, n) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
r = a;
|
|
1736
1736
|
} else
|
|
1737
|
-
r =
|
|
1737
|
+
r = bi(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
1738
1738
|
if (r.type === "Literal") {
|
|
1739
1739
|
const i = (
|
|
1740
1740
|
/** @type {string | number} */
|
|
@@ -1758,14 +1758,14 @@ function Zt(e, t) {
|
|
|
1758
1758
|
);
|
|
1759
1759
|
throw n.file = e.filePath || void 0, n.url = Zu + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function bl(e) {
|
|
1762
1762
|
const t = {};
|
|
1763
1763
|
let n;
|
|
1764
1764
|
for (n in e)
|
|
1765
|
-
zr.call(e, n) && (t[
|
|
1765
|
+
zr.call(e, n) && (t[Tl(n)] = e[n]);
|
|
1766
1766
|
return t;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Tl(e) {
|
|
1769
1769
|
let t = e.replace(nl, _l);
|
|
1770
1770
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1771
1771
|
}
|
|
@@ -2063,18 +2063,18 @@ function Dl(e) {
|
|
|
2063
2063
|
)
|
|
2064
2064
|
return;
|
|
2065
2065
|
const v = t.events.length;
|
|
2066
|
-
let U = v, z,
|
|
2066
|
+
let U = v, z, T;
|
|
2067
2067
|
for (; U--; )
|
|
2068
2068
|
if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
|
|
2069
2069
|
if (z) {
|
|
2070
|
-
|
|
2070
|
+
T = t.events[U][1].end;
|
|
2071
2071
|
break;
|
|
2072
2072
|
}
|
|
2073
2073
|
z = !0;
|
|
2074
2074
|
}
|
|
2075
2075
|
for (_(r), y = v; y < t.events.length; )
|
|
2076
2076
|
t.events[y][1].end = {
|
|
2077
|
-
...
|
|
2077
|
+
...T
|
|
2078
2078
|
}, y++;
|
|
2079
2079
|
Oe(t.events, U + 1, 0, t.events.slice(v)), t.events.length = y;
|
|
2080
2080
|
}
|
|
@@ -2374,8 +2374,8 @@ function Vl(e, t, n) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
function w(y, v, U) {
|
|
2376
2376
|
let z = 0;
|
|
2377
|
-
return
|
|
2378
|
-
function
|
|
2377
|
+
return T;
|
|
2378
|
+
function T(R) {
|
|
2379
2379
|
return y.enter("lineEnding"), y.consume(R), y.exit("lineEnding"), L;
|
|
2380
2380
|
}
|
|
2381
2381
|
function L(R) {
|
|
@@ -3014,8 +3014,8 @@ const mc = [
|
|
|
3014
3014
|
], Fi = ["pre", "script", "style", "textarea"], pc = {
|
|
3015
3015
|
concrete: !0,
|
|
3016
3016
|
name: "htmlFlow",
|
|
3017
|
-
resolveTo:
|
|
3018
|
-
tokenize:
|
|
3017
|
+
resolveTo: bc,
|
|
3018
|
+
tokenize: Tc
|
|
3019
3019
|
}, Ec = {
|
|
3020
3020
|
partial: !0,
|
|
3021
3021
|
tokenize: Ac
|
|
@@ -3023,13 +3023,13 @@ const mc = [
|
|
|
3023
3023
|
partial: !0,
|
|
3024
3024
|
tokenize: _c
|
|
3025
3025
|
};
|
|
3026
|
-
function
|
|
3026
|
+
function bc(e) {
|
|
3027
3027
|
let t = e.length;
|
|
3028
3028
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
3029
3029
|
;
|
|
3030
3030
|
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;
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Tc(e, t, n) {
|
|
3033
3033
|
const r = this;
|
|
3034
3034
|
let i, u, a, s, l;
|
|
3035
3035
|
return c;
|
|
@@ -3066,10 +3066,10 @@ function bc(e, t, n) {
|
|
|
3066
3066
|
return C === 62 ? (e.consume(C), r.interrupt ? t : V) : n(C);
|
|
3067
3067
|
}
|
|
3068
3068
|
function O(C) {
|
|
3069
|
-
return te(C) ? (e.consume(C), O) :
|
|
3069
|
+
return te(C) ? (e.consume(C), O) : T(C);
|
|
3070
3070
|
}
|
|
3071
3071
|
function x(C) {
|
|
3072
|
-
return C === 47 ? (e.consume(C),
|
|
3072
|
+
return C === 47 ? (e.consume(C), T) : C === 58 || C === 95 || Ne(C) ? (e.consume(C), P) : te(C) ? (e.consume(C), x) : T(C);
|
|
3073
3073
|
}
|
|
3074
3074
|
function P(C) {
|
|
3075
3075
|
return C === 45 || C === 46 || C === 58 || C === 95 || _e(C) ? (e.consume(C), P) : w(C);
|
|
@@ -3089,17 +3089,17 @@ function bc(e, t, n) {
|
|
|
3089
3089
|
function z(C) {
|
|
3090
3090
|
return C === 47 || C === 62 || te(C) ? x(C) : n(C);
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function T(C) {
|
|
3093
3093
|
return C === 62 ? (e.consume(C), L) : n(C);
|
|
3094
3094
|
}
|
|
3095
3095
|
function L(C) {
|
|
3096
3096
|
return C === null || G(C) ? V(C) : te(C) ? (e.consume(C), L) : n(C);
|
|
3097
3097
|
}
|
|
3098
3098
|
function V(C) {
|
|
3099
|
-
return C === 45 && i === 2 ? (e.consume(C), W) : C === 60 && i === 1 ? (e.consume(C), j) : C === 62 && i === 4 ? (e.consume(C), me) : C === 63 && i === 3 ? (e.consume(C), A) : C === 93 && i === 5 ? (e.consume(C), Q) : G(C) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ec,
|
|
3099
|
+
return C === 45 && i === 2 ? (e.consume(C), W) : C === 60 && i === 1 ? (e.consume(C), j) : C === 62 && i === 4 ? (e.consume(C), me) : C === 63 && i === 3 ? (e.consume(C), A) : C === 93 && i === 5 ? (e.consume(C), Q) : G(C) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ec, Te, J)(C)) : C === null || G(C) ? (e.exit("htmlFlowData"), J(C)) : (e.consume(C), V);
|
|
3100
3100
|
}
|
|
3101
3101
|
function J(C) {
|
|
3102
|
-
return e.check(gc, F,
|
|
3102
|
+
return e.check(gc, F, Te)(C);
|
|
3103
3103
|
}
|
|
3104
3104
|
function F(C) {
|
|
3105
3105
|
return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), R;
|
|
@@ -3127,9 +3127,9 @@ function bc(e, t, n) {
|
|
|
3127
3127
|
return C === 62 ? (e.consume(C), me) : C === 45 && i === 2 ? (e.consume(C), A) : V(C);
|
|
3128
3128
|
}
|
|
3129
3129
|
function me(C) {
|
|
3130
|
-
return C === null || G(C) ? (e.exit("htmlFlowData"),
|
|
3130
|
+
return C === null || G(C) ? (e.exit("htmlFlowData"), Te(C)) : (e.consume(C), me);
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function Te(C) {
|
|
3133
3133
|
return e.exit("htmlFlow"), t(C);
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
@@ -3213,10 +3213,10 @@ function Cc(e, t, n) {
|
|
|
3213
3213
|
return A === 45 || _e(A) ? (e.consume(A), U) : A === 47 || A === 62 || ce(A) ? z(A) : n(A);
|
|
3214
3214
|
}
|
|
3215
3215
|
function z(A) {
|
|
3216
|
-
return A === 47 ? (e.consume(A), W) : A === 58 || A === 95 || Ne(A) ? (e.consume(A),
|
|
3216
|
+
return A === 47 ? (e.consume(A), W) : A === 58 || A === 95 || Ne(A) ? (e.consume(A), T) : G(A) ? (a = z, j(A)) : te(A) ? (e.consume(A), z) : W(A);
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return A === 45 || A === 46 || A === 58 || A === 95 || _e(A) ? (e.consume(A),
|
|
3218
|
+
function T(A) {
|
|
3219
|
+
return A === 45 || A === 46 || A === 58 || A === 95 || _e(A) ? (e.consume(A), T) : L(A);
|
|
3220
3220
|
}
|
|
3221
3221
|
function L(A) {
|
|
3222
3222
|
return A === 61 ? (e.consume(A), V) : G(A) ? (a = L, j(A)) : te(A) ? (e.consume(A), L) : z(A);
|
|
@@ -3825,7 +3825,7 @@ function cd(e, t, n) {
|
|
|
3825
3825
|
};
|
|
3826
3826
|
}
|
|
3827
3827
|
function k(L) {
|
|
3828
|
-
i[L.line] = L.column,
|
|
3828
|
+
i[L.line] = L.column, T();
|
|
3829
3829
|
}
|
|
3830
3830
|
function I() {
|
|
3831
3831
|
let L;
|
|
@@ -3842,7 +3842,7 @@ function cd(e, t, n) {
|
|
|
3842
3842
|
f = f(L);
|
|
3843
3843
|
}
|
|
3844
3844
|
function O(L) {
|
|
3845
|
-
G(L) ? (r.line++, r.column = 1, r.offset += L === -3 ? 2 : 1,
|
|
3845
|
+
G(L) ? (r.line++, r.column = 1, r.offset += L === -3 ? 2 : 1, T()) : L !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
3846
3846
|
// strings.
|
|
3847
3847
|
/** @type {string} */
|
|
3848
3848
|
a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = L;
|
|
@@ -3867,33 +3867,33 @@ function cd(e, t, n) {
|
|
|
3867
3867
|
let j, Z, Q, A;
|
|
3868
3868
|
return Array.isArray(F) ? (
|
|
3869
3869
|
/* c8 ignore next 1 */
|
|
3870
|
-
|
|
3870
|
+
Te(F)
|
|
3871
3871
|
) : "tokenize" in F ? (
|
|
3872
3872
|
// Looks like a construct.
|
|
3873
|
-
|
|
3873
|
+
Te([
|
|
3874
3874
|
/** @type {Construct} */
|
|
3875
3875
|
F
|
|
3876
3876
|
])
|
|
3877
3877
|
) : me(F);
|
|
3878
|
-
function me(
|
|
3878
|
+
function me(be) {
|
|
3879
3879
|
return wt;
|
|
3880
3880
|
function wt(je) {
|
|
3881
|
-
const Et = je !== null &&
|
|
3881
|
+
const Et = je !== null && be[je], gt = je !== null && be.null, fn = [
|
|
3882
3882
|
// To do: add more extension tests.
|
|
3883
3883
|
/* c8 ignore next 2 */
|
|
3884
3884
|
...Array.isArray(Et) ? Et : Et ? [Et] : [],
|
|
3885
3885
|
...Array.isArray(gt) ? gt : gt ? [gt] : []
|
|
3886
3886
|
];
|
|
3887
|
-
return
|
|
3887
|
+
return Te(fn)(je);
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
function be
|
|
3891
|
-
return j =
|
|
3890
|
+
function Te(be) {
|
|
3891
|
+
return j = be, Z = 0, be.length === 0 ? W : C(be[Z]);
|
|
3892
3892
|
}
|
|
3893
|
-
function C(
|
|
3893
|
+
function C(be) {
|
|
3894
3894
|
return wt;
|
|
3895
3895
|
function wt(je) {
|
|
3896
|
-
return A = z(), Q =
|
|
3896
|
+
return A = z(), Q = be, be.partial || (c.currentConstruct = be), be.name && c.parser.constructs.disable.null.includes(be.name) ? rt() : be.tokenize.call(
|
|
3897
3897
|
// If we do have fields, create an object w/ `context` as its
|
|
3898
3898
|
// prototype.
|
|
3899
3899
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -3904,10 +3904,10 @@ function cd(e, t, n) {
|
|
|
3904
3904
|
)(je);
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
3907
|
-
function we(
|
|
3907
|
+
function we(be) {
|
|
3908
3908
|
return L(Q, A), R;
|
|
3909
3909
|
}
|
|
3910
|
-
function rt(
|
|
3910
|
+
function rt(be) {
|
|
3911
3911
|
return A.restore(), ++Z < j.length ? C(j[Z]) : W;
|
|
3912
3912
|
}
|
|
3913
3913
|
}
|
|
@@ -3922,10 +3922,10 @@ function cd(e, t, n) {
|
|
|
3922
3922
|
restore: W
|
|
3923
3923
|
};
|
|
3924
3924
|
function W() {
|
|
3925
|
-
r = L, c.previous = V, c.currentConstruct = J, c.events.length = F, s = R,
|
|
3925
|
+
r = L, c.previous = V, c.currentConstruct = J, c.events.length = F, s = R, T();
|
|
3926
3926
|
}
|
|
3927
3927
|
}
|
|
3928
|
-
function
|
|
3928
|
+
function T() {
|
|
3929
3929
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3930
3930
|
}
|
|
3931
3931
|
}
|
|
@@ -4048,9 +4048,9 @@ function pd() {
|
|
|
4048
4048
|
}
|
|
4049
4049
|
const Ed = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4050
4050
|
function gd(e) {
|
|
4051
|
-
return e.replace(Ed,
|
|
4051
|
+
return e.replace(Ed, bd);
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function bd(e, t, n) {
|
|
4054
4054
|
if (t)
|
|
4055
4055
|
return t;
|
|
4056
4056
|
if (n.charCodeAt(0) === 35) {
|
|
@@ -4060,7 +4060,7 @@ function Td(e, t, n) {
|
|
|
4060
4060
|
return Wr(n) || e;
|
|
4061
4061
|
}
|
|
4062
4062
|
const pa = {}.hasOwnProperty;
|
|
4063
|
-
function
|
|
4063
|
+
function Td(e, t, n) {
|
|
4064
4064
|
return t && typeof t == "object" && (n = t, t = void 0), _d(n)(md(hd(n).document().write(pd()(e, t, !0))));
|
|
4065
4065
|
}
|
|
4066
4066
|
function _d(e) {
|
|
@@ -4087,14 +4087,14 @@ function _d(e) {
|
|
|
4087
4087
|
definitionDestinationString: a,
|
|
4088
4088
|
definitionLabelString: a,
|
|
4089
4089
|
definitionTitleString: a,
|
|
4090
|
-
emphasis: u(
|
|
4090
|
+
emphasis: u(bo),
|
|
4091
4091
|
hardBreakEscape: u(hi),
|
|
4092
4092
|
hardBreakTrailing: u(hi),
|
|
4093
4093
|
htmlFlow: u(mi, a),
|
|
4094
4094
|
htmlFlowData: z,
|
|
4095
4095
|
htmlText: u(mi, a),
|
|
4096
4096
|
htmlTextData: z,
|
|
4097
|
-
image: u(
|
|
4097
|
+
image: u(To),
|
|
4098
4098
|
label: a,
|
|
4099
4099
|
link: u(pi),
|
|
4100
4100
|
listItem: u(_o),
|
|
@@ -4117,20 +4117,20 @@ function _d(e) {
|
|
|
4117
4117
|
autolinkEmail: Et,
|
|
4118
4118
|
autolinkProtocol: je,
|
|
4119
4119
|
blockQuote: l(),
|
|
4120
|
-
characterEscapeValue:
|
|
4120
|
+
characterEscapeValue: T,
|
|
4121
4121
|
characterReferenceMarkerHexadecimal: rt,
|
|
4122
4122
|
characterReferenceMarkerNumeric: rt,
|
|
4123
|
-
characterReferenceValue:
|
|
4123
|
+
characterReferenceValue: be,
|
|
4124
4124
|
characterReference: wt,
|
|
4125
4125
|
codeFenced: l(I),
|
|
4126
4126
|
codeFencedFence: k,
|
|
4127
4127
|
codeFencedFenceInfo: h,
|
|
4128
4128
|
codeFencedFenceMeta: p,
|
|
4129
|
-
codeFlowValue:
|
|
4129
|
+
codeFlowValue: T,
|
|
4130
4130
|
codeIndented: l(_),
|
|
4131
4131
|
codeText: l(R),
|
|
4132
|
-
codeTextData:
|
|
4133
|
-
data:
|
|
4132
|
+
codeTextData: T,
|
|
4133
|
+
data: T,
|
|
4134
4134
|
definition: l(),
|
|
4135
4135
|
definitionDestinationString: P,
|
|
4136
4136
|
definitionLabelString: O,
|
|
@@ -4139,9 +4139,9 @@ function _d(e) {
|
|
|
4139
4139
|
hardBreakEscape: l(V),
|
|
4140
4140
|
hardBreakTrailing: l(V),
|
|
4141
4141
|
htmlFlow: l(J),
|
|
4142
|
-
htmlFlowData:
|
|
4142
|
+
htmlFlowData: T,
|
|
4143
4143
|
htmlText: l(F),
|
|
4144
|
-
htmlTextData:
|
|
4144
|
+
htmlTextData: T,
|
|
4145
4145
|
image: l(j),
|
|
4146
4146
|
label: Q,
|
|
4147
4147
|
labelText: Z,
|
|
@@ -4154,7 +4154,7 @@ function _d(e) {
|
|
|
4154
4154
|
referenceString: we,
|
|
4155
4155
|
resourceDestinationString: A,
|
|
4156
4156
|
resourceTitleString: me,
|
|
4157
|
-
resource:
|
|
4157
|
+
resource: Te,
|
|
4158
4158
|
setextHeading: l(U),
|
|
4159
4159
|
setextHeadingLineSequence: v,
|
|
4160
4160
|
setextHeadingText: y,
|
|
@@ -4240,25 +4240,25 @@ function _d(e) {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
if (!oe && Se[0] === "enter" && Se[1].type === "listItemPrefix" || oe === -1 && Se[0] === "exit" && (Se[1].type === "listUnordered" || Se[1].type === "listOrdered")) {
|
|
4242
4242
|
if (it) {
|
|
4243
|
-
let
|
|
4244
|
-
for (Ve = void 0;
|
|
4245
|
-
const qe = M[
|
|
4243
|
+
let bt = ne;
|
|
4244
|
+
for (Ve = void 0; bt--; ) {
|
|
4245
|
+
const qe = M[bt];
|
|
4246
4246
|
if (qe[1].type === "lineEnding" || qe[1].type === "lineEndingBlank") {
|
|
4247
4247
|
if (qe[0] === "exit") continue;
|
|
4248
|
-
Ve && (M[Ve][1].type = "lineEndingBlank", Pe = !0), qe[1].type = "lineEnding", Ve =
|
|
4248
|
+
Ve && (M[Ve][1].type = "lineEndingBlank", Pe = !0), qe[1].type = "lineEnding", Ve = bt;
|
|
4249
4249
|
} else if (!(qe[1].type === "linePrefix" || qe[1].type === "blockQuotePrefix" || qe[1].type === "blockQuotePrefixWhitespace" || qe[1].type === "blockQuoteMarker" || qe[1].type === "listItemIndent")) break;
|
|
4250
4250
|
}
|
|
4251
4251
|
Pt && (!Ve || Pt < Ve) && (it._spread = !0), it.end = Object.assign({}, Ve ? M[Ve][1].start : Se[1].end), M.splice(Ve || ne, 0, ["exit", it, Se[2]]), ne++, X++;
|
|
4252
4252
|
}
|
|
4253
4253
|
if (Se[1].type === "listItemPrefix") {
|
|
4254
|
-
const
|
|
4254
|
+
const bt = {
|
|
4255
4255
|
type: "listItem",
|
|
4256
4256
|
_spread: !1,
|
|
4257
4257
|
start: Object.assign({}, Se[1].start),
|
|
4258
4258
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4259
4259
|
end: void 0
|
|
4260
4260
|
};
|
|
4261
|
-
it =
|
|
4261
|
+
it = bt, M.splice(ne, 0, ["enter", bt, Se[2]]), ne++, X++, Pt = void 0, Mt = !0;
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
@@ -4368,7 +4368,7 @@ function _d(e) {
|
|
|
4368
4368
|
end: void 0
|
|
4369
4369
|
}, X.push(ne)), this.stack.push(ne);
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function T(M) {
|
|
4372
4372
|
const q = this.stack.pop();
|
|
4373
4373
|
q.value += this.sliceSerialize(M), q.position.end = Ge(M.end);
|
|
4374
4374
|
}
|
|
@@ -4379,7 +4379,7 @@ function _d(e) {
|
|
|
4379
4379
|
X.position.end = Ge(M.end), this.data.atHardBreak = void 0;
|
|
4380
4380
|
return;
|
|
4381
4381
|
}
|
|
4382
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(q.type) && (z.call(this, M),
|
|
4382
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(q.type) && (z.call(this, M), T.call(this, M));
|
|
4383
4383
|
}
|
|
4384
4384
|
function V() {
|
|
4385
4385
|
this.data.atHardBreak = !0;
|
|
@@ -4434,7 +4434,7 @@ function _d(e) {
|
|
|
4434
4434
|
const M = this.resume(), q = this.stack[this.stack.length - 1];
|
|
4435
4435
|
q.title = M;
|
|
4436
4436
|
}
|
|
4437
|
-
function
|
|
4437
|
+
function Te() {
|
|
4438
4438
|
this.data.inReference = void 0;
|
|
4439
4439
|
}
|
|
4440
4440
|
function C() {
|
|
@@ -4447,7 +4447,7 @@ function _d(e) {
|
|
|
4447
4447
|
function rt(M) {
|
|
4448
4448
|
this.data.characterReferenceType = M.type;
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4450
|
+
function be(M) {
|
|
4451
4451
|
const q = this.sliceSerialize(M), X = this.data.characterReferenceType;
|
|
4452
4452
|
let ne;
|
|
4453
4453
|
X ? (ne = ua(q, X === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ne = Wr(q);
|
|
@@ -4459,12 +4459,12 @@ function _d(e) {
|
|
|
4459
4459
|
q.position.end = Ge(M.end);
|
|
4460
4460
|
}
|
|
4461
4461
|
function je(M) {
|
|
4462
|
-
|
|
4462
|
+
T.call(this, M);
|
|
4463
4463
|
const q = this.stack[this.stack.length - 1];
|
|
4464
4464
|
q.url = this.sliceSerialize(M);
|
|
4465
4465
|
}
|
|
4466
4466
|
function Et(M) {
|
|
4467
|
-
|
|
4467
|
+
T.call(this, M);
|
|
4468
4468
|
const q = this.stack[this.stack.length - 1];
|
|
4469
4469
|
q.url = "mailto:" + this.sliceSerialize(M);
|
|
4470
4470
|
}
|
|
@@ -4497,7 +4497,7 @@ function _d(e) {
|
|
|
4497
4497
|
url: ""
|
|
4498
4498
|
};
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function bo() {
|
|
4501
4501
|
return {
|
|
4502
4502
|
type: "emphasis",
|
|
4503
4503
|
children: []
|
|
@@ -4522,7 +4522,7 @@ function _d(e) {
|
|
|
4522
4522
|
value: ""
|
|
4523
4523
|
};
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function To() {
|
|
4526
4526
|
return {
|
|
4527
4527
|
type: "image",
|
|
4528
4528
|
title: null,
|
|
@@ -4632,7 +4632,7 @@ function kd(e) {
|
|
|
4632
4632
|
const t = this;
|
|
4633
4633
|
t.parser = n;
|
|
4634
4634
|
function n(r) {
|
|
4635
|
-
return
|
|
4635
|
+
return Td(r, {
|
|
4636
4636
|
...t.data("settings"),
|
|
4637
4637
|
...e,
|
|
4638
4638
|
// Note: these options are not in the readme.
|
|
@@ -4788,7 +4788,7 @@ function Md(e, t) {
|
|
|
4788
4788
|
return e.patch(t, r), e.applyData(t, r);
|
|
4789
4789
|
}
|
|
4790
4790
|
function Fd(e, t, n) {
|
|
4791
|
-
const r = e.all(t), i = n ? Bd(n) :
|
|
4791
|
+
const r = e.all(t), i = n ? Bd(n) : ba(t), u = {}, a = [];
|
|
4792
4792
|
if (typeof t.checked == "boolean") {
|
|
4793
4793
|
const f = r[0];
|
|
4794
4794
|
let d;
|
|
@@ -4818,11 +4818,11 @@ function Bd(e) {
|
|
|
4818
4818
|
const n = e.children;
|
|
4819
4819
|
let r = -1;
|
|
4820
4820
|
for (; !t && ++r < n.length; )
|
|
4821
|
-
t =
|
|
4821
|
+
t = ba(n[r]);
|
|
4822
4822
|
}
|
|
4823
4823
|
return t;
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function ba(e) {
|
|
4826
4826
|
const t = e.spread;
|
|
4827
4827
|
return t ?? e.children.length > 1;
|
|
4828
4828
|
}
|
|
@@ -4993,7 +4993,7 @@ const Gd = {
|
|
|
4993
4993
|
};
|
|
4994
4994
|
function hn() {
|
|
4995
4995
|
}
|
|
4996
|
-
const
|
|
4996
|
+
const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, Aa = 8, { defineProperty: Qd } = Object, ka = typeof self == "object" ? self : globalThis, Vi = (e, t) => {
|
|
4997
4997
|
switch (e) {
|
|
4998
4998
|
case "Function":
|
|
4999
4999
|
case "SharedWorker":
|
|
@@ -5011,7 +5011,7 @@ const ba = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
|
|
|
5011
5011
|
const [u, a] = t[i];
|
|
5012
5012
|
switch (u) {
|
|
5013
5013
|
case zn:
|
|
5014
|
-
case
|
|
5014
|
+
case Ta:
|
|
5015
5015
|
return n(a, i);
|
|
5016
5016
|
case Wt: {
|
|
5017
5017
|
const s = n([], i);
|
|
@@ -5121,7 +5121,7 @@ const ba = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
|
|
|
5121
5121
|
f = null;
|
|
5122
5122
|
break;
|
|
5123
5123
|
case "undefined":
|
|
5124
|
-
return i([
|
|
5124
|
+
return i([Ta], a);
|
|
5125
5125
|
}
|
|
5126
5126
|
return i([s, f], a);
|
|
5127
5127
|
}
|
|
@@ -5510,7 +5510,7 @@ function ji(e, t) {
|
|
|
5510
5510
|
return i && u.children.push({ type: "text", value: `
|
|
5511
5511
|
` }, i), u;
|
|
5512
5512
|
}
|
|
5513
|
-
function
|
|
5513
|
+
function b0(e, t) {
|
|
5514
5514
|
return e && "run" in e ? async function(n, r) {
|
|
5515
5515
|
const i = (
|
|
5516
5516
|
/** @type {HastRoot} */
|
|
@@ -5529,7 +5529,7 @@ function Gi(e) {
|
|
|
5529
5529
|
throw e;
|
|
5530
5530
|
}
|
|
5531
5531
|
var er, Qi;
|
|
5532
|
-
function
|
|
5532
|
+
function T0() {
|
|
5533
5533
|
if (Qi) return er;
|
|
5534
5534
|
Qi = 1;
|
|
5535
5535
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(c) {
|
|
@@ -5568,7 +5568,7 @@ function b0() {
|
|
|
5568
5568
|
return k;
|
|
5569
5569
|
}, er;
|
|
5570
5570
|
}
|
|
5571
|
-
var _0 =
|
|
5571
|
+
var _0 = T0();
|
|
5572
5572
|
const tr = /* @__PURE__ */ Ku(_0);
|
|
5573
5573
|
function xr(e) {
|
|
5574
5574
|
if (typeof e != "object" || e === null)
|
|
@@ -6763,7 +6763,7 @@ function V0(e) {
|
|
|
6763
6763
|
}
|
|
6764
6764
|
function q0(e) {
|
|
6765
6765
|
const t = e.rehypePlugins || Zi, n = e.remarkPlugins || Zi, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...eu } : eu;
|
|
6766
|
-
return F0().use(kd).use(n).use(
|
|
6766
|
+
return F0().use(kd).use(n).use(b0, r).use(t);
|
|
6767
6767
|
}
|
|
6768
6768
|
function W0(e) {
|
|
6769
6769
|
const t = e.children || "", n = new Ia();
|
|
@@ -7034,13 +7034,13 @@ function Ef(e) {
|
|
|
7034
7034
|
function gf(e) {
|
|
7035
7035
|
this.exit(e);
|
|
7036
7036
|
}
|
|
7037
|
-
function
|
|
7037
|
+
function bf(e) {
|
|
7038
7038
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
7039
7039
|
n.type, n.identifier = Fe(
|
|
7040
7040
|
this.sliceSerialize(e)
|
|
7041
7041
|
).toLowerCase(), n.label = t;
|
|
7042
7042
|
}
|
|
7043
|
-
function
|
|
7043
|
+
function Tf(e) {
|
|
7044
7044
|
this.exit(e);
|
|
7045
7045
|
}
|
|
7046
7046
|
function _f() {
|
|
@@ -7065,8 +7065,8 @@ function Af() {
|
|
|
7065
7065
|
exit: {
|
|
7066
7066
|
gfmFootnoteCallString: Ef,
|
|
7067
7067
|
gfmFootnoteCall: gf,
|
|
7068
|
-
gfmFootnoteDefinitionLabelString:
|
|
7069
|
-
gfmFootnoteDefinition:
|
|
7068
|
+
gfmFootnoteDefinitionLabelString: bf,
|
|
7069
|
+
gfmFootnoteDefinition: Tf
|
|
7070
7070
|
}
|
|
7071
7071
|
};
|
|
7072
7072
|
}
|
|
@@ -7955,7 +7955,7 @@ function gh(e) {
|
|
|
7955
7955
|
return k.stack.includes("tableCell") && (I = I.replace(/\|/g, "\\$&")), I;
|
|
7956
7956
|
}
|
|
7957
7957
|
}
|
|
7958
|
-
function
|
|
7958
|
+
function bh() {
|
|
7959
7959
|
return {
|
|
7960
7960
|
exit: {
|
|
7961
7961
|
taskListCheckValueChecked: su,
|
|
@@ -7964,7 +7964,7 @@ function Th() {
|
|
|
7964
7964
|
}
|
|
7965
7965
|
};
|
|
7966
7966
|
}
|
|
7967
|
-
function
|
|
7967
|
+
function Th() {
|
|
7968
7968
|
return {
|
|
7969
7969
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7970
7970
|
handlers: { listItem: Ah }
|
|
@@ -8013,7 +8013,7 @@ function kh() {
|
|
|
8013
8013
|
Af(),
|
|
8014
8014
|
If(),
|
|
8015
8015
|
dh(),
|
|
8016
|
-
|
|
8016
|
+
bh()
|
|
8017
8017
|
];
|
|
8018
8018
|
}
|
|
8019
8019
|
function Ch(e) {
|
|
@@ -8023,7 +8023,7 @@ function Ch(e) {
|
|
|
8023
8023
|
kf(e),
|
|
8024
8024
|
yf(),
|
|
8025
8025
|
gh(e),
|
|
8026
|
-
|
|
8026
|
+
Th()
|
|
8027
8027
|
]
|
|
8028
8028
|
};
|
|
8029
8029
|
}
|
|
@@ -8565,7 +8565,7 @@ function Qh(e, t, n) {
|
|
|
8565
8565
|
const r = this;
|
|
8566
8566
|
let i = 0, u = 0, a;
|
|
8567
8567
|
return s;
|
|
8568
|
-
function s(
|
|
8568
|
+
function s(T) {
|
|
8569
8569
|
let L = r.events.length - 1;
|
|
8570
8570
|
for (; L > -1; ) {
|
|
8571
8571
|
const F = r.events[L][1].type;
|
|
@@ -8574,61 +8574,61 @@ function Qh(e, t, n) {
|
|
|
8574
8574
|
else break;
|
|
8575
8575
|
}
|
|
8576
8576
|
const V = L > -1 ? r.events[L][1].type : null, J = V === "tableHead" || V === "tableRow" ? y : l;
|
|
8577
|
-
return J === y && r.parser.lazy[r.now().line] ? n(
|
|
8577
|
+
return J === y && r.parser.lazy[r.now().line] ? n(T) : J(T);
|
|
8578
8578
|
}
|
|
8579
|
-
function l(
|
|
8580
|
-
return e.enter("tableHead"), e.enter("tableRow"), c(
|
|
8579
|
+
function l(T) {
|
|
8580
|
+
return e.enter("tableHead"), e.enter("tableRow"), c(T);
|
|
8581
8581
|
}
|
|
8582
|
-
function c(
|
|
8583
|
-
return
|
|
8582
|
+
function c(T) {
|
|
8583
|
+
return T === 124 || (a = !0, u += 1), f(T);
|
|
8584
8584
|
}
|
|
8585
|
-
function f(
|
|
8586
|
-
return
|
|
8585
|
+
function f(T) {
|
|
8586
|
+
return T === null ? n(T) : G(T) ? u > 1 ? (u = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), h) : n(T) : te(T) ? ue(e, f, "whitespace")(T) : (u += 1, a && (a = !1, i += 1), T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), a = !0, f) : (e.enter("data"), d(T)));
|
|
8587
8587
|
}
|
|
8588
|
-
function d(
|
|
8589
|
-
return
|
|
8588
|
+
function d(T) {
|
|
8589
|
+
return T === null || T === 124 || ce(T) ? (e.exit("data"), f(T)) : (e.consume(T), T === 92 ? m : d);
|
|
8590
8590
|
}
|
|
8591
|
-
function m(
|
|
8592
|
-
return
|
|
8591
|
+
function m(T) {
|
|
8592
|
+
return T === 92 || T === 124 ? (e.consume(T), d) : d(T);
|
|
8593
8593
|
}
|
|
8594
|
-
function h(
|
|
8595
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
8594
|
+
function h(T) {
|
|
8595
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(T) : (e.enter("tableDelimiterRow"), a = !1, te(T) ? ue(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : p(T));
|
|
8596
8596
|
}
|
|
8597
|
-
function p(
|
|
8598
|
-
return
|
|
8597
|
+
function p(T) {
|
|
8598
|
+
return T === 45 || T === 58 ? I(T) : T === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), k) : w(T);
|
|
8599
8599
|
}
|
|
8600
|
-
function k(
|
|
8601
|
-
return te(
|
|
8600
|
+
function k(T) {
|
|
8601
|
+
return te(T) ? ue(e, I, "whitespace")(T) : I(T);
|
|
8602
8602
|
}
|
|
8603
|
-
function I(
|
|
8604
|
-
return
|
|
8603
|
+
function I(T) {
|
|
8604
|
+
return T === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), _) : T === 45 ? (u += 1, _(T)) : T === null || G(T) ? P(T) : w(T);
|
|
8605
8605
|
}
|
|
8606
|
-
function _(
|
|
8607
|
-
return
|
|
8606
|
+
function _(T) {
|
|
8607
|
+
return T === 45 ? (e.enter("tableDelimiterFiller"), O(T)) : w(T);
|
|
8608
8608
|
}
|
|
8609
|
-
function O(
|
|
8610
|
-
return
|
|
8609
|
+
function O(T) {
|
|
8610
|
+
return T === 45 ? (e.consume(T), O) : T === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(T));
|
|
8611
8611
|
}
|
|
8612
|
-
function x(
|
|
8613
|
-
return te(
|
|
8612
|
+
function x(T) {
|
|
8613
|
+
return te(T) ? ue(e, P, "whitespace")(T) : P(T);
|
|
8614
8614
|
}
|
|
8615
|
-
function P(
|
|
8616
|
-
return
|
|
8615
|
+
function P(T) {
|
|
8616
|
+
return T === 124 ? p(T) : T === null || G(T) ? !a || i !== u ? w(T) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(T)) : w(T);
|
|
8617
8617
|
}
|
|
8618
|
-
function w(
|
|
8619
|
-
return n(
|
|
8618
|
+
function w(T) {
|
|
8619
|
+
return n(T);
|
|
8620
8620
|
}
|
|
8621
|
-
function y(
|
|
8622
|
-
return e.enter("tableRow"), v(
|
|
8621
|
+
function y(T) {
|
|
8622
|
+
return e.enter("tableRow"), v(T);
|
|
8623
8623
|
}
|
|
8624
|
-
function v(
|
|
8625
|
-
return
|
|
8624
|
+
function v(T) {
|
|
8625
|
+
return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), v) : T === null || G(T) ? (e.exit("tableRow"), t(T)) : te(T) ? ue(e, v, "whitespace")(T) : (e.enter("data"), U(T));
|
|
8626
8626
|
}
|
|
8627
|
-
function U(
|
|
8628
|
-
return
|
|
8627
|
+
function U(T) {
|
|
8628
|
+
return T === null || T === 124 || ce(T) ? (e.exit("data"), v(T)) : (e.consume(T), T === 92 ? z : U);
|
|
8629
8629
|
}
|
|
8630
|
-
function z(
|
|
8631
|
-
return
|
|
8630
|
+
function z(T) {
|
|
8631
|
+
return T === 92 || T === 124 ? (e.consume(T), U) : U(T);
|
|
8632
8632
|
}
|
|
8633
8633
|
}
|
|
8634
8634
|
function Kh(e, t) {
|
|
@@ -9089,8 +9089,8 @@ function Nt(e) {
|
|
|
9089
9089
|
function fu(e) {
|
|
9090
9090
|
return e.line && e.column ? e : void 0;
|
|
9091
9091
|
}
|
|
9092
|
-
const gm = {},
|
|
9093
|
-
function
|
|
9092
|
+
const gm = {}, bm = {}.hasOwnProperty, Za = Oa("type", { handlers: { root: _m, element: Im, text: Cm, comment: Nm, doctype: km } });
|
|
9093
|
+
function Tm(e, t) {
|
|
9094
9094
|
const r = (t || gm).space;
|
|
9095
9095
|
return Za(e, r === "svg" ? tt : rn);
|
|
9096
9096
|
}
|
|
@@ -9141,7 +9141,7 @@ function Im(e, t) {
|
|
|
9141
9141
|
let u;
|
|
9142
9142
|
if (e.properties) {
|
|
9143
9143
|
for (u in e.properties)
|
|
9144
|
-
if (u !== "children" &&
|
|
9144
|
+
if (u !== "children" && bm.call(e.properties, u)) {
|
|
9145
9145
|
const l = ym(
|
|
9146
9146
|
r,
|
|
9147
9147
|
u,
|
|
@@ -12063,7 +12063,7 @@ var Ue;
|
|
|
12063
12063
|
(function(e) {
|
|
12064
12064
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
12065
12065
|
})(Ue || (Ue = {}));
|
|
12066
|
-
const
|
|
12066
|
+
const bu = { type: Ue.Marker };
|
|
12067
12067
|
class t1 {
|
|
12068
12068
|
constructor(t) {
|
|
12069
12069
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
@@ -12100,7 +12100,7 @@ class t1 {
|
|
|
12100
12100
|
}
|
|
12101
12101
|
//Mutations
|
|
12102
12102
|
insertMarker() {
|
|
12103
|
-
this.entries.unshift(
|
|
12103
|
+
this.entries.unshift(bu);
|
|
12104
12104
|
}
|
|
12105
12105
|
pushElement(t, n) {
|
|
12106
12106
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
|
@@ -12127,7 +12127,7 @@ class t1 {
|
|
|
12127
12127
|
* @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
|
|
12128
12128
|
*/
|
|
12129
12129
|
clearToLastMarker() {
|
|
12130
|
-
const t = this.entries.indexOf(
|
|
12130
|
+
const t = this.entries.indexOf(bu);
|
|
12131
12131
|
t === -1 ? this.entries.length = 0 : this.entries.splice(0, t + 1);
|
|
12132
12132
|
}
|
|
12133
12133
|
//Search
|
|
@@ -12365,7 +12365,7 @@ const Xe = {
|
|
|
12365
12365
|
"-//w3c//dtd html 4.01 frameset//",
|
|
12366
12366
|
"-//w3c//dtd html 4.01 transitional//"
|
|
12367
12367
|
];
|
|
12368
|
-
function
|
|
12368
|
+
function Tu(e, t) {
|
|
12369
12369
|
return t.some((n) => e.startsWith(n));
|
|
12370
12370
|
}
|
|
12371
12371
|
function s1(e) {
|
|
@@ -12382,9 +12382,9 @@ function o1(e) {
|
|
|
12382
12382
|
if (n = n.toLowerCase(), u1.has(n))
|
|
12383
12383
|
return Re.QUIRKS;
|
|
12384
12384
|
let r = t === null ? i1 : ss;
|
|
12385
|
-
if (
|
|
12385
|
+
if (Tu(n, r))
|
|
12386
12386
|
return Re.QUIRKS;
|
|
12387
|
-
if (r = t === null ? os : a1,
|
|
12387
|
+
if (r = t === null ? os : a1, Tu(n, r))
|
|
12388
12388
|
return Re.LIMITED_QUIRKS;
|
|
12389
12389
|
}
|
|
12390
12390
|
return Re.NO_QUIRKS;
|
|
@@ -12576,7 +12576,7 @@ function E1(e) {
|
|
|
12576
12576
|
function g1(e, t) {
|
|
12577
12577
|
return t === B.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
|
|
12578
12578
|
}
|
|
12579
|
-
function
|
|
12579
|
+
function b1(e, t, n) {
|
|
12580
12580
|
if (t === B.MATHML && e === o.ANNOTATION_XML) {
|
|
12581
12581
|
for (let r = 0; r < n.length; r++)
|
|
12582
12582
|
if (n[r].name === dt.ENCODING) {
|
|
@@ -12586,14 +12586,14 @@ function T1(e, t, n) {
|
|
|
12586
12586
|
}
|
|
12587
12587
|
return t === B.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
|
|
12588
12588
|
}
|
|
12589
|
-
function
|
|
12590
|
-
return (!r || r === B.HTML) &&
|
|
12589
|
+
function T1(e, t, n, r) {
|
|
12590
|
+
return (!r || r === B.HTML) && b1(e, t, n) || (!r || r === B.MATHML) && g1(e, t);
|
|
12591
12591
|
}
|
|
12592
12592
|
const _1 = "hidden", A1 = 8, k1 = 3;
|
|
12593
|
-
var
|
|
12593
|
+
var b;
|
|
12594
12594
|
(function(e) {
|
|
12595
12595
|
e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET";
|
|
12596
|
-
})(
|
|
12596
|
+
})(b || (b = {}));
|
|
12597
12597
|
const C1 = {
|
|
12598
12598
|
startLine: -1,
|
|
12599
12599
|
startCol: -1,
|
|
@@ -12609,7 +12609,7 @@ const C1 = {
|
|
|
12609
12609
|
};
|
|
12610
12610
|
class ku {
|
|
12611
12611
|
constructor(t, n, r = null, i = null) {
|
|
12612
|
-
this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode =
|
|
12612
|
+
this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = b.INITIAL, this.originalInsertionMode = b.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 = {
|
|
12613
12613
|
...Au,
|
|
12614
12614
|
...t
|
|
12615
12615
|
}, 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 jm(this.options, this), this.activeFormattingElements = new t1(this.treeAdapter), this.fragmentContextID = r ? Dt(this.treeAdapter.getTagName(r)) : o.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new e1(this.document, this.treeAdapter, this);
|
|
@@ -12626,7 +12626,7 @@ class ku {
|
|
|
12626
12626
|
};
|
|
12627
12627
|
t ?? (t = r.treeAdapter.createElement(S.TEMPLATE, B.HTML, []));
|
|
12628
12628
|
const i = r.treeAdapter.createElement("documentmock", B.HTML, []), u = new this(r, i, t);
|
|
12629
|
-
return u.fragmentContextID === o.TEMPLATE && u.tmplInsertionModeStack.unshift(
|
|
12629
|
+
return u.fragmentContextID === o.TEMPLATE && u.tmplInsertionModeStack.unshift(b.IN_TEMPLATE), u._initTokenizerForFragmentParsing(), u._insertFakeRootElement(), u._resetInsertionMode(), u._findFormInFragmentContext(), u;
|
|
12630
12630
|
}
|
|
12631
12631
|
getFragment() {
|
|
12632
12632
|
const t = this.treeAdapter.getFirstChild(this.document), n = this.treeAdapter.createDocumentFragment();
|
|
@@ -12669,10 +12669,10 @@ class ku {
|
|
|
12669
12669
|
}
|
|
12670
12670
|
/** @protected */
|
|
12671
12671
|
_switchToTextParsing(t, n) {
|
|
12672
|
-
this._insertElement(t, B.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode =
|
|
12672
|
+
this._insertElement(t, B.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = b.TEXT;
|
|
12673
12673
|
}
|
|
12674
12674
|
switchToPlaintextParsing() {
|
|
12675
|
-
this.insertionMode =
|
|
12675
|
+
this.insertionMode = b.TEXT, this.originalInsertionMode = b.IN_BODY, this.tokenizer.state = fe.PLAINTEXT;
|
|
12676
12676
|
}
|
|
12677
12677
|
//Fragment parsing
|
|
12678
12678
|
/** @protected */
|
|
@@ -12865,7 +12865,7 @@ class ku {
|
|
|
12865
12865
|
/** @protected */
|
|
12866
12866
|
_isIntegrationPoint(t, n, r) {
|
|
12867
12867
|
const i = this.treeAdapter.getNamespaceURI(n), u = this.treeAdapter.getAttrList(n);
|
|
12868
|
-
return
|
|
12868
|
+
return T1(t, i, u, r);
|
|
12869
12869
|
}
|
|
12870
12870
|
//Active formatting elements reconstruction
|
|
12871
12871
|
/** @protected */
|
|
@@ -12882,7 +12882,7 @@ class ku {
|
|
|
12882
12882
|
//Close elements
|
|
12883
12883
|
/** @protected */
|
|
12884
12884
|
_closeTableCell() {
|
|
12885
|
-
this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode =
|
|
12885
|
+
this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = b.IN_ROW;
|
|
12886
12886
|
}
|
|
12887
12887
|
/** @protected */
|
|
12888
12888
|
_closePElement() {
|
|
@@ -12894,33 +12894,33 @@ class ku {
|
|
|
12894
12894
|
for (let t = this.openElements.stackTop; t >= 0; t--)
|
|
12895
12895
|
switch (t === 0 && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[t]) {
|
|
12896
12896
|
case o.TR: {
|
|
12897
|
-
this.insertionMode =
|
|
12897
|
+
this.insertionMode = b.IN_ROW;
|
|
12898
12898
|
return;
|
|
12899
12899
|
}
|
|
12900
12900
|
case o.TBODY:
|
|
12901
12901
|
case o.THEAD:
|
|
12902
12902
|
case o.TFOOT: {
|
|
12903
|
-
this.insertionMode =
|
|
12903
|
+
this.insertionMode = b.IN_TABLE_BODY;
|
|
12904
12904
|
return;
|
|
12905
12905
|
}
|
|
12906
12906
|
case o.CAPTION: {
|
|
12907
|
-
this.insertionMode =
|
|
12907
|
+
this.insertionMode = b.IN_CAPTION;
|
|
12908
12908
|
return;
|
|
12909
12909
|
}
|
|
12910
12910
|
case o.COLGROUP: {
|
|
12911
|
-
this.insertionMode =
|
|
12911
|
+
this.insertionMode = b.IN_COLUMN_GROUP;
|
|
12912
12912
|
return;
|
|
12913
12913
|
}
|
|
12914
12914
|
case o.TABLE: {
|
|
12915
|
-
this.insertionMode =
|
|
12915
|
+
this.insertionMode = b.IN_TABLE;
|
|
12916
12916
|
return;
|
|
12917
12917
|
}
|
|
12918
12918
|
case o.BODY: {
|
|
12919
|
-
this.insertionMode =
|
|
12919
|
+
this.insertionMode = b.IN_BODY;
|
|
12920
12920
|
return;
|
|
12921
12921
|
}
|
|
12922
12922
|
case o.FRAMESET: {
|
|
12923
|
-
this.insertionMode =
|
|
12923
|
+
this.insertionMode = b.IN_FRAMESET;
|
|
12924
12924
|
return;
|
|
12925
12925
|
}
|
|
12926
12926
|
case o.SELECT: {
|
|
@@ -12932,26 +12932,26 @@ class ku {
|
|
|
12932
12932
|
return;
|
|
12933
12933
|
}
|
|
12934
12934
|
case o.HTML: {
|
|
12935
|
-
this.insertionMode = this.headElement ?
|
|
12935
|
+
this.insertionMode = this.headElement ? b.AFTER_HEAD : b.BEFORE_HEAD;
|
|
12936
12936
|
return;
|
|
12937
12937
|
}
|
|
12938
12938
|
case o.TD:
|
|
12939
12939
|
case o.TH: {
|
|
12940
12940
|
if (t > 0) {
|
|
12941
|
-
this.insertionMode =
|
|
12941
|
+
this.insertionMode = b.IN_CELL;
|
|
12942
12942
|
return;
|
|
12943
12943
|
}
|
|
12944
12944
|
break;
|
|
12945
12945
|
}
|
|
12946
12946
|
case o.HEAD: {
|
|
12947
12947
|
if (t > 0) {
|
|
12948
|
-
this.insertionMode =
|
|
12948
|
+
this.insertionMode = b.IN_HEAD;
|
|
12949
12949
|
return;
|
|
12950
12950
|
}
|
|
12951
12951
|
break;
|
|
12952
12952
|
}
|
|
12953
12953
|
}
|
|
12954
|
-
this.insertionMode =
|
|
12954
|
+
this.insertionMode = b.IN_BODY;
|
|
12955
12955
|
}
|
|
12956
12956
|
/** @protected */
|
|
12957
12957
|
_resetInsertionModeForSelect(t) {
|
|
@@ -12961,11 +12961,11 @@ class ku {
|
|
|
12961
12961
|
if (r === o.TEMPLATE)
|
|
12962
12962
|
break;
|
|
12963
12963
|
if (r === o.TABLE) {
|
|
12964
|
-
this.insertionMode =
|
|
12964
|
+
this.insertionMode = b.IN_SELECT_IN_TABLE;
|
|
12965
12965
|
return;
|
|
12966
12966
|
}
|
|
12967
12967
|
}
|
|
12968
|
-
this.insertionMode =
|
|
12968
|
+
this.insertionMode = b.IN_SELECT;
|
|
12969
12969
|
}
|
|
12970
12970
|
//Foster parenting
|
|
12971
12971
|
/** @protected */
|
|
@@ -13012,62 +13012,62 @@ class ku {
|
|
|
13012
13012
|
return;
|
|
13013
13013
|
}
|
|
13014
13014
|
switch (this.insertionMode) {
|
|
13015
|
-
case
|
|
13015
|
+
case b.INITIAL: {
|
|
13016
13016
|
Ut(this, t);
|
|
13017
13017
|
break;
|
|
13018
13018
|
}
|
|
13019
|
-
case
|
|
13019
|
+
case b.BEFORE_HTML: {
|
|
13020
13020
|
$t(this, t);
|
|
13021
13021
|
break;
|
|
13022
13022
|
}
|
|
13023
|
-
case
|
|
13023
|
+
case b.BEFORE_HEAD: {
|
|
13024
13024
|
jt(this, t);
|
|
13025
13025
|
break;
|
|
13026
13026
|
}
|
|
13027
|
-
case
|
|
13027
|
+
case b.IN_HEAD: {
|
|
13028
13028
|
Gt(this, t);
|
|
13029
13029
|
break;
|
|
13030
13030
|
}
|
|
13031
|
-
case
|
|
13031
|
+
case b.IN_HEAD_NO_SCRIPT: {
|
|
13032
13032
|
Qt(this, t);
|
|
13033
13033
|
break;
|
|
13034
13034
|
}
|
|
13035
|
-
case
|
|
13035
|
+
case b.AFTER_HEAD: {
|
|
13036
13036
|
Kt(this, t);
|
|
13037
13037
|
break;
|
|
13038
13038
|
}
|
|
13039
|
-
case
|
|
13040
|
-
case
|
|
13041
|
-
case
|
|
13042
|
-
case
|
|
13039
|
+
case b.IN_BODY:
|
|
13040
|
+
case b.IN_CAPTION:
|
|
13041
|
+
case b.IN_CELL:
|
|
13042
|
+
case b.IN_TEMPLATE: {
|
|
13043
13043
|
hs(this, t);
|
|
13044
13044
|
break;
|
|
13045
13045
|
}
|
|
13046
|
-
case
|
|
13047
|
-
case
|
|
13048
|
-
case
|
|
13046
|
+
case b.TEXT:
|
|
13047
|
+
case b.IN_SELECT:
|
|
13048
|
+
case b.IN_SELECT_IN_TABLE: {
|
|
13049
13049
|
this._insertCharacters(t);
|
|
13050
13050
|
break;
|
|
13051
13051
|
}
|
|
13052
|
-
case
|
|
13053
|
-
case
|
|
13054
|
-
case
|
|
13052
|
+
case b.IN_TABLE:
|
|
13053
|
+
case b.IN_TABLE_BODY:
|
|
13054
|
+
case b.IN_ROW: {
|
|
13055
13055
|
hr(this, t);
|
|
13056
13056
|
break;
|
|
13057
13057
|
}
|
|
13058
|
-
case
|
|
13059
|
-
|
|
13058
|
+
case b.IN_TABLE_TEXT: {
|
|
13059
|
+
Ts(this, t);
|
|
13060
13060
|
break;
|
|
13061
13061
|
}
|
|
13062
|
-
case
|
|
13062
|
+
case b.IN_COLUMN_GROUP: {
|
|
13063
13063
|
Dn(this, t);
|
|
13064
13064
|
break;
|
|
13065
13065
|
}
|
|
13066
|
-
case
|
|
13066
|
+
case b.AFTER_BODY: {
|
|
13067
13067
|
Rn(this, t);
|
|
13068
13068
|
break;
|
|
13069
13069
|
}
|
|
13070
|
-
case
|
|
13070
|
+
case b.AFTER_AFTER_BODY: {
|
|
13071
13071
|
Nn(this, t);
|
|
13072
13072
|
break;
|
|
13073
13073
|
}
|
|
@@ -13080,49 +13080,49 @@ class ku {
|
|
|
13080
13080
|
return;
|
|
13081
13081
|
}
|
|
13082
13082
|
switch (this.insertionMode) {
|
|
13083
|
-
case
|
|
13083
|
+
case b.INITIAL: {
|
|
13084
13084
|
Ut(this, t);
|
|
13085
13085
|
break;
|
|
13086
13086
|
}
|
|
13087
|
-
case
|
|
13087
|
+
case b.BEFORE_HTML: {
|
|
13088
13088
|
$t(this, t);
|
|
13089
13089
|
break;
|
|
13090
13090
|
}
|
|
13091
|
-
case
|
|
13091
|
+
case b.BEFORE_HEAD: {
|
|
13092
13092
|
jt(this, t);
|
|
13093
13093
|
break;
|
|
13094
13094
|
}
|
|
13095
|
-
case
|
|
13095
|
+
case b.IN_HEAD: {
|
|
13096
13096
|
Gt(this, t);
|
|
13097
13097
|
break;
|
|
13098
13098
|
}
|
|
13099
|
-
case
|
|
13099
|
+
case b.IN_HEAD_NO_SCRIPT: {
|
|
13100
13100
|
Qt(this, t);
|
|
13101
13101
|
break;
|
|
13102
13102
|
}
|
|
13103
|
-
case
|
|
13103
|
+
case b.AFTER_HEAD: {
|
|
13104
13104
|
Kt(this, t);
|
|
13105
13105
|
break;
|
|
13106
13106
|
}
|
|
13107
|
-
case
|
|
13107
|
+
case b.TEXT: {
|
|
13108
13108
|
this._insertCharacters(t);
|
|
13109
13109
|
break;
|
|
13110
13110
|
}
|
|
13111
|
-
case
|
|
13112
|
-
case
|
|
13113
|
-
case
|
|
13111
|
+
case b.IN_TABLE:
|
|
13112
|
+
case b.IN_TABLE_BODY:
|
|
13113
|
+
case b.IN_ROW: {
|
|
13114
13114
|
hr(this, t);
|
|
13115
13115
|
break;
|
|
13116
13116
|
}
|
|
13117
|
-
case
|
|
13117
|
+
case b.IN_COLUMN_GROUP: {
|
|
13118
13118
|
Dn(this, t);
|
|
13119
13119
|
break;
|
|
13120
13120
|
}
|
|
13121
|
-
case
|
|
13121
|
+
case b.AFTER_BODY: {
|
|
13122
13122
|
Rn(this, t);
|
|
13123
13123
|
break;
|
|
13124
13124
|
}
|
|
13125
|
-
case
|
|
13125
|
+
case b.AFTER_AFTER_BODY: {
|
|
13126
13126
|
Nn(this, t);
|
|
13127
13127
|
break;
|
|
13128
13128
|
}
|
|
@@ -13135,37 +13135,37 @@ class ku {
|
|
|
13135
13135
|
return;
|
|
13136
13136
|
}
|
|
13137
13137
|
switch (this.insertionMode) {
|
|
13138
|
-
case
|
|
13139
|
-
case
|
|
13140
|
-
case
|
|
13141
|
-
case
|
|
13142
|
-
case
|
|
13143
|
-
case
|
|
13144
|
-
case
|
|
13145
|
-
case
|
|
13146
|
-
case
|
|
13147
|
-
case
|
|
13148
|
-
case
|
|
13149
|
-
case
|
|
13150
|
-
case
|
|
13151
|
-
case
|
|
13152
|
-
case
|
|
13153
|
-
case
|
|
13154
|
-
case
|
|
13155
|
-
case
|
|
13138
|
+
case b.INITIAL:
|
|
13139
|
+
case b.BEFORE_HTML:
|
|
13140
|
+
case b.BEFORE_HEAD:
|
|
13141
|
+
case b.IN_HEAD:
|
|
13142
|
+
case b.IN_HEAD_NO_SCRIPT:
|
|
13143
|
+
case b.AFTER_HEAD:
|
|
13144
|
+
case b.IN_BODY:
|
|
13145
|
+
case b.IN_TABLE:
|
|
13146
|
+
case b.IN_CAPTION:
|
|
13147
|
+
case b.IN_COLUMN_GROUP:
|
|
13148
|
+
case b.IN_TABLE_BODY:
|
|
13149
|
+
case b.IN_ROW:
|
|
13150
|
+
case b.IN_CELL:
|
|
13151
|
+
case b.IN_SELECT:
|
|
13152
|
+
case b.IN_SELECT_IN_TABLE:
|
|
13153
|
+
case b.IN_TEMPLATE:
|
|
13154
|
+
case b.IN_FRAMESET:
|
|
13155
|
+
case b.AFTER_FRAMESET: {
|
|
13156
13156
|
wr(this, t);
|
|
13157
13157
|
break;
|
|
13158
13158
|
}
|
|
13159
|
-
case
|
|
13159
|
+
case b.IN_TABLE_TEXT: {
|
|
13160
13160
|
zt(this, t);
|
|
13161
13161
|
break;
|
|
13162
13162
|
}
|
|
13163
|
-
case
|
|
13163
|
+
case b.AFTER_BODY: {
|
|
13164
13164
|
O1(this, t);
|
|
13165
13165
|
break;
|
|
13166
13166
|
}
|
|
13167
|
-
case
|
|
13168
|
-
case
|
|
13167
|
+
case b.AFTER_AFTER_BODY:
|
|
13168
|
+
case b.AFTER_AFTER_FRAMESET: {
|
|
13169
13169
|
D1(this, t);
|
|
13170
13170
|
break;
|
|
13171
13171
|
}
|
|
@@ -13174,18 +13174,18 @@ class ku {
|
|
|
13174
13174
|
/** @internal */
|
|
13175
13175
|
onDoctype(t) {
|
|
13176
13176
|
switch (this.skipNextNewLine = !1, this.insertionMode) {
|
|
13177
|
-
case
|
|
13177
|
+
case b.INITIAL: {
|
|
13178
13178
|
R1(this, t);
|
|
13179
13179
|
break;
|
|
13180
13180
|
}
|
|
13181
|
-
case
|
|
13182
|
-
case
|
|
13183
|
-
case
|
|
13184
|
-
case
|
|
13181
|
+
case b.BEFORE_HEAD:
|
|
13182
|
+
case b.IN_HEAD:
|
|
13183
|
+
case b.IN_HEAD_NO_SCRIPT:
|
|
13184
|
+
case b.AFTER_HEAD: {
|
|
13185
13185
|
this._err(t, D.misplacedDoctype);
|
|
13186
13186
|
break;
|
|
13187
13187
|
}
|
|
13188
|
-
case
|
|
13188
|
+
case b.IN_TABLE_TEXT: {
|
|
13189
13189
|
zt(this, t);
|
|
13190
13190
|
break;
|
|
13191
13191
|
}
|
|
@@ -13212,91 +13212,91 @@ class ku {
|
|
|
13212
13212
|
/** @protected */
|
|
13213
13213
|
_startTagOutsideForeignContent(t) {
|
|
13214
13214
|
switch (this.insertionMode) {
|
|
13215
|
-
case
|
|
13215
|
+
case b.INITIAL: {
|
|
13216
13216
|
Ut(this, t);
|
|
13217
13217
|
break;
|
|
13218
13218
|
}
|
|
13219
|
-
case
|
|
13219
|
+
case b.BEFORE_HTML: {
|
|
13220
13220
|
w1(this, t);
|
|
13221
13221
|
break;
|
|
13222
13222
|
}
|
|
13223
|
-
case
|
|
13223
|
+
case b.BEFORE_HEAD: {
|
|
13224
13224
|
M1(this, t);
|
|
13225
13225
|
break;
|
|
13226
13226
|
}
|
|
13227
|
-
case
|
|
13227
|
+
case b.IN_HEAD: {
|
|
13228
13228
|
Be(this, t);
|
|
13229
13229
|
break;
|
|
13230
13230
|
}
|
|
13231
|
-
case
|
|
13231
|
+
case b.IN_HEAD_NO_SCRIPT: {
|
|
13232
13232
|
v1(this, t);
|
|
13233
13233
|
break;
|
|
13234
13234
|
}
|
|
13235
|
-
case
|
|
13235
|
+
case b.AFTER_HEAD: {
|
|
13236
13236
|
U1(this, t);
|
|
13237
13237
|
break;
|
|
13238
13238
|
}
|
|
13239
|
-
case
|
|
13239
|
+
case b.IN_BODY: {
|
|
13240
13240
|
Ce(this, t);
|
|
13241
13241
|
break;
|
|
13242
13242
|
}
|
|
13243
|
-
case
|
|
13243
|
+
case b.IN_TABLE: {
|
|
13244
13244
|
yt(this, t);
|
|
13245
13245
|
break;
|
|
13246
13246
|
}
|
|
13247
|
-
case
|
|
13247
|
+
case b.IN_TABLE_TEXT: {
|
|
13248
13248
|
zt(this, t);
|
|
13249
13249
|
break;
|
|
13250
13250
|
}
|
|
13251
|
-
case
|
|
13251
|
+
case b.IN_CAPTION: {
|
|
13252
13252
|
Fp(this, t);
|
|
13253
13253
|
break;
|
|
13254
13254
|
}
|
|
13255
|
-
case
|
|
13255
|
+
case b.IN_COLUMN_GROUP: {
|
|
13256
13256
|
ai(this, t);
|
|
13257
13257
|
break;
|
|
13258
13258
|
}
|
|
13259
|
-
case
|
|
13259
|
+
case b.IN_TABLE_BODY: {
|
|
13260
13260
|
jn(this, t);
|
|
13261
13261
|
break;
|
|
13262
13262
|
}
|
|
13263
|
-
case
|
|
13263
|
+
case b.IN_ROW: {
|
|
13264
13264
|
Gn(this, t);
|
|
13265
13265
|
break;
|
|
13266
13266
|
}
|
|
13267
|
-
case
|
|
13267
|
+
case b.IN_CELL: {
|
|
13268
13268
|
Hp(this, t);
|
|
13269
13269
|
break;
|
|
13270
13270
|
}
|
|
13271
|
-
case
|
|
13271
|
+
case b.IN_SELECT: {
|
|
13272
13272
|
ks(this, t);
|
|
13273
13273
|
break;
|
|
13274
13274
|
}
|
|
13275
|
-
case
|
|
13275
|
+
case b.IN_SELECT_IN_TABLE: {
|
|
13276
13276
|
zp(this, t);
|
|
13277
13277
|
break;
|
|
13278
13278
|
}
|
|
13279
|
-
case
|
|
13279
|
+
case b.IN_TEMPLATE: {
|
|
13280
13280
|
Vp(this, t);
|
|
13281
13281
|
break;
|
|
13282
13282
|
}
|
|
13283
|
-
case
|
|
13283
|
+
case b.AFTER_BODY: {
|
|
13284
13284
|
Wp(this, t);
|
|
13285
13285
|
break;
|
|
13286
13286
|
}
|
|
13287
|
-
case
|
|
13287
|
+
case b.IN_FRAMESET: {
|
|
13288
13288
|
$p(this, t);
|
|
13289
13289
|
break;
|
|
13290
13290
|
}
|
|
13291
|
-
case
|
|
13291
|
+
case b.AFTER_FRAMESET: {
|
|
13292
13292
|
Gp(this, t);
|
|
13293
13293
|
break;
|
|
13294
13294
|
}
|
|
13295
|
-
case
|
|
13295
|
+
case b.AFTER_AFTER_BODY: {
|
|
13296
13296
|
Kp(this, t);
|
|
13297
13297
|
break;
|
|
13298
13298
|
}
|
|
13299
|
-
case
|
|
13299
|
+
case b.AFTER_AFTER_FRAMESET: {
|
|
13300
13300
|
Xp(this, t);
|
|
13301
13301
|
break;
|
|
13302
13302
|
}
|
|
@@ -13309,91 +13309,91 @@ class ku {
|
|
|
13309
13309
|
/** @protected */
|
|
13310
13310
|
_endTagOutsideForeignContent(t) {
|
|
13311
13311
|
switch (this.insertionMode) {
|
|
13312
|
-
case
|
|
13312
|
+
case b.INITIAL: {
|
|
13313
13313
|
Ut(this, t);
|
|
13314
13314
|
break;
|
|
13315
13315
|
}
|
|
13316
|
-
case
|
|
13316
|
+
case b.BEFORE_HTML: {
|
|
13317
13317
|
P1(this, t);
|
|
13318
13318
|
break;
|
|
13319
13319
|
}
|
|
13320
|
-
case
|
|
13320
|
+
case b.BEFORE_HEAD: {
|
|
13321
13321
|
F1(this, t);
|
|
13322
13322
|
break;
|
|
13323
13323
|
}
|
|
13324
|
-
case
|
|
13324
|
+
case b.IN_HEAD: {
|
|
13325
13325
|
B1(this, t);
|
|
13326
13326
|
break;
|
|
13327
13327
|
}
|
|
13328
|
-
case
|
|
13328
|
+
case b.IN_HEAD_NO_SCRIPT: {
|
|
13329
13329
|
H1(this, t);
|
|
13330
13330
|
break;
|
|
13331
13331
|
}
|
|
13332
|
-
case
|
|
13332
|
+
case b.AFTER_HEAD: {
|
|
13333
13333
|
z1(this, t);
|
|
13334
13334
|
break;
|
|
13335
13335
|
}
|
|
13336
|
-
case
|
|
13336
|
+
case b.IN_BODY: {
|
|
13337
13337
|
$n(this, t);
|
|
13338
13338
|
break;
|
|
13339
13339
|
}
|
|
13340
|
-
case
|
|
13340
|
+
case b.TEXT: {
|
|
13341
13341
|
yp(this, t);
|
|
13342
13342
|
break;
|
|
13343
13343
|
}
|
|
13344
|
-
case
|
|
13344
|
+
case b.IN_TABLE: {
|
|
13345
13345
|
tn(this, t);
|
|
13346
13346
|
break;
|
|
13347
13347
|
}
|
|
13348
|
-
case
|
|
13348
|
+
case b.IN_TABLE_TEXT: {
|
|
13349
13349
|
zt(this, t);
|
|
13350
13350
|
break;
|
|
13351
13351
|
}
|
|
13352
|
-
case
|
|
13352
|
+
case b.IN_CAPTION: {
|
|
13353
13353
|
Bp(this, t);
|
|
13354
13354
|
break;
|
|
13355
13355
|
}
|
|
13356
|
-
case
|
|
13356
|
+
case b.IN_COLUMN_GROUP: {
|
|
13357
13357
|
vp(this, t);
|
|
13358
13358
|
break;
|
|
13359
13359
|
}
|
|
13360
|
-
case
|
|
13360
|
+
case b.IN_TABLE_BODY: {
|
|
13361
13361
|
Pr(this, t);
|
|
13362
13362
|
break;
|
|
13363
13363
|
}
|
|
13364
|
-
case
|
|
13364
|
+
case b.IN_ROW: {
|
|
13365
13365
|
As(this, t);
|
|
13366
13366
|
break;
|
|
13367
13367
|
}
|
|
13368
|
-
case
|
|
13368
|
+
case b.IN_CELL: {
|
|
13369
13369
|
Up(this, t);
|
|
13370
13370
|
break;
|
|
13371
13371
|
}
|
|
13372
|
-
case
|
|
13372
|
+
case b.IN_SELECT: {
|
|
13373
13373
|
Cs(this, t);
|
|
13374
13374
|
break;
|
|
13375
13375
|
}
|
|
13376
|
-
case
|
|
13376
|
+
case b.IN_SELECT_IN_TABLE: {
|
|
13377
13377
|
Yp(this, t);
|
|
13378
13378
|
break;
|
|
13379
13379
|
}
|
|
13380
|
-
case
|
|
13380
|
+
case b.IN_TEMPLATE: {
|
|
13381
13381
|
qp(this, t);
|
|
13382
13382
|
break;
|
|
13383
13383
|
}
|
|
13384
|
-
case
|
|
13384
|
+
case b.AFTER_BODY: {
|
|
13385
13385
|
Is(this, t);
|
|
13386
13386
|
break;
|
|
13387
13387
|
}
|
|
13388
|
-
case
|
|
13388
|
+
case b.IN_FRAMESET: {
|
|
13389
13389
|
jp(this, t);
|
|
13390
13390
|
break;
|
|
13391
13391
|
}
|
|
13392
|
-
case
|
|
13392
|
+
case b.AFTER_FRAMESET: {
|
|
13393
13393
|
Qp(this, t);
|
|
13394
13394
|
break;
|
|
13395
13395
|
}
|
|
13396
|
-
case
|
|
13396
|
+
case b.AFTER_AFTER_BODY: {
|
|
13397
13397
|
Nn(this, t);
|
|
13398
13398
|
break;
|
|
13399
13399
|
}
|
|
@@ -13402,59 +13402,59 @@ class ku {
|
|
|
13402
13402
|
/** @internal */
|
|
13403
13403
|
onEof(t) {
|
|
13404
13404
|
switch (this.insertionMode) {
|
|
13405
|
-
case
|
|
13405
|
+
case b.INITIAL: {
|
|
13406
13406
|
Ut(this, t);
|
|
13407
13407
|
break;
|
|
13408
13408
|
}
|
|
13409
|
-
case
|
|
13409
|
+
case b.BEFORE_HTML: {
|
|
13410
13410
|
$t(this, t);
|
|
13411
13411
|
break;
|
|
13412
13412
|
}
|
|
13413
|
-
case
|
|
13413
|
+
case b.BEFORE_HEAD: {
|
|
13414
13414
|
jt(this, t);
|
|
13415
13415
|
break;
|
|
13416
13416
|
}
|
|
13417
|
-
case
|
|
13417
|
+
case b.IN_HEAD: {
|
|
13418
13418
|
Gt(this, t);
|
|
13419
13419
|
break;
|
|
13420
13420
|
}
|
|
13421
|
-
case
|
|
13421
|
+
case b.IN_HEAD_NO_SCRIPT: {
|
|
13422
13422
|
Qt(this, t);
|
|
13423
13423
|
break;
|
|
13424
13424
|
}
|
|
13425
|
-
case
|
|
13425
|
+
case b.AFTER_HEAD: {
|
|
13426
13426
|
Kt(this, t);
|
|
13427
13427
|
break;
|
|
13428
13428
|
}
|
|
13429
|
-
case
|
|
13430
|
-
case
|
|
13431
|
-
case
|
|
13432
|
-
case
|
|
13433
|
-
case
|
|
13434
|
-
case
|
|
13435
|
-
case
|
|
13436
|
-
case
|
|
13437
|
-
case
|
|
13429
|
+
case b.IN_BODY:
|
|
13430
|
+
case b.IN_TABLE:
|
|
13431
|
+
case b.IN_CAPTION:
|
|
13432
|
+
case b.IN_COLUMN_GROUP:
|
|
13433
|
+
case b.IN_TABLE_BODY:
|
|
13434
|
+
case b.IN_ROW:
|
|
13435
|
+
case b.IN_CELL:
|
|
13436
|
+
case b.IN_SELECT:
|
|
13437
|
+
case b.IN_SELECT_IN_TABLE: {
|
|
13438
13438
|
gs(this, t);
|
|
13439
13439
|
break;
|
|
13440
13440
|
}
|
|
13441
|
-
case
|
|
13441
|
+
case b.TEXT: {
|
|
13442
13442
|
xp(this, t);
|
|
13443
13443
|
break;
|
|
13444
13444
|
}
|
|
13445
|
-
case
|
|
13445
|
+
case b.IN_TABLE_TEXT: {
|
|
13446
13446
|
zt(this, t);
|
|
13447
13447
|
break;
|
|
13448
13448
|
}
|
|
13449
|
-
case
|
|
13449
|
+
case b.IN_TEMPLATE: {
|
|
13450
13450
|
Ns(this, t);
|
|
13451
13451
|
break;
|
|
13452
13452
|
}
|
|
13453
|
-
case
|
|
13454
|
-
case
|
|
13455
|
-
case
|
|
13456
|
-
case
|
|
13457
|
-
case
|
|
13453
|
+
case b.AFTER_BODY:
|
|
13454
|
+
case b.IN_FRAMESET:
|
|
13455
|
+
case b.AFTER_FRAMESET:
|
|
13456
|
+
case b.AFTER_AFTER_BODY:
|
|
13457
|
+
case b.AFTER_AFTER_FRAMESET: {
|
|
13458
13458
|
ui(this, t);
|
|
13459
13459
|
break;
|
|
13460
13460
|
}
|
|
@@ -13472,36 +13472,36 @@ class ku {
|
|
|
13472
13472
|
return;
|
|
13473
13473
|
}
|
|
13474
13474
|
switch (this.insertionMode) {
|
|
13475
|
-
case
|
|
13476
|
-
case
|
|
13477
|
-
case
|
|
13478
|
-
case
|
|
13479
|
-
case
|
|
13480
|
-
case
|
|
13481
|
-
case
|
|
13482
|
-
case
|
|
13483
|
-
case
|
|
13475
|
+
case b.IN_HEAD:
|
|
13476
|
+
case b.IN_HEAD_NO_SCRIPT:
|
|
13477
|
+
case b.AFTER_HEAD:
|
|
13478
|
+
case b.TEXT:
|
|
13479
|
+
case b.IN_COLUMN_GROUP:
|
|
13480
|
+
case b.IN_SELECT:
|
|
13481
|
+
case b.IN_SELECT_IN_TABLE:
|
|
13482
|
+
case b.IN_FRAMESET:
|
|
13483
|
+
case b.AFTER_FRAMESET: {
|
|
13484
13484
|
this._insertCharacters(t);
|
|
13485
13485
|
break;
|
|
13486
13486
|
}
|
|
13487
|
-
case
|
|
13488
|
-
case
|
|
13489
|
-
case
|
|
13490
|
-
case
|
|
13491
|
-
case
|
|
13492
|
-
case
|
|
13493
|
-
case
|
|
13487
|
+
case b.IN_BODY:
|
|
13488
|
+
case b.IN_CAPTION:
|
|
13489
|
+
case b.IN_CELL:
|
|
13490
|
+
case b.IN_TEMPLATE:
|
|
13491
|
+
case b.AFTER_BODY:
|
|
13492
|
+
case b.AFTER_AFTER_BODY:
|
|
13493
|
+
case b.AFTER_AFTER_FRAMESET: {
|
|
13494
13494
|
fs(this, t);
|
|
13495
13495
|
break;
|
|
13496
13496
|
}
|
|
13497
|
-
case
|
|
13498
|
-
case
|
|
13499
|
-
case
|
|
13497
|
+
case b.IN_TABLE:
|
|
13498
|
+
case b.IN_TABLE_BODY:
|
|
13499
|
+
case b.IN_ROW: {
|
|
13500
13500
|
hr(this, t);
|
|
13501
13501
|
break;
|
|
13502
13502
|
}
|
|
13503
|
-
case
|
|
13504
|
-
|
|
13503
|
+
case b.IN_TABLE_TEXT: {
|
|
13504
|
+
bs(this, t);
|
|
13505
13505
|
break;
|
|
13506
13506
|
}
|
|
13507
13507
|
}
|
|
@@ -13586,20 +13586,20 @@ function ui(e, t) {
|
|
|
13586
13586
|
function R1(e, t) {
|
|
13587
13587
|
e._setDocumentType(t);
|
|
13588
13588
|
const n = t.forceQuirks ? Re.QUIRKS : o1(t);
|
|
13589
|
-
s1(t) || e._err(t, D.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode =
|
|
13589
|
+
s1(t) || e._err(t, D.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = b.BEFORE_HTML;
|
|
13590
13590
|
}
|
|
13591
13591
|
function Ut(e, t) {
|
|
13592
|
-
e._err(t, D.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Re.QUIRKS), e.insertionMode =
|
|
13592
|
+
e._err(t, D.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Re.QUIRKS), e.insertionMode = b.BEFORE_HTML, e._processToken(t);
|
|
13593
13593
|
}
|
|
13594
13594
|
function w1(e, t) {
|
|
13595
|
-
t.tagID === o.HTML ? (e._insertElement(t, B.HTML), e.insertionMode =
|
|
13595
|
+
t.tagID === o.HTML ? (e._insertElement(t, B.HTML), e.insertionMode = b.BEFORE_HEAD) : $t(e, t);
|
|
13596
13596
|
}
|
|
13597
13597
|
function P1(e, t) {
|
|
13598
13598
|
const n = t.tagID;
|
|
13599
13599
|
(n === o.HTML || n === o.HEAD || n === o.BODY || n === o.BR) && $t(e, t);
|
|
13600
13600
|
}
|
|
13601
13601
|
function $t(e, t) {
|
|
13602
|
-
e._insertFakeRootElement(), e.insertionMode =
|
|
13602
|
+
e._insertFakeRootElement(), e.insertionMode = b.BEFORE_HEAD, e._processToken(t);
|
|
13603
13603
|
}
|
|
13604
13604
|
function M1(e, t) {
|
|
13605
13605
|
switch (t.tagID) {
|
|
@@ -13608,7 +13608,7 @@ function M1(e, t) {
|
|
|
13608
13608
|
break;
|
|
13609
13609
|
}
|
|
13610
13610
|
case o.HEAD: {
|
|
13611
|
-
e._insertElement(t, B.HTML), e.headElement = e.openElements.current, e.insertionMode =
|
|
13611
|
+
e._insertElement(t, B.HTML), e.headElement = e.openElements.current, e.insertionMode = b.IN_HEAD;
|
|
13612
13612
|
break;
|
|
13613
13613
|
}
|
|
13614
13614
|
default:
|
|
@@ -13620,7 +13620,7 @@ function F1(e, t) {
|
|
|
13620
13620
|
n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? jt(e, t) : e._err(t, D.endTagWithoutMatchingOpenElement);
|
|
13621
13621
|
}
|
|
13622
13622
|
function jt(e, t) {
|
|
13623
|
-
e._insertFakeElement(S.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode =
|
|
13623
|
+
e._insertFakeElement(S.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode = b.IN_HEAD, e._processToken(t);
|
|
13624
13624
|
}
|
|
13625
13625
|
function Be(e, t) {
|
|
13626
13626
|
switch (t.tagID) {
|
|
@@ -13641,7 +13641,7 @@ function Be(e, t) {
|
|
|
13641
13641
|
break;
|
|
13642
13642
|
}
|
|
13643
13643
|
case o.NOSCRIPT: {
|
|
13644
|
-
e.options.scriptingEnabled ? e._switchToTextParsing(t, fe.RAWTEXT) : (e._insertElement(t, B.HTML), e.insertionMode =
|
|
13644
|
+
e.options.scriptingEnabled ? e._switchToTextParsing(t, fe.RAWTEXT) : (e._insertElement(t, B.HTML), e.insertionMode = b.IN_HEAD_NO_SCRIPT);
|
|
13645
13645
|
break;
|
|
13646
13646
|
}
|
|
13647
13647
|
case o.NOFRAMES:
|
|
@@ -13654,7 +13654,7 @@ function Be(e, t) {
|
|
|
13654
13654
|
break;
|
|
13655
13655
|
}
|
|
13656
13656
|
case o.TEMPLATE: {
|
|
13657
|
-
e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode =
|
|
13657
|
+
e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = b.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(b.IN_TEMPLATE);
|
|
13658
13658
|
break;
|
|
13659
13659
|
}
|
|
13660
13660
|
case o.HEAD: {
|
|
@@ -13668,7 +13668,7 @@ function Be(e, t) {
|
|
|
13668
13668
|
function B1(e, t) {
|
|
13669
13669
|
switch (t.tagID) {
|
|
13670
13670
|
case o.HEAD: {
|
|
13671
|
-
e.openElements.pop(), e.insertionMode =
|
|
13671
|
+
e.openElements.pop(), e.insertionMode = b.AFTER_HEAD;
|
|
13672
13672
|
break;
|
|
13673
13673
|
}
|
|
13674
13674
|
case o.BODY:
|
|
@@ -13689,7 +13689,7 @@ function pt(e, t) {
|
|
|
13689
13689
|
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, D.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, D.endTagWithoutMatchingOpenElement);
|
|
13690
13690
|
}
|
|
13691
13691
|
function Gt(e, t) {
|
|
13692
|
-
e.openElements.pop(), e.insertionMode =
|
|
13692
|
+
e.openElements.pop(), e.insertionMode = b.AFTER_HEAD, e._processToken(t);
|
|
13693
13693
|
}
|
|
13694
13694
|
function v1(e, t) {
|
|
13695
13695
|
switch (t.tagID) {
|
|
@@ -13718,7 +13718,7 @@ function v1(e, t) {
|
|
|
13718
13718
|
function H1(e, t) {
|
|
13719
13719
|
switch (t.tagID) {
|
|
13720
13720
|
case o.NOSCRIPT: {
|
|
13721
|
-
e.openElements.pop(), e.insertionMode =
|
|
13721
|
+
e.openElements.pop(), e.insertionMode = b.IN_HEAD;
|
|
13722
13722
|
break;
|
|
13723
13723
|
}
|
|
13724
13724
|
case o.BR: {
|
|
@@ -13731,7 +13731,7 @@ function H1(e, t) {
|
|
|
13731
13731
|
}
|
|
13732
13732
|
function Qt(e, t) {
|
|
13733
13733
|
const n = t.type === ee.EOF ? D.openElementsLeftAfterEof : D.disallowedContentInNoscriptInHead;
|
|
13734
|
-
e._err(t, n), e.openElements.pop(), e.insertionMode =
|
|
13734
|
+
e._err(t, n), e.openElements.pop(), e.insertionMode = b.IN_HEAD, e._processToken(t);
|
|
13735
13735
|
}
|
|
13736
13736
|
function U1(e, t) {
|
|
13737
13737
|
switch (t.tagID) {
|
|
@@ -13740,11 +13740,11 @@ function U1(e, t) {
|
|
|
13740
13740
|
break;
|
|
13741
13741
|
}
|
|
13742
13742
|
case o.BODY: {
|
|
13743
|
-
e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode =
|
|
13743
|
+
e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode = b.IN_BODY;
|
|
13744
13744
|
break;
|
|
13745
13745
|
}
|
|
13746
13746
|
case o.FRAMESET: {
|
|
13747
|
-
e._insertElement(t, B.HTML), e.insertionMode =
|
|
13747
|
+
e._insertElement(t, B.HTML), e.insertionMode = b.IN_FRAMESET;
|
|
13748
13748
|
break;
|
|
13749
13749
|
}
|
|
13750
13750
|
case o.BASE:
|
|
@@ -13785,7 +13785,7 @@ function z1(e, t) {
|
|
|
13785
13785
|
}
|
|
13786
13786
|
}
|
|
13787
13787
|
function Kt(e, t) {
|
|
13788
|
-
e._insertFakeElement(S.BODY, o.BODY), e.insertionMode =
|
|
13788
|
+
e._insertFakeElement(S.BODY, o.BODY), e.insertionMode = b.IN_BODY, Wn(e, t);
|
|
13789
13789
|
}
|
|
13790
13790
|
function Wn(e, t) {
|
|
13791
13791
|
switch (t.type) {
|
|
@@ -13830,7 +13830,7 @@ function V1(e, t) {
|
|
|
13830
13830
|
}
|
|
13831
13831
|
function q1(e, t) {
|
|
13832
13832
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
13833
|
-
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
13833
|
+
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_FRAMESET);
|
|
13834
13834
|
}
|
|
13835
13835
|
function W1(e, t) {
|
|
13836
13836
|
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, B.HTML);
|
|
@@ -13879,7 +13879,7 @@ function tp(e, t) {
|
|
|
13879
13879
|
e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
13880
13880
|
}
|
|
13881
13881
|
function np(e, t) {
|
|
13882
|
-
e.treeAdapter.getDocumentMode(e.document) !== Re.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode =
|
|
13882
|
+
e.treeAdapter.getDocumentMode(e.document) !== Re.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode = b.IN_TABLE;
|
|
13883
13883
|
}
|
|
13884
13884
|
function ms(e, t) {
|
|
13885
13885
|
e._reconstructActiveFormattingElements(), e._appendElement(t, B.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
@@ -13901,7 +13901,7 @@ function ap(e, t) {
|
|
|
13901
13901
|
t.tagName = S.IMG, t.tagID = o.IMG, ms(e, t);
|
|
13902
13902
|
}
|
|
13903
13903
|
function sp(e, t) {
|
|
13904
|
-
e._insertElement(t, B.HTML), e.skipNextNewLine = !0, e.tokenizer.state = fe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode =
|
|
13904
|
+
e._insertElement(t, B.HTML), e.skipNextNewLine = !0, e.tokenizer.state = fe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = b.TEXT;
|
|
13905
13905
|
}
|
|
13906
13906
|
function op(e, t) {
|
|
13907
13907
|
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, fe.RAWTEXT);
|
|
@@ -13913,7 +13913,7 @@ function Cu(e, t) {
|
|
|
13913
13913
|
e._switchToTextParsing(t, fe.RAWTEXT);
|
|
13914
13914
|
}
|
|
13915
13915
|
function cp(e, t) {
|
|
13916
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode ===
|
|
13916
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === b.IN_TABLE || e.insertionMode === b.IN_CAPTION || e.insertionMode === b.IN_TABLE_BODY || e.insertionMode === b.IN_ROW || e.insertionMode === b.IN_CELL ? b.IN_SELECT_IN_TABLE : b.IN_SELECT;
|
|
13917
13917
|
}
|
|
13918
13918
|
function dp(e, t) {
|
|
13919
13919
|
e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML);
|
|
@@ -14144,19 +14144,19 @@ function Ce(e, t) {
|
|
|
14144
14144
|
}
|
|
14145
14145
|
}
|
|
14146
14146
|
function Ep(e, t) {
|
|
14147
|
-
if (e.openElements.hasInScope(o.BODY) && (e.insertionMode =
|
|
14147
|
+
if (e.openElements.hasInScope(o.BODY) && (e.insertionMode = b.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
|
|
14148
14148
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
14149
14149
|
n && e._setEndLocation(n, t);
|
|
14150
14150
|
}
|
|
14151
14151
|
}
|
|
14152
14152
|
function gp(e, t) {
|
|
14153
|
-
e.openElements.hasInScope(o.BODY) && (e.insertionMode =
|
|
14153
|
+
e.openElements.hasInScope(o.BODY) && (e.insertionMode = b.AFTER_BODY, Is(e, t));
|
|
14154
14154
|
}
|
|
14155
|
-
function
|
|
14155
|
+
function bp(e, t) {
|
|
14156
14156
|
const n = t.tagID;
|
|
14157
14157
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n));
|
|
14158
14158
|
}
|
|
14159
|
-
function
|
|
14159
|
+
function Tp(e) {
|
|
14160
14160
|
const t = e.openElements.tmplCount > 0, { formElement: n } = e;
|
|
14161
14161
|
t || (e.formElement = null), (n || t) && e.openElements.hasInScope(o.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(o.FORM) : n && e.openElements.remove(n));
|
|
14162
14162
|
}
|
|
@@ -14242,7 +14242,7 @@ function $n(e, t) {
|
|
|
14242
14242
|
case o.FIELDSET:
|
|
14243
14243
|
case o.BLOCKQUOTE:
|
|
14244
14244
|
case o.FIGCAPTION: {
|
|
14245
|
-
|
|
14245
|
+
bp(e, t);
|
|
14246
14246
|
break;
|
|
14247
14247
|
}
|
|
14248
14248
|
case o.LI: {
|
|
@@ -14276,7 +14276,7 @@ function $n(e, t) {
|
|
|
14276
14276
|
break;
|
|
14277
14277
|
}
|
|
14278
14278
|
case o.FORM: {
|
|
14279
|
-
|
|
14279
|
+
Tp(e);
|
|
14280
14280
|
break;
|
|
14281
14281
|
}
|
|
14282
14282
|
case o.APPLET:
|
|
@@ -14305,13 +14305,13 @@ function xp(e, t) {
|
|
|
14305
14305
|
}
|
|
14306
14306
|
function hr(e, t) {
|
|
14307
14307
|
if (e.openElements.currentTagId !== void 0 && ds.has(e.openElements.currentTagId))
|
|
14308
|
-
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode =
|
|
14308
|
+
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = b.IN_TABLE_TEXT, t.type) {
|
|
14309
14309
|
case ee.CHARACTER: {
|
|
14310
|
-
|
|
14310
|
+
Ts(e, t);
|
|
14311
14311
|
break;
|
|
14312
14312
|
}
|
|
14313
14313
|
case ee.WHITESPACE_CHARACTER: {
|
|
14314
|
-
|
|
14314
|
+
bs(e, t);
|
|
14315
14315
|
break;
|
|
14316
14316
|
}
|
|
14317
14317
|
}
|
|
@@ -14319,19 +14319,19 @@ function hr(e, t) {
|
|
|
14319
14319
|
sn(e, t);
|
|
14320
14320
|
}
|
|
14321
14321
|
function Sp(e, t) {
|
|
14322
|
-
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
14322
|
+
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_CAPTION;
|
|
14323
14323
|
}
|
|
14324
14324
|
function Lp(e, t) {
|
|
14325
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
14325
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_COLUMN_GROUP;
|
|
14326
14326
|
}
|
|
14327
14327
|
function Op(e, t) {
|
|
14328
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, o.COLGROUP), e.insertionMode =
|
|
14328
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, o.COLGROUP), e.insertionMode = b.IN_COLUMN_GROUP, ai(e, t);
|
|
14329
14329
|
}
|
|
14330
14330
|
function Dp(e, t) {
|
|
14331
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
14331
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_TABLE_BODY;
|
|
14332
14332
|
}
|
|
14333
14333
|
function Rp(e, t) {
|
|
14334
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.TBODY, o.TBODY), e.insertionMode =
|
|
14334
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.TBODY, o.TBODY), e.insertionMode = b.IN_TABLE_BODY, jn(e, t);
|
|
14335
14335
|
}
|
|
14336
14336
|
function wp(e, t) {
|
|
14337
14337
|
e.openElements.hasInTableScope(o.TABLE) && (e.openElements.popUntilTagNamePopped(o.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
@@ -14420,10 +14420,10 @@ function sn(e, t) {
|
|
|
14420
14420
|
const n = e.fosterParentingEnabled;
|
|
14421
14421
|
e.fosterParentingEnabled = !0, Wn(e, t), e.fosterParentingEnabled = n;
|
|
14422
14422
|
}
|
|
14423
|
-
function
|
|
14423
|
+
function bs(e, t) {
|
|
14424
14424
|
e.pendingCharacterTokens.push(t);
|
|
14425
14425
|
}
|
|
14426
|
-
function
|
|
14426
|
+
function Ts(e, t) {
|
|
14427
14427
|
e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
|
|
14428
14428
|
}
|
|
14429
14429
|
function zt(e, t) {
|
|
@@ -14439,14 +14439,14 @@ function zt(e, t) {
|
|
|
14439
14439
|
const _s = /* @__PURE__ */ new Set([o.CAPTION, o.COL, o.COLGROUP, o.TBODY, o.TD, o.TFOOT, o.TH, o.THEAD, o.TR]);
|
|
14440
14440
|
function Fp(e, t) {
|
|
14441
14441
|
const n = t.tagID;
|
|
14442
|
-
_s.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
14442
|
+
_s.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, yt(e, t)) : Ce(e, t);
|
|
14443
14443
|
}
|
|
14444
14444
|
function Bp(e, t) {
|
|
14445
14445
|
const n = t.tagID;
|
|
14446
14446
|
switch (n) {
|
|
14447
14447
|
case o.CAPTION:
|
|
14448
14448
|
case o.TABLE: {
|
|
14449
|
-
e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
14449
|
+
e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, n === o.TABLE && tn(e, t));
|
|
14450
14450
|
break;
|
|
14451
14451
|
}
|
|
14452
14452
|
case o.BODY:
|
|
@@ -14485,7 +14485,7 @@ function ai(e, t) {
|
|
|
14485
14485
|
function vp(e, t) {
|
|
14486
14486
|
switch (t.tagID) {
|
|
14487
14487
|
case o.COLGROUP: {
|
|
14488
|
-
e.openElements.currentTagId === o.COLGROUP && (e.openElements.pop(), e.insertionMode =
|
|
14488
|
+
e.openElements.currentTagId === o.COLGROUP && (e.openElements.pop(), e.insertionMode = b.IN_TABLE);
|
|
14489
14489
|
break;
|
|
14490
14490
|
}
|
|
14491
14491
|
case o.TEMPLATE: {
|
|
@@ -14499,17 +14499,17 @@ function vp(e, t) {
|
|
|
14499
14499
|
}
|
|
14500
14500
|
}
|
|
14501
14501
|
function Dn(e, t) {
|
|
14502
|
-
e.openElements.currentTagId === o.COLGROUP && (e.openElements.pop(), e.insertionMode =
|
|
14502
|
+
e.openElements.currentTagId === o.COLGROUP && (e.openElements.pop(), e.insertionMode = b.IN_TABLE, e._processToken(t));
|
|
14503
14503
|
}
|
|
14504
14504
|
function jn(e, t) {
|
|
14505
14505
|
switch (t.tagID) {
|
|
14506
14506
|
case o.TR: {
|
|
14507
|
-
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
14507
|
+
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_ROW;
|
|
14508
14508
|
break;
|
|
14509
14509
|
}
|
|
14510
14510
|
case o.TH:
|
|
14511
14511
|
case o.TD: {
|
|
14512
|
-
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(S.TR, o.TR), e.insertionMode =
|
|
14512
|
+
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(S.TR, o.TR), e.insertionMode = b.IN_ROW, Gn(e, t);
|
|
14513
14513
|
break;
|
|
14514
14514
|
}
|
|
14515
14515
|
case o.CAPTION:
|
|
@@ -14518,7 +14518,7 @@ function jn(e, t) {
|
|
|
14518
14518
|
case o.TBODY:
|
|
14519
14519
|
case o.TFOOT:
|
|
14520
14520
|
case o.THEAD: {
|
|
14521
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
14521
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, yt(e, t));
|
|
14522
14522
|
break;
|
|
14523
14523
|
}
|
|
14524
14524
|
default:
|
|
@@ -14531,11 +14531,11 @@ function Pr(e, t) {
|
|
|
14531
14531
|
case o.TBODY:
|
|
14532
14532
|
case o.TFOOT:
|
|
14533
14533
|
case o.THEAD: {
|
|
14534
|
-
e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
14534
|
+
e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE);
|
|
14535
14535
|
break;
|
|
14536
14536
|
}
|
|
14537
14537
|
case o.TABLE: {
|
|
14538
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
14538
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, tn(e, t));
|
|
14539
14539
|
break;
|
|
14540
14540
|
}
|
|
14541
14541
|
case o.BODY:
|
|
@@ -14555,7 +14555,7 @@ function Gn(e, t) {
|
|
|
14555
14555
|
switch (t.tagID) {
|
|
14556
14556
|
case o.TH:
|
|
14557
14557
|
case o.TD: {
|
|
14558
|
-
e.openElements.clearBackToTableRowContext(), e._insertElement(t, B.HTML), e.insertionMode =
|
|
14558
|
+
e.openElements.clearBackToTableRowContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_CELL, e.activeFormattingElements.insertMarker();
|
|
14559
14559
|
break;
|
|
14560
14560
|
}
|
|
14561
14561
|
case o.CAPTION:
|
|
@@ -14565,7 +14565,7 @@ function Gn(e, t) {
|
|
|
14565
14565
|
case o.TFOOT:
|
|
14566
14566
|
case o.THEAD:
|
|
14567
14567
|
case o.TR: {
|
|
14568
|
-
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
14568
|
+
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, jn(e, t));
|
|
14569
14569
|
break;
|
|
14570
14570
|
}
|
|
14571
14571
|
default:
|
|
@@ -14575,17 +14575,17 @@ function Gn(e, t) {
|
|
|
14575
14575
|
function As(e, t) {
|
|
14576
14576
|
switch (t.tagID) {
|
|
14577
14577
|
case o.TR: {
|
|
14578
|
-
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
14578
|
+
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY);
|
|
14579
14579
|
break;
|
|
14580
14580
|
}
|
|
14581
14581
|
case o.TABLE: {
|
|
14582
|
-
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
14582
|
+
e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Pr(e, t));
|
|
14583
14583
|
break;
|
|
14584
14584
|
}
|
|
14585
14585
|
case o.TBODY:
|
|
14586
14586
|
case o.TFOOT:
|
|
14587
14587
|
case o.THEAD: {
|
|
14588
|
-
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(o.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
14588
|
+
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(o.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Pr(e, t));
|
|
14589
14589
|
break;
|
|
14590
14590
|
}
|
|
14591
14591
|
case o.BODY:
|
|
@@ -14609,7 +14609,7 @@ function Up(e, t) {
|
|
|
14609
14609
|
switch (n) {
|
|
14610
14610
|
case o.TD:
|
|
14611
14611
|
case o.TH: {
|
|
14612
|
-
e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
14612
|
+
e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_ROW);
|
|
14613
14613
|
break;
|
|
14614
14614
|
}
|
|
14615
14615
|
case o.TABLE:
|
|
@@ -14712,24 +14712,24 @@ function Vp(e, t) {
|
|
|
14712
14712
|
case o.TBODY:
|
|
14713
14713
|
case o.TFOOT:
|
|
14714
14714
|
case o.THEAD: {
|
|
14715
|
-
e.tmplInsertionModeStack[0] =
|
|
14715
|
+
e.tmplInsertionModeStack[0] = b.IN_TABLE, e.insertionMode = b.IN_TABLE, yt(e, t);
|
|
14716
14716
|
break;
|
|
14717
14717
|
}
|
|
14718
14718
|
case o.COL: {
|
|
14719
|
-
e.tmplInsertionModeStack[0] =
|
|
14719
|
+
e.tmplInsertionModeStack[0] = b.IN_COLUMN_GROUP, e.insertionMode = b.IN_COLUMN_GROUP, ai(e, t);
|
|
14720
14720
|
break;
|
|
14721
14721
|
}
|
|
14722
14722
|
case o.TR: {
|
|
14723
|
-
e.tmplInsertionModeStack[0] =
|
|
14723
|
+
e.tmplInsertionModeStack[0] = b.IN_TABLE_BODY, e.insertionMode = b.IN_TABLE_BODY, jn(e, t);
|
|
14724
14724
|
break;
|
|
14725
14725
|
}
|
|
14726
14726
|
case o.TD:
|
|
14727
14727
|
case o.TH: {
|
|
14728
|
-
e.tmplInsertionModeStack[0] =
|
|
14728
|
+
e.tmplInsertionModeStack[0] = b.IN_ROW, e.insertionMode = b.IN_ROW, Gn(e, t);
|
|
14729
14729
|
break;
|
|
14730
14730
|
}
|
|
14731
14731
|
default:
|
|
14732
|
-
e.tmplInsertionModeStack[0] =
|
|
14732
|
+
e.tmplInsertionModeStack[0] = b.IN_BODY, e.insertionMode = b.IN_BODY, Ce(e, t);
|
|
14733
14733
|
}
|
|
14734
14734
|
}
|
|
14735
14735
|
function qp(e, t) {
|
|
@@ -14744,7 +14744,7 @@ function Wp(e, t) {
|
|
|
14744
14744
|
function Is(e, t) {
|
|
14745
14745
|
var n;
|
|
14746
14746
|
if (t.tagID === o.HTML) {
|
|
14747
|
-
if (e.fragmentContext || (e.insertionMode =
|
|
14747
|
+
if (e.fragmentContext || (e.insertionMode = b.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === o.HTML) {
|
|
14748
14748
|
e._setEndLocation(e.openElements.items[0], t);
|
|
14749
14749
|
const r = e.openElements.items[1];
|
|
14750
14750
|
r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
|
|
@@ -14753,7 +14753,7 @@ function Is(e, t) {
|
|
|
14753
14753
|
Rn(e, t);
|
|
14754
14754
|
}
|
|
14755
14755
|
function Rn(e, t) {
|
|
14756
|
-
e.insertionMode =
|
|
14756
|
+
e.insertionMode = b.IN_BODY, Wn(e, t);
|
|
14757
14757
|
}
|
|
14758
14758
|
function $p(e, t) {
|
|
14759
14759
|
switch (t.tagID) {
|
|
@@ -14776,7 +14776,7 @@ function $p(e, t) {
|
|
|
14776
14776
|
}
|
|
14777
14777
|
}
|
|
14778
14778
|
function jp(e, t) {
|
|
14779
|
-
t.tagID === o.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== o.FRAMESET && (e.insertionMode =
|
|
14779
|
+
t.tagID === o.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== o.FRAMESET && (e.insertionMode = b.AFTER_FRAMESET));
|
|
14780
14780
|
}
|
|
14781
14781
|
function Gp(e, t) {
|
|
14782
14782
|
switch (t.tagID) {
|
|
@@ -14791,13 +14791,13 @@ function Gp(e, t) {
|
|
|
14791
14791
|
}
|
|
14792
14792
|
}
|
|
14793
14793
|
function Qp(e, t) {
|
|
14794
|
-
t.tagID === o.HTML && (e.insertionMode =
|
|
14794
|
+
t.tagID === o.HTML && (e.insertionMode = b.AFTER_AFTER_FRAMESET);
|
|
14795
14795
|
}
|
|
14796
14796
|
function Kp(e, t) {
|
|
14797
14797
|
t.tagID === o.HTML ? Ce(e, t) : Nn(e, t);
|
|
14798
14798
|
}
|
|
14799
14799
|
function Nn(e, t) {
|
|
14800
|
-
e.insertionMode =
|
|
14800
|
+
e.insertionMode = b.IN_BODY, Wn(e, t);
|
|
14801
14801
|
}
|
|
14802
14802
|
function Xp(e, t) {
|
|
14803
14803
|
switch (t.tagID) {
|
|
@@ -14984,7 +14984,7 @@ function dE(e, t) {
|
|
|
14984
14984
|
const r = t.parser.openElements.current;
|
|
14985
14985
|
let i = "namespaceURI" in r ? r.namespaceURI : lt.html;
|
|
14986
14986
|
i === lt.html && n === "svg" && (i = lt.svg);
|
|
14987
|
-
const u =
|
|
14987
|
+
const u = Tm(
|
|
14988
14988
|
// Shallow clone to not delve into `children`: we only need the attributes.
|
|
14989
14989
|
{ ...e, children: [] },
|
|
14990
14990
|
{ space: i === lt.svg ? "svg" : "html" }
|
|
@@ -15268,9 +15268,9 @@ function Ds(e, t) {
|
|
|
15268
15268
|
case "comment":
|
|
15269
15269
|
return gE(e, n);
|
|
15270
15270
|
case "doctype":
|
|
15271
|
-
return TE(e, n);
|
|
15272
|
-
case "element":
|
|
15273
15271
|
return bE(e, n);
|
|
15272
|
+
case "element":
|
|
15273
|
+
return TE(e, n);
|
|
15274
15274
|
case "root":
|
|
15275
15275
|
return _E(e, n);
|
|
15276
15276
|
case "text":
|
|
@@ -15284,13 +15284,13 @@ function gE(e, t) {
|
|
|
15284
15284
|
return ln(u, t), u;
|
|
15285
15285
|
}
|
|
15286
15286
|
}
|
|
15287
|
-
function
|
|
15287
|
+
function bE(e, t) {
|
|
15288
15288
|
if (e.schema.allowDoctypes) {
|
|
15289
15289
|
const n = { type: "doctype" };
|
|
15290
15290
|
return ln(n, t), n;
|
|
15291
15291
|
}
|
|
15292
15292
|
}
|
|
15293
|
-
function
|
|
15293
|
+
function TE(e, t) {
|
|
15294
15294
|
const n = typeof t.tagName == "string" ? t.tagName : "";
|
|
15295
15295
|
e.stack.push(n);
|
|
15296
15296
|
const r = (
|
|
@@ -15454,7 +15454,7 @@ function xE(e) {
|
|
|
15454
15454
|
const t = e.trim();
|
|
15455
15455
|
return !t || t.startsWith("#") || /^(\.{0,2}\/|(?!\w+:)\/?)/.test(t) && !/^\/\//.test(t) ? !0 : /^https?:\/\//i.test(t) || /^mailto:/i.test(t);
|
|
15456
15456
|
}
|
|
15457
|
-
function
|
|
15457
|
+
function bn(e, t) {
|
|
15458
15458
|
if (!e) return null;
|
|
15459
15459
|
const n = e.trim();
|
|
15460
15460
|
if (!n || n.startsWith("//")) return null;
|
|
@@ -15483,7 +15483,7 @@ function LE(e) {
|
|
|
15483
15483
|
return {
|
|
15484
15484
|
a: ({ href: t, children: n, ...r }) => xE(t) ? /* @__PURE__ */ N("a", { href: t, target: "_blank", rel: "noopener noreferrer", ...r, children: n }) : /* @__PURE__ */ N("span", { ...r, children: n }),
|
|
15485
15485
|
img: ({ src: t, alt: n, ...r }) => {
|
|
15486
|
-
const i =
|
|
15486
|
+
const i = bn(t, e);
|
|
15487
15487
|
return i ? (
|
|
15488
15488
|
// E2:外链图只走 https(相对经基址解析落 https/linkdesk);alt 缺失补空串(a11y——装饰图不读屏)
|
|
15489
15489
|
/* @__PURE__ */ N("img", { src: i, alt: n ?? "", loading: "lazy", ...r })
|
|
@@ -15496,9 +15496,9 @@ function LE(e) {
|
|
|
15496
15496
|
video: (t) => {
|
|
15497
15497
|
const { src: n, poster: r, preload: i, autoPlay: u, children: a, ...s } = t;
|
|
15498
15498
|
delete s.autoplay;
|
|
15499
|
-
const l =
|
|
15499
|
+
const l = bn(n, e);
|
|
15500
15500
|
if (!l && !yE(a)) return null;
|
|
15501
|
-
const c = r ?
|
|
15501
|
+
const c = r ? bn(r, e) : void 0;
|
|
15502
15502
|
return /* @__PURE__ */ N(
|
|
15503
15503
|
"video",
|
|
15504
15504
|
{
|
|
@@ -15513,7 +15513,7 @@ function LE(e) {
|
|
|
15513
15513
|
},
|
|
15514
15514
|
// `<video><source src>` 多格式写法——source 的相对 src 同走 resolveMediaSrc(否则子 source 是裸相对、裂)
|
|
15515
15515
|
source: ({ src: t, ...n }) => {
|
|
15516
|
-
const r =
|
|
15516
|
+
const r = bn(t, e);
|
|
15517
15517
|
return r ? /* @__PURE__ */ N("source", { src: r, ...n }) : null;
|
|
15518
15518
|
}
|
|
15519
15519
|
};
|
|
@@ -15530,7 +15530,7 @@ function OE({ markdown: e, className: t, assetBase: n }) {
|
|
|
15530
15530
|
}
|
|
15531
15531
|
) });
|
|
15532
15532
|
}
|
|
15533
|
-
const
|
|
15533
|
+
const Tb = xo(OE);
|
|
15534
15534
|
function In({ children: e, onClick: t, disabled: n, title: r, type: i = "button", variant: u, size: a }) {
|
|
15535
15535
|
const s = ["ldk-button", u && `ldk-button--${u}`, a && `ldk-button--${a}`].filter(Boolean).join(" "), l = typeof e == "string" || typeof e == "number";
|
|
15536
15536
|
return /* @__PURE__ */ N(
|
|
@@ -15688,7 +15688,7 @@ function UE(e, t, n) {
|
|
|
15688
15688
|
const s = r === 0 ? 0 : u / r;
|
|
15689
15689
|
return { h: a, s, v: r };
|
|
15690
15690
|
}
|
|
15691
|
-
function
|
|
15691
|
+
function Tn(e) {
|
|
15692
15692
|
const [t, n, r] = BE(e);
|
|
15693
15693
|
return UE(t, n, r);
|
|
15694
15694
|
}
|
|
@@ -15700,50 +15700,50 @@ function zE(e) {
|
|
|
15700
15700
|
let t = e.replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
|
|
15701
15701
|
return t.length > 0 && (t = "#" + t), t;
|
|
15702
15702
|
}
|
|
15703
|
-
function
|
|
15704
|
-
const [a, s] = re(() =>
|
|
15703
|
+
function _b({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u }) {
|
|
15704
|
+
const [a, s] = re(() => Tn(t)), [l, c] = re(t), f = se(null), d = se(null), m = se(null), h = se(null), p = se(a), [k, I] = re(null);
|
|
15705
15705
|
ae(() => {
|
|
15706
15706
|
if (e) {
|
|
15707
|
-
const
|
|
15708
|
-
p.current =
|
|
15707
|
+
const T = Tn(t);
|
|
15708
|
+
p.current = T, s(T), c(t);
|
|
15709
15709
|
}
|
|
15710
15710
|
}, [t, e]);
|
|
15711
|
-
const _ = ie((
|
|
15712
|
-
const L = zE(
|
|
15711
|
+
const _ = ie((T) => {
|
|
15712
|
+
const L = zE(T);
|
|
15713
15713
|
if (c(L), /^#[0-9a-fA-F]{6}$/.test(L)) {
|
|
15714
|
-
const V =
|
|
15714
|
+
const V = Tn(L);
|
|
15715
15715
|
return p.current = V, s(V), L;
|
|
15716
15716
|
}
|
|
15717
15717
|
return null;
|
|
15718
|
-
}, []), O = ie((
|
|
15718
|
+
}, []), O = ie((T) => {
|
|
15719
15719
|
var W;
|
|
15720
15720
|
const L = (W = f.current) == null ? void 0 : W.getBoundingClientRect();
|
|
15721
15721
|
if (!L) return;
|
|
15722
|
-
const V = Math.max(0, Math.min(1, (
|
|
15722
|
+
const V = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width)), J = Math.max(0, Math.min(1, (T.clientY - L.top) / L.height)), R = { ...p.current, s: V, v: 1 - J };
|
|
15723
15723
|
p.current = R, s(R), c(pr(R.h, R.s, R.v));
|
|
15724
|
-
}, []), x = ie((
|
|
15724
|
+
}, []), x = ie((T) => {
|
|
15725
15725
|
var R;
|
|
15726
15726
|
const L = (R = d.current) == null ? void 0 : R.getBoundingClientRect();
|
|
15727
15727
|
if (!L) return;
|
|
15728
|
-
const V = Math.max(0, Math.min(1, (
|
|
15728
|
+
const V = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width)), F = { ...p.current, h: V * 360 };
|
|
15729
15729
|
p.current = F, s(F), c(pr(F.h, F.s, F.v));
|
|
15730
15730
|
}, []);
|
|
15731
15731
|
if (ae(() => {
|
|
15732
15732
|
if (!e) return;
|
|
15733
|
-
const
|
|
15733
|
+
const T = () => {
|
|
15734
15734
|
h.current = null;
|
|
15735
15735
|
}, L = (V) => {
|
|
15736
15736
|
h.current === "sv" ? O(V) : h.current === "hue" && x(V);
|
|
15737
15737
|
};
|
|
15738
|
-
return window.addEventListener("mouseup",
|
|
15739
|
-
window.removeEventListener("mouseup",
|
|
15738
|
+
return window.addEventListener("mouseup", T), window.addEventListener("mousemove", L), () => {
|
|
15739
|
+
window.removeEventListener("mouseup", T), window.removeEventListener("mousemove", L);
|
|
15740
15740
|
};
|
|
15741
15741
|
}, [e, O, x]), Mn(() => {
|
|
15742
15742
|
if (!e || !u) {
|
|
15743
15743
|
I(null);
|
|
15744
15744
|
return;
|
|
15745
15745
|
}
|
|
15746
|
-
const
|
|
15746
|
+
const T = m.current, L = { width: window.innerWidth, height: window.innerHeight }, V = T ? mr(u, T.offsetWidth, T.offsetHeight, L) : mr(u, Ou, i != null && i.length ? Ru : Du, L);
|
|
15747
15747
|
I((J) => J && J.left === V.left && J.top === V.top ? J : V);
|
|
15748
15748
|
}, [e, u, i]), !e) return null;
|
|
15749
15749
|
const P = pr(a.h, 1, 1), w = `${Math.round(a.s * 100)}%`, y = `${Math.round((1 - a.v) * 100)}%`, v = `${Math.round(a.h / 360 * 100)}%`, U = u && !k ? mr(
|
|
@@ -15760,7 +15760,7 @@ function _T({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
|
|
|
15760
15760
|
ref: m,
|
|
15761
15761
|
className: "ldk-colorpicker-panel",
|
|
15762
15762
|
style: u && z ? { left: z.left, top: z.top } : void 0,
|
|
15763
|
-
onClick: (
|
|
15763
|
+
onClick: (T) => T.stopPropagation(),
|
|
15764
15764
|
children: [
|
|
15765
15765
|
/* @__PURE__ */ $(
|
|
15766
15766
|
"div",
|
|
@@ -15768,8 +15768,8 @@ function _T({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
|
|
|
15768
15768
|
ref: f,
|
|
15769
15769
|
className: "ldk-colorpicker-sv",
|
|
15770
15770
|
style: { background: P },
|
|
15771
|
-
onMouseDown: (
|
|
15772
|
-
h.current = "sv", O(
|
|
15771
|
+
onMouseDown: (T) => {
|
|
15772
|
+
h.current = "sv", O(T);
|
|
15773
15773
|
},
|
|
15774
15774
|
children: [
|
|
15775
15775
|
/* @__PURE__ */ N("div", { className: "ldk-colorpicker-sv-white" }),
|
|
@@ -15783,8 +15783,8 @@ function _T({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
|
|
|
15783
15783
|
{
|
|
15784
15784
|
ref: d,
|
|
15785
15785
|
className: "ldk-colorpicker-hue",
|
|
15786
|
-
onMouseDown: (
|
|
15787
|
-
h.current = "hue", x(
|
|
15786
|
+
onMouseDown: (T) => {
|
|
15787
|
+
h.current = "hue", x(T);
|
|
15788
15788
|
},
|
|
15789
15789
|
children: /* @__PURE__ */ N("div", { className: "ldk-colorpicker-hue-cursor", style: { left: v } })
|
|
15790
15790
|
}
|
|
@@ -15797,12 +15797,12 @@ function _T({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
|
|
|
15797
15797
|
className: "ldk-colorpicker-hex",
|
|
15798
15798
|
type: "text",
|
|
15799
15799
|
value: l,
|
|
15800
|
-
onChange: (
|
|
15801
|
-
const L = _(
|
|
15800
|
+
onChange: (T) => {
|
|
15801
|
+
const L = _(T.target.value);
|
|
15802
15802
|
L && n(L);
|
|
15803
15803
|
},
|
|
15804
|
-
onKeyDown: (
|
|
15805
|
-
if (
|
|
15804
|
+
onKeyDown: (T) => {
|
|
15805
|
+
if (T.key === "Enter") {
|
|
15806
15806
|
const L = _(l);
|
|
15807
15807
|
L && n(L);
|
|
15808
15808
|
}
|
|
@@ -15814,19 +15814,19 @@ function _T({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
|
|
|
15814
15814
|
n(l), r();
|
|
15815
15815
|
}, children: "OK" })
|
|
15816
15816
|
] }),
|
|
15817
|
-
i && i.length > 0 && /* @__PURE__ */ N("div", { className: "ldk-colorpicker-presets", children: i.map((
|
|
15817
|
+
i && i.length > 0 && /* @__PURE__ */ N("div", { className: "ldk-colorpicker-presets", children: i.map((T) => /* @__PURE__ */ N(
|
|
15818
15818
|
"div",
|
|
15819
15819
|
{
|
|
15820
15820
|
className: "ldk-colorpicker-preset",
|
|
15821
|
-
style: { background:
|
|
15822
|
-
"data-hint":
|
|
15821
|
+
style: { background: T },
|
|
15822
|
+
"data-hint": T,
|
|
15823
15823
|
"data-hint-delay": "0",
|
|
15824
15824
|
onClick: () => {
|
|
15825
|
-
const L =
|
|
15826
|
-
p.current = L, s(L), c(
|
|
15825
|
+
const L = Tn(T);
|
|
15826
|
+
p.current = L, s(L), c(T), n(T);
|
|
15827
15827
|
}
|
|
15828
15828
|
},
|
|
15829
|
-
|
|
15829
|
+
T
|
|
15830
15830
|
)) })
|
|
15831
15831
|
]
|
|
15832
15832
|
}
|
|
@@ -15873,61 +15873,61 @@ function Ms({ containerRef: e, onClose: t, onKeyDown: n, listRef: r, search: i,
|
|
|
15873
15873
|
}
|
|
15874
15874
|
) });
|
|
15875
15875
|
}
|
|
15876
|
-
function
|
|
15876
|
+
function Ab({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: s, inputMode: l = "text" }) {
|
|
15877
15877
|
const { t: c } = Ae(), [f, d] = re(!1), [m, h] = re(e), [p, k] = re(-1), I = se(null), _ = se(null), O = se(null), x = se(null), P = se(!1);
|
|
15878
15878
|
ae(() => {
|
|
15879
15879
|
P.current || h(e);
|
|
15880
15880
|
}, [e]);
|
|
15881
15881
|
const w = m !== e, y = Me(() => {
|
|
15882
15882
|
if (!w) return t;
|
|
15883
|
-
const
|
|
15884
|
-
return
|
|
15883
|
+
const T = m.trim().toLowerCase();
|
|
15884
|
+
return T ? t.filter((L) => L.toLowerCase().includes(T)) : t;
|
|
15885
15885
|
}, [t, m, w]);
|
|
15886
15886
|
ae(() => {
|
|
15887
15887
|
p >= y.length && k(Math.max(0, y.length - 1));
|
|
15888
15888
|
}, [y.length, p]), ae(() => {
|
|
15889
15889
|
if (!f) return;
|
|
15890
15890
|
s == null || s();
|
|
15891
|
-
const
|
|
15892
|
-
k(
|
|
15891
|
+
const T = y.findIndex((L) => L === e);
|
|
15892
|
+
k(T >= 0 ? T : 0);
|
|
15893
15893
|
}, [f]), ae(() => {
|
|
15894
15894
|
if (!f || !x.current) return;
|
|
15895
|
-
const
|
|
15896
|
-
|
|
15895
|
+
const T = x.current.children[p];
|
|
15896
|
+
T == null || T.scrollIntoView({ block: "nearest" });
|
|
15897
15897
|
}, [p, f]);
|
|
15898
15898
|
const v = ie(
|
|
15899
|
-
(
|
|
15900
|
-
const L =
|
|
15899
|
+
(T) => {
|
|
15900
|
+
const L = T.trim();
|
|
15901
15901
|
d(!1), L && (h(L), L !== e && n(L));
|
|
15902
15902
|
},
|
|
15903
15903
|
[e, n]
|
|
15904
15904
|
), U = ie(
|
|
15905
|
-
(
|
|
15905
|
+
(T) => {
|
|
15906
15906
|
var V;
|
|
15907
15907
|
const L = _.current;
|
|
15908
15908
|
if (L) {
|
|
15909
|
-
if ((V = O.current) != null && V.contains(
|
|
15910
|
-
|
|
15909
|
+
if ((V = O.current) != null && V.contains(T.target)) {
|
|
15910
|
+
T.preventDefault(), f ? (d(!1), L.blur()) : (L.focus(), d(!0));
|
|
15911
15911
|
return;
|
|
15912
15912
|
}
|
|
15913
|
-
|
|
15913
|
+
T.target !== L && (T.preventDefault(), L.focus(), d(!0));
|
|
15914
15914
|
}
|
|
15915
15915
|
},
|
|
15916
15916
|
[f]
|
|
15917
15917
|
), z = ie(
|
|
15918
|
-
(
|
|
15919
|
-
switch (
|
|
15918
|
+
(T) => {
|
|
15919
|
+
switch (T.key) {
|
|
15920
15920
|
case "ArrowDown":
|
|
15921
|
-
|
|
15921
|
+
T.preventDefault(), d(!0), k((L) => Math.min(L + 1, y.length - 1));
|
|
15922
15922
|
break;
|
|
15923
15923
|
case "ArrowUp":
|
|
15924
|
-
|
|
15924
|
+
T.preventDefault(), d(!0), k((L) => Math.max(L - 1, 0));
|
|
15925
15925
|
break;
|
|
15926
15926
|
case "Enter":
|
|
15927
|
-
|
|
15927
|
+
T.preventDefault(), f && y[p] ? v(y[p]) : v(m);
|
|
15928
15928
|
break;
|
|
15929
15929
|
case "Escape":
|
|
15930
|
-
|
|
15930
|
+
T.preventDefault(), h(e), d(!1);
|
|
15931
15931
|
break;
|
|
15932
15932
|
}
|
|
15933
15933
|
},
|
|
@@ -15958,8 +15958,8 @@ function AT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
15958
15958
|
onBlur: () => {
|
|
15959
15959
|
P.current = !1, v(m);
|
|
15960
15960
|
},
|
|
15961
|
-
onChange: (
|
|
15962
|
-
h(
|
|
15961
|
+
onChange: (T) => {
|
|
15962
|
+
h(T.target.value), d(!0), k(-1);
|
|
15963
15963
|
},
|
|
15964
15964
|
onKeyDown: z
|
|
15965
15965
|
}
|
|
@@ -15979,17 +15979,17 @@ function AT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
15979
15979
|
containerRef: I,
|
|
15980
15980
|
onClose: () => d(!1),
|
|
15981
15981
|
listRef: x,
|
|
15982
|
-
children: y.length === 0 ? /* @__PURE__ */ N("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : y.map((
|
|
15982
|
+
children: y.length === 0 ? /* @__PURE__ */ N("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : y.map((T, L) => /* @__PURE__ */ N(
|
|
15983
15983
|
"li",
|
|
15984
15984
|
{
|
|
15985
|
-
className: `ldk-selectbox-item ${L === p ? "ldk-selectbox-item-focus" : ""} ${
|
|
15985
|
+
className: `ldk-selectbox-item ${L === p ? "ldk-selectbox-item-focus" : ""} ${T === e ? "ldk-selectbox-item-selected" : ""}`,
|
|
15986
15986
|
onMouseDown: (V) => {
|
|
15987
|
-
V.preventDefault(), v(
|
|
15987
|
+
V.preventDefault(), v(T);
|
|
15988
15988
|
},
|
|
15989
15989
|
onMouseEnter: () => k(L),
|
|
15990
|
-
children:
|
|
15990
|
+
children: T
|
|
15991
15991
|
},
|
|
15992
|
-
|
|
15992
|
+
T
|
|
15993
15993
|
))
|
|
15994
15994
|
}
|
|
15995
15995
|
)
|
|
@@ -16056,7 +16056,7 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
|
|
|
16056
16056
|
A = Fs(Z, Q);
|
|
16057
16057
|
else if (Z && Z.length === 0 && i) {
|
|
16058
16058
|
const me = i(j.command, n ?? {});
|
|
16059
|
-
me && me.length > 0 && (A = me.map((
|
|
16059
|
+
me && me.length > 0 && (A = me.map((Te) => ({ id: Te.id, label: Te.label, group: Q, checked: Te.checked, onSelect: Te.onSelect })));
|
|
16060
16060
|
}
|
|
16061
16061
|
F.get(Q).push({
|
|
16062
16062
|
id: j.command || j.label || "",
|
|
@@ -16091,13 +16091,13 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
|
|
|
16091
16091
|
}, R = () => r(), W = () => r(), j = (Z) => {
|
|
16092
16092
|
var me;
|
|
16093
16093
|
const Q = Z.target;
|
|
16094
|
-
(((me = s.current) == null ? void 0 : me.contains(Q)) ?? !1) || [...l.current.values()].some((
|
|
16094
|
+
(((me = s.current) == null ? void 0 : me.contains(Q)) ?? !1) || [...l.current.values()].some((Te) => Te.contains(Q)) || r();
|
|
16095
16095
|
};
|
|
16096
16096
|
return window.addEventListener("keydown", F), window.addEventListener("blur", R), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
|
|
16097
16097
|
window.removeEventListener("keydown", F), window.removeEventListener("blur", R), window.removeEventListener("wheel", W, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
|
|
16098
16098
|
};
|
|
16099
16099
|
}, [r, p, v, a]);
|
|
16100
|
-
const [U, z] = re(-1),
|
|
16100
|
+
const [U, z] = re(-1), T = se(/* @__PURE__ */ new Map()), L = Me(() => h.filter((F) => !("type" in F)), [h]);
|
|
16101
16101
|
ae(() => {
|
|
16102
16102
|
if (!v) return;
|
|
16103
16103
|
const F = (R) => {
|
|
@@ -16110,7 +16110,7 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
|
|
|
16110
16110
|
const Q = L[U];
|
|
16111
16111
|
if ((W = Q == null ? void 0 : Q.children) != null && W.length) {
|
|
16112
16112
|
R.preventDefault();
|
|
16113
|
-
const A =
|
|
16113
|
+
const A = T.current.get(U);
|
|
16114
16114
|
A && O(A, Q.children, 0);
|
|
16115
16115
|
}
|
|
16116
16116
|
} else if (R.key === "ArrowLeft")
|
|
@@ -16124,7 +16124,7 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
|
|
|
16124
16124
|
return window.addEventListener("keydown", F), () => window.removeEventListener("keydown", F);
|
|
16125
16125
|
}, [L, U, n, r, v, p, O]), ae(() => {
|
|
16126
16126
|
var F;
|
|
16127
|
-
U >= 0 && ((F =
|
|
16127
|
+
U >= 0 && ((F = T.current.get(U)) == null || F.scrollIntoView({ block: "nearest" }));
|
|
16128
16128
|
}, [U]);
|
|
16129
16129
|
const V = ie(async (F) => {
|
|
16130
16130
|
var R, W;
|
|
@@ -16187,7 +16187,7 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
|
|
|
16187
16187
|
"div",
|
|
16188
16188
|
{
|
|
16189
16189
|
ref: (A) => {
|
|
16190
|
-
A ?
|
|
16190
|
+
A ? T.current.set(W, A) : T.current.delete(W);
|
|
16191
16191
|
},
|
|
16192
16192
|
className: `ldk-ctx-item${Z ? " focused" : ""}${Q ? " ldk-ctx-item-danger" : ""}`,
|
|
16193
16193
|
onClick: (A) => {
|
|
@@ -16262,19 +16262,19 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
16262
16262
|
), x = Me(() => {
|
|
16263
16263
|
if (!d) return O;
|
|
16264
16264
|
const z = d.toLowerCase();
|
|
16265
|
-
return O.filter((
|
|
16265
|
+
return O.filter((T) => T.label.toLowerCase().includes(z));
|
|
16266
16266
|
}, [O, d]), P = Me(() => O.find((z) => z.value === e), [O, e]), w = Me(() => P ? P.label : e !== "" ? e : i ?? e, [P, e, i]);
|
|
16267
16267
|
ae(() => {
|
|
16268
16268
|
h >= x.length && p(Math.max(0, x.length - 1));
|
|
16269
16269
|
}, [x.length, h]), ae(() => {
|
|
16270
|
-
var
|
|
16270
|
+
var T, L;
|
|
16271
16271
|
if (!c) {
|
|
16272
16272
|
m(""), p(-1);
|
|
16273
16273
|
return;
|
|
16274
16274
|
}
|
|
16275
16275
|
s == null || s();
|
|
16276
16276
|
const z = x.findIndex((V) => V.value === e);
|
|
16277
|
-
p(z >= 0 ? z : 0), O.length > 8 ? (
|
|
16277
|
+
p(z >= 0 ? z : 0), O.length > 8 ? (T = I.current) == null || T.focus() : (L = _.current) == null || L.focus();
|
|
16278
16278
|
}, [c]);
|
|
16279
16279
|
const y = ie(
|
|
16280
16280
|
(z) => {
|
|
@@ -16285,10 +16285,10 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
16285
16285
|
(z) => {
|
|
16286
16286
|
switch (z.key) {
|
|
16287
16287
|
case "ArrowDown":
|
|
16288
|
-
z.preventDefault(), p((
|
|
16288
|
+
z.preventDefault(), p((T) => Math.min(T + 1, x.length - 1));
|
|
16289
16289
|
break;
|
|
16290
16290
|
case "ArrowUp":
|
|
16291
|
-
z.preventDefault(), p((
|
|
16291
|
+
z.preventDefault(), p((T) => Math.max(T - 1, 0));
|
|
16292
16292
|
break;
|
|
16293
16293
|
case "Enter":
|
|
16294
16294
|
z.preventDefault(), x[h] && y(x[h].value);
|
|
@@ -16346,12 +16346,12 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
16346
16346
|
}
|
|
16347
16347
|
}
|
|
16348
16348
|
) }) : void 0,
|
|
16349
|
-
children: x.length === 0 ? /* @__PURE__ */ N("li", { className: "ldk-selectbox-empty", children: l("无匹配项") }) : x.map((z,
|
|
16349
|
+
children: x.length === 0 ? /* @__PURE__ */ N("li", { className: "ldk-selectbox-empty", children: l("无匹配项") }) : x.map((z, T) => /* @__PURE__ */ $(
|
|
16350
16350
|
"li",
|
|
16351
16351
|
{
|
|
16352
|
-
className: `ldk-selectbox-item ${
|
|
16352
|
+
className: `ldk-selectbox-item ${T === h ? "ldk-selectbox-item-focus" : ""} ${z.value === e ? "ldk-selectbox-item-selected" : ""}`,
|
|
16353
16353
|
onClick: () => y(z.value),
|
|
16354
|
-
onMouseEnter: () => p(
|
|
16354
|
+
onMouseEnter: () => p(T),
|
|
16355
16355
|
children: [
|
|
16356
16356
|
z.preview && /* @__PURE__ */ N("span", { className: "ldk-selectbox-swatch", style: { background: z.preview } }),
|
|
16357
16357
|
z.label
|
|
@@ -16366,7 +16366,7 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
|
|
|
16366
16366
|
);
|
|
16367
16367
|
}
|
|
16368
16368
|
const Pu = "followTheme", gr = [];
|
|
16369
|
-
function
|
|
16369
|
+
function kb({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
|
|
16370
16370
|
const { t: s, i18n: l } = Ae(), [c, f] = re(gr), d = n === "theme.colorways" && r === "colors", [m, h] = re(void 0);
|
|
16371
16371
|
ae(() => {
|
|
16372
16372
|
var x, P, w, y, v;
|
|
@@ -16403,18 +16403,18 @@ function kT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
|
|
|
16403
16403
|
]);
|
|
16404
16404
|
return;
|
|
16405
16405
|
}
|
|
16406
|
-
const
|
|
16406
|
+
const T = r ? y.filter((L) => L.domains.includes(r)) : y;
|
|
16407
16407
|
f([
|
|
16408
16408
|
{ value: Pu, label: s("跟随主题") },
|
|
16409
|
-
...
|
|
16409
|
+
...T.map((L) => ({ value: L.id, label: L.name }))
|
|
16410
16410
|
]);
|
|
16411
16411
|
return;
|
|
16412
16412
|
}
|
|
16413
|
-
const v = (w = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : w.get, U = v ? await v("app.theme") : "", z = y.find((
|
|
16413
|
+
const v = (w = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : w.get, U = v ? await v("app.theme") : "", z = y.find((T) => T.id === U);
|
|
16414
16414
|
f(
|
|
16415
|
-
z ? z.colorways.map((
|
|
16415
|
+
z ? z.colorways.map((T) => {
|
|
16416
16416
|
var L;
|
|
16417
|
-
return { value:
|
|
16417
|
+
return { value: T.id, label: T.name, preview: ((L = T.preview) == null ? void 0 : L.accent) || void 0 };
|
|
16418
16418
|
}) : gr
|
|
16419
16419
|
);
|
|
16420
16420
|
} catch {
|
|
@@ -16449,7 +16449,7 @@ function kT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
|
|
|
16449
16449
|
}
|
|
16450
16450
|
);
|
|
16451
16451
|
}
|
|
16452
|
-
function
|
|
16452
|
+
function Cb({ value: e, onChange: t, dialogType: n }) {
|
|
16453
16453
|
const { t: r } = Ae(), i = async () => {
|
|
16454
16454
|
var s;
|
|
16455
16455
|
const u = (s = window.linkdesk) == null ? void 0 : s.dialog;
|
|
@@ -16485,7 +16485,7 @@ function CT({ value: e, onChange: t, dialogType: n }) {
|
|
|
16485
16485
|
)
|
|
16486
16486
|
] });
|
|
16487
16487
|
}
|
|
16488
|
-
const yn = "__none__",
|
|
16488
|
+
const yn = "__none__", Nb = "followTheme", qE = [
|
|
16489
16489
|
"themePicker",
|
|
16490
16490
|
"select",
|
|
16491
16491
|
"accentSource",
|
|
@@ -16500,11 +16500,11 @@ const yn = "__none__", NT = "followTheme", qE = [
|
|
|
16500
16500
|
"segmented",
|
|
16501
16501
|
"stringList",
|
|
16502
16502
|
"fileAssociationsManager"
|
|
16503
|
-
],
|
|
16504
|
-
function
|
|
16503
|
+
], Ib = ["readonly", "action", "color"], WE = ["fileAssociationsManager"], $E = new Set(qE), jE = new Set(WE);
|
|
16504
|
+
function yb(e) {
|
|
16505
16505
|
return typeof e == "string" && $E.has(e);
|
|
16506
16506
|
}
|
|
16507
|
-
function
|
|
16507
|
+
function xb(e) {
|
|
16508
16508
|
return typeof e == "string" && jE.has(e);
|
|
16509
16509
|
}
|
|
16510
16510
|
const Bs = [
|
|
@@ -16582,7 +16582,7 @@ function KE(e) {
|
|
|
16582
16582
|
};
|
|
16583
16583
|
}, [e]), t;
|
|
16584
16584
|
}
|
|
16585
|
-
function
|
|
16585
|
+
function Sb({ value: e, onChange: t, monoOnly: n = !0 }) {
|
|
16586
16586
|
const { t: r } = Ae(), i = KE(n), u = Me(() => n ? i.map((a) => ({ value: a, label: a })) : [
|
|
16587
16587
|
{ value: "", label: r("跟随主题") },
|
|
16588
16588
|
{ value: yn, label: r("系统字体") },
|
|
@@ -16598,7 +16598,7 @@ function ST({ value: e, onChange: t, monoOnly: n = !0 }) {
|
|
|
16598
16598
|
}
|
|
16599
16599
|
);
|
|
16600
16600
|
}
|
|
16601
|
-
function
|
|
16601
|
+
function Lb({ label: e, children: t }) {
|
|
16602
16602
|
return /* @__PURE__ */ $("div", { className: "ldk-form-row", children: [
|
|
16603
16603
|
/* @__PURE__ */ N("label", { children: e }),
|
|
16604
16604
|
t
|
|
@@ -16612,7 +16612,7 @@ function XE(e, t, n, r) {
|
|
|
16612
16612
|
const f = c === "bottom" ? u : a, d = Math.max(Qe, n.height - t.height - Qe);
|
|
16613
16613
|
return { top: Math.min(Math.max(f, Qe), d), left: Math.max(Qe, i), placement: c };
|
|
16614
16614
|
}
|
|
16615
|
-
function
|
|
16615
|
+
function Ob({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs: i = 400, children: u }) {
|
|
16616
16616
|
const a = se(null), s = se(null), l = se(void 0), [c, f] = re(!1), [d, m] = re({ top: 0, left: 0 }), h = Uu(), p = e.length > 0, k = ie(() => {
|
|
16617
16617
|
window.clearTimeout(l.current), f(!1);
|
|
16618
16618
|
}, []), I = ie(() => {
|
|
@@ -16668,7 +16668,7 @@ function JE({ label: e, command: t, placement: n, openDelayMs: r, children: i })
|
|
|
16668
16668
|
const a = {};
|
|
16669
16669
|
return e != null && e !== "" && (a[et] = e), t != null && (a[Po] = t), n != null && (a[Mo] = n), r != null && (a[vr] = String(r)), Lo(i, a);
|
|
16670
16670
|
}
|
|
16671
|
-
function
|
|
16671
|
+
function Db({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
|
|
16672
16672
|
const { t: s } = Ae(), l = ie(
|
|
16673
16673
|
(h) => {
|
|
16674
16674
|
let p = h;
|
|
@@ -16791,10 +16791,10 @@ function rg({ value: e, multiline: t, statusCommand: n, runCommand: r, intervalM
|
|
|
16791
16791
|
`);
|
|
16792
16792
|
return /* @__PURE__ */ N("span", { className: `ldk-readonly-text${s ? " multiline" : ""}`, children: a });
|
|
16793
16793
|
}
|
|
16794
|
-
function
|
|
16794
|
+
function Rb({ children: e }) {
|
|
16795
16795
|
return e == null || e === "" ? null : /* @__PURE__ */ N("div", { className: "ldk-section-subtitle", children: e });
|
|
16796
16796
|
}
|
|
16797
|
-
function
|
|
16797
|
+
function wb({ options: e, value: t, onChange: n, ariaLabel: r }) {
|
|
16798
16798
|
const i = se([]), u = (a, s) => {
|
|
16799
16799
|
var f;
|
|
16800
16800
|
if (!["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"].includes(a.key)) return;
|
|
@@ -16832,7 +16832,7 @@ function ig(e, t) {
|
|
|
16832
16832
|
const n = t === "×" ? e.toFixed(1) : String(Number(e.toFixed(2)));
|
|
16833
16833
|
return t ? t === "×" ? `${t}${n}` : `${n}${t}` : n;
|
|
16834
16834
|
}
|
|
16835
|
-
function
|
|
16835
|
+
function Pb({
|
|
16836
16836
|
value: e,
|
|
16837
16837
|
onChange: t,
|
|
16838
16838
|
min: n = 0,
|
|
@@ -16880,7 +16880,7 @@ function PT({
|
|
|
16880
16880
|
u !== void 0 && /* @__PURE__ */ N("span", { className: "ldk-slider-value", children: ig(p, u) })
|
|
16881
16881
|
] });
|
|
16882
16882
|
}
|
|
16883
|
-
function
|
|
16883
|
+
function Mb({
|
|
16884
16884
|
value: e,
|
|
16885
16885
|
onChange: t,
|
|
16886
16886
|
locked: n = [],
|
|
@@ -16963,7 +16963,7 @@ function MT({
|
|
|
16963
16963
|
] });
|
|
16964
16964
|
}
|
|
16965
16965
|
const ug = 6, ag = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
|
|
16966
|
-
function
|
|
16966
|
+
function Fb({ value: e, onChange: t }) {
|
|
16967
16967
|
const { t: n, i18n: r } = Ae(), [i, u] = re([]), [a, s] = re(0), l = se([]), c = ie((m) => {
|
|
16968
16968
|
var p, k;
|
|
16969
16969
|
const h = (k = (p = window.linkdesk) == null ? void 0 : p.theme) == null ? void 0 : k.listRecipes;
|
|
@@ -17067,7 +17067,7 @@ function FT({ value: e, onChange: t }) {
|
|
|
17067
17067
|
}
|
|
17068
17068
|
);
|
|
17069
17069
|
}
|
|
17070
|
-
function
|
|
17070
|
+
function Bb({ checked: e, onChange: t, disabled: n }) {
|
|
17071
17071
|
return /* @__PURE__ */ N(
|
|
17072
17072
|
"div",
|
|
17073
17073
|
{
|
|
@@ -17118,23 +17118,23 @@ const sg = Br(function({
|
|
|
17118
17118
|
var U, z;
|
|
17119
17119
|
if (!x) {
|
|
17120
17120
|
(z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !1);
|
|
17121
|
-
const
|
|
17121
|
+
const T = requestAnimationFrame(() => {
|
|
17122
17122
|
var L, V;
|
|
17123
17123
|
(V = (L = At().keybindings) == null ? void 0 : L.setKeybindingCaptureActive) == null || V.call(L, !1);
|
|
17124
17124
|
});
|
|
17125
|
-
return () => cancelAnimationFrame(
|
|
17125
|
+
return () => cancelAnimationFrame(T);
|
|
17126
17126
|
}
|
|
17127
17127
|
}, [x]), ae(() => () => {
|
|
17128
|
-
var U, z,
|
|
17129
|
-
(z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !1), (L = (
|
|
17128
|
+
var U, z, T, L;
|
|
17129
|
+
(z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !1), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !1);
|
|
17130
17130
|
}, []);
|
|
17131
17131
|
const w = (U) => {
|
|
17132
17132
|
U.key === "Enter" ? (U.preventDefault(), P(!1), r(_)) : U.key === "Escape" && (U.preventDefault(), P(!1), i()), U.stopPropagation();
|
|
17133
17133
|
}, y = () => {
|
|
17134
17134
|
x && (P(!1), r(_));
|
|
17135
17135
|
}, v = () => {
|
|
17136
|
-
var U, z,
|
|
17137
|
-
(z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !0), (L = (
|
|
17136
|
+
var U, z, T, L;
|
|
17137
|
+
(z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !0), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !0);
|
|
17138
17138
|
};
|
|
17139
17139
|
return /* @__PURE__ */ N(
|
|
17140
17140
|
"input",
|
|
@@ -17196,7 +17196,7 @@ function cg(e, t) {
|
|
|
17196
17196
|
}
|
|
17197
17197
|
return { emoji: "📄" };
|
|
17198
17198
|
}
|
|
17199
|
-
function
|
|
17199
|
+
function vb(...e) {
|
|
17200
17200
|
for (const t of e) if (t != null && t.marketIcon) return { icon: t.marketIcon, iconSource: t.marketIconSource };
|
|
17201
17201
|
for (const t of e) if (t != null && t.icon) return { icon: t.icon, iconSource: t.iconSource };
|
|
17202
17202
|
return { icon: lg, iconSource: "url" };
|
|
@@ -17281,7 +17281,7 @@ const st = {
|
|
|
17281
17281
|
* This source code is licensed under the ISC license.
|
|
17282
17282
|
* See the LICENSE file in the root directory of this source tree.
|
|
17283
17283
|
*/
|
|
17284
|
-
function
|
|
17284
|
+
function br(e) {
|
|
17285
17285
|
return e != null;
|
|
17286
17286
|
}
|
|
17287
17287
|
function pg(e, t = {}) {
|
|
@@ -17294,14 +17294,14 @@ function pg(e, t = {}) {
|
|
|
17294
17294
|
..."color" in t && t.color && {
|
|
17295
17295
|
[r("stroke")]: t.color
|
|
17296
17296
|
},
|
|
17297
|
-
..."size" in t &&
|
|
17297
|
+
..."size" in t && br(t.size) && {
|
|
17298
17298
|
[r("width")]: t.size,
|
|
17299
17299
|
[r("height")]: t.size
|
|
17300
17300
|
},
|
|
17301
|
-
..."width" in t &&
|
|
17301
|
+
..."width" in t && br(t.width) && {
|
|
17302
17302
|
[r("width")]: t.width
|
|
17303
17303
|
},
|
|
17304
|
-
..."height" in t &&
|
|
17304
|
+
..."height" in t && br(t.height) && {
|
|
17305
17305
|
[r("height")]: t.height
|
|
17306
17306
|
},
|
|
17307
17307
|
[r("stroke-width")]: f,
|
|
@@ -17350,7 +17350,7 @@ const gg = (e) => {
|
|
|
17350
17350
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
17351
17351
|
return !0;
|
|
17352
17352
|
return !1;
|
|
17353
|
-
},
|
|
17353
|
+
}, bg = Ro({}), Tg = () => Do(bg), _g = Br(
|
|
17354
17354
|
({
|
|
17355
17355
|
color: e,
|
|
17356
17356
|
size: t,
|
|
@@ -17376,7 +17376,7 @@ const gg = (e) => {
|
|
|
17376
17376
|
nonScalingStroke: I = !1,
|
|
17377
17377
|
color: _ = "currentColor",
|
|
17378
17378
|
className: O = ""
|
|
17379
|
-
} =
|
|
17379
|
+
} = Tg() ?? {}, x = !!l || gg(d), [P, w, y = []] = Eg(f, {
|
|
17380
17380
|
color: e ?? _,
|
|
17381
17381
|
width: n ?? t ?? h,
|
|
17382
17382
|
height: r ?? t ?? h,
|
|
@@ -17387,14 +17387,14 @@ const gg = (e) => {
|
|
|
17387
17387
|
hasA11yProp: x,
|
|
17388
17388
|
attributes: d
|
|
17389
17389
|
});
|
|
17390
|
-
return
|
|
17390
|
+
return Tr(
|
|
17391
17391
|
P,
|
|
17392
17392
|
{
|
|
17393
17393
|
ref: m,
|
|
17394
17394
|
...w
|
|
17395
17395
|
},
|
|
17396
17396
|
[
|
|
17397
|
-
...y.map(([v, U]) =>
|
|
17397
|
+
...y.map(([v, U]) => Tr(v, U)),
|
|
17398
17398
|
...Array.isArray(l) ? l : [l]
|
|
17399
17399
|
]
|
|
17400
17400
|
);
|
|
@@ -17408,7 +17408,7 @@ const gg = (e) => {
|
|
|
17408
17408
|
*/
|
|
17409
17409
|
function he(e, t = [], n = []) {
|
|
17410
17410
|
const r = typeof e == "string" ? fg(e, t, n) : e, i = Br(
|
|
17411
|
-
({ className: u, ...a }, s) =>
|
|
17411
|
+
({ className: u, ...a }, s) => Tr(_g, {
|
|
17412
17412
|
ref: s,
|
|
17413
17413
|
icon: r,
|
|
17414
17414
|
className: u,
|
|
@@ -17993,7 +17993,7 @@ function qg({
|
|
|
17993
17993
|
);
|
|
17994
17994
|
}
|
|
17995
17995
|
const Fu = 4e3;
|
|
17996
|
-
function
|
|
17996
|
+
function Hb({
|
|
17997
17997
|
request: e,
|
|
17998
17998
|
handlers: t,
|
|
17999
17999
|
onOpenOnce: n,
|
|
@@ -18092,7 +18092,7 @@ function HT({
|
|
|
18092
18092
|
)
|
|
18093
18093
|
] });
|
|
18094
18094
|
}
|
|
18095
|
-
function
|
|
18095
|
+
function Ub({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
|
|
18096
18096
|
const i = se(null);
|
|
18097
18097
|
ae(() => () => {
|
|
18098
18098
|
i.current && clearTimeout(i.current);
|
|
@@ -18106,7 +18106,7 @@ function UT({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
|
|
|
18106
18106
|
}, [n, t]);
|
|
18107
18107
|
return { handleMouseDown: u, handleClick: a };
|
|
18108
18108
|
}
|
|
18109
|
-
function
|
|
18109
|
+
function zb(e) {
|
|
18110
18110
|
const t = se(e);
|
|
18111
18111
|
return t.current = e, ie((n) => {
|
|
18112
18112
|
var i, u, a, s, l, c;
|
|
@@ -18173,7 +18173,7 @@ function An(e) {
|
|
|
18173
18173
|
for (const [n, r] of Object.entries(e)) t[n] = { class: r };
|
|
18174
18174
|
return t;
|
|
18175
18175
|
}
|
|
18176
|
-
class
|
|
18176
|
+
class Yb {
|
|
18177
18177
|
constructor(t) {
|
|
18178
18178
|
ve(this, "_fileMap");
|
|
18179
18179
|
ve(this, "_extMap");
|
|
@@ -18214,7 +18214,7 @@ class YT {
|
|
|
18214
18214
|
return n > 0 ? t.slice(n) : "";
|
|
18215
18215
|
}
|
|
18216
18216
|
}
|
|
18217
|
-
function
|
|
18217
|
+
function Vb(e, t) {
|
|
18218
18218
|
const n = t - e;
|
|
18219
18219
|
return !Number.isInteger(e) || !Number.isInteger(t) || n <= 2 ? 0.01 : 1;
|
|
18220
18220
|
}
|
|
@@ -18223,10 +18223,10 @@ function Hu(e) {
|
|
|
18223
18223
|
return t ? `${t[1].toLowerCase()}/${t[2].toLowerCase()}` : null;
|
|
18224
18224
|
}
|
|
18225
18225
|
const Jg = /^(#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})\b|rgba?\(|hsla?\()/i;
|
|
18226
|
-
function
|
|
18226
|
+
function qb(e) {
|
|
18227
18227
|
return Jg.test(e) ? { label: e, color: e } : { label: e.split(",")[0].trim().replace(/^["']|["']$/g, "") };
|
|
18228
18228
|
}
|
|
18229
|
-
function
|
|
18229
|
+
function Wb(e, t) {
|
|
18230
18230
|
const n = Array.isArray(e.default) ? e.default.filter((a) => typeof a == "string") : [], r = Array.isArray(t) ? t : Array.isArray(e.default) ? e.default : [], i = /* @__PURE__ */ new Set();
|
|
18231
18231
|
for (const a of n) {
|
|
18232
18232
|
const s = Hu(a);
|
|
@@ -18239,7 +18239,7 @@ function WT(e, t) {
|
|
|
18239
18239
|
});
|
|
18240
18240
|
return { locked: n, editable: u };
|
|
18241
18241
|
}
|
|
18242
|
-
function $
|
|
18242
|
+
function $b({ value: e, onChange: t, onPick: n, onImport: r }) {
|
|
18243
18243
|
const { t: i } = Ae(), [u, a] = re(!1), s = async () => {
|
|
18244
18244
|
a(!0);
|
|
18245
18245
|
try {
|
|
@@ -18260,7 +18260,7 @@ function $T({ value: e, onChange: t, onPick: n, onImport: r }) {
|
|
|
18260
18260
|
/* @__PURE__ */ N("span", { className: "ldk-image-picker__path", "data-hint": l, "data-hint-delay": "0", children: l })
|
|
18261
18261
|
] });
|
|
18262
18262
|
}
|
|
18263
|
-
function
|
|
18263
|
+
function jb({ label: e, value: t, color: n }) {
|
|
18264
18264
|
return t ? /* @__PURE__ */ $("span", { className: "ldk-effective-badge", children: [
|
|
18265
18265
|
e ? /* @__PURE__ */ N("span", { className: "ldk-effective-badge-label", children: e }) : null,
|
|
18266
18266
|
n ? /* @__PURE__ */ N("span", { className: "ldk-effective-swatch", style: { background: n }, "aria-hidden": "true" }) : null,
|
|
@@ -18271,20 +18271,20 @@ const Zg = {
|
|
|
18271
18271
|
user: "codicon-edit",
|
|
18272
18272
|
mix: "codicon-arrow-swap"
|
|
18273
18273
|
};
|
|
18274
|
-
function
|
|
18274
|
+
function Gb({ source: e, label: t }) {
|
|
18275
18275
|
const n = { [et]: t };
|
|
18276
18276
|
return /* @__PURE__ */ $("span", { className: `ldk-source-badge ldk-source-badge--${e}`, ...n, children: [
|
|
18277
18277
|
/* @__PURE__ */ N("span", { className: `codicon ${Zg[e]}`, "aria-hidden": "true" }),
|
|
18278
18278
|
t
|
|
18279
18279
|
] });
|
|
18280
18280
|
}
|
|
18281
|
-
function
|
|
18281
|
+
function Qb({ halves: e }) {
|
|
18282
18282
|
return /* @__PURE__ */ N("span", { className: "ldk-segment-preview", "aria-hidden": "true", children: e.map((t, n) => /* @__PURE__ */ N("span", { className: `ldk-segment-preview__half ldk-segment-preview__half--${t}`, children: "Aa" }, n)) });
|
|
18283
18283
|
}
|
|
18284
|
-
function
|
|
18284
|
+
function Kb({ variant: e }) {
|
|
18285
18285
|
return /* @__PURE__ */ N("span", { className: `ldk-segment-preview ldk-segment-preview--${e}`, "aria-hidden": "true" });
|
|
18286
18286
|
}
|
|
18287
|
-
function
|
|
18287
|
+
function Xb({
|
|
18288
18288
|
value: e,
|
|
18289
18289
|
onChange: t,
|
|
18290
18290
|
onSwatchClick: n
|
|
@@ -18311,7 +18311,7 @@ function XT({
|
|
|
18311
18311
|
)
|
|
18312
18312
|
] });
|
|
18313
18313
|
}
|
|
18314
|
-
function
|
|
18314
|
+
function Jb({
|
|
18315
18315
|
value: e,
|
|
18316
18316
|
onChange: t,
|
|
18317
18317
|
addLabel: n,
|
|
@@ -18398,9 +18398,9 @@ function JT({
|
|
|
18398
18398
|
] })
|
|
18399
18399
|
] });
|
|
18400
18400
|
}
|
|
18401
|
-
const
|
|
18402
|
-
function
|
|
18403
|
-
const { t: i } = Ae(), [u, a] = re(null), s = (() => {
|
|
18401
|
+
const eb = "famgrCardRowGear";
|
|
18402
|
+
function tb({ row: e, onPick: t, gearItems: n = [], nameOnlyHit: r = !1 }) {
|
|
18403
|
+
const { t: i } = Ae(), [u, a] = re(null), s = [{ value: "", label: i("自动") }, ...e.options.map((d) => ({ ...d, label: i(d.label) }))], l = (() => {
|
|
18404
18404
|
switch (e.state) {
|
|
18405
18405
|
case "lock":
|
|
18406
18406
|
return {
|
|
@@ -18413,48 +18413,51 @@ function tT({ row: e, onPick: t, gearItems: n = [], nameOnlyHit: r = !1 }) {
|
|
|
18413
18413
|
case "auto":
|
|
18414
18414
|
return { tone: "auto", label: i("默认(自动)") };
|
|
18415
18415
|
case "lost":
|
|
18416
|
-
return {
|
|
18416
|
+
return {
|
|
18417
|
+
tone: "cand",
|
|
18418
|
+
label: i("候选 · 默认:{{name}}", { name: e.currentName === void 0 ? "—" : i(e.currentName) })
|
|
18419
|
+
};
|
|
18417
18420
|
case "sole":
|
|
18418
18421
|
return { tone: "auto", label: i("唯一处理者(自动)") };
|
|
18419
18422
|
case "orphan":
|
|
18420
18423
|
return {
|
|
18421
18424
|
tone: "cand",
|
|
18422
|
-
label: i("无人处理 · 角色兜底({{name}})", { name: e.currentName
|
|
18425
|
+
label: i("无人处理 · 角色兜底({{name}})", { name: e.currentName === void 0 ? "—" : i(e.currentName) })
|
|
18423
18426
|
};
|
|
18424
18427
|
}
|
|
18425
|
-
})(),
|
|
18428
|
+
})(), c = /* @__PURE__ */ $("span", { className: "ldk-famgr-ext", children: [
|
|
18426
18429
|
".",
|
|
18427
18430
|
e.ext
|
|
18428
|
-
] }),
|
|
18429
|
-
const
|
|
18430
|
-
a({ x:
|
|
18431
|
+
] }), f = (d) => {
|
|
18432
|
+
const m = d.currentTarget.getBoundingClientRect();
|
|
18433
|
+
a({ x: m.left, y: m.bottom + 4 });
|
|
18431
18434
|
};
|
|
18432
18435
|
return /* @__PURE__ */ $("div", { className: "ldk-famgr-row", children: [
|
|
18433
|
-
e.rawDeclaration ? /* @__PURE__ */ N(JE, { label: i("声明串 {{raw}} → 归一存储键 .{{ext}}", { raw: e.rawDeclaration, ext: e.ext }), children:
|
|
18436
|
+
e.rawDeclaration ? /* @__PURE__ */ N(JE, { label: i("声明串 {{raw}} → 归一存储键 .{{ext}}", { raw: e.rawDeclaration, ext: e.ext }), children: c }) : c,
|
|
18434
18437
|
/* @__PURE__ */ N(
|
|
18435
18438
|
"span",
|
|
18436
18439
|
{
|
|
18437
|
-
className: `ldk-famgr-pill ldk-famgr-pill--${
|
|
18438
|
-
..."hint" in
|
|
18439
|
-
children:
|
|
18440
|
+
className: `ldk-famgr-pill ldk-famgr-pill--${l.tone}`,
|
|
18441
|
+
..."hint" in l && l.hint ? { "data-hint": l.hint } : {},
|
|
18442
|
+
children: l.label
|
|
18440
18443
|
}
|
|
18441
18444
|
),
|
|
18442
18445
|
e.dangling && /* @__PURE__ */ N("span", { className: "ldk-famgr-pill ldk-famgr-pill--dang", children: i("失效覆盖") }),
|
|
18443
18446
|
r && e.typeLabel && /* @__PURE__ */ $("span", { className: "ldk-famgr-why", children: [
|
|
18444
18447
|
i("类型名"),
|
|
18445
18448
|
" ",
|
|
18446
|
-
/* @__PURE__ */ N("b", { children: e.typeLabel })
|
|
18449
|
+
/* @__PURE__ */ N("b", { children: i(e.typeLabel) })
|
|
18447
18450
|
] }),
|
|
18448
18451
|
/* @__PURE__ */ N(
|
|
18449
18452
|
dn,
|
|
18450
18453
|
{
|
|
18451
18454
|
className: "ldk-famgr-select",
|
|
18452
18455
|
value: e.value,
|
|
18453
|
-
options:
|
|
18456
|
+
options: s,
|
|
18454
18457
|
title: i(".{{ext}} 的默认打开方式", { ext: e.ext }),
|
|
18455
|
-
onChange: (
|
|
18456
|
-
const
|
|
18457
|
-
t([e.ext],
|
|
18458
|
+
onChange: (d) => {
|
|
18459
|
+
const m = s.find((h) => h.value === d);
|
|
18460
|
+
t([e.ext], d || null, d ? m == null ? void 0 : m.label : void 0);
|
|
18458
18461
|
}
|
|
18459
18462
|
}
|
|
18460
18463
|
),
|
|
@@ -18464,14 +18467,14 @@ function tT({ row: e, onPick: t, gearItems: n = [], nameOnlyHit: r = !1 }) {
|
|
|
18464
18467
|
type: "button",
|
|
18465
18468
|
className: "ldk-famgr-gear",
|
|
18466
18469
|
"aria-label": i(".{{ext}} 的更多操作", { ext: e.ext }),
|
|
18467
|
-
onClick:
|
|
18470
|
+
onClick: f,
|
|
18468
18471
|
children: /* @__PURE__ */ N("span", { className: "codicon codicon-gear", "aria-hidden": "true" })
|
|
18469
18472
|
}
|
|
18470
18473
|
),
|
|
18471
18474
|
u && n.length > 0 && /* @__PURE__ */ N(
|
|
18472
18475
|
li,
|
|
18473
18476
|
{
|
|
18474
|
-
menuId:
|
|
18477
|
+
menuId: eb,
|
|
18475
18478
|
anchor: u,
|
|
18476
18479
|
items: [...n],
|
|
18477
18480
|
onClose: () => a(null),
|
|
@@ -18495,7 +18498,7 @@ function fo(e, t) {
|
|
|
18495
18498
|
const r = e == null ? void 0 : e[n];
|
|
18496
18499
|
return typeof r == "string" && r ? r : void 0;
|
|
18497
18500
|
}
|
|
18498
|
-
function
|
|
18501
|
+
function Zb(e) {
|
|
18499
18502
|
if (!Array.isArray(e)) return [];
|
|
18500
18503
|
const t = [], n = /* @__PURE__ */ new Set();
|
|
18501
18504
|
for (const r of e) {
|
|
@@ -18504,7 +18507,7 @@ function ZT(e) {
|
|
|
18504
18507
|
}
|
|
18505
18508
|
return t;
|
|
18506
18509
|
}
|
|
18507
|
-
function
|
|
18510
|
+
function eT(e) {
|
|
18508
18511
|
const t = e == null ? void 0 : e.fileAssociations;
|
|
18509
18512
|
if (!Array.isArray(t)) return [];
|
|
18510
18513
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -18518,7 +18521,7 @@ function eb(e) {
|
|
|
18518
18521
|
return n;
|
|
18519
18522
|
}
|
|
18520
18523
|
const ho = 3;
|
|
18521
|
-
function
|
|
18524
|
+
function nb(e) {
|
|
18522
18525
|
return e.slice(0, ho).map((t) => `.${t}`).join(" / ");
|
|
18523
18526
|
}
|
|
18524
18527
|
function Pn(e, t) {
|
|
@@ -18526,7 +18529,7 @@ function Pn(e, t) {
|
|
|
18526
18529
|
const n = t.handlersByExt[e] ?? [], r = fo(t.overrideTable, e), i = !!r && n.some((l) => l.pluginId === r), u = ((a = n.find((l) => l.isCurrent)) == null ? void 0 : a.pluginId) ?? r ?? ((s = n[0]) == null ? void 0 : s.pluginId) ?? "";
|
|
18527
18530
|
return { handlers: n, override: r, overrideInRegistry: i, currentId: u };
|
|
18528
18531
|
}
|
|
18529
|
-
function
|
|
18532
|
+
function rb(e, t, n) {
|
|
18530
18533
|
var c;
|
|
18531
18534
|
const { handlers: r, override: i, overrideInRegistry: u, currentId: a } = Pn(t.ext, n), s = !!i && !u;
|
|
18532
18535
|
let l;
|
|
@@ -18543,11 +18546,11 @@ function rT(e, t, n) {
|
|
|
18543
18546
|
options: r.map((f) => ({ value: f.pluginId, label: f.title }))
|
|
18544
18547
|
};
|
|
18545
18548
|
}
|
|
18546
|
-
function
|
|
18549
|
+
function ib(e, t, n) {
|
|
18547
18550
|
const r = (u) => !n || u.toLowerCase().includes(n), i = [];
|
|
18548
18551
|
for (const u of e) {
|
|
18549
18552
|
if (u.exts.length === 0) continue;
|
|
18550
|
-
const a = u.exts.map((s) =>
|
|
18553
|
+
const a = u.exts.map((s) => rb(u.pluginId, s, t));
|
|
18551
18554
|
n && !r(u.name) && !r(u.pluginId) && !u.exts.some((s) => r(`.${s.ext}`)) || i.push({
|
|
18552
18555
|
pluginId: u.pluginId,
|
|
18553
18556
|
name: u.name,
|
|
@@ -18566,7 +18569,7 @@ function iT(e, t, n) {
|
|
|
18566
18569
|
}
|
|
18567
18570
|
return i;
|
|
18568
18571
|
}
|
|
18569
|
-
function
|
|
18572
|
+
function ub(e, t, n) {
|
|
18570
18573
|
var s;
|
|
18571
18574
|
const r = /* @__PURE__ */ new Set();
|
|
18572
18575
|
for (const l of e) for (const c of l.exts) r.add(c.ext);
|
|
@@ -18603,8 +18606,8 @@ function uT(e, t, n) {
|
|
|
18603
18606
|
}
|
|
18604
18607
|
return { rows: a, extCount: i.length };
|
|
18605
18608
|
}
|
|
18606
|
-
function
|
|
18607
|
-
const t = (e.search ?? "").trim().toLowerCase(), n =
|
|
18609
|
+
function tT(e) {
|
|
18610
|
+
const t = (e.search ?? "").trim().toLowerCase(), n = ib(e.plugins, e, t), { rows: r, extCount: i } = ub(e.plugins, e, t);
|
|
18608
18611
|
return {
|
|
18609
18612
|
contested: r,
|
|
18610
18613
|
cards: n,
|
|
@@ -18620,11 +18623,11 @@ function po(e, t, n) {
|
|
|
18620
18623
|
const r = mo(n);
|
|
18621
18624
|
return r ? e.includes(r) ? "ext" : String(t ?? "").toLowerCase().includes(r) ? "name" : "" : "";
|
|
18622
18625
|
}
|
|
18623
|
-
function
|
|
18626
|
+
function ab(e, t) {
|
|
18624
18627
|
const n = e.slice();
|
|
18625
18628
|
return t === "declared" ? n : n.sort((r, i) => r.ext.localeCompare(i.ext));
|
|
18626
18629
|
}
|
|
18627
|
-
function
|
|
18630
|
+
function sb(e, t) {
|
|
18628
18631
|
const n = mo(t);
|
|
18629
18632
|
if (!n) return e.slice();
|
|
18630
18633
|
const r = [], i = [];
|
|
@@ -18634,24 +18637,24 @@ function sT(e, t) {
|
|
|
18634
18637
|
}
|
|
18635
18638
|
return [...r, ...i];
|
|
18636
18639
|
}
|
|
18637
|
-
const
|
|
18638
|
-
function
|
|
18639
|
-
const { t: r } = Ae(), [i, u] = re(null), a =
|
|
18640
|
-
const
|
|
18641
|
-
u({ x:
|
|
18640
|
+
const ob = "famgrContestedRowGear";
|
|
18641
|
+
function lb({ row: e, onPick: t, gearItems: n = [] }) {
|
|
18642
|
+
const { t: r } = Ae(), [i, u] = re(null), a = [{ value: "", label: r("自动") }, ...e.handlers.map((m) => ({ ...m, label: r(m.label) }))], s = nb(e.exts), l = e.exts.length > ho ? r(" 等 {{count}} 类", { count: e.exts.length }) : "", c = e.source === "user" ? r("(用户指定)") : e.source === "partial" ? r("(含用户指定)") : r("(自动)"), f = e.exts.length < e.groupExtsCount ? r(" · 整组 {{total}} 类中 {{count}} 类单独设置", { total: e.groupExtsCount, count: e.exts.length }) : ` ${r("· 下拉=整格生效")}`, d = (m) => {
|
|
18643
|
+
const h = m.currentTarget.getBoundingClientRect();
|
|
18644
|
+
u({ x: h.left, y: h.bottom + 4 });
|
|
18642
18645
|
};
|
|
18643
18646
|
return /* @__PURE__ */ $("div", { className: "ldk-famgr-contested", children: [
|
|
18644
18647
|
/* @__PURE__ */ $("div", { className: "ldk-famgr-info", children: [
|
|
18645
18648
|
/* @__PURE__ */ $("span", { className: "ldk-famgr-label", children: [
|
|
18646
|
-
|
|
18647
|
-
|
|
18649
|
+
s,
|
|
18650
|
+
l
|
|
18648
18651
|
] }),
|
|
18649
18652
|
/* @__PURE__ */ $("span", { className: "ldk-famgr-desc", children: [
|
|
18650
18653
|
r("当前单击打开:"),
|
|
18651
|
-
/* @__PURE__ */ N("b", { children: e.effectiveName }),
|
|
18652
|
-
|
|
18654
|
+
/* @__PURE__ */ N("b", { children: r(e.effectiveName) }),
|
|
18655
|
+
c,
|
|
18653
18656
|
r(" · 候选 {{count}} 个", { count: e.handlerCount }),
|
|
18654
|
-
|
|
18657
|
+
f
|
|
18655
18658
|
] })
|
|
18656
18659
|
] }),
|
|
18657
18660
|
/* @__PURE__ */ $("div", { className: "ldk-famgr-control", children: [
|
|
@@ -18661,20 +18664,20 @@ function lT({ row: e, onPick: t, gearItems: n = [] }) {
|
|
|
18661
18664
|
{
|
|
18662
18665
|
className: "ldk-famgr-select",
|
|
18663
18666
|
value: e.value,
|
|
18664
|
-
options:
|
|
18665
|
-
title: r("{{types}} 的默认打开方式", { types:
|
|
18666
|
-
onChange: (
|
|
18667
|
-
const
|
|
18668
|
-
t(e.exts,
|
|
18667
|
+
options: a,
|
|
18668
|
+
title: r("{{types}} 的默认打开方式", { types: s }),
|
|
18669
|
+
onChange: (m) => {
|
|
18670
|
+
const h = a.find((p) => p.value === m);
|
|
18671
|
+
t(e.exts, m || null, m ? h == null ? void 0 : h.label : void 0);
|
|
18669
18672
|
}
|
|
18670
18673
|
}
|
|
18671
18674
|
),
|
|
18672
|
-
n.length > 0 && /* @__PURE__ */ N("button", { type: "button", className: "ldk-famgr-gear", "aria-label": r("更多操作"), onClick:
|
|
18675
|
+
n.length > 0 && /* @__PURE__ */ N("button", { type: "button", className: "ldk-famgr-gear", "aria-label": r("更多操作"), onClick: d, children: /* @__PURE__ */ N("span", { className: "codicon codicon-gear", "aria-hidden": "true" }) })
|
|
18673
18676
|
] }),
|
|
18674
18677
|
i && n.length > 0 && /* @__PURE__ */ N(
|
|
18675
18678
|
li,
|
|
18676
18679
|
{
|
|
18677
|
-
menuId:
|
|
18680
|
+
menuId: ob,
|
|
18678
18681
|
anchor: i,
|
|
18679
18682
|
items: [...n],
|
|
18680
18683
|
onClose: () => u(null),
|
|
@@ -18683,8 +18686,8 @@ function lT({ row: e, onPick: t, gearItems: n = [] }) {
|
|
|
18683
18686
|
)
|
|
18684
18687
|
] });
|
|
18685
18688
|
}
|
|
18686
|
-
const
|
|
18687
|
-
function
|
|
18689
|
+
const cb = 8, db = 150;
|
|
18690
|
+
function nT({
|
|
18688
18691
|
model: e,
|
|
18689
18692
|
search: t = "",
|
|
18690
18693
|
loading: n = !1,
|
|
@@ -18719,7 +18722,7 @@ function nb({
|
|
|
18719
18722
|
/* @__PURE__ */ $("div", { className: "ldk-famgr-subsection", children: [
|
|
18720
18723
|
/* @__PURE__ */ N("h3", { className: "ldk-famgr-subsection-title", children: c("多候选类型") }),
|
|
18721
18724
|
e.contested.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(当前没有多候选的类型)") }) : e.contested.map((w) => /* @__PURE__ */ N(
|
|
18722
|
-
|
|
18725
|
+
lb,
|
|
18723
18726
|
{
|
|
18724
18727
|
row: w,
|
|
18725
18728
|
onPick: u,
|
|
@@ -18731,7 +18734,7 @@ function nb({
|
|
|
18731
18734
|
/* @__PURE__ */ $("div", { className: "ldk-famgr-subsection", children: [
|
|
18732
18735
|
/* @__PURE__ */ N("h3", { className: "ldk-famgr-subsection-title", children: c("按插件浏览") }),
|
|
18733
18736
|
e.cards.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(没有声明了文件类型的插件)") }) : e.cards.map((w) => /* @__PURE__ */ N(
|
|
18734
|
-
|
|
18737
|
+
fb,
|
|
18735
18738
|
{
|
|
18736
18739
|
card: w,
|
|
18737
18740
|
expanded: !!d[w.pluginId],
|
|
@@ -18749,7 +18752,7 @@ function nb({
|
|
|
18749
18752
|
] })
|
|
18750
18753
|
] });
|
|
18751
18754
|
}
|
|
18752
|
-
function
|
|
18755
|
+
function fb({
|
|
18753
18756
|
card: e,
|
|
18754
18757
|
expanded: t,
|
|
18755
18758
|
onToggle: n,
|
|
@@ -18761,7 +18764,7 @@ function fT({
|
|
|
18761
18764
|
gearItems: l,
|
|
18762
18765
|
rowGearItems: c
|
|
18763
18766
|
}) {
|
|
18764
|
-
const { t: f } = Ae(), d =
|
|
18767
|
+
const { t: f } = Ae(), d = sb(ab(e.rows, u), i), m = i.trim();
|
|
18765
18768
|
return /* @__PURE__ */ N(
|
|
18766
18769
|
qg,
|
|
18767
18770
|
{
|
|
@@ -18789,9 +18792,9 @@ function fT({
|
|
|
18789
18792
|
expanded: t,
|
|
18790
18793
|
onToggle: (h) => n(e.pluginId, h),
|
|
18791
18794
|
...l ? { gearItems: [...l] } : {},
|
|
18792
|
-
...t && e.rows.length >=
|
|
18795
|
+
...t && e.rows.length >= cb ? {
|
|
18793
18796
|
toolbar: /* @__PURE__ */ N(
|
|
18794
|
-
|
|
18797
|
+
hb,
|
|
18795
18798
|
{
|
|
18796
18799
|
pluginId: e.pluginId,
|
|
18797
18800
|
total: e.rows.length,
|
|
@@ -18807,7 +18810,7 @@ function fT({
|
|
|
18807
18810
|
// 过滤 0 命中:一行 muted 文案(⛔ 不带清空入口——清空靠删字或 Esc)
|
|
18808
18811
|
/* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: f("没有匹配的类型") })
|
|
18809
18812
|
) : d.map((h) => /* @__PURE__ */ N(
|
|
18810
|
-
|
|
18813
|
+
tb,
|
|
18811
18814
|
{
|
|
18812
18815
|
row: h,
|
|
18813
18816
|
onPick: r,
|
|
@@ -18819,7 +18822,7 @@ function fT({
|
|
|
18819
18822
|
}
|
|
18820
18823
|
);
|
|
18821
18824
|
}
|
|
18822
|
-
function
|
|
18825
|
+
function hb({
|
|
18823
18826
|
pluginId: e,
|
|
18824
18827
|
total: t,
|
|
18825
18828
|
hitCount: n,
|
|
@@ -18828,7 +18831,7 @@ function hT({
|
|
|
18828
18831
|
onCardFilter: u,
|
|
18829
18832
|
onCardSort: a
|
|
18830
18833
|
}) {
|
|
18831
|
-
const { t: s } = Ae(), l = ie((h) => u(e, h), [u, e]), { value: c, onChange: f, onClear: d } = Wg(l,
|
|
18834
|
+
const { t: s } = Ae(), l = ie((h) => u(e, h), [u, e]), { value: c, onChange: f, onClear: d } = Wg(l, db), m = Me(
|
|
18832
18835
|
() => [
|
|
18833
18836
|
{ value: "alpha", label: s("按字母序") },
|
|
18834
18837
|
{ value: "declared", label: s("按默认排序") }
|
|
@@ -18866,69 +18869,69 @@ function hT({
|
|
|
18866
18869
|
] });
|
|
18867
18870
|
}
|
|
18868
18871
|
export {
|
|
18869
|
-
$
|
|
18872
|
+
$b as BackgroundImagePicker,
|
|
18870
18873
|
Hr as Badge,
|
|
18871
18874
|
In as Button,
|
|
18872
18875
|
yn as CONFIG_NONE_SENTINEL,
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18876
|
+
tb as CardRow,
|
|
18877
|
+
Xb as ColorField,
|
|
18878
|
+
_b as ColorPicker,
|
|
18879
|
+
Ab as Combobox,
|
|
18880
|
+
lb as ContestedRow,
|
|
18878
18881
|
li as ContextMenu,
|
|
18879
18882
|
lg as DEFAULT_PLUGIN_IDENTITY_URI,
|
|
18880
|
-
|
|
18883
|
+
kb as DynamicSelect,
|
|
18881
18884
|
ho as EXT_LABEL_MAX,
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18885
|
+
jb as EffectiveBadge,
|
|
18886
|
+
Yb as FileIconResolver,
|
|
18887
|
+
Cb as FilePathInput,
|
|
18888
|
+
Sb as FontFamilySelect,
|
|
18889
|
+
Lb as FormRow,
|
|
18890
|
+
Ob as HintCard,
|
|
18888
18891
|
JE as HintTip,
|
|
18889
18892
|
sg as InlineInput,
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
|
|
18894
|
-
|
|
18895
|
-
|
|
18893
|
+
Nb as MIX_FOLLOW_THEME_SENTINEL,
|
|
18894
|
+
nT as ManagerView,
|
|
18895
|
+
Tb as MarkdownView,
|
|
18896
|
+
Db as NumberInput,
|
|
18897
|
+
Jb as ObjectEditor,
|
|
18898
|
+
Hb as OpenWithPicker,
|
|
18896
18899
|
cn as OverlayPortal,
|
|
18897
18900
|
qg as PluginCard,
|
|
18898
18901
|
lo as PluginIcon,
|
|
18899
18902
|
rg as ReadOnlyText,
|
|
18900
18903
|
WE as SETTINGS_HIDDEN_HINTS,
|
|
18901
|
-
|
|
18904
|
+
Ib as SETTINGS_RENDER_HINTS,
|
|
18902
18905
|
qE as SETTINGS_UI_HINTS,
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18906
|
+
Rb as SectionSubtitle,
|
|
18907
|
+
Kb as SegmentPreviewSwatch,
|
|
18908
|
+
Qb as SegmentPreviewText,
|
|
18909
|
+
wb as SegmentedRadio,
|
|
18907
18910
|
dn as SelectBox,
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18911
|
+
Pb as Slider,
|
|
18912
|
+
Gb as SourceBadge,
|
|
18913
|
+
Mb as StringListEditor,
|
|
18914
|
+
Fb as ThemePicker,
|
|
18915
|
+
Bb as Toggle,
|
|
18916
|
+
tT as buildManagerModel,
|
|
18917
|
+
nb as extLabelHead,
|
|
18918
|
+
eT as extractDeclaredExtensions,
|
|
18919
|
+
sb as filterRows,
|
|
18920
|
+
qb as formatEffectiveValue,
|
|
18918
18921
|
po as hitKindOf,
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
+
Vb as inferSliderStep,
|
|
18923
|
+
xb as isSettingsHiddenHint,
|
|
18924
|
+
yb as isSettingsUiHint,
|
|
18922
18925
|
di as normalizeExt,
|
|
18923
|
-
|
|
18924
|
-
|
|
18926
|
+
Zb as normalizeExtList,
|
|
18927
|
+
ab as orderRows,
|
|
18925
18928
|
co as overrideKeyOf,
|
|
18926
|
-
|
|
18929
|
+
vb as pickIdentityArt,
|
|
18927
18930
|
fo as readOverride,
|
|
18928
|
-
|
|
18931
|
+
Wb as splitStringList,
|
|
18929
18932
|
Hu as urlSourceKey,
|
|
18930
|
-
|
|
18931
|
-
|
|
18933
|
+
Ub as useClickPreview,
|
|
18934
|
+
zb as useClipboardKeys,
|
|
18932
18935
|
Wg as useDebouncedInput,
|
|
18933
18936
|
ng as useStatusPolling
|
|
18934
18937
|
};
|