@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
1,385 lines (1,383 loc) • 1.89 MB
JavaScript
import qs, { useState as at, useRef as Lt, useEffect as ft, forwardRef as fn, useCallback as Tn, useImperativeHandle as w6, Component as os, createRef as Ti, createContext as Ql, useContext as Pi, isValidElement as b2, Fragment as jo, cloneElement as pd, useLayoutEffect as Kq, useMemo as Si, createElement as ZO, Children as Z2, useReducer as Jq } from "react";
function Kl(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function Yq(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if (typeof t == "function") {
var n = function r() {
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
n.prototype = t.prototype;
} else n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
var i = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(n, r, i.get ? i : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), n;
}
var aS = { exports: {} }, rb = {};
/**
* @license React
* react-jsx-runtime.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 y7;
function Zq() {
if (y7) return rb;
y7 = 1;
var e = qs, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
function c(p, m, h) {
var b, x = {}, S = null, _ = null;
h !== void 0 && (S = "" + h), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (_ = m.ref);
for (b in m) r.call(m, b) && !s.hasOwnProperty(b) && (x[b] = m[b]);
if (p && p.defaultProps) for (b in m = p.defaultProps, m) x[b] === void 0 && (x[b] = m[b]);
return { $$typeof: t, type: p, key: S, ref: _, props: x, _owner: i.current };
}
return rb.Fragment = n, rb.jsx = c, rb.jsxs = c, rb;
}
var T1 = {};
/**
* @license React
* react-jsx-runtime.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 x7;
function eW() {
return x7 || (x7 = 1, process.env.NODE_ENV !== "production" && function() {
var e = qs, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), C = Symbol.iterator, E = "@@iterator";
function L(oe) {
if (oe === null || typeof oe != "object")
return null;
var Ge = C && oe[C] || oe[E];
return typeof Ge == "function" ? Ge : null;
}
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function A(oe) {
{
for (var Ge = arguments.length, ut = new Array(Ge > 1 ? Ge - 1 : 0), Ht = 1; Ht < Ge; Ht++)
ut[Ht - 1] = arguments[Ht];
z("error", oe, ut);
}
}
function z(oe, Ge, ut) {
{
var Ht = I.ReactDebugCurrentFrame, rn = Ht.getStackAddendum();
rn !== "" && (Ge += "%s", ut = ut.concat([rn]));
var Yt = ut.map(function(mn) {
return String(mn);
});
Yt.unshift("Warning: " + Ge), Function.prototype.apply.call(console[oe], console, Yt);
}
}
var H = !1, B = !1, W = !1, K = !1, $ = !1, Z;
Z = Symbol.for("react.module.reference");
function U(oe) {
return !!(typeof oe == "string" || typeof oe == "function" || oe === r || oe === s || $ || oe === i || oe === h || oe === b || K || oe === _ || H || B || W || typeof oe == "object" && oe !== null && (oe.$$typeof === S || oe.$$typeof === x || oe.$$typeof === c || oe.$$typeof === p || oe.$$typeof === m || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
oe.$$typeof === Z || oe.getModuleId !== void 0));
}
function M(oe, Ge, ut) {
var Ht = oe.displayName;
if (Ht)
return Ht;
var rn = Ge.displayName || Ge.name || "";
return rn !== "" ? ut + "(" + rn + ")" : ut;
}
function q(oe) {
return oe.displayName || "Context";
}
function X(oe) {
if (oe == null)
return null;
if (typeof oe.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof oe == "function")
return oe.displayName || oe.name || null;
if (typeof oe == "string")
return oe;
switch (oe) {
case r:
return "Fragment";
case n:
return "Portal";
case s:
return "Profiler";
case i:
return "StrictMode";
case h:
return "Suspense";
case b:
return "SuspenseList";
}
if (typeof oe == "object")
switch (oe.$$typeof) {
case p:
var Ge = oe;
return q(Ge) + ".Consumer";
case c:
var ut = oe;
return q(ut._context) + ".Provider";
case m:
return M(oe, oe.render, "ForwardRef");
case x:
var Ht = oe.displayName || null;
return Ht !== null ? Ht : X(oe.type) || "Memo";
case S: {
var rn = oe, Yt = rn._payload, mn = rn._init;
try {
return X(mn(Yt));
} catch {
return null;
}
}
}
return null;
}
var G = Object.assign, ne = 0, te, re, J, ae, N, ie, fe;
function D() {
}
D.__reactDisabledLog = !0;
function le() {
{
if (ne === 0) {
te = console.log, re = console.info, J = console.warn, ae = console.error, N = console.group, ie = console.groupCollapsed, fe = console.groupEnd;
var oe = {
configurable: !0,
enumerable: !0,
value: D,
writable: !0
};
Object.defineProperties(console, {
info: oe,
log: oe,
warn: oe,
error: oe,
group: oe,
groupCollapsed: oe,
groupEnd: oe
});
}
ne++;
}
}
function Te() {
{
if (ne--, ne === 0) {
var oe = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: G({}, oe, {
value: te
}),
info: G({}, oe, {
value: re
}),
warn: G({}, oe, {
value: J
}),
error: G({}, oe, {
value: ae
}),
group: G({}, oe, {
value: N
}),
groupCollapsed: G({}, oe, {
value: ie
}),
groupEnd: G({}, oe, {
value: fe
})
});
}
ne < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var me = I.ReactCurrentDispatcher, ve;
function Ie(oe, Ge, ut) {
{
if (ve === void 0)
try {
throw Error();
} catch (rn) {
var Ht = rn.stack.trim().match(/\n( *(at )?)/);
ve = Ht && Ht[1] || "";
}
return `
` + ve + oe;
}
}
var He = !1, Me;
{
var De = typeof WeakMap == "function" ? WeakMap : Map;
Me = new De();
}
function xe(oe, Ge) {
if (!oe || He)
return "";
{
var ut = Me.get(oe);
if (ut !== void 0)
return ut;
}
var Ht;
He = !0;
var rn = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Yt;
Yt = me.current, me.current = null, le();
try {
if (Ge) {
var mn = function() {
throw Error();
};
if (Object.defineProperty(mn.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(mn, []);
} catch (nn) {
Ht = nn;
}
Reflect.construct(oe, [], mn);
} else {
try {
mn.call();
} catch (nn) {
Ht = nn;
}
oe.call(mn.prototype);
}
} else {
try {
throw Error();
} catch (nn) {
Ht = nn;
}
oe();
}
} catch (nn) {
if (nn && Ht && typeof nn.stack == "string") {
for (var pn = nn.stack.split(`
`), Mr = Ht.stack.split(`
`), er = pn.length - 1, ar = Mr.length - 1; er >= 1 && ar >= 0 && pn[er] !== Mr[ar]; )
ar--;
for (; er >= 1 && ar >= 0; er--, ar--)
if (pn[er] !== Mr[ar]) {
if (er !== 1 || ar !== 1)
do
if (er--, ar--, ar < 0 || pn[er] !== Mr[ar]) {
var wa = `
` + pn[er].replace(" at new ", " at ");
return oe.displayName && wa.includes("<anonymous>") && (wa = wa.replace("<anonymous>", oe.displayName)), typeof oe == "function" && Me.set(oe, wa), wa;
}
while (er >= 1 && ar >= 0);
break;
}
}
} finally {
He = !1, me.current = Yt, Te(), Error.prepareStackTrace = rn;
}
var us = oe ? oe.displayName || oe.name : "", ds = us ? Ie(us) : "";
return typeof oe == "function" && Me.set(oe, ds), ds;
}
function Be(oe, Ge, ut) {
return xe(oe, !1);
}
function ct(oe) {
var Ge = oe.prototype;
return !!(Ge && Ge.isReactComponent);
}
function Je(oe, Ge, ut) {
if (oe == null)
return "";
if (typeof oe == "function")
return xe(oe, ct(oe));
if (typeof oe == "string")
return Ie(oe);
switch (oe) {
case h:
return Ie("Suspense");
case b:
return Ie("SuspenseList");
}
if (typeof oe == "object")
switch (oe.$$typeof) {
case m:
return Be(oe.render);
case x:
return Je(oe.type, Ge, ut);
case S: {
var Ht = oe, rn = Ht._payload, Yt = Ht._init;
try {
return Je(Yt(rn), Ge, ut);
} catch {
}
}
}
return "";
}
var Ot = Object.prototype.hasOwnProperty, Ct = {}, mt = I.ReactDebugCurrentFrame;
function tt(oe) {
if (oe) {
var Ge = oe._owner, ut = Je(oe.type, oe._source, Ge ? Ge.type : null);
mt.setExtraStackFrame(ut);
} else
mt.setExtraStackFrame(null);
}
function ke(oe, Ge, ut, Ht, rn) {
{
var Yt = Function.call.bind(Ot);
for (var mn in oe)
if (Yt(oe, mn)) {
var pn = void 0;
try {
if (typeof oe[mn] != "function") {
var Mr = Error((Ht || "React class") + ": " + ut + " type `" + mn + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof oe[mn] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Mr.name = "Invariant Violation", Mr;
}
pn = oe[mn](Ge, mn, Ht, ut, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (er) {
pn = er;
}
pn && !(pn instanceof Error) && (tt(rn), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ht || "React class", ut, mn, typeof pn), tt(null)), pn instanceof Error && !(pn.message in Ct) && (Ct[pn.message] = !0, tt(rn), A("Failed %s type: %s", ut, pn.message), tt(null));
}
}
}
var Ue = Array.isArray;
function Se(oe) {
return Ue(oe);
}
function nt(oe) {
{
var Ge = typeof Symbol == "function" && Symbol.toStringTag, ut = Ge && oe[Symbol.toStringTag] || oe.constructor.name || "Object";
return ut;
}
}
function _e(oe) {
try {
return ze(oe), !1;
} catch {
return !0;
}
}
function ze(oe) {
return "" + oe;
}
function pe(oe) {
if (_e(oe))
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nt(oe)), ze(oe);
}
var je = I.ReactCurrentOwner, rt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Re, Ve;
function yt(oe) {
if (Ot.call(oe, "ref")) {
var Ge = Object.getOwnPropertyDescriptor(oe, "ref").get;
if (Ge && Ge.isReactWarning)
return !1;
}
return oe.ref !== void 0;
}
function Wt(oe) {
if (Ot.call(oe, "key")) {
var Ge = Object.getOwnPropertyDescriptor(oe, "key").get;
if (Ge && Ge.isReactWarning)
return !1;
}
return oe.key !== void 0;
}
function Ye(oe, Ge) {
typeof oe.ref == "string" && je.current;
}
function bt(oe, Ge) {
{
var ut = function() {
Re || (Re = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ge));
};
ut.isReactWarning = !0, Object.defineProperty(oe, "key", {
get: ut,
configurable: !0
});
}
}
function et(oe, Ge) {
{
var ut = function() {
Ve || (Ve = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ge));
};
ut.isReactWarning = !0, Object.defineProperty(oe, "ref", {
get: ut,
configurable: !0
});
}
}
var st = function(oe, Ge, ut, Ht, rn, Yt, mn) {
var pn = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: oe,
key: Ge,
ref: ut,
props: mn,
// Record the component responsible for creating this element.
_owner: Yt
};
return pn._store = {}, Object.defineProperty(pn._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(pn, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Ht
}), Object.defineProperty(pn, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: rn
}), Object.freeze && (Object.freeze(pn.props), Object.freeze(pn)), pn;
};
function Rt(oe, Ge, ut, Ht, rn) {
{
var Yt, mn = {}, pn = null, Mr = null;
ut !== void 0 && (pe(ut), pn = "" + ut), Wt(Ge) && (pe(Ge.key), pn = "" + Ge.key), yt(Ge) && (Mr = Ge.ref, Ye(Ge));
for (Yt in Ge)
Ot.call(Ge, Yt) && !rt.hasOwnProperty(Yt) && (mn[Yt] = Ge[Yt]);
if (oe && oe.defaultProps) {
var er = oe.defaultProps;
for (Yt in er)
mn[Yt] === void 0 && (mn[Yt] = er[Yt]);
}
if (pn || Mr) {
var ar = typeof oe == "function" ? oe.displayName || oe.name || "Unknown" : oe;
pn && bt(mn, ar), Mr && et(mn, ar);
}
return st(oe, pn, Mr, rn, Ht, je.current, mn);
}
}
var Xt = I.ReactCurrentOwner, Rn = I.ReactDebugCurrentFrame;
function xn(oe) {
if (oe) {
var Ge = oe._owner, ut = Je(oe.type, oe._source, Ge ? Ge.type : null);
Rn.setExtraStackFrame(ut);
} else
Rn.setExtraStackFrame(null);
}
var Eo;
Eo = !1;
function Dt(oe) {
return typeof oe == "object" && oe !== null && oe.$$typeof === t;
}
function An() {
{
if (Xt.current) {
var oe = X(Xt.current.type);
if (oe)
return `
Check the render method of \`` + oe + "`.";
}
return "";
}
}
function Po(oe) {
return "";
}
var po = {};
function is(oe) {
{
var Ge = An();
if (!Ge) {
var ut = typeof oe == "string" ? oe : oe.displayName || oe.name;
ut && (Ge = `
Check the top-level render call using <` + ut + ">.");
}
return Ge;
}
}
function Ni(oe, Ge) {
{
if (!oe._store || oe._store.validated || oe.key != null)
return;
oe._store.validated = !0;
var ut = is(Ge);
if (po[ut])
return;
po[ut] = !0;
var Ht = "";
oe && oe._owner && oe._owner !== Xt.current && (Ht = " It was passed a child from " + X(oe._owner.type) + "."), xn(oe), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ut, Ht), xn(null);
}
}
function Li(oe, Ge) {
{
if (typeof oe != "object")
return;
if (Se(oe))
for (var ut = 0; ut < oe.length; ut++) {
var Ht = oe[ut];
Dt(Ht) && Ni(Ht, Ge);
}
else if (Dt(oe))
oe._store && (oe._store.validated = !0);
else if (oe) {
var rn = L(oe);
if (typeof rn == "function" && rn !== oe.entries)
for (var Yt = rn.call(oe), mn; !(mn = Yt.next()).done; )
Dt(mn.value) && Ni(mn.value, Ge);
}
}
}
function ss(oe) {
{
var Ge = oe.type;
if (Ge == null || typeof Ge == "string")
return;
var ut;
if (typeof Ge == "function")
ut = Ge.propTypes;
else if (typeof Ge == "object" && (Ge.$$typeof === m || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
Ge.$$typeof === x))
ut = Ge.propTypes;
else
return;
if (ut) {
var Ht = X(Ge);
ke(ut, oe.props, "prop", Ht, oe);
} else if (Ge.PropTypes !== void 0 && !Eo) {
Eo = !0;
var rn = X(Ge);
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", rn || "Unknown");
}
typeof Ge.getDefaultProps == "function" && !Ge.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ls(oe) {
{
for (var Ge = Object.keys(oe.props), ut = 0; ut < Ge.length; ut++) {
var Ht = Ge[ut];
if (Ht !== "children" && Ht !== "key") {
xn(oe), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ht), xn(null);
break;
}
}
oe.ref !== null && (xn(oe), A("Invalid attribute `ref` supplied to `React.Fragment`."), xn(null));
}
}
var ii = {};
function Ma(oe, Ge, ut, Ht, rn, Yt) {
{
var mn = U(oe);
if (!mn) {
var pn = "";
(oe === void 0 || typeof oe == "object" && oe !== null && Object.keys(oe).length === 0) && (pn += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Mr = Po();
Mr ? pn += Mr : pn += An();
var er;
oe === null ? er = "null" : Se(oe) ? er = "array" : oe !== void 0 && oe.$$typeof === t ? (er = "<" + (X(oe.type) || "Unknown") + " />", pn = " Did you accidentally export a JSX literal instead of a component?") : er = typeof oe, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", er, pn);
}
var ar = Rt(oe, Ge, ut, rn, Yt);
if (ar == null)
return ar;
if (mn) {
var wa = Ge.children;
if (wa !== void 0)
if (Ht)
if (Se(wa)) {
for (var us = 0; us < wa.length; us++)
Li(wa[us], oe);
Object.freeze && Object.freeze(wa);
} else
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Li(wa, oe);
}
if (Ot.call(Ge, "key")) {
var ds = X(oe), nn = Object.keys(Ge).filter(function(yd) {
return yd !== "key";
}), an = nn.length > 0 ? "{key: someKey, " + nn.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!ii[ds + an]) {
var ps = nn.length > 0 ? "{" + nn.join(": ..., ") + ": ...}" : "{}";
A(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, an, ds, ps, ds), ii[ds + an] = !0;
}
}
return oe === r ? ls(ar) : ss(ar), ar;
}
}
function Js(oe, Ge, ut) {
return Ma(oe, Ge, ut, !0);
}
function cs(oe, Ge, ut) {
return Ma(oe, Ge, ut, !1);
}
var Ys = cs, Zs = Js;
T1.Fragment = r, T1.jsx = Ys, T1.jsxs = Zs;
}()), T1;
}
var w7;
function aI() {
return w7 || (w7 = 1, process.env.NODE_ENV === "production" ? aS.exports = Zq() : aS.exports = eW()), aS.exports;
}
var y = aI(), eC = function(e, t) {
return eC = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
n.__proto__ = r;
} || function(n, r) {
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
}, eC(e, t);
};
function oI(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
eC(e, t);
function n() {
this.constructor = e;
}
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
var y2 = function() {
return y2 = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++) {
t = arguments[n];
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
}
return e;
}, y2.apply(this, arguments);
};
function Le(e, t) {
var n = {};
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
return n;
}
function iI(e, t, n, r) {
var i = arguments.length, s = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, c;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(e, t, n, r);
else for (var p = e.length - 1; p >= 0; p--) (c = e[p]) && (s = (i < 3 ? c(s) : i > 3 ? c(t, n, s) : c(t, n)) || s);
return i > 3 && s && Object.defineProperty(t, n, s), s;
}
function sI(e, t) {
return function(n, r) {
t(n, r, e);
};
}
function lI(e, t, n, r, i, s) {
function c(I) {
if (I !== void 0 && typeof I != "function") throw new TypeError("Function expected");
return I;
}
for (var p = r.kind, m = p === "getter" ? "get" : p === "setter" ? "set" : "value", h = !t && e ? r.static ? e : e.prototype : null, b = t || (h ? Object.getOwnPropertyDescriptor(h, r.name) : {}), x, S = !1, _ = n.length - 1; _ >= 0; _--) {
var C = {};
for (var E in r) C[E] = E === "access" ? {} : r[E];
for (var E in r.access) C.access[E] = r.access[E];
C.addInitializer = function(I) {
if (S) throw new TypeError("Cannot add initializers after decoration has completed");
s.push(c(I || null));
};
var L = (0, n[_])(p === "accessor" ? { get: b.get, set: b.set } : b[m], C);
if (p === "accessor") {
if (L === void 0) continue;
if (L === null || typeof L != "object") throw new TypeError("Object expected");
(x = c(L.get)) && (b.get = x), (x = c(L.set)) && (b.set = x), (x = c(L.init)) && i.unshift(x);
} else (x = c(L)) && (p === "field" ? i.unshift(x) : b[m] = x);
}
h && Object.defineProperty(h, r.name, b), S = !0;
}
function cI(e, t, n) {
for (var r = arguments.length > 2, i = 0; i < t.length; i++)
n = r ? t[i].call(e, n) : t[i].call(e);
return r ? n : void 0;
}
function uI(e) {
return typeof e == "symbol" ? e : "".concat(e);
}
function dI(e, t, n) {
return typeof t == "symbol" && (t = t.description ? "[".concat(t.description, "]") : ""), Object.defineProperty(e, "name", { configurable: !0, value: n ? "".concat(n, " ", t) : t });
}
function pI(e, t) {
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
}
function lu(e, t, n, r) {
function i(s) {
return s instanceof n ? s : new n(function(c) {
c(s);
});
}
return new (n || (n = Promise))(function(s, c) {
function p(b) {
try {
h(r.next(b));
} catch (x) {
c(x);
}
}
function m(b) {
try {
h(r.throw(b));
} catch (x) {
c(x);
}
}
function h(b) {
b.done ? s(b.value) : i(b.value).then(p, m);
}
h((r = r.apply(e, t || [])).next());
});
}
function fI(e, t) {
var n = { label: 0, sent: function() {
if (s[0] & 1) throw s[1];
return s[1];
}, trys: [], ops: [] }, r, i, s, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
return c.next = p(0), c.throw = p(1), c.return = p(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
return this;
}), c;
function p(h) {
return function(b) {
return m([h, b]);
};
}
function m(h) {
if (r) throw new TypeError("Generator is already executing.");
for (; c && (c = 0, h[0] && (n = 0)), n; ) try {
if (r = 1, i && (s = h[0] & 2 ? i.return : h[0] ? i.throw || ((s = i.return) && s.call(i), 0) : i.next) && !(s = s.call(i, h[1])).done) return s;
switch (i = 0, s && (h = [h[0] & 2, s.value]), h[0]) {
case 0:
case 1:
s = h;
break;
case 4:
return n.label++, { value: h[1], done: !1 };
case 5:
n.label++, i = h[1], h = [0];
continue;
case 7:
h = n.ops.pop(), n.trys.pop();
continue;
default:
if (s = n.trys, !(s = s.length > 0 && s[s.length - 1]) && (h[0] === 6 || h[0] === 2)) {
n = 0;
continue;
}
if (h[0] === 3 && (!s || h[1] > s[0] && h[1] < s[3])) {
n.label = h[1];
break;
}
if (h[0] === 6 && n.label < s[1]) {
n.label = s[1], s = h;
break;
}
if (s && n.label < s[2]) {
n.label = s[2], n.ops.push(h);
break;
}
s[2] && n.ops.pop(), n.trys.pop();
continue;
}
h = t.call(e, n);
} catch (b) {
h = [6, b], i = 0;
} finally {
r = s = 0;
}
if (h[0] & 5) throw h[1];
return { value: h[0] ? h[1] : void 0, done: !0 };
}
}
var ew = Object.create ? function(e, t, n, r) {
r === void 0 && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
return t[n];
} }), Object.defineProperty(e, r, i);
} : function(e, t, n, r) {
r === void 0 && (r = n), e[r] = t[n];
};
function mI(e, t) {
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && ew(t, e, n);
}
function x2(e) {
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
if (n) return n.call(e);
if (e && typeof e.length == "number") return {
next: function() {
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function _6(e, t) {
var n = typeof Symbol == "function" && e[Symbol.iterator];
if (!n) return e;
var r = n.call(e), i, s = [], c;
try {
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) s.push(i.value);
} catch (p) {
c = { error: p };
} finally {
try {
i && !i.done && (n = r.return) && n.call(r);
} finally {
if (c) throw c.error;
}
}
return s;
}
function hI() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(_6(arguments[t]));
return e;
}
function gI() {
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
for (var r = Array(e), i = 0, t = 0; t < n; t++)
for (var s = arguments[t], c = 0, p = s.length; c < p; c++, i++)
r[i] = s[c];
return r;
}
function vI(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, i = t.length, s; r < i; r++)
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
return e.concat(s || Array.prototype.slice.call(t));
}
function bh(e) {
return this instanceof bh ? (this.v = e, this) : new bh(e);
}
function bI(e, t, n) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var r = n.apply(e, t || []), i, s = [];
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), p("next"), p("throw"), p("return", c), i[Symbol.asyncIterator] = function() {
return this;
}, i;
function c(_) {
return function(C) {
return Promise.resolve(C).then(_, x);
};
}
function p(_, C) {
r[_] && (i[_] = function(E) {
return new Promise(function(L, I) {
s.push([_, E, L, I]) > 1 || m(_, E);
});
}, C && (i[_] = C(i[_])));
}
function m(_, C) {
try {
h(r[_](C));
} catch (E) {
S(s[0][3], E);
}
}
function h(_) {
_.value instanceof bh ? Promise.resolve(_.value.v).then(b, x) : S(s[0][2], _);
}
function b(_) {
m("next", _);
}
function x(_) {
m("throw", _);
}
function S(_, C) {
_(C), s.shift(), s.length && m(s[0][0], s[0][1]);
}
}
function yI(e) {
var t, n;
return t = {}, r("next"), r("throw", function(i) {
throw i;
}), r("return"), t[Symbol.iterator] = function() {
return this;
}, t;
function r(i, s) {
t[i] = e[i] ? function(c) {
return (n = !n) ? { value: bh(e[i](c)), done: !1 } : s ? s(c) : c;
} : s;
}
}
function xI(e) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var t = e[Symbol.asyncIterator], n;
return t ? t.call(e) : (e = typeof x2 == "function" ? x2(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
return this;
}, n);
function r(s) {
n[s] = e[s] && function(c) {
return new Promise(function(p, m) {
c = e[s](c), i(p, m, c.done, c.value);
});
};
}
function i(s, c, p, m) {
Promise.resolve(m).then(function(h) {
s({ value: h, done: p });
}, c);
}
}
function wI(e, t) {
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
}
var tW = Object.create ? function(e, t) {
Object.defineProperty(e, "default", { enumerable: !0, value: t });
} : function(e, t) {
e.default = t;
}, tC = function(e) {
return tC = Object.getOwnPropertyNames || function(t) {
var n = [];
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[n.length] = r);
return n;
}, tC(e);
};
function _I(e) {
if (e && e.__esModule) return e;
var t = {};
if (e != null)
for (var n = tC(e), r = 0; r < n.length; r++) n[r] !== "default" && ew(t, e, n[r]);
return tW(t, e), t;
}
function kI(e) {
return e && e.__esModule ? e : { default: e };
}
function SI(e, t, n, r) {
if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
}
function OI(e, t, n, r, i) {
if (r === "m") throw new TypeError("Private method is not writable");
if (r === "a" && !i) throw new TypeError("Private accessor was defined without a setter");
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
}
function CI(e, t) {
if (t === null || typeof t != "object" && typeof t != "function") throw new TypeError("Cannot use 'in' operator on non-object");
return typeof e == "function" ? t === e : e.has(t);
}
function jI(e, t, n) {
if (t != null) {
if (typeof t != "object" && typeof t != "function") throw new TypeError("Object expected.");
var r, i;
if (n) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
r = t[Symbol.asyncDispose];
}
if (r === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
r = t[Symbol.dispose], n && (i = r);
}
if (typeof r != "function") throw new TypeError("Object not disposable.");
i && (r = function() {
try {
i.call(this);
} catch (s) {
return Promise.reject(s);
}
}), e.stack.push({ value: t, dispose: r, async: n });
} else n && e.stack.push({ async: !0 });
return t;
}
var nW = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
var r = new Error(n);
return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
};
function EI(e) {
function t(s) {
e.error = e.hasError ? new nW(s, e.error, "An error was suppressed during disposal.") : s, e.hasError = !0;
}
var n, r = 0;
function i() {
for (; n = e.stack.pop(); )
try {
if (!n.async && r === 1) return r = 0, e.stack.push(n), Promise.resolve().then(i);
if (n.dispose) {
var s = n.dispose.call(n.value);
if (n.async) return r |= 2, Promise.resolve(s).then(i, function(c) {
return t(c), i();
});
} else r |= 1;
} catch (c) {
t(c);
}
if (r === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();
if (e.hasError) throw e.error;
}
return i();
}
function PI(e, t) {
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(n, r, i, s, c) {
return r ? t ? ".jsx" : ".js" : i && (!s || !c) ? n : i + s + "." + c.toLowerCase() + "js";
}) : e;
}
const rW = {
__extends: oI,
__assign: y2,
__rest: Le,
__decorate: iI,
__param: sI,
__esDecorate: lI,
__runInitializers: cI,
__propKey: uI,
__setFunctionName: dI,
__metadata: pI,
__awaiter: lu,
__generator: fI,
__createBinding: ew,
__exportStar: mI,
__values: x2,
__read: _6,
__spread: hI,
__spreadArrays: gI,
__spreadArray: vI,
__await: bh,
__asyncGenerator: bI,
__asyncDelegator: yI,
__asyncValues: xI,
__makeTemplateObject: wI,
__importStar: _I,
__importDefault: kI,
__classPrivateFieldGet: SI,
__classPrivateFieldSet: OI,
__classPrivateFieldIn: CI,
__addDisposableResource: jI,
__disposeResources: EI,
__rewriteRelativeImportExtension: PI
}, aW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
__addDisposableResource: jI,
get __assign() {
return y2;
},
__asyncDelegator: yI,
__asyncGenerator: bI,
__asyncValues: xI,
__await: bh,
__awaiter: lu,
__classPrivateFieldGet: SI,
__classPrivateFieldIn: CI,
__classPrivateFieldSet: OI,
__createBinding: ew,
__decorate: iI,
__disposeResources: EI,
__esDecorate: lI,
__exportStar: mI,
__extends: oI,
__generator: fI,
__importDefault: kI,
__importStar: _I,
__makeTemplateObject: wI,
__metadata: pI,
__param: sI,
__propKey: uI,
__read: _6,
__rest: Le,
__rewriteRelativeImportExtension: PI,
__runInitializers: cI,
__setFunctionName: dI,
__spread: hI,
__spreadArray: vI,
__spreadArrays: gI,
__values: x2,
default: rW
}, Symbol.toStringTag, { value: "Module" }));
function Y(...e) {
const t = [], n = {}.hasOwnProperty;
return e.filter(Boolean).forEach((r) => {
const i = typeof r;
if (i === "string" || i === "number")
t.push(r);
else if (Array.isArray(r) && r.length) {
const s = Y(...r);
s && t.push(s);
} else if (i === "object")
for (const s in r)
n.call(r, s) && r[s] && t.push(s);
}), t.join(" ");
}
const Lr = {
content: "pf-v6-c-content",
contentA: "pf-v6-c-content--a",
contentBlockquote: "pf-v6-c-content--blockquote",
contentDd: "pf-v6-c-content--dd",
contentDl: "pf-v6-c-content--dl",
contentDt: "pf-v6-c-content--dt",
contentH1: "pf-v6-c-content--h1",
contentH2: "pf-v6-c-content--h2",
contentH3: "pf-v6-c-content--h3",
contentH4: "pf-v6-c-content--h4",
contentH5: "pf-v6-c-content--h5",
contentH6: "pf-v6-c-content--h6",
contentHr: "pf-v6-c-content--hr",
contentLi: "pf-v6-c-content--li",
contentOl: "pf-v6-c-content--ol",
contentP: "pf-v6-c-content--p",
contentPre: "pf-v6-c-content--pre",
contentSmall: "pf-v6-c-content--small",
contentUl: "pf-v6-c-content--ul",
modifiers: {
editorial: "pf-m-editorial",
visited: "pf-m-visited",
plain: "pf-m-plain"
}
}, oS = {
modifiers: {
"4xl": "pf-m-4xl",
"3xl": "pf-m-3xl",
"2xl": "pf-m-2xl",
xl: "pf-m-xl",
lg: "pf-m-lg",
md: "pf-m-md",
h1: "pf-m-h1",
h2: "pf-m-h2",
h3: "pf-m-h3",
h4: "pf-m-h4",
h5: "pf-m-h5",
h6: "pf-m-h6",
pageTitle: "pf-m-page-title"
},
title: "pf-v6-c-title"
};
let oW = 0;
function tn({ name: e, xOffset: t = 0, yOffset: n = 0, width: r, height: i, svgPath: s, svgClassName: c }) {
var p;
return p = class extends os {
constructor() {
super(...arguments), this.id = `icon-title-${oW++}`;
}
render() {
const m = this.props, { title: h, className: b } = m, x = Le(m, ["title", "className"]), S = !!h, _ = [t, n, r, i].join(" "), C = ["pf-v6-svg"];
return b && C.push(b), y.jsxs("svg", Object.assign({ className: C.join(" "), viewBox: _, fill: "currentColor", "aria-labelledby": S ? this.id : null, "aria-hidden": S ? null : !0, role: "img", width: "1em", height: "1em" }, x, { children: [S && y.jsx("title", { id: this.id, children: h }), Array.isArray(s) ? s.map((E, L) => y.jsx("path", { className: E.className, d: E.path }, `${E.path}-${L}`)) : y.jsx("path", { d: s })] }));
}
}, p.displayName = e, p;
}
const iW = {
name: "CheckCircleIcon",
height: 512,
width: 512,
svgPath: "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",
yOffset: 0,
xOffset: 0,
svgClassName: void 0
}, Th = tn(iW), sW = {
name: "ExclamationCircleIcon",
height: 512,
width: 512,
svgPath: "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",
yOffset: 0,
xOffset: 0,
svgClassName: void 0
}, Nh = tn(sW), lW = {
name: "ExclamationTriangleIcon",
height: 512,
width: 576,
svgPath: "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",
yOffset: 0,
xOffset: 0,
svgClassName: void 0
}, Lh = tn(lW), cW = {
name: "InfoCircleIcon",
height: 512,
width: 512,
svgPath: "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z",
yOffset: 0,
xOffset: 0,
svgClassName: void 0
}, uy = tn(cW), uW = {
name: "BellIcon",
height: 1024,
width: 896,
svgPath: "M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",
yOffset: 0,
xOffset: 0,
svgClassName: void 0
}, tw = tn(uW);
var Wb;
(function(e) {
e.success = "success", e.error = "error", e.warning = "warning", e.default = "default";
})(Wb || (Wb = {}));
const yh = {
Space: " ",
Escape: "Escape",
Enter: "Enter"
}, TI = {
success: Th,
danger: Nh,
warning: Lh,
info: uy,
custom: tw
};
/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
var NI = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], w2 = /* @__PURE__ */ NI.join(","), LI = typeof Element > "u", Qp = LI ? function() {
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _2 = !LI && Element.prototype.getRootNode ? function(e) {
var t;
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
} : function(e) {
return e == null ? void 0 : e.ownerDocument;
}, k2 = function e(t, n) {
var r;
n === void 0 && (n = !0);
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = i === "" || i === "true", c = s || n && t && e(t.parentNode);
return c;
}, dW = function(e) {
var t, n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
return n === "" || n === "true";
}, II = function(e, t, n) {
if (k2(e))
return [];
var r = Array.prototype.slice.apply(e.querySelectorAll(w2));
return t && Qp.call(e, w2) && r.unshift(e), r = r.filter(n), r;
}, RI = function e(t, n, r) {
for (var i = [], s = Array.from(t); s.length; ) {
var c = s.shift();
if (!k2(c, !1))
if (c.tagName === "SLOT") {
var p = c.assignedElements(), m = p.length ? p : c.children, h = e(m, !0, r);
r.flatten ? i.push.apply(i, h) : i.push({
scopeParent: c,
candidates: h
});
} else {
var b = Qp.call(c, w2);
b && r.filter(c) && (n || !t.includes(c)) && i.push(c);
var x = c.shadowRoot || // check for an undisclosed shadow
typeof r.getShadowRoot == "function" && r.getShadowRoot(c), S = !k2(x, !1) && (!r.shadowRootFilter || r.shadowRootFilter(c));
if (x && S) {
var _ = e(x === !0 ? c.children : x.children, !0, r);
r.flatten ? i.push.apply(i, _) : i.push({
scopeParent: c,
candidates: _
});
} else
s.unshift.apply(s, c.children);
}
}
return i;
}, AI = function(e) {
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
}, Bp = function(e) {
if (!e)
throw new Error("No node provided");
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || dW(e)) && !AI(e) ? 0 : e.tabIndex;
}, pW = function(e, t) {
var n = Bp(e);
return n < 0 && t && !AI(e) ? 0 : n;
}, fW = function(e, t) {
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
}, MI = function(e) {
return e.tagName === "INPUT";
}, mW = function(e) {
return MI(e) && e.type === "hidden";
}, hW = function(e) {
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
return n.tagName === "SUMMARY";
});
return t;
}, gW = function(e, t) {
for (var n = 0; n < e.length; n++)
if (e[n].checked && e[n].form === t)
return e[n];
}, vW = function(e) {
if (!e.name)
return !0;
var t = e.form || _2(e), n = function(s) {
return t.querySelectorAll('input[type="radio"][name="' + s + '"]');
}, r;
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
r = n(window.CSS.escape(e.name));
else
try {
r = n(e.name);
} catch (s) {
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
}
var i = gW(r, e.form);
return !i || i === e;
}, bW = function(e) {
return MI(e) && e.type === "radio";
}, yW = function(e) {
return bW(e) && !vW(e);
}, xW = function(e) {
var t, n = e && _2(e), r = (t = n) === null || t === void 0 ? void 0 : t.host, i = !1;
if (n && n !== e) {
var s, c, p;
for (i = !!((s = r) !== null && s !== void 0 && (c = s.ownerDocument) !== null && c !== void 0 && c.contains(r) || e != null && (p = e.ownerDocument) !== null && p !== void 0 && p.contains(e)); !i && r; ) {
var m, h, b;
n = _2(r), r = (m = n) === null || m === void 0 ? void 0 : m.host, i = !!((h = r) !== null && h !== void 0 && (b = h.ownerDocument) !== null && b !== void 0 && b.contains(r));
}
}
return i;
}, _7 = function(e) {
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
return n === 0 && r === 0;
}, wW = function(e, t) {
var n = t.displayCheck, r = t.getShadowRoot;
if (getComputedStyle(e).visibility === "hidden")
return !0;
var i = Qp.call(e, "details>summary:first-of-type"), s = i ? e.parentElement : e;
if (Qp.call(s, "details:not([open]) *"))
return !0;
if (!n || n === "full" || n === "legacy-full") {
if (typeof r == "function") {
for (var c = e; e; ) {
var p = e.parentElement, m = _2(e);
if (p && !p.shadowRoot && r(p) === !0)
return _7(e);
e.assignedSlot ? e = e.assignedSlot : !p && m !== e.ownerDocument ? e = m.host : e = p;
}
e = c;
}
if (xW(e))
return !e.getClientRects().length;
if (n !== "legacy-full")
return !0;
} else if (n === "non-zero-area")
return _7(e);
return !1;
}, _W = function(e) {
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
for (var t = e.parentElement; t; ) {
if (t.tagName === "FIELDSET" && t.disabled) {
for (var n = 0; n < t.children.length; n++) {
var r = t.children.item(n);
if (r.tagName === "LEGEND")
return Qp.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
}
return !0;
}
t = t.parentElement;
}
return !1;
}, S2 = function(e, t) {
return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
//