@pie-element/inline-dropdown 11.0.6-next.20261018193205 → 11.0.6
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/browser/{Close-SnugsRR-.js → Close-C9TW5P5n.js} +543 -543
- package/dist/browser/Close-C9TW5P5n.js.map +1 -0
- package/dist/browser/author/index.js +2 -2
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{Close-CposMqeo.js → Close-CxbANkRj.js} +543 -543
- package/dist/browser/editor-runtime/Close-CxbANkRj.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BymmkoDr.js → mathjax-DqXi3q4c-iuQQkXxN.js} +3 -3
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BymmkoDr.js.map → mathjax-DqXi3q4c-iuQQkXxN.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-ncPHVakS.js → mathjax-DqXi3q4c-BZrO4NBZ.js} +3 -3
- package/dist/browser/{mathjax-CptWnMbQ-ncPHVakS.js.map → mathjax-DqXi3q4c-BZrO4NBZ.js.map} +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/package.json +15 -15
- package/dist/browser/Close-SnugsRR-.js.map +0 -1
- package/dist/browser/editor-runtime/Close-CposMqeo.js.map +0 -1
|
@@ -9,7 +9,7 @@ var x;
|
|
|
9
9
|
function S() {
|
|
10
10
|
return x;
|
|
11
11
|
}
|
|
12
|
-
var C = import("./mathjax-
|
|
12
|
+
var C = import("./mathjax-DqXi3q4c-BZrO4NBZ.js");
|
|
13
13
|
C.catch(() => {});
|
|
14
14
|
async function w(e, t) {
|
|
15
15
|
let { createMathJax: n } = await C;
|
|
@@ -20,73 +20,73 @@ function ee() {
|
|
|
20
20
|
let e = globalThis;
|
|
21
21
|
return e[E] = (e[E] ?? 0) + 1, e[E];
|
|
22
22
|
}
|
|
23
|
-
var te = ee(), D = `PIE-MJX-CHTML-styles-${te}`, O = ["MJX-CHTML-styles"], ne = "http://www.w3.org/1998/Math/MathML", re = /^([a-z_][\w.-]*):math$/,
|
|
24
|
-
function
|
|
23
|
+
var te = ee(), D = `PIE-MJX-CHTML-styles-${te}`, O = ["MJX-CHTML-styles"], ne = "http://www.w3.org/1998/Math/MathML", re = /^([a-z_][\w.-]*):math$/, ie = /^[a-z][a-z0-9-]*$/;
|
|
24
|
+
function k(e) {
|
|
25
25
|
for (let t of e.querySelectorAll("*")) {
|
|
26
26
|
let n = re.exec(t.tagName.toLowerCase())?.[1];
|
|
27
|
-
!n || !e.contains(t) || t.closest("mjx-container") || t.replaceWith(
|
|
27
|
+
!n || !e.contains(t) || t.closest("mjx-container") || t.replaceWith(A(t, `${n}:`));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function A(e, t) {
|
|
31
31
|
let n = e.tagName.toLowerCase().slice(t.length);
|
|
32
|
-
if (!
|
|
32
|
+
if (!ie.test(n)) return e;
|
|
33
33
|
let r = e.ownerDocument.createElementNS(ne, n);
|
|
34
34
|
for (let t of e.attributes) r.setAttribute(t.name, t.value);
|
|
35
35
|
for (let n of [...e.childNodes]) {
|
|
36
36
|
let e = n instanceof Element && n.tagName.toLowerCase().startsWith(t);
|
|
37
|
-
r.appendChild(e ?
|
|
37
|
+
r.appendChild(e ? A(n, t) : n);
|
|
38
38
|
}
|
|
39
39
|
return r;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var ae = /* @__PURE__ */ new Set([
|
|
42
42
|
"updiagonalstrike",
|
|
43
43
|
"downdiagonalstrike",
|
|
44
44
|
"verticalstrike",
|
|
45
45
|
"horizontalstrike"
|
|
46
|
-
]),
|
|
46
|
+
]), j = {
|
|
47
47
|
thin: "0.035em",
|
|
48
48
|
medium: "0.07em",
|
|
49
49
|
thick: "0.14em"
|
|
50
|
-
},
|
|
50
|
+
}, oe = {
|
|
51
51
|
tight: "0em",
|
|
52
52
|
medium: "0.1em",
|
|
53
53
|
loose: "0.2em"
|
|
54
|
-
},
|
|
54
|
+
}, se = /^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/, M = /^(#[0-9a-f]{3,8}|[a-z]+)$/i, ce = /^(\d+(\.\d*)?|\.\d+)$/, le = /* @__PURE__ */ new Set([
|
|
55
55
|
"mn",
|
|
56
56
|
"mo",
|
|
57
57
|
"mi",
|
|
58
58
|
"mtext"
|
|
59
|
-
]),
|
|
59
|
+
]), ue = /* @__PURE__ */ new Set([
|
|
60
60
|
"stackalign",
|
|
61
61
|
"charalign",
|
|
62
62
|
"charspacing",
|
|
63
63
|
"longdivstyle"
|
|
64
64
|
]);
|
|
65
|
-
function
|
|
65
|
+
function N(e, t, n = [], r = {}) {
|
|
66
66
|
let i = e.createElementNS(ne, t);
|
|
67
67
|
for (let [e, t] of Object.entries(r)) i.setAttribute(e, t);
|
|
68
68
|
for (let e of n) e && i.appendChild(e);
|
|
69
69
|
return i;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
let n =
|
|
71
|
+
function de(e, t) {
|
|
72
|
+
let n = N(e.document, "mo");
|
|
73
73
|
return n.textContent = t, n;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
let t =
|
|
77
|
-
return t.textContent = "0",
|
|
75
|
+
function fe(e) {
|
|
76
|
+
let t = N(e.document, "mn");
|
|
77
|
+
return t.textContent = "0", N(e.document, "mphantom", [t]);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function pe(e, t) {
|
|
80
80
|
return e.getAttribute(t)?.trim().toLowerCase() || void 0;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function me(e, t) {
|
|
83
83
|
let n = Number.parseInt(e.getAttribute(t) ?? "", 10);
|
|
84
84
|
return Number.isFinite(n) ? n : 0;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function he(e) {
|
|
87
87
|
return e.localName === "none" || e.localName === "mrow" && e.children.length === 0 && !e.textContent?.trim();
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function P(e, t, n = e) {
|
|
90
90
|
switch (t) {
|
|
91
91
|
case "left": return 0;
|
|
92
92
|
case "center": return Math.floor(e / 2);
|
|
@@ -94,14 +94,14 @@ function F(e, t, n = e) {
|
|
|
94
94
|
default: return n;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ge(e, t, n) {
|
|
98
98
|
let r = [], i, a, o = (e, t) => {
|
|
99
99
|
let s = (e) => t.reduceRight((e, t) => {
|
|
100
100
|
let n = t.cloneNode(!1);
|
|
101
101
|
return n.appendChild(e), n;
|
|
102
102
|
}, e);
|
|
103
103
|
if (e.localName === "mstyle") for (let n of [...e.children]) o(n, [...t, e]);
|
|
104
|
-
else if (
|
|
104
|
+
else if (he(e)) r.push(null);
|
|
105
105
|
else if (e.localName === "mn" && e.children.length === 0) {
|
|
106
106
|
let t = [...(e.textContent ?? "").trim()];
|
|
107
107
|
for (let a of t) {
|
|
@@ -110,28 +110,28 @@ function he(e, t, n) {
|
|
|
110
110
|
t.textContent = a, r.push(s(t));
|
|
111
111
|
}
|
|
112
112
|
t.length && (a ??= r.length);
|
|
113
|
-
} else
|
|
113
|
+
} else le.has(e.localName) && e.textContent?.trim() === n.decimalPoint && (i ??= r.length), r.push(s(e));
|
|
114
114
|
};
|
|
115
115
|
for (let t of e) o(t, []);
|
|
116
116
|
return {
|
|
117
117
|
kind: "digits",
|
|
118
118
|
cells: r,
|
|
119
|
-
anchor:
|
|
119
|
+
anchor: P(r.length, n.stackAlign, i ?? a),
|
|
120
120
|
position: t
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return (e ?? "").toLowerCase().split(/\s+/).filter((e) =>
|
|
123
|
+
function F(e) {
|
|
124
|
+
return (e ?? "").toLowerCase().split(/\s+/).filter((e) => ae.has(e));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
let n = [...e.children].filter((e) => !
|
|
128
|
-
return n.length <= 1 ? n[0] ?? null :
|
|
126
|
+
function _e(e, t) {
|
|
127
|
+
let n = [...e.children].filter((e) => !he(e));
|
|
128
|
+
return n.length <= 1 ? n[0] ?? null : N(t.document, "mrow", n);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
let r =
|
|
132
|
-
content:
|
|
133
|
-
location:
|
|
134
|
-
crossout: e.hasAttribute("crossout") ?
|
|
130
|
+
function ve(e, t, n) {
|
|
131
|
+
let r = pe(e, "location") ?? "n", i = F(e.getAttribute("crossout")), a = [...e.children].map((e) => he(e) ? null : e.localName === "mscarry" ? {
|
|
132
|
+
content: _e(e, n),
|
|
133
|
+
location: pe(e, "location") ?? r,
|
|
134
|
+
crossout: e.hasAttribute("crossout") ? F(e.getAttribute("crossout")) : i
|
|
135
135
|
} : {
|
|
136
136
|
content: e,
|
|
137
137
|
location: r,
|
|
@@ -140,60 +140,60 @@ function _e(e, t, n) {
|
|
|
140
140
|
return {
|
|
141
141
|
kind: "carries",
|
|
142
142
|
carries: a,
|
|
143
|
-
anchor:
|
|
143
|
+
anchor: P(a.length, n.stackAlign),
|
|
144
144
|
position: t,
|
|
145
|
-
scale:
|
|
145
|
+
scale: ce.test(o) ? o : "0.6"
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
let t =
|
|
150
|
-
return `${n} solid ${
|
|
148
|
+
function ye(e) {
|
|
149
|
+
let t = pe(e, "mslinethickness") ?? "medium", n = j[t] ?? (se.test(t) ? t : "0.07em"), r = e.getAttribute("mathcolor")?.trim() ?? "";
|
|
150
|
+
return `${n} solid ${M.test(r) ? r : "currentColor"}`;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
let r = Math.max(0,
|
|
152
|
+
function be(e, t, n) {
|
|
153
|
+
let r = Math.max(0, me(e, "length"));
|
|
154
154
|
return {
|
|
155
155
|
kind: "line",
|
|
156
156
|
length: r,
|
|
157
|
-
anchor:
|
|
157
|
+
anchor: P(r, n.stackAlign),
|
|
158
158
|
position: t,
|
|
159
|
-
border:
|
|
159
|
+
border: ye(e)
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function xe(e, t, n, r, i) {
|
|
163
163
|
e.forEach((e, a) => {
|
|
164
|
-
let o = t + a * n +
|
|
164
|
+
let o = t + a * n + me(e, "position");
|
|
165
165
|
switch (e.localName) {
|
|
166
166
|
case "msgroup":
|
|
167
|
-
|
|
167
|
+
xe([...e.children], o, me(e, "shift"), r, i);
|
|
168
168
|
break;
|
|
169
169
|
case "msline":
|
|
170
|
-
i.push(
|
|
170
|
+
i.push(be(e, o, r));
|
|
171
171
|
break;
|
|
172
172
|
case "mscarries":
|
|
173
|
-
i.push(
|
|
173
|
+
i.push(ve(e, o, r));
|
|
174
174
|
break;
|
|
175
175
|
case "msrow":
|
|
176
176
|
case "mrow":
|
|
177
|
-
i.push(
|
|
177
|
+
i.push(ge([...e.children], o, r));
|
|
178
178
|
break;
|
|
179
|
-
default: i.push(
|
|
179
|
+
default: i.push(ge([e], o, r));
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Se(e) {
|
|
184
184
|
return -e.anchor - e.position;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Ce(e) {
|
|
187
187
|
return e.kind === "digits" ? e.cells.length : e.kind === "carries" ? e.carries.length : e.length;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
189
|
+
function we(e) {
|
|
190
|
+
return Se(e) + Ce(e) - 1;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
let i = (e) =>
|
|
192
|
+
function Te(e, t, n, r) {
|
|
193
|
+
let i = (e) => N(r.document, "mpadded", [t], {
|
|
194
194
|
width: "0",
|
|
195
195
|
...e ? { lspace: e } : {}
|
|
196
|
-
}), a = (e, t) =>
|
|
196
|
+
}), a = (e, t) => N(r.document, e, t);
|
|
197
197
|
switch (n) {
|
|
198
198
|
case "s": return a("munder", [e, i("-0.5width")]);
|
|
199
199
|
case "ne": return a("msup", [e, i()]);
|
|
@@ -215,49 +215,49 @@ function we(e, t, n, r) {
|
|
|
215
215
|
default: return a("mover", [e, i("-0.5width")]);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
let r =
|
|
218
|
+
function Ee(e, t, n) {
|
|
219
|
+
let r = N(n.document, "menclose", [e], {
|
|
220
220
|
notation: t.join(" "),
|
|
221
221
|
"data-padding": "0.1em",
|
|
222
222
|
"data-thickness": "0.067em"
|
|
223
223
|
}), i = t.some((e) => e.endsWith("diagonalstrike")) ? .167 : t.includes("horizontalstrike") ? .1 : 0;
|
|
224
|
-
return i ?
|
|
224
|
+
return i ? N(n.document, "mpadded", [r], {
|
|
225
225
|
lspace: `-${i}em`,
|
|
226
226
|
width: `-${2 * i}em`
|
|
227
227
|
}) : r;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
let a = e && t.crossout.length ?
|
|
229
|
+
function De(e, t, n, r, i) {
|
|
230
|
+
let a = e && t.crossout.length ? Ee(e, t.crossout, i) : e;
|
|
231
231
|
if (!t.content) return a;
|
|
232
|
-
let o =
|
|
233
|
-
return
|
|
232
|
+
let o = N(i.document, "mstyle", [t.content], { scriptsizemultiplier: r });
|
|
233
|
+
return Te(a ?? fe(i), o, n, i);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
return e.carries[t -
|
|
235
|
+
function Oe(e, t) {
|
|
236
|
+
return e.carries[t - Se(e)] ?? null;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ke(e, t, n, r) {
|
|
239
239
|
let i = e.content;
|
|
240
240
|
n.forEach((e, a) => {
|
|
241
|
-
let o = n.length - 1 - a, s = n[o], c =
|
|
241
|
+
let o = n.length - 1 - a, s = n[o], c = Oe(s, t), l = n.slice(0, o).some((e) => Oe(e, t));
|
|
242
242
|
if (!c && !l) return;
|
|
243
243
|
let u = c ?? {
|
|
244
|
-
content:
|
|
244
|
+
content: fe(r),
|
|
245
245
|
location: "n",
|
|
246
246
|
crossout: []
|
|
247
247
|
}, d = a === 0 ? u.location : "n";
|
|
248
|
-
i =
|
|
248
|
+
i = De(i, u, d, s.scale, r);
|
|
249
249
|
}), e.content = i;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
let n = e.filter((e) =>
|
|
251
|
+
function Ae(e, t) {
|
|
252
|
+
let n = e.filter((e) => Ce(e) > 0), r = Math.min(0, ...n.map(Se)), i = Math.max(r, ...n.map(we)) - r + 1, a = -r, o = [], s = /* @__PURE__ */ new Map(), c = () => Array.from({ length: i }, () => ({
|
|
253
253
|
content: null,
|
|
254
254
|
borders: {}
|
|
255
|
-
})), l = (e) => e.length === 0 ? Array.from({ length: i }, (e, t) => t) : Array.from({ length: e.length }, (t, n) => a +
|
|
255
|
+
})), l = (e) => e.length === 0 ? Array.from({ length: i }, (e, t) => t) : Array.from({ length: e.length }, (t, n) => a + Se(e) + n), u = [], d = [], f = (e) => {
|
|
256
256
|
let n = c();
|
|
257
257
|
e.cells.forEach((t, r) => {
|
|
258
|
-
n[a +
|
|
258
|
+
n[a + Se(e) + r].content = t;
|
|
259
259
|
}), u.length && n.forEach((e, n) => {
|
|
260
|
-
|
|
260
|
+
ke(e, n - a, u, t);
|
|
261
261
|
});
|
|
262
262
|
for (let e of d) for (let t of l(e)) n[t].borders.top = e.border;
|
|
263
263
|
u = [], d = [], s.set(e, o.length), o.push(n);
|
|
@@ -277,44 +277,44 @@ function ke(e, t) {
|
|
|
277
277
|
origin: a
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
let r =
|
|
280
|
+
function je(e, { rows: t }, n) {
|
|
281
|
+
let r = N(n.document, "mtable", t.map((e) => N(n.document, "mtr", e.map((e) => {
|
|
282
282
|
let t = Object.entries(e.borders).map(([e, t]) => `border-${e}:${t}`).join(";");
|
|
283
|
-
return
|
|
283
|
+
return N(n.document, "mtd", [e.content], {
|
|
284
284
|
...t ? { style: t } : {},
|
|
285
285
|
...e.align ? { columnalign: e.align } : {}
|
|
286
286
|
});
|
|
287
287
|
}))));
|
|
288
|
-
for (let { name: t, value: n } of [...e.attributes])
|
|
289
|
-
let i =
|
|
290
|
-
return r.setAttribute("columnspacing",
|
|
288
|
+
for (let { name: t, value: n } of [...e.attributes]) ue.has(t) || r.setAttribute(t, n);
|
|
289
|
+
let i = pe(e, "charspacing") ?? "medium", a = pe(e, "charalign");
|
|
290
|
+
return r.setAttribute("columnspacing", oe[i] ?? (se.test(i) ? i : oe.medium)), r.setAttribute("columnalign", a === "left" || a === "center" ? a : "right"), r.setAttribute("rowspacing", "0"), r.setAttribute("align", e.getAttribute("align") ?? "baseline"), r;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Me(e) {
|
|
293
293
|
return {
|
|
294
294
|
document: e.ownerDocument,
|
|
295
|
-
stackAlign:
|
|
295
|
+
stackAlign: pe(e, "stackalign") ?? "decimalpoint",
|
|
296
296
|
decimalPoint: e.closest("[decimalpoint]")?.getAttribute("decimalpoint")?.trim().charAt(0) || "."
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
let t =
|
|
301
|
-
return
|
|
299
|
+
function Ne(e) {
|
|
300
|
+
let t = Me(e), n = [];
|
|
301
|
+
return xe([...e.children], 0, 0, t, n), je(e, Ae(n, t), t);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Pe(e, t, n, r, i, a) {
|
|
304
304
|
for (let o = n; o <= r; o++) e[t][o].borders[i] = a;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
let n =
|
|
308
|
-
return n.setAttribute("minsize", "1.2em"), [
|
|
306
|
+
function Fe(e, t) {
|
|
307
|
+
let n = de(t, ")");
|
|
308
|
+
return n.setAttribute("minsize", "1.2em"), [N(t.document, "mrow", [e, N(t.document, "mspace", [], { width: "0.2em" })]), N(t.document, "mpadded", [n], {
|
|
309
309
|
voffset: "0.1em",
|
|
310
310
|
lspace: "-0.15em",
|
|
311
311
|
depth: "-0.2em",
|
|
312
312
|
height: "-0.2em"
|
|
313
313
|
})];
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
let t =
|
|
317
|
-
|
|
315
|
+
function Ie(e) {
|
|
316
|
+
let t = Me(e), [n, r, ...i] = [...e.children], a = n && !he(n) ? n : null, o = r && !he(r) ? r : null, s = pe(e, "longdivstyle") ?? "lefttop", c = ye(e), l = [];
|
|
317
|
+
xe(i, 0, 0, t, l);
|
|
318
318
|
let u = l.find((e) => e.kind === "digits");
|
|
319
319
|
u || (u = {
|
|
320
320
|
kind: "digits",
|
|
@@ -326,51 +326,51 @@ function Fe(e) {
|
|
|
326
326
|
u.cells.unshift(...e), u.anchor += e.length;
|
|
327
327
|
}, p = (...e) => {
|
|
328
328
|
let n = e.flatMap((e) => e ? e.localName === "mrow" ? [...e.children] : [e] : []);
|
|
329
|
-
u.cells.push(...
|
|
329
|
+
u.cells.push(...ge(n, 0, t).cells);
|
|
330
330
|
};
|
|
331
331
|
switch (s) {
|
|
332
332
|
case "left/\\right":
|
|
333
|
-
f(a,
|
|
333
|
+
f(a, de(t, "/")), p(de(t, "\\"), o);
|
|
334
334
|
break;
|
|
335
335
|
case "left)(right":
|
|
336
|
-
f(a,
|
|
336
|
+
f(a, de(t, ")")), p(de(t, "("), o);
|
|
337
337
|
break;
|
|
338
338
|
case ":right=right":
|
|
339
|
-
p(
|
|
339
|
+
p(de(t, ":"), a, de(t, "="), o);
|
|
340
340
|
break;
|
|
341
341
|
case "righttop":
|
|
342
342
|
case "stackedleftlinetop":
|
|
343
343
|
case "lefttop":
|
|
344
|
-
o &&
|
|
344
|
+
o && xe([o], 0, 0, t, d), l.splice(l.indexOf(u), 0, ...d), s === "righttop" ? p(a) : s === "stackedleftlinetop" ? f(a) : f(...Fe(a, t));
|
|
345
345
|
break;
|
|
346
346
|
}
|
|
347
|
-
let m =
|
|
347
|
+
let m = Ae(l, t), h = m.rows, g = m.rowOf.get(u) ?? 0, _ = (e) => m.origin + Se(u) + e, v = Math.max(_(u.cells.length - 1), ...d.map((e) => m.origin + we(e)));
|
|
348
348
|
switch (s) {
|
|
349
349
|
case "left/\\right":
|
|
350
350
|
case "left)(right":
|
|
351
351
|
case ":right=right": break;
|
|
352
352
|
case "righttop": {
|
|
353
353
|
let e = h[g][_(u.cells.length - 1)];
|
|
354
|
-
e.borders.left = c, e.borders.bottom = c,
|
|
354
|
+
e.borders.left = c, e.borders.bottom = c, Pe(h, g, _(0), _(u.cells.length - 1), "top", c);
|
|
355
355
|
break;
|
|
356
356
|
}
|
|
357
357
|
case "stackedleftlinetop": {
|
|
358
358
|
let e = h[g][_(0)];
|
|
359
|
-
e.borders.right = c, e.borders.bottom = c,
|
|
359
|
+
e.borders.right = c, e.borders.bottom = c, Pe(h, g, _(1), v, "top", c);
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
362
|
case "stackedrightright":
|
|
363
363
|
case "mediumstackedrightright":
|
|
364
364
|
case "shortstackedrightright":
|
|
365
365
|
case "stackedleftleft":
|
|
366
|
-
|
|
366
|
+
Le(h, g, s, a, o, c, t);
|
|
367
367
|
break;
|
|
368
|
-
default:
|
|
368
|
+
default: Pe(h, g, _(1), v, "top", c);
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return je(e, m, t);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
let s = n === "stackedleftleft", c = s ? "right" : "left", l = (e) => e &&
|
|
372
|
+
function Le(e, t, n, r, i, a, o) {
|
|
373
|
+
let s = n === "stackedleftleft", c = s ? "right" : "left", l = (e) => e && N(o.document, "mpadded", [e], {
|
|
374
374
|
lspace: "0.2em",
|
|
375
375
|
width: "+0.4em"
|
|
376
376
|
});
|
|
@@ -389,77 +389,77 @@ function Ie(e, t, n, r, i, a, o) {
|
|
|
389
389
|
}) : o === t + 1 ? (u.content = l(i), n !== "shortstackedrightright" && (u.borders[c] = a)) : o > t + 1 && (n === "stackedrightright" || s) && (u.borders[c] = a), s ? e.unshift(u) : e.push(u);
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
for (let t of [...e.querySelectorAll("mstack, mlongdiv")]) !t.closest("math") || t.closest("mjx-container") || t.replaceWith(t.localName === "mstack" ?
|
|
392
|
+
function Re(e) {
|
|
393
|
+
for (let t of [...e.querySelectorAll("mstack, mlongdiv")]) !t.closest("math") || t.closest("mjx-container") || t.replaceWith(t.localName === "mstack" ? Ne(t) : Ie(t));
|
|
394
394
|
}
|
|
395
|
-
var
|
|
395
|
+
var ze = "PIE-MJX-explorer-styles", Be = "var(--pie-text, black)", Ve = "var(--pie-background, #ffffff)", He = "var(--pie-border-dark, #66686A)", Ue = "var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))", We = `color-mix(in srgb, ${Ue} 15%, transparent)`, Ge = `
|
|
396
396
|
:root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
|
|
397
|
-
color: ${
|
|
398
|
-
fill: ${
|
|
397
|
+
color: ${Be} !important;
|
|
398
|
+
fill: ${Be} !important;
|
|
399
399
|
}
|
|
400
400
|
:root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
|
|
401
|
-
background-color: ${
|
|
401
|
+
background-color: ${We} !important;
|
|
402
402
|
}
|
|
403
403
|
:root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
|
|
404
|
-
fill: ${
|
|
404
|
+
fill: ${We} !important;
|
|
405
405
|
}
|
|
406
406
|
:root mjx-container .mjx-selected {
|
|
407
|
-
outline: 2px solid ${
|
|
407
|
+
outline: 2px solid ${Ue} !important;
|
|
408
408
|
}
|
|
409
409
|
:root mjx-container [data-sre-highlight-2] {
|
|
410
|
-
color: ${
|
|
410
|
+
color: ${Be} !important;
|
|
411
411
|
background-color: transparent !important;
|
|
412
|
-
fill: ${
|
|
413
|
-
outline: 2px dashed ${
|
|
412
|
+
fill: ${Be} !important;
|
|
413
|
+
outline: 2px dashed ${Ue} !important;
|
|
414
414
|
}
|
|
415
415
|
:root mjx-container rect[data-sre-highlight-2] {
|
|
416
416
|
fill: transparent !important;
|
|
417
|
-
stroke: ${
|
|
417
|
+
stroke: ${Ue} !important;
|
|
418
418
|
stroke-width: 2px !important;
|
|
419
419
|
vector-effect: non-scaling-stroke;
|
|
420
420
|
}
|
|
421
421
|
:root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
|
|
422
|
-
color: ${
|
|
423
|
-
background-color: ${
|
|
424
|
-
border-color: ${
|
|
422
|
+
color: ${Be} !important;
|
|
423
|
+
background-color: ${Ve} !important;
|
|
424
|
+
border-color: ${He} !important;
|
|
425
425
|
}
|
|
426
426
|
:root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
|
|
427
|
-
color: ${
|
|
428
|
-
background-color: ${
|
|
427
|
+
color: ${Be} !important;
|
|
428
|
+
background-color: ${We} !important;
|
|
429
429
|
}
|
|
430
430
|
`;
|
|
431
|
-
function
|
|
431
|
+
function Ke(e = document) {
|
|
432
432
|
if (e.getElementById("PIE-MJX-explorer-styles")) return;
|
|
433
433
|
let t = e.createElement("style");
|
|
434
|
-
t.id =
|
|
434
|
+
t.id = ze, t.textContent = Ge, e.head.appendChild(t);
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var qe = /[-]/g, Je = {
|
|
437
437
|
"+": "positive",
|
|
438
438
|
"-": "negative",
|
|
439
439
|
"−": "negative",
|
|
440
440
|
"±": "plus or minus",
|
|
441
441
|
"∓": "minus or plus"
|
|
442
|
-
},
|
|
442
|
+
}, Ye = {
|
|
443
443
|
"(": "open parenthesis",
|
|
444
444
|
"[": "open bracket",
|
|
445
445
|
"{": "open brace",
|
|
446
446
|
"⟨": "open angle bracket",
|
|
447
447
|
"⌊": "open floor",
|
|
448
448
|
"⌈": "open ceiling"
|
|
449
|
-
},
|
|
449
|
+
}, Xe = {
|
|
450
450
|
")": "close parenthesis",
|
|
451
451
|
"]": "close bracket",
|
|
452
452
|
"}": "close brace",
|
|
453
453
|
"⟩": "close angle bracket",
|
|
454
454
|
"⌋": "close floor",
|
|
455
455
|
"⌉": "close ceiling"
|
|
456
|
-
},
|
|
456
|
+
}, Ze = {
|
|
457
457
|
"!": "factorial",
|
|
458
458
|
"%": "percent",
|
|
459
459
|
"°": "degrees",
|
|
460
460
|
"′": "prime",
|
|
461
461
|
"″": "double prime"
|
|
462
|
-
},
|
|
462
|
+
}, Qe = {
|
|
463
463
|
"+": "plus",
|
|
464
464
|
"-": "minus",
|
|
465
465
|
"−": "minus",
|
|
@@ -503,16 +503,16 @@ var Ke = /[-]/g, qe = {
|
|
|
503
503
|
":": "colon",
|
|
504
504
|
"|": "vertical bar",
|
|
505
505
|
"‖": "double vertical bar",
|
|
506
|
-
...Je,
|
|
507
506
|
...Ye,
|
|
508
|
-
...Xe
|
|
509
|
-
|
|
507
|
+
...Xe,
|
|
508
|
+
...Ze
|
|
509
|
+
}, $e = /* @__PURE__ */ new Set(["|", "‖"]), et = /* @__PURE__ */ new Set([
|
|
510
510
|
"∑",
|
|
511
511
|
"∏",
|
|
512
512
|
"∫",
|
|
513
513
|
"∪",
|
|
514
514
|
"∩"
|
|
515
|
-
]),
|
|
515
|
+
]), tt = {
|
|
516
516
|
α: "alpha",
|
|
517
517
|
β: "beta",
|
|
518
518
|
γ: "gamma",
|
|
@@ -539,7 +539,7 @@ var Ke = /[-]/g, qe = {
|
|
|
539
539
|
cot: "cotangent",
|
|
540
540
|
ln: "natural log",
|
|
541
541
|
lim: "limit"
|
|
542
|
-
},
|
|
542
|
+
}, nt = {
|
|
543
543
|
"¯": "bar",
|
|
544
544
|
"‾": "bar",
|
|
545
545
|
"―": "bar",
|
|
@@ -550,20 +550,20 @@ var Ke = /[-]/g, qe = {
|
|
|
550
550
|
"→": "vector",
|
|
551
551
|
"⃗": "vector",
|
|
552
552
|
"˙": "dot"
|
|
553
|
-
},
|
|
554
|
-
function
|
|
553
|
+
}, rt = (e) => (e.textContent ?? "").replace(qe, "").replace(/\s+/g, " ").trim(), it = (e) => e.replace(/\s+/g, " ").trim(), at = (e) => [...e.children];
|
|
554
|
+
function ot(e) {
|
|
555
555
|
return !e || [
|
|
556
556
|
"mn",
|
|
557
557
|
"mi",
|
|
558
558
|
"mtext",
|
|
559
559
|
"mo"
|
|
560
|
-
].includes(e.localName) ? !0 : ["mrow", "mstyle"].includes(e.localName) && e.children.length === 1 ?
|
|
560
|
+
].includes(e.localName) ? !0 : ["mrow", "mstyle"].includes(e.localName) && e.children.length === 1 ? ot(e.children[0]) : !1;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
let t = e ?
|
|
562
|
+
function st(e) {
|
|
563
|
+
let t = e ? rt(e) : "";
|
|
564
564
|
return /^\d{1,3}$/.test(t) ? Number(t) : void 0;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function I(e) {
|
|
567
567
|
return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
|
|
568
568
|
1: "st",
|
|
569
569
|
2: "nd",
|
|
@@ -571,10 +571,10 @@ function st(e) {
|
|
|
571
571
|
}[e % 10] ?? "th"}`;
|
|
572
572
|
}
|
|
573
573
|
function ct(e) {
|
|
574
|
-
return
|
|
574
|
+
return tt[e] ?? e;
|
|
575
575
|
}
|
|
576
576
|
function lt(e) {
|
|
577
|
-
return
|
|
577
|
+
return Qe[e] ?? e;
|
|
578
578
|
}
|
|
579
579
|
function ut(e) {
|
|
580
580
|
let t = [], n = !1;
|
|
@@ -583,53 +583,53 @@ function ut(e) {
|
|
|
583
583
|
t.push(L(r)), n = !0;
|
|
584
584
|
continue;
|
|
585
585
|
}
|
|
586
|
-
let e =
|
|
587
|
-
e && (!n &&
|
|
586
|
+
let e = rt(r);
|
|
587
|
+
e && (!n && Je[e] ? t.push(Je[e]) : e in Ze ? t.push(Ze[e]) : (t.push(lt(e)), n = e in Xe || $e.has(e) && n));
|
|
588
588
|
}
|
|
589
589
|
return t.filter(Boolean).join(" ");
|
|
590
590
|
}
|
|
591
591
|
function dt(e) {
|
|
592
|
-
let [t, ...n] = e, r = n[n.length - 1], i = (e) => e?.localName === "mo" && ["|", "‖"].includes(
|
|
593
|
-
if (a.length && i(t) && i(r) &&
|
|
594
|
-
let e =
|
|
595
|
-
return
|
|
592
|
+
let [t, ...n] = e, r = n[n.length - 1], i = (e) => e?.localName === "mo" && ["|", "‖"].includes(rt(e)), a = n.slice(0, -1);
|
|
593
|
+
if (a.length && i(t) && i(r) && rt(t) === rt(r) && !a.some(i)) {
|
|
594
|
+
let e = it(ut(a));
|
|
595
|
+
return rt(t) === "|" ? `absolute value of ${e} end absolute value` : `norm of ${e} end norm`;
|
|
596
596
|
}
|
|
597
597
|
return ut(e);
|
|
598
598
|
}
|
|
599
599
|
function ft(e, t) {
|
|
600
600
|
let n = e ? L(e) : "", r = t ? L(t) : "";
|
|
601
|
-
return
|
|
601
|
+
return ot(e) && ot(t) ? `${n} over ${r}` : `the fraction with numerator ${n} and denominator ${r}`;
|
|
602
602
|
}
|
|
603
603
|
function pt(e, t, n) {
|
|
604
604
|
return n ? `${t} of ${e}` : `${t} of ${e} end root`;
|
|
605
605
|
}
|
|
606
606
|
function mt(e, t) {
|
|
607
|
-
let n = t ?
|
|
608
|
-
if (t &&
|
|
607
|
+
let n = t ? rt(t) : "";
|
|
608
|
+
if (t && ot(t)) {
|
|
609
609
|
if (n === "2") return `${e} squared`;
|
|
610
610
|
if (n === "3") return `${e} cubed`;
|
|
611
|
-
if (n in
|
|
611
|
+
if (n in Ze) return `${e} ${Ze[n]}`;
|
|
612
612
|
}
|
|
613
613
|
let r = t ? L(t) : "";
|
|
614
|
-
return
|
|
614
|
+
return ot(t) ? `${e} to the power of ${r}` : `${e} to the power of ${r} end power`;
|
|
615
615
|
}
|
|
616
616
|
function ht(e, t) {
|
|
617
617
|
let n = t ? L(t) : "";
|
|
618
|
-
return
|
|
618
|
+
return ot(t) ? `${e} sub ${n}` : `${e} sub ${n} end sub`;
|
|
619
619
|
}
|
|
620
620
|
function gt(e, t, n) {
|
|
621
|
-
let r =
|
|
621
|
+
let r = rt(e);
|
|
622
622
|
if (r === "lim") return `limit as ${t ? L(t) : ""} of`;
|
|
623
|
-
if (
|
|
623
|
+
if (!et.has(r)) return;
|
|
624
624
|
let i = t ? `from ${L(t)}` : "", a = n ? `to ${L(n)}` : "";
|
|
625
625
|
return `${lt(r)} ${i} ${a} of`;
|
|
626
626
|
}
|
|
627
627
|
function _t(e) {
|
|
628
|
-
let t =
|
|
628
|
+
let t = at(e).filter((e) => ["mtr", "mlabeledtr"].includes(e.localName)), n = t.map((e) => at(e).filter((e) => e.localName === "mtd")), r = Math.max(0, ...n.map((e) => e.length)), i = n.map((e, t) => `row ${t + 1}: ${e.map((e) => it(ut(at(e)))).join(", ")}`);
|
|
629
629
|
return `table with ${t.length} ${t.length === 1 ? "row" : "rows"} and ${r} ${r === 1 ? "column" : "columns"}. ${i.join(". ")}`;
|
|
630
630
|
}
|
|
631
631
|
function vt(e) {
|
|
632
|
-
let t = e.getAttribute("open") ?? "(", n = e.getAttribute("close") ?? ")", r = (e.getAttribute("separators") ?? ",").replace(/\s+/g, "").split(""), i =
|
|
632
|
+
let t = e.getAttribute("open") ?? "(", n = e.getAttribute("close") ?? ")", r = (e.getAttribute("separators") ?? ",").replace(/\s+/g, "").split(""), i = at(e).map((e, t, n) => t < n.length - 1 ? `${L(e)} ${lt(r[Math.min(t, r.length - 1)] ?? ",")}` : L(e));
|
|
633
633
|
return [
|
|
634
634
|
lt(t),
|
|
635
635
|
...i,
|
|
@@ -637,23 +637,23 @@ function vt(e) {
|
|
|
637
637
|
].filter(Boolean).join(" ");
|
|
638
638
|
}
|
|
639
639
|
function L(e) {
|
|
640
|
-
let t =
|
|
640
|
+
let t = at(e);
|
|
641
641
|
switch (e.localName) {
|
|
642
|
-
case "mi": return ct(
|
|
642
|
+
case "mi": return ct(rt(e));
|
|
643
643
|
case "mn":
|
|
644
644
|
case "mtext":
|
|
645
|
-
case "ms": return
|
|
646
|
-
case "mo": return lt(
|
|
645
|
+
case "ms": return rt(e);
|
|
646
|
+
case "mo": return lt(rt(e));
|
|
647
647
|
case "mspace":
|
|
648
648
|
case "mphantom":
|
|
649
649
|
case "annotation":
|
|
650
650
|
case "annotation-xml": return "";
|
|
651
651
|
case "semantics": return t[0] ? L(t[0]) : "";
|
|
652
652
|
case "mfrac": return ft(t[0], t[1]);
|
|
653
|
-
case "msqrt": return pt(
|
|
653
|
+
case "msqrt": return pt(it(ut(t)), "square root", t.length === 1 && ot(t[0]));
|
|
654
654
|
case "mroot": {
|
|
655
|
-
let e =
|
|
656
|
-
return pt(t[0] ? L(t[0]) : "", n,
|
|
655
|
+
let e = st(t[1]), n = e === 2 ? "square root" : e === 3 ? "cube root" : e ? `${I(e)} root` : `root with index ${t[1] ? L(t[1]) : ""}`;
|
|
656
|
+
return pt(t[0] ? L(t[0]) : "", n, ot(t[0]));
|
|
657
657
|
}
|
|
658
658
|
case "msup": return mt(t[0] ? L(t[0]) : "", t[1]);
|
|
659
659
|
case "msub": return ht(t[0] ? L(t[0]) : "", t[1]);
|
|
@@ -663,7 +663,7 @@ function L(e) {
|
|
|
663
663
|
case "munderover": {
|
|
664
664
|
let [n, r, i] = t, a = e.localName === "mover" ? void 0 : r, o = e.localName === "munder" ? void 0 : e.localName === "mover" ? r : i, s = n ? gt(n, a, o) : void 0;
|
|
665
665
|
if (s) return s;
|
|
666
|
-
let c = n ? L(n) : "", l = e.localName === "mover" && r ?
|
|
666
|
+
let c = n ? L(n) : "", l = e.localName === "mover" && r ? nt[rt(r)] : void 0;
|
|
667
667
|
return l ? l === "vector" ? `vector ${c}` : `${c} ${l}` : [
|
|
668
668
|
c,
|
|
669
669
|
a ? `with ${L(a)} below` : "",
|
|
@@ -674,11 +674,11 @@ function L(e) {
|
|
|
674
674
|
case "mtable": return _t(e);
|
|
675
675
|
case "mrow":
|
|
676
676
|
case "math": return dt(t);
|
|
677
|
-
default: return t.length ? ut(t) :
|
|
677
|
+
default: return t.length ? ut(t) : rt(e);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
function yt(e) {
|
|
681
|
-
return
|
|
681
|
+
return it(L(e));
|
|
682
682
|
}
|
|
683
683
|
var bt = [
|
|
684
684
|
"a[href]",
|
|
@@ -708,25 +708,7 @@ function xt(e) {
|
|
|
708
708
|
function St(e) {
|
|
709
709
|
for (let t of e.querySelectorAll("mjx-container")) xt(t);
|
|
710
710
|
}
|
|
711
|
-
var Ct =
|
|
712
|
-
function Et(e, t) {
|
|
713
|
-
if (typeof window > "u") return;
|
|
714
|
-
let n = globalThis;
|
|
715
|
-
n[Tt] ??= {
|
|
716
|
-
logged: !1,
|
|
717
|
-
conditions: []
|
|
718
|
-
};
|
|
719
|
-
let r = n[Tt];
|
|
720
|
-
if (r.conditions.includes(e)) return;
|
|
721
|
-
r.conditions.push(e);
|
|
722
|
-
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Ct}`;
|
|
723
|
-
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(wt, { detail: {
|
|
724
|
-
condition: e,
|
|
725
|
-
message: i,
|
|
726
|
-
docsUrl: Ct
|
|
727
|
-
} }));
|
|
728
|
-
}
|
|
729
|
-
var Dt = {
|
|
711
|
+
var Ct = {
|
|
730
712
|
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
731
713
|
overarc: "\\overparen",
|
|
732
714
|
napprox: "\\not\\approx",
|
|
@@ -734,36 +716,54 @@ var Dt = {
|
|
|
734
716
|
abs: ["\\left|#1\\right|", 1],
|
|
735
717
|
perpendicular: "\\perp",
|
|
736
718
|
divide: "\\div"
|
|
737
|
-
},
|
|
719
|
+
}, wt = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Tt = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Et = /\\embed\{newLine\}\[\]/g, Dt = [
|
|
738
720
|
["$$", "$$"],
|
|
739
721
|
["$", "$"],
|
|
740
722
|
["\\[", "\\]"],
|
|
741
723
|
["\\(", "\\)"]
|
|
742
|
-
]
|
|
724
|
+
];
|
|
725
|
+
function Ot(e) {
|
|
726
|
+
for (let [t, n] of Dt) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
727
|
+
return e;
|
|
728
|
+
}
|
|
729
|
+
function kt(e) {
|
|
730
|
+
return `\\(${Ot(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(Et, "\\newline ");
|
|
731
|
+
}
|
|
732
|
+
var At = "mathjax_ignore", jt = "mathjax_process", Mt = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Nt = "pie-mathjax-version-conflict", Pt = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
|
|
733
|
+
function Ft(e, t) {
|
|
734
|
+
if (typeof window > "u") return;
|
|
735
|
+
let n = globalThis;
|
|
736
|
+
n[Pt] ??= {
|
|
737
|
+
logged: !1,
|
|
738
|
+
conditions: []
|
|
739
|
+
};
|
|
740
|
+
let r = n[Pt];
|
|
741
|
+
if (r.conditions.includes(e)) return;
|
|
742
|
+
r.conditions.push(e);
|
|
743
|
+
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Mt}`;
|
|
744
|
+
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Nt, { detail: {
|
|
745
|
+
condition: e,
|
|
746
|
+
message: i,
|
|
747
|
+
docsUrl: Mt
|
|
748
|
+
} }));
|
|
749
|
+
}
|
|
750
|
+
var It = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Lt = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Rt = "MJX-CHTML-styles", zt = "PIE-MJX-SVG-styles", Bt = "PIE-MathJax-Menu-Settings", Vt = { "mjx-container[overflow=\"linebreak\"][display]": {
|
|
743
751
|
overflow: "auto clip",
|
|
744
752
|
"min-width": "initial !important"
|
|
745
|
-
} },
|
|
746
|
-
function
|
|
753
|
+
} }, Ht = 200, Ut = 201, Wt = 202;
|
|
754
|
+
function Gt(e) {
|
|
747
755
|
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
748
756
|
for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
|
|
749
757
|
}
|
|
750
|
-
function Ht(e) {
|
|
751
|
-
for (let [t, n] of Mt) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
752
|
-
return e;
|
|
753
|
-
}
|
|
754
|
-
function Ut(e) {
|
|
755
|
-
return Ht(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
756
|
-
}
|
|
757
|
-
var Wt = "mathjax_ignore", Gt = "mathjax_process";
|
|
758
758
|
function Kt(e, t) {
|
|
759
|
-
let n = e.closest(`.${
|
|
760
|
-
return n !== null && t.contains(n) && !n.classList.contains(
|
|
759
|
+
let n = e.closest(`.${At}, .${jt}`);
|
|
760
|
+
return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
|
|
761
761
|
}
|
|
762
762
|
function qt(e) {
|
|
763
763
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
764
764
|
if (t.dataset.mathHandled || t.closest("mjx-container") || Kt(t, e)) continue;
|
|
765
765
|
let n = t.textContent;
|
|
766
|
-
n && (t.textContent =
|
|
766
|
+
n && (t.textContent = kt(n), t.dataset.mathHandled = "true");
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
function Jt(e) {
|
|
@@ -771,7 +771,7 @@ function Jt(e) {
|
|
|
771
771
|
}
|
|
772
772
|
function Yt(e, t) {
|
|
773
773
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
774
|
-
return (t ?
|
|
774
|
+
return (t ? Tt : wt).test(e.textContent ?? "");
|
|
775
775
|
}
|
|
776
776
|
function Xt(t) {
|
|
777
777
|
return new Promise((n, i) => {
|
|
@@ -788,10 +788,10 @@ function Xt(t) {
|
|
|
788
788
|
typeset: !1,
|
|
789
789
|
ready: () => {
|
|
790
790
|
let t = S(), r = t?.startup, a = Zt(t);
|
|
791
|
-
a && (Qt(t), $t(t, f.speechLocales), e(t?._?.a11y?.sre_ts?.locales, f.speechLocales)), r?.defaultReady?.(), a && (en(r?.document), tn(r?.document), r?.document?.addStyles?.(
|
|
791
|
+
a && (Qt(t), $t(t, f.speechLocales), e(t?._?.a11y?.sre_ts?.locales, f.speechLocales)), r?.defaultReady?.(), a && (en(r?.document), tn(r?.document), r?.document?.addStyles?.(Vt), s(r?.document)), Promise.resolve(r?.promise).then(() => n(), i);
|
|
792
792
|
}
|
|
793
793
|
},
|
|
794
|
-
tex: { macros: { ...
|
|
794
|
+
tex: { macros: { ...Ct } },
|
|
795
795
|
output: { displayOverflow: "linebreak" },
|
|
796
796
|
options: {
|
|
797
797
|
enableMenu: l,
|
|
@@ -803,7 +803,7 @@ function Xt(t) {
|
|
|
803
803
|
a11y: { inTabOrder: p }
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
c && m.tex && (console.warn(
|
|
806
|
+
c && m.tex && (console.warn(It), m.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], m.tex.processEscapes = !0), u || (m.chtml = { fontURL: "" });
|
|
807
807
|
let h = o(f.speechLocales);
|
|
808
808
|
h && m.options && (m.options.sre = { locale: h }), w(m, {
|
|
809
809
|
...f,
|
|
@@ -820,18 +820,18 @@ function Qt(e) {
|
|
|
820
820
|
let t = e?._?.output, n = t?.chtml_ts?.CHTML;
|
|
821
821
|
n && (n.STYLESHEETID = D);
|
|
822
822
|
let r = t?.svg_ts?.SVG;
|
|
823
|
-
r && (r.STYLESHEETID =
|
|
823
|
+
r && (r.STYLESHEETID = zt);
|
|
824
824
|
}
|
|
825
825
|
function $t(e, t) {
|
|
826
826
|
let n = e?._?.ui?.menu?.Menu?.Menu;
|
|
827
827
|
if (n) {
|
|
828
|
-
n.MENU_STORAGE =
|
|
828
|
+
n.MENU_STORAGE = Bt;
|
|
829
829
|
try {
|
|
830
|
-
let e = localStorage.getItem(
|
|
830
|
+
let e = localStorage.getItem(Bt);
|
|
831
831
|
if (!e) return;
|
|
832
832
|
let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
|
|
833
833
|
if (n === void 0 && a) return;
|
|
834
|
-
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(
|
|
834
|
+
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(Bt, JSON.stringify(i)) : localStorage.removeItem(Bt);
|
|
835
835
|
} catch {}
|
|
836
836
|
}
|
|
837
837
|
}
|
|
@@ -839,23 +839,23 @@ function en(e) {
|
|
|
839
839
|
if (!e) return;
|
|
840
840
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
841
841
|
let n = e.typesetRoot;
|
|
842
|
-
!n || t.has(n) || (
|
|
842
|
+
!n || t.has(n) || (Gt(n), t.add(n));
|
|
843
843
|
};
|
|
844
|
-
e.addRenderAction?.("pie-strip-latex",
|
|
844
|
+
e.addRenderAction?.("pie-strip-latex", Ut, (e) => {
|
|
845
845
|
for (let t of e.math ?? []) n(t);
|
|
846
846
|
return !1;
|
|
847
847
|
}, (e) => {
|
|
848
848
|
let t = e.typesetRoot;
|
|
849
|
-
return t &&
|
|
849
|
+
return t && Gt(t), !1;
|
|
850
850
|
});
|
|
851
851
|
let r = e.outputJax?.chtmlStyles;
|
|
852
|
-
r?.id ===
|
|
852
|
+
r?.id === Rt && (r.id = D), an();
|
|
853
853
|
}
|
|
854
854
|
function tn(e) {
|
|
855
855
|
let t = (e) => {
|
|
856
856
|
e.typesetRoot && xt(e.typesetRoot);
|
|
857
857
|
};
|
|
858
|
-
e?.addRenderAction?.("pie-name-math",
|
|
858
|
+
e?.addRenderAction?.("pie-name-math", Wt, (e) => {
|
|
859
859
|
for (let n of e.math ?? []) t(n);
|
|
860
860
|
return !1;
|
|
861
861
|
}, (e) => (t(e), !1));
|
|
@@ -864,7 +864,7 @@ function nn(e) {
|
|
|
864
864
|
return e instanceof HTMLStyleElement && O.includes(e.id);
|
|
865
865
|
}
|
|
866
866
|
function rn(e) {
|
|
867
|
-
|
|
867
|
+
Ft("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
868
868
|
}
|
|
869
869
|
function an() {
|
|
870
870
|
let e = document.head, t = [...e.children].find(nn);
|
|
@@ -886,7 +886,7 @@ function an() {
|
|
|
886
886
|
function on(e) {
|
|
887
887
|
let t = e?.math;
|
|
888
888
|
if (!t?.remove) return;
|
|
889
|
-
let n = [...t].filter((e) => (e.state?.() ?? 0) >=
|
|
889
|
+
let n = [...t].filter((e) => (e.state?.() ?? 0) >= Ht && e.typesetRoot?.isConnected === !1);
|
|
890
890
|
if (n.length !== 0) {
|
|
891
891
|
for (let e of [...n].reverse()) e.clear?.();
|
|
892
892
|
t.remove(...n);
|
|
@@ -914,14 +914,14 @@ function ln(e) {
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
function un(e) {
|
|
917
|
-
let t = T, n = t[
|
|
918
|
-
return n || (n = ln(e), t[
|
|
917
|
+
let t = T, n = t[Lt];
|
|
918
|
+
return n || (n = ln(e), t[Lt] = n), n;
|
|
919
919
|
}
|
|
920
920
|
function dn(e = {}) {
|
|
921
921
|
let t = e.useSingleDollar ?? !1;
|
|
922
922
|
return async (n) => {
|
|
923
923
|
if (typeof window > "u") return;
|
|
924
|
-
qt(n),
|
|
924
|
+
qt(n), k(n), Jt(n), Re(n);
|
|
925
925
|
let r = un(e);
|
|
926
926
|
if (!Yt(n, t)) {
|
|
927
927
|
r.catch(() => {});
|
|
@@ -930,13 +930,13 @@ function dn(e = {}) {
|
|
|
930
930
|
await r;
|
|
931
931
|
let i = S();
|
|
932
932
|
if (await i?.startup?.promise, typeof i?.typesetPromise == "function") {
|
|
933
|
-
|
|
933
|
+
Ke(), on(i.startup?.document);
|
|
934
934
|
try {
|
|
935
935
|
await i.typesetPromise([n]);
|
|
936
936
|
} catch (e) {
|
|
937
937
|
throw i.typesetClear?.([n]), e;
|
|
938
938
|
}
|
|
939
|
-
|
|
939
|
+
Gt(n), St(n);
|
|
940
940
|
}
|
|
941
941
|
};
|
|
942
942
|
}
|
|
@@ -987,7 +987,7 @@ var wn = async (e) => {
|
|
|
987
987
|
let n = bn()?.wrapMath?.(e, t);
|
|
988
988
|
if (n != null) return n;
|
|
989
989
|
let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
|
|
990
|
-
return `${r}${
|
|
990
|
+
return `${r}${Ot(e)}${i}`;
|
|
991
991
|
}, En = (e) => {
|
|
992
992
|
let t = e.trim();
|
|
993
993
|
return t.startsWith("\\[") && t.endsWith("\\]") ? {
|
|
@@ -3480,30 +3480,30 @@ function Is(e) {
|
|
|
3480
3480
|
systemMode: void 0
|
|
3481
3481
|
}, u = /*#__PURE__*/ c.createContext(void 0), d = () => c.useContext(u) || l, f = {}, p = {};
|
|
3482
3482
|
function m(e) {
|
|
3483
|
-
let { children: l, theme: d, modeStorageKey: m = r, colorSchemeStorageKey: h = i, disableTransitionOnChange: g = a, storageManager: _, storageWindow: v = typeof window > "u" ? void 0 : window, documentNode: x = typeof document > "u" ? void 0 : document, colorSchemeNode: S = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: C = !1, disableStyleSheetGeneration: w = !1, defaultMode: T = "system", forceThemeRerender: E = !1, noSsr: ee } = e, te = c.useRef(!1), D = rs(), O = c.useContext(u), ne = !!O && !C, re = c.useMemo(() => d || (typeof n == "function" ? n() : n), [d]),
|
|
3484
|
-
supportedColorSchemes:
|
|
3485
|
-
defaultLightColorScheme:
|
|
3486
|
-
defaultDarkColorScheme:
|
|
3483
|
+
let { children: l, theme: d, modeStorageKey: m = r, colorSchemeStorageKey: h = i, disableTransitionOnChange: g = a, storageManager: _, storageWindow: v = typeof window > "u" ? void 0 : window, documentNode: x = typeof document > "u" ? void 0 : document, colorSchemeNode: S = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: C = !1, disableStyleSheetGeneration: w = !1, defaultMode: T = "system", forceThemeRerender: E = !1, noSsr: ee } = e, te = c.useRef(!1), D = rs(), O = c.useContext(u), ne = !!O && !C, re = c.useMemo(() => d || (typeof n == "function" ? n() : n), [d]), ie = re[t], k = ie || re, { colorSchemes: A = f, components: ae = p, cssVarPrefix: j } = k, oe = Object.keys(A).filter((e) => !!A[e]).join(","), se = c.useMemo(() => oe.split(","), [oe]), M = typeof o == "string" ? o : o.light, ce = typeof o == "string" ? o : o.dark, { mode: le, setMode: ue, systemMode: N, lightColorScheme: de, darkColorScheme: fe, colorScheme: pe, setColorScheme: me } = Ps({
|
|
3484
|
+
supportedColorSchemes: se,
|
|
3485
|
+
defaultLightColorScheme: M,
|
|
3486
|
+
defaultDarkColorScheme: ce,
|
|
3487
3487
|
modeStorageKey: m,
|
|
3488
3488
|
colorSchemeStorageKey: h,
|
|
3489
|
-
defaultMode:
|
|
3489
|
+
defaultMode: A[M] && A[ce] ? T : A[k.defaultColorScheme]?.palette?.mode || k.palette?.mode,
|
|
3490
3490
|
storageManager: _,
|
|
3491
3491
|
storageWindow: v,
|
|
3492
3492
|
noSsr: ee
|
|
3493
|
-
}),
|
|
3494
|
-
ne && (
|
|
3495
|
-
let
|
|
3496
|
-
|
|
3497
|
-
let
|
|
3498
|
-
let e =
|
|
3499
|
-
...
|
|
3500
|
-
components:
|
|
3501
|
-
colorSchemes:
|
|
3502
|
-
cssVarPrefix:
|
|
3493
|
+
}), he = le, P = pe;
|
|
3494
|
+
ne && (he = O.mode, P = O.colorScheme);
|
|
3495
|
+
let ge = P || k.defaultColorScheme;
|
|
3496
|
+
k.vars && !E && (ge = k.defaultColorScheme);
|
|
3497
|
+
let F = c.useMemo(() => {
|
|
3498
|
+
let e = k.generateThemeVars?.() || k.vars, t = {
|
|
3499
|
+
...k,
|
|
3500
|
+
components: ae,
|
|
3501
|
+
colorSchemes: A,
|
|
3502
|
+
cssVarPrefix: j,
|
|
3503
3503
|
vars: e
|
|
3504
3504
|
};
|
|
3505
|
-
if (typeof t.generateSpacing == "function" && (t.spacing = t.generateSpacing()),
|
|
3506
|
-
let e =
|
|
3505
|
+
if (typeof t.generateSpacing == "function" && (t.spacing = t.generateSpacing()), ge) {
|
|
3506
|
+
let e = A[ge];
|
|
3507
3507
|
e && typeof e == "object" && Object.keys(e).forEach((n) => {
|
|
3508
3508
|
e[n] && typeof e[n] == "object" ? t[n] = {
|
|
3509
3509
|
...t[n],
|
|
@@ -3513,31 +3513,31 @@ function Is(e) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
return s ? s(t) : t;
|
|
3515
3515
|
}, [
|
|
3516
|
+
k,
|
|
3517
|
+
ge,
|
|
3518
|
+
ae,
|
|
3516
3519
|
A,
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
j,
|
|
3520
|
-
M
|
|
3521
|
-
]), ge = A.colorSchemeSelector;
|
|
3520
|
+
j
|
|
3521
|
+
]), _e = k.colorSchemeSelector;
|
|
3522
3522
|
zo(() => {
|
|
3523
|
-
if (
|
|
3524
|
-
let e =
|
|
3525
|
-
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) S.classList.remove(...
|
|
3523
|
+
if (P && S && _e && _e !== "media") {
|
|
3524
|
+
let e = _e, t = _e;
|
|
3525
|
+
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) S.classList.remove(...se.map((e) => t.substring(1).replace("%s", e))), S.classList.add(t.substring(1).replace("%s", P));
|
|
3526
3526
|
else {
|
|
3527
|
-
let e = t.replace("%s",
|
|
3527
|
+
let e = t.replace("%s", P).match(/\[([^\]]+)\]/);
|
|
3528
3528
|
if (e) {
|
|
3529
3529
|
let [t, n] = e[1].split("=");
|
|
3530
|
-
n ||
|
|
3531
|
-
S.removeAttribute(t.replace(
|
|
3530
|
+
n || se.forEach((e) => {
|
|
3531
|
+
S.removeAttribute(t.replace(P, e));
|
|
3532
3532
|
}), S.setAttribute(t, n ? n.replace(/"|'/g, "") : "");
|
|
3533
|
-
} else S.setAttribute(t,
|
|
3533
|
+
} else S.setAttribute(t, P);
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
3536
|
}, [
|
|
3537
|
-
|
|
3538
|
-
|
|
3537
|
+
P,
|
|
3538
|
+
_e,
|
|
3539
3539
|
S,
|
|
3540
|
-
|
|
3540
|
+
se
|
|
3541
3541
|
]), c.useEffect(() => {
|
|
3542
3542
|
let e;
|
|
3543
3543
|
if (g && te.current && x) {
|
|
@@ -3550,41 +3550,41 @@ function Is(e) {
|
|
|
3550
3550
|
clearTimeout(e);
|
|
3551
3551
|
};
|
|
3552
3552
|
}, [
|
|
3553
|
-
|
|
3553
|
+
P,
|
|
3554
3554
|
g,
|
|
3555
3555
|
x
|
|
3556
3556
|
]), c.useEffect(() => (te.current = !0, () => {
|
|
3557
3557
|
te.current = !1;
|
|
3558
3558
|
}), []);
|
|
3559
|
-
let
|
|
3560
|
-
allColorSchemes:
|
|
3561
|
-
colorScheme:
|
|
3562
|
-
darkColorScheme:
|
|
3563
|
-
lightColorScheme:
|
|
3564
|
-
mode:
|
|
3565
|
-
setColorScheme:
|
|
3566
|
-
setMode:
|
|
3567
|
-
systemMode:
|
|
3559
|
+
let ve = c.useMemo(() => ({
|
|
3560
|
+
allColorSchemes: se,
|
|
3561
|
+
colorScheme: P,
|
|
3562
|
+
darkColorScheme: fe,
|
|
3563
|
+
lightColorScheme: de,
|
|
3564
|
+
mode: he,
|
|
3565
|
+
setColorScheme: me,
|
|
3566
|
+
setMode: ue,
|
|
3567
|
+
systemMode: N
|
|
3568
3568
|
}), [
|
|
3569
|
-
|
|
3570
|
-
|
|
3569
|
+
se,
|
|
3570
|
+
P,
|
|
3571
|
+
fe,
|
|
3571
3572
|
de,
|
|
3572
|
-
|
|
3573
|
+
he,
|
|
3573
3574
|
me,
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
theme: I,
|
|
3575
|
+
ue,
|
|
3576
|
+
N,
|
|
3577
|
+
F.colorSchemeSelector
|
|
3578
|
+
]), ye = !0;
|
|
3579
|
+
(w || k.cssVariables === !1 || ne && D?.cssVarPrefix === j) && (ye = !1);
|
|
3580
|
+
let be = /*#__PURE__*/ b(c.Fragment, { children: [/*#__PURE__*/ y(xs, {
|
|
3581
|
+
themeId: ie ? t : void 0,
|
|
3582
|
+
theme: F,
|
|
3583
3583
|
children: l
|
|
3584
|
-
}),
|
|
3585
|
-
return ne ?
|
|
3586
|
-
value:
|
|
3587
|
-
children:
|
|
3584
|
+
}), ye && /*#__PURE__*/ y(Ui, { styles: F.generateStyleSheets?.() || [] })] });
|
|
3585
|
+
return ne ? be : /*#__PURE__*/ y(u.Provider, {
|
|
3586
|
+
value: ve,
|
|
3587
|
+
children: be
|
|
3588
3588
|
});
|
|
3589
3589
|
}
|
|
3590
3590
|
let h = typeof o == "string" ? o : o.light, g = typeof o == "string" ? o : o.dark;
|
|
@@ -6127,22 +6127,22 @@ function mp() {
|
|
|
6127
6127
|
} finally {
|
|
6128
6128
|
D--;
|
|
6129
6129
|
}
|
|
6130
|
-
},
|
|
6130
|
+
}, ie = function() {
|
|
6131
6131
|
return te ||= (ee = up(u, i), !0), ee;
|
|
6132
|
-
},
|
|
6133
|
-
t.isSupported = typeof Yd == "function" && typeof _ == "function" &&
|
|
6134
|
-
let
|
|
6132
|
+
}, k = n, A = k.implementation, ae = k.createNodeIterator, j = k.createDocumentFragment, oe = k.getElementsByTagName, se = r.importNode, M = dp();
|
|
6133
|
+
t.isSupported = typeof Yd == "function" && typeof _ == "function" && A && A.createHTMLDocument !== void 0;
|
|
6134
|
+
let ce = Gf, le = Kf, ue = qf, N = Jf, de = Yf, fe = Zf, pe = Qf, me = ep, he = Xf, P = null, ge = Z({}, [
|
|
6135
6135
|
...Pf,
|
|
6136
6136
|
...Ff,
|
|
6137
6137
|
...If,
|
|
6138
6138
|
...Rf,
|
|
6139
6139
|
...Bf
|
|
6140
|
-
]),
|
|
6140
|
+
]), F = null, _e = Z({}, [
|
|
6141
6141
|
...Vf,
|
|
6142
6142
|
...Hf,
|
|
6143
6143
|
...Uf,
|
|
6144
6144
|
...Wf
|
|
6145
|
-
]),
|
|
6145
|
+
]), ve = Object.seal(nf(null, {
|
|
6146
6146
|
tagNameCheck: {
|
|
6147
6147
|
writable: !0,
|
|
6148
6148
|
configurable: !1,
|
|
@@ -6161,7 +6161,7 @@ function mp() {
|
|
|
6161
6161
|
enumerable: !0,
|
|
6162
6162
|
value: !1
|
|
6163
6163
|
}
|
|
6164
|
-
})),
|
|
6164
|
+
})), ye = null, be = null, xe = Object.seal(nf(null, {
|
|
6165
6165
|
tagCheck: {
|
|
6166
6166
|
writable: !0,
|
|
6167
6167
|
configurable: !1,
|
|
@@ -6174,14 +6174,14 @@ function mp() {
|
|
|
6174
6174
|
enumerable: !0,
|
|
6175
6175
|
value: null
|
|
6176
6176
|
}
|
|
6177
|
-
})),
|
|
6177
|
+
})), Se = !0, Ce = !0, we = !1, Te = !0, Ee = !1, De = !0, Oe = !1, ke = !1, Ae = null, je = null, Me = !1, Ne = !1, Pe = !1, Fe = !1, Ie = !0, Le = !1, Re = "user-content-", ze = !0, Be = !1, Ve = {}, He = null, Ue = Z({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), We = null, Ge = Z({}, [
|
|
6178
6178
|
"audio",
|
|
6179
6179
|
"video",
|
|
6180
6180
|
"img",
|
|
6181
6181
|
"source",
|
|
6182
6182
|
"image",
|
|
6183
6183
|
"track"
|
|
6184
|
-
]),
|
|
6184
|
+
]), Ke = null, qe = Z({}, [
|
|
6185
6185
|
"alt",
|
|
6186
6186
|
"class",
|
|
6187
6187
|
"for",
|
|
@@ -6196,40 +6196,40 @@ function mp() {
|
|
|
6196
6196
|
"value",
|
|
6197
6197
|
"style",
|
|
6198
6198
|
"xmlns"
|
|
6199
|
-
]),
|
|
6200
|
-
qe,
|
|
6199
|
+
]), Je = "http://www.w3.org/1998/Math/MathML", Ye = "http://www.w3.org/2000/svg", Xe = "http://www.w3.org/1999/xhtml", Ze = Xe, Qe = !1, $e = null, et = Z({}, [
|
|
6201
6200
|
Je,
|
|
6202
|
-
Ye
|
|
6203
|
-
|
|
6201
|
+
Ye,
|
|
6202
|
+
Xe
|
|
6203
|
+
], mf), tt = ef([
|
|
6204
6204
|
"mi",
|
|
6205
6205
|
"mo",
|
|
6206
6206
|
"mn",
|
|
6207
6207
|
"ms",
|
|
6208
6208
|
"mtext"
|
|
6209
|
-
]),
|
|
6209
|
+
]), nt = Z({}, tt), rt = ef(["annotation-xml"]), it = Z({}, rt), at = Z({}, [
|
|
6210
6210
|
"title",
|
|
6211
6211
|
"style",
|
|
6212
6212
|
"font",
|
|
6213
6213
|
"a",
|
|
6214
6214
|
"script"
|
|
6215
|
-
]),
|
|
6215
|
+
]), ot = null, st = ["application/xhtml+xml", "text/html"], I = null, ct = null, lt = n.createElement("form"), ut = function(e) {
|
|
6216
6216
|
return e instanceof RegExp || e instanceof Function;
|
|
6217
6217
|
}, dt = function() {
|
|
6218
6218
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6219
6219
|
if (ct && ct === e) return;
|
|
6220
|
-
(!e || typeof e != "object") && (e = {}), e = Af(e),
|
|
6221
|
-
transform:
|
|
6222
|
-
base:
|
|
6223
|
-
}),
|
|
6224
|
-
transform:
|
|
6225
|
-
base:
|
|
6226
|
-
}),
|
|
6220
|
+
(!e || typeof e != "object") && (e = {}), e = Af(e), ot = st.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, I = ot === "application/xhtml+xml" ? mf : pf, P = fp(e, "ALLOWED_TAGS", ge, { transform: I }), F = fp(e, "ALLOWED_ATTR", _e, { transform: I }), $e = fp(e, "ALLOWED_NAMESPACES", et, { transform: mf }), Ke = fp(e, "ADD_URI_SAFE_ATTR", qe, {
|
|
6221
|
+
transform: I,
|
|
6222
|
+
base: qe
|
|
6223
|
+
}), We = fp(e, "ADD_DATA_URI_TAGS", Ge, {
|
|
6224
|
+
transform: I,
|
|
6225
|
+
base: Ge
|
|
6226
|
+
}), He = fp(e, "FORBID_CONTENTS", Ue, { transform: I }), ye = fp(e, "FORBID_TAGS", Af({}), { transform: I }), be = fp(e, "FORBID_ATTR", Af({}), { transform: I }), Ve = Cf(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? Af(e.USE_PROFILES) : e.USE_PROFILES : !1, Se = e.ALLOW_ARIA_ATTR !== !1, Ce = e.ALLOW_DATA_ATTR !== !1, we = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Te = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = e.SAFE_FOR_TEMPLATES || !1, De = e.SAFE_FOR_XML !== !1, Oe = e.WHOLE_DOCUMENT || !1, Ne = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Fe = e.RETURN_TRUSTED_TYPE || !1, Me = e.FORCE_BODY || !1, Ie = e.SANITIZE_DOM !== !1, Le = e.SANITIZE_NAMED_PROPS || !1, ze = e.KEEP_CONTENT !== !1, Be = e.IN_PLACE || !1, he = Nf(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Xf, Ze = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Xe, nt = pp(e, "MATHML_TEXT_INTEGRATION_POINTS", () => Z({}, tt)), it = pp(e, "HTML_INTEGRATION_POINTS", () => Z({}, rt));
|
|
6227
6227
|
let t = pp(e, "CUSTOM_ELEMENT_HANDLING", () => nf(null));
|
|
6228
|
-
if (
|
|
6228
|
+
if (ve = nf(null), Cf(t, "tagNameCheck") && ut(t.tagNameCheck) && (ve.tagNameCheck = t.tagNameCheck), Cf(t, "attributeNameCheck") && ut(t.attributeNameCheck) && (ve.attributeNameCheck = t.attributeNameCheck), Cf(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (ve.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), tf(ve), Ee && (Ce = !1), Pe && (Ne = !0), Ve && (P = Z({}, Bf), F = nf(null), Ve.html === !0 && (Z(P, Pf), Z(F, Vf)), Ve.svg === !0 && (Z(P, Ff), Z(F, Hf), Z(F, Wf)), Ve.svgFilters === !0 && (Z(P, If), Z(F, Hf), Z(F, Wf)), Ve.mathMl === !0 && (Z(P, Rf), Z(F, Uf), Z(F, Wf))), xe.tagCheck = null, xe.attributeCheck = null, Cf(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? xe.tagCheck = e.ADD_TAGS : ff(e.ADD_TAGS) && (P === ge && (P = Af(P)), Z(P, e.ADD_TAGS, I))), Cf(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? xe.attributeCheck = e.ADD_ATTR : ff(e.ADD_ATTR) && (F === _e && (F = Af(F)), Z(F, e.ADD_ATTR, I))), Cf(e, "ADD_FORBID_CONTENTS") && ff(e.ADD_FORBID_CONTENTS) && (He === Ue && (He = Af(He)), Z(He, e.ADD_FORBID_CONTENTS, I)), ze && (P["#text"] = !0), Oe && Z(P, [
|
|
6229
6229
|
"html",
|
|
6230
6230
|
"head",
|
|
6231
6231
|
"body"
|
|
6232
|
-
]),
|
|
6232
|
+
]), P.table && (Z(P, ["tbody"]), delete ye.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
6233
6233
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ef("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
6234
6234
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ef("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
6235
6235
|
let t = T;
|
|
@@ -6239,26 +6239,26 @@ function mp() {
|
|
|
6239
6239
|
} catch (e) {
|
|
6240
6240
|
throw T = t, e;
|
|
6241
6241
|
}
|
|
6242
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, E = "") : (T === void 0 && (T =
|
|
6242
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, E = "") : (T === void 0 && (T = ie()), T && typeof E == "string" && (E = ne("")));
|
|
6243
6243
|
ef && ef(e), ct = e;
|
|
6244
6244
|
}, ft = Z({}, [
|
|
6245
6245
|
...Ff,
|
|
6246
6246
|
...If,
|
|
6247
6247
|
...Lf
|
|
6248
6248
|
]), pt = Z({}, [...Rf, ...zf]), mt = function(e, t, n) {
|
|
6249
|
-
return t.namespaceURI ===
|
|
6249
|
+
return t.namespaceURI === Xe ? e === "svg" : t.namespaceURI === Je ? e === "svg" && (n === "annotation-xml" || nt[n]) : !!ft[e];
|
|
6250
6250
|
}, ht = function(e, t, n) {
|
|
6251
|
-
return t.namespaceURI ===
|
|
6251
|
+
return t.namespaceURI === Xe ? e === "math" : t.namespaceURI === Ye ? e === "math" && it[n] : !!pt[e];
|
|
6252
6252
|
}, gt = function(e, t, n) {
|
|
6253
|
-
return t.namespaceURI ===
|
|
6253
|
+
return t.namespaceURI === Ye && !it[n] || t.namespaceURI === Je && !nt[n] ? !1 : !pt[e] && (at[e] || !ft[e]);
|
|
6254
6254
|
}, _t = function(e) {
|
|
6255
6255
|
let t = _(e);
|
|
6256
6256
|
(!t || !t.tagName) && (t = {
|
|
6257
|
-
namespaceURI:
|
|
6257
|
+
namespaceURI: Ze,
|
|
6258
6258
|
tagName: "template"
|
|
6259
6259
|
});
|
|
6260
6260
|
let n = pf(e.tagName), r = pf(t.tagName);
|
|
6261
|
-
return
|
|
6261
|
+
return $e[e.namespaceURI] ? e.namespaceURI === Ye ? mt(n, t, r) : e.namespaceURI === Je ? ht(n, t, r) : e.namespaceURI === Xe ? gt(n, t, r) : !!(ot === "application/xhtml+xml" && $e[e.namespaceURI]) : !1;
|
|
6262
6262
|
}, vt = function(e) {
|
|
6263
6263
|
uf(t.removed, { element: e });
|
|
6264
6264
|
try {
|
|
@@ -6309,7 +6309,7 @@ function mp() {
|
|
|
6309
6309
|
n.removeAttribute(e);
|
|
6310
6310
|
} catch {}
|
|
6311
6311
|
}
|
|
6312
|
-
if (e === "is") if (
|
|
6312
|
+
if (e === "is") if (Ne || Pe) try {
|
|
6313
6313
|
vt(n);
|
|
6314
6314
|
} catch {}
|
|
6315
6315
|
else try {
|
|
@@ -6319,7 +6319,7 @@ function mp() {
|
|
|
6319
6319
|
let t = y(e);
|
|
6320
6320
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
6321
6321
|
let r = t[n], i = r && r.name;
|
|
6322
|
-
typeof i != "string" || I
|
|
6322
|
+
typeof i != "string" || F[I(i)] || L(e, r, i);
|
|
6323
6323
|
}
|
|
6324
6324
|
}, St = function(e) {
|
|
6325
6325
|
let t = [e];
|
|
@@ -6330,9 +6330,9 @@ function mp() {
|
|
|
6330
6330
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
6331
6331
|
}
|
|
6332
6332
|
}, Ct = function(e, t) {
|
|
6333
|
-
return
|
|
6333
|
+
return De ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
6334
6334
|
}, wt = function(e) {
|
|
6335
|
-
if (!
|
|
6335
|
+
if (!De) return;
|
|
6336
6336
|
let t = [e];
|
|
6337
6337
|
for (; t.length > 0;) {
|
|
6338
6338
|
let e = t.pop(), n = C(e);
|
|
@@ -6343,7 +6343,7 @@ function mp() {
|
|
|
6343
6343
|
continue;
|
|
6344
6344
|
}
|
|
6345
6345
|
if (n === ap.element) {
|
|
6346
|
-
let t = e, n =
|
|
6346
|
+
let t = e, n = I(w(e));
|
|
6347
6347
|
try {
|
|
6348
6348
|
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Ct("for", n) && t.removeAttribute("for");
|
|
6349
6349
|
} catch {}
|
|
@@ -6353,32 +6353,32 @@ function mp() {
|
|
|
6353
6353
|
}
|
|
6354
6354
|
}, Tt = function(e) {
|
|
6355
6355
|
let t = null, r = null;
|
|
6356
|
-
if (
|
|
6356
|
+
if (Me) e = "<remove></remove>" + e;
|
|
6357
6357
|
else {
|
|
6358
6358
|
let t = hf(e, /^[\r\n\t ]+/);
|
|
6359
6359
|
r = t && t[0];
|
|
6360
6360
|
}
|
|
6361
|
-
|
|
6361
|
+
ot === "application/xhtml+xml" && Ze === Xe && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
6362
6362
|
let i = T ? ne(e) : e;
|
|
6363
|
-
if (
|
|
6364
|
-
t = new l().parseFromString(i,
|
|
6363
|
+
if (Ze === Xe) try {
|
|
6364
|
+
t = new l().parseFromString(i, ot);
|
|
6365
6365
|
} catch {}
|
|
6366
6366
|
if (!t || !t.documentElement) {
|
|
6367
|
-
t =
|
|
6367
|
+
t = A.createDocument(Ze, "template", null);
|
|
6368
6368
|
try {
|
|
6369
|
-
t.documentElement.innerHTML =
|
|
6369
|
+
t.documentElement.innerHTML = Qe ? E : i;
|
|
6370
6370
|
} catch {}
|
|
6371
6371
|
}
|
|
6372
6372
|
let a = t.body || t.documentElement;
|
|
6373
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
6373
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ze === Xe ? oe.call(t, Oe ? "html" : "body")[0] : Oe ? t.documentElement : a;
|
|
6374
6374
|
}, Et = function(e) {
|
|
6375
6375
|
let t = S ? S(e) : e.ownerDocument;
|
|
6376
|
-
return
|
|
6376
|
+
return ae.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
6377
6377
|
}, Dt = function(e) {
|
|
6378
|
-
return e = gf(e,
|
|
6378
|
+
return e = gf(e, ce, " "), e = gf(e, le, " "), e = gf(e, ue, " "), e;
|
|
6379
6379
|
}, Ot = function(e) {
|
|
6380
6380
|
e.normalize();
|
|
6381
|
-
let t = S ? S(e) : e.ownerDocument, n =
|
|
6381
|
+
let t = S ? S(e) : e.ownerDocument, n = ae.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
6382
6382
|
for (; r;) r.data = Dt(r.data), r = n.nextNode();
|
|
6383
6383
|
let i = e.querySelectorAll?.call(e, "template");
|
|
6384
6384
|
i && sf(i, (e) => {
|
|
@@ -6386,7 +6386,7 @@ function mp() {
|
|
|
6386
6386
|
});
|
|
6387
6387
|
}, kt = function(e) {
|
|
6388
6388
|
let t = x ? x(e) : null;
|
|
6389
|
-
return typeof t != "string" ||
|
|
6389
|
+
return typeof t != "string" || I(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== y(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== b(e) || e.childNodes !== g(e);
|
|
6390
6390
|
}, At = function(e) {
|
|
6391
6391
|
if (!b || typeof e != "object" || !e) return !1;
|
|
6392
6392
|
try {
|
|
@@ -6408,12 +6408,12 @@ function mp() {
|
|
|
6408
6408
|
});
|
|
6409
6409
|
}
|
|
6410
6410
|
let Nt = function(e, t) {
|
|
6411
|
-
return !!(
|
|
6411
|
+
return !!(De && e.hasChildNodes() && !jt(e.firstElementChild) && Tf(tp, e.textContent) && Tf(tp, e.innerHTML) || De && e.namespaceURI === Xe && sp[t] && (jt(e.firstElementChild) || typeof e.textContent == "string" && Tf(cp[t], e.textContent)) || e.nodeType === ap.processingInstruction || De && e.nodeType === ap.comment && Tf(np, e.data));
|
|
6412
6412
|
}, Pt = function(e, t) {
|
|
6413
6413
|
return e instanceof RegExp ? Tf(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
6414
6414
|
}, Ft = function(e, t, n) {
|
|
6415
|
-
if (!
|
|
6416
|
-
if (
|
|
6415
|
+
if (!ye[t] && Vt(t) && Pt(ve.tagNameCheck, t)) return !1;
|
|
6416
|
+
if (ze && !He[t]) {
|
|
6417
6417
|
let t = _(e), r = g(e);
|
|
6418
6418
|
if (r && t) {
|
|
6419
6419
|
let i = r.length;
|
|
@@ -6427,30 +6427,30 @@ function mp() {
|
|
|
6427
6427
|
}, It = function(e, t, n, r) {
|
|
6428
6428
|
return e.length === 0 ? t : t === n || t === r ? Af(t) : t;
|
|
6429
6429
|
}, Lt = function(e, t) {
|
|
6430
|
-
return e === t || _(e) !== null ? !1 : (
|
|
6430
|
+
return e === t || _(e) !== null ? !1 : (Be && St(e), !0);
|
|
6431
6431
|
}, Rt = function(e, n) {
|
|
6432
|
-
if (Mt(
|
|
6432
|
+
if (Mt(M.beforeSanitizeElements, e, null), Lt(e, n)) return !0;
|
|
6433
6433
|
if (kt(e)) return vt(e), !0;
|
|
6434
|
-
let r =
|
|
6435
|
-
if (
|
|
6434
|
+
let r = I(w(e));
|
|
6435
|
+
if (P = It(M.uponSanitizeElement, P, ge, Ae), Mt(M.uponSanitizeElement, e, {
|
|
6436
6436
|
tagName: r,
|
|
6437
|
-
allowedTags:
|
|
6437
|
+
allowedTags: P
|
|
6438
6438
|
}), Lt(e, n)) return !0;
|
|
6439
6439
|
if (Nt(e, r)) return vt(e), !0;
|
|
6440
|
-
if (
|
|
6440
|
+
if (ye[r] || !(xe.tagCheck instanceof Function && xe.tagCheck(r)) && !P[r]) {
|
|
6441
6441
|
let t = Ft(e, r, n);
|
|
6442
|
-
return t === !1 && (Mt(
|
|
6442
|
+
return t === !1 && (Mt(M.afterSanitizeElements, e, null), Lt(e, n)) ? !0 : t;
|
|
6443
6443
|
}
|
|
6444
6444
|
if (C(e) === ap.element && !_t(e) || (r === "noscript" || r === "noembed" || r === "noframes") && Tf(rp, e.innerHTML)) return vt(e), !0;
|
|
6445
|
-
if (
|
|
6445
|
+
if (Ee && e.nodeType === ap.text) {
|
|
6446
6446
|
let n = Dt(e.textContent);
|
|
6447
6447
|
e.textContent !== n && (uf(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
6448
6448
|
}
|
|
6449
|
-
return Mt(
|
|
6449
|
+
return Mt(M.afterSanitizeElements, e, null), Lt(e, n);
|
|
6450
6450
|
}, zt = function(e, t, r) {
|
|
6451
|
-
if (
|
|
6452
|
-
let i =
|
|
6453
|
-
return
|
|
6451
|
+
if (be[t] || Ct(t, e) || Ie && (t === "id" || t === "name") && (r in n || r in lt)) return !1;
|
|
6452
|
+
let i = F[t] || xe.attributeCheck instanceof Function && xe.attributeCheck(t, e);
|
|
6453
|
+
return Ce && Tf(N, t) || Se && Tf(de, t) ? !0 : i ? Ke[t] || Tf(he, gf(r, pe, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && _f(r, "data:") === 0 && We[e] || we && !Tf(fe, gf(r, pe, "")) ? !0 : !r : Vt(e) && Pt(ve.tagNameCheck, e) && Pt(ve.attributeNameCheck, t, e) || t === "is" && ve.allowCustomizedBuiltInElements && Pt(ve.tagNameCheck, r);
|
|
6454
6454
|
}, Bt = Z({}, [
|
|
6455
6455
|
"annotation-xml",
|
|
6456
6456
|
"color-profile",
|
|
@@ -6461,7 +6461,7 @@ function mp() {
|
|
|
6461
6461
|
"font-face-uri",
|
|
6462
6462
|
"missing-glyph"
|
|
6463
6463
|
]), Vt = function(e) {
|
|
6464
|
-
return !Bt[pf(e)] && Tf(
|
|
6464
|
+
return !Bt[pf(e)] && Tf(me, e);
|
|
6465
6465
|
}, Ht = function(e, t, n, r) {
|
|
6466
6466
|
if (T && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
6467
6467
|
case "TrustedHTML": return ne(r);
|
|
@@ -6475,20 +6475,20 @@ function mp() {
|
|
|
6475
6475
|
return bt(t, e), !1;
|
|
6476
6476
|
}
|
|
6477
6477
|
}, Wt = function(e, n) {
|
|
6478
|
-
if (Mt(
|
|
6478
|
+
if (Mt(M.beforeSanitizeAttributes, e, null), Lt(e, n)) return;
|
|
6479
6479
|
let r = e.attributes;
|
|
6480
6480
|
if (!r || kt(e)) return;
|
|
6481
|
-
|
|
6481
|
+
F = It(M.uponSanitizeAttribute, F, _e, je);
|
|
6482
6482
|
let i = {
|
|
6483
6483
|
attrName: "",
|
|
6484
6484
|
attrValue: "",
|
|
6485
6485
|
keepAttr: !0,
|
|
6486
|
-
allowedAttributes:
|
|
6486
|
+
allowedAttributes: F,
|
|
6487
6487
|
forceKeepAttr: void 0
|
|
6488
|
-
}, a = r.length, o =
|
|
6488
|
+
}, a = r.length, o = I(e.nodeName);
|
|
6489
6489
|
for (; a--;) {
|
|
6490
|
-
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u =
|
|
6491
|
-
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Mt(
|
|
6490
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = I(s), d = l, f = s === "value" ? d : vf(d), p = !1;
|
|
6491
|
+
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Mt(M.uponSanitizeAttribute, e, i), f = i.attrValue, Le && (u === "id" || u === "name") && _f(f, Re) !== 0 && (bt(s, e, n), f = Re + f, p = !0), De && Tf(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
6492
6492
|
bt(s, e, n);
|
|
6493
6493
|
continue;
|
|
6494
6494
|
}
|
|
@@ -6501,25 +6501,25 @@ function mp() {
|
|
|
6501
6501
|
bt(s, e, n);
|
|
6502
6502
|
continue;
|
|
6503
6503
|
}
|
|
6504
|
-
if (!
|
|
6504
|
+
if (!Te && Tf(ip, f)) {
|
|
6505
6505
|
bt(s, e, n);
|
|
6506
6506
|
continue;
|
|
6507
6507
|
}
|
|
6508
|
-
if (
|
|
6508
|
+
if (Ee && (f = Dt(f)), !zt(o, u, f)) {
|
|
6509
6509
|
bt(s, e, n);
|
|
6510
6510
|
continue;
|
|
6511
6511
|
}
|
|
6512
6512
|
f = Ht(o, u, c, f), f !== d && Ut(e, s, c, f) && p && lf(t.removed);
|
|
6513
6513
|
}
|
|
6514
6514
|
}
|
|
6515
|
-
Mt(
|
|
6515
|
+
Mt(M.afterSanitizeAttributes, e, null), Lt(e, n);
|
|
6516
6516
|
}, Gt = function(e) {
|
|
6517
6517
|
let t = null, n = Et(e);
|
|
6518
|
-
for (Mt(
|
|
6518
|
+
for (Mt(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Mt(M.uponSanitizeShadowNode, t, null), Rt(t, e), Wt(t, e), At(t.content) && Gt(t.content), C(t) === ap.element) {
|
|
6519
6519
|
let e = v(t);
|
|
6520
6520
|
At(e) && (Kt(e), Gt(e));
|
|
6521
6521
|
}
|
|
6522
|
-
Mt(
|
|
6522
|
+
Mt(M.afterSanitizeShadowDOM, e, null);
|
|
6523
6523
|
}, Kt = function(e) {
|
|
6524
6524
|
let t = [{
|
|
6525
6525
|
node: e,
|
|
@@ -6538,7 +6538,7 @@ function mp() {
|
|
|
6538
6538
|
});
|
|
6539
6539
|
if (r) {
|
|
6540
6540
|
let e = x ? x(n) : null;
|
|
6541
|
-
if (typeof e == "string" &&
|
|
6541
|
+
if (typeof e == "string" && I(e) === "template") {
|
|
6542
6542
|
let e = n.content;
|
|
6543
6543
|
At(e) && t.push({
|
|
6544
6544
|
node: e,
|
|
@@ -6560,16 +6560,16 @@ function mp() {
|
|
|
6560
6560
|
};
|
|
6561
6561
|
return t.sanitize = function(e) {
|
|
6562
6562
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
6563
|
-
if (
|
|
6563
|
+
if (Qe = !e, Qe && (e = "<!-->"), typeof e != "string" && !jt(e) && (e = jf(e), typeof e != "string")) throw Ef("dirty is not a string, aborting");
|
|
6564
6564
|
if (!t.isSupported) return e;
|
|
6565
|
-
|
|
6566
|
-
let c =
|
|
6565
|
+
ke ? (P = Ae, F = je) : dt(n), (M.uponSanitizeElement.length > 0 || M.uponSanitizeAttribute.length > 0) && (P = Af(P)), M.uponSanitizeAttribute.length > 0 && (F = Af(F)), t.removed = [];
|
|
6566
|
+
let c = Be && typeof e != "string" && jt(e);
|
|
6567
6567
|
if (c) {
|
|
6568
6568
|
wt(e);
|
|
6569
6569
|
let t = w(e);
|
|
6570
6570
|
if (typeof t == "string") {
|
|
6571
|
-
let n =
|
|
6572
|
-
if (!
|
|
6571
|
+
let n = I(t);
|
|
6572
|
+
if (!P[n] || ye[n]) throw yt(e), Ef("root node is forbidden and cannot be sanitized in-place");
|
|
6573
6573
|
}
|
|
6574
6574
|
if (kt(e)) throw yt(e), Ef("root node is clobbered and cannot be sanitized in-place");
|
|
6575
6575
|
try {
|
|
@@ -6579,10 +6579,10 @@ function mp() {
|
|
|
6579
6579
|
}
|
|
6580
6580
|
} else if (jt(e)) i = Tt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === ap.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Kt(i);
|
|
6581
6581
|
else {
|
|
6582
|
-
if (!
|
|
6583
|
-
if (i = Tt(e), !i) return
|
|
6582
|
+
if (!Ne && !Ee && !Oe && e.indexOf("<") === -1) return T && Fe ? ne(e) : e;
|
|
6583
|
+
if (i = Tt(e), !i) return Ne ? null : Fe ? E : "";
|
|
6584
6584
|
}
|
|
6585
|
-
i &&
|
|
6585
|
+
i && Me && vt(i.firstChild);
|
|
6586
6586
|
let l = c ? e : i;
|
|
6587
6587
|
try {
|
|
6588
6588
|
let e = Et(l);
|
|
@@ -6597,38 +6597,38 @@ function mp() {
|
|
|
6597
6597
|
if (sf(t.removed, (t) => {
|
|
6598
6598
|
t.element && (t.element === e && (n = !0), St(t.element));
|
|
6599
6599
|
}), n) throw Ef("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
6600
|
-
return
|
|
6600
|
+
return Ee && Ot(e), e;
|
|
6601
6601
|
}
|
|
6602
|
-
if (
|
|
6603
|
-
if (
|
|
6602
|
+
if (Ne) {
|
|
6603
|
+
if (Ee && Ot(i), Pe) for (s = j.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
6604
6604
|
else s = i;
|
|
6605
|
-
return (
|
|
6605
|
+
return (F.shadowroot || F.shadowrootmode) && (s = se.call(r, s, !0)), s;
|
|
6606
6606
|
}
|
|
6607
|
-
let u =
|
|
6608
|
-
return
|
|
6607
|
+
let u = Oe ? i.outerHTML : i.innerHTML;
|
|
6608
|
+
return Oe && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Tf($f, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), Ee && (u = Dt(u)), T && Fe ? ne(u) : u;
|
|
6609
6609
|
}, t.setConfig = function() {
|
|
6610
6610
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6611
|
-
dt(e),
|
|
6611
|
+
dt(e), ke = !0, Ae = P, je = F;
|
|
6612
6612
|
}, t.clearConfig = function() {
|
|
6613
|
-
ct = null,
|
|
6613
|
+
ct = null, ke = !1, Ae = null, je = null, T = ee, E = "";
|
|
6614
6614
|
}, t.isValidAttribute = function(e, t, n) {
|
|
6615
6615
|
ct || dt({});
|
|
6616
|
-
let r =
|
|
6616
|
+
let r = I(e), i = I(t);
|
|
6617
6617
|
return zt(r, i, n);
|
|
6618
6618
|
}, t.addHook = function(e, t) {
|
|
6619
|
-
typeof t == "function" && Cf(
|
|
6619
|
+
typeof t == "function" && Cf(M, e) && uf(M[e], t);
|
|
6620
6620
|
}, t.removeHook = function(e, t) {
|
|
6621
|
-
if (Cf(
|
|
6621
|
+
if (Cf(M, e)) {
|
|
6622
6622
|
if (t !== void 0) {
|
|
6623
|
-
let n = cf(
|
|
6624
|
-
return n === -1 ? void 0 : df(
|
|
6623
|
+
let n = cf(M[e], t);
|
|
6624
|
+
return n === -1 ? void 0 : df(M[e], n, 1)[0];
|
|
6625
6625
|
}
|
|
6626
|
-
return lf(
|
|
6626
|
+
return lf(M[e]);
|
|
6627
6627
|
}
|
|
6628
6628
|
}, t.removeHooks = function(e) {
|
|
6629
|
-
Cf(
|
|
6629
|
+
Cf(M, e) && (M[e] = []);
|
|
6630
6630
|
}, t.removeAllHooks = function() {
|
|
6631
|
-
|
|
6631
|
+
M = dp();
|
|
6632
6632
|
}, t;
|
|
6633
6633
|
}
|
|
6634
6634
|
var hp = mp(), gp = "data-pie-authored-ink", _p = "data-pie-authored-fill", vp = "data-pie-authored-border", yp = [
|
|
@@ -7922,18 +7922,18 @@ var Ph = (e) => {
|
|
|
7922
7922
|
disableScrollLock: x,
|
|
7923
7923
|
hideBackdrop: S,
|
|
7924
7924
|
keepMounted: C
|
|
7925
|
-
}, { getRootProps:
|
|
7925
|
+
}, { getRootProps: ie, getBackdropProps: k, getTransitionProps: A, portalRef: ae, isTopModal: j, exited: oe, hasTransition: se } = Mh({
|
|
7926
7926
|
...re,
|
|
7927
7927
|
rootRef: t
|
|
7928
|
-
}),
|
|
7928
|
+
}), M = {
|
|
7929
7929
|
...re,
|
|
7930
|
-
exited:
|
|
7931
|
-
},
|
|
7932
|
-
if (l.props.tabIndex === void 0 && (
|
|
7933
|
-
let { onEnter: e, onExited: t } =
|
|
7934
|
-
|
|
7930
|
+
exited: oe
|
|
7931
|
+
}, ce = Ph(M), le = {};
|
|
7932
|
+
if (l.props.tabIndex === void 0 && (le.tabIndex = "-1"), se) {
|
|
7933
|
+
let { onEnter: e, onExited: t } = A();
|
|
7934
|
+
le.onEnter = e, le.onExited = t;
|
|
7935
7935
|
}
|
|
7936
|
-
let
|
|
7936
|
+
let ue = {
|
|
7937
7937
|
slots: {
|
|
7938
7938
|
root: f.Root,
|
|
7939
7939
|
backdrop: f.Backdrop,
|
|
@@ -7943,45 +7943,45 @@ var Ph = (e) => {
|
|
|
7943
7943
|
...p,
|
|
7944
7944
|
...te
|
|
7945
7945
|
}
|
|
7946
|
-
}, [
|
|
7946
|
+
}, [N, de] = vh("root", {
|
|
7947
7947
|
ref: t,
|
|
7948
7948
|
elementType: Fh,
|
|
7949
7949
|
externalForwardedProps: {
|
|
7950
|
-
...
|
|
7950
|
+
...ue,
|
|
7951
7951
|
...ne,
|
|
7952
7952
|
component: d
|
|
7953
7953
|
},
|
|
7954
|
-
getSlotProps:
|
|
7955
|
-
ownerState:
|
|
7956
|
-
className: H(o,
|
|
7957
|
-
}), [
|
|
7954
|
+
getSlotProps: ie,
|
|
7955
|
+
ownerState: M,
|
|
7956
|
+
className: H(o, ce?.root, !M.open && M.exited && ce?.hidden)
|
|
7957
|
+
}), [fe, pe] = vh("backdrop", {
|
|
7958
7958
|
ref: i?.ref,
|
|
7959
7959
|
elementType: r,
|
|
7960
|
-
externalForwardedProps:
|
|
7960
|
+
externalForwardedProps: ue,
|
|
7961
7961
|
shouldForwardComponentProp: !0,
|
|
7962
7962
|
additionalProps: i,
|
|
7963
|
-
getSlotProps: (e) =>
|
|
7963
|
+
getSlotProps: (e) => k({
|
|
7964
7964
|
...e,
|
|
7965
7965
|
onClick: (t) => {
|
|
7966
7966
|
e?.onClick && e.onClick(t);
|
|
7967
7967
|
}
|
|
7968
7968
|
}),
|
|
7969
|
-
className: H(i?.className,
|
|
7970
|
-
ownerState:
|
|
7969
|
+
className: H(i?.className, ce?.backdrop),
|
|
7970
|
+
ownerState: M
|
|
7971
7971
|
});
|
|
7972
|
-
return !C && !ee && (!
|
|
7973
|
-
ref:
|
|
7972
|
+
return !C && !ee && (!se || oe) ? null : /*#__PURE__*/ y(dh, {
|
|
7973
|
+
ref: ae,
|
|
7974
7974
|
container: u,
|
|
7975
7975
|
disablePortal: _,
|
|
7976
|
-
children: /*#__PURE__*/ b(
|
|
7977
|
-
...
|
|
7978
|
-
children: [!S && r ? /*#__PURE__*/ y(
|
|
7976
|
+
children: /*#__PURE__*/ b(N, {
|
|
7977
|
+
...de,
|
|
7978
|
+
children: [!S && r ? /*#__PURE__*/ y(fe, { ...pe }) : null, /*#__PURE__*/ y(ch, {
|
|
7979
7979
|
disableEnforceFocus: h,
|
|
7980
7980
|
disableAutoFocus: m,
|
|
7981
7981
|
disableRestoreFocus: v,
|
|
7982
|
-
isEnabled:
|
|
7982
|
+
isEnabled: j,
|
|
7983
7983
|
open: ee,
|
|
7984
|
-
children: /*#__PURE__*/ c.cloneElement(l,
|
|
7984
|
+
children: /*#__PURE__*/ c.cloneElement(l, le)
|
|
7985
7985
|
})]
|
|
7986
7986
|
})
|
|
7987
7987
|
});
|
|
@@ -8354,30 +8354,30 @@ var ig = (e) => {
|
|
|
8354
8354
|
te,
|
|
8355
8355
|
D,
|
|
8356
8356
|
p
|
|
8357
|
-
]), [ne, re] = c.useState(m),
|
|
8357
|
+
]), [ne, re] = c.useState(m), ie = c.useCallback(() => {
|
|
8358
8358
|
let e = T.current;
|
|
8359
8359
|
if (!e) return;
|
|
8360
8360
|
let t = O(e);
|
|
8361
8361
|
t.top !== null && e.style.setProperty("top", t.top), t.left !== null && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, re(!0);
|
|
8362
8362
|
}, [O]);
|
|
8363
|
-
c.useEffect(() => (C && window.addEventListener("scroll",
|
|
8363
|
+
c.useEffect(() => (C && window.addEventListener("scroll", ie), () => window.removeEventListener("scroll", ie)), [
|
|
8364
8364
|
i,
|
|
8365
8365
|
C,
|
|
8366
|
-
|
|
8366
|
+
ie
|
|
8367
8367
|
]);
|
|
8368
|
-
let
|
|
8369
|
-
|
|
8370
|
-
},
|
|
8368
|
+
let k = () => {
|
|
8369
|
+
ie();
|
|
8370
|
+
}, A = () => {
|
|
8371
8371
|
re(!1);
|
|
8372
8372
|
};
|
|
8373
8373
|
c.useEffect(() => {
|
|
8374
|
-
m &&
|
|
8374
|
+
m && ie();
|
|
8375
8375
|
}), c.useImperativeHandle(r, () => m ? { updatePosition: () => {
|
|
8376
|
-
|
|
8377
|
-
} } : null, [m,
|
|
8376
|
+
ie();
|
|
8377
|
+
} } : null, [m, ie]), c.useEffect(() => {
|
|
8378
8378
|
if (!m) return;
|
|
8379
8379
|
let e = vm(() => {
|
|
8380
|
-
|
|
8380
|
+
ie();
|
|
8381
8381
|
}), t = Sm(rg(i));
|
|
8382
8382
|
return t.addEventListener("resize", e), () => {
|
|
8383
8383
|
e.clear(), t.removeEventListener("resize", e);
|
|
@@ -8385,9 +8385,9 @@ var ig = (e) => {
|
|
|
8385
8385
|
}, [
|
|
8386
8386
|
i,
|
|
8387
8387
|
m,
|
|
8388
|
-
|
|
8388
|
+
ie
|
|
8389
8389
|
]);
|
|
8390
|
-
let
|
|
8390
|
+
let ae = x, j = {
|
|
8391
8391
|
slots: {
|
|
8392
8392
|
transition: b,
|
|
8393
8393
|
...g
|
|
@@ -8397,17 +8397,17 @@ var ig = (e) => {
|
|
|
8397
8397
|
paper: h,
|
|
8398
8398
|
..._
|
|
8399
8399
|
}
|
|
8400
|
-
}, [
|
|
8400
|
+
}, [oe, se] = vh("transition", {
|
|
8401
8401
|
elementType: zm,
|
|
8402
|
-
externalForwardedProps:
|
|
8402
|
+
externalForwardedProps: j,
|
|
8403
8403
|
ownerState: E,
|
|
8404
8404
|
getSlotProps: (e) => ({
|
|
8405
8405
|
...e,
|
|
8406
8406
|
onEntering: (t, n) => {
|
|
8407
|
-
e.onEntering?.(t, n),
|
|
8407
|
+
e.onEntering?.(t, n), k();
|
|
8408
8408
|
},
|
|
8409
8409
|
onExited: (t) => {
|
|
8410
|
-
e.onExited?.(t),
|
|
8410
|
+
e.onExited?.(t), A();
|
|
8411
8411
|
}
|
|
8412
8412
|
}),
|
|
8413
8413
|
additionalProps: {
|
|
@@ -8415,28 +8415,28 @@ var ig = (e) => {
|
|
|
8415
8415
|
in: m
|
|
8416
8416
|
}
|
|
8417
8417
|
});
|
|
8418
|
-
x === "auto" && !
|
|
8419
|
-
let
|
|
8418
|
+
x === "auto" && !oe.muiSupportAuto && (ae = void 0);
|
|
8419
|
+
let M = d || (i ? bm(rg(i)).body : void 0), [ce, { slots: le, slotProps: ue, ...N }] = vh("root", {
|
|
8420
8420
|
ref: t,
|
|
8421
8421
|
elementType: ag,
|
|
8422
8422
|
externalForwardedProps: {
|
|
8423
|
-
...
|
|
8423
|
+
...j,
|
|
8424
8424
|
...w
|
|
8425
8425
|
},
|
|
8426
8426
|
shouldForwardComponentProp: !0,
|
|
8427
8427
|
additionalProps: {
|
|
8428
8428
|
slots: { backdrop: g.backdrop },
|
|
8429
8429
|
slotProps: { backdrop: $h(typeof _.backdrop == "function" ? _.backdrop(E) : _.backdrop, { invisible: !0 }) },
|
|
8430
|
-
container:
|
|
8430
|
+
container: M,
|
|
8431
8431
|
open: m
|
|
8432
8432
|
},
|
|
8433
8433
|
ownerState: E,
|
|
8434
8434
|
className: H(ee.root, u)
|
|
8435
|
-
}), [
|
|
8435
|
+
}), [de, fe] = vh("paper", {
|
|
8436
8436
|
ref: T,
|
|
8437
8437
|
className: ee.paper,
|
|
8438
8438
|
elementType: og,
|
|
8439
|
-
externalForwardedProps:
|
|
8439
|
+
externalForwardedProps: j,
|
|
8440
8440
|
shouldForwardComponentProp: !0,
|
|
8441
8441
|
additionalProps: {
|
|
8442
8442
|
elevation: f,
|
|
@@ -8444,18 +8444,18 @@ var ig = (e) => {
|
|
|
8444
8444
|
},
|
|
8445
8445
|
ownerState: E
|
|
8446
8446
|
});
|
|
8447
|
-
return /*#__PURE__*/ y(
|
|
8448
|
-
...
|
|
8449
|
-
...!hm(
|
|
8450
|
-
slots:
|
|
8451
|
-
slotProps:
|
|
8447
|
+
return /*#__PURE__*/ y(ce, {
|
|
8448
|
+
...N,
|
|
8449
|
+
...!hm(ce) && {
|
|
8450
|
+
slots: le,
|
|
8451
|
+
slotProps: ue,
|
|
8452
8452
|
disableScrollLock: C
|
|
8453
8453
|
},
|
|
8454
|
-
children: /*#__PURE__*/ y(
|
|
8455
|
-
...
|
|
8456
|
-
timeout:
|
|
8457
|
-
children: /*#__PURE__*/ y(
|
|
8458
|
-
...
|
|
8454
|
+
children: /*#__PURE__*/ y(oe, {
|
|
8455
|
+
...se,
|
|
8456
|
+
timeout: ae,
|
|
8457
|
+
children: /*#__PURE__*/ y(de, {
|
|
8458
|
+
...fe,
|
|
8459
8459
|
children: l
|
|
8460
8460
|
})
|
|
8461
8461
|
})
|
|
@@ -8854,10 +8854,10 @@ var Eg = (e) => {
|
|
|
8854
8854
|
...n,
|
|
8855
8855
|
orientation: _,
|
|
8856
8856
|
collapsedSize: o
|
|
8857
|
-
}, E = Eg(T), ee = tl(), te = Om(), D = c.useRef(null), O = c.useRef(), ne = typeof o == "number" ? `${o}px` : o, re = _ === "horizontal",
|
|
8858
|
-
D.current && re && (D.current.style.position = "absolute"), e.style[
|
|
8859
|
-
}),
|
|
8860
|
-
let n =
|
|
8857
|
+
}, E = Eg(T), ee = tl(), te = Om(), D = c.useRef(null), O = c.useRef(), ne = typeof o == "number" ? `${o}px` : o, re = _ === "horizontal", ie = re ? "width" : "height", k = c.useRef(null), A = Fm(t, k), ae = () => D.current ? D.current[re ? "clientWidth" : "clientHeight"] : 0, j = jm(k, (e, t) => {
|
|
8858
|
+
D.current && re && (D.current.style.position = "absolute"), e.style[ie] = ne, d && d(e, t);
|
|
8859
|
+
}), oe = jm(k, (e, t) => {
|
|
8860
|
+
let n = ae();
|
|
8861
8861
|
D.current && re && (D.current.style.position = "");
|
|
8862
8862
|
let { duration: r, easing: i } = Nm({
|
|
8863
8863
|
style: x,
|
|
@@ -8868,13 +8868,13 @@ var Eg = (e) => {
|
|
|
8868
8868
|
let t = ee.transitions.getAutoHeightDuration(n);
|
|
8869
8869
|
e.style.transitionDuration = `${t}ms`, O.current = t;
|
|
8870
8870
|
} else e.style.transitionDuration = typeof r == "string" ? r : `${r}ms`;
|
|
8871
|
-
e.style[
|
|
8872
|
-
}),
|
|
8873
|
-
e.style[
|
|
8874
|
-
}),
|
|
8875
|
-
e.style[
|
|
8876
|
-
}),
|
|
8877
|
-
let t =
|
|
8871
|
+
e.style[ie] = `${n}px`, e.style.transitionTimingFunction = i, p && p(e, t);
|
|
8872
|
+
}), se = jm(k, (e, t) => {
|
|
8873
|
+
e.style[ie] = "auto", f && f(e, t);
|
|
8874
|
+
}), M = jm(k, (e) => {
|
|
8875
|
+
e.style[ie] = `${ae()}px`, m && m(e);
|
|
8876
|
+
}), ce = jm(k, h), le = jm(k, (e) => {
|
|
8877
|
+
let t = ae(), { duration: n, easing: r } = Nm({
|
|
8878
8878
|
style: x,
|
|
8879
8879
|
timeout: S,
|
|
8880
8880
|
easing: l
|
|
@@ -8883,45 +8883,45 @@ var Eg = (e) => {
|
|
|
8883
8883
|
let n = ee.transitions.getAutoHeightDuration(t);
|
|
8884
8884
|
e.style.transitionDuration = `${n}ms`, O.current = n;
|
|
8885
8885
|
} else e.style.transitionDuration = typeof n == "string" ? n : `${n}ms`;
|
|
8886
|
-
e.style[
|
|
8887
|
-
}),
|
|
8888
|
-
S === "auto" && te.start(O.current || 0, e), r && r(
|
|
8889
|
-
},
|
|
8886
|
+
e.style[ie] = ne, e.style.transitionTimingFunction = r, g && g(e);
|
|
8887
|
+
}), ue = (e) => {
|
|
8888
|
+
S === "auto" && te.start(O.current || 0, e), r && r(k.current, e);
|
|
8889
|
+
}, N = {
|
|
8890
8890
|
slots: v,
|
|
8891
8891
|
slotProps: b,
|
|
8892
8892
|
component: s
|
|
8893
|
-
}, [
|
|
8894
|
-
ref:
|
|
8893
|
+
}, [de, fe] = vh("root", {
|
|
8894
|
+
ref: A,
|
|
8895
8895
|
className: H(E.root, a),
|
|
8896
8896
|
elementType: Dg,
|
|
8897
|
-
externalForwardedProps:
|
|
8897
|
+
externalForwardedProps: N,
|
|
8898
8898
|
ownerState: T,
|
|
8899
8899
|
additionalProps: { style: {
|
|
8900
8900
|
[re ? "minWidth" : "minHeight"]: ne,
|
|
8901
8901
|
...x
|
|
8902
8902
|
} }
|
|
8903
|
-
}), [
|
|
8903
|
+
}), [pe, me] = vh("wrapper", {
|
|
8904
8904
|
ref: D,
|
|
8905
8905
|
className: E.wrapper,
|
|
8906
8906
|
elementType: Og,
|
|
8907
|
-
externalForwardedProps:
|
|
8907
|
+
externalForwardedProps: N,
|
|
8908
8908
|
ownerState: T
|
|
8909
|
-
}), [
|
|
8909
|
+
}), [he, P] = vh("wrapperInner", {
|
|
8910
8910
|
className: E.wrapperInner,
|
|
8911
8911
|
elementType: kg,
|
|
8912
|
-
externalForwardedProps:
|
|
8912
|
+
externalForwardedProps: N,
|
|
8913
8913
|
ownerState: T
|
|
8914
8914
|
});
|
|
8915
8915
|
return /*#__PURE__*/ y(C, {
|
|
8916
8916
|
in: u,
|
|
8917
|
-
onEnter:
|
|
8918
|
-
onEntered:
|
|
8919
|
-
onEntering:
|
|
8920
|
-
onExit:
|
|
8921
|
-
onExited:
|
|
8922
|
-
onExiting:
|
|
8923
|
-
addEndListener:
|
|
8924
|
-
nodeRef:
|
|
8917
|
+
onEnter: j,
|
|
8918
|
+
onEntered: se,
|
|
8919
|
+
onEntering: oe,
|
|
8920
|
+
onExit: M,
|
|
8921
|
+
onExited: ce,
|
|
8922
|
+
onExiting: le,
|
|
8923
|
+
addEndListener: ue,
|
|
8924
|
+
nodeRef: k,
|
|
8925
8925
|
timeout: S === "auto" ? null : S,
|
|
8926
8926
|
...w,
|
|
8927
8927
|
children: (e, { ownerState: t, ...n }) => {
|
|
@@ -8929,19 +8929,19 @@ var Eg = (e) => {
|
|
|
8929
8929
|
...T,
|
|
8930
8930
|
state: e
|
|
8931
8931
|
};
|
|
8932
|
-
return /*#__PURE__*/ y(
|
|
8933
|
-
...
|
|
8934
|
-
className: H(
|
|
8932
|
+
return /*#__PURE__*/ y(de, {
|
|
8933
|
+
...fe,
|
|
8934
|
+
className: H(fe.className, {
|
|
8935
8935
|
entered: E.entered,
|
|
8936
8936
|
exited: !u && ne === "0px" && E.hidden
|
|
8937
8937
|
}[e]),
|
|
8938
8938
|
ownerState: r,
|
|
8939
8939
|
...n,
|
|
8940
|
-
children: /*#__PURE__*/ y(
|
|
8941
|
-
...
|
|
8940
|
+
children: /*#__PURE__*/ y(pe, {
|
|
8941
|
+
...me,
|
|
8942
8942
|
ownerState: r,
|
|
8943
|
-
children: /*#__PURE__*/ y(
|
|
8944
|
-
...
|
|
8943
|
+
children: /*#__PURE__*/ y(he, {
|
|
8944
|
+
...P,
|
|
8945
8945
|
ownerState: r,
|
|
8946
8946
|
children: i
|
|
8947
8947
|
})
|
|
@@ -9331,44 +9331,44 @@ var Yg = To("MuiButtonBase", [
|
|
|
9331
9331
|
let n = gm({
|
|
9332
9332
|
props: e,
|
|
9333
9333
|
name: "MuiButtonBase"
|
|
9334
|
-
}), { action: r, centerRipple: i = !1, children: a, className: o, component: s = "button", disabled: l = !1, disableRipple: u = !1, disableTouchRipple: d = !1, focusRipple: f = !1, focusVisibleClassName: p, LinkComponent: m = "a", onBlur: h, onClick: g, onContextMenu: _, onDragLeave: v, onFocus: x, onFocusVisible: S, onKeyDown: C, onKeyUp: w, onMouseDown: T, onMouseLeave: E, onMouseUp: ee, onTouchEnd: te, onTouchMove: D, onTouchStart: O, tabIndex: ne = 0, TouchRippleProps: re, touchRippleRef:
|
|
9335
|
-
l &&
|
|
9336
|
-
|
|
9334
|
+
}), { action: r, centerRipple: i = !1, children: a, className: o, component: s = "button", disabled: l = !1, disableRipple: u = !1, disableTouchRipple: d = !1, focusRipple: f = !1, focusVisibleClassName: p, LinkComponent: m = "a", onBlur: h, onClick: g, onContextMenu: _, onDragLeave: v, onFocus: x, onFocusVisible: S, onKeyDown: C, onKeyUp: w, onMouseDown: T, onMouseLeave: E, onMouseUp: ee, onTouchEnd: te, onTouchMove: D, onTouchStart: O, tabIndex: ne = 0, TouchRippleProps: re, touchRippleRef: ie, type: k, ...A } = n, ae = c.useRef(null), j = Lg(), oe = Fm(j.ref, ie), [se, M] = c.useState(!1);
|
|
9335
|
+
l && se && M(!1), c.useImperativeHandle(r, () => ({ focusVisible: () => {
|
|
9336
|
+
M(!0), ae.current.focus();
|
|
9337
9337
|
} }), []);
|
|
9338
|
-
let
|
|
9338
|
+
let ce = j.shouldMount && !u && !l;
|
|
9339
9339
|
c.useEffect(() => {
|
|
9340
|
-
|
|
9340
|
+
se && f && !u && j.pulsate();
|
|
9341
9341
|
}, [
|
|
9342
9342
|
u,
|
|
9343
9343
|
f,
|
|
9344
|
-
|
|
9345
|
-
|
|
9344
|
+
se,
|
|
9345
|
+
j
|
|
9346
9346
|
]);
|
|
9347
|
-
let
|
|
9348
|
-
|
|
9349
|
-
}, d),
|
|
9350
|
-
Fg(e.target) ||
|
|
9351
|
-
}, !1),
|
|
9352
|
-
|
|
9353
|
-
}),
|
|
9354
|
-
let e =
|
|
9347
|
+
let le = $g(j, "start", T, d), ue = $g(j, "stop", _, d), N = $g(j, "stop", v, d), de = $g(j, "stop", ee, d), fe = $g(j, "stop", (e) => {
|
|
9348
|
+
se && e.preventDefault(), E && E(e);
|
|
9349
|
+
}, d), pe = $g(j, "start", O, d), me = $g(j, "stop", te, d), he = $g(j, "stop", D, d), P = $g(j, "stop", (e) => {
|
|
9350
|
+
Fg(e.target) || M(!1), h && h(e);
|
|
9351
|
+
}, !1), ge = Zh((e) => {
|
|
9352
|
+
ae.current ||= e.currentTarget, Fg(e.target) && (M(!0), S && S(e)), x && x(e);
|
|
9353
|
+
}), F = () => {
|
|
9354
|
+
let e = ae.current;
|
|
9355
9355
|
return e ? e.tagName !== "BUTTON" && !(e.tagName === "A" && e.href) : s && s !== "button";
|
|
9356
|
-
},
|
|
9357
|
-
f && !e.repeat &&
|
|
9358
|
-
|
|
9359
|
-
}), e.target === e.currentTarget &&
|
|
9360
|
-
}),
|
|
9361
|
-
f && e.key === " " &&
|
|
9362
|
-
|
|
9363
|
-
}), w && w(e), g && e.target === e.currentTarget &&
|
|
9364
|
-
}),
|
|
9365
|
-
|
|
9366
|
-
let
|
|
9367
|
-
if (
|
|
9368
|
-
let e = !!
|
|
9369
|
-
|
|
9370
|
-
} else !
|
|
9371
|
-
let
|
|
9356
|
+
}, _e = Zh((e) => {
|
|
9357
|
+
f && !e.repeat && se && e.key === " " && j.stop(e, () => {
|
|
9358
|
+
j.start(e);
|
|
9359
|
+
}), e.target === e.currentTarget && F() && e.key === " " && e.preventDefault(), C && C(e), e.target === e.currentTarget && F() && e.key === "Enter" && !l && (e.preventDefault(), g && g(e));
|
|
9360
|
+
}), ve = Zh((e) => {
|
|
9361
|
+
f && e.key === " " && se && !e.defaultPrevented && j.stop(e, () => {
|
|
9362
|
+
j.pulsate(e);
|
|
9363
|
+
}), w && w(e), g && e.target === e.currentTarget && F() && e.key === " " && !e.defaultPrevented && !l && g(e);
|
|
9364
|
+
}), ye = s;
|
|
9365
|
+
ye === "button" && (A.href || A.to) && (ye = m);
|
|
9366
|
+
let be = {};
|
|
9367
|
+
if (ye === "button") {
|
|
9368
|
+
let e = !!A.formAction;
|
|
9369
|
+
be.type = k === void 0 && !e ? "button" : k, be.disabled = l;
|
|
9370
|
+
} else !A.href && !A.to && (be.role = "button"), l && (be["aria-disabled"] = l);
|
|
9371
|
+
let xe = Fm(t, ae), Se = {
|
|
9372
9372
|
...n,
|
|
9373
9373
|
centerRipple: i,
|
|
9374
9374
|
component: s,
|
|
@@ -9377,32 +9377,32 @@ var Yg = To("MuiButtonBase", [
|
|
|
9377
9377
|
disableTouchRipple: d,
|
|
9378
9378
|
focusRipple: f,
|
|
9379
9379
|
tabIndex: ne,
|
|
9380
|
-
focusVisible:
|
|
9381
|
-
},
|
|
9380
|
+
focusVisible: se
|
|
9381
|
+
}, Ce = Xg(Se);
|
|
9382
9382
|
return /*#__PURE__*/ b(Zg, {
|
|
9383
|
-
as:
|
|
9384
|
-
className: H(
|
|
9385
|
-
ownerState:
|
|
9386
|
-
onBlur:
|
|
9383
|
+
as: ye,
|
|
9384
|
+
className: H(Ce.root, o),
|
|
9385
|
+
ownerState: Se,
|
|
9386
|
+
onBlur: P,
|
|
9387
9387
|
onClick: g,
|
|
9388
|
-
onContextMenu:
|
|
9389
|
-
onFocus:
|
|
9390
|
-
onKeyDown:
|
|
9391
|
-
onKeyUp:
|
|
9392
|
-
onMouseDown:
|
|
9393
|
-
onMouseLeave:
|
|
9394
|
-
onMouseUp:
|
|
9395
|
-
onDragLeave:
|
|
9396
|
-
onTouchEnd:
|
|
9397
|
-
onTouchMove:
|
|
9398
|
-
onTouchStart:
|
|
9399
|
-
ref:
|
|
9388
|
+
onContextMenu: ue,
|
|
9389
|
+
onFocus: ge,
|
|
9390
|
+
onKeyDown: _e,
|
|
9391
|
+
onKeyUp: ve,
|
|
9392
|
+
onMouseDown: le,
|
|
9393
|
+
onMouseLeave: fe,
|
|
9394
|
+
onMouseUp: de,
|
|
9395
|
+
onDragLeave: N,
|
|
9396
|
+
onTouchEnd: me,
|
|
9397
|
+
onTouchMove: he,
|
|
9398
|
+
onTouchStart: pe,
|
|
9399
|
+
ref: xe,
|
|
9400
9400
|
tabIndex: l ? -1 : ne,
|
|
9401
|
-
type:
|
|
9402
|
-
...
|
|
9403
|
-
...
|
|
9404
|
-
children: [a,
|
|
9405
|
-
ref:
|
|
9401
|
+
type: k,
|
|
9402
|
+
...be,
|
|
9403
|
+
...A,
|
|
9404
|
+
children: [a, ce ? /*#__PURE__*/ y(qg, {
|
|
9405
|
+
ref: oe,
|
|
9406
9406
|
center: i,
|
|
9407
9407
|
...re
|
|
9408
9408
|
}) : null]
|
|
@@ -10056,7 +10056,7 @@ var g_ = To("MuiButton", /* @__PURE__ */ "root.text.textInherit.textPrimary.text
|
|
|
10056
10056
|
className: O.loadingIconPlaceholder,
|
|
10057
10057
|
ownerState: D
|
|
10058
10058
|
})
|
|
10059
|
-
}),
|
|
10059
|
+
}), ie = r || "", k = typeof _ == "boolean" ? /*#__PURE__*/ y("span", {
|
|
10060
10060
|
className: O.loadingWrapper,
|
|
10061
10061
|
style: { display: "contents" },
|
|
10062
10062
|
children: _ && /*#__PURE__*/ y(w_, {
|
|
@@ -10064,10 +10064,10 @@ var g_ = To("MuiButton", /* @__PURE__ */ "root.text.textInherit.textPrimary.text
|
|
|
10064
10064
|
ownerState: D,
|
|
10065
10065
|
children: te
|
|
10066
10066
|
})
|
|
10067
|
-
}) : null, { root:
|
|
10067
|
+
}) : null, { root: A, ...ae } = O;
|
|
10068
10068
|
return /*#__PURE__*/ b(x_, {
|
|
10069
10069
|
ownerState: D,
|
|
10070
|
-
className: H(n.className, O.root, l,
|
|
10070
|
+
className: H(n.className, O.root, l, ie),
|
|
10071
10071
|
component: s,
|
|
10072
10072
|
disabled: u || _,
|
|
10073
10073
|
focusRipple: !f,
|
|
@@ -10076,12 +10076,12 @@ var g_ = To("MuiButton", /* @__PURE__ */ "root.text.textInherit.textPrimary.text
|
|
|
10076
10076
|
type: w,
|
|
10077
10077
|
id: _ ? ee : g,
|
|
10078
10078
|
...E,
|
|
10079
|
-
classes:
|
|
10079
|
+
classes: ae,
|
|
10080
10080
|
children: [
|
|
10081
10081
|
ne,
|
|
10082
|
-
x !== "end" &&
|
|
10082
|
+
x !== "end" && k,
|
|
10083
10083
|
a,
|
|
10084
|
-
x === "end" &&
|
|
10084
|
+
x === "end" && k,
|
|
10085
10085
|
re
|
|
10086
10086
|
]
|
|
10087
10087
|
});
|
|
@@ -11192,7 +11192,7 @@ var zv = {
|
|
|
11192
11192
|
externalForwardedProps: D,
|
|
11193
11193
|
shouldForwardComponentProp: !0,
|
|
11194
11194
|
ownerState: S
|
|
11195
|
-
}), [
|
|
11195
|
+
}), [ie, k] = vh("list", {
|
|
11196
11196
|
className: H(C.list, s.className),
|
|
11197
11197
|
elementType: Wv,
|
|
11198
11198
|
shouldForwardComponentProp: !0,
|
|
@@ -11204,7 +11204,7 @@ var zv = {
|
|
|
11204
11204
|
}
|
|
11205
11205
|
}),
|
|
11206
11206
|
ownerState: S
|
|
11207
|
-
}),
|
|
11207
|
+
}), A = typeof D.slotProps.transition == "function" ? D.slotProps.transition(S) : D.slotProps.transition;
|
|
11208
11208
|
return /*#__PURE__*/ y(Hv, {
|
|
11209
11209
|
onClose: l,
|
|
11210
11210
|
anchorOrigin: {
|
|
@@ -11223,9 +11223,9 @@ var zv = {
|
|
|
11223
11223
|
paper: re,
|
|
11224
11224
|
backdrop: typeof v.backdrop == "function" ? v.backdrop(S) : v.backdrop,
|
|
11225
11225
|
transition: {
|
|
11226
|
-
...
|
|
11226
|
+
...A,
|
|
11227
11227
|
onEntering: (...e) => {
|
|
11228
|
-
E(...e),
|
|
11228
|
+
E(...e), A?.onEntering?.(...e);
|
|
11229
11229
|
}
|
|
11230
11230
|
}
|
|
11231
11231
|
},
|
|
@@ -11235,12 +11235,12 @@ var zv = {
|
|
|
11235
11235
|
ownerState: S,
|
|
11236
11236
|
...b,
|
|
11237
11237
|
classes: f,
|
|
11238
|
-
children: /*#__PURE__*/ y(
|
|
11238
|
+
children: /*#__PURE__*/ y(ie, {
|
|
11239
11239
|
actions: T,
|
|
11240
11240
|
autoFocus: r && (te === -1 || o),
|
|
11241
11241
|
autoFocusItem: w,
|
|
11242
11242
|
variant: g,
|
|
11243
|
-
...
|
|
11243
|
+
...k,
|
|
11244
11244
|
children: i
|
|
11245
11245
|
})
|
|
11246
11246
|
});
|
|
@@ -13284,4 +13284,4 @@ var sb = (e, t) => {
|
|
|
13284
13284
|
//#endregion
|
|
13285
13285
|
export { Fm as $, Pg as A, H as At, Q as B, kn as Bt, I_ as C, qs as Ct, n_ as D, zo as Dt, m_ as E, ls as Et, Zh as F, Vi as Ft, Th as G, Lh as H, Tn as Ht, Xh as I, Ti as It, fh as J, xh as K, Yh as L, Ei as Lt, Sg as M, oo as Mt, ug as N, Qi as Nt, Qg as O, To as Ot, $h as P, Xi as Pt, zm as Q, Jh as R, jn as Rt, B_ as S, $c as St, E_ as T, _s as Tt, Dh as U, En as Ut, Vh as V, wn as Vt, Eh as W, eh as X, dh as Y, $m as Z, av as _, q as _t, Xy as a, xm as at, H_ as b, tl as bt, Gv as c, vm as ct, Ev as d, hm as dt, Pm as et, Cv as f, um as ft, cv as g, ul as gt, gv as h, Al as ht, Zy as i, Sm as it, Ag as j, yo as jt, Fg as k, wo as kt, jv as l, _m as lt, _v as m, ru as mt, ub as n, Dm as nt, qv as o, bm as ot, xv as p, Au as pt, vh as q, ab as r, Om as rt, Kv as s, ym as st, db as t, km as tt, Dv as u, gm as ut, ev as v, rl as vt, O_ as w, Ws as wt, V_ as x, el as xt, Q_ as y, nl as yt, qh as z, An as zt };
|
|
13286
13286
|
|
|
13287
|
-
//# sourceMappingURL=Close-
|
|
13287
|
+
//# sourceMappingURL=Close-C9TW5P5n.js.map
|