UNPKG

access-simple

Version:

## Introduction `access-simple` is an open-source React library that provides an accessible menu component. This library is designed to enhance accessibility for end users with features like adjustable font sizes and contrast settings.

1,049 lines (1,046 loc) 147 kB
import * as M from "react"; import oe, { createContext as ct, useContext as ft, useState as an, useRef as it, useEffect as _e, forwardRef as be, useReducer as Hn } from "react"; var st = { exports: {} }, Ce = {}; /** * @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 Pt; function Kn() { if (Pt) return Ce; Pt = 1; var n = oe, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 }; function o(a, u, f) { var d, g = {}, c = null, h = null; f !== void 0 && (c = "" + f), u.key !== void 0 && (c = "" + u.key), u.ref !== void 0 && (h = u.ref); for (d in u) r.call(u, d) && !s.hasOwnProperty(d) && (g[d] = u[d]); if (a && a.defaultProps) for (d in u = a.defaultProps, u) g[d] === void 0 && (g[d] = u[d]); return { $$typeof: e, type: a, key: c, ref: h, props: g, _owner: i.current }; } return Ce.Fragment = t, Ce.jsx = o, Ce.jsxs = o, Ce; } var we = {}; /** * @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 jt; function Jn() { return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() { var n = oe, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m = Symbol.iterator, C = "@@iterator"; function E(l) { if (l === null || typeof l != "object") return null; var p = m && l[m] || l[C]; return typeof p == "function" ? p : null; } var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function v(l) { { for (var p = arguments.length, b = new Array(p > 1 ? p - 1 : 0), w = 1; w < p; w++) b[w - 1] = arguments[w]; $("error", l, b); } } function $(l, p, b) { { var w = S.ReactDebugCurrentFrame, T = w.getStackAddendum(); T !== "" && (p += "%s", b = b.concat([T])); var j = b.map(function(k) { return String(k); }); j.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, j); } } var O = !1, N = !1, R = !1, I = !1, W = !1, Z; Z = Symbol.for("react.module.reference"); function U(l) { return !!(typeof l == "string" || typeof l == "function" || l === r || l === s || W || l === i || l === f || l === d || I || l === h || O || N || R || typeof l == "object" && l !== null && (l.$$typeof === c || l.$$typeof === g || l.$$typeof === o || l.$$typeof === a || l.$$typeof === u || // 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 === Z || l.getModuleId !== void 0)); } function V(l, p, b) { var w = l.displayName; if (w) return w; var T = p.displayName || p.name || ""; return T !== "" ? b + "(" + T + ")" : b; } function Q(l) { return l.displayName || "Context"; } function G(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 t: return "Portal"; case s: return "Profiler"; case i: return "StrictMode"; case f: return "Suspense"; case d: return "SuspenseList"; } if (typeof l == "object") switch (l.$$typeof) { case a: var p = l; return Q(p) + ".Consumer"; case o: var b = l; return Q(b._context) + ".Provider"; case u: return V(l, l.render, "ForwardRef"); case g: var w = l.displayName || null; return w !== null ? w : G(l.type) || "Memo"; case c: { var T = l, j = T._payload, k = T._init; try { return G(k(j)); } catch { return null; } } } return null; } var D = Object.assign, J = 0, ne, re, B, ee, se, Se, mt; function bt() { } bt.__reactDisabledLog = !0; function vn() { { if (J === 0) { ne = console.log, re = console.info, B = console.warn, ee = console.error, se = console.group, Se = console.groupCollapsed, mt = console.groupEnd; var l = { configurable: !0, enumerable: !0, value: bt, writable: !0 }; Object.defineProperties(console, { info: l, log: l, warn: l, error: l, group: l, groupCollapsed: l, groupEnd: l }); } J++; } } function Sn() { { if (J--, J === 0) { var l = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: D({}, l, { value: ne }), info: D({}, l, { value: re }), warn: D({}, l, { value: B }), error: D({}, l, { value: ee }), group: D({}, l, { value: se }), groupCollapsed: D({}, l, { value: Se }), groupEnd: D({}, l, { value: mt }) }); } J < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var He = S.ReactCurrentDispatcher, Ke; function $e(l, p, b) { { if (Ke === void 0) try { throw Error(); } catch (T) { var w = T.stack.trim().match(/\n( *(at )?)/); Ke = w && w[1] || ""; } return ` ` + Ke + l; } } var Je = !1, Ae; { var xn = typeof WeakMap == "function" ? WeakMap : Map; Ae = new xn(); } function yt(l, p) { if (!l || Je) return ""; { var b = Ae.get(l); if (b !== void 0) return b; } var w; Je = !0; var T = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var j; j = He.current, He.current = null, vn(); try { if (p) { var k = function() { throw Error(); }; if (Object.defineProperty(k.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(k, []); } catch (Y) { w = Y; } Reflect.construct(l, [], k); } else { try { k.call(); } catch (Y) { w = Y; } l.call(k.prototype); } } else { try { throw Error(); } catch (Y) { w = Y; } l(); } } catch (Y) { if (Y && w && typeof Y.stack == "string") { for (var L = Y.stack.split(` `), H = w.stack.split(` `), F = L.length - 1, _ = H.length - 1; F >= 1 && _ >= 0 && L[F] !== H[_]; ) _--; for (; F >= 1 && _ >= 0; F--, _--) if (L[F] !== H[_]) { if (F !== 1 || _ !== 1) do if (F--, _--, _ < 0 || L[F] !== H[_]) { var q = ` ` + L[F].replace(" at new ", " at "); return l.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", l.displayName)), typeof l == "function" && Ae.set(l, q), q; } while (F >= 1 && _ >= 0); break; } } } finally { Je = !1, He.current = j, Sn(), Error.prepareStackTrace = T; } var fe = l ? l.displayName || l.name : "", ae = fe ? $e(fe) : ""; return typeof l == "function" && Ae.set(l, ae), ae; } function En(l, p, b) { return yt(l, !1); } function Cn(l) { var p = l.prototype; return !!(p && p.isReactComponent); } function Fe(l, p, b) { if (l == null) return ""; if (typeof l == "function") return yt(l, Cn(l)); if (typeof l == "string") return $e(l); switch (l) { case f: return $e("Suspense"); case d: return $e("SuspenseList"); } if (typeof l == "object") switch (l.$$typeof) { case u: return En(l.render); case g: return Fe(l.type, p, b); case c: { var w = l, T = w._payload, j = w._init; try { return Fe(j(T), p, b); } catch { } } } return ""; } var xe = Object.prototype.hasOwnProperty, vt = {}, St = S.ReactDebugCurrentFrame; function Me(l) { if (l) { var p = l._owner, b = Fe(l.type, l._source, p ? p.type : null); St.setExtraStackFrame(b); } else St.setExtraStackFrame(null); } function wn(l, p, b, w, T) { { var j = Function.call.bind(xe); for (var k in l) if (j(l, k)) { var L = void 0; try { if (typeof l[k] != "function") { var H = Error((w || "React class") + ": " + b + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw H.name = "Invariant Violation", H; } L = l[k](p, k, w, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (F) { L = F; } L && !(L instanceof Error) && (Me(T), 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).", w || "React class", b, k, typeof L), Me(null)), L instanceof Error && !(L.message in vt) && (vt[L.message] = !0, Me(T), v("Failed %s type: %s", b, L.message), Me(null)); } } } var On = Array.isArray; function Ye(l) { return On(l); } function Rn(l) { { var p = typeof Symbol == "function" && Symbol.toStringTag, b = p && l[Symbol.toStringTag] || l.constructor.name || "Object"; return b; } } function Ln(l) { try { return xt(l), !1; } catch { return !0; } } function xt(l) { return "" + l; } function Et(l) { if (Ln(l)) return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rn(l)), xt(l); } var Ee = S.ReactCurrentOwner, kn = { key: !0, ref: !0, __self: !0, __source: !0 }, Ct, wt, Ze; Ze = {}; function Nn(l) { if (xe.call(l, "ref")) { var p = Object.getOwnPropertyDescriptor(l, "ref").get; if (p && p.isReactWarning) return !1; } return l.ref !== void 0; } function In(l) { if (xe.call(l, "key")) { var p = Object.getOwnPropertyDescriptor(l, "key").get; if (p && p.isReactWarning) return !1; } return l.key !== void 0; } function Tn(l, p) { if (typeof l.ref == "string" && Ee.current && p && Ee.current.stateNode !== p) { var b = G(Ee.current.type); Ze[b] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Ee.current.type), l.ref), Ze[b] = !0); } } function Pn(l, p) { { var b = function() { Ct || (Ct = !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)", p)); }; b.isReactWarning = !0, Object.defineProperty(l, "key", { get: b, configurable: !0 }); } } function jn(l, p) { { var b = function() { wt || (wt = !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)", p)); }; b.isReactWarning = !0, Object.defineProperty(l, "ref", { get: b, configurable: !0 }); } } var $n = function(l, p, b, w, T, j, k) { var L = { // This tag allows us to uniquely identify this as a React Element $$typeof: e, // Built-in properties that belong on the element type: l, key: p, ref: b, props: k, // Record the component responsible for creating this element. _owner: j }; return L._store = {}, Object.defineProperty(L._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(L, "_self", { configurable: !1, enumerable: !1, writable: !1, value: w }), Object.defineProperty(L, "_source", { configurable: !1, enumerable: !1, writable: !1, value: T }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L; }; function An(l, p, b, w, T) { { var j, k = {}, L = null, H = null; b !== void 0 && (Et(b), L = "" + b), In(p) && (Et(p.key), L = "" + p.key), Nn(p) && (H = p.ref, Tn(p, T)); for (j in p) xe.call(p, j) && !kn.hasOwnProperty(j) && (k[j] = p[j]); if (l && l.defaultProps) { var F = l.defaultProps; for (j in F) k[j] === void 0 && (k[j] = F[j]); } if (L || H) { var _ = typeof l == "function" ? l.displayName || l.name || "Unknown" : l; L && Pn(k, _), H && jn(k, _); } return $n(l, L, H, T, w, Ee.current, k); } } var qe = S.ReactCurrentOwner, Ot = S.ReactDebugCurrentFrame; function ce(l) { if (l) { var p = l._owner, b = Fe(l.type, l._source, p ? p.type : null); Ot.setExtraStackFrame(b); } else Ot.setExtraStackFrame(null); } var Xe; Xe = !1; function Qe(l) { return typeof l == "object" && l !== null && l.$$typeof === e; } function Rt() { { if (qe.current) { var l = G(qe.current.type); if (l) return ` Check the render method of \`` + l + "`."; } return ""; } } function Fn(l) { { if (l !== void 0) { var p = l.fileName.replace(/^.*[\\\/]/, ""), b = l.lineNumber; return ` Check your code at ` + p + ":" + b + "."; } return ""; } } var Lt = {}; function Mn(l) { { var p = Rt(); if (!p) { var b = typeof l == "string" ? l : l.displayName || l.name; b && (p = ` Check the top-level render call using <` + b + ">."); } return p; } } function kt(l, p) { { if (!l._store || l._store.validated || l.key != null) return; l._store.validated = !0; var b = Mn(p); if (Lt[b]) return; Lt[b] = !0; var w = ""; l && l._owner && l._owner !== qe.current && (w = " It was passed a child from " + G(l._owner.type) + "."), ce(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.', b, w), ce(null); } } function Nt(l, p) { { if (typeof l != "object") return; if (Ye(l)) for (var b = 0; b < l.length; b++) { var w = l[b]; Qe(w) && kt(w, p); } else if (Qe(l)) l._store && (l._store.validated = !0); else if (l) { var T = E(l); if (typeof T == "function" && T !== l.entries) for (var j = T.call(l), k; !(k = j.next()).done; ) Qe(k.value) && kt(k.value, p); } } } function Bn(l) { { var p = l.type; if (p == null || typeof p == "string") return; var b; if (typeof p == "function") b = p.propTypes; else if (typeof p == "object" && (p.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. p.$$typeof === g)) b = p.propTypes; else return; if (b) { var w = G(p); wn(b, l.props, "prop", w, l); } else if (p.PropTypes !== void 0 && !Xe) { Xe = !0; var T = G(p); v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown"); } typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function _n(l) { { for (var p = Object.keys(l.props), b = 0; b < p.length; b++) { var w = p[b]; if (w !== "children" && w !== "key") { ce(l), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ce(null); break; } } l.ref !== null && (ce(l), v("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null)); } } var It = {}; function Tt(l, p, b, w, T, j) { { var k = U(l); if (!k) { var L = ""; (l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (L += " 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 H = Fn(T); H ? L += H : L += Rt(); var F; l === null ? F = "null" : Ye(l) ? F = "array" : l !== void 0 && l.$$typeof === e ? (F = "<" + (G(l.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : F = 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", F, L); } var _ = An(l, p, b, T, j); if (_ == null) return _; if (k) { var q = p.children; if (q !== void 0) if (w) if (Ye(q)) { for (var fe = 0; fe < q.length; fe++) Nt(q[fe], l); Object.freeze && Object.freeze(q); } 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 Nt(q, l); } if (xe.call(p, "key")) { var ae = G(l), Y = Object.keys(p).filter(function(Wn) { return Wn !== "key"; }), et = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!It[ae + et]) { var Gn = Y.length > 0 ? "{" + Y.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} />`, et, ae, Gn, ae), It[ae + et] = !0; } } return l === r ? _n(_) : Bn(_), _; } } function Dn(l, p, b) { return Tt(l, p, b, !0); } function zn(l, p, b) { return Tt(l, p, b, !1); } var Un = zn, Vn = Dn; we.Fragment = r, we.jsx = Un, we.jsxs = Vn; }()), we; } process.env.NODE_ENV === "production" ? st.exports = Kn() : st.exports = Jn(); var x = st.exports; function Yn() { if (console && console.warn) { for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++) e[t] = arguments[t]; typeof e[0] == "string" && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e); } } const $t = {}; function ot() { for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++) e[t] = arguments[t]; typeof e[0] == "string" && $t[e[0]] || (typeof e[0] == "string" && ($t[e[0]] = /* @__PURE__ */ new Date()), Yn(...e)); } const ln = (n, e) => () => { if (n.isInitialized) e(); else { const t = () => { setTimeout(() => { n.off("initialized", t); }, 0), e(); }; n.on("initialized", t); } }; function At(n, e, t) { n.loadNamespaces(e, ln(n, t)); } function Ft(n, e, t, r) { typeof t == "string" && (t = [t]), t.forEach((i) => { n.options.ns.indexOf(i) < 0 && n.options.ns.push(i); }), n.loadLanguages(e, ln(n, r)); } function Zn(n, e) { let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; const r = e.languages[0], i = e.options ? e.options.fallbackLng : !1, s = e.languages[e.languages.length - 1]; if (r.toLowerCase() === "cimode") return !0; const o = (a, u) => { const f = e.services.backendConnector.state[`${a}|${u}`]; return f === -1 || f === 2; }; return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(r, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(r, n) && (!i || o(s, n))); } function qn(n, e) { let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; return !e.languages || !e.languages.length ? (ot("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(n, { lng: t.lng, precheck: (i, s) => { if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !s(i.isLanguageChangingTo, n)) return !1; } }) : Zn(n, e, t); } const Xn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Qn = { "&amp;": "&", "&#38;": "&", "&lt;": "<", "&#60;": "<", "&gt;": ">", "&#62;": ">", "&apos;": "'", "&#39;": "'", "&quot;": '"', "&#34;": '"', "&nbsp;": " ", "&#160;": " ", "&copy;": "©", "&#169;": "©", "&reg;": "®", "&#174;": "®", "&hellip;": "…", "&#8230;": "…", "&#x2F;": "/", "&#47;": "/" }, er = (n) => Qn[n], tr = (n) => n.replace(Xn, er); let at = { bindI18n: "languageChanged", bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: tr }; function nr() { let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; at = { ...at, ...n }; } function rr() { return at; } let un; function ir(n) { un = n; } function sr() { return un; } const or = { type: "3rdParty", init(n) { nr(n.options.react), ir(n); } }, ar = ct(); class lr { constructor() { this.usedNamespaces = {}; } addUsedNamespaces(e) { e.forEach((t) => { this.usedNamespaces[t] || (this.usedNamespaces[t] = !0); }); } getUsedNamespaces() { return Object.keys(this.usedNamespaces); } } const ur = (n, e) => { const t = it(); return _e(() => { t.current = e ? t.current : n; }, [n, e]), t.current; }; function ye(n) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const { i18n: t } = e, { i18n: r, defaultNS: i } = ft(ar) || {}, s = t || r || sr(); if (s && !s.reportNamespaces && (s.reportNamespaces = new lr()), !s) { ot("You will need to pass in an i18next instance by using initReactI18next"); const $ = (N, R) => typeof R == "string" ? R : R && typeof R == "object" && typeof R.defaultValue == "string" ? R.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, O = [$, {}, !1]; return O.t = $, O.i18n = {}, O.ready = !1, O; } s.options.react && s.options.react.wait !== void 0 && ot("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour."); const o = { ...rr(), ...s.options.react, ...e }, { useSuspense: a, keyPrefix: u } = o; let f = n || i || s.options && s.options.defaultNS; f = typeof f == "string" ? [f] : f || ["translation"], s.reportNamespaces.addUsedNamespaces && s.reportNamespaces.addUsedNamespaces(f); const d = (s.isInitialized || s.initializedStoreOnce) && f.every(($) => qn($, s, o)); function g() { return s.getFixedT(e.lng || null, o.nsMode === "fallback" ? f : f[0], u); } const [c, h] = an(g); let m = f.join(); e.lng && (m = `${e.lng}${m}`); const C = ur(m), E = it(!0); _e(() => { const { bindI18n: $, bindI18nStore: O } = o; E.current = !0, !d && !a && (e.lng ? Ft(s, e.lng, f, () => { E.current && h(g); }) : At(s, f, () => { E.current && h(g); })), d && C && C !== m && E.current && h(g); function N() { E.current && h(g); } return $ && s && s.on($, N), O && s && s.store.on(O, N), () => { E.current = !1, $ && s && $.split(" ").forEach((R) => s.off(R, N)), O && s && O.split(" ").forEach((R) => s.store.off(R, N)); }; }, [s, m]); const S = it(!0); _e(() => { E.current && !S.current && h(g), S.current = !1; }, [s, u]); const v = [c, s, d]; if (v.t = c, v.i18n = s, v.ready = d, d || !d && !a) return v; throw new Promise(($) => { e.lng ? Ft(s, e.lng, f, () => $()) : At(s, f, () => $()); }); } const cr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", id: "Layer_1", "data-name": "Layer 1", viewBox: "0 0 122.88 122.88", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("title", null, "accessibility"), /* @__PURE__ */ M.createElement("path", { fill: "#fff", d: "M61.44,0A61.46,61.46,0,1,1,18,18,61.21,61.21,0,0,1,61.44,0Zm-.39,74.18L52.1,98.91a4.94,4.94,0,0,1-2.58,2.83A5,5,0,0,1,42.7,95.5l6.24-17.28a26.3,26.3,0,0,0,1.17-4,40.64,40.64,0,0,0,.54-4.18c.24-2.53.41-5.27.54-7.9s.22-5.18.29-7.29c.09-2.63-.62-2.8-2.73-3.3l-.44-.1-18-3.39A5,5,0,0,1,27.08,46a5,5,0,0,1,5.05-7.74l19.34,3.63c.77.07,1.52.16,2.31.25a57.64,57.64,0,0,0,7.18.53A81.13,81.13,0,0,0,69.9,42c.9-.1,1.75-.21,2.6-.29l18.25-3.42A5,5,0,0,1,94.5,39a5,5,0,0,1,1.3,7,5,5,0,0,1-3.21,2.09L75.15,51.37c-.58.13-1.1.22-1.56.29-1.82.31-2.72.47-2.61,3.06.08,1.89.31,4.15.61,6.51.35,2.77.81,5.71,1.29,8.4.31,1.77.6,3.19,1,4.55s.79,2.75,1.39,4.42l6.11,16.9a5,5,0,0,1-6.82,6.24,4.94,4.94,0,0,1-2.58-2.83L63,74.23,62,72.4l-1,1.78Zm.39-53.52a8.83,8.83,0,1,1-6.24,2.59,8.79,8.79,0,0,1,6.24-2.59Zm36.35,4.43a51.42,51.42,0,1,0,15,36.35,51.27,51.27,0,0,0-15-36.35Z" })), fr = be(cr), dr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 28, height: 28, viewBox: "0 0 28 28", fill: "none", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60782 7C8.92224 6.99968 9.20439 7.19283 9.31757 7.48588L14.1959 20.1174C14.347 20.5086 14.152 20.948 13.7605 21.0989C13.3689 21.2498 12.929 21.055 12.778 20.6639L11.1804 16.5274H6.05686L4.46965 20.6624C4.3194 21.0538 3.87992 21.2495 3.48805 21.0995C3.09619 20.9494 2.90032 20.5103 3.05058 20.1189L7.89905 7.48733C8.01162 7.19406 8.29338 7.00032 8.60782 7ZM8.61078 9.87374L10.6821 15.2369H6.55218L8.61078 9.87374ZM19.5644 10.7303C17.0708 10.7303 15.1725 12.9752 15.1725 15.8963C15.1725 18.9692 17.2227 21.0623 19.5644 21.0623C20.8144 21.0623 22.1108 20.5413 22.9922 19.5585V20.3299C22.9922 20.7072 23.2983 21.0131 23.6761 21.0131C24.0538 21.0131 24.36 20.7072 24.36 20.3299V11.5091C24.36 11.1318 24.0538 10.8259 23.6761 10.8259C23.2983 10.8259 22.9922 11.1318 22.9922 11.5091V12.273C22.1579 11.3284 20.9223 10.7303 19.5644 10.7303ZM22.9922 17.7007V13.9108C22.3988 12.8163 21.1488 12.0216 19.8499 12.0216C18.3636 12.0216 16.7316 13.4005 16.7316 15.8961C16.7316 18.2398 18.2116 19.7705 19.8499 19.7705C21.1924 19.7705 22.411 18.7589 22.9922 17.7007Z", fill: "white" }), /* @__PURE__ */ M.createElement("rect", { x: 0.5, y: 0.5, width: 27, height: 27, rx: 4.5, stroke: "white" })), gr = be(dr), pr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.6064 1.68975C13.7734 1.51686 13.8658 1.28531 13.8637 1.04496C13.8616 0.804615 13.7652 0.574704 13.5953 0.404747C13.4253 0.234789 13.1954 0.138384 12.955 0.136296C12.7147 0.134207 12.4831 0.226602 12.3103 0.393581L7 5.70383L1.68975 0.393581C1.51687 0.226602 1.28532 0.134207 1.04497 0.136296C0.804622 0.138384 0.57471 0.234789 0.404753 0.404747C0.234795 0.574704 0.13839 0.804615 0.136302 1.04496C0.134213 1.28531 0.226608 1.51686 0.393587 1.68975L5.70384 7L0.393587 12.3102C0.306036 12.3948 0.236202 12.496 0.18816 12.6078C0.140119 12.7196 0.114831 12.8399 0.113774 12.9616C0.112716 13.0833 0.135909 13.204 0.182 13.3167C0.228091 13.4294 0.296156 13.5317 0.382224 13.6178C0.468293 13.7038 0.57064 13.7719 0.683295 13.818C0.79595 13.8641 0.916657 13.8873 1.03837 13.8862C1.16009 13.8852 1.28037 13.8599 1.39221 13.8118C1.50404 13.7638 1.60519 13.694 1.68975 13.6064L7 8.29616L12.3103 13.6064C12.4831 13.7734 12.7147 13.8658 12.955 13.8637C13.1954 13.8616 13.4253 13.7652 13.5953 13.5952C13.7652 13.4253 13.8616 13.1954 13.8637 12.955C13.8658 12.7147 13.7734 12.4831 13.6064 12.3102L8.29617 7L13.6064 1.68975Z", fill: "white" })), hr = be(pr), mr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 26, height: 26, viewBox: "0 0 26 26", fill: "none", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("g", { clipPath: "url(#clip0_241_3)" }, /* @__PURE__ */ M.createElement("path", { d: "M5.03125 18.9531C4.64583 18.9531 4.3151 18.8151 4.03906 18.5391C3.76302 18.263 3.625 17.9323 3.625 17.5469C3.625 17.1615 3.76302 16.8307 4.03906 16.5547C4.3151 16.2786 4.64583 16.1406 5.03125 16.1406C5.41667 16.1406 5.7474 16.2786 6.02344 16.5547C6.29948 16.8307 6.4375 17.1615 6.4375 17.5469C6.4375 17.8021 6.3724 18.0365 6.24219 18.25C6.11719 18.4635 5.94792 18.6354 5.73438 18.7656C5.52604 18.8906 5.29167 18.9531 5.03125 18.9531ZM5.03125 10.8594C4.64583 10.8594 4.3151 10.7214 4.03906 10.4453C3.76302 10.1693 3.625 9.83854 3.625 9.45312C3.625 9.06771 3.76302 8.73698 4.03906 8.46094C4.3151 8.1849 4.64583 8.04687 5.03125 8.04687C5.41667 8.04687 5.7474 8.1849 6.02344 8.46094C6.29948 8.73698 6.4375 9.06771 6.4375 9.45312C6.4375 9.70833 6.3724 9.94271 6.24219 10.1562C6.11719 10.3698 5.94792 10.5417 5.73438 10.6719C5.52604 10.7969 5.29167 10.8594 5.03125 10.8594ZM14.9336 21H9.99609V5H15.1523C16.7044 5 18.0326 5.32031 19.1367 5.96094C20.2409 6.59635 21.0872 7.51042 21.6758 8.70312C22.2643 9.89062 22.5586 11.3125 22.5586 12.9687C22.5586 14.6354 22.2617 16.0703 21.668 17.2734C21.0742 18.4714 20.2096 19.3932 19.0742 20.0391C17.9388 20.6797 16.5586 21 14.9336 21ZM11.9336 19.2812H14.8086C16.1315 19.2812 17.2279 19.026 18.0977 18.5156C18.9674 18.0052 19.6159 17.2786 20.043 16.3359C20.4701 15.3932 20.6836 14.2708 20.6836 12.9687C20.6836 11.6771 20.4727 10.5651 20.0508 9.63281C19.6289 8.69531 18.9987 7.97656 18.1602 7.47656C17.3216 6.97135 16.2773 6.71875 15.0273 6.71875H11.9336V19.2812Z", fill: "white" })), /* @__PURE__ */ M.createElement("rect", { x: 0.5, y: 0.5, width: 25, height: 25, rx: 3.5, stroke: "white" }), /* @__PURE__ */ M.createElement("defs", null, /* @__PURE__ */ M.createElement("clipPath", { id: "clip0_241_3" }, /* @__PURE__ */ M.createElement("rect", { width: 26, height: 26, rx: 4, fill: "white" })))), br = be(mr), yr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 26, height: 26, viewBox: "0 0 26 26", fill: "none", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("path", { d: "M20.5 5.5V20.5M20.5 5.5L23.5 8.5M20.5 5.5L17.5 8.5M20.5 20.5L23.5 17.5M20.5 20.5L17.5 17.5M1.99998 5.5H15M8.49999 5.5C8.49999 5.5 8.49999 15.8463 8.49999 20.5", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("rect", { x: 0.5, y: 0.5, width: 25, height: 25, rx: 3.5, stroke: "white" })), de = be(yr), vr = (n, e) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 26, height: 26, viewBox: "0 0 26 26", fill: "none", role: "img", className: "cw-svg", ref: e, ...n }, /* @__PURE__ */ M.createElement("path", { d: "M2.16666 19.5H23.8333M2.16666 19.5L5.41666 16.25M2.16666 19.5L5.41666 22.75M23.8333 19.5L20.5833 16.25M23.8333 19.5L20.5833 22.75M7.58333 3.25H18.4167M13 3.25V15.1667", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("rect", { x: 0.5, y: 0.5, width: 25, height: 25, rx: 3.5, stroke: "white" })), Sr = be(vr); var X; (function(n) { n[n.INCREASE = 0] = "INCREASE", n[n.TOGGLE = 1] = "TOGGLE"; })(X || (X = {})); var Te; (function(n) { n.FONT_SIZE = "font-size", n.LETTER_SPACING = "letter-spacing", n.LINE_HEIGHT = "line-height"; })(Te || (Te = {})); const xr = (n) => { if (!document) return; const e = document.body, r = 1 + (n ? 50 : 0) / 100; e.style.filter = `contrast(${r})`; }, Er = (n) => { if (!document) return; const e = document.body; n ? e.style.filter = "invert(1)" : e.style.filter = e.style.filter.replace("invert(1)", ""); }; let tt = 1, Mt = 0; const Cr = (n) => { if (!document) return; tt = (100 + n + Mt) / 100, Mt += n, document.body.style.transformOrigin = "0 0", document.body.style.transform = `scale(${tt})`, document.querySelectorAll(".accessibleMenu").forEach((t) => { const r = 1 / tt; t.style.transformOrigin = "0 0", t.style.transform = `scale(${r})`; }); }, wr = (n) => { if (!document) return; document.querySelectorAll("*:not(.accessibleMenu, .accessibleMenu *)").forEach((t) => { const r = window.getComputedStyle(t, null).getPropertyValue("width"), i = window.getComputedStyle(t, null).getPropertyValue("height"); if (r.endsWith("px") && i.endsWith("px")) { const s = parseFloat(r) * (1 + n / 100), o = parseFloat(i) * (1 + n / 100); t.style.width = `${s}px`, t.style.height = `${o}px`; } }); }, Or = (n) => { document.querySelectorAll("*").forEach((t) => { n ? (t.style.animation = "none", t.style.transition = "none") : (t.style.animation = "", t.style.transition = ""); }); }, dt = null, gt = "accessibleMenu", Ge = (n, e, t, r) => { if (!n || n.classList.contains(r)) return; const i = window.getComputedStyle(n, null).getPropertyValue(e), o = (parseFloat(i) || 1) * (1 + t / 100); n.style[e] = `${o}px`; for (const a of n.children) Ge(a, e, t, r); }, Rr = (n) => Ge(dt, Te.FONT_SIZE, n, gt), Lr = (n) => Ge(dt, Te.LETTER_SPACING, n, gt), kr = (n) => Ge(dt, Te.LINE_HEIGHT, n, gt), Nr = () => { const { t: n } = ye(); return [ { groupName: n("FONT_CONFIG.TITLE"), content: [ { name: n("FONT_CONFIG.SIZE"), key: "font-size", inputType: X.INCREASE, icon: /* @__PURE__ */ x.jsx(gr, { className: "toolsList-item-icon" }), featureFunction: Rr }, { name: n("FONT_CONFIG.SPACING"), key: "font-spacing", inputType: X.INCREASE, icon: /* @__PURE__ */ x.jsx(Sr, { className: "toolsList-item-icon" }), featureFunction: Lr }, { name: n("FONT_CONFIG.LINE_HEIGHT"), key: "font-line-height", inputType: X.INCREASE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: kr } ] }, { groupName: n("COLOR_CONFIG.TITLE"), content: [ { name: n("COLOR_CONFIG.INCREASE_CONTRAST"), key: "color-contrast", inputType: X.TOGGLE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: xr }, { name: n("COLOR_CONFIG.INVERT_COLOR"), key: "color-invert", inputType: X.TOGGLE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: Er } ] }, { groupName: n("OTHER_CONFIG.TITLE"), content: [ { name: n("OTHER_CONFIG.ZOOM"), key: "zoom", inputType: X.INCREASE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: Cr }, { name: n("OTHER_CONFIG.INCREASE_ELEMENTS"), key: "elements-increase", inputType: X.INCREASE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: wr }, { name: n("OTHER_CONFIG.DISABLE_ANIMATIONS"), key: "disable-animation", inputType: X.TOGGLE, icon: /* @__PURE__ */ x.jsx(de, { className: "toolsList-item-icon" }), featureFunction: Or } ] } ]; }, cn = { "font-size": 0, "font-spacing": 0, "font-line-height": 0, "color-contrast": !1, "color-invert": !1, zoom: 0, "elements-increase": 0, "disable-animation": !1 }, fn = ct(cn), dn = ct({}), Ir = ({ children: n }) => { const [e, t] = Hn(Tr, cn); return /* @__PURE__ */ x.jsx(fn.Provider, { value: e, children: /* @__PURE__ */ x.jsx(dn.Provider, { value: t, children: n }) }); }, gn = () => ft(fn), pt = () => ft(dn), Tr = (n, e) => { switch (e.type) { case "reset": return { "font-size": 0, "font-spacing": 0, "font-line-height": 0, "color-contrast": !1, "color-invert": !1, zoom: 0, "elements-increase": 0, "disable-animation": !1 }; case "font-size": return n["font-size"] = e.value, Object.assign({}, n); case "font-spacing": return n["font-spacing"] = e.value, Object.assign({}, n); case "font-line-height": return n["font-line-height"] = e.value, Object.assign({}, n); case "color-contrast": return n["color-contrast"] = e.value, Object.assign({}, n); case "color-invert": return n["color-invert"] = e.value, Object.assign({}, n); case "disable-animation": return n["disable-animation"] = e.value, Object.assign({}, n); case "zoom": return n.zoom = e.value, Object.assign({}, n); case "elements-increase": return n["elements-increase"] = e.value, Object.assign({}, n); default: throw Error("Unknown action: " + e.type); } }; var P = "colors", K = "sizes", y = "space", Pr = { gap: y, gridGap: y, columnGap: y, gridColumnGap: y, rowGap: y, gridRowGap: y, inset: y, insetBlock: y, insetBlockEnd: y, insetBlockStart: y, insetInline: y, insetInlineEnd: y, insetInlineStart: y, margin: y, marginTop: y, marginRight: y, marginBottom: y, marginLeft: y, marginBlock: y, marginBlockEnd: y, marginBlockStart: y, marginInline: y, marginInlineEnd: y, marginInlineStart: y, padding: y, paddingTop: y, paddingRight: y, paddingBottom: y, paddingLeft: y, paddingBlock: y, paddingBlockEnd: y, paddingBlockStart: y, paddingInline: y, paddingInlineEnd: y, paddingInlineStart: y, top: y, right: y, bottom: y, left: y, scrollMargin: y, scrollMarginTop: y, scrollMarginRight: y, scrollMarginBottom: y, scrollMarginLeft: y, scrollMarginX: y, scrollMarginY: y, scrollMarginBlock: y, scrollMarginBlockEnd: y, scrollMarginBlockStart: y, scrollMarginInline: y, scrollMarginInlineEnd: y, scrollMarginInlineStart: y, scrollPadding: y, scrollPaddingTop: y, scrollPaddingRight: y, scrollPaddingBottom: y, scrollPaddingLeft: y, scrollPaddingX: y, scrollPaddingY: y, scrollPaddingBlock: y, scrollPaddingBlockEnd: y, scrollPaddingBlockStart: y, scrollPaddingInline: y, scrollPaddingInlineEnd: y, scrollPaddingInlineStart: y, fontSize: "fontSizes", background: P, backgroundColor: P, backgroundImage: P, borderImage: P, border: P, borderBlock: P, borderBlockEnd: P, borderBlockStart: P, borderBottom: P, borderBottomColor: P, borderColor: P, borderInline: P, borderInlineEnd: P, borderInlineStart: P, borderLeft: P, borderLeftColor: P, borderRight: P, borderRightColor: P, borderTop: P, borderTopColor: P, caretColor: P, color: P, columnRuleColor: P, fill: P, outline: P, outlineColor: P, stroke: P, textDecorationColor: P, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: K, minBlockSize: K, maxBlockSize: K, inlineSize: K, minInlineSize: K, maxInlineSize: K, width: K, minWidth: K, maxWidth: K, height: K, minHeight: K, maxHeight: K, flexBasis: K, gridTemplateColumns: K, gridTemplateRows: K, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, jr = (n, e) => typeof e == "function" ? { "()": Function.prototype.toString.call(e) } : e, ve = () => { const n = /* @__PURE__ */ Object.create(null); return (e, t, ...r) => { const i = ((s) => JSON.stringify(s, jr))(e); return i in n ? n[i] : n[i] = t(e, ...r); }; }, le = Symbol.for("sxs.internal"), ht = (n, e) => Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)), Bt = (n) => { for (const e in n) return !0; return !1; }, { hasOwnProperty: $r } = Object.prototype, lt = (n) => n.includes("-") ? n : n.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase()), Ar = /\s+(?![^()]*\))/, ge = (n) => (e) => n(...typeof e == "string" ? String(e).split(Ar) : [e]), _t = { appearance: (n) => ({ WebkitAppearance: n, appearance: n }), backfaceVisibility: (n) => ({ WebkitBackfaceVisibility: n, backfaceVisibility: n }), backdropFilter: (n) => ({ WebkitBackdropFilter: n, backdropFilter: n }), backgroundClip: (n) => ({ WebkitBackgroundClip: n, backgroundClip: n }), boxDecorationBreak: (n) => ({ WebkitBoxDecorationBreak: n, boxDecorationBreak: n }), clipPath: (n) => ({ WebkitClipPath: n, clipPath: n }), content: (n) => ({ content: n.includes('"') || n.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n) ? n : `"${n}"` }), hyphens: (n) => ({ WebkitHyphens: n, hyphens: n }), maskImage: (n) => ({ WebkitMaskImage: n, maskImage: n }), maskSize: (n) => ({ WebkitMaskSize: n, maskSize: n }), tabSize: (n) => ({ MozTabSize: n, tabSize: n }), textSizeAdjust: (n) => ({ WebkitTextSizeAdjust: n, textSizeAdjust: n }), userSelect: (n) => ({ WebkitUserSelect: n, userSelect: n }), marginBlock: ge((n, e) => ({ marginBlockStart: n, marginBlockEnd: e || n })), marginInline: ge((n, e) => ({ marginInlineStart: n, marginInlineEnd: e || n })), maxSize: ge((n, e) => ({ maxBlockSize: n, maxInlineSize: e || n })), minSize: ge((n, e) => ({ minBlockSize: n, minInlineSize: e || n })), paddingBlock: ge((n, e) => ({ paddingBlockStart: n, paddingBlockEnd: e || n })), paddingInline: ge((n, e) => ({ paddingInlineStart: n, paddingInlineEnd: e || n })) }, nt = /([\d.]+)([^]*)/, Fr = (n, e) => n.length ? n.reduce((t, r) => (t.push(...e.map((i) => i.includes("&") ? i.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(i) ? `:is(${r})` : r) : r + " " + i)), t), []) : e, Mr = (n, e) => n in Br && typeof e == "string" ? e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (t, r, i, s) => r + (i === "stretch" ? `-moz-available${s};${lt(n)}:${r}-webkit-fill-available` : `-moz-fit-content${s};${lt(n)}:${r}fit-content`) + s) : String(e), Br = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ie = (n) => n ? n + "-" : "", pn = (n, e, t) => n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, i, s, o, a) => o == "$" == !!s ? r : (i || o == "--" ? "calc(" : "") + "var(--" + (o === "$" ? ie(e) + (a.includes("$") ? "" : ie(t)) + a.replace(/\$/g, "-") : a) + ")" + (i || o == "--" ? "*" + (i || "") + (s || "1") + ")" : "")), _r = /\s*,\s*(?![^()]*\))/, Dr = Object.prototype.toString, me = (n, e, t, r, i) => { let s, o, a; const u = (f, d, g) => { let c, h; const m = (C) => { for (c in C) { const v = c.charCodeAt(0) === 64, $ = v && Array.isArray(C[c]) ? C[c] : [C[c]]; for (h of $) { const O = /[A-Z]/.test(S = c) ? S : S.replace(/-[^]/g, (R) => R[1].toUpperCase()), N = typeof h == "object" && h && h.toString === Dr && (!r.utils[O] || !d.length); if (O in r.utils && !N) { const R = r.utils[O]; if (R !== o) { o = R, m(R(h)), o = null; continue; } } else if (O in _t) { const R = _t[O]; if (R !== a) { a = R, m(R(h)), a = null; continue; } } if (v && (E = c.slice(1) in r.media ? "@media " + r.media[c.slice(1)] : c, c = E.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (R, I, W, Z, U, V) => { const Q = nt.test(I), G = 0.0625 * (Q ? -1 : 1), [D, J] = Q ? [Z, I] : [I, Z]; return "(" + (W[0] === "=" ? "" : W[0] === ">" === Q ? "max-" : "min-") + D + ":" + (W[0] !== "=" && W.length === 1 ? J.replace(nt, (ne, re, B) => Number(re) + G * (W === ">" ? 1 : -1) + B) : J) + (U ? ") and (" + (U[0] === ">" ? "min-" : "max-") + D + ":" + (U.length === 1 ? V.replace(nt, (ne, re, B) => Number(re) + G * (U === ">" ? -1 : 1) + B) : V) : "") + ")"; })), N) { const R = v ? g.concat(c) : [...g], I = v ? [...d] : Fr(d, c.split(_r)); s !== void 0 && i(Dt(...s)), s = void 0, u(h, I, R); } else s === void 0 && (s = [[], d, g]), c = v || c.charCodeAt(0) !== 36 ? c : `--${ie(r.prefix)}${c.slice(1).replace(/\$/g, "-")}`, h = N ? h : typeof h == "number" ? h && O in zr ? String(h) + "px" : String(h) : pn(Mr(O, h ?? ""), r.prefix, r.themeMap[O]), s[0].push(`${v ? `${c} ` : `${lt(c)}:`}${h}`); } } var E, S; }; m(f), s !== void 0 && i(Dt(...s)), s = void 0; }; u(n, e, t); }, Dt = (n, e, t) => `${t.map((r) => `${r}{`).join("")}${e.length ? `${e.join(",")}{` : ""}${n.join(";")}${e.length ? "}" : ""}${Array(t.length ? t.length + 1 : 0).join("}")}`, zr = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1