@uva-glass/component-library
Version:
React components UvA
1,657 lines • 124 kB
JavaScript
import * as Ie from "react";
import { a as Lr } from "./test-utils-B2AIdiiO.js";
import je from "react-dom";
import { c as It } from "./client-CTOhtEms.js";
import { l as K } from "./index-dmBn99rF.js";
import { g as Dr } from "./_commonjsHelpers-DaMA6jEr.js";
var X = {}, ke = { exports: {} };
ke.exports;
var xt;
function tr() {
return xt || (xt = 1, function(e) {
const r = (f = 0) => (u) => `\x1B[${38 + f};5;${u}m`, a = (f = 0) => (u, p, n) => `\x1B[${38 + f};2;${u};${p};${n}m`;
function s() {
const f = /* @__PURE__ */ new Map(), u = {
modifier: {
reset: [0, 0],
// 21 isn't widely supported and 22 does the same thing
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
overline: [53, 55],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29]
},
color: {
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
// Bright color
blackBright: [90, 39],
redBright: [91, 39],
greenBright: [92, 39],
yellowBright: [93, 39],
blueBright: [94, 39],
magentaBright: [95, 39],
cyanBright: [96, 39],
whiteBright: [97, 39]
},
bgColor: {
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
// Bright color
bgBlackBright: [100, 49],
bgRedBright: [101, 49],
bgGreenBright: [102, 49],
bgYellowBright: [103, 49],
bgBlueBright: [104, 49],
bgMagentaBright: [105, 49],
bgCyanBright: [106, 49],
bgWhiteBright: [107, 49]
}
};
u.color.gray = u.color.blackBright, u.bgColor.bgGray = u.bgColor.bgBlackBright, u.color.grey = u.color.blackBright, u.bgColor.bgGrey = u.bgColor.bgBlackBright;
for (const [p, n] of Object.entries(u)) {
for (const [o, l] of Object.entries(n))
u[o] = {
open: `\x1B[${l[0]}m`,
close: `\x1B[${l[1]}m`
}, n[o] = u[o], f.set(l[0], l[1]);
Object.defineProperty(u, p, {
value: n,
enumerable: !1
});
}
return Object.defineProperty(u, "codes", {
value: f,
enumerable: !1
}), u.color.close = "\x1B[39m", u.bgColor.close = "\x1B[49m", u.color.ansi256 = r(), u.color.ansi16m = a(), u.bgColor.ansi256 = r(10), u.bgColor.ansi16m = a(10), Object.defineProperties(u, {
rgbToAnsi256: {
value: (p, n, o) => p === n && n === o ? p < 8 ? 16 : p > 248 ? 231 : Math.round((p - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(p / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(o / 255 * 5),
enumerable: !1
},
hexToRgb: {
value: (p) => {
const n = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(p.toString(16));
if (!n)
return [0, 0, 0];
let { colorString: o } = n.groups;
o.length === 3 && (o = o.split("").map((i) => i + i).join(""));
const l = Number.parseInt(o, 16);
return [
l >> 16 & 255,
l >> 8 & 255,
l & 255
];
},
enumerable: !1
},
hexToAnsi256: {
value: (p) => u.rgbToAnsi256(...u.hexToRgb(p)),
enumerable: !1
}
}), u;
}
Object.defineProperty(e, "exports", {
enumerable: !0,
get: s
});
}(ke)), ke.exports;
}
var be = {}, Ot;
function He() {
if (Ot) return be;
Ot = 1, Object.defineProperty(be, "__esModule", {
value: !0
}), be.printIteratorEntries = t, be.printIteratorValues = r, be.printListItems = a, be.printObjectProperties = s;
const e = (f, u) => {
const p = Object.keys(f).sort(u);
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(f).forEach((n) => {
Object.getOwnPropertyDescriptor(f, n).enumerable && p.push(n);
}), p;
};
function t(f, u, p, n, o, l, i = ": ") {
let d = "", m = f.next();
if (!m.done) {
d += u.spacingOuter;
const E = p + u.indent;
for (; !m.done; ) {
const h = l(
m.value[0],
u,
E,
n,
o
), w = l(
m.value[1],
u,
E,
n,
o
);
d += E + h + i + w, m = f.next(), m.done ? u.min || (d += ",") : d += "," + u.spacingInner;
}
d += u.spacingOuter + p;
}
return d;
}
function r(f, u, p, n, o, l) {
let i = "", d = f.next();
if (!d.done) {
i += u.spacingOuter;
const m = p + u.indent;
for (; !d.done; )
i += m + l(d.value, u, m, n, o), d = f.next(), d.done ? u.min || (i += ",") : i += "," + u.spacingInner;
i += u.spacingOuter + p;
}
return i;
}
function a(f, u, p, n, o, l) {
let i = "";
if (f.length) {
i += u.spacingOuter;
const d = p + u.indent;
for (let m = 0; m < f.length; m++)
i += d, m in f && (i += l(f[m], u, d, n, o)), m < f.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
i += u.spacingOuter + p;
}
return i;
}
function s(f, u, p, n, o, l) {
let i = "";
const d = e(f, u.compareKeys);
if (d.length) {
i += u.spacingOuter;
const m = p + u.indent;
for (let E = 0; E < d.length; E++) {
const h = d[E], w = l(h, u, m, n, o), c = l(f[h], u, m, n, o);
i += m + w + ": " + c, E < d.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
}
i += u.spacingOuter + p;
}
return i;
}
return be;
}
var ee = {}, Mt;
function qr() {
if (Mt) return ee;
Mt = 1, Object.defineProperty(ee, "__esModule", {
value: !0
}), ee.test = ee.serialize = ee.default = void 0;
var e = He(), t = function() {
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
}(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
const a = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, s = " ", f = (o, l, i, d, m, E) => {
const h = o.toString();
return h === "ArrayContaining" || h === "ArrayNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "[" + (0, e.printListItems)(
o.sample,
l,
i,
d,
m,
E
) + "]" : h === "ObjectContaining" || h === "ObjectNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "{" + (0, e.printObjectProperties)(
o.sample,
l,
i,
d,
m,
E
) + "}" : h === "StringMatching" || h === "StringNotMatching" || h === "StringContaining" || h === "StringNotContaining" ? h + s + E(o.sample, l, i, d, m) : o.toAsymmetricMatcher();
};
ee.serialize = f;
const u = (o) => o && o.$$typeof === a;
ee.test = u;
var n = {
serialize: f,
test: u
};
return ee.default = n, ee;
}
var te = {}, Ze, Ct;
function jr() {
return Ct || (Ct = 1, Ze = ({ onlyFirst: e = !1 } = {}) => {
const t = [
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
].join("|");
return new RegExp(t, e ? void 0 : "g");
}), Ze;
}
var _t;
function kr() {
if (_t) return te;
_t = 1, Object.defineProperty(te, "__esModule", {
value: !0
}), te.test = te.serialize = te.default = void 0;
var e = r(jr()), t = r(tr());
function r(n) {
return n && n.__esModule ? n : { default: n };
}
const a = (n) => n.replace((0, e.default)(), (o) => {
switch (o) {
case t.default.red.close:
case t.default.green.close:
case t.default.cyan.close:
case t.default.gray.close:
case t.default.white.close:
case t.default.yellow.close:
case t.default.bgRed.close:
case t.default.bgGreen.close:
case t.default.bgYellow.close:
case t.default.inverse.close:
case t.default.dim.close:
case t.default.bold.close:
case t.default.reset.open:
case t.default.reset.close:
return "</>";
case t.default.red.open:
return "<red>";
case t.default.green.open:
return "<green>";
case t.default.cyan.open:
return "<cyan>";
case t.default.gray.open:
return "<gray>";
case t.default.white.open:
return "<white>";
case t.default.yellow.open:
return "<yellow>";
case t.default.bgRed.open:
return "<bgRed>";
case t.default.bgGreen.open:
return "<bgGreen>";
case t.default.bgYellow.open:
return "<bgYellow>";
case t.default.inverse.open:
return "<inverse>";
case t.default.dim.open:
return "<dim>";
case t.default.bold.open:
return "<bold>";
default:
return "";
}
}), s = (n) => typeof n == "string" && !!n.match((0, e.default)());
te.test = s;
const f = (n, o, l, i, d, m) => m(a(n), o, l, i, d);
te.serialize = f;
var p = {
serialize: f,
test: s
};
return te.default = p, te;
}
var re = {}, Rt;
function Fr() {
if (Rt) return re;
Rt = 1, Object.defineProperty(re, "__esModule", {
value: !0
}), re.test = re.serialize = re.default = void 0;
var e = He();
const t = " ", r = ["DOMStringMap", "NamedNodeMap"], a = /^(HTML\w*Collection|NodeList)$/, s = (l) => r.indexOf(l) !== -1 || a.test(l), f = (l) => l && l.constructor && !!l.constructor.name && s(l.constructor.name);
re.test = f;
const u = (l) => l.constructor.name === "NamedNodeMap", p = (l, i, d, m, E, h) => {
const w = l.constructor.name;
return ++m > i.maxDepth ? "[" + w + "]" : (i.min ? "" : w + t) + (r.indexOf(w) !== -1 ? "{" + (0, e.printObjectProperties)(
u(l) ? Array.from(l).reduce((c, A) => (c[A.name] = A.value, c), {}) : { ...l },
i,
d,
m,
E,
h
) + "}" : "[" + (0, e.printListItems)(
Array.from(l),
i,
d,
m,
E,
h
) + "]");
};
re.serialize = p;
var o = {
serialize: p,
test: f
};
return re.default = o, re;
}
var ne = {}, H = {}, Le = {}, Bt;
function $r() {
if (Bt) return Le;
Bt = 1, Object.defineProperty(Le, "__esModule", {
value: !0
}), Le.default = e;
function e(t) {
return t.replace(/</g, "<").replace(/>/g, ">");
}
return Le;
}
var Nt;
function gt() {
if (Nt) return H;
Nt = 1, Object.defineProperty(H, "__esModule", {
value: !0
}), H.printText = H.printProps = H.printElementAsLeaf = H.printElement = H.printComment = H.printChildren = void 0;
var e = t($r());
function t(n) {
return n && n.__esModule ? n : { default: n };
}
const r = (n, o, l, i, d, m, E) => {
const h = i + l.indent, w = l.colors;
return n.map((c) => {
const A = o[c];
let I = E(A, l, h, d, m);
return typeof A != "string" && (I.indexOf(`
`) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open + c + w.prop.close + "=" + w.value.open + I + w.value.close;
}).join("");
};
H.printProps = r;
const a = (n, o, l, i, d, m) => n.map(
(E) => o.spacingOuter + l + (typeof E == "string" ? s(E, o) : m(E, o, l, i, d))
).join("");
H.printChildren = a;
const s = (n, o) => {
const l = o.colors.content;
return l.open + (0, e.default)(n) + l.close;
};
H.printText = s;
const f = (n, o) => {
const l = o.colors.comment;
return l.open + "<!--" + (0, e.default)(n) + "-->" + l.close;
};
H.printComment = f;
const u = (n, o, l, i, d) => {
const m = i.colors.tag;
return m.open + "<" + n + (o && m.close + o + i.spacingOuter + d + m.open) + (l ? ">" + m.close + l + i.spacingOuter + d + m.open + "</" + n : (o && !i.min ? "" : " ") + "/") + ">" + m.close;
};
H.printElement = u;
const p = (n, o) => {
const l = o.colors.tag;
return l.open + "<" + n + l.close + " …" + l.open + " />" + l.close;
};
return H.printElementAsLeaf = p, H;
}
var Pt;
function zr() {
if (Pt) return ne;
Pt = 1, Object.defineProperty(ne, "__esModule", {
value: !0
}), ne.test = ne.serialize = ne.default = void 0;
var e = gt();
const t = 1, r = 3, a = 8, s = 11, f = /^((HTML|SVG)\w*)?Element$/, u = (h) => {
try {
return typeof h.hasAttribute == "function" && h.hasAttribute("is");
} catch {
return !1;
}
}, p = (h) => {
const w = h.constructor.name, { nodeType: c, tagName: A } = h, I = typeof A == "string" && A.includes("-") || u(h);
return c === t && (f.test(w) || I) || c === r && w === "Text" || c === a && w === "Comment" || c === s && w === "DocumentFragment";
}, n = (h) => {
var w;
return (h == null || (w = h.constructor) === null || w === void 0 ? void 0 : w.name) && p(h);
};
ne.test = n;
function o(h) {
return h.nodeType === r;
}
function l(h) {
return h.nodeType === a;
}
function i(h) {
return h.nodeType === s;
}
const d = (h, w, c, A, I, x) => {
if (o(h))
return (0, e.printText)(h.data, w);
if (l(h))
return (0, e.printComment)(h.data, w);
const M = i(h) ? "DocumentFragment" : h.tagName.toLowerCase();
return ++A > w.maxDepth ? (0, e.printElementAsLeaf)(M, w) : (0, e.printElement)(
M,
(0, e.printProps)(
i(h) ? [] : Array.from(h.attributes).map((y) => y.name).sort(),
i(h) ? {} : Array.from(h.attributes).reduce((y, g) => (y[g.name] = g.value, y), {}),
w,
c + w.indent,
A,
I,
x
),
(0, e.printChildren)(
Array.prototype.slice.call(h.childNodes || h.children),
w,
c + w.indent,
A,
I,
x
),
w,
c
);
};
ne.serialize = d;
var E = {
serialize: d,
test: n
};
return ne.default = E, ne;
}
var ie = {}, Lt;
function Ur() {
if (Lt) return ie;
Lt = 1, Object.defineProperty(ie, "__esModule", {
value: !0
}), ie.test = ie.serialize = ie.default = void 0;
var e = He();
const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@", a = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", f = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", n = "@@__IMMUTABLE_SET__@@", o = "@@__IMMUTABLE_STACK__@@", l = (g) => "Immutable." + g, i = (g) => "[" + g + "]", d = " ", m = "…", E = (g, v, _, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "{" + (0, e.printIteratorEntries)(
g.entries(),
v,
_,
R,
B,
N
) + "}";
function h(g) {
let v = 0;
return {
next() {
if (v < g._keys.length) {
const _ = g._keys[v++];
return {
done: !1,
value: [_, g.get(_)]
};
}
return {
done: !0,
value: void 0
};
}
};
}
const w = (g, v, _, R, B, N) => {
const S = l(g._name || "Record");
return ++R > v.maxDepth ? i(S) : S + d + "{" + (0, e.printIteratorEntries)(
h(g),
v,
_,
R,
B,
N
) + "}";
}, c = (g, v, _, R, B, N) => {
const S = l("Seq");
return ++R > v.maxDepth ? i(S) : g[a] ? S + d + "{" + // from Immutable collection of entries or from ECMAScript object
(g._iter || g._object ? (0, e.printIteratorEntries)(
g.entries(),
v,
_,
R,
B,
N
) : m) + "}" : S + d + "[" + (g._iter || // from Immutable collection of values
g._array || // from ECMAScript array
g._collection || // from ECMAScript collection in immutable v4
g._iterable ? (0, e.printIteratorValues)(
g.values(),
v,
_,
R,
B,
N
) : m) + "]";
}, A = (g, v, _, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "[" + (0, e.printIteratorValues)(
g.values(),
v,
_,
R,
B,
N
) + "]", I = (g, v, _, R, B, N) => g[s] ? E(
g,
v,
_,
R,
B,
N,
g[f] ? "OrderedMap" : "Map"
) : g[r] ? A(
g,
v,
_,
R,
B,
N,
"List"
) : g[n] ? A(
g,
v,
_,
R,
B,
N,
g[f] ? "OrderedSet" : "Set"
) : g[o] ? A(
g,
v,
_,
R,
B,
N,
"Stack"
) : g[p] ? c(g, v, _, R, B, N) : w(g, v, _, R, B, N);
ie.serialize = I;
const x = (g) => g && (g[t] === !0 || g[u] === !0);
ie.test = x;
var y = {
serialize: I,
test: x
};
return ie.default = y, ie;
}
var oe = {}, De = { exports: {} }, D = {};
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Dt;
function Wr() {
if (Dt) return D;
Dt = 1;
var e = 60103, t = 60106, r = 60107, a = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, o = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var c = Symbol.for;
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), a = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), o = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), h = c("react.debug_trace_mode"), w = c("react.legacy_hidden");
}
function A(S) {
if (typeof S == "object" && S !== null) {
var C = S.$$typeof;
switch (C) {
case e:
switch (S = S.type, S) {
case r:
case s:
case a:
case n:
case o:
return S;
default:
switch (S = S && S.$$typeof, S) {
case u:
case p:
case i:
case l:
case f:
return S;
default:
return C;
}
}
case t:
return C;
}
}
}
var I = f, x = e, M = p, y = r, g = i, v = l, _ = t, R = s, B = a, N = n;
return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal = _, D.Profiler = R, D.StrictMode = B, D.Suspense = N, D.isAsyncMode = function() {
return !1;
}, D.isConcurrentMode = function() {
return !1;
}, D.isContextConsumer = function(S) {
return A(S) === u;
}, D.isContextProvider = function(S) {
return A(S) === f;
}, D.isElement = function(S) {
return typeof S == "object" && S !== null && S.$$typeof === e;
}, D.isForwardRef = function(S) {
return A(S) === p;
}, D.isFragment = function(S) {
return A(S) === r;
}, D.isLazy = function(S) {
return A(S) === i;
}, D.isMemo = function(S) {
return A(S) === l;
}, D.isPortal = function(S) {
return A(S) === t;
}, D.isProfiler = function(S) {
return A(S) === s;
}, D.isStrictMode = function(S) {
return A(S) === a;
}, D.isSuspense = function(S) {
return A(S) === n;
}, D.isValidElementType = function(S) {
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S === a || S === n || S === o || S === w || typeof S == "object" && S !== null && (S.$$typeof === i || S.$$typeof === l || S.$$typeof === f || S.$$typeof === u || S.$$typeof === p || S.$$typeof === E || S.$$typeof === d || S[0] === m);
}, D.typeOf = A, D;
}
var q = {};
/** @license React v17.0.2
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var qt;
function Vr() {
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
var e = 60103, t = 60106, r = 60107, a = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, o = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var c = Symbol.for;
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), a = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), o = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), c("react.scope"), c("react.opaque.id"), h = c("react.debug_trace_mode"), c("react.offscreen"), w = c("react.legacy_hidden");
}
var A = !1;
function I(T) {
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T === a || T === n || T === o || T === w || A || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === l || T.$$typeof === f || T.$$typeof === u || T.$$typeof === p || T.$$typeof === E || T.$$typeof === d || T[0] === m));
}
function x(T) {
if (typeof T == "object" && T !== null) {
var L = T.$$typeof;
switch (L) {
case e:
var P = T.type;
switch (P) {
case r:
case s:
case a:
case n:
case o:
return P;
default:
var U = P && P.$$typeof;
switch (U) {
case u:
case p:
case i:
case l:
case f:
return U;
default:
return L;
}
}
case t:
return L;
}
}
}
var M = u, y = f, g = e, v = p, _ = r, R = i, B = l, N = t, S = s, C = a, W = n, z = !1, k = !1;
function Z(T) {
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function Se(T) {
return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function Ke(T) {
return x(T) === u;
}
function _e(T) {
return x(T) === f;
}
function Re(T) {
return typeof T == "object" && T !== null && T.$$typeof === e;
}
function Be(T) {
return x(T) === p;
}
function Ne(T) {
return x(T) === r;
}
function Je(T) {
return x(T) === i;
}
function Pe(T) {
return x(T) === l;
}
function Qe(T) {
return x(T) === t;
}
function Xe(T) {
return x(T) === s;
}
function b(T) {
return x(T) === a;
}
function O(T) {
return x(T) === n;
}
q.ContextConsumer = M, q.ContextProvider = y, q.Element = g, q.ForwardRef = v, q.Fragment = _, q.Lazy = R, q.Memo = B, q.Portal = N, q.Profiler = S, q.StrictMode = C, q.Suspense = W, q.isAsyncMode = Z, q.isConcurrentMode = Se, q.isContextConsumer = Ke, q.isContextProvider = _e, q.isElement = Re, q.isForwardRef = Be, q.isFragment = Ne, q.isLazy = Je, q.isMemo = Pe, q.isPortal = Qe, q.isProfiler = Xe, q.isStrictMode = b, q.isSuspense = O, q.isValidElementType = I, q.typeOf = x;
}()), q;
}
var jt;
function Hr() {
return jt || (jt = 1, process.env.NODE_ENV === "production" ? De.exports = Wr() : De.exports = Vr()), De.exports;
}
var kt;
function Gr() {
if (kt) return oe;
kt = 1, Object.defineProperty(oe, "__esModule", {
value: !0
}), oe.test = oe.serialize = oe.default = void 0;
var e = a(Hr()), t = gt();
function r(i) {
if (typeof WeakMap != "function") return null;
var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
return (r = function(E) {
return E ? m : d;
})(i);
}
function a(i, d) {
if (i && i.__esModule)
return i;
if (i === null || typeof i != "object" && typeof i != "function")
return { default: i };
var m = r(d);
if (m && m.has(i))
return m.get(i);
var E = {}, h = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var w in i)
if (w !== "default" && Object.prototype.hasOwnProperty.call(i, w)) {
var c = h ? Object.getOwnPropertyDescriptor(i, w) : null;
c && (c.get || c.set) ? Object.defineProperty(E, w, c) : E[w] = i[w];
}
return E.default = i, m && m.set(i, E), E;
}
const s = (i, d = []) => (Array.isArray(i) ? i.forEach((m) => {
s(m, d);
}) : i != null && i !== !1 && d.push(i), d), f = (i) => {
const d = i.type;
if (typeof d == "string")
return d;
if (typeof d == "function")
return d.displayName || d.name || "Unknown";
if (e.isFragment(i))
return "React.Fragment";
if (e.isSuspense(i))
return "React.Suspense";
if (typeof d == "object" && d !== null) {
if (e.isContextProvider(i))
return "Context.Provider";
if (e.isContextConsumer(i))
return "Context.Consumer";
if (e.isForwardRef(i)) {
if (d.displayName)
return d.displayName;
const m = d.render.displayName || d.render.name || "";
return m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef";
}
if (e.isMemo(i)) {
const m = d.displayName || d.type.displayName || d.type.name || "";
return m !== "" ? "Memo(" + m + ")" : "Memo";
}
}
return "UNDEFINED";
}, u = (i) => {
const { props: d } = i;
return Object.keys(d).filter((m) => m !== "children" && d[m] !== void 0).sort();
}, p = (i, d, m, E, h, w) => ++E > d.maxDepth ? (0, t.printElementAsLeaf)(f(i), d) : (0, t.printElement)(
f(i),
(0, t.printProps)(
u(i),
i.props,
d,
m + d.indent,
E,
h,
w
),
(0, t.printChildren)(
s(i.props.children),
d,
m + d.indent,
E,
h,
w
),
d,
m
);
oe.serialize = p;
const n = (i) => i != null && e.isElement(i);
oe.test = n;
var l = {
serialize: p,
test: n
};
return oe.default = l, oe;
}
var ae = {}, Ft;
function Yr() {
if (Ft) return ae;
Ft = 1, Object.defineProperty(ae, "__esModule", {
value: !0
}), ae.test = ae.serialize = ae.default = void 0;
var e = gt(), t = function() {
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
}(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
const a = typeof r == "function" && r.for ? r.for("react.test.json") : 245830487, s = (o) => {
const { props: l } = o;
return l ? Object.keys(l).filter((i) => l[i] !== void 0).sort() : [];
}, f = (o, l, i, d, m, E) => ++d > l.maxDepth ? (0, e.printElementAsLeaf)(o.type, l) : (0, e.printElement)(
o.type,
o.props ? (0, e.printProps)(
s(o),
o.props,
l,
i + l.indent,
d,
m,
E
) : "",
o.children ? (0, e.printChildren)(
o.children,
l,
i + l.indent,
d,
m,
E
) : "",
l,
i
);
ae.serialize = f;
const u = (o) => o && o.$$typeof === a;
ae.test = u;
var n = {
serialize: f,
test: u
};
return ae.default = n, ae;
}
var $t;
function Kr() {
if ($t) return X;
$t = 1, Object.defineProperty(X, "__esModule", {
value: !0
}), X.default = X.DEFAULT_OPTIONS = void 0, X.format = Pe, X.plugins = void 0;
var e = o(tr()), t = He(), r = o(
qr()
), a = o(kr()), s = o(Fr()), f = o(zr()), u = o(Ur()), p = o(Gr()), n = o(
Yr()
);
function o(b) {
return b && b.__esModule ? b : { default: b };
}
const l = Object.prototype.toString, i = Date.prototype.toISOString, d = Error.prototype.toString, m = RegExp.prototype.toString, E = (b) => typeof b.constructor == "function" && b.constructor.name || "Object", h = (b) => typeof window < "u" && b === window, w = /^Symbol\((.*)\)(.*)$/, c = /\n/gi;
class A extends Error {
constructor(O, T) {
super(O), this.stack = T, this.name = this.constructor.name;
}
}
function I(b) {
return b === "[object Array]" || b === "[object ArrayBuffer]" || b === "[object DataView]" || b === "[object Float32Array]" || b === "[object Float64Array]" || b === "[object Int8Array]" || b === "[object Int16Array]" || b === "[object Int32Array]" || b === "[object Uint8Array]" || b === "[object Uint8ClampedArray]" || b === "[object Uint16Array]" || b === "[object Uint32Array]";
}
function x(b) {
return Object.is(b, -0) ? "-0" : String(b);
}
function M(b) {
return `${b}n`;
}
function y(b, O) {
return O ? "[Function " + (b.name || "anonymous") + "]" : "[Function]";
}
function g(b) {
return String(b).replace(w, "Symbol($1)");
}
function v(b) {
return "[" + d.call(b) + "]";
}
function _(b, O, T, L) {
if (b === !0 || b === !1)
return "" + b;
if (b === void 0)
return "undefined";
if (b === null)
return "null";
const P = typeof b;
if (P === "number")
return x(b);
if (P === "bigint")
return M(b);
if (P === "string")
return L ? '"' + b.replace(/"|\\/g, "\\$&") + '"' : '"' + b + '"';
if (P === "function")
return y(b, O);
if (P === "symbol")
return g(b);
const U = l.call(b);
return U === "[object WeakMap]" ? "WeakMap {}" : U === "[object WeakSet]" ? "WeakSet {}" : U === "[object Function]" || U === "[object GeneratorFunction]" ? y(b, O) : U === "[object Symbol]" ? g(b) : U === "[object Date]" ? isNaN(+b) ? "Date { NaN }" : i.call(b) : U === "[object Error]" ? v(b) : U === "[object RegExp]" ? T ? m.call(b).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : m.call(b) : b instanceof Error ? v(b) : null;
}
function R(b, O, T, L, P, U) {
if (P.indexOf(b) !== -1)
return "[Circular]";
P = P.slice(), P.push(b);
const G = ++L > O.maxDepth, Y = O.min;
if (O.callToJSON && !G && b.toJSON && typeof b.toJSON == "function" && !U)
return C(b.toJSON(), O, T, L, P, !0);
const pe = l.call(b);
return pe === "[object Arguments]" ? G ? "[Arguments]" : (Y ? "" : "Arguments ") + "[" + (0, t.printListItems)(
b,
O,
T,
L,
P,
C
) + "]" : I(pe) ? G ? "[" + b.constructor.name + "]" : (Y || !O.printBasicPrototype && b.constructor.name === "Array" ? "" : b.constructor.name + " ") + "[" + (0, t.printListItems)(
b,
O,
T,
L,
P,
C
) + "]" : pe === "[object Map]" ? G ? "[Map]" : "Map {" + (0, t.printIteratorEntries)(
b.entries(),
O,
T,
L,
P,
C,
" => "
) + "}" : pe === "[object Set]" ? G ? "[Set]" : "Set {" + (0, t.printIteratorValues)(
b.values(),
O,
T,
L,
P,
C
) + "}" : G || h(b) ? "[" + E(b) + "]" : (Y || !O.printBasicPrototype && E(b) === "Object" ? "" : E(b) + " ") + "{" + (0, t.printObjectProperties)(
b,
O,
T,
L,
P,
C
) + "}";
}
function B(b) {
return b.serialize != null;
}
function N(b, O, T, L, P, U) {
let G;
try {
G = B(b) ? b.serialize(O, T, L, P, U, C) : b.print(
O,
(Y) => C(Y, T, L, P, U),
(Y) => {
const pe = L + T.indent;
return pe + Y.replace(c, `
` + pe);
},
{
edgeSpacing: T.spacingOuter,
min: T.min,
spacing: T.spacingInner
},
T.colors
);
} catch (Y) {
throw new A(Y.message, Y.stack);
}
if (typeof G != "string")
throw new Error(
`pretty-format: Plugin must return type "string" but instead returned "${typeof G}".`
);
return G;
}
function S(b, O) {
for (let T = 0; T < b.length; T++)
try {
if (b[T].test(O))
return b[T];
} catch (L) {
throw new A(L.message, L.stack);
}
return null;
}
function C(b, O, T, L, P, U) {
const G = S(O.plugins, b);
if (G !== null)
return N(G, b, O, T, L, P);
const Y = _(
b,
O.printFunctionName,
O.escapeRegex,
O.escapeString
);
return Y !== null ? Y : R(
b,
O,
T,
L,
P,
U
);
}
const W = {
comment: "gray",
content: "reset",
prop: "yellow",
tag: "cyan",
value: "green"
}, z = Object.keys(W), k = {
callToJSON: !0,
compareKeys: void 0,
escapeRegex: !1,
escapeString: !0,
highlight: !1,
indent: 2,
maxDepth: 1 / 0,
min: !1,
plugins: [],
printBasicPrototype: !0,
printFunctionName: !0,
theme: W
};
X.DEFAULT_OPTIONS = k;
function Z(b) {
if (Object.keys(b).forEach((O) => {
if (!k.hasOwnProperty(O))
throw new Error(`pretty-format: Unknown option "${O}".`);
}), b.min && b.indent !== void 0 && b.indent !== 0)
throw new Error(
'pretty-format: Options "min" and "indent" cannot be used together.'
);
if (b.theme !== void 0) {
if (b.theme === null)
throw new Error('pretty-format: Option "theme" must not be null.');
if (typeof b.theme != "object")
throw new Error(
`pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`
);
}
}
const Se = (b) => z.reduce((O, T) => {
const L = b.theme && b.theme[T] !== void 0 ? b.theme[T] : W[T], P = L && e.default[L];
if (P && typeof P.close == "string" && typeof P.open == "string")
O[T] = P;
else
throw new Error(
`pretty-format: Option "theme" has a key "${T}" whose value "${L}" is undefined in ansi-styles.`
);
return O;
}, /* @__PURE__ */ Object.create(null)), Ke = () => z.reduce((b, O) => (b[O] = {
close: "",
open: ""
}, b), /* @__PURE__ */ Object.create(null)), _e = (b) => b && b.printFunctionName !== void 0 ? b.printFunctionName : k.printFunctionName, Re = (b) => b && b.escapeRegex !== void 0 ? b.escapeRegex : k.escapeRegex, Be = (b) => b && b.escapeString !== void 0 ? b.escapeString : k.escapeString, Ne = (b) => {
var O;
return {
callToJSON: b && b.callToJSON !== void 0 ? b.callToJSON : k.callToJSON,
colors: b && b.highlight ? Se(b) : Ke(),
compareKeys: b && typeof b.compareKeys == "function" ? b.compareKeys : k.compareKeys,
escapeRegex: Re(b),
escapeString: Be(b),
indent: b && b.min ? "" : Je(
b && b.indent !== void 0 ? b.indent : k.indent
),
maxDepth: b && b.maxDepth !== void 0 ? b.maxDepth : k.maxDepth,
min: b && b.min !== void 0 ? b.min : k.min,
plugins: b && b.plugins !== void 0 ? b.plugins : k.plugins,
printBasicPrototype: (O = b == null ? void 0 : b.printBasicPrototype) !== null && O !== void 0 ? O : !0,
printFunctionName: _e(b),
spacingInner: b && b.min ? " " : `
`,
spacingOuter: b && b.min ? "" : `
`
};
};
function Je(b) {
return new Array(b + 1).join(" ");
}
function Pe(b, O) {
if (O && (Z(O), O.plugins)) {
const L = S(O.plugins, b);
if (L !== null)
return N(L, b, Ne(O), "", 0, []);
}
const T = _(
b,
_e(O),
Re(O),
Be(O)
);
return T !== null ? T : R(b, Ne(O), "", 0, []);
}
const Qe = {
AsymmetricMatcher: r.default,
ConvertAnsi: a.default,
DOMCollection: s.default,
DOMElement: f.default,
Immutable: u.default,
ReactElement: p.default,
ReactTestComponent: n.default
};
X.plugins = Qe;
var Xe = Pe;
return X.default = Xe, X;
}
var rr = Kr(), Jr = Object.prototype.toString;
function Qr(e) {
return typeof e == "function" || Jr.call(e) === "[object Function]";
}
function Xr(e) {
var t = Number(e);
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
}
var Zr = Math.pow(2, 53) - 1;
function en(e) {
var t = Xr(e);
return Math.min(Math.max(t, 0), Zr);
}
function Q(e, t) {
var r = Array, a = Object(e);
if (e == null)
throw new TypeError("Array.from requires an array-like object - not null or undefined");
for (var s = en(a.length), f = Qr(r) ? Object(new r(s)) : new Array(s), u = 0, p; u < s; )
p = a[u], f[u] = p, u += 1;
return f.length = s, f;
}
function xe(e) {
"@babel/helpers - typeof";
return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, xe(e);
}
function tn(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function rn(e, t) {
for (var r = 0; r < t.length; r++) {
var a = t[r];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, nr(a.key), a);
}
}
function nn(e, t, r) {
return t && rn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
}
function on(e, t, r) {
return t = nr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
}
function nr(e) {
var t = an(e, "string");
return xe(t) === "symbol" ? t : String(t);
}
function an(e, t) {
if (xe(e) !== "object" || e === null) return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var a = r.call(e, t);
if (xe(a) !== "object") return a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
var un = /* @__PURE__ */ function() {
function e() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
tn(this, e), on(this, "items", void 0), this.items = t;
}
return nn(e, [{
key: "add",
value: function(r) {
return this.has(r) === !1 && this.items.push(r), this;
}
}, {
key: "clear",
value: function() {
this.items = [];
}
}, {
key: "delete",
value: function(r) {
var a = this.items.length;
return this.items = this.items.filter(function(s) {
return s !== r;
}), a !== this.items.length;
}
}, {
key: "forEach",
value: function(r) {
var a = this;
this.items.forEach(function(s) {
r(s, s, a);
});
}
}, {
key: "has",
value: function(r) {
return this.items.indexOf(r) !== -1;
}
}, {
key: "size",
get: function() {
return this.items.length;
}
}]), e;
}();
const ln = typeof Set > "u" ? Set : un;
function V(e) {
var t;
return (
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
(t = e.localName) !== null && t !== void 0 ? t : (
// eslint-disable-next-line no-restricted-properties -- required for the fallback
e.tagName.toLowerCase()
)
);
}
var sn = {
article: "article",
aside: "complementary",
button: "button",
datalist: "listbox",
dd: "definition",
details: "group",
dialog: "dialog",
dt: "term",
fieldset: "group",
figure: "figure",
// WARNING: Only with an accessible name
form: "form",
footer: "contentinfo",
h1: "heading",
h2: "heading",
h3: "heading",
h4: "heading",
h5: "heading",
h6: "heading",
header: "banner",
hr: "separator",
html: "document",
legend: "legend",
li: "listitem",
math: "math",
main: "main",
menu: "list",
nav: "navigation",
ol: "list",
optgroup: "group",
// WARNING: Only in certain context
option: "option",
output: "status",
progress: "progressbar",
// WARNING: Only with an accessible name
section: "region",
summary: "button",
table: "table",
tbody: "rowgroup",
textarea: "textbox",
tfoot: "rowgroup",
// WARNING: Only in certain context
td: "cell",
th: "columnheader",
thead: "rowgroup",
tr: "row",
ul: "list"
}, cn = {
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
};
function fn(e, t) {
return [
"aria-atomic",
"aria-busy",
"aria-controls",
"aria-current",
"aria-describedby",
"aria-details",
// "disabled",
"aria-dropeffect",
// "errormessage",
"aria-flowto",
"aria-grabbed",
// "haspopup",
"aria-hidden",
// "invalid",
"aria-keyshortcuts",
"aria-label",
"aria-labelledby",
"aria-live",
"aria-owns",
"aria-relevant",
"aria-roledescription"
].some(function(r) {
var a;
return e.hasAttribute(r) && !((a = cn[t]) !== null && a !== void 0 && a.has(r));
});
}
function ir(e, t) {
return fn(e, t);
}
function dn(e) {
var t = bn(e);
if (t === null || t === "presentation") {
var r = pn(e);
if (t !== "presentation" || ir(e, r || ""))
return r;
}
return t;
}
function pn(e) {
var t = sn[V(e)];
if (t !== void 0)
return t;
switch (V(e)) {
case "a":
case "area":
case "link":
if (e.hasAttribute("href"))
return "link";
break;
case "img":
return e.getAttribute("alt") === "" && !ir(e, "img") ? "presentation" : "img";
case "input": {
var r = e, a = r.type;
switch (a) {
case "button":
case "image":
case "reset":
case "submit":
return "button";
case "checkbox":
case "radio":
return a;
case "range":
return "slider";
case "email":
case "tel":
case "text":
case "url":
return e.hasAttribute("list") ? "combobox" : "textbox";
case "search":
return e.hasAttribute("list") ? "combobox" : "searchbox";
case "number":
return "spinbutton";
default:
return null;
}
}
case "select":
return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
}
return null;
}
function bn(e) {
var t = e.getAttribute("role");
if (t !== null) {
var r = t.trim().split(" ")[0];
if (r.length > 0)
return r;
}
return null;
}
function F(e) {
return e !== null && e.nodeType === e.ELEMENT_NODE;
}
function or(e) {
return F(e) && V(e) === "caption";
}
function Fe(e) {
return F(e) && V(e) === "input";
}
function mn(e) {
return F(e) && V(e) === "optgroup";
}
function yn(e) {
return F(e) && V(e) === "select";
}
function gn(e) {
return F(e) && V(e) === "table";
}
function hn(e) {
return F(e) && V(e) === "textarea";
}
function En(e) {
var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView;
if (r === null)
throw new TypeError("no window available");
return r;
}
function vn(e) {
return F(e) && V(e) === "fieldset";
}
function Tn(e) {
return F(e) && V(e) === "legend";
}
function wn(e) {
return F(e) && V(e) === "slot";
}
function An(e) {
return F(e) && e.ownerSVGElement !== void 0;
}
function Sn(e) {
return F(e) && V(e) === "svg";
}
function In(e) {
return An(e) && V(e) === "title";
}
function $e(e, t) {
if (F(e) && e.hasAttribute(t)) {
var r = e.getAttribute(t).split(" "), a = e.getRootNode ? e.getRootNode() : e.ownerDocument;
return r.map(function(s) {
return a.getElementById(s);
}).filter(
function(s) {
return s !== null;
}
// TODO: why does this not narrow?
);
}
return [];
}
function le(e, t) {
return F(e) ? t.indexOf(dn(e)) !== -1 : !1;
}
function xn(e) {
return e.trim().replace(/\s\s+/g, " ");
}
function On(e, t) {
if (!F(e))
return !1;
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
return !0;
var r = t(e);
return r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
}
function Mn(e) {
return le(e, ["button", "combobox", "listbox", "textbox"]) || ar(e, "range");
}
function ar(e, t) {
if (!F(e))
return !1;
switch (t) {
case "range":
return le(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
default:
throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
}
}
function zt(e, t) {
var r = Q(e.querySelectorAll(t));
return $e(e, "aria-owns").forEach(function(a) {
r.push.apply(r, Q(a.querySelectorAll(t)));
}), r;
}
function Cn(e) {
return yn(e) ? e.selectedOptions || zt(e, "[selected]") : zt(e, '[aria-selected="true"]');
}
function _n(e) {
return le(e, ["none", "presentation"]);
}
function Rn(e) {
return or(e);
}
function Bn(e) {
return le(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
}
function Nn(e) {
return !1;
}
function Pn(e) {
return Fe(e) || hn(e) ? e.value : e.textContent || "";
}
function Ut(e) {
var t = e.getPropertyValue("content");
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
}
function ur(e) {
var t = V(e);
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
}
function lr(e) {
if (ur(e))
return e;
var t = null;
return e.childNodes.forEach(function(r) {
if (t === null && F(r)) {
var a = lr(r);
a !== null && (t = a);
}
}), t;
}
function Ln(e) {
if (e.control !== void 0)
return e.control;
var t = e.getAttribute("for");
return t !== null ? e.ownerDocument.getElementById(t) : lr(e);
}
function Dn(e) {
var t = e.labels;
if (t === null)
return t;
if (t !== void 0)
return Q(t);
if (!ur(e))
return null;
var r = e.ownerDocument;
return Q(r.querySelectorAll("label")).filter(function(a) {
return Ln(a) === e;
});
}
function qn(e) {
var t = e.assignedNodes();
return t.length === 0 ? Q(e.childNodes) : t;
}
function sr(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new ln(), a = En(e), s = t.compute, f = s === void 0 ? "name" : s, u = t.computedStyleSupportsPseudoElements, p = u === void 0 ? t.getComputedStyle !== void 0 : u, n = t.getComputedStyle, o = n === void 0 ? a.getComputedStyle.bind(a) : n, l = t.hidden, i = l === void 0 ? !1 : l;
function d(c, A) {
var I = "";
if (F(c) && p) {
var x = o(c, "::before"), M = Ut(x);
I = "".concat(M, " ").concat(I);
}
var y = wn(c) ? qn(c) : Q(c.childNodes).concat($e(c, "aria-owns"));
if (y.forEach(function(_) {
var R = w(_, {
isEmbeddedInLabel: A.isEmbeddedInLabel,
isReferenced: !1,
recursion: !0
}), B = F(_) ? o(_).getPropertyValue("display") : "inline", N = B !== "inline" ? " " : "";
I += "".concat(N).concat(R).concat(N);
}), F(c) && p) {
var g = o(c, "::after"), v = Ut(g);
I = "".concat(I, " ").concat(v);
}
return I.trim();
}
function m(c, A) {
var I = c.getAttributeNode(A);
return I !== null && !r.has(I) && I.value.trim() !== "" ? (r.add(I), I.value) : null;
}
function E(c) {
return F(c) ? m(c, "title") : null;
}
function h(c) {
if (!F(c))
return null;
if (vn(c)) {
r.add(c);
for (var A = Q(c.childNodes), I = 0; I < A.length; I += 1) {
var x = A[I];
if (Tn(x))
return w(x, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (gn(c)) {
r.add(c);
for (var M = Q(c.childNodes), y = 0; y < M.length; y += 1) {
var g = M[y];
if (or(g))
return w(g, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (Sn(c)) {
r.add(c);
for (var v = Q(c.childNodes), _ = 0; _ < v.length; _ += 1) {
var R = v[_];
if (In(R))
return R.textContent;
}
return null;
} else if (V(c) === "img" || V(c) === "area") {
var B = m(c, "alt");
if (B !== null)
return B;
} else if (mn(c)) {
var N = m(c, "label");
if (N !== null)
return N;
}
if (Fe(c) && (c.type === "button" || c.type === "submit" || c.type === "reset")) {
var S = m(c, "value");
if (S !== null)
return S;
if (c.type === "submit")
return "Submit";
if (c.type === "reset")
return "Reset";
}
var C = Dn(c);
if (C !== null && C.length !== 0)
return r.add(c), Q(C).map(function(Z) {
return w(Z, {
isEmbeddedInLabel: !0,
isReferenced: !1,
recursion: !0
});
}).filter(function(Z) {
return Z.length > 0;
}).join(" ");
if (Fe(c) && c.type =