@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
1,323 lines (1,321 loc) • 1.44 MB
JavaScript
var CR = Object.defineProperty;
var Y1 = (e) => {
throw TypeError(e);
};
var ER = (e, t, n) => t in e ? CR(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var ae = (e, t, n) => ER(e, typeof t != "symbol" ? t + "" : t, n), K1 = (e, t, n) => t.has(e) || Y1("Cannot " + n);
var ur = (e, t, n) => (K1(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Sc = (e, t, n) => t.has(e) ? Y1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Qr = (e, t, n, r) => (K1(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
var nh = (e, t, n, r) => ({
set _(i) {
Qr(e, t, i, n);
},
get _() {
return ur(e, t, r);
}
});
import * as q from "react";
import O, { createContext as gn, useContext as Pt, useCallback as J, useState as X, useRef as Ne, useEffect as ye, useMemo as fe, useDebugValue as Z1, createElement as Jv, Fragment as Sr, useId as cT, Component as OR, useLayoutEffect as qd, Children as Qv, isValidElement as zd, cloneElement as TR, forwardRef as us, version as kR, useReducer as AR, useImperativeHandle as jR, lazy as uT, Suspense as dT } from "react";
import { MenuToggle as zl, MenuToggleCheckbox as DR, DropdownItem as Cu, Dropdown as fT, DropdownList as hT, Popover as Wd, Icon as rr, Stack as Er, StackItem as Do, Button as Se, PageSection as $n, PageSectionVariants as PR, Flex as Yt, FlexItem as tt, Title as Po, Skeleton as qn, Breadcrumb as MR, BreadcrumbItem as RR, Bullseye as Wl, Spinner as Bd, Divider as $o, Tooltip as Zr, Switch as pT, ButtonVariant as gr, Split as na, AlertGroup as LR, Alert as di, AlertActionCloseButton as IR, ClipboardCopy as FR, Truncate as gT, SplitItem as Qn, LabelGroup as ex, Label as ka, Card as mT, CardHeader as yT, Text as Aa, CardFooter as vT, CardBody as tx, ProgressStepper as NR, ProgressStep as $R, DescriptionListTerm as Cy, DescriptionListGroup as wo, DescriptionListDescription as So, DescriptionList as Eu, Select as nx, MenuSearch as xT, MenuSearchInput as bT, SearchInput as _T, SelectOption as Bl, SelectGroup as wT, MenuFooter as rx, Chip as Ey, ChipGroup as ST, SelectList as ix, debounce as qR, ActionList as CT, ActionListItem as Ou, ToolbarItem as br, DatePicker as X1, isValidDate as J1, InputGroup as Vd, InputGroupItem as xl, TextInputGroup as ET, TextInputGroupMain as OT, TextInputGroupUtilities as TT, ToolbarToggleGroup as zR, ToolbarGroup as bl, ToolbarFilter as WR, ToggleGroup as kT, ToggleGroupItem as dl, Toolbar as Oy, Pagination as AT, PaginationVariant as jT, ToolbarContent as DT, EmptyState as Ya, EmptyStateHeader as Ka, EmptyStateIcon as ds, EmptyStateBody as gi, EmptyStateFooter as fs, EmptyStateVariant as PT, EmptyStateActions as Vl, Modal as Ul, ModalVariant as Hl, ModalBoxBody as qo, CardTitle as BR, DataList as VR, DataListItem as UR, DataListItemRow as HR, DataListCheck as GR, DataListItemCells as YR, DataListCell as Q1, DataListAction as KR, ProgressVariant as e5, Progress as ZR, ProgressSize as XR, Checkbox as MT, Form as RT, Grid as JR, ActionGroup as QR, FormGroup as eL, FormHelperText as tL, HelperText as nL, HelperTextItem as rL, TextArea as iL, TextInput as aL, Drawer as LT, DrawerContent as IT, DrawerPanelContent as FT, NotificationDrawer as oL, NotificationDrawerHeader as sL, DrawerCloseButton as NT, NotificationDrawerBody as lL, NotificationDrawerGroupList as cL, NotificationDrawerGroup as uL, NotificationDrawerList as dL, NotificationDrawerListItem as fL, NotificationDrawerListItemHeader as hL, NotificationDrawerListItemBody as pL, DrawerContentBody as $T, Masthead as gL, MastheadMain as mL, MastheadBrand as yL, MastheadContent as vL, MastheadToggle as xL, PageToggleButton as bL, NotificationBadge as _L, PageSidebar as wL, PageSidebarBody as SL, Nav as CL, NavList as EL, NavItem as OL, NavExpandable as TL, DrawerHead as kL, DrawerActions as AL, DrawerPanelBody as jL, Page as DL, Tab as PL, Tabs as t5 } from "@patternfly/react-core";
import { OutlinedQuestionCircleIcon as qT, ExternalLinkAltIcon as ax, SyncAltIcon as ox, EllipsisVIcon as ML, CaretDownIcon as zT, CircleIcon as RL, AngleRightIcon as LL, HelpIcon as IL, TimesIcon as Gl, TimesCircleIcon as FL, ArrowRightIcon as NL, FilterIcon as WT, SearchIcon as hs, SortAmountDownIcon as $L, SortAmountUpIcon as qL, SortNumericDownAltIcon as zL, SortNumericUpIcon as WL, SortAlphaDownAltIcon as BL, SortAlphaUpIcon as VL, ColumnsIcon as UL, TableIcon as n5, ListIcon as r5, ThLargeIcon as i5, ExclamationCircleIcon as Yl, PlusCircleIcon as BT, CubesIcon as HL, PendingIcon as GL, CheckCircleIcon as YL, ExclamationTriangleIcon as KL, WrenchIcon as ZL, AngleDownIcon as XL, CopyIcon as JL, UploadIcon as QL, DownloadIcon as eI, EyeIcon as VT, EyeSlashIcon as UT, BarsIcon as tI, MoonIcon as nI, SunIcon as rI } from "@patternfly/react-icons";
import { useNavigate as ra, Link as Xr, Outlet as iI, Routes as aI, Route as oI } from "react-router-dom";
import a5 from "react-dom";
import { Table as sx, Thead as HT, Tr as zo, Th as ja, Tbody as lx, Td as Sn, CollapseColumn as sI } from "@patternfly/react-table";
import * as Rr from "monaco-editor";
import { configureMonacoYaml as lI } from "monaco-yaml";
var Cc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Ie(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Ec = { exports: {} }, Ns = {};
/**
* @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 o5;
function cI() {
if (o5) return Ns;
o5 = 1;
var e = O, 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, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function o(s, l, c) {
var u, d = {}, f = null, h = null;
c !== void 0 && (f = "" + c), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
for (u in l) r.call(l, u) && !a.hasOwnProperty(u) && (d[u] = l[u]);
if (s && s.defaultProps) for (u in l = s.defaultProps, l) d[u] === void 0 && (d[u] = l[u]);
return { $$typeof: t, type: s, key: f, ref: h, props: d, _owner: i.current };
}
return Ns.Fragment = n, Ns.jsx = o, Ns.jsxs = o, Ns;
}
var $s = {};
/**
* @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 s5;
function uI() {
return s5 || (s5 = 1, process.env.NODE_ENV !== "production" && function() {
var e = O, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, m = "@@iterator";
function y(L) {
if (L === null || typeof L != "object")
return null;
var le = g && L[g] || L[m];
return typeof le == "function" ? le : null;
}
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(L) {
{
for (var le = arguments.length, ve = new Array(le > 1 ? le - 1 : 0), ke = 1; ke < le; ke++)
ve[ke - 1] = arguments[ke];
_("error", L, ve);
}
}
function _(L, le, ve) {
{
var ke = x.ReactDebugCurrentFrame, He = ke.getStackAddendum();
He !== "" && (le += "%s", ve = ve.concat([He]));
var it = ve.map(function(qe) {
return String(qe);
});
it.unshift("Warning: " + le), Function.prototype.apply.call(console[L], console, it);
}
}
var w = !1, b = !1, S = !1, C = !1, E = !1, A;
A = Symbol.for("react.module.reference");
function k(L) {
return !!(typeof L == "string" || typeof L == "function" || L === r || L === a || E || L === i || L === c || L === u || C || L === h || w || b || S || typeof L == "object" && L !== null && (L.$$typeof === f || L.$$typeof === d || L.$$typeof === o || L.$$typeof === s || L.$$typeof === l || // 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.
L.$$typeof === A || L.getModuleId !== void 0));
}
function T(L, le, ve) {
var ke = L.displayName;
if (ke)
return ke;
var He = le.displayName || le.name || "";
return He !== "" ? ve + "(" + He + ")" : ve;
}
function D(L) {
return L.displayName || "Context";
}
function j(L) {
if (L == null)
return null;
if (typeof L.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
return L.displayName || L.name || null;
if (typeof L == "string")
return L;
switch (L) {
case r:
return "Fragment";
case n:
return "Portal";
case a:
return "Profiler";
case i:
return "StrictMode";
case c:
return "Suspense";
case u:
return "SuspenseList";
}
if (typeof L == "object")
switch (L.$$typeof) {
case s:
var le = L;
return D(le) + ".Consumer";
case o:
var ve = L;
return D(ve._context) + ".Provider";
case l:
return T(L, L.render, "ForwardRef");
case d:
var ke = L.displayName || null;
return ke !== null ? ke : j(L.type) || "Memo";
case f: {
var He = L, it = He._payload, qe = He._init;
try {
return j(qe(it));
} catch {
return null;
}
}
}
return null;
}
var P = Object.assign, R = 0, W, G, V, $, F, B, Q;
function re() {
}
re.__reactDisabledLog = !0;
function te() {
{
if (R === 0) {
W = console.log, G = console.info, V = console.warn, $ = console.error, F = console.group, B = console.groupCollapsed, Q = console.groupEnd;
var L = {
configurable: !0,
enumerable: !0,
value: re,
writable: !0
};
Object.defineProperties(console, {
info: L,
log: L,
warn: L,
error: L,
group: L,
groupCollapsed: L,
groupEnd: L
});
}
R++;
}
}
function ne() {
{
if (R--, R === 0) {
var L = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: P({}, L, {
value: W
}),
info: P({}, L, {
value: G
}),
warn: P({}, L, {
value: V
}),
error: P({}, L, {
value: $
}),
group: P({}, L, {
value: F
}),
groupCollapsed: P({}, L, {
value: B
}),
groupEnd: P({}, L, {
value: Q
})
});
}
R < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ce = x.ReactCurrentDispatcher, de;
function ue(L, le, ve) {
{
if (de === void 0)
try {
throw Error();
} catch (He) {
var ke = He.stack.trim().match(/\n( *(at )?)/);
de = ke && ke[1] || "";
}
return `
` + de + L;
}
}
var z = !1, Z;
{
var he = typeof WeakMap == "function" ? WeakMap : Map;
Z = new he();
}
function I(L, le) {
if (!L || z)
return "";
{
var ve = Z.get(L);
if (ve !== void 0)
return ve;
}
var ke;
z = !0;
var He = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var it;
it = ce.current, ce.current = null, te();
try {
if (le) {
var qe = function() {
throw Error();
};
if (Object.defineProperty(qe.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(qe, []);
} catch (vn) {
ke = vn;
}
Reflect.construct(L, [], qe);
} else {
try {
qe.call();
} catch (vn) {
ke = vn;
}
L.call(qe.prototype);
}
} else {
try {
throw Error();
} catch (vn) {
ke = vn;
}
L();
}
} catch (vn) {
if (vn && ke && typeof vn.stack == "string") {
for (var Fe = vn.stack.split(`
`), rn = ke.stack.split(`
`), Et = Fe.length - 1, kt = rn.length - 1; Et >= 1 && kt >= 0 && Fe[Et] !== rn[kt]; )
kt--;
for (; Et >= 1 && kt >= 0; Et--, kt--)
if (Fe[Et] !== rn[kt]) {
if (Et !== 1 || kt !== 1)
do
if (Et--, kt--, kt < 0 || Fe[Et] !== rn[kt]) {
var Vn = `
` + Fe[Et].replace(" at new ", " at ");
return L.displayName && Vn.includes("<anonymous>") && (Vn = Vn.replace("<anonymous>", L.displayName)), typeof L == "function" && Z.set(L, Vn), Vn;
}
while (Et >= 1 && kt >= 0);
break;
}
}
} finally {
z = !1, ce.current = it, ne(), Error.prepareStackTrace = He;
}
var uo = L ? L.displayName || L.name : "", ua = uo ? ue(uo) : "";
return typeof L == "function" && Z.set(L, ua), ua;
}
function Ee(L, le, ve) {
return I(L, !1);
}
function oe(L) {
var le = L.prototype;
return !!(le && le.isReactComponent);
}
function xe(L, le, ve) {
if (L == null)
return "";
if (typeof L == "function")
return I(L, oe(L));
if (typeof L == "string")
return ue(L);
switch (L) {
case c:
return ue("Suspense");
case u:
return ue("SuspenseList");
}
if (typeof L == "object")
switch (L.$$typeof) {
case l:
return Ee(L.render);
case d:
return xe(L.type, le, ve);
case f: {
var ke = L, He = ke._payload, it = ke._init;
try {
return xe(it(He), le, ve);
} catch {
}
}
}
return "";
}
var Le = Object.prototype.hasOwnProperty, be = {}, M = x.ReactDebugCurrentFrame;
function N(L) {
if (L) {
var le = L._owner, ve = xe(L.type, L._source, le ? le.type : null);
M.setExtraStackFrame(ve);
} else
M.setExtraStackFrame(null);
}
function H(L, le, ve, ke, He) {
{
var it = Function.call.bind(Le);
for (var qe in L)
if (it(L, qe)) {
var Fe = void 0;
try {
if (typeof L[qe] != "function") {
var rn = Error((ke || "React class") + ": " + ve + " type `" + qe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof L[qe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw rn.name = "Invariant Violation", rn;
}
Fe = L[qe](le, qe, ke, ve, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (Et) {
Fe = Et;
}
Fe && !(Fe instanceof Error) && (N(He), v("%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).", ke || "React class", ve, qe, typeof Fe), N(null)), Fe instanceof Error && !(Fe.message in be) && (be[Fe.message] = !0, N(He), v("Failed %s type: %s", ve, Fe.message), N(null));
}
}
}
var pe = Array.isArray;
function se(L) {
return pe(L);
}
function ee(L) {
{
var le = typeof Symbol == "function" && Symbol.toStringTag, ve = le && L[Symbol.toStringTag] || L.constructor.name || "Object";
return ve;
}
}
function U(L) {
try {
return ie(L), !1;
} catch {
return !0;
}
}
function ie(L) {
return "" + L;
}
function Ce(L) {
if (U(L))
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ee(L)), ie(L);
}
var Te = x.ReactCurrentOwner, ze = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, et, pt;
function Rt(L) {
if (Le.call(L, "ref")) {
var le = Object.getOwnPropertyDescriptor(L, "ref").get;
if (le && le.isReactWarning)
return !1;
}
return L.ref !== void 0;
}
function Tt(L) {
if (Le.call(L, "key")) {
var le = Object.getOwnPropertyDescriptor(L, "key").get;
if (le && le.isReactWarning)
return !1;
}
return L.key !== void 0;
}
function Ct(L, le) {
typeof L.ref == "string" && Te.current;
}
function Vt(L, le) {
{
var ve = function() {
et || (et = !0, v("%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)", le));
};
ve.isReactWarning = !0, Object.defineProperty(L, "key", {
get: ve,
configurable: !0
});
}
}
function $e(L, le) {
{
var ve = function() {
pt || (pt = !0, v("%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)", le));
};
ve.isReactWarning = !0, Object.defineProperty(L, "ref", {
get: ve,
configurable: !0
});
}
}
var vt = function(L, le, ve, ke, He, it, qe) {
var Fe = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: L,
key: le,
ref: ve,
props: qe,
// Record the component responsible for creating this element.
_owner: it
};
return Fe._store = {}, Object.defineProperty(Fe._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Fe, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: ke
}), Object.defineProperty(Fe, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: He
}), Object.freeze && (Object.freeze(Fe.props), Object.freeze(Fe)), Fe;
};
function Dn(L, le, ve, ke, He) {
{
var it, qe = {}, Fe = null, rn = null;
ve !== void 0 && (Ce(ve), Fe = "" + ve), Tt(le) && (Ce(le.key), Fe = "" + le.key), Rt(le) && (rn = le.ref, Ct(le, He));
for (it in le)
Le.call(le, it) && !ze.hasOwnProperty(it) && (qe[it] = le[it]);
if (L && L.defaultProps) {
var Et = L.defaultProps;
for (it in Et)
qe[it] === void 0 && (qe[it] = Et[it]);
}
if (Fe || rn) {
var kt = typeof L == "function" ? L.displayName || L.name || "Unknown" : L;
Fe && Vt(qe, kt), rn && $e(qe, kt);
}
return vt(L, Fe, rn, He, ke, Te.current, qe);
}
}
var Ut = x.ReactCurrentOwner, Pi = x.ReactDebugCurrentFrame;
function Ar(L) {
if (L) {
var le = L._owner, ve = xe(L.type, L._source, le ? le.type : null);
Pi.setExtraStackFrame(ve);
} else
Pi.setExtraStackFrame(null);
}
var Qf;
Qf = !1;
function eh(L) {
return typeof L == "object" && L !== null && L.$$typeof === t;
}
function W1() {
{
if (Ut.current) {
var L = j(Ut.current.type);
if (L)
return `
Check the render method of \`` + L + "`.";
}
return "";
}
}
function pR(L) {
return "";
}
var B1 = {};
function gR(L) {
{
var le = W1();
if (!le) {
var ve = typeof L == "string" ? L : L.displayName || L.name;
ve && (le = `
Check the top-level render call using <` + ve + ">.");
}
return le;
}
}
function V1(L, le) {
{
if (!L._store || L._store.validated || L.key != null)
return;
L._store.validated = !0;
var ve = gR(le);
if (B1[ve])
return;
B1[ve] = !0;
var ke = "";
L && L._owner && L._owner !== Ut.current && (ke = " It was passed a child from " + j(L._owner.type) + "."), Ar(L), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ve, ke), Ar(null);
}
}
function U1(L, le) {
{
if (typeof L != "object")
return;
if (se(L))
for (var ve = 0; ve < L.length; ve++) {
var ke = L[ve];
eh(ke) && V1(ke, le);
}
else if (eh(L))
L._store && (L._store.validated = !0);
else if (L) {
var He = y(L);
if (typeof He == "function" && He !== L.entries)
for (var it = He.call(L), qe; !(qe = it.next()).done; )
eh(qe.value) && V1(qe.value, le);
}
}
}
function mR(L) {
{
var le = L.type;
if (le == null || typeof le == "string")
return;
var ve;
if (typeof le == "function")
ve = le.propTypes;
else if (typeof le == "object" && (le.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
le.$$typeof === d))
ve = le.propTypes;
else
return;
if (ve) {
var ke = j(le);
H(ve, L.props, "prop", ke, L);
} else if (le.PropTypes !== void 0 && !Qf) {
Qf = !0;
var He = j(le);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", He || "Unknown");
}
typeof le.getDefaultProps == "function" && !le.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function yR(L) {
{
for (var le = Object.keys(L.props), ve = 0; ve < le.length; ve++) {
var ke = le[ve];
if (ke !== "children" && ke !== "key") {
Ar(L), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ke), Ar(null);
break;
}
}
L.ref !== null && (Ar(L), v("Invalid attribute `ref` supplied to `React.Fragment`."), Ar(null));
}
}
var H1 = {};
function G1(L, le, ve, ke, He, it) {
{
var qe = k(L);
if (!qe) {
var Fe = "";
(L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (Fe += " 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 rn = pR();
rn ? Fe += rn : Fe += W1();
var Et;
L === null ? Et = "null" : se(L) ? Et = "array" : L !== void 0 && L.$$typeof === t ? (Et = "<" + (j(L.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : Et = typeof L, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Et, Fe);
}
var kt = Dn(L, le, ve, He, it);
if (kt == null)
return kt;
if (qe) {
var Vn = le.children;
if (Vn !== void 0)
if (ke)
if (se(Vn)) {
for (var uo = 0; uo < Vn.length; uo++)
U1(Vn[uo], L);
Object.freeze && Object.freeze(Vn);
} else
v("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
U1(Vn, L);
}
if (Le.call(le, "key")) {
var ua = j(L), vn = Object.keys(le).filter(function(SR) {
return SR !== "key";
}), th = vn.length > 0 ? "{key: someKey, " + vn.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!H1[ua + th]) {
var wR = vn.length > 0 ? "{" + vn.join(": ..., ") + ": ...}" : "{}";
v(`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} />`, th, ua, wR, ua), H1[ua + th] = !0;
}
}
return L === r ? yR(kt) : mR(kt), kt;
}
}
function vR(L, le, ve) {
return G1(L, le, ve, !0);
}
function xR(L, le, ve) {
return G1(L, le, ve, !1);
}
var bR = xR, _R = vR;
$s.Fragment = r, $s.jsx = bR, $s.jsxs = _R;
}()), $s;
}
var l5;
function dI() {
return l5 || (l5 = 1, process.env.NODE_ENV === "production" ? Ec.exports = cI() : Ec.exports = uI()), Ec.exports;
}
var p = dI();
const fI = (e, t, n, r) => {
var a, o, s, l;
const i = [n, {
code: t,
...r || {}
}];
if ((o = (a = e == null ? void 0 : e.services) == null ? void 0 : a.logger) != null && o.forward)
return e.services.logger.forward(i, "warn", "react-i18next::", !0);
Da(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (l = (s = e == null ? void 0 : e.services) == null ? void 0 : s.logger) != null && l.warn ? e.services.logger.warn(...i) : console != null && console.warn && console.warn(...i);
}, c5 = {}, Ty = (e, t, n, r) => {
Da(n) && c5[n] || (Da(n) && (c5[n] = /* @__PURE__ */ new Date()), fI(e, t, n, r));
}, GT = (e, t) => () => {
if (e.isInitialized)
t();
else {
const n = () => {
setTimeout(() => {
e.off("initialized", n);
}, 0), t();
};
e.on("initialized", n);
}
}, ky = (e, t, n) => {
e.loadNamespaces(t, GT(e, n));
}, u5 = (e, t, n, r) => {
if (Da(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return ky(e, n, r);
n.forEach((i) => {
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
}), e.loadLanguages(t, GT(e, r));
}, hI = (e, t, n = {}) => !t.languages || !t.languages.length ? (Ty(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
languages: t.languages
}), !0) : t.hasLoadedNamespace(e, {
lng: n.lng,
precheck: (r, i) => {
var a;
if (((a = n.bindI18n) == null ? void 0 : a.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, e)) return !1;
}
}), Da = (e) => typeof e == "string", pI = (e) => typeof e == "object" && e !== null, gI = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, mI = {
"&": "&",
"&": "&",
"<": "<",
"<": "<",
">": ">",
">": ">",
"'": "'",
"'": "'",
""": '"',
""": '"',
" ": " ",
" ": " ",
"©": "©",
"©": "©",
"®": "®",
"®": "®",
"…": "…",
"…": "…",
"/": "/",
"/": "/"
}, yI = (e) => mI[e], vI = (e) => e.replace(gI, yI);
let xI = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: !0,
unescape: vI
};
const bI = () => xI;
let _I;
const wI = () => _I, SI = gn();
class CI {
constructor() {
this.usedNamespaces = {};
}
addUsedNamespaces(t) {
t.forEach((n) => {
this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
});
}
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}
const EI = (e, t) => {
const n = Ne();
return ye(() => {
n.current = e;
}, [e, t]), n.current;
}, YT = (e, t, n, r) => e.getFixedT(t, n, r), OI = (e, t, n, r) => J(YT(e, t, n, r), [e, t, n, r]), Me = (e, t = {}) => {
var w, b, S, C;
const {
i18n: n
} = t, {
i18n: r,
defaultNS: i
} = Pt(SI) || {}, a = n || r || wI();
if (a && !a.reportNamespaces && (a.reportNamespaces = new CI()), !a) {
Ty(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
const E = (k, T) => Da(T) ? T : pI(T) && Da(T.defaultValue) ? T.defaultValue : Array.isArray(k) ? k[k.length - 1] : k, A = [E, {}, !1];
return A.t = E, A.i18n = {}, A.ready = !1, A;
}
(w = a.options.react) != null && w.wait && Ty(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
const o = {
...bI(),
...a.options.react,
...t
}, {
useSuspense: s,
keyPrefix: l
} = o;
let c = i || ((b = a.options) == null ? void 0 : b.defaultNS);
c = Da(c) ? [c] : c || ["translation"], (C = (S = a.reportNamespaces).addUsedNamespaces) == null || C.call(S, c);
const u = (a.isInitialized || a.initializedStoreOnce) && c.every((E) => hI(E, a, o)), d = OI(a, t.lng || null, o.nsMode === "fallback" ? c : c[0], l), f = () => d, h = () => YT(a, t.lng || null, o.nsMode === "fallback" ? c : c[0], l), [g, m] = X(f);
let y = c.join();
t.lng && (y = `${t.lng}${y}`);
const x = EI(y), v = Ne(!0);
ye(() => {
const {
bindI18n: E,
bindI18nStore: A
} = o;
v.current = !0, !u && !s && (t.lng ? u5(a, t.lng, c, () => {
v.current && m(h);
}) : ky(a, c, () => {
v.current && m(h);
})), u && x && x !== y && v.current && m(h);
const k = () => {
v.current && m(h);
};
return E && (a == null || a.on(E, k)), A && (a == null || a.store.on(A, k)), () => {
v.current = !1, a && (E == null || E.split(" ").forEach((T) => a.off(T, k))), A && a && A.split(" ").forEach((T) => a.store.off(T, k));
};
}, [a, y]), ye(() => {
v.current && u && m(f);
}, [a, l, u]);
const _ = [g, a, u];
if (_.t = g, _.i18n = a, _.ready = u, u || !u && !s) return _;
throw new Promise((E) => {
t.lng ? u5(a, t.lng, c, () => E()) : ky(a, c, () => E());
});
}, KT = {
by: "by",
cancelText: "Cancel",
canceledText: "Canceled",
cardView: "Card view",
clearAllFilters: "Clear all filters",
clickToRefresh: "Click to refresh",
closeText: "Close",
confirmText: "Confirm",
countMore: "{count} more",
documentation: "Documentation",
errorText: "Error",
filter: "Filter",
listView: "List view",
manageColumns: "Manage columns",
moreInformation: "More information",
noItemsFound: "No items found",
noResultsFound: "No results found",
noResultsMatchCriteria: "No results match this filter criteria. Clear all filters and try again.",
noSelection: "No selection",
noSelections: "No selections",
noneSelectedText: "None - Please make a selection below.",
ofText: "of",
pendingText: "Pending",
pleaseFixValidationErrors: "Please fix validation errors.",
processingText: "Processing",
selectNone: "Select none",
selectedText: "Selected",
showLess: "Show less",
sort: "Sort",
submitText: "Submit",
submittingText: "Submitting",
successText: "Success",
tableView: "Table view",
unknownError: "Unknown error",
validating: "Validating..."
}, ZT = gn([KT, () => alert("Use FrameworkTranslationsProvider")]);
function TI(e) {
const t = X(KT);
return /* @__PURE__ */ p.jsx(ZT.Provider, { value: t, children: e.children });
}
function St() {
return Pt(ZT);
}
const kI = {
value: "1450px"
}, AI = {
value: "992px"
}, jI = {
value: "768px"
}, DI = {
value: "576px"
}, PI = {
value: "1200px"
}, jr = {
sm: Number(DI.value.replace("px", "")),
md: Number(jI.value.replace("px", "")),
lg: Number(AI.value.replace("px", "")),
xl: Number(PI.value.replace("px", "")),
xxl: Number(kI.value.replace("px", ""))
};
function MI() {
const [e, t] = X(() => window.innerWidth <= jr.sm ? "xs" : window.innerWidth <= jr.md ? "sm" : window.innerWidth <= jr.lg ? "md" : window.innerWidth <= jr.xl ? "lg" : window.innerWidth <= jr.xxl ? "xl" : "xxl"), n = J(() => {
window.innerWidth <= jr.sm ? t("xs") : window.innerWidth <= jr.md ? t("sm") : window.innerWidth <= jr.lg ? t("md") : window.innerWidth <= jr.xl ? t("lg") : window.innerWidth <= jr.xxl ? t("xl") : t("xxl");
}, []);
return ye(() => {
const r = n;
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
}, [n]), ye(() => n(), [n]), e;
}
function fn(e) {
const t = MI();
switch (e) {
case "xs":
return !0;
case "sm":
switch (t) {
case "sm":
case "md":
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "md":
switch (t) {
case "md":
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "lg":
switch (t) {
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "xl":
switch (t) {
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "xxl":
switch (t) {
case "xxl":
return !0;
default:
return !1;
}
}
}
function Dde() {
const [e, t] = X(
() => window.innerWidth > window.innerHeight ? "landscape" : "portrait"
), n = J(() => {
t(window.innerWidth > window.innerHeight ? "landscape" : "portrait");
}, []);
return ye(() => {
const r = n;
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
}, [n]), ye(() => n(), [n]), e;
}
function RI(e) {
const { t } = Me(), [n, r] = X(!1), i = fn("sm"), [a] = St(), { pageItems: o, selectedItems: s, selectItems: l, unselectAll: c, maxSelections: u } = e, d = e.itemCount !== void 0 && e.itemCount > 0 && o && o.length > 0 && (o ?? []).every((w) => s == null ? void 0 : s.includes(w)), f = J(() => {
d ? c == null || c() : l == null || l(o ?? []);
}, [d, c, l, o]), h = fe(() => i ? s && s.length > 0 ? t("{{count}} selected", { count: s.length }) : "" : s && s.length > 0 ? `${s.length}` : "", [i, s, t]), g = fe(
() => o == null ? void 0 : o.filter((w) => !(s != null && s.includes(w))),
[o, s]
), m = fe(
() => !!(u && s && g && !d && (s == null ? void 0 : s.length) + g.length > u),
[d, u, s, g]
), y = J(
(w) => {
const b = s ? s.length : 0;
return /* @__PURE__ */ p.jsx(
zl,
{
splitButtonOptions: {
items: [
/* @__PURE__ */ p.jsx(
DR,
{
id: "select-all",
"data-cy": "select-all",
ouiaId: "select-all",
"aria-label": t("Select all"),
isChecked: d ? !0 : b > 0 ? null : !1,
onChange: f,
children: h
},
"select-all"
)
]
},
onClick: () => r(!n),
isDisabled: m,
ref: w
}
);
},
[
s,
d,
f,
h,
m,
n,
t
]
), x = fe(() => /* @__PURE__ */ p.jsx(
Cu,
{
id: "select-none",
ouiaId: "select-none",
onClick: () => {
c == null || c(), r(!1);
},
children: e.selectNoneText ?? a.selectNone
},
"select-none"
), [e.selectNoneText, a.selectNone, c]), v = fe(() => /* @__PURE__ */ p.jsx(
Cu,
{
id: "select-page",
ouiaId: "select-page",
onClick: () => {
l == null || l(o ?? []), r(!1);
},
children: t("Select {{count}} page items", { count: (o == null ? void 0 : o.length) ?? 0 })
},
"select-page"
), [l, o, t]), _ = fe(() => s && s.length > 0 ? [x, v] : [v], [x, v, s]);
return (
// Negative margin is needed to align the bulk select with table checkboxes
/* @__PURE__ */ p.jsx("div", { style: { marginLeft: -8 }, children: /* @__PURE__ */ p.jsx(
fT,
{
style: { zIndex: 400 },
toggle: y,
isOpen: n,
onOpenChange: (w) => r(w),
children: /* @__PURE__ */ p.jsx(hT, { children: _ })
}
) })
);
}
function d5(e) {
let t = "collapsed";
return e.open && (t += " expanded"), /* @__PURE__ */ p.jsx("div", { className: t, children: e.children });
}
var Cn = function() {
return Cn = Object.assign || function(t) {
for (var n, r = 1, i = arguments.length; r < i; r++) {
n = arguments[r];
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
}
return t;
}, Cn.apply(this, arguments);
};
function Fa(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
return e.concat(a || Array.prototype.slice.call(t));
}
function LI(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var II = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, FI = /* @__PURE__ */ LI(
function(e) {
return II.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), ct = "-ms-", fl = "-moz-", Xe = "-webkit-", XT = "comm", Ud = "rule", cx = "decl", NI = "@import", JT = "@keyframes", $I = "@layer", QT = Math.abs, ux = String.fromCharCode, Ay = Object.assign;
function qI(e, t) {
return Ht(e, 0) ^ 45 ? (((t << 2 ^ Ht(e, 0)) << 2 ^ Ht(e, 1)) << 2 ^ Ht(e, 2)) << 2 ^ Ht(e, 3) : 0;
}
function ek(e) {
return e.trim();
}
function oi(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function Re(e, t, n) {
return e.replace(t, n);
}
function au(e, t, n) {
return e.indexOf(t, n);
}
function Ht(e, t) {
return e.charCodeAt(t) | 0;
}
function Wo(e, t, n) {
return e.slice(t, n);
}
function Lr(e) {
return e.length;
}
function tk(e) {
return e.length;
}
function Zs(e, t) {
return t.push(e), e;
}
function zI(e, t) {
return e.map(t).join("");
}
function f5(e, t) {
return e.filter(function(n) {
return !oi(n, t);
});
}
var Hd = 1, Bo = 1, nk = 0, ar = 0, jt = 0, ps = "";
function Gd(e, t, n, r, i, a, o, s) {
return { value: e, root: t, parent: n, type: r, props: i, children: a, line: Hd, column: Bo, length: o, return: "", siblings: s };
}
function Ii(e, t) {
return Ay(Gd("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function fo(e) {
for (; e.root; )
e = Ii(e.root, { children: [e] });
Zs(e, e.siblings);
}
function WI() {
return jt;
}
function BI() {
return jt = ar > 0 ? Ht(ps, --ar) : 0, Bo--, jt === 10 && (Bo = 1, Hd--), jt;
}
function Cr() {
return jt = ar < nk ? Ht(ps, ar++) : 0, Bo++, jt === 10 && (Bo = 1, Hd++), jt;
}
function Pa() {
return Ht(ps, ar);
}
function ou() {
return ar;
}
function Yd(e, t) {
return Wo(ps, e, t);
}
function jy(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
function VI(e) {
return Hd = Bo = 1, nk = Lr(ps = e), ar = 0, [];
}
function UI(e) {
return ps = "", e;
}
function rh(e) {
return ek(Yd(ar - 1, Dy(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function HI(e) {
for (; (jt = Pa()) && jt < 33; )
Cr();
return jy(e) > 2 || jy(jt) > 3 ? "" : " ";
}
function GI(e, t) {
for (; --t && Cr() && !(jt < 48 || jt > 102 || jt > 57 && jt < 65 || jt > 70 && jt < 97); )
;
return Yd(e, ou() + (t < 6 && Pa() == 32 && Cr() == 32));
}
function Dy(e) {
for (; Cr(); )
switch (jt) {
// ] ) " '
case e:
return ar;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && Dy(jt);
break;
// (
case 40:
e === 41 && Dy(e);
break;
// \
case 92:
Cr();
break;
}
return ar;
}
function YI(e, t) {
for (; Cr() && e + jt !== 57; )
if (e + jt === 84 && Pa() === 47)
break;
return "/*" + Yd(t, ar - 1) + "*" + ux(e === 47 ? e : Cr());
}
function KI(e) {
for (; !jy(Pa()); )
Cr();
return Yd(e, ar);
}
function ZI(e) {
return UI(su("", null, null, null, [""], e = VI(e), 0, [0], e));
}
function su(e, t, n, r, i, a, o, s, l) {
for (var c = 0, u = 0, d = o, f = 0, h = 0, g = 0, m = 1, y = 1, x = 1, v = 0, _ = "", w = i, b = a, S = r, C = _; y; )
switch (g = v, v = Cr()) {
// (
case 40:
if (g != 108 && Ht(C, d - 1) == 58) {
au(C += Re(rh(v), "&", "&\f"), "&\f", QT(c ? s[c - 1] : 0)) != -1 && (x = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
C += rh(v);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
C += HI(g);
break;
// \
case 92:
C += GI(ou() - 1, 7);
continue;
// /
case 47:
switch (Pa()) {
case 42:
case 47:
Zs(XI(YI(Cr(), ou()), t, n, l), l);
break;
default:
C += "/";
}
break;
// {
case 123 * m:
s[c++] = Lr(C) * x;
// } ; \0
case 125 * m:
case 59:
case 0:
switch (v) {
// \0 }
case 0:
case 125:
y = 0;
// ;
case 59 + u:
x == -1 && (C = Re(C, /\f/g, "")), h > 0 && Lr(C) - d && Zs(h > 32 ? p5(C + ";", r, n, d - 1, l) : p5(Re(C, " ", "") + ";", r, n, d - 2, l), l);
break;
// @ ;
case 59:
C += ";";
// { rule/at-rule
default:
if (Zs(S = h5(C, t, n, c, u, i, s, _, w = [], b = [], d, a), a), v === 123)
if (u === 0)
su(C, t, S, S, w, a, d, s, b);
else
switch (f === 99 && Ht(C, 3) === 110 ? 100 : f) {
// d l m s
case 100:
case 108:
case 109:
case 115:
su(e, S, S, r && Zs(h5(e, S, S, 0, 0, i, s, _, i, w = [], d, b), b), i, b, d, s, r ? w : b);
break;
default:
su(C, S, S, S, [""], b, 0, s, b);
}
}
c = u = h = 0, m = x = 1, _ = C = "", d = o;
break;
// :
case 58:
d = 1 + Lr(C), h = g;
default:
if (m < 1) {
if (v == 123)
--m;
else if (v == 125 && m++ == 0 && BI() == 125)
continue;
}
switch (C += ux(v), v * m) {
// &
case 38:
x = u > 0 ? 1 : (C += "\f", -1);
break;
// ,
case 44:
s[c++] = (Lr(C) - 1) * x, x = 1;
break;
// @
case 64:
Pa() === 45 && (C += rh(Cr())), f = Pa(), u = d = Lr(_ = C += KI(ou())), v++;
break;
// -
case 45:
g === 45 && Lr(C) == 2 && (m = 0);
}
}
return a;
}
function h5(e, t, n, r, i, a, o, s, l, c, u, d) {
for (var f = i - 1, h = i === 0 ? a : [""], g = tk(h), m = 0, y = 0, x = 0; m < r; ++m)
for (var v = 0, _ = Wo(e, f + 1, f = QT(y = o[m])), w = e; v < g; ++v)
(w = ek(y > 0 ? h[v] + " " + _ : Re(_, /&\f/g, h[v]))) && (l[x++] = w);
return Gd(e, t, n, i === 0 ? Ud : s, l, c, u, d);
}
function XI(e, t, n, r) {
return Gd(e, t, n, XT, ux(WI()), Wo(e, 2, -2), 0, r);
}
function p5(e, t, n,