@hachej/boring-workspace 0.1.23 → 0.1.26
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/{FileTree-D8Rmj8Bo.js → FileTree-BZGu5Ap6.js} +114 -104
- package/dist/{MarkdownEditor-DKC4gNT4.js → MarkdownEditor-DshmttZM.js} +9 -9
- package/dist/{WorkspaceLoadingState-hKrnYCL3.js → WorkspaceLoadingState-DVCLcOQu.js} +167 -146
- package/dist/WorkspaceProvider-DQ-325Qs.js +6367 -0
- package/dist/app-front.d.ts +114 -2
- package/dist/app-front.js +787 -333
- package/dist/app-server.d.ts +10 -3
- package/dist/app-server.js +744 -579
- package/dist/createInMemoryBridge--ZFPAgXy.d.ts +161 -0
- package/dist/events.d.ts +3 -0
- package/dist/{manifest-CyNNdfYz.d.ts → manifest-C2vVgH_e.d.ts} +2 -0
- package/dist/plugin.d.ts +8 -3
- package/dist/plugin.js +3 -2
- package/dist/server.d.ts +50 -70
- package/dist/server.js +192 -44
- package/dist/shared.d.ts +2 -2
- package/dist/{surface-COYagY2m.d.ts → surface-CEEkd81D.d.ts} +1 -0
- package/dist/testing.d.ts +1 -0
- package/dist/testing.js +409 -404
- package/dist/{ui-bridge-CT18yqwN.d.ts → ui-bridge-Bdgl2hR8.d.ts} +2 -0
- package/dist/workspace.css +73 -0
- package/dist/workspace.d.ts +228 -6
- package/dist/workspace.js +188 -179
- package/docs/INTERFACES.md +6 -0
- package/docs/plans/FULL_PAGE_PANEL_ROUTE_SPEC.md +633 -0
- package/package.json +6 -6
- package/dist/WorkspaceProvider-Cn0sPgaB.js +0 -5976
- package/dist/createInMemoryBridge-CYNW1h_o.d.ts +0 -61
package/dist/testing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Ba } from "react/jsx-runtime";
|
|
2
2
|
import * as Pa from "react";
|
|
3
3
|
import { createElement as is, useMemo as wn, useLayoutEffect as us, isValidElement as ss, cloneElement as ds, useSyncExternalStore as Gi } from "react";
|
|
4
|
-
import { h as cs,
|
|
4
|
+
import { h as cs, p as fs, o as ps } from "./WorkspaceProvider-DQ-325Qs.js";
|
|
5
5
|
import { d as ms } from "./panel-DnvDNQac.js";
|
|
6
6
|
import * as bs from "react-dom/test-utils";
|
|
7
7
|
import ka from "react-dom";
|
|
@@ -59,10 +59,10 @@ function Rs(e, r, t) {
|
|
|
59
59
|
if (o === "." || !o.startsWith(s)) continue;
|
|
60
60
|
const p = o.slice(s.length);
|
|
61
61
|
if (!p) continue;
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
64
|
-
const d = s ? `${s}${
|
|
65
|
-
c.set(
|
|
62
|
+
const u = p.split("/")[0];
|
|
63
|
+
if (!u) continue;
|
|
64
|
+
const d = s ? `${s}${u}` : u;
|
|
65
|
+
c.set(u, { name: u, kind: "dir", path: d });
|
|
66
66
|
}
|
|
67
67
|
for (const o of t.keys()) {
|
|
68
68
|
if (!o.startsWith(s)) continue;
|
|
@@ -116,51 +116,56 @@ function Cs(e = {}, r) {
|
|
|
116
116
|
t.set(p, { content: o.content, mtimeMs: o.mtimeMs ?? s }), ke(Ka(p), a);
|
|
117
117
|
}
|
|
118
118
|
return async (o, p) => {
|
|
119
|
-
const
|
|
119
|
+
const u = qs(o), d = ((p == null ? void 0 : p.method) ?? (typeof o != "string" && !(o instanceof URL) ? o.method : "GET") ?? "GET").toUpperCase(), f = u.pathname;
|
|
120
120
|
if (!f.endsWith("/api/v1/tree") && !f.endsWith("/api/v1/files") && !f.endsWith("/api/v1/stat") && !f.endsWith("/api/v1/files/search") && !f.endsWith("/api/v1/dirs") && !f.endsWith("/api/v1/files/move"))
|
|
121
121
|
return r ? r(o, p) : K({ error: "not found" }, 404);
|
|
122
122
|
if (d === "GET" && f.endsWith("/api/v1/tree")) {
|
|
123
|
-
const
|
|
124
|
-
return
|
|
123
|
+
const i = Sa(u);
|
|
124
|
+
return i !== "." && !a.has(i) ? K({ entries: [] }) : K({ entries: Rs(i, a, t) });
|
|
125
125
|
}
|
|
126
126
|
if (d === "GET" && f.endsWith("/api/v1/files")) {
|
|
127
|
-
const
|
|
127
|
+
const i = Sa(u), n = t.get(i);
|
|
128
128
|
return n ? K({ content: n.content }) : K({ error: "not found" }, 404);
|
|
129
129
|
}
|
|
130
130
|
if (d === "POST" && f.endsWith("/api/v1/files")) {
|
|
131
|
-
const
|
|
131
|
+
const i = await Ja(o, p), n = be(String(i.path ?? ".")), h = String(i.content ?? "");
|
|
132
132
|
return t.set(n, { content: h, mtimeMs: Date.now() }), ke(Ka(n), a), K({ ok: !0 });
|
|
133
133
|
}
|
|
134
134
|
if (d === "DELETE" && f.endsWith("/api/v1/files")) {
|
|
135
|
-
const
|
|
136
|
-
|
|
135
|
+
const i = Sa(u);
|
|
136
|
+
t.delete(i);
|
|
137
|
+
for (const n of [...t.keys()])
|
|
138
|
+
n.startsWith(`${i}/`) && t.delete(n);
|
|
139
|
+
for (const n of [...a])
|
|
140
|
+
(n === i || n.startsWith(`${i}/`)) && a.delete(n);
|
|
141
|
+
return a.add("."), K({ ok: !0 });
|
|
137
142
|
}
|
|
138
143
|
if (d === "GET" && f.endsWith("/api/v1/stat")) {
|
|
139
|
-
const
|
|
140
|
-
if (t.has(
|
|
141
|
-
const n = t.get(
|
|
144
|
+
const i = Sa(u);
|
|
145
|
+
if (t.has(i)) {
|
|
146
|
+
const n = t.get(i);
|
|
142
147
|
return K({
|
|
143
148
|
size: n.content.length,
|
|
144
149
|
mtimeMs: n.mtimeMs,
|
|
145
150
|
kind: "file"
|
|
146
151
|
});
|
|
147
152
|
}
|
|
148
|
-
return a.has(
|
|
153
|
+
return a.has(i) ? K({
|
|
149
154
|
size: 0,
|
|
150
155
|
mtimeMs: Date.now(),
|
|
151
156
|
kind: "dir"
|
|
152
157
|
}) : K({ error: "not found" }, 404);
|
|
153
158
|
}
|
|
154
159
|
if (d === "GET" && f.endsWith("/api/v1/files/search")) {
|
|
155
|
-
const { query:
|
|
160
|
+
const { query: i, limit: n } = gs(u), h = [...t.keys()].filter((y) => y.toLowerCase().includes(i)).slice(0, n);
|
|
156
161
|
return K({ results: h });
|
|
157
162
|
}
|
|
158
163
|
if (d === "POST" && f.endsWith("/api/v1/dirs")) {
|
|
159
|
-
const
|
|
164
|
+
const i = await Ja(o, p), n = be(String(i.path ?? "."));
|
|
160
165
|
return ke(n, a), K({ ok: !0 });
|
|
161
166
|
}
|
|
162
167
|
if (d === "POST" && f.endsWith("/api/v1/files/move")) {
|
|
163
|
-
const
|
|
168
|
+
const i = await Ja(o, p), n = be(String(i.from ?? ".")), h = be(String(i.to ?? ".")), y = t.get(n);
|
|
164
169
|
if (y)
|
|
165
170
|
return t.delete(n), t.set(h, { content: y.content, mtimeMs: Date.now() }), ke(Ka(h), a), K({ ok: !0 });
|
|
166
171
|
if (a.has(n)) {
|
|
@@ -192,7 +197,7 @@ function Es({
|
|
|
192
197
|
const p = wn(
|
|
193
198
|
() => t ?? Yi(),
|
|
194
199
|
[t]
|
|
195
|
-
),
|
|
200
|
+
), u = wn(
|
|
196
201
|
() => p.list(),
|
|
197
202
|
[p]
|
|
198
203
|
);
|
|
@@ -205,7 +210,7 @@ function Es({
|
|
|
205
210
|
}, [r]), /* @__PURE__ */ Ba("div", { "data-boring-workspace-testing": "", className: c === "dark" ? "dark" : void 0, children: /* @__PURE__ */ Ba(
|
|
206
211
|
fs,
|
|
207
212
|
{
|
|
208
|
-
panels:
|
|
213
|
+
panels: u,
|
|
209
214
|
apiBaseUrl: a,
|
|
210
215
|
authHeaders: s,
|
|
211
216
|
defaultTheme: c,
|
|
@@ -252,11 +257,11 @@ function Tn(e) {
|
|
|
252
257
|
};
|
|
253
258
|
}
|
|
254
259
|
function xs(e = {}) {
|
|
255
|
-
var
|
|
260
|
+
var i, n, h, y;
|
|
256
261
|
const r = _s(e.fn);
|
|
257
262
|
let t = 0;
|
|
258
263
|
const a = {
|
|
259
|
-
openPanels: (
|
|
264
|
+
openPanels: (i = e.state) != null && i.openPanels ? [...e.state.openPanels] : [],
|
|
260
265
|
activeFile: ((n = e.state) == null ? void 0 : n.activeFile) ?? null,
|
|
261
266
|
dirtyFiles: (h = e.state) != null && h.dirtyFiles ? [...e.state.dirtyFiles] : [],
|
|
262
267
|
visibleFiles: (y = e.state) != null && y.visibleFiles ? [...e.state.visibleFiles] : []
|
|
@@ -270,7 +275,7 @@ function xs(e = {}) {
|
|
|
270
275
|
for (const q of l)
|
|
271
276
|
q(E);
|
|
272
277
|
}
|
|
273
|
-
function
|
|
278
|
+
function u() {
|
|
274
279
|
const m = Tn(a);
|
|
275
280
|
for (const E of c) {
|
|
276
281
|
const l = E.selector(m);
|
|
@@ -278,7 +283,7 @@ function xs(e = {}) {
|
|
|
278
283
|
}
|
|
279
284
|
}
|
|
280
285
|
function d(m) {
|
|
281
|
-
m.openPanels && (a.openPanels = [...m.openPanels]), m.activeFile !== void 0 && (a.activeFile = m.activeFile), m.dirtyFiles && (a.dirtyFiles = [...m.dirtyFiles]), m.visibleFiles && (a.visibleFiles = [...m.visibleFiles]),
|
|
286
|
+
m.openPanels && (a.openPanels = [...m.openPanels]), m.activeFile !== void 0 && (a.activeFile = m.activeFile), m.dirtyFiles && (a.dirtyFiles = [...m.dirtyFiles]), m.visibleFiles && (a.visibleFiles = [...m.visibleFiles]), u();
|
|
282
287
|
}
|
|
283
288
|
return {
|
|
284
289
|
getOpenPanels: r(() => [...a.openPanels]),
|
|
@@ -288,23 +293,23 @@ function xs(e = {}) {
|
|
|
288
293
|
openFile: r(async (m, E) => {
|
|
289
294
|
a.visibleFiles.includes(m) || a.visibleFiles.push(m), a.activeFile = m;
|
|
290
295
|
const l = `file:${m}`, q = (E == null ? void 0 : E.mode) ?? "edit";
|
|
291
|
-
return a.openPanels.some((C) => C.id === l) || a.openPanels.push({ id: l, component: "editor", params: { path: m, mode: q } }),
|
|
296
|
+
return a.openPanels.some((C) => C.id === l) || a.openPanels.push({ id: l, component: "editor", params: { path: m, mode: q } }), u(), p("file:opened", { path: m, mode: q }), o();
|
|
292
297
|
}),
|
|
293
298
|
openPanel: r(async (m) => (a.openPanels.some((l) => l.id === m.id) || a.openPanels.push({
|
|
294
299
|
id: m.id,
|
|
295
300
|
component: m.component,
|
|
296
301
|
params: m.params
|
|
297
|
-
}),
|
|
298
|
-
closePanel: r(async (m) => (a.openPanels = a.openPanels.filter((E) => E.id !== m),
|
|
302
|
+
}), u(), p("panel:opened", { panelId: m.id, params: m.params ?? {} }), o())),
|
|
303
|
+
closePanel: r(async (m) => (a.openPanels = a.openPanels.filter((E) => E.id !== m), u(), p("panel:closed", { panelId: m }), o())),
|
|
299
304
|
closeWorkbenchLeftPane: r(async () => (p("sidebar:toggled", { collapsed: !0 }), o())),
|
|
300
305
|
showNotification: r(async (m, E = "info") => (p("notification:shown", { message: m, level: E }), o())),
|
|
301
|
-
navigateToLine: r(async (m, E) => (a.activeFile = m, a.visibleFiles.includes(m) || a.visibleFiles.push(m),
|
|
306
|
+
navigateToLine: r(async (m, E) => (a.activeFile = m, a.visibleFiles.includes(m) || a.visibleFiles.push(m), u(), o())),
|
|
302
307
|
expandToFile: r(async (m) => (p("tree:expand", { path: m }), o())),
|
|
303
308
|
markDirty: r((m) => {
|
|
304
|
-
a.dirtyFiles.includes(m) || a.dirtyFiles.push(m),
|
|
309
|
+
a.dirtyFiles.includes(m) || a.dirtyFiles.push(m), u(), p("file:dirty", { path: m, dirty: !0 });
|
|
305
310
|
}),
|
|
306
311
|
markClean: r((m) => {
|
|
307
|
-
a.dirtyFiles = a.dirtyFiles.filter((E) => E !== m),
|
|
312
|
+
a.dirtyFiles = a.dirtyFiles.filter((E) => E !== m), u(), p("file:dirty", { path: m, dirty: !1 });
|
|
308
313
|
}),
|
|
309
314
|
subscribe: r((m, E) => {
|
|
310
315
|
let l = s.get(m);
|
|
@@ -339,7 +344,7 @@ Fa.exports;
|
|
|
339
344
|
var On;
|
|
340
345
|
function Ki() {
|
|
341
346
|
return On || (On = 1, (function(e) {
|
|
342
|
-
const t = (c = 0) => (o) => `\x1B[${38 + c};5;${o}m`, a = (c = 0) => (o, p,
|
|
347
|
+
const t = (c = 0) => (o) => `\x1B[${38 + c};5;${o}m`, a = (c = 0) => (o, p, u) => `\x1B[${38 + c};2;${o};${p};${u}m`;
|
|
343
348
|
function s() {
|
|
344
349
|
const c = /* @__PURE__ */ new Map(), o = {
|
|
345
350
|
modifier: {
|
|
@@ -394,14 +399,14 @@ function Ki() {
|
|
|
394
399
|
}
|
|
395
400
|
};
|
|
396
401
|
o.color.gray = o.color.blackBright, o.bgColor.bgGray = o.bgColor.bgBlackBright, o.color.grey = o.color.blackBright, o.bgColor.bgGrey = o.bgColor.bgBlackBright;
|
|
397
|
-
for (const [p,
|
|
398
|
-
for (const [d, f] of Object.entries(
|
|
402
|
+
for (const [p, u] of Object.entries(o)) {
|
|
403
|
+
for (const [d, f] of Object.entries(u))
|
|
399
404
|
o[d] = {
|
|
400
405
|
open: `\x1B[${f[0]}m`,
|
|
401
406
|
close: `\x1B[${f[1]}m`
|
|
402
|
-
},
|
|
407
|
+
}, u[d] = o[d], c.set(f[0], f[1]);
|
|
403
408
|
Object.defineProperty(o, p, {
|
|
404
|
-
value:
|
|
409
|
+
value: u,
|
|
405
410
|
enumerable: !1
|
|
406
411
|
});
|
|
407
412
|
}
|
|
@@ -410,16 +415,16 @@ function Ki() {
|
|
|
410
415
|
enumerable: !1
|
|
411
416
|
}), o.color.close = "\x1B[39m", o.bgColor.close = "\x1B[49m", o.color.ansi256 = t(), o.color.ansi16m = a(), o.bgColor.ansi256 = t(10), o.bgColor.ansi16m = a(10), Object.defineProperties(o, {
|
|
412
417
|
rgbToAnsi256: {
|
|
413
|
-
value: (p,
|
|
418
|
+
value: (p, u, d) => p === u && u === d ? p < 8 ? 16 : p > 248 ? 231 : Math.round((p - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(p / 255 * 5) + 6 * Math.round(u / 255 * 5) + Math.round(d / 255 * 5),
|
|
414
419
|
enumerable: !1
|
|
415
420
|
},
|
|
416
421
|
hexToRgb: {
|
|
417
422
|
value: (p) => {
|
|
418
|
-
const
|
|
419
|
-
if (!
|
|
423
|
+
const u = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(p.toString(16));
|
|
424
|
+
if (!u)
|
|
420
425
|
return [0, 0, 0];
|
|
421
|
-
let { colorString: d } =
|
|
422
|
-
d.length === 3 && (d = d.split("").map((
|
|
426
|
+
let { colorString: d } = u.groups;
|
|
427
|
+
d.length === 3 && (d = d.split("").map((i) => i + i).join(""));
|
|
423
428
|
const f = Number.parseInt(d, 16);
|
|
424
429
|
return [
|
|
425
430
|
f >> 16 & 255,
|
|
@@ -449,11 +454,11 @@ function Wa() {
|
|
|
449
454
|
}), xe.printIteratorEntries = r, xe.printIteratorValues = t, xe.printListItems = a, xe.printObjectProperties = s;
|
|
450
455
|
const e = (c, o) => {
|
|
451
456
|
const p = Object.keys(c).sort(o);
|
|
452
|
-
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(c).forEach((
|
|
453
|
-
Object.getOwnPropertyDescriptor(c,
|
|
457
|
+
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(c).forEach((u) => {
|
|
458
|
+
Object.getOwnPropertyDescriptor(c, u).enumerable && p.push(u);
|
|
454
459
|
}), p;
|
|
455
460
|
};
|
|
456
|
-
function r(c, o, p,
|
|
461
|
+
function r(c, o, p, u, d, f, i = ": ") {
|
|
457
462
|
let n = "", h = c.next();
|
|
458
463
|
if (!h.done) {
|
|
459
464
|
n += o.spacingOuter;
|
|
@@ -463,56 +468,56 @@ function Wa() {
|
|
|
463
468
|
h.value[0],
|
|
464
469
|
o,
|
|
465
470
|
y,
|
|
466
|
-
|
|
471
|
+
u,
|
|
467
472
|
d
|
|
468
473
|
), E = f(
|
|
469
474
|
h.value[1],
|
|
470
475
|
o,
|
|
471
476
|
y,
|
|
472
|
-
|
|
477
|
+
u,
|
|
473
478
|
d
|
|
474
479
|
);
|
|
475
|
-
n += y + m +
|
|
480
|
+
n += y + m + i + E, h = c.next(), h.done ? o.min || (n += ",") : n += "," + o.spacingInner;
|
|
476
481
|
}
|
|
477
482
|
n += o.spacingOuter + p;
|
|
478
483
|
}
|
|
479
484
|
return n;
|
|
480
485
|
}
|
|
481
|
-
function t(c, o, p,
|
|
482
|
-
let
|
|
486
|
+
function t(c, o, p, u, d, f) {
|
|
487
|
+
let i = "", n = c.next();
|
|
483
488
|
if (!n.done) {
|
|
484
|
-
|
|
489
|
+
i += o.spacingOuter;
|
|
485
490
|
const h = p + o.indent;
|
|
486
491
|
for (; !n.done; )
|
|
487
|
-
|
|
488
|
-
|
|
492
|
+
i += h + f(n.value, o, h, u, d), n = c.next(), n.done ? o.min || (i += ",") : i += "," + o.spacingInner;
|
|
493
|
+
i += o.spacingOuter + p;
|
|
489
494
|
}
|
|
490
|
-
return
|
|
495
|
+
return i;
|
|
491
496
|
}
|
|
492
|
-
function a(c, o, p,
|
|
493
|
-
let
|
|
497
|
+
function a(c, o, p, u, d, f) {
|
|
498
|
+
let i = "";
|
|
494
499
|
if (c.length) {
|
|
495
|
-
|
|
500
|
+
i += o.spacingOuter;
|
|
496
501
|
const n = p + o.indent;
|
|
497
502
|
for (let h = 0; h < c.length; h++)
|
|
498
|
-
|
|
499
|
-
|
|
503
|
+
i += n, h in c && (i += f(c[h], o, n, u, d)), h < c.length - 1 ? i += "," + o.spacingInner : o.min || (i += ",");
|
|
504
|
+
i += o.spacingOuter + p;
|
|
500
505
|
}
|
|
501
|
-
return
|
|
506
|
+
return i;
|
|
502
507
|
}
|
|
503
|
-
function s(c, o, p,
|
|
504
|
-
let
|
|
508
|
+
function s(c, o, p, u, d, f) {
|
|
509
|
+
let i = "";
|
|
505
510
|
const n = e(c, o.compareKeys);
|
|
506
511
|
if (n.length) {
|
|
507
|
-
|
|
512
|
+
i += o.spacingOuter;
|
|
508
513
|
const h = p + o.indent;
|
|
509
514
|
for (let y = 0; y < n.length; y++) {
|
|
510
|
-
const m = n[y], E = f(m, o, h,
|
|
511
|
-
|
|
515
|
+
const m = n[y], E = f(m, o, h, u, d), l = f(c[m], o, h, u, d);
|
|
516
|
+
i += h + E + ": " + l, y < n.length - 1 ? i += "," + o.spacingInner : o.min || (i += ",");
|
|
512
517
|
}
|
|
513
|
-
|
|
518
|
+
i += o.spacingOuter + p;
|
|
514
519
|
}
|
|
515
|
-
return
|
|
520
|
+
return i;
|
|
516
521
|
}
|
|
517
522
|
return xe;
|
|
518
523
|
}
|
|
@@ -525,32 +530,32 @@ function Os() {
|
|
|
525
530
|
var e = Wa(), r = (function() {
|
|
526
531
|
return typeof globalThis < "u" ? globalThis : typeof r < "u" ? r : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
527
532
|
})(), t = r["jest-symbol-do-not-touch"] || r.Symbol;
|
|
528
|
-
const a = typeof t == "function" && t.for ? t.for("jest.asymmetricMatcher") : 1267621, s = " ", c = (d, f,
|
|
533
|
+
const a = typeof t == "function" && t.for ? t.for("jest.asymmetricMatcher") : 1267621, s = " ", c = (d, f, i, n, h, y) => {
|
|
529
534
|
const m = d.toString();
|
|
530
535
|
return m === "ArrayContaining" || m === "ArrayNotContaining" ? ++n > f.maxDepth ? "[" + m + "]" : m + s + "[" + (0, e.printListItems)(
|
|
531
536
|
d.sample,
|
|
532
537
|
f,
|
|
533
|
-
|
|
538
|
+
i,
|
|
534
539
|
n,
|
|
535
540
|
h,
|
|
536
541
|
y
|
|
537
542
|
) + "]" : m === "ObjectContaining" || m === "ObjectNotContaining" ? ++n > f.maxDepth ? "[" + m + "]" : m + s + "{" + (0, e.printObjectProperties)(
|
|
538
543
|
d.sample,
|
|
539
544
|
f,
|
|
540
|
-
|
|
545
|
+
i,
|
|
541
546
|
n,
|
|
542
547
|
h,
|
|
543
548
|
y
|
|
544
|
-
) + "}" : m === "StringMatching" || m === "StringNotMatching" || m === "StringContaining" || m === "StringNotContaining" ? m + s + y(d.sample, f,
|
|
549
|
+
) + "}" : m === "StringMatching" || m === "StringNotMatching" || m === "StringContaining" || m === "StringNotContaining" ? m + s + y(d.sample, f, i, n, h) : d.toAsymmetricMatcher();
|
|
545
550
|
};
|
|
546
551
|
ue.serialize = c;
|
|
547
552
|
const o = (d) => d && d.$$typeof === a;
|
|
548
553
|
ue.test = o;
|
|
549
|
-
var
|
|
554
|
+
var u = {
|
|
550
555
|
serialize: c,
|
|
551
556
|
test: o
|
|
552
557
|
};
|
|
553
|
-
return ue.default =
|
|
558
|
+
return ue.default = u, ue;
|
|
554
559
|
}
|
|
555
560
|
var se = {}, Xa, Sn;
|
|
556
561
|
function Ms() {
|
|
@@ -569,10 +574,10 @@ function As() {
|
|
|
569
574
|
value: !0
|
|
570
575
|
}), se.test = se.serialize = se.default = void 0;
|
|
571
576
|
var e = t(Ms()), r = t(Ki());
|
|
572
|
-
function t(
|
|
573
|
-
return
|
|
577
|
+
function t(u) {
|
|
578
|
+
return u && u.__esModule ? u : { default: u };
|
|
574
579
|
}
|
|
575
|
-
const a = (
|
|
580
|
+
const a = (u) => u.replace((0, e.default)(), (d) => {
|
|
576
581
|
switch (d) {
|
|
577
582
|
case r.default.red.close:
|
|
578
583
|
case r.default.green.close:
|
|
@@ -616,9 +621,9 @@ function As() {
|
|
|
616
621
|
default:
|
|
617
622
|
return "";
|
|
618
623
|
}
|
|
619
|
-
}), s = (
|
|
624
|
+
}), s = (u) => typeof u == "string" && !!u.match((0, e.default)());
|
|
620
625
|
se.test = s;
|
|
621
|
-
const c = (
|
|
626
|
+
const c = (u, d, f, i, n, h) => h(a(u), d, f, i, n);
|
|
622
627
|
se.serialize = c;
|
|
623
628
|
var p = {
|
|
624
629
|
serialize: c,
|
|
@@ -635,18 +640,18 @@ function Ss() {
|
|
|
635
640
|
var e = Wa();
|
|
636
641
|
const r = " ", t = ["DOMStringMap", "NamedNodeMap"], a = /^(HTML\w*Collection|NodeList)$/, s = (f) => t.indexOf(f) !== -1 || a.test(f), c = (f) => f && f.constructor && !!f.constructor.name && s(f.constructor.name);
|
|
637
642
|
de.test = c;
|
|
638
|
-
const o = (f) => f.constructor.name === "NamedNodeMap", p = (f,
|
|
643
|
+
const o = (f) => f.constructor.name === "NamedNodeMap", p = (f, i, n, h, y, m) => {
|
|
639
644
|
const E = f.constructor.name;
|
|
640
|
-
return ++h >
|
|
645
|
+
return ++h > i.maxDepth ? "[" + E + "]" : (i.min ? "" : E + r) + (t.indexOf(E) !== -1 ? "{" + (0, e.printObjectProperties)(
|
|
641
646
|
o(f) ? Array.from(f).reduce((l, q) => (l[q.name] = q.value, l), {}) : { ...f },
|
|
642
|
-
|
|
647
|
+
i,
|
|
643
648
|
n,
|
|
644
649
|
h,
|
|
645
650
|
y,
|
|
646
651
|
m
|
|
647
652
|
) + "}" : "[" + (0, e.printListItems)(
|
|
648
653
|
Array.from(f),
|
|
649
|
-
|
|
654
|
+
i,
|
|
650
655
|
n,
|
|
651
656
|
h,
|
|
652
657
|
y,
|
|
@@ -678,41 +683,41 @@ function hn() {
|
|
|
678
683
|
value: !0
|
|
679
684
|
}), Z.printText = Z.printProps = Z.printElementAsLeaf = Z.printElement = Z.printComment = Z.printChildren = void 0;
|
|
680
685
|
var e = r(Is());
|
|
681
|
-
function r(
|
|
682
|
-
return
|
|
686
|
+
function r(u) {
|
|
687
|
+
return u && u.__esModule ? u : { default: u };
|
|
683
688
|
}
|
|
684
|
-
const t = (
|
|
685
|
-
const m =
|
|
686
|
-
return
|
|
689
|
+
const t = (u, d, f, i, n, h, y) => {
|
|
690
|
+
const m = i + f.indent, E = f.colors;
|
|
691
|
+
return u.map((l) => {
|
|
687
692
|
const q = d[l];
|
|
688
693
|
let C = y(q, f, m, n, h);
|
|
689
694
|
return typeof q != "string" && (C.indexOf(`
|
|
690
|
-
`) !== -1 && (C = f.spacingOuter + m + C + f.spacingOuter +
|
|
695
|
+
`) !== -1 && (C = f.spacingOuter + m + C + f.spacingOuter + i), C = "{" + C + "}"), f.spacingInner + i + E.prop.open + l + E.prop.close + "=" + E.value.open + C + E.value.close;
|
|
691
696
|
}).join("");
|
|
692
697
|
};
|
|
693
698
|
Z.printProps = t;
|
|
694
|
-
const a = (
|
|
695
|
-
(y) => d.spacingOuter + f + (typeof y == "string" ? s(y, d) : h(y, d, f,
|
|
699
|
+
const a = (u, d, f, i, n, h) => u.map(
|
|
700
|
+
(y) => d.spacingOuter + f + (typeof y == "string" ? s(y, d) : h(y, d, f, i, n))
|
|
696
701
|
).join("");
|
|
697
702
|
Z.printChildren = a;
|
|
698
|
-
const s = (
|
|
703
|
+
const s = (u, d) => {
|
|
699
704
|
const f = d.colors.content;
|
|
700
|
-
return f.open + (0, e.default)(
|
|
705
|
+
return f.open + (0, e.default)(u) + f.close;
|
|
701
706
|
};
|
|
702
707
|
Z.printText = s;
|
|
703
|
-
const c = (
|
|
708
|
+
const c = (u, d) => {
|
|
704
709
|
const f = d.colors.comment;
|
|
705
|
-
return f.open + "<!--" + (0, e.default)(
|
|
710
|
+
return f.open + "<!--" + (0, e.default)(u) + "-->" + f.close;
|
|
706
711
|
};
|
|
707
712
|
Z.printComment = c;
|
|
708
|
-
const o = (
|
|
709
|
-
const h =
|
|
710
|
-
return h.open + "<" +
|
|
713
|
+
const o = (u, d, f, i, n) => {
|
|
714
|
+
const h = i.colors.tag;
|
|
715
|
+
return h.open + "<" + u + (d && h.close + d + i.spacingOuter + n + h.open) + (f ? ">" + h.close + f + i.spacingOuter + n + h.open + "</" + u : (d && !i.min ? "" : " ") + "/") + ">" + h.close;
|
|
711
716
|
};
|
|
712
717
|
Z.printElement = o;
|
|
713
|
-
const p = (
|
|
718
|
+
const p = (u, d) => {
|
|
714
719
|
const f = d.colors.tag;
|
|
715
|
-
return f.open + "<" +
|
|
720
|
+
return f.open + "<" + u + f.close + " …" + f.open + " />" + f.close;
|
|
716
721
|
};
|
|
717
722
|
return Z.printElementAsLeaf = p, Z;
|
|
718
723
|
}
|
|
@@ -732,18 +737,18 @@ function Ns() {
|
|
|
732
737
|
}, p = (m) => {
|
|
733
738
|
const E = m.constructor.name, { nodeType: l, tagName: q } = m, C = typeof q == "string" && q.includes("-") || o(m);
|
|
734
739
|
return l === r && (c.test(E) || C) || l === t && E === "Text" || l === a && E === "Comment" || l === s && E === "DocumentFragment";
|
|
735
|
-
},
|
|
740
|
+
}, u = (m) => {
|
|
736
741
|
var E;
|
|
737
742
|
return (m == null || (E = m.constructor) === null || E === void 0 ? void 0 : E.name) && p(m);
|
|
738
743
|
};
|
|
739
|
-
ce.test =
|
|
744
|
+
ce.test = u;
|
|
740
745
|
function d(m) {
|
|
741
746
|
return m.nodeType === t;
|
|
742
747
|
}
|
|
743
748
|
function f(m) {
|
|
744
749
|
return m.nodeType === a;
|
|
745
750
|
}
|
|
746
|
-
function
|
|
751
|
+
function i(m) {
|
|
747
752
|
return m.nodeType === s;
|
|
748
753
|
}
|
|
749
754
|
const n = (m, E, l, q, C, _) => {
|
|
@@ -751,12 +756,12 @@ function Ns() {
|
|
|
751
756
|
return (0, e.printText)(m.data, E);
|
|
752
757
|
if (f(m))
|
|
753
758
|
return (0, e.printComment)(m.data, E);
|
|
754
|
-
const P =
|
|
759
|
+
const P = i(m) ? "DocumentFragment" : m.tagName.toLowerCase();
|
|
755
760
|
return ++q > E.maxDepth ? (0, e.printElementAsLeaf)(P, E) : (0, e.printElement)(
|
|
756
761
|
P,
|
|
757
762
|
(0, e.printProps)(
|
|
758
|
-
|
|
759
|
-
|
|
763
|
+
i(m) ? [] : Array.from(m.attributes).map((b) => b.name).sort(),
|
|
764
|
+
i(m) ? {} : Array.from(m.attributes).reduce((b, v) => (b[v.name] = v.value, b), {}),
|
|
760
765
|
E,
|
|
761
766
|
l + E.indent,
|
|
762
767
|
q,
|
|
@@ -778,7 +783,7 @@ function Ns() {
|
|
|
778
783
|
ce.serialize = n;
|
|
779
784
|
var y = {
|
|
780
785
|
serialize: n,
|
|
781
|
-
test:
|
|
786
|
+
test: u
|
|
782
787
|
};
|
|
783
788
|
return ce.default = y, ce;
|
|
784
789
|
}
|
|
@@ -789,7 +794,7 @@ function Ds() {
|
|
|
789
794
|
value: !0
|
|
790
795
|
}), fe.test = fe.serialize = fe.default = void 0;
|
|
791
796
|
var e = Wa();
|
|
792
|
-
const r = "@@__IMMUTABLE_ITERABLE__@@", t = "@@__IMMUTABLE_LIST__@@", a = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", c = "@@__IMMUTABLE_ORDERED__@@", o = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@",
|
|
797
|
+
const r = "@@__IMMUTABLE_ITERABLE__@@", t = "@@__IMMUTABLE_LIST__@@", a = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", c = "@@__IMMUTABLE_ORDERED__@@", o = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", u = "@@__IMMUTABLE_SET__@@", d = "@@__IMMUTABLE_STACK__@@", f = (v) => "Immutable." + v, i = (v) => "[" + v + "]", n = " ", h = "…", y = (v, R, x, M, S, N, w) => ++M > R.maxDepth ? i(f(w)) : f(w) + n + "{" + (0, e.printIteratorEntries)(
|
|
793
798
|
v.entries(),
|
|
794
799
|
R,
|
|
795
800
|
x,
|
|
@@ -817,7 +822,7 @@ function Ds() {
|
|
|
817
822
|
}
|
|
818
823
|
const E = (v, R, x, M, S, N) => {
|
|
819
824
|
const w = f(v._name || "Record");
|
|
820
|
-
return ++M > R.maxDepth ?
|
|
825
|
+
return ++M > R.maxDepth ? i(w) : w + n + "{" + (0, e.printIteratorEntries)(
|
|
821
826
|
m(v),
|
|
822
827
|
R,
|
|
823
828
|
x,
|
|
@@ -827,7 +832,7 @@ function Ds() {
|
|
|
827
832
|
) + "}";
|
|
828
833
|
}, l = (v, R, x, M, S, N) => {
|
|
829
834
|
const w = f("Seq");
|
|
830
|
-
return ++M > R.maxDepth ?
|
|
835
|
+
return ++M > R.maxDepth ? i(w) : v[a] ? w + n + "{" + // from Immutable collection of entries or from ECMAScript object
|
|
831
836
|
(v._iter || v._object ? (0, e.printIteratorEntries)(
|
|
832
837
|
v.entries(),
|
|
833
838
|
R,
|
|
@@ -846,7 +851,7 @@ function Ds() {
|
|
|
846
851
|
S,
|
|
847
852
|
N
|
|
848
853
|
) : h) + "]";
|
|
849
|
-
}, q = (v, R, x, M, S, N, w) => ++M > R.maxDepth ?
|
|
854
|
+
}, q = (v, R, x, M, S, N, w) => ++M > R.maxDepth ? i(f(w)) : f(w) + n + "[" + (0, e.printIteratorValues)(
|
|
850
855
|
v.values(),
|
|
851
856
|
R,
|
|
852
857
|
x,
|
|
@@ -869,7 +874,7 @@ function Ds() {
|
|
|
869
874
|
S,
|
|
870
875
|
N,
|
|
871
876
|
"List"
|
|
872
|
-
) : v[
|
|
877
|
+
) : v[u] ? q(
|
|
873
878
|
v,
|
|
874
879
|
R,
|
|
875
880
|
x,
|
|
@@ -908,10 +913,10 @@ var Fn;
|
|
|
908
913
|
function Ls() {
|
|
909
914
|
if (Fn) return j;
|
|
910
915
|
Fn = 1;
|
|
911
|
-
var e = 60103, r = 60106, t = 60107, a = 60108, s = 60114, c = 60109, o = 60110, p = 60112,
|
|
916
|
+
var e = 60103, r = 60106, t = 60107, a = 60108, s = 60114, c = 60109, o = 60110, p = 60112, u = 60113, d = 60120, f = 60115, i = 60116, n = 60121, h = 60122, y = 60117, m = 60129, E = 60131;
|
|
912
917
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
913
918
|
var l = Symbol.for;
|
|
914
|
-
e = l("react.element"), r = l("react.portal"), t = l("react.fragment"), a = l("react.strict_mode"), s = l("react.profiler"), c = l("react.provider"), o = l("react.context"), p = l("react.forward_ref"),
|
|
919
|
+
e = l("react.element"), r = l("react.portal"), t = l("react.fragment"), a = l("react.strict_mode"), s = l("react.profiler"), c = l("react.provider"), o = l("react.context"), p = l("react.forward_ref"), u = l("react.suspense"), d = l("react.suspense_list"), f = l("react.memo"), i = l("react.lazy"), n = l("react.block"), h = l("react.server.block"), y = l("react.fundamental"), m = l("react.debug_trace_mode"), E = l("react.legacy_hidden");
|
|
915
920
|
}
|
|
916
921
|
function q(w) {
|
|
917
922
|
if (typeof w == "object" && w !== null) {
|
|
@@ -922,14 +927,14 @@ function Ls() {
|
|
|
922
927
|
case t:
|
|
923
928
|
case s:
|
|
924
929
|
case a:
|
|
925
|
-
case
|
|
930
|
+
case u:
|
|
926
931
|
case d:
|
|
927
932
|
return w;
|
|
928
933
|
default:
|
|
929
934
|
switch (w = w && w.$$typeof, w) {
|
|
930
935
|
case o:
|
|
931
936
|
case p:
|
|
932
|
-
case
|
|
937
|
+
case i:
|
|
933
938
|
case f:
|
|
934
939
|
case c:
|
|
935
940
|
return w;
|
|
@@ -942,7 +947,7 @@ function Ls() {
|
|
|
942
947
|
}
|
|
943
948
|
}
|
|
944
949
|
}
|
|
945
|
-
var C = c, _ = e, P = p, b = t, v =
|
|
950
|
+
var C = c, _ = e, P = p, b = t, v = i, R = f, x = r, M = s, S = a, N = u;
|
|
946
951
|
return j.ContextConsumer = o, j.ContextProvider = C, j.Element = _, j.ForwardRef = P, j.Fragment = b, j.Lazy = v, j.Memo = R, j.Portal = x, j.Profiler = M, j.StrictMode = S, j.Suspense = N, j.isAsyncMode = function() {
|
|
947
952
|
return !1;
|
|
948
953
|
}, j.isConcurrentMode = function() {
|
|
@@ -958,7 +963,7 @@ function Ls() {
|
|
|
958
963
|
}, j.isFragment = function(w) {
|
|
959
964
|
return q(w) === t;
|
|
960
965
|
}, j.isLazy = function(w) {
|
|
961
|
-
return q(w) ===
|
|
966
|
+
return q(w) === i;
|
|
962
967
|
}, j.isMemo = function(w) {
|
|
963
968
|
return q(w) === f;
|
|
964
969
|
}, j.isPortal = function(w) {
|
|
@@ -968,9 +973,9 @@ function Ls() {
|
|
|
968
973
|
}, j.isStrictMode = function(w) {
|
|
969
974
|
return q(w) === a;
|
|
970
975
|
}, j.isSuspense = function(w) {
|
|
971
|
-
return q(w) ===
|
|
976
|
+
return q(w) === u;
|
|
972
977
|
}, j.isValidElementType = function(w) {
|
|
973
|
-
return typeof w == "string" || typeof w == "function" || w === t || w === s || w === m || w === a || w ===
|
|
978
|
+
return typeof w == "string" || typeof w == "function" || w === t || w === s || w === m || w === a || w === u || w === d || w === E || typeof w == "object" && w !== null && (w.$$typeof === i || w.$$typeof === f || w.$$typeof === c || w.$$typeof === o || w.$$typeof === p || w.$$typeof === y || w.$$typeof === n || w[0] === h);
|
|
974
979
|
}, j.typeOf = q, j;
|
|
975
980
|
}
|
|
976
981
|
var $ = {};
|
|
@@ -985,14 +990,14 @@ var $ = {};
|
|
|
985
990
|
var jn;
|
|
986
991
|
function Bs() {
|
|
987
992
|
return jn || (jn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
988
|
-
var e = 60103, r = 60106, t = 60107, a = 60108, s = 60114, c = 60109, o = 60110, p = 60112,
|
|
993
|
+
var e = 60103, r = 60106, t = 60107, a = 60108, s = 60114, c = 60109, o = 60110, p = 60112, u = 60113, d = 60120, f = 60115, i = 60116, n = 60121, h = 60122, y = 60117, m = 60129, E = 60131;
|
|
989
994
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
990
995
|
var l = Symbol.for;
|
|
991
|
-
e = l("react.element"), r = l("react.portal"), t = l("react.fragment"), a = l("react.strict_mode"), s = l("react.profiler"), c = l("react.provider"), o = l("react.context"), p = l("react.forward_ref"),
|
|
996
|
+
e = l("react.element"), r = l("react.portal"), t = l("react.fragment"), a = l("react.strict_mode"), s = l("react.profiler"), c = l("react.provider"), o = l("react.context"), p = l("react.forward_ref"), u = l("react.suspense"), d = l("react.suspense_list"), f = l("react.memo"), i = l("react.lazy"), n = l("react.block"), h = l("react.server.block"), y = l("react.fundamental"), l("react.scope"), l("react.opaque.id"), m = l("react.debug_trace_mode"), l("react.offscreen"), E = l("react.legacy_hidden");
|
|
992
997
|
}
|
|
993
998
|
var q = !1;
|
|
994
999
|
function C(T) {
|
|
995
|
-
return !!(typeof T == "string" || typeof T == "function" || T === t || T === s || T === m || T === a || T ===
|
|
1000
|
+
return !!(typeof T == "string" || typeof T == "function" || T === t || T === s || T === m || T === a || T === u || T === d || T === E || q || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === f || T.$$typeof === c || T.$$typeof === o || T.$$typeof === p || T.$$typeof === y || T.$$typeof === n || T[0] === h));
|
|
996
1001
|
}
|
|
997
1002
|
function _(T) {
|
|
998
1003
|
if (typeof T == "object" && T !== null) {
|
|
@@ -1004,7 +1009,7 @@ function Bs() {
|
|
|
1004
1009
|
case t:
|
|
1005
1010
|
case s:
|
|
1006
1011
|
case a:
|
|
1007
|
-
case
|
|
1012
|
+
case u:
|
|
1008
1013
|
case d:
|
|
1009
1014
|
return L;
|
|
1010
1015
|
default:
|
|
@@ -1012,7 +1017,7 @@ function Bs() {
|
|
|
1012
1017
|
switch (W) {
|
|
1013
1018
|
case o:
|
|
1014
1019
|
case p:
|
|
1015
|
-
case
|
|
1020
|
+
case i:
|
|
1016
1021
|
case f:
|
|
1017
1022
|
case c:
|
|
1018
1023
|
return W;
|
|
@@ -1025,7 +1030,7 @@ function Bs() {
|
|
|
1025
1030
|
}
|
|
1026
1031
|
}
|
|
1027
1032
|
}
|
|
1028
|
-
var P = o, b = c, v = e, R = p, x = t, M =
|
|
1033
|
+
var P = o, b = c, v = e, R = p, x = t, M = i, S = f, N = r, w = s, A = a, k = u, U = !1, F = !1;
|
|
1029
1034
|
function X(T) {
|
|
1030
1035
|
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1031
1036
|
}
|
|
@@ -1048,7 +1053,7 @@ function Bs() {
|
|
|
1048
1053
|
return _(T) === t;
|
|
1049
1054
|
}
|
|
1050
1055
|
function we(T) {
|
|
1051
|
-
return _(T) ===
|
|
1056
|
+
return _(T) === i;
|
|
1052
1057
|
}
|
|
1053
1058
|
function ne(T) {
|
|
1054
1059
|
return _(T) === f;
|
|
@@ -1063,7 +1068,7 @@ function Bs() {
|
|
|
1063
1068
|
return _(T) === a;
|
|
1064
1069
|
}
|
|
1065
1070
|
function I(T) {
|
|
1066
|
-
return _(T) ===
|
|
1071
|
+
return _(T) === u;
|
|
1067
1072
|
}
|
|
1068
1073
|
$.ContextConsumer = P, $.ContextProvider = b, $.Element = v, $.ForwardRef = R, $.Fragment = x, $.Lazy = M, $.Memo = S, $.Portal = N, $.Profiler = w, $.StrictMode = A, $.Suspense = k, $.isAsyncMode = X, $.isConcurrentMode = ae, $.isContextConsumer = _e, $.isContextProvider = ge, $.isElement = qe, $.isForwardRef = D, $.isFragment = Ce, $.isLazy = we, $.isMemo = ne, $.isPortal = Le, $.isProfiler = Be, $.isStrictMode = g, $.isSuspense = I, $.isValidElementType = C, $.typeOf = _;
|
|
1069
1074
|
})()), $;
|
|
@@ -1079,66 +1084,66 @@ function Fs() {
|
|
|
1079
1084
|
value: !0
|
|
1080
1085
|
}), pe.test = pe.serialize = pe.default = void 0;
|
|
1081
1086
|
var e = a(ks()), r = hn();
|
|
1082
|
-
function t(
|
|
1087
|
+
function t(i) {
|
|
1083
1088
|
if (typeof WeakMap != "function") return null;
|
|
1084
1089
|
var n = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap();
|
|
1085
1090
|
return (t = function(y) {
|
|
1086
1091
|
return y ? h : n;
|
|
1087
|
-
})(
|
|
1092
|
+
})(i);
|
|
1088
1093
|
}
|
|
1089
|
-
function a(
|
|
1090
|
-
if (
|
|
1091
|
-
return
|
|
1092
|
-
if (
|
|
1093
|
-
return { default:
|
|
1094
|
+
function a(i, n) {
|
|
1095
|
+
if (i && i.__esModule)
|
|
1096
|
+
return i;
|
|
1097
|
+
if (i === null || typeof i != "object" && typeof i != "function")
|
|
1098
|
+
return { default: i };
|
|
1094
1099
|
var h = t(n);
|
|
1095
|
-
if (h && h.has(
|
|
1096
|
-
return h.get(
|
|
1100
|
+
if (h && h.has(i))
|
|
1101
|
+
return h.get(i);
|
|
1097
1102
|
var y = {}, m = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1098
|
-
for (var E in
|
|
1099
|
-
if (E !== "default" && Object.prototype.hasOwnProperty.call(
|
|
1100
|
-
var l = m ? Object.getOwnPropertyDescriptor(
|
|
1101
|
-
l && (l.get || l.set) ? Object.defineProperty(y, E, l) : y[E] =
|
|
1103
|
+
for (var E in i)
|
|
1104
|
+
if (E !== "default" && Object.prototype.hasOwnProperty.call(i, E)) {
|
|
1105
|
+
var l = m ? Object.getOwnPropertyDescriptor(i, E) : null;
|
|
1106
|
+
l && (l.get || l.set) ? Object.defineProperty(y, E, l) : y[E] = i[E];
|
|
1102
1107
|
}
|
|
1103
|
-
return y.default =
|
|
1108
|
+
return y.default = i, h && h.set(i, y), y;
|
|
1104
1109
|
}
|
|
1105
|
-
const s = (
|
|
1110
|
+
const s = (i, n = []) => (Array.isArray(i) ? i.forEach((h) => {
|
|
1106
1111
|
s(h, n);
|
|
1107
|
-
}) :
|
|
1108
|
-
const n =
|
|
1112
|
+
}) : i != null && i !== !1 && n.push(i), n), c = (i) => {
|
|
1113
|
+
const n = i.type;
|
|
1109
1114
|
if (typeof n == "string")
|
|
1110
1115
|
return n;
|
|
1111
1116
|
if (typeof n == "function")
|
|
1112
1117
|
return n.displayName || n.name || "Unknown";
|
|
1113
|
-
if (e.isFragment(
|
|
1118
|
+
if (e.isFragment(i))
|
|
1114
1119
|
return "React.Fragment";
|
|
1115
|
-
if (e.isSuspense(
|
|
1120
|
+
if (e.isSuspense(i))
|
|
1116
1121
|
return "React.Suspense";
|
|
1117
1122
|
if (typeof n == "object" && n !== null) {
|
|
1118
|
-
if (e.isContextProvider(
|
|
1123
|
+
if (e.isContextProvider(i))
|
|
1119
1124
|
return "Context.Provider";
|
|
1120
|
-
if (e.isContextConsumer(
|
|
1125
|
+
if (e.isContextConsumer(i))
|
|
1121
1126
|
return "Context.Consumer";
|
|
1122
|
-
if (e.isForwardRef(
|
|
1127
|
+
if (e.isForwardRef(i)) {
|
|
1123
1128
|
if (n.displayName)
|
|
1124
1129
|
return n.displayName;
|
|
1125
1130
|
const h = n.render.displayName || n.render.name || "";
|
|
1126
1131
|
return h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef";
|
|
1127
1132
|
}
|
|
1128
|
-
if (e.isMemo(
|
|
1133
|
+
if (e.isMemo(i)) {
|
|
1129
1134
|
const h = n.displayName || n.type.displayName || n.type.name || "";
|
|
1130
1135
|
return h !== "" ? "Memo(" + h + ")" : "Memo";
|
|
1131
1136
|
}
|
|
1132
1137
|
}
|
|
1133
1138
|
return "UNDEFINED";
|
|
1134
|
-
}, o = (
|
|
1135
|
-
const { props: n } =
|
|
1139
|
+
}, o = (i) => {
|
|
1140
|
+
const { props: n } = i;
|
|
1136
1141
|
return Object.keys(n).filter((h) => h !== "children" && n[h] !== void 0).sort();
|
|
1137
|
-
}, p = (
|
|
1138
|
-
c(
|
|
1142
|
+
}, p = (i, n, h, y, m, E) => ++y > n.maxDepth ? (0, r.printElementAsLeaf)(c(i), n) : (0, r.printElement)(
|
|
1143
|
+
c(i),
|
|
1139
1144
|
(0, r.printProps)(
|
|
1140
|
-
o(
|
|
1141
|
-
|
|
1145
|
+
o(i),
|
|
1146
|
+
i.props,
|
|
1142
1147
|
n,
|
|
1143
1148
|
h + n.indent,
|
|
1144
1149
|
y,
|
|
@@ -1146,7 +1151,7 @@ function Fs() {
|
|
|
1146
1151
|
E
|
|
1147
1152
|
),
|
|
1148
1153
|
(0, r.printChildren)(
|
|
1149
|
-
s(
|
|
1154
|
+
s(i.props.children),
|
|
1150
1155
|
n,
|
|
1151
1156
|
h + n.indent,
|
|
1152
1157
|
y,
|
|
@@ -1157,11 +1162,11 @@ function Fs() {
|
|
|
1157
1162
|
h
|
|
1158
1163
|
);
|
|
1159
1164
|
pe.serialize = p;
|
|
1160
|
-
const
|
|
1161
|
-
pe.test =
|
|
1165
|
+
const u = (i) => i != null && e.isElement(i);
|
|
1166
|
+
pe.test = u;
|
|
1162
1167
|
var f = {
|
|
1163
1168
|
serialize: p,
|
|
1164
|
-
test:
|
|
1169
|
+
test: u
|
|
1165
1170
|
};
|
|
1166
1171
|
return pe.default = f, pe;
|
|
1167
1172
|
}
|
|
@@ -1176,14 +1181,14 @@ function js() {
|
|
|
1176
1181
|
})(), t = r["jest-symbol-do-not-touch"] || r.Symbol;
|
|
1177
1182
|
const a = typeof t == "function" && t.for ? t.for("react.test.json") : 245830487, s = (d) => {
|
|
1178
1183
|
const { props: f } = d;
|
|
1179
|
-
return f ? Object.keys(f).filter((
|
|
1180
|
-
}, c = (d, f,
|
|
1184
|
+
return f ? Object.keys(f).filter((i) => f[i] !== void 0).sort() : [];
|
|
1185
|
+
}, c = (d, f, i, n, h, y) => ++n > f.maxDepth ? (0, e.printElementAsLeaf)(d.type, f) : (0, e.printElement)(
|
|
1181
1186
|
d.type,
|
|
1182
1187
|
d.props ? (0, e.printProps)(
|
|
1183
1188
|
s(d),
|
|
1184
1189
|
d.props,
|
|
1185
1190
|
f,
|
|
1186
|
-
|
|
1191
|
+
i + f.indent,
|
|
1187
1192
|
n,
|
|
1188
1193
|
h,
|
|
1189
1194
|
y
|
|
@@ -1191,22 +1196,22 @@ function js() {
|
|
|
1191
1196
|
d.children ? (0, e.printChildren)(
|
|
1192
1197
|
d.children,
|
|
1193
1198
|
f,
|
|
1194
|
-
|
|
1199
|
+
i + f.indent,
|
|
1195
1200
|
n,
|
|
1196
1201
|
h,
|
|
1197
1202
|
y
|
|
1198
1203
|
) : "",
|
|
1199
1204
|
f,
|
|
1200
|
-
|
|
1205
|
+
i
|
|
1201
1206
|
);
|
|
1202
1207
|
me.serialize = c;
|
|
1203
1208
|
const o = (d) => d && d.$$typeof === a;
|
|
1204
1209
|
me.test = o;
|
|
1205
|
-
var
|
|
1210
|
+
var u = {
|
|
1206
1211
|
serialize: c,
|
|
1207
1212
|
test: o
|
|
1208
1213
|
};
|
|
1209
|
-
return me.default =
|
|
1214
|
+
return me.default = u, me;
|
|
1210
1215
|
}
|
|
1211
1216
|
var zn;
|
|
1212
1217
|
function $s() {
|
|
@@ -1216,13 +1221,13 @@ function $s() {
|
|
|
1216
1221
|
}), le.default = le.DEFAULT_OPTIONS = void 0, le.format = ne, le.plugins = void 0;
|
|
1217
1222
|
var e = d(Ki()), r = Wa(), t = d(
|
|
1218
1223
|
Os()
|
|
1219
|
-
), a = d(As()), s = d(Ss()), c = d(Ns()), o = d(Ds()), p = d(Fs()),
|
|
1224
|
+
), a = d(As()), s = d(Ss()), c = d(Ns()), o = d(Ds()), p = d(Fs()), u = d(
|
|
1220
1225
|
js()
|
|
1221
1226
|
);
|
|
1222
1227
|
function d(g) {
|
|
1223
1228
|
return g && g.__esModule ? g : { default: g };
|
|
1224
1229
|
}
|
|
1225
|
-
const f = Object.prototype.toString,
|
|
1230
|
+
const f = Object.prototype.toString, i = Date.prototype.toISOString, n = Error.prototype.toString, h = RegExp.prototype.toString, y = (g) => typeof g.constructor == "function" && g.constructor.name || "Object", m = (g) => typeof window < "u" && g === window, E = /^Symbol\((.*)\)(.*)$/, l = /\n/gi;
|
|
1226
1231
|
class q extends Error {
|
|
1227
1232
|
constructor(I, T) {
|
|
1228
1233
|
super(I), this.stack = T, this.name = this.constructor.name;
|
|
@@ -1265,7 +1270,7 @@ function $s() {
|
|
|
1265
1270
|
if (L === "symbol")
|
|
1266
1271
|
return v(g);
|
|
1267
1272
|
const W = f.call(g);
|
|
1268
|
-
return W === "[object WeakMap]" ? "WeakMap {}" : W === "[object WeakSet]" ? "WeakSet {}" : W === "[object Function]" || W === "[object GeneratorFunction]" ? b(g, I) : W === "[object Symbol]" ? v(g) : W === "[object Date]" ? isNaN(+g) ? "Date { NaN }" :
|
|
1273
|
+
return W === "[object WeakMap]" ? "WeakMap {}" : W === "[object WeakSet]" ? "WeakSet {}" : W === "[object Function]" || W === "[object GeneratorFunction]" ? b(g, I) : W === "[object Symbol]" ? v(g) : W === "[object Date]" ? isNaN(+g) ? "Date { NaN }" : i.call(g) : W === "[object Error]" ? R(g) : W === "[object RegExp]" ? T ? h.call(g).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : h.call(g) : g instanceof Error ? R(g) : null;
|
|
1269
1274
|
}
|
|
1270
1275
|
function M(g, I, T, B, L, W) {
|
|
1271
1276
|
if (L.indexOf(g) !== -1)
|
|
@@ -1468,7 +1473,7 @@ function $s() {
|
|
|
1468
1473
|
DOMElement: c.default,
|
|
1469
1474
|
Immutable: o.default,
|
|
1470
1475
|
ReactElement: p.default,
|
|
1471
|
-
ReactTestComponent:
|
|
1476
|
+
ReactTestComponent: u.default
|
|
1472
1477
|
};
|
|
1473
1478
|
le.plugins = Le;
|
|
1474
1479
|
var Be = ne;
|
|
@@ -1894,7 +1899,7 @@ function Td(e) {
|
|
|
1894
1899
|
return r.length === 0 ? oe(e.childNodes) : r;
|
|
1895
1900
|
}
|
|
1896
1901
|
function au(e) {
|
|
1897
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Zs(), a = dd(e), s = r.compute, c = s === void 0 ? "name" : s, o = r.computedStyleSupportsPseudoElements, p = o === void 0 ? r.getComputedStyle !== void 0 : o,
|
|
1902
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Zs(), a = dd(e), s = r.compute, c = s === void 0 ? "name" : s, o = r.computedStyleSupportsPseudoElements, p = o === void 0 ? r.getComputedStyle !== void 0 : o, u = r.getComputedStyle, d = u === void 0 ? a.getComputedStyle.bind(a) : u, f = r.hidden, i = f === void 0 ? !1 : f;
|
|
1898
1903
|
function n(l, q) {
|
|
1899
1904
|
var C = "";
|
|
1900
1905
|
if (z(l) && p) {
|
|
@@ -2003,7 +2008,7 @@ function au(e) {
|
|
|
2003
2008
|
function E(l, q) {
|
|
2004
2009
|
if (t.has(l))
|
|
2005
2010
|
return "";
|
|
2006
|
-
if (!
|
|
2011
|
+
if (!i && yd(l, d) && !q.isReferenced)
|
|
2007
2012
|
return t.add(l), "";
|
|
2008
2013
|
var C = z(l) ? l.getAttributeNode("aria-labelledby") : null, _ = C !== null && !t.has(C) ? $a(l, "aria-labelledby") : [];
|
|
2009
2014
|
if (c === "name" && !q.isReferenced && _.length > 0)
|
|
@@ -2262,13 +2267,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2262
2267
|
}
|
|
2263
2268
|
function p(n, h) {
|
|
2264
2269
|
if (n) {
|
|
2265
|
-
if (typeof n == "string") return
|
|
2270
|
+
if (typeof n == "string") return u(n, h);
|
|
2266
2271
|
var y = Object.prototype.toString.call(n).slice(8, -1);
|
|
2267
2272
|
if (y === "Object" && n.constructor && (y = n.constructor.name), y === "Map" || y === "Set") return Array.from(n);
|
|
2268
|
-
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)) return
|
|
2273
|
+
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)) return u(n, h);
|
|
2269
2274
|
}
|
|
2270
2275
|
}
|
|
2271
|
-
function
|
|
2276
|
+
function u(n, h) {
|
|
2272
2277
|
(h == null || h > n.length) && (h = n.length);
|
|
2273
2278
|
for (var y = 0, m = new Array(h); y < h; y++)
|
|
2274
2279
|
m[y] = n[y];
|
|
@@ -2427,8 +2432,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2427
2432
|
return m;
|
|
2428
2433
|
});
|
|
2429
2434
|
}
|
|
2430
|
-
},
|
|
2431
|
-
return Fe.default =
|
|
2435
|
+
}, i = (0, e.default)(f, f.entries());
|
|
2436
|
+
return Fe.default = i, Fe;
|
|
2432
2437
|
}
|
|
2433
2438
|
var $e = {}, Qn;
|
|
2434
2439
|
function Dd() {
|
|
@@ -2503,13 +2508,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2503
2508
|
}
|
|
2504
2509
|
function p(n, h) {
|
|
2505
2510
|
if (n) {
|
|
2506
|
-
if (typeof n == "string") return
|
|
2511
|
+
if (typeof n == "string") return u(n, h);
|
|
2507
2512
|
var y = Object.prototype.toString.call(n).slice(8, -1);
|
|
2508
2513
|
if (y === "Object" && n.constructor && (y = n.constructor.name), y === "Map" || y === "Set") return Array.from(n);
|
|
2509
|
-
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)) return
|
|
2514
|
+
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)) return u(n, h);
|
|
2510
2515
|
}
|
|
2511
2516
|
}
|
|
2512
|
-
function
|
|
2517
|
+
function u(n, h) {
|
|
2513
2518
|
(h == null || h > n.length) && (h = n.length);
|
|
2514
2519
|
for (var y = 0, m = new Array(h); y < h; y++)
|
|
2515
2520
|
m[y] = n[y];
|
|
@@ -2811,8 +2816,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2811
2816
|
return m;
|
|
2812
2817
|
});
|
|
2813
2818
|
}
|
|
2814
|
-
},
|
|
2815
|
-
return $e.default =
|
|
2819
|
+
}, i = (0, e.default)(f, f.entries());
|
|
2820
|
+
return $e.default = i, $e;
|
|
2816
2821
|
}
|
|
2817
2822
|
var He = {}, Ue = {}, ze = {}, Zn;
|
|
2818
2823
|
function Ld() {
|
|
@@ -3157,11 +3162,11 @@ function Yd() {
|
|
|
3157
3162
|
fo = 1, Object.defineProperty(Ue, "__esModule", {
|
|
3158
3163
|
value: !0
|
|
3159
3164
|
}), Ue.default = void 0;
|
|
3160
|
-
var e = n(Ld()), r = n(Bd()), t = n(kd()), a = n(Fd()), s = n(jd()), c = n($d()), o = n(Hd()), p = n(Ud()),
|
|
3165
|
+
var e = n(Ld()), r = n(Bd()), t = n(kd()), a = n(Fd()), s = n(jd()), c = n($d()), o = n(Hd()), p = n(Ud()), u = n(zd()), d = n(Vd()), f = n(Wd()), i = n(Gd());
|
|
3161
3166
|
function n(m) {
|
|
3162
3167
|
return m && m.__esModule ? m : { default: m };
|
|
3163
3168
|
}
|
|
3164
|
-
var h = [["command", e.default], ["composite", r.default], ["input", t.default], ["landmark", a.default], ["range", s.default], ["roletype", c.default], ["section", o.default], ["sectionhead", p.default], ["select",
|
|
3169
|
+
var h = [["command", e.default], ["composite", r.default], ["input", t.default], ["landmark", a.default], ["range", s.default], ["roletype", c.default], ["section", o.default], ["sectionhead", p.default], ["select", u.default], ["structure", d.default], ["widget", f.default], ["window", i.default]], y = h;
|
|
3165
3170
|
return Ue.default = y, Ue;
|
|
3166
3171
|
}
|
|
3167
3172
|
var tr = {}, ar = {}, po;
|
|
@@ -6217,11 +6222,11 @@ function _f() {
|
|
|
6217
6222
|
Hl = 1, Object.defineProperty(tr, "__esModule", {
|
|
6218
6223
|
value: !0
|
|
6219
6224
|
}), tr.default = void 0;
|
|
6220
|
-
var e = O(Kd()), r = O(Jd()), t = O(Xd()), a = O(Qd()), s = O(Zd()), c = O(ec()), o = O(rc()), p = O(tc()),
|
|
6225
|
+
var e = O(Kd()), r = O(Jd()), t = O(Xd()), a = O(Qd()), s = O(Zd()), c = O(ec()), o = O(rc()), p = O(tc()), u = O(ac()), d = O(nc()), f = O(oc()), i = O(lc()), n = O(ic()), h = O(uc()), y = O(sc()), m = O(dc()), E = O(cc()), l = O(fc()), q = O(pc()), C = O(mc()), _ = O(bc()), P = O(vc()), b = O(hc()), v = O(yc()), R = O(Rc()), x = O(gc()), M = O(qc()), S = O(Cc()), N = O(Ec()), w = O(Pc()), A = O(_c()), k = O(wc()), U = O(xc()), F = O(Tc()), X = O(Oc()), ae = O(Mc()), _e = O(Ac()), ge = O(Sc()), qe = O(Ic()), D = O(Nc()), Ce = O(Dc()), we = O(Lc()), ne = O(Bc()), Le = O(kc()), Be = O(Fc()), g = O(jc()), I = O($c()), T = O(Hc()), B = O(Uc()), L = O(zc()), W = O(Vc()), Y = O(Wc()), Q = O(Gc()), ie = O(Yc()), Mu = O(Kc()), Au = O(Jc()), Su = O(Xc()), Iu = O(Qc()), Nu = O(Zc()), Du = O(ef()), Lu = O(rf()), Bu = O(tf()), ku = O(af()), Fu = O(nf()), ju = O(of()), $u = O(lf()), Hu = O(uf()), Uu = O(sf()), zu = O(df()), Vu = O(cf()), Wu = O(ff()), Gu = O(pf()), Yu = O(mf()), Ku = O(bf()), Ju = O(vf()), Xu = O(hf()), Qu = O(yf()), Zu = O(Rf()), es = O(gf()), rs = O(qf()), ts = O(Cf()), as = O(Ef()), ns = O(Pf());
|
|
6221
6226
|
function O(Aa) {
|
|
6222
6227
|
return Aa && Aa.__esModule ? Aa : { default: Aa };
|
|
6223
6228
|
}
|
|
6224
|
-
var os = [["alert", e.default], ["alertdialog", r.default], ["application", t.default], ["article", a.default], ["banner", s.default], ["blockquote", c.default], ["button", o.default], ["caption", p.default], ["cell",
|
|
6229
|
+
var os = [["alert", e.default], ["alertdialog", r.default], ["application", t.default], ["article", a.default], ["banner", s.default], ["blockquote", c.default], ["button", o.default], ["caption", p.default], ["cell", u.default], ["checkbox", d.default], ["code", f.default], ["columnheader", i.default], ["combobox", n.default], ["complementary", h.default], ["contentinfo", y.default], ["definition", m.default], ["deletion", E.default], ["dialog", l.default], ["directory", q.default], ["document", C.default], ["emphasis", _.default], ["feed", P.default], ["figure", b.default], ["form", v.default], ["generic", R.default], ["grid", x.default], ["gridcell", M.default], ["group", S.default], ["heading", N.default], ["img", w.default], ["insertion", A.default], ["link", k.default], ["list", U.default], ["listbox", F.default], ["listitem", X.default], ["log", ae.default], ["main", _e.default], ["mark", ge.default], ["marquee", qe.default], ["math", D.default], ["menu", Ce.default], ["menubar", we.default], ["menuitem", ne.default], ["menuitemcheckbox", Le.default], ["menuitemradio", Be.default], ["meter", g.default], ["navigation", I.default], ["none", T.default], ["note", B.default], ["option", L.default], ["paragraph", W.default], ["presentation", Y.default], ["progressbar", Q.default], ["radio", ie.default], ["radiogroup", Mu.default], ["region", Au.default], ["row", Su.default], ["rowgroup", Iu.default], ["rowheader", Nu.default], ["scrollbar", Du.default], ["search", Lu.default], ["searchbox", Bu.default], ["separator", ku.default], ["slider", Fu.default], ["spinbutton", ju.default], ["status", $u.default], ["strong", Hu.default], ["subscript", Uu.default], ["superscript", zu.default], ["switch", Vu.default], ["tab", Wu.default], ["table", Gu.default], ["tablist", Yu.default], ["tabpanel", Ku.default], ["term", Ju.default], ["textbox", Xu.default], ["time", Qu.default], ["timer", Zu.default], ["toolbar", es.default], ["tooltip", rs.default], ["tree", ts.default], ["treegrid", as.default], ["treeitem", ns.default]], ls = os;
|
|
6225
6230
|
return tr.default = ls, tr;
|
|
6226
6231
|
}
|
|
6227
6232
|
var St = {}, It = {}, Ul;
|
|
@@ -7532,11 +7537,11 @@ function cp() {
|
|
|
7532
7537
|
Ti = 1, Object.defineProperty(St, "__esModule", {
|
|
7533
7538
|
value: !0
|
|
7534
7539
|
}), St.default = void 0;
|
|
7535
|
-
var e = D(wf()), r = D(xf()), t = D(Tf()), a = D(Of()), s = D(Mf()), c = D(Af()), o = D(Sf()), p = D(If()),
|
|
7540
|
+
var e = D(wf()), r = D(xf()), t = D(Tf()), a = D(Of()), s = D(Mf()), c = D(Af()), o = D(Sf()), p = D(If()), u = D(Nf()), d = D(Df()), f = D(Lf()), i = D(Bf()), n = D(kf()), h = D(Ff()), y = D(jf()), m = D($f()), E = D(Hf()), l = D(Uf()), q = D(zf()), C = D(Vf()), _ = D(Wf()), P = D(Gf()), b = D(Yf()), v = D(Kf()), R = D(Jf()), x = D(Xf()), M = D(Qf()), S = D(Zf()), N = D(ep()), w = D(rp()), A = D(tp()), k = D(ap()), U = D(np()), F = D(op()), X = D(lp()), ae = D(ip()), _e = D(up()), ge = D(sp()), qe = D(dp());
|
|
7536
7541
|
function D(ne) {
|
|
7537
7542
|
return ne && ne.__esModule ? ne : { default: ne };
|
|
7538
7543
|
}
|
|
7539
|
-
var Ce = [["doc-abstract", e.default], ["doc-acknowledgments", r.default], ["doc-afterword", t.default], ["doc-appendix", a.default], ["doc-backlink", s.default], ["doc-biblioentry", c.default], ["doc-bibliography", o.default], ["doc-biblioref", p.default], ["doc-chapter",
|
|
7544
|
+
var Ce = [["doc-abstract", e.default], ["doc-acknowledgments", r.default], ["doc-afterword", t.default], ["doc-appendix", a.default], ["doc-backlink", s.default], ["doc-biblioentry", c.default], ["doc-bibliography", o.default], ["doc-biblioref", p.default], ["doc-chapter", u.default], ["doc-colophon", d.default], ["doc-conclusion", f.default], ["doc-cover", i.default], ["doc-credit", n.default], ["doc-credits", h.default], ["doc-dedication", y.default], ["doc-endnote", m.default], ["doc-endnotes", E.default], ["doc-epigraph", l.default], ["doc-epilogue", q.default], ["doc-errata", C.default], ["doc-example", _.default], ["doc-footnote", P.default], ["doc-foreword", b.default], ["doc-glossary", v.default], ["doc-glossref", R.default], ["doc-index", x.default], ["doc-introduction", M.default], ["doc-noteref", S.default], ["doc-notice", N.default], ["doc-pagebreak", w.default], ["doc-pagelist", A.default], ["doc-part", k.default], ["doc-preface", U.default], ["doc-prologue", F.default], ["doc-pullquote", X.default], ["doc-qna", ae.default], ["doc-subtitle", _e.default], ["doc-tip", ge.default], ["doc-toc", qe.default]], we = Ce;
|
|
7540
7545
|
return St.default = we, St;
|
|
7541
7546
|
}
|
|
7542
7547
|
var ya = {}, Ra = {}, Oi;
|
|
@@ -7718,7 +7723,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7718
7723
|
}
|
|
7719
7724
|
} };
|
|
7720
7725
|
}
|
|
7721
|
-
function
|
|
7726
|
+
function u(l, q) {
|
|
7722
7727
|
return h(l) || n(l, q) || f(l, q) || d();
|
|
7723
7728
|
}
|
|
7724
7729
|
function d() {
|
|
@@ -7727,13 +7732,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7727
7732
|
}
|
|
7728
7733
|
function f(l, q) {
|
|
7729
7734
|
if (l) {
|
|
7730
|
-
if (typeof l == "string") return
|
|
7735
|
+
if (typeof l == "string") return i(l, q);
|
|
7731
7736
|
var C = Object.prototype.toString.call(l).slice(8, -1);
|
|
7732
7737
|
if (C === "Object" && l.constructor && (C = l.constructor.name), C === "Map" || C === "Set") return Array.from(l);
|
|
7733
|
-
if (C === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)) return
|
|
7738
|
+
if (C === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)) return i(l, q);
|
|
7734
7739
|
}
|
|
7735
7740
|
}
|
|
7736
|
-
function
|
|
7741
|
+
function i(l, q) {
|
|
7737
7742
|
(q == null || q > l.length) && (q = l.length);
|
|
7738
7743
|
for (var C = 0, _ = new Array(q); C < q; C++)
|
|
7739
7744
|
_[C] = l[C];
|
|
@@ -7763,14 +7768,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7763
7768
|
}
|
|
7764
7769
|
var y = [].concat(e.default, r.default, t.default, a.default);
|
|
7765
7770
|
y.forEach(function(l) {
|
|
7766
|
-
var q =
|
|
7771
|
+
var q = u(l, 2), C = q[1], _ = p(C.superClass), P;
|
|
7767
7772
|
try {
|
|
7768
7773
|
for (_.s(); !(P = _.n()).done; ) {
|
|
7769
7774
|
var b = P.value, v = p(b), R;
|
|
7770
7775
|
try {
|
|
7771
7776
|
var x = function() {
|
|
7772
7777
|
var S = R.value, N = y.find(function(F) {
|
|
7773
|
-
var X =
|
|
7778
|
+
var X = u(F, 1), ae = X[0];
|
|
7774
7779
|
return ae === S;
|
|
7775
7780
|
});
|
|
7776
7781
|
if (N)
|
|
@@ -7801,7 +7806,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7801
7806
|
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _ = p(y), P;
|
|
7802
7807
|
try {
|
|
7803
7808
|
for (_.s(); !(P = _.n()).done; ) {
|
|
7804
|
-
var b =
|
|
7809
|
+
var b = u(P.value, 2), v = b[0], R = b[1];
|
|
7805
7810
|
q.call(C, R, v, y);
|
|
7806
7811
|
}
|
|
7807
7812
|
} catch (x) {
|
|
@@ -7821,13 +7826,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7821
7826
|
},
|
|
7822
7827
|
keys: function() {
|
|
7823
7828
|
return y.map(function(q) {
|
|
7824
|
-
var C =
|
|
7829
|
+
var C = u(q, 1), _ = C[0];
|
|
7825
7830
|
return _;
|
|
7826
7831
|
});
|
|
7827
7832
|
},
|
|
7828
7833
|
values: function() {
|
|
7829
7834
|
return y.map(function(q) {
|
|
7830
|
-
var C =
|
|
7835
|
+
var C = u(q, 2), _ = C[1];
|
|
7831
7836
|
return _;
|
|
7832
7837
|
});
|
|
7833
7838
|
}
|
|
@@ -7900,7 +7905,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7900
7905
|
function p(P) {
|
|
7901
7906
|
if (Array.isArray(P)) return P;
|
|
7902
7907
|
}
|
|
7903
|
-
function
|
|
7908
|
+
function u(P, b) {
|
|
7904
7909
|
var v = typeof Symbol < "u" && P[Symbol.iterator] || P["@@iterator"];
|
|
7905
7910
|
if (!v) {
|
|
7906
7911
|
if (Array.isArray(P) || (v = d(P)) || b) {
|
|
@@ -7946,7 +7951,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7946
7951
|
R[v] = P[v];
|
|
7947
7952
|
return R;
|
|
7948
7953
|
}
|
|
7949
|
-
for (var
|
|
7954
|
+
for (var i = [], n = t.default.keys(), h = 0; h < n.length; h++) {
|
|
7950
7955
|
var y = n[h], m = t.default.get(y);
|
|
7951
7956
|
if (m)
|
|
7952
7957
|
for (var E = [].concat(m.baseConcepts, m.relatedConcepts), l = 0; l < E.length; l++) {
|
|
@@ -7954,7 +7959,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7954
7959
|
q.module === "HTML" && (function() {
|
|
7955
7960
|
var P = q.concept;
|
|
7956
7961
|
if (P) {
|
|
7957
|
-
var b =
|
|
7962
|
+
var b = i.find(function(M) {
|
|
7958
7963
|
return (0, e.dequal)(M, P);
|
|
7959
7964
|
}), v;
|
|
7960
7965
|
b ? v = b[1] : v = [];
|
|
@@ -7963,21 +7968,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7963
7968
|
R = !1;
|
|
7964
7969
|
break;
|
|
7965
7970
|
}
|
|
7966
|
-
R && v.push(y),
|
|
7971
|
+
R && v.push(y), i.push([P, v]);
|
|
7967
7972
|
}
|
|
7968
7973
|
})();
|
|
7969
7974
|
}
|
|
7970
7975
|
}
|
|
7971
7976
|
var C = {
|
|
7972
7977
|
entries: function() {
|
|
7973
|
-
return
|
|
7978
|
+
return i;
|
|
7974
7979
|
},
|
|
7975
7980
|
forEach: function(b) {
|
|
7976
|
-
var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, R = i
|
|
7981
|
+
var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, R = u(i), x;
|
|
7977
7982
|
try {
|
|
7978
7983
|
for (R.s(); !(x = R.n()).done; ) {
|
|
7979
7984
|
var M = s(x.value, 2), S = M[0], N = M[1];
|
|
7980
|
-
b.call(v, N, S,
|
|
7985
|
+
b.call(v, N, S, i);
|
|
7981
7986
|
}
|
|
7982
7987
|
} catch (w) {
|
|
7983
7988
|
R.e(w);
|
|
@@ -7986,7 +7991,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7986
7991
|
}
|
|
7987
7992
|
},
|
|
7988
7993
|
get: function(b) {
|
|
7989
|
-
var v =
|
|
7994
|
+
var v = i.find(function(R) {
|
|
7990
7995
|
return b.name === R[0].name && (0, e.dequal)(b.attributes, R[0].attributes);
|
|
7991
7996
|
});
|
|
7992
7997
|
return v && v[1];
|
|
@@ -7995,13 +8000,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7995
8000
|
return !!C.get(b);
|
|
7996
8001
|
},
|
|
7997
8002
|
keys: function() {
|
|
7998
|
-
return
|
|
8003
|
+
return i.map(function(b) {
|
|
7999
8004
|
var v = s(b, 1), R = v[0];
|
|
8000
8005
|
return R;
|
|
8001
8006
|
});
|
|
8002
8007
|
},
|
|
8003
8008
|
values: function() {
|
|
8004
|
-
return
|
|
8009
|
+
return i.map(function(b) {
|
|
8005
8010
|
var v = s(b, 2), R = v[1];
|
|
8006
8011
|
return R;
|
|
8007
8012
|
});
|
|
@@ -8020,7 +8025,7 @@ function yp() {
|
|
|
8020
8025
|
return b && b.__esModule ? b : { default: b };
|
|
8021
8026
|
}
|
|
8022
8027
|
function a(b, v) {
|
|
8023
|
-
return o(b) || c(b, v) ||
|
|
8028
|
+
return o(b) || c(b, v) || u(b, v) || s();
|
|
8024
8029
|
}
|
|
8025
8030
|
function s() {
|
|
8026
8031
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -8051,7 +8056,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8051
8056
|
function p(b, v) {
|
|
8052
8057
|
var R = typeof Symbol < "u" && b[Symbol.iterator] || b["@@iterator"];
|
|
8053
8058
|
if (!R) {
|
|
8054
|
-
if (Array.isArray(b) || (R =
|
|
8059
|
+
if (Array.isArray(b) || (R = u(b)) || v) {
|
|
8055
8060
|
R && (b = R);
|
|
8056
8061
|
var x = 0, M = function() {
|
|
8057
8062
|
};
|
|
@@ -8080,7 +8085,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8080
8085
|
}
|
|
8081
8086
|
} };
|
|
8082
8087
|
}
|
|
8083
|
-
function
|
|
8088
|
+
function u(b, v) {
|
|
8084
8089
|
if (b) {
|
|
8085
8090
|
if (typeof b == "string") return d(b, v);
|
|
8086
8091
|
var R = Object.prototype.toString.call(b).slice(8, -1);
|
|
@@ -8094,8 +8099,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8094
8099
|
x[R] = b[R];
|
|
8095
8100
|
return x;
|
|
8096
8101
|
}
|
|
8097
|
-
for (var f = [],
|
|
8098
|
-
var h =
|
|
8102
|
+
for (var f = [], i = r.default.keys(), n = 0; n < i.length; n++) {
|
|
8103
|
+
var h = i[n], y = r.default.get(h), m = [];
|
|
8099
8104
|
if (y) {
|
|
8100
8105
|
for (var E = [].concat(y.baseConcepts, y.relatedConcepts), l = 0; l < E.length; l++) {
|
|
8101
8106
|
var q = E[l];
|
|
@@ -8155,15 +8160,15 @@ function Rp() {
|
|
|
8155
8160
|
value: !0
|
|
8156
8161
|
}), ee.roles = ee.roleElements = ee.elementRoles = ee.dom = ee.aria = void 0;
|
|
8157
8162
|
var e = c(Nd()), r = c(Dd()), t = c(Rn()), a = c(hp()), s = c(yp());
|
|
8158
|
-
function c(
|
|
8159
|
-
return
|
|
8163
|
+
function c(i) {
|
|
8164
|
+
return i && i.__esModule ? i : { default: i };
|
|
8160
8165
|
}
|
|
8161
8166
|
var o = e.default;
|
|
8162
8167
|
ee.aria = o;
|
|
8163
8168
|
var p = r.default;
|
|
8164
8169
|
ee.dom = p;
|
|
8165
|
-
var
|
|
8166
|
-
ee.roles =
|
|
8170
|
+
var u = t.default;
|
|
8171
|
+
ee.roles = u;
|
|
8167
8172
|
var d = a.default;
|
|
8168
8173
|
ee.elementRoles = d;
|
|
8169
8174
|
var f = s.default;
|
|
@@ -8174,18 +8179,18 @@ function gp() {
|
|
|
8174
8179
|
return ki || (ki = 1, (function(e) {
|
|
8175
8180
|
var r = (function() {
|
|
8176
8181
|
var t = String.fromCharCode, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", c = {};
|
|
8177
|
-
function o(
|
|
8178
|
-
if (!c[
|
|
8179
|
-
c[
|
|
8180
|
-
for (var f = 0; f <
|
|
8181
|
-
c[
|
|
8182
|
+
function o(u, d) {
|
|
8183
|
+
if (!c[u]) {
|
|
8184
|
+
c[u] = {};
|
|
8185
|
+
for (var f = 0; f < u.length; f++)
|
|
8186
|
+
c[u][u.charAt(f)] = f;
|
|
8182
8187
|
}
|
|
8183
|
-
return c[
|
|
8188
|
+
return c[u][d];
|
|
8184
8189
|
}
|
|
8185
8190
|
var p = {
|
|
8186
|
-
compressToBase64: function(
|
|
8187
|
-
if (
|
|
8188
|
-
var d = p._compress(
|
|
8191
|
+
compressToBase64: function(u) {
|
|
8192
|
+
if (u == null) return "";
|
|
8193
|
+
var d = p._compress(u, 6, function(f) {
|
|
8189
8194
|
return a.charAt(f);
|
|
8190
8195
|
});
|
|
8191
8196
|
switch (d.length % 4) {
|
|
@@ -8202,102 +8207,102 @@ function gp() {
|
|
|
8202
8207
|
return d + "=";
|
|
8203
8208
|
}
|
|
8204
8209
|
},
|
|
8205
|
-
decompressFromBase64: function(
|
|
8206
|
-
return
|
|
8207
|
-
return o(a,
|
|
8210
|
+
decompressFromBase64: function(u) {
|
|
8211
|
+
return u == null ? "" : u == "" ? null : p._decompress(u.length, 32, function(d) {
|
|
8212
|
+
return o(a, u.charAt(d));
|
|
8208
8213
|
});
|
|
8209
8214
|
},
|
|
8210
|
-
compressToUTF16: function(
|
|
8211
|
-
return
|
|
8215
|
+
compressToUTF16: function(u) {
|
|
8216
|
+
return u == null ? "" : p._compress(u, 15, function(d) {
|
|
8212
8217
|
return t(d + 32);
|
|
8213
8218
|
}) + " ";
|
|
8214
8219
|
},
|
|
8215
|
-
decompressFromUTF16: function(
|
|
8216
|
-
return
|
|
8217
|
-
return
|
|
8220
|
+
decompressFromUTF16: function(u) {
|
|
8221
|
+
return u == null ? "" : u == "" ? null : p._decompress(u.length, 16384, function(d) {
|
|
8222
|
+
return u.charCodeAt(d) - 32;
|
|
8218
8223
|
});
|
|
8219
8224
|
},
|
|
8220
8225
|
//compress into uint8array (UCS-2 big endian format)
|
|
8221
|
-
compressToUint8Array: function(
|
|
8222
|
-
for (var d = p.compress(
|
|
8223
|
-
var h = d.charCodeAt(
|
|
8224
|
-
f[
|
|
8226
|
+
compressToUint8Array: function(u) {
|
|
8227
|
+
for (var d = p.compress(u), f = new Uint8Array(d.length * 2), i = 0, n = d.length; i < n; i++) {
|
|
8228
|
+
var h = d.charCodeAt(i);
|
|
8229
|
+
f[i * 2] = h >>> 8, f[i * 2 + 1] = h % 256;
|
|
8225
8230
|
}
|
|
8226
8231
|
return f;
|
|
8227
8232
|
},
|
|
8228
8233
|
//decompress from uint8array (UCS-2 big endian format)
|
|
8229
|
-
decompressFromUint8Array: function(
|
|
8230
|
-
if (
|
|
8231
|
-
return p.decompress(
|
|
8232
|
-
for (var d = new Array(
|
|
8233
|
-
d[f] =
|
|
8234
|
+
decompressFromUint8Array: function(u) {
|
|
8235
|
+
if (u == null)
|
|
8236
|
+
return p.decompress(u);
|
|
8237
|
+
for (var d = new Array(u.length / 2), f = 0, i = d.length; f < i; f++)
|
|
8238
|
+
d[f] = u[f * 2] * 256 + u[f * 2 + 1];
|
|
8234
8239
|
var n = [];
|
|
8235
8240
|
return d.forEach(function(h) {
|
|
8236
8241
|
n.push(t(h));
|
|
8237
8242
|
}), p.decompress(n.join(""));
|
|
8238
8243
|
},
|
|
8239
8244
|
//compress into a string that is already URI encoded
|
|
8240
|
-
compressToEncodedURIComponent: function(
|
|
8241
|
-
return
|
|
8245
|
+
compressToEncodedURIComponent: function(u) {
|
|
8246
|
+
return u == null ? "" : p._compress(u, 6, function(d) {
|
|
8242
8247
|
return s.charAt(d);
|
|
8243
8248
|
});
|
|
8244
8249
|
},
|
|
8245
8250
|
//decompress from an output of compressToEncodedURIComponent
|
|
8246
|
-
decompressFromEncodedURIComponent: function(
|
|
8247
|
-
return
|
|
8248
|
-
return o(s,
|
|
8251
|
+
decompressFromEncodedURIComponent: function(u) {
|
|
8252
|
+
return u == null ? "" : u == "" ? null : (u = u.replace(/ /g, "+"), p._decompress(u.length, 32, function(d) {
|
|
8253
|
+
return o(s, u.charAt(d));
|
|
8249
8254
|
}));
|
|
8250
8255
|
},
|
|
8251
|
-
compress: function(
|
|
8252
|
-
return p._compress(
|
|
8256
|
+
compress: function(u) {
|
|
8257
|
+
return p._compress(u, 16, function(d) {
|
|
8253
8258
|
return t(d);
|
|
8254
8259
|
});
|
|
8255
8260
|
},
|
|
8256
|
-
_compress: function(
|
|
8257
|
-
if (
|
|
8258
|
-
var
|
|
8259
|
-
for (R = 0; R <
|
|
8260
|
-
if (m =
|
|
8261
|
+
_compress: function(u, d, f) {
|
|
8262
|
+
if (u == null) return "";
|
|
8263
|
+
var i, n, h = {}, y = {}, m = "", E = "", l = "", q = 2, C = 3, _ = 2, P = [], b = 0, v = 0, R;
|
|
8264
|
+
for (R = 0; R < u.length; R += 1)
|
|
8265
|
+
if (m = u.charAt(R), Object.prototype.hasOwnProperty.call(h, m) || (h[m] = C++, y[m] = !0), E = l + m, Object.prototype.hasOwnProperty.call(h, E))
|
|
8261
8266
|
l = E;
|
|
8262
8267
|
else {
|
|
8263
8268
|
if (Object.prototype.hasOwnProperty.call(y, l)) {
|
|
8264
8269
|
if (l.charCodeAt(0) < 256) {
|
|
8265
|
-
for (
|
|
8270
|
+
for (i = 0; i < _; i++)
|
|
8266
8271
|
b = b << 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++;
|
|
8267
|
-
for (n = l.charCodeAt(0),
|
|
8272
|
+
for (n = l.charCodeAt(0), i = 0; i < 8; i++)
|
|
8268
8273
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8269
8274
|
} else {
|
|
8270
|
-
for (n = 1,
|
|
8275
|
+
for (n = 1, i = 0; i < _; i++)
|
|
8271
8276
|
b = b << 1 | n, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = 0;
|
|
8272
|
-
for (n = l.charCodeAt(0),
|
|
8277
|
+
for (n = l.charCodeAt(0), i = 0; i < 16; i++)
|
|
8273
8278
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8274
8279
|
}
|
|
8275
8280
|
q--, q == 0 && (q = Math.pow(2, _), _++), delete y[l];
|
|
8276
8281
|
} else
|
|
8277
|
-
for (n = h[l],
|
|
8282
|
+
for (n = h[l], i = 0; i < _; i++)
|
|
8278
8283
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8279
8284
|
q--, q == 0 && (q = Math.pow(2, _), _++), h[E] = C++, l = String(m);
|
|
8280
8285
|
}
|
|
8281
8286
|
if (l !== "") {
|
|
8282
8287
|
if (Object.prototype.hasOwnProperty.call(y, l)) {
|
|
8283
8288
|
if (l.charCodeAt(0) < 256) {
|
|
8284
|
-
for (
|
|
8289
|
+
for (i = 0; i < _; i++)
|
|
8285
8290
|
b = b << 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++;
|
|
8286
|
-
for (n = l.charCodeAt(0),
|
|
8291
|
+
for (n = l.charCodeAt(0), i = 0; i < 8; i++)
|
|
8287
8292
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8288
8293
|
} else {
|
|
8289
|
-
for (n = 1,
|
|
8294
|
+
for (n = 1, i = 0; i < _; i++)
|
|
8290
8295
|
b = b << 1 | n, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = 0;
|
|
8291
|
-
for (n = l.charCodeAt(0),
|
|
8296
|
+
for (n = l.charCodeAt(0), i = 0; i < 16; i++)
|
|
8292
8297
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8293
8298
|
}
|
|
8294
8299
|
q--, q == 0 && (q = Math.pow(2, _), _++), delete y[l];
|
|
8295
8300
|
} else
|
|
8296
|
-
for (n = h[l],
|
|
8301
|
+
for (n = h[l], i = 0; i < _; i++)
|
|
8297
8302
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8298
8303
|
q--, q == 0 && (q = Math.pow(2, _), _++);
|
|
8299
8304
|
}
|
|
8300
|
-
for (n = 2,
|
|
8305
|
+
for (n = 2, i = 0; i < _; i++)
|
|
8301
8306
|
b = b << 1 | n & 1, v == d - 1 ? (v = 0, P.push(f(b)), b = 0) : v++, n = n >> 1;
|
|
8302
8307
|
for (; ; )
|
|
8303
8308
|
if (b = b << 1, v == d - 1) {
|
|
@@ -8306,15 +8311,15 @@ function gp() {
|
|
|
8306
8311
|
} else v++;
|
|
8307
8312
|
return P.join("");
|
|
8308
8313
|
},
|
|
8309
|
-
decompress: function(
|
|
8310
|
-
return
|
|
8311
|
-
return
|
|
8314
|
+
decompress: function(u) {
|
|
8315
|
+
return u == null ? "" : u == "" ? null : p._decompress(u.length, 32768, function(d) {
|
|
8316
|
+
return u.charCodeAt(d);
|
|
8312
8317
|
});
|
|
8313
8318
|
},
|
|
8314
|
-
_decompress: function(
|
|
8315
|
-
var
|
|
8319
|
+
_decompress: function(u, d, f) {
|
|
8320
|
+
var i = [], n = 4, h = 4, y = 3, m = "", E = [], l, q, C, _, P, b, v, R = { val: f(0), position: d, index: 1 };
|
|
8316
8321
|
for (l = 0; l < 3; l += 1)
|
|
8317
|
-
|
|
8322
|
+
i[l] = l;
|
|
8318
8323
|
for (C = 0, P = Math.pow(2, 2), b = 1; b != P; )
|
|
8319
8324
|
_ = R.val & R.position, R.position >>= 1, R.position == 0 && (R.position = d, R.val = f(R.index++)), C |= (_ > 0 ? 1 : 0) * b, b <<= 1;
|
|
8320
8325
|
switch (C) {
|
|
@@ -8331,8 +8336,8 @@ function gp() {
|
|
|
8331
8336
|
case 2:
|
|
8332
8337
|
return "";
|
|
8333
8338
|
}
|
|
8334
|
-
for (
|
|
8335
|
-
if (R.index >
|
|
8339
|
+
for (i[3] = v, q = v, E.push(v); ; ) {
|
|
8340
|
+
if (R.index > u)
|
|
8336
8341
|
return "";
|
|
8337
8342
|
for (C = 0, P = Math.pow(2, y), b = 1; b != P; )
|
|
8338
8343
|
_ = R.val & R.position, R.position >>= 1, R.position == 0 && (R.position = d, R.val = f(R.index++)), C |= (_ > 0 ? 1 : 0) * b, b <<= 1;
|
|
@@ -8340,23 +8345,23 @@ function gp() {
|
|
|
8340
8345
|
case 0:
|
|
8341
8346
|
for (C = 0, P = Math.pow(2, 8), b = 1; b != P; )
|
|
8342
8347
|
_ = R.val & R.position, R.position >>= 1, R.position == 0 && (R.position = d, R.val = f(R.index++)), C |= (_ > 0 ? 1 : 0) * b, b <<= 1;
|
|
8343
|
-
|
|
8348
|
+
i[h++] = t(C), v = h - 1, n--;
|
|
8344
8349
|
break;
|
|
8345
8350
|
case 1:
|
|
8346
8351
|
for (C = 0, P = Math.pow(2, 16), b = 1; b != P; )
|
|
8347
8352
|
_ = R.val & R.position, R.position >>= 1, R.position == 0 && (R.position = d, R.val = f(R.index++)), C |= (_ > 0 ? 1 : 0) * b, b <<= 1;
|
|
8348
|
-
|
|
8353
|
+
i[h++] = t(C), v = h - 1, n--;
|
|
8349
8354
|
break;
|
|
8350
8355
|
case 2:
|
|
8351
8356
|
return E.join("");
|
|
8352
8357
|
}
|
|
8353
|
-
if (n == 0 && (n = Math.pow(2, y), y++),
|
|
8354
|
-
m =
|
|
8358
|
+
if (n == 0 && (n = Math.pow(2, y), y++), i[v])
|
|
8359
|
+
m = i[v];
|
|
8355
8360
|
else if (v === h)
|
|
8356
8361
|
m = q + q.charAt(0);
|
|
8357
8362
|
else
|
|
8358
8363
|
return null;
|
|
8359
|
-
E.push(m),
|
|
8364
|
+
E.push(m), i[h++] = q + m.charAt(0), n--, q = m, n == 0 && (n = Math.pow(2, y), y++);
|
|
8360
8365
|
}
|
|
8361
8366
|
}
|
|
8362
8367
|
};
|
|
@@ -8373,12 +8378,12 @@ function ou(e) {
|
|
|
8373
8378
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
8374
8379
|
}
|
|
8375
8380
|
const Ep = (e, r, t, a, s, c, o) => {
|
|
8376
|
-
const p = a + t.indent,
|
|
8381
|
+
const p = a + t.indent, u = t.colors;
|
|
8377
8382
|
return e.map((d) => {
|
|
8378
8383
|
const f = r[d];
|
|
8379
|
-
let
|
|
8380
|
-
return typeof f != "string" && (
|
|
8381
|
-
`) !== -1 && (
|
|
8384
|
+
let i = o(f, t, p, s, c);
|
|
8385
|
+
return typeof f != "string" && (i.indexOf(`
|
|
8386
|
+
`) !== -1 && (i = t.spacingOuter + p + i + t.spacingOuter + a), i = "{" + i + "}"), t.spacingInner + a + u.prop.open + d + u.prop.close + "=" + u.value.open + i + u.value.close;
|
|
8382
8387
|
}).join("");
|
|
8383
8388
|
}, Pp = 3, _p = (e, r, t, a, s, c) => e.map((o) => {
|
|
8384
8389
|
const p = typeof o == "string" ? lu(o, r) : c(o, r, t, a, s);
|
|
@@ -8427,7 +8432,7 @@ function Np(e) {
|
|
|
8427
8432
|
if (Ip(r))
|
|
8428
8433
|
return wp(r.data, t);
|
|
8429
8434
|
const p = en(r) ? "DocumentFragment" : r.tagName.toLowerCase();
|
|
8430
|
-
return ++s > t.maxDepth ? Tp(p, t) : xp(p, Ep(en(r) ? [] : Array.from(r.attributes).map((
|
|
8435
|
+
return ++s > t.maxDepth ? Tp(p, t) : xp(p, Ep(en(r) ? [] : Array.from(r.attributes).map((u) => u.name).sort(), en(r) ? {} : Array.from(r.attributes).reduce((u, d) => (u[d.name] = d.value, u), {}), t, a + t.indent, s, c, o), _p(Array.prototype.slice.call(r.childNodes || r.children).filter(e), t, a + t.indent, s, c, o), t, a);
|
|
8431
8436
|
}
|
|
8432
8437
|
};
|
|
8433
8438
|
}
|
|
@@ -8439,13 +8444,13 @@ try {
|
|
|
8439
8444
|
}
|
|
8440
8445
|
function Dp(e) {
|
|
8441
8446
|
const r = e.indexOf("(") + 1, t = e.indexOf(")"), a = e.slice(r, t), s = a.split(":"), [c, o, p] = [s[0], parseInt(s[1], 10), parseInt(s[2], 10)];
|
|
8442
|
-
let
|
|
8447
|
+
let u = "";
|
|
8443
8448
|
try {
|
|
8444
|
-
|
|
8449
|
+
u = gn(c, "utf-8");
|
|
8445
8450
|
} catch {
|
|
8446
8451
|
return "";
|
|
8447
8452
|
}
|
|
8448
|
-
const d = qn(
|
|
8453
|
+
const d = qn(u, {
|
|
8449
8454
|
start: {
|
|
8450
8455
|
line: o,
|
|
8451
8456
|
column: p
|
|
@@ -8711,16 +8716,16 @@ function Gp(e) {
|
|
|
8711
8716
|
function r(o) {
|
|
8712
8717
|
let {
|
|
8713
8718
|
name: p,
|
|
8714
|
-
attributes:
|
|
8719
|
+
attributes: u
|
|
8715
8720
|
} = o;
|
|
8716
|
-
return "" + p +
|
|
8721
|
+
return "" + p + u.map((d) => {
|
|
8717
8722
|
let {
|
|
8718
8723
|
name: f,
|
|
8719
|
-
value:
|
|
8724
|
+
value: i,
|
|
8720
8725
|
constraints: n = []
|
|
8721
8726
|
} = d;
|
|
8722
8727
|
const h = n.indexOf("undefined") !== -1, y = n.indexOf("set") !== -1;
|
|
8723
|
-
return typeof
|
|
8728
|
+
return typeof i < "u" ? "[" + f + '="' + i + '"]' : h ? ":not([" + f + "])" : y ? "[" + f + "]:not([" + f + '=""])' : "[" + f + "]";
|
|
8724
8729
|
}).join("");
|
|
8725
8730
|
}
|
|
8726
8731
|
function t(o) {
|
|
@@ -8731,23 +8736,23 @@ function Gp(e) {
|
|
|
8731
8736
|
}
|
|
8732
8737
|
function a(o, p) {
|
|
8733
8738
|
let {
|
|
8734
|
-
specificity:
|
|
8739
|
+
specificity: u
|
|
8735
8740
|
} = o, {
|
|
8736
8741
|
specificity: d
|
|
8737
8742
|
} = p;
|
|
8738
|
-
return d -
|
|
8743
|
+
return d - u;
|
|
8739
8744
|
}
|
|
8740
8745
|
function s(o) {
|
|
8741
8746
|
let {
|
|
8742
8747
|
attributes: p = []
|
|
8743
8748
|
} = o;
|
|
8744
|
-
const
|
|
8745
|
-
|
|
8749
|
+
const u = p.findIndex((f) => f.value && f.name === "type" && f.value === "text");
|
|
8750
|
+
u >= 0 && (p = [...p.slice(0, u), ...p.slice(u + 1)]);
|
|
8746
8751
|
const d = r({
|
|
8747
8752
|
...o,
|
|
8748
8753
|
attributes: p
|
|
8749
8754
|
});
|
|
8750
|
-
return (f) =>
|
|
8755
|
+
return (f) => u >= 0 && f.type !== "text" ? !1 : f.matches(d);
|
|
8751
8756
|
}
|
|
8752
8757
|
let c = [];
|
|
8753
8758
|
for (const [o, p] of e.entries())
|
|
@@ -8767,12 +8772,12 @@ function Yp(e, r) {
|
|
|
8767
8772
|
}
|
|
8768
8773
|
return a(e).filter((s) => t === !1 ? En(s) === !1 : !0).reduce((s, c) => {
|
|
8769
8774
|
let o = [];
|
|
8770
|
-
return c.hasAttribute("role") ? o = c.getAttribute("role").split(" ").slice(0, 1) : o = Pn(c), o.reduce((p,
|
|
8775
|
+
return c.hasAttribute("role") ? o = c.getAttribute("role").split(" ").slice(0, 1) : o = Pn(c), o.reduce((p, u) => Array.isArray(p[u]) ? {
|
|
8771
8776
|
...p,
|
|
8772
|
-
[
|
|
8777
|
+
[u]: [...p[u], c]
|
|
8773
8778
|
} : {
|
|
8774
8779
|
...p,
|
|
8775
|
-
[
|
|
8780
|
+
[u]: [c]
|
|
8776
8781
|
}, s);
|
|
8777
8782
|
}, {});
|
|
8778
8783
|
}
|
|
@@ -8789,8 +8794,8 @@ function Kp(e, r) {
|
|
|
8789
8794
|
return o !== "generic";
|
|
8790
8795
|
}).map((c) => {
|
|
8791
8796
|
let [o, p] = c;
|
|
8792
|
-
const
|
|
8793
|
-
const
|
|
8797
|
+
const u = "-".repeat(50), d = p.map((f) => {
|
|
8798
|
+
const i = 'Name "' + yn(f, {
|
|
8794
8799
|
computedStyleSupportsPseudoElements: H().computedStyleSupportsPseudoElements
|
|
8795
8800
|
}) + `":
|
|
8796
8801
|
`, n = Ie(f.cloneNode(!1));
|
|
@@ -8799,9 +8804,9 @@ function Kp(e, r) {
|
|
|
8799
8804
|
computedStyleSupportsPseudoElements: H().computedStyleSupportsPseudoElements
|
|
8800
8805
|
}) + `":
|
|
8801
8806
|
`;
|
|
8802
|
-
return "" +
|
|
8807
|
+
return "" + i + h + n;
|
|
8803
8808
|
}
|
|
8804
|
-
return "" +
|
|
8809
|
+
return "" + i + n;
|
|
8805
8810
|
}).join(`
|
|
8806
8811
|
|
|
8807
8812
|
`);
|
|
@@ -8809,7 +8814,7 @@ function Kp(e, r) {
|
|
|
8809
8814
|
|
|
8810
8815
|
` + d + `
|
|
8811
8816
|
|
|
8812
|
-
` +
|
|
8817
|
+
` + u;
|
|
8813
8818
|
}).join(`
|
|
8814
8819
|
`);
|
|
8815
8820
|
}
|
|
@@ -8879,24 +8884,24 @@ function Ee(e, r, t, a) {
|
|
|
8879
8884
|
variant: s,
|
|
8880
8885
|
name: c
|
|
8881
8886
|
} = a, o = "";
|
|
8882
|
-
const p = {},
|
|
8887
|
+
const p = {}, u = [["Role", "TestId"].includes(e) ? t : $i(t)];
|
|
8883
8888
|
c && (p.name = $i(c)), e === "Role" && En(r) && (p.hidden = !0, o = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
8884
8889
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
8885
|
-
`), Object.keys(p).length > 0 &&
|
|
8890
|
+
`), Object.keys(p).length > 0 && u.push(p);
|
|
8886
8891
|
const d = s + "By" + e;
|
|
8887
8892
|
return {
|
|
8888
8893
|
queryName: e,
|
|
8889
8894
|
queryMethod: d,
|
|
8890
|
-
queryArgs:
|
|
8895
|
+
queryArgs: u,
|
|
8891
8896
|
variant: s,
|
|
8892
8897
|
warning: o,
|
|
8893
8898
|
toString() {
|
|
8894
8899
|
o && console.warn(o);
|
|
8895
|
-
let [f,
|
|
8896
|
-
return f = typeof f == "string" ? "'" + f + "'" : f,
|
|
8900
|
+
let [f, i] = u;
|
|
8901
|
+
return f = typeof f == "string" ? "'" + f + "'" : f, i = i ? ", { " + Object.entries(i).map((n) => {
|
|
8897
8902
|
let [h, y] = n;
|
|
8898
8903
|
return h + ": " + y;
|
|
8899
|
-
}).join(", ") + " }" : "", d + "(" + f +
|
|
8904
|
+
}).join(", ") + " }" : "", d + "(" + f + i + ")";
|
|
8900
8905
|
}
|
|
8901
8906
|
};
|
|
8902
8907
|
}
|
|
@@ -8925,9 +8930,9 @@ function nn(e, r, t) {
|
|
|
8925
8930
|
return Ee("PlaceholderText", e, p, {
|
|
8926
8931
|
variant: r
|
|
8927
8932
|
});
|
|
8928
|
-
const
|
|
8929
|
-
if (Pe("Text", t,
|
|
8930
|
-
return Ee("Text", e,
|
|
8933
|
+
const u = ji(Ga(e));
|
|
8934
|
+
if (Pe("Text", t, u))
|
|
8935
|
+
return Ee("Text", e, u, {
|
|
8931
8936
|
variant: r
|
|
8932
8937
|
});
|
|
8933
8938
|
if (Pe("DisplayValue", t, e.value))
|
|
@@ -8944,9 +8949,9 @@ function nn(e, r, t) {
|
|
|
8944
8949
|
return Ee("Title", e, f, {
|
|
8945
8950
|
variant: r
|
|
8946
8951
|
});
|
|
8947
|
-
const
|
|
8948
|
-
if (Pe("TestId", t,
|
|
8949
|
-
return Ee("TestId", e,
|
|
8952
|
+
const i = e.getAttribute(H().testIdAttribute);
|
|
8953
|
+
if (Pe("TestId", t, i))
|
|
8954
|
+
return Ee("TestId", e, i, {
|
|
8950
8955
|
variant: r
|
|
8951
8956
|
});
|
|
8952
8957
|
}
|
|
@@ -8963,7 +8968,7 @@ function um(e, r) {
|
|
|
8963
8968
|
onTimeout: p = (d) => (Object.defineProperty(d, "message", {
|
|
8964
8969
|
value: H().getElementError(d.message, t).message
|
|
8965
8970
|
}), d),
|
|
8966
|
-
mutationObserverOptions:
|
|
8971
|
+
mutationObserverOptions: u = {
|
|
8967
8972
|
subtree: !0,
|
|
8968
8973
|
childList: !0,
|
|
8969
8974
|
attributes: !0,
|
|
@@ -8973,7 +8978,7 @@ function um(e, r) {
|
|
|
8973
8978
|
if (typeof e != "function")
|
|
8974
8979
|
throw new TypeError("Received `callback` arg must be a function");
|
|
8975
8980
|
return new Promise(async (d, f) => {
|
|
8976
|
-
let
|
|
8981
|
+
let i, n, h, y = !1, m = "idle";
|
|
8977
8982
|
const E = setTimeout(P, a), l = rn();
|
|
8978
8983
|
if (l) {
|
|
8979
8984
|
const {
|
|
@@ -9002,7 +9007,7 @@ function um(e, r) {
|
|
|
9002
9007
|
const {
|
|
9003
9008
|
MutationObserver: b
|
|
9004
9009
|
} = pu(t);
|
|
9005
|
-
h = new b(C), h.observe(t,
|
|
9010
|
+
h = new b(C), h.observe(t, u), _();
|
|
9006
9011
|
}
|
|
9007
9012
|
function q(b, v) {
|
|
9008
9013
|
y = !0, clearTimeout(E), l || (clearInterval(n), h.disconnect()), b ? f(b) : d(v);
|
|
@@ -9021,15 +9026,15 @@ function um(e, r) {
|
|
|
9021
9026
|
typeof (b == null ? void 0 : b.then) == "function" ? (m = "pending", b.then((v) => {
|
|
9022
9027
|
m = "resolved", q(null, v);
|
|
9023
9028
|
}, (v) => {
|
|
9024
|
-
m = "rejected",
|
|
9029
|
+
m = "rejected", i = v;
|
|
9025
9030
|
})) : q(null, b);
|
|
9026
9031
|
} catch (b) {
|
|
9027
|
-
|
|
9032
|
+
i = b;
|
|
9028
9033
|
}
|
|
9029
9034
|
}
|
|
9030
9035
|
function P() {
|
|
9031
9036
|
let b;
|
|
9032
|
-
|
|
9037
|
+
i ? (b = i, !s && b.name === "TestingLibraryElementError" && La(b, c)) : (b = new Error("Timed out in waitFor."), s || La(b, c)), q(p(b), null);
|
|
9033
9038
|
}
|
|
9034
9039
|
});
|
|
9035
9040
|
}
|
|
@@ -9053,12 +9058,12 @@ function Ya(e, r, t, a) {
|
|
|
9053
9058
|
trim: o,
|
|
9054
9059
|
normalizer: p
|
|
9055
9060
|
} = a === void 0 ? {} : a;
|
|
9056
|
-
const
|
|
9061
|
+
const u = s ? ye : De, d = Me({
|
|
9057
9062
|
collapseWhitespace: c,
|
|
9058
9063
|
trim: o,
|
|
9059
9064
|
normalizer: p
|
|
9060
9065
|
});
|
|
9061
|
-
return Array.from(r.querySelectorAll("[" + e + "]")).filter((f) =>
|
|
9066
|
+
return Array.from(r.querySelectorAll("[" + e + "]")).filter((f) => u(f.getAttribute(e), f, t, d));
|
|
9062
9067
|
}
|
|
9063
9068
|
function Ha(e, r) {
|
|
9064
9069
|
return function(t) {
|
|
@@ -9066,7 +9071,7 @@ function Ha(e, r) {
|
|
|
9066
9071
|
s[c - 1] = arguments[c];
|
|
9067
9072
|
const o = e(t, ...s);
|
|
9068
9073
|
if (o.length > 1) {
|
|
9069
|
-
const p = o.map((
|
|
9074
|
+
const p = o.map((u) => qu(null, u).message).join(`
|
|
9070
9075
|
|
|
9071
9076
|
`);
|
|
9072
9077
|
throw dm(r(t, ...s) + `
|
|
@@ -9103,9 +9108,9 @@ const Se = (e, r, t) => function(a) {
|
|
|
9103
9108
|
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), o = 1; o < s; o++)
|
|
9104
9109
|
c[o - 1] = arguments[o];
|
|
9105
9110
|
const p = e(a, ...c), [{
|
|
9106
|
-
suggest:
|
|
9111
|
+
suggest: u = H().throwSuggestions
|
|
9107
9112
|
} = {}] = c.slice(-1);
|
|
9108
|
-
if (p &&
|
|
9113
|
+
if (p && u) {
|
|
9109
9114
|
const d = nn(p, t);
|
|
9110
9115
|
if (d && !r.endsWith(d.queryName))
|
|
9111
9116
|
throw Cu(d.toString(), a);
|
|
@@ -9115,12 +9120,12 @@ const Se = (e, r, t) => function(a) {
|
|
|
9115
9120
|
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), o = 1; o < s; o++)
|
|
9116
9121
|
c[o - 1] = arguments[o];
|
|
9117
9122
|
const p = e(a, ...c), [{
|
|
9118
|
-
suggest:
|
|
9123
|
+
suggest: u = H().throwSuggestions
|
|
9119
9124
|
} = {}] = c.slice(-1);
|
|
9120
|
-
if (p.length &&
|
|
9125
|
+
if (p.length && u) {
|
|
9121
9126
|
const d = [...new Set(p.map((f) => {
|
|
9122
|
-
var
|
|
9123
|
-
return (
|
|
9127
|
+
var i;
|
|
9128
|
+
return (i = nn(f, t)) == null ? void 0 : i.toString();
|
|
9124
9129
|
}))];
|
|
9125
9130
|
if (
|
|
9126
9131
|
// only want to suggest if all the els have the same suggestion.
|
|
@@ -9134,8 +9139,8 @@ const Se = (e, r, t) => function(a) {
|
|
|
9134
9139
|
return p;
|
|
9135
9140
|
};
|
|
9136
9141
|
function Ae(e, r, t) {
|
|
9137
|
-
const a = Se(Ha(e, r), e.name, "query"), s = cm(e, t), c = Ha(s, r), o = Se(c, e.name, "get"), p = te(s, e.name.replace("query", "get"), "getAll"),
|
|
9138
|
-
return [a, p, o,
|
|
9142
|
+
const a = Se(Ha(e, r), e.name, "query"), s = cm(e, t), c = Ha(s, r), o = Se(c, e.name, "get"), p = te(s, e.name.replace("query", "get"), "getAll"), u = Ua(te(s, e.name, "findAll")), d = Ua(Se(c, e.name, "find"));
|
|
9143
|
+
return [a, p, o, u, d];
|
|
9139
9144
|
}
|
|
9140
9145
|
function fm(e) {
|
|
9141
9146
|
return Array.from(e.querySelectorAll("label,input")).map((r) => ({
|
|
@@ -9155,22 +9160,22 @@ const pm = function(e, r, t) {
|
|
|
9155
9160
|
collapseWhitespace: c,
|
|
9156
9161
|
normalizer: o
|
|
9157
9162
|
} = t === void 0 ? {} : t;
|
|
9158
|
-
const p = a ? ye : De,
|
|
9163
|
+
const p = a ? ye : De, u = Me({
|
|
9159
9164
|
collapseWhitespace: c,
|
|
9160
9165
|
trim: s,
|
|
9161
9166
|
normalizer: o
|
|
9162
9167
|
});
|
|
9163
9168
|
return fm(e).filter((f) => {
|
|
9164
9169
|
let {
|
|
9165
|
-
node:
|
|
9170
|
+
node: i,
|
|
9166
9171
|
textToMatch: n
|
|
9167
9172
|
} = f;
|
|
9168
|
-
return p(n,
|
|
9173
|
+
return p(n, i, r, u);
|
|
9169
9174
|
}).map((f) => {
|
|
9170
9175
|
let {
|
|
9171
|
-
node:
|
|
9176
|
+
node: i
|
|
9172
9177
|
} = f;
|
|
9173
|
-
return
|
|
9178
|
+
return i;
|
|
9174
9179
|
});
|
|
9175
9180
|
}, xa = function(e, r, t) {
|
|
9176
9181
|
let {
|
|
@@ -9181,28 +9186,28 @@ const pm = function(e, r, t) {
|
|
|
9181
9186
|
normalizer: p
|
|
9182
9187
|
} = t === void 0 ? {} : t;
|
|
9183
9188
|
Re(e);
|
|
9184
|
-
const
|
|
9189
|
+
const u = s ? ye : De, d = Me({
|
|
9185
9190
|
collapseWhitespace: c,
|
|
9186
9191
|
trim: o,
|
|
9187
9192
|
normalizer: p
|
|
9188
|
-
}), f = Array.from(e.querySelectorAll("*")).filter((
|
|
9193
|
+
}), f = Array.from(e.querySelectorAll("*")).filter((i) => bu(i).length || i.hasAttribute("aria-labelledby")).reduce((i, n) => {
|
|
9189
9194
|
const h = vu(e, n, {
|
|
9190
9195
|
selector: a
|
|
9191
9196
|
});
|
|
9192
9197
|
h.filter((m) => !!m.formControl).forEach((m) => {
|
|
9193
|
-
|
|
9198
|
+
u(m.content, m.formControl, r, d) && m.formControl && i.push(m.formControl);
|
|
9194
9199
|
});
|
|
9195
9200
|
const y = h.filter((m) => !!m.content).map((m) => m.content);
|
|
9196
|
-
return
|
|
9197
|
-
|
|
9201
|
+
return u(y.join(" "), n, r, d) && i.push(n), y.length > 1 && y.forEach((m, E) => {
|
|
9202
|
+
u(m, n, r, d) && i.push(n);
|
|
9198
9203
|
const l = [...y];
|
|
9199
|
-
l.splice(E, 1), l.length > 1 &&
|
|
9200
|
-
}),
|
|
9204
|
+
l.splice(E, 1), l.length > 1 && u(l.join(" "), n, r, d) && i.push(n);
|
|
9205
|
+
}), i;
|
|
9201
9206
|
}, []).concat(Ya("aria-label", e, r, {
|
|
9202
9207
|
exact: s,
|
|
9203
9208
|
normalizer: d
|
|
9204
9209
|
}));
|
|
9205
|
-
return Array.from(new Set(f)).filter((
|
|
9210
|
+
return Array.from(new Set(f)).filter((i) => i.matches(a));
|
|
9206
9211
|
}, Oe = function(e, r) {
|
|
9207
9212
|
for (var t = arguments.length, a = new Array(t > 2 ? t - 2 : 0), s = 2; s < t; s++)
|
|
9208
9213
|
a[s - 2] = arguments[s];
|
|
@@ -9210,8 +9215,8 @@ const pm = function(e, r, t) {
|
|
|
9210
9215
|
if (!c.length) {
|
|
9211
9216
|
const o = pm(e, r, ...a);
|
|
9212
9217
|
if (o.length) {
|
|
9213
|
-
const p = o.map((
|
|
9214
|
-
throw p.length ? H().getElementError(p.map((
|
|
9218
|
+
const p = o.map((u) => mm(e, u)).filter((u) => !!u);
|
|
9219
|
+
throw p.length ? H().getElementError(p.map((u) => "Found a label with the text of: " + r + ", however the element associated with this label (<" + u + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + u + " />, you can use aria-label or aria-labelledby instead.").join(`
|
|
9215
9220
|
|
|
9216
9221
|
`), e) : H().getElementError("Found a label with the text of: " + r + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, e);
|
|
9217
9222
|
} else
|
|
@@ -9237,16 +9242,16 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9237
9242
|
collapseWhitespace: c,
|
|
9238
9243
|
trim: o,
|
|
9239
9244
|
ignore: p = H().defaultIgnore,
|
|
9240
|
-
normalizer:
|
|
9245
|
+
normalizer: u
|
|
9241
9246
|
} = t === void 0 ? {} : t;
|
|
9242
9247
|
Re(e);
|
|
9243
9248
|
const d = s ? ye : De, f = Me({
|
|
9244
9249
|
collapseWhitespace: c,
|
|
9245
9250
|
trim: o,
|
|
9246
|
-
normalizer:
|
|
9251
|
+
normalizer: u
|
|
9247
9252
|
});
|
|
9248
|
-
let
|
|
9249
|
-
return typeof e.matches == "function" && e.matches(a) && (
|
|
9253
|
+
let i = [];
|
|
9254
|
+
return typeof e.matches == "function" && e.matches(a) && (i = [e]), [...i, ...Array.from(e.querySelectorAll(a))].filter((n) => !p || !n.matches(p)).filter((n) => d(Ga(n), n, r, f));
|
|
9250
9255
|
}, Om = (e, r) => "Found multiple elements with the text: " + r, Mm = function(e, r, t) {
|
|
9251
9256
|
t === void 0 && (t = {});
|
|
9252
9257
|
const {
|
|
@@ -9254,12 +9259,12 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9254
9259
|
trim: s,
|
|
9255
9260
|
normalizer: c,
|
|
9256
9261
|
selector: o
|
|
9257
|
-
} = t,
|
|
9262
|
+
} = t, u = Me({
|
|
9258
9263
|
collapseWhitespace: a,
|
|
9259
9264
|
trim: s,
|
|
9260
9265
|
normalizer: c
|
|
9261
|
-
})(r.toString()), d =
|
|
9262
|
-
return "Unable to find an element with the text: " + (d ?
|
|
9266
|
+
})(r.toString()), d = u !== r.toString(), f = (o ?? "*") !== "*";
|
|
9267
|
+
return "Unable to find an element with the text: " + (d ? u + " (normalized from '" + r + "')" : r) + (f ? ", which matches selector '" + o + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
|
|
9263
9268
|
}, Am = te(ln, ln.name, "queryAll"), [Sm, Im, Nm, Dm, Lm] = Ae(ln, Om, Mm), un = function(e, r, t) {
|
|
9264
9269
|
let {
|
|
9265
9270
|
exact: a = !0,
|
|
@@ -9268,12 +9273,12 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9268
9273
|
normalizer: o
|
|
9269
9274
|
} = t === void 0 ? {} : t;
|
|
9270
9275
|
Re(e);
|
|
9271
|
-
const p = a ? ye : De,
|
|
9276
|
+
const p = a ? ye : De, u = Me({
|
|
9272
9277
|
collapseWhitespace: s,
|
|
9273
9278
|
trim: c,
|
|
9274
9279
|
normalizer: o
|
|
9275
9280
|
});
|
|
9276
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((d) => d.tagName === "SELECT" ? Array.from(d.options).filter((
|
|
9281
|
+
return Array.from(e.querySelectorAll("input,textarea,select")).filter((d) => d.tagName === "SELECT" ? Array.from(d.options).filter((i) => i.selected).some((i) => p(Ga(i), i, r, u)) : p(d.value, d, r, u));
|
|
9277
9282
|
}, Bm = (e, r) => "Found multiple elements with the display value: " + r + ".", km = (e, r) => "Unable to find an element with the display value: " + r + ".", Fm = te(un, un.name, "queryAll"), [jm, $m, Hm, Um, zm] = Ae(un, Bm, km), Vm = /^(img|input|area|.+-.+)$/i, sn = function(e, r, t) {
|
|
9278
9283
|
return t === void 0 && (t = {}), Re(e), Ya("alt", e, r, t).filter((a) => Vm.test(a.tagName));
|
|
9279
9284
|
}, Wm = (e, r) => "Found multiple elements with the alt text: " + r, Gm = (e, r) => "Unable to find an element with the alt text: " + r, Ym = te(sn, sn.name, "queryAll"), [Km, Jm, Xm, Qm, Zm] = Ae(sn, Wm, Gm), eb = (e) => {
|
|
@@ -9287,12 +9292,12 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9287
9292
|
normalizer: o
|
|
9288
9293
|
} = t === void 0 ? {} : t;
|
|
9289
9294
|
Re(e);
|
|
9290
|
-
const p = a ? ye : De,
|
|
9295
|
+
const p = a ? ye : De, u = Me({
|
|
9291
9296
|
collapseWhitespace: s,
|
|
9292
9297
|
trim: c,
|
|
9293
9298
|
normalizer: o
|
|
9294
9299
|
});
|
|
9295
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((d) => p(d.getAttribute("title"), d, r,
|
|
9300
|
+
return Array.from(e.querySelectorAll("[title], svg > title")).filter((d) => p(d.getAttribute("title"), d, r, u) || eb(d) && p(Ga(d), d, r, u));
|
|
9296
9301
|
}, rb = (e, r) => "Found multiple elements with the title: " + r + ".", tb = (e, r) => "Unable to find an element with the title: " + r + ".", ab = te(dn, dn.name, "queryAll"), [nb, ob, lb, ib, ub] = Ae(dn, rb, tb), cn = function(e, r, t) {
|
|
9297
9302
|
let {
|
|
9298
9303
|
hidden: a = H().defaultHidden,
|
|
@@ -9300,10 +9305,10 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9300
9305
|
description: c,
|
|
9301
9306
|
queryFallbacks: o = !1,
|
|
9302
9307
|
selected: p,
|
|
9303
|
-
busy:
|
|
9308
|
+
busy: u,
|
|
9304
9309
|
checked: d,
|
|
9305
9310
|
pressed: f,
|
|
9306
|
-
current:
|
|
9311
|
+
current: i,
|
|
9307
9312
|
level: n,
|
|
9308
9313
|
expanded: h,
|
|
9309
9314
|
value: {
|
|
@@ -9318,7 +9323,7 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9318
9323
|
if (((q = re.roles.get(r)) == null ? void 0 : q.props["aria-selected"]) === void 0)
|
|
9319
9324
|
throw new Error('"aria-selected" is not supported on role "' + r + '".');
|
|
9320
9325
|
}
|
|
9321
|
-
if (
|
|
9326
|
+
if (u !== void 0) {
|
|
9322
9327
|
var C;
|
|
9323
9328
|
if (((C = re.roles.get(r)) == null ? void 0 : C.props["aria-busy"]) === void 0)
|
|
9324
9329
|
throw new Error('"aria-busy" is not supported on role "' + r + '".');
|
|
@@ -9333,7 +9338,7 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9333
9338
|
if (((P = re.roles.get(r)) == null ? void 0 : P.props["aria-pressed"]) === void 0)
|
|
9334
9339
|
throw new Error('"aria-pressed" is not supported on role "' + r + '".');
|
|
9335
9340
|
}
|
|
9336
|
-
if (
|
|
9341
|
+
if (i !== void 0) {
|
|
9337
9342
|
var b;
|
|
9338
9343
|
if (((b = re.roles.get(r)) == null ? void 0 : b.props["aria-current"]) === void 0)
|
|
9339
9344
|
throw new Error('"aria-current" is not supported on role "' + r + '".');
|
|
@@ -9384,14 +9389,14 @@ const Eu = (e, r) => "Found multiple elements with the text of: " + r, bm = Se(H
|
|
|
9384
9389
|
}).filter((A) => {
|
|
9385
9390
|
if (p !== void 0)
|
|
9386
9391
|
return p === Jp(A);
|
|
9387
|
-
if (
|
|
9388
|
-
return
|
|
9392
|
+
if (u !== void 0)
|
|
9393
|
+
return u === Xp(A);
|
|
9389
9394
|
if (d !== void 0)
|
|
9390
9395
|
return d === Qp(A);
|
|
9391
9396
|
if (f !== void 0)
|
|
9392
9397
|
return f === Zp(A);
|
|
9393
|
-
if (
|
|
9394
|
-
return
|
|
9398
|
+
if (i !== void 0)
|
|
9399
|
+
return i === em(A);
|
|
9395
9400
|
if (h !== void 0)
|
|
9396
9401
|
return h === rm(A);
|
|
9397
9402
|
if (n !== void 0)
|
|
@@ -9455,11 +9460,11 @@ Here are the ` + (a === !1 ? "accessible" : "available") + ` roles:
|
|
|
9455
9460
|
|
|
9456
9461
|
`) + `
|
|
9457
9462
|
`).trim();
|
|
9458
|
-
let
|
|
9459
|
-
s === void 0 ?
|
|
9463
|
+
let u = "";
|
|
9464
|
+
s === void 0 ? u = "" : typeof s == "string" ? u = ' and name "' + s + '"' : u = " and name `" + s + "`";
|
|
9460
9465
|
let d = "";
|
|
9461
9466
|
return c === void 0 ? d = "" : typeof c == "string" ? d = ' and description "' + c + '"' : d = " and description `" + c + "`", (`
|
|
9462
|
-
Unable to find an ` + (a === !1 ? "accessible " : "") + 'element with the role "' + r + '"' +
|
|
9467
|
+
Unable to find an ` + (a === !1 ? "accessible " : "") + 'element with the role "' + r + '"' + u + d + `
|
|
9463
9468
|
|
|
9464
9469
|
` + p).trim();
|
|
9465
9470
|
}, fb = te(cn, cn.name, "queryAll"), [pb, mb, bb, vb, hb] = Ae(cn, db, cb), _n = () => H().testIdAttribute, fn = function() {
|
|
@@ -10250,20 +10255,20 @@ function tn(e, r, t, a) {
|
|
|
10250
10255
|
}, {
|
|
10251
10256
|
target: {
|
|
10252
10257
|
value: p,
|
|
10253
|
-
files:
|
|
10258
|
+
files: u,
|
|
10254
10259
|
...d
|
|
10255
10260
|
} = {}
|
|
10256
10261
|
} = o;
|
|
10257
|
-
p !== void 0 && wb(r, p),
|
|
10262
|
+
p !== void 0 && wb(r, p), u !== void 0 && Object.defineProperty(r, "files", {
|
|
10258
10263
|
configurable: !0,
|
|
10259
10264
|
enumerable: !0,
|
|
10260
10265
|
writable: !0,
|
|
10261
|
-
value:
|
|
10266
|
+
value: u
|
|
10262
10267
|
}), Object.assign(r, d);
|
|
10263
|
-
const f = pu(r),
|
|
10268
|
+
const f = pu(r), i = f[s] || f.Event;
|
|
10264
10269
|
let n;
|
|
10265
|
-
if (typeof
|
|
10266
|
-
n = new
|
|
10270
|
+
if (typeof i == "function")
|
|
10271
|
+
n = new i(e, o);
|
|
10267
10272
|
else {
|
|
10268
10273
|
n = f.document.createEvent(s);
|
|
10269
10274
|
const {
|
|
@@ -10378,10 +10383,10 @@ function Ib(e) {
|
|
|
10378
10383
|
const c = s;
|
|
10379
10384
|
return {
|
|
10380
10385
|
then: (o, p) => {
|
|
10381
|
-
c.then((
|
|
10382
|
-
ve(t), o(
|
|
10383
|
-
}, (
|
|
10384
|
-
ve(t), p(
|
|
10386
|
+
c.then((u) => {
|
|
10387
|
+
ve(t), o(u);
|
|
10388
|
+
}, (u) => {
|
|
10389
|
+
ve(t), p(u);
|
|
10385
10390
|
});
|
|
10386
10391
|
}
|
|
10387
10392
|
};
|
|
@@ -10467,8 +10472,8 @@ function Bb(e, {
|
|
|
10467
10472
|
if (!r)
|
|
10468
10473
|
throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.");
|
|
10469
10474
|
},
|
|
10470
|
-
render(
|
|
10471
|
-
p.render(
|
|
10475
|
+
render(u) {
|
|
10476
|
+
p.render(u);
|
|
10472
10477
|
},
|
|
10473
10478
|
unmount() {
|
|
10474
10479
|
p.unmount();
|
|
@@ -10502,20 +10507,20 @@ function Tu(e, {
|
|
|
10502
10507
|
}), {
|
|
10503
10508
|
container: t,
|
|
10504
10509
|
baseElement: r,
|
|
10505
|
-
debug: (
|
|
10510
|
+
debug: (u = r, d, f) => Array.isArray(u) ? (
|
|
10506
10511
|
// eslint-disable-next-line no-console
|
|
10507
|
-
|
|
10512
|
+
u.forEach((i) => console.log(Ie(i, d, f)))
|
|
10508
10513
|
) : (
|
|
10509
10514
|
// eslint-disable-next-line no-console,
|
|
10510
|
-
console.log(Ie(
|
|
10515
|
+
console.log(Ie(u, d, f))
|
|
10511
10516
|
),
|
|
10512
10517
|
unmount: () => {
|
|
10513
10518
|
Ne(() => {
|
|
10514
10519
|
c.unmount();
|
|
10515
10520
|
});
|
|
10516
10521
|
},
|
|
10517
|
-
rerender: (
|
|
10518
|
-
Tu(
|
|
10522
|
+
rerender: (u) => {
|
|
10523
|
+
Tu(u, {
|
|
10519
10524
|
container: t,
|
|
10520
10525
|
baseElement: r,
|
|
10521
10526
|
root: c,
|
|
@@ -10527,8 +10532,8 @@ function Tu(e, {
|
|
|
10527
10532
|
if (typeof document.createRange == "function")
|
|
10528
10533
|
return document.createRange().createContextualFragment(t.innerHTML);
|
|
10529
10534
|
{
|
|
10530
|
-
const
|
|
10531
|
-
return
|
|
10535
|
+
const u = document.createElement("template");
|
|
10536
|
+
return u.innerHTML = t.innerHTML, u.content;
|
|
10532
10537
|
}
|
|
10533
10538
|
},
|
|
10534
10539
|
...wu(r, s)
|
|
@@ -10542,7 +10547,7 @@ function Ou(e, {
|
|
|
10542
10547
|
onUncaughtError: c,
|
|
10543
10548
|
onRecoverableError: o,
|
|
10544
10549
|
queries: p,
|
|
10545
|
-
hydrate:
|
|
10550
|
+
hydrate: u = !1,
|
|
10546
10551
|
wrapper: d,
|
|
10547
10552
|
reactStrictMode: f
|
|
10548
10553
|
} = {}) {
|
|
@@ -10553,11 +10558,11 @@ function Ou(e, {
|
|
|
10553
10558
|
throw Error.captureStackTrace(n, Ou), n;
|
|
10554
10559
|
}
|
|
10555
10560
|
t || (t = document.body), r || (r = t.appendChild(document.createElement("div")));
|
|
10556
|
-
let
|
|
10561
|
+
let i;
|
|
10557
10562
|
return mn.has(r) ? Va.forEach((n) => {
|
|
10558
|
-
n.container === r && (
|
|
10559
|
-
}) : (
|
|
10560
|
-
hydrate:
|
|
10563
|
+
n.container === r && (i = n.root);
|
|
10564
|
+
}) : (i = (a ? kb : Bb)(r, {
|
|
10565
|
+
hydrate: u,
|
|
10561
10566
|
onCaughtError: s,
|
|
10562
10567
|
onRecoverableError: o,
|
|
10563
10568
|
ui: e,
|
|
@@ -10565,14 +10570,14 @@ function Ou(e, {
|
|
|
10565
10570
|
reactStrictMode: f
|
|
10566
10571
|
}), Va.push({
|
|
10567
10572
|
container: r,
|
|
10568
|
-
root:
|
|
10573
|
+
root: i
|
|
10569
10574
|
}), mn.add(r)), Tu(e, {
|
|
10570
10575
|
container: r,
|
|
10571
10576
|
baseElement: t,
|
|
10572
10577
|
queries: p,
|
|
10573
|
-
hydrate:
|
|
10578
|
+
hydrate: u,
|
|
10574
10579
|
wrapper: d,
|
|
10575
|
-
root:
|
|
10580
|
+
root: i,
|
|
10576
10581
|
reactStrictMode: f
|
|
10577
10582
|
});
|
|
10578
10583
|
}
|
|
@@ -10607,10 +10612,10 @@ function Xb(e, r = {}) {
|
|
|
10607
10612
|
apiBaseUrl: c,
|
|
10608
10613
|
authHeaders: o,
|
|
10609
10614
|
defaultTheme: p,
|
|
10610
|
-
timeout:
|
|
10615
|
+
timeout: u,
|
|
10611
10616
|
injectBridgeProp: d = !0,
|
|
10612
10617
|
...f
|
|
10613
|
-
} = r,
|
|
10618
|
+
} = r, i = d && ss(e) && typeof e.type != "string" && !e.props.bridge ? ds(e, { bridge: a }) : e, n = Ou(
|
|
10614
10619
|
/* @__PURE__ */ Ba(
|
|
10615
10620
|
Es,
|
|
10616
10621
|
{
|
|
@@ -10619,8 +10624,8 @@ function Xb(e, r = {}) {
|
|
|
10619
10624
|
apiBaseUrl: c,
|
|
10620
10625
|
authHeaders: o,
|
|
10621
10626
|
defaultTheme: p,
|
|
10622
|
-
timeout:
|
|
10623
|
-
children:
|
|
10627
|
+
timeout: u,
|
|
10628
|
+
children: i
|
|
10624
10629
|
}
|
|
10625
10630
|
),
|
|
10626
10631
|
f
|
|
@@ -10661,8 +10666,8 @@ function Qb(e = {}) {
|
|
|
10661
10666
|
},
|
|
10662
10667
|
remove(o) {
|
|
10663
10668
|
var d;
|
|
10664
|
-
const p = t.sessions.filter((f) => f.id !== o),
|
|
10665
|
-
s({ sessions: p, activeId:
|
|
10669
|
+
const p = t.sessions.filter((f) => f.id !== o), u = t.activeId === o ? ((d = p[0]) == null ? void 0 : d.id) ?? "" : t.activeId;
|
|
10670
|
+
s({ sessions: p, activeId: u });
|
|
10666
10671
|
}
|
|
10667
10672
|
};
|
|
10668
10673
|
}
|
|
@@ -10723,8 +10728,8 @@ function ev(e = {}) {
|
|
|
10723
10728
|
},
|
|
10724
10729
|
remove(o) {
|
|
10725
10730
|
var d;
|
|
10726
|
-
const p = a.sessions.filter((f) => f.id !== o),
|
|
10727
|
-
c({ sessions: p, activeId:
|
|
10731
|
+
const p = a.sessions.filter((f) => f.id !== o), u = a.activeId === o ? ((d = p[0]) == null ? void 0 : d.id) ?? "" : a.activeId;
|
|
10732
|
+
c({ sessions: p, activeId: u });
|
|
10728
10733
|
}
|
|
10729
10734
|
};
|
|
10730
10735
|
}
|