const __vite__mapDeps = ( i, m = __vite__mapDeps, d = m.f || (m.f = [ "assets/Color-AVL7NMMY-Doxq8aw5.js", "assets/iframe-D_aMTKb2.js", "assets/preload-helper-DIZFD4sK.js", "assets/iframe-7VPDhVZ9.css", "assets/react-18-TXN0K6I-.js", "assets/jsx-runtime-C_nHp4yK.js", "assets/index-O1jB17X4.js", ]), ) => i.map((i) => d[i]); import { _ as cc } from "./preload-helper-DIZFD4sK.js"; import { r as b, g as R2, a as P2, R as h, V as oh, h as Fp, T as Tl, } from "./iframe-D_aMTKb2.js"; import { renderElement as I2, unmountElement as L2, } from "./react-18-TXN0K6I-.js"; import { j as q } from "./jsx-runtime-C_nHp4yK.js"; var B2 = Object.defineProperty, O = (e, t) => B2(e, "name", { value: t, configurable: !0 }); const { once: N2 } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { FORCE_REMOUNT: _p, SET_CURRENT_STORY: j2, STORY_RENDER_PHASE_CHANGED: M2, } = __STORYBOOK_MODULE_CORE_EVENTS__, { global: dt } = __STORYBOOK_MODULE_GLOBAL__; var z2 = { reset: [0, 0], bold: [1, 22, "\x1B[22m\x1B[1m"], dim: [2, 22, "\x1B[22m\x1B[2m"], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], }, H2 = Object.entries(z2); function ki(e) { return String(e); } O(ki, "a"); ki.open = ""; ki.close = ""; function ah(e = !1) { let t = typeof process < "u" ? process : void 0, r = t?.env || {}, n = t?.argv || []; return ( (!("NO_COLOR" in r || n.includes("--no-color")) && ("FORCE_COLOR" in r || n.includes("--color") || t?.platform === "win32" || (e && r.TERM !== "dumb") || "CI" in r)) || (typeof window < "u" && !!window.chrome) ); } O(ah, "C"); function ih(e = !1) { let t = ah(e), r = O((i, l, s, u) => { let d = "", p = 0; do ((d += i.substring(p, u) + s), (p = u + l.length), (u = i.indexOf(l, p))); while (~u); return d + i.substring(p); }, "i"), n = O((i, l, s = i) => { let u = O((d) => { let p = String(d), c = p.indexOf(l, i.length); return ~c ? i + r(p, l, s, c) + l : i + p + l; }, "o"); return ((u.open = i), (u.close = l), u); }, "g"), o = { isColorSupported: t }, a = O((i) => `\x1B[${i}m`, "d"); for (let [i, l] of H2) o[i] = t ? n(a(l[0]), a(l[1]), l[2]) : ki; return o; } O(ih, "p"); var tr = ih(); function dc(e, t) { return ( t.forEach(function (r) { r && typeof r != "string" && !Array.isArray(r) && Object.keys(r).forEach(function (n) { if (n !== "default" && !(n in e)) { var o = Object.getOwnPropertyDescriptor(r, n); Object.defineProperty( e, n, o.get ? o : { enumerable: !0, get: O(function () { return r[n]; }, "get"), }, ); } }); }), Object.freeze(e) ); } O(dc, "_mergeNamespaces"); function lh(e, t) { let r = Object.keys(e), n = t === null ? r : r.sort(t); if (Object.getOwnPropertySymbols) for (let o of Object.getOwnPropertySymbols(e)) Object.getOwnPropertyDescriptor(e, o).enumerable && n.push(o); return n; } O(lh, "getKeysOfEnumerableProperties"); function oo(e, t, r, n, o, a, i = ": ") { let l = "", s = 0, u = e.next(); if (!u.done) { l += t.spacingOuter; let d = r + t.indent; for (; !u.done; ) { if (((l += d), s++ === t.maxWidth)) { l += "…"; break; } let p = a(u.value[0], t, d, n, o), c = a(u.value[1], t, d, n, o); ((l += p + i + c), (u = e.next()), u.done ? t.min || (l += ",") : (l += `,${t.spacingInner}`)); } l += t.spacingOuter + r; } return l; } O(oo, "printIteratorEntries"); function Oi(e, t, r, n, o, a) { let i = "", l = 0, s = e.next(); if (!s.done) { i += t.spacingOuter; let u = r + t.indent; for (; !s.done; ) { if (((i += u), l++ === t.maxWidth)) { i += "…"; break; } ((i += a(s.value, t, u, n, o)), (s = e.next()), s.done ? t.min || (i += ",") : (i += `,${t.spacingInner}`)); } i += t.spacingOuter + r; } return i; } O(Oi, "printIteratorValues"); function Vo(e, t, r, n, o, a) { let i = ""; e = e instanceof ArrayBuffer ? new DataView(e) : e; let l = O((u) => u instanceof DataView, "isDataView"), s = l(e) ? e.byteLength : e.length; if (s > 0) { i += t.spacingOuter; let u = r + t.indent; for (let d = 0; d < s; d++) { if (((i += u), d === t.maxWidth)) { i += "…"; break; } ((l(e) || d in e) && (i += a(l(e) ? e.getInt8(d) : e[d], t, u, n, o)), d < s - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); } i += t.spacingOuter + r; } return i; } O(Vo, "printListItems"); function Fi(e, t, r, n, o, a) { let i = "", l = lh(e, t.compareKeys); if (l.length > 0) { i += t.spacingOuter; let s = r + t.indent; for (let u = 0; u < l.length; u++) { let d = l[u], p = a(d, t, s, n, o), c = a(e[d], t, s, n, o); ((i += `${s + p}: ${c}`), u < l.length - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); } i += t.spacingOuter + r; } return i; } O(Fi, "printObjectProperties"); var U2 = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, Rl = " ", W2 = O((e, t, r, n, o, a) => { let i = e.toString(); if (i === "ArrayContaining" || i === "ArrayNotContaining") return ++n > t.maxDepth ? `[${i}]` : `${i + Rl}[${Vo(e.sample, t, r, n, o, a)}]`; if (i === "ObjectContaining" || i === "ObjectNotContaining") return ++n > t.maxDepth ? `[${i}]` : `${i + Rl}{${Fi(e.sample, t, r, n, o, a)}}`; if ( i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining" ) return i + Rl + a(e.sample, t, r, n, o); if (typeof e.toAsymmetricMatcher != "function") throw new TypeError( `Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`, ); return e.toAsymmetricMatcher(); }, "serialize$5"), V2 = O((e) => e && e.$$typeof === U2, "test$5"), q2 = { serialize: W2, test: V2 }, G2 = " ", sh = new Set(["DOMStringMap", "NamedNodeMap"]), Y2 = /^(?:HTML\w*Collection|NodeList)$/; function uh(e) { return sh.has(e) || Y2.test(e); } O(uh, "testName"); var K2 = O( (e) => e && e.constructor && !!e.constructor.name && uh(e.constructor.name), "test$4", ); function ch(e) { return e.constructor.name === "NamedNodeMap"; } O(ch, "isNamedNodeMap"); var X2 = O((e, t, r, n, o, a) => { let i = e.constructor.name; return ++n > t.maxDepth ? `[${i}]` : (t.min ? "" : i + G2) + (sh.has(i) ? `{${Fi(ch(e) ? [...e].reduce((l, s) => ((l[s.name] = s.value), l), {}) : { ...e }, t, r, n, o, a)}}` : `[${Vo([...e], t, r, n, o, a)}]`); }, "serialize$4"), Z2 = { serialize: X2, test: K2 }; function pc(e) { return e.replaceAll("<", "<").replaceAll(">", ">"); } O(pc, "escapeHTML"); function _i(e, t, r, n, o, a, i) { let l = n + r.indent, s = r.colors; return e .map((u) => { let d = t[u], p = i(d, r, l, o, a); return ( typeof d != "string" && (p.includes(` `) && (p = r.spacingOuter + l + p + r.spacingOuter + n), (p = `{${p}}`)), `${r.spacingInner + n + s.prop.open + u + s.prop.close}=${s.value.open}${p}${s.value.close}` ); }) .join(""); } O(_i, "printProps"); function Ti(e, t, r, n, o, a) { return e .map( (i) => t.spacingOuter + r + (typeof i == "string" ? fc(i, t) : a(i, t, r, n, o)), ) .join(""); } O(Ti, "printChildren"); function fc(e, t) { let r = t.colors.content; return r.open + pc(e) + r.close; } O(fc, "printText"); function dh(e, t) { let r = t.colors.comment; return `${r.open}${r.close}`; } O(dh, "printComment"); function Ri(e, t, r, n, o) { let a = n.colors.tag; return `${a.open}<${e}${t && a.close + t + n.spacingOuter + o + a.open}${r ? `>${a.close}${r}${n.spacingOuter}${o}${a.open}${a.close}`; } O(Ri, "printElement"); function Pi(e, t) { let r = t.colors.tag; return `${r.open}<${e}${r.close} …${r.open} />${r.close}`; } O(Pi, "printElementAsLeaf"); var J2 = 1, ph = 3, fh = 8, gh = 11, Q2 = /^(?:(?:HTML|SVG)\w*)?Element$/; function mh(e) { try { return typeof e.hasAttribute == "function" && e.hasAttribute("is"); } catch { return !1; } } O(mh, "testHasAttribute"); function hh(e) { let t = e.constructor.name, { nodeType: r, tagName: n } = e, o = (typeof n == "string" && n.includes("-")) || mh(e); return ( (r === J2 && (Q2.test(t) || o)) || (r === ph && t === "Text") || (r === fh && t === "Comment") || (r === gh && t === "DocumentFragment") ); } O(hh, "testNode"); var eC = O((e) => { var t; return ( (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && hh(e) ); }, "test$3"); function yh(e) { return e.nodeType === ph; } O(yh, "nodeIsText"); function bh(e) { return e.nodeType === fh; } O(bh, "nodeIsComment"); function Ra(e) { return e.nodeType === gh; } O(Ra, "nodeIsFragment"); var tC = O((e, t, r, n, o, a) => { if (yh(e)) return fc(e.data, t); if (bh(e)) return dh(e.data, t); let i = Ra(e) ? "DocumentFragment" : e.tagName.toLowerCase(); return ++n > t.maxDepth ? Pi(i, t) : Ri( i, _i( Ra(e) ? [] : Array.from(e.attributes, (l) => l.name).sort(), Ra(e) ? {} : [...e.attributes].reduce( (l, s) => ((l[s.name] = s.value), l), {}, ), t, r + t.indent, n, o, a, ), Ti( Array.prototype.slice.call(e.childNodes || e.children), t, r + t.indent, n, o, a, ), t, r, ); }, "serialize$3"), rC = { serialize: tC, test: eC }, nC = "@@__IMMUTABLE_ITERABLE__@@", oC = "@@__IMMUTABLE_LIST__@@", aC = "@@__IMMUTABLE_KEYED__@@", iC = "@@__IMMUTABLE_MAP__@@", Tp = "@@__IMMUTABLE_ORDERED__@@", lC = "@@__IMMUTABLE_RECORD__@@", sC = "@@__IMMUTABLE_SEQ__@@", uC = "@@__IMMUTABLE_SET__@@", cC = "@@__IMMUTABLE_STACK__@@", In = O((e) => `Immutable.${e}`, "getImmutableName"), Ii = O((e) => `[${e}]`, "printAsLeaf"), qo = " ", Rp = "…"; function vh(e, t, r, n, o, a, i) { return ++n > t.maxDepth ? Ii(In(i)) : `${In(i) + qo}{${oo(e.entries(), t, r, n, o, a)}}`; } O(vh, "printImmutableEntries"); function xh(e) { let t = 0; return { next() { if (t < e._keys.length) { let r = e._keys[t++]; return { done: !1, value: [r, e.get(r)] }; } return { done: !0, value: void 0 }; }, }; } O(xh, "getRecordEntries"); function Eh(e, t, r, n, o, a) { let i = In(e._name || "Record"); return ++n > t.maxDepth ? Ii(i) : `${i + qo}{${oo(xh(e), t, r, n, o, a)}}`; } O(Eh, "printImmutableRecord"); function wh(e, t, r, n, o, a) { let i = In("Seq"); return ++n > t.maxDepth ? Ii(i) : e[aC] ? `${i + qo}{${e._iter || e._object ? oo(e.entries(), t, r, n, o, a) : Rp}}` : `${i + qo}[${e._iter || e._array || e._collection || e._iterable ? Oi(e.values(), t, r, n, o, a) : Rp}]`; } O(wh, "printImmutableSeq"); function Pa(e, t, r, n, o, a, i) { return ++n > t.maxDepth ? Ii(In(i)) : `${In(i) + qo}[${Oi(e.values(), t, r, n, o, a)}]`; } O(Pa, "printImmutableValues"); var dC = O( (e, t, r, n, o, a) => e[iC] ? vh(e, t, r, n, o, a, e[Tp] ? "OrderedMap" : "Map") : e[oC] ? Pa(e, t, r, n, o, a, "List") : e[uC] ? Pa(e, t, r, n, o, a, e[Tp] ? "OrderedSet" : "Set") : e[cC] ? Pa(e, t, r, n, o, a, "Stack") : e[sC] ? wh(e, t, r, n, o, a) : Eh(e, t, r, n, o, a), "serialize$2", ), pC = O((e) => e && (e[nC] === !0 || e[lC] === !0), "test$2"), fC = { serialize: dC, test: pC }; function gc(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } O(gc, "getDefaultExportFromCjs"); var Pp = { exports: {} }, ge = {}, Ip; function Sh() { return ( Ip || ((Ip = 1), (function () { function e(y) { if (typeof y == "object" && y !== null) { var x = y.$$typeof; switch (x) { case t: switch (((y = y.type), y)) { case n: case a: case o: case u: case d: case f: return y; default: switch (((y = y && y.$$typeof), y)) { case l: case s: case c: case p: return y; case i: return y; default: return x; } } case r: return x; } } } O(e, "typeOf"); var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), f = Symbol.for("react.view_transition"), g = Symbol.for("react.client.reference"); ((ge.ContextConsumer = i), (ge.ContextProvider = l), (ge.Element = t), (ge.ForwardRef = s), (ge.Fragment = n), (ge.Lazy = c), (ge.Memo = p), (ge.Portal = r), (ge.Profiler = a), (ge.StrictMode = o), (ge.Suspense = u), (ge.SuspenseList = d), (ge.isContextConsumer = function (y) { return e(y) === i; }), (ge.isContextProvider = function (y) { return e(y) === l; }), (ge.isElement = function (y) { return typeof y == "object" && y !== null && y.$$typeof === t; }), (ge.isForwardRef = function (y) { return e(y) === s; }), (ge.isFragment = function (y) { return e(y) === n; }), (ge.isLazy = function (y) { return e(y) === c; }), (ge.isMemo = function (y) { return e(y) === p; }), (ge.isPortal = function (y) { return e(y) === r; }), (ge.isProfiler = function (y) { return e(y) === a; }), (ge.isStrictMode = function (y) { return e(y) === o; }), (ge.isSuspense = function (y) { return e(y) === u; }), (ge.isSuspenseList = function (y) { return e(y) === d; }), (ge.isValidElementType = function (y) { return ( typeof y == "string" || typeof y == "function" || y === n || y === a || y === o || y === u || y === d || (typeof y == "object" && y !== null && (y.$$typeof === c || y.$$typeof === p || y.$$typeof === l || y.$$typeof === i || y.$$typeof === s || y.$$typeof === g || y.getModuleId !== void 0)) ); }), (ge.typeOf = e)); })()), ge ); } O(Sh, "requireReactIs_development$1"); var Lp; function Ch() { return (Lp || ((Lp = 1), (Pp.exports = Sh())), Pp.exports); } O(Ch, "requireReactIs$1"); var $h = Ch(), gC = gc($h), mC = dc({ __proto__: null, default: gC }, [$h]), Bp = { exports: {} }, pe = {}, Np; function Ah() { return ( Np || ((Np = 1), (function () { var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), g = !1, y = !1, x = !1, v = !1, C = !1, w; w = Symbol.for("react.module.reference"); function E(U) { return !!( typeof U == "string" || typeof U == "function" || U === r || U === o || C || U === n || U === u || U === d || v || U === f || g || y || x || (typeof U == "object" && U !== null && (U.$$typeof === c || U.$$typeof === p || U.$$typeof === a || U.$$typeof === i || U.$$typeof === s || U.$$typeof === w || U.getModuleId !== void 0)) ); } O(E, "isValidElementType"); function $(U) { if (typeof U == "object" && U !== null) { var fe = U.$$typeof; switch (fe) { case e: var ke = U.type; switch (ke) { case r: case o: case n: case u: case d: return ke; default: var be = ke && ke.$$typeof; switch (be) { case l: case i: case s: case c: case p: case a: return be; default: return fe; } } case t: return fe; } } } O($, "typeOf"); var A = i, S = a, D = e, F = s, k = r, _ = c, I = p, L = t, j = o, B = n, z = u, V = d, Y = !1, W = !1; function G(U) { return ( Y || ((Y = !0), console.warn( "The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.", )), !1 ); } O(G, "isAsyncMode"); function J(U) { return ( W || ((W = !0), console.warn( "The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.", )), !1 ); } O(J, "isConcurrentMode"); function Q(U) { return $(U) === i; } O(Q, "isContextConsumer"); function re(U) { return $(U) === a; } O(re, "isContextProvider"); function ie(U) { return typeof U == "object" && U !== null && U.$$typeof === e; } O(ie, "isElement"); function H(U) { return $(U) === s; } O(H, "isForwardRef"); function X(U) { return $(U) === r; } O(X, "isFragment"); function Z(U) { return $(U) === c; } O(Z, "isLazy"); function le(U) { return $(U) === p; } O(le, "isMemo"); function me(U) { return $(U) === t; } O(me, "isPortal"); function Re(U) { return $(U) === o; } O(Re, "isProfiler"); function ne(U) { return $(U) === n; } O(ne, "isStrictMode"); function de(U) { return $(U) === u; } O(de, "isSuspense"); function M(U) { return $(U) === d; } (O(M, "isSuspenseList"), (pe.ContextConsumer = A), (pe.ContextProvider = S), (pe.Element = D), (pe.ForwardRef = F), (pe.Fragment = k), (pe.Lazy = _), (pe.Memo = I), (pe.Portal = L), (pe.Profiler = j), (pe.StrictMode = B), (pe.Suspense = z), (pe.SuspenseList = V), (pe.isAsyncMode = G), (pe.isConcurrentMode = J), (pe.isContextConsumer = Q), (pe.isContextProvider = re), (pe.isElement = ie), (pe.isForwardRef = H), (pe.isFragment = X), (pe.isLazy = Z), (pe.isMemo = le), (pe.isPortal = me), (pe.isProfiler = Re), (pe.isStrictMode = ne), (pe.isSuspense = de), (pe.isSuspenseList = M), (pe.isValidElementType = E), (pe.typeOf = $)); })()), pe ); } O(Ah, "requireReactIs_development"); var jp; function Dh() { return (jp || ((jp = 1), (Bp.exports = Ah())), Bp.exports); } O(Dh, "requireReactIs"); var kh = Dh(), hC = gc(kh), yC = dc({ __proto__: null, default: hC }, [kh]), bC = [ "isAsyncMode", "isConcurrentMode", "isContextConsumer", "isContextProvider", "isElement", "isForwardRef", "isFragment", "isLazy", "isMemo", "isPortal", "isProfiler", "isStrictMode", "isSuspense", "isSuspenseList", "isValidElementType", ], jr = Object.fromEntries(bC.map((e) => [e, (t) => yC[e](t) || mC[e](t)])); function mc(e, t = []) { if (Array.isArray(e)) for (let r of e) mc(r, t); else e != null && e !== !1 && e !== "" && t.push(e); return t; } O(mc, "getChildren"); function Fs(e) { let t = e.type; if (typeof t == "string") return t; if (typeof t == "function") return t.displayName || t.name || "Unknown"; if (jr.isFragment(e)) return "React.Fragment"; if (jr.isSuspense(e)) return "React.Suspense"; if (typeof t == "object" && t !== null) { if (jr.isContextProvider(e)) return "Context.Provider"; if (jr.isContextConsumer(e)) return "Context.Consumer"; if (jr.isForwardRef(e)) { if (t.displayName) return t.displayName; let r = t.render.displayName || t.render.name || ""; return r === "" ? "ForwardRef" : `ForwardRef(${r})`; } if (jr.isMemo(e)) { let r = t.displayName || t.type.displayName || t.type.name || ""; return r === "" ? "Memo" : `Memo(${r})`; } } return "UNDEFINED"; } O(Fs, "getType"); function Oh(e) { let { props: t } = e; return Object.keys(t) .filter((r) => r !== "children" && t[r] !== void 0) .sort(); } O(Oh, "getPropKeys$1"); var vC = O( (e, t, r, n, o, a) => ++n > t.maxDepth ? Pi(Fs(e), t) : Ri( Fs(e), _i(Oh(e), e.props, t, r + t.indent, n, o, a), Ti(mc(e.props.children), t, r + t.indent, n, o, a), t, r, ), "serialize$1", ), xC = O((e) => e != null && jr.isElement(e), "test$1"), EC = { serialize: vC, test: xC }, wC = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487; function Fh(e) { let { props: t } = e; return t ? Object.keys(t) .filter((r) => t[r] !== void 0) .sort() : []; } O(Fh, "getPropKeys"); var SC = O( (e, t, r, n, o, a) => ++n > t.maxDepth ? Pi(e.type, t) : Ri( e.type, e.props ? _i(Fh(e), e.props, t, r + t.indent, n, o, a) : "", e.children ? Ti(e.children, t, r + t.indent, n, o, a) : "", t, r, ), "serialize", ), CC = O((e) => e && e.$$typeof === wC, "test"), $C = { serialize: SC, test: CC }, _h = Object.prototype.toString, AC = Date.prototype.toISOString, DC = Error.prototype.toString, Mp = RegExp.prototype.toString; function Po(e) { return (typeof e.constructor == "function" && e.constructor.name) || "Object"; } O(Po, "getConstructorName"); function Th(e) { return typeof window < "u" && e === window; } O(Th, "isWindow"); var kC = /^Symbol\((.*)\)(.*)$/, OC = /\n/g, Rh = class extends Error { constructor(t, r) { (super(t), (this.stack = r), (this.name = this.constructor.name)); } }; O(Rh, "PrettyFormatPluginError"); var Ph = Rh; function Ih(e) { return ( e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]" ); } O(Ih, "isToStringedArrayType"); function Lh(e) { return Object.is(e, -0) ? "-0" : String(e); } O(Lh, "printNumber"); function Bh(e) { return `${e}n`; } O(Bh, "printBigInt"); function _s(e, t) { return t ? `[Function ${e.name || "anonymous"}]` : "[Function]"; } O(_s, "printFunction"); function Ts(e) { return String(e).replace(kC, "Symbol($1)"); } O(Ts, "printSymbol"); function Rs(e) { return `[${DC.call(e)}]`; } O(Rs, "printError"); function hc(e, t, r, n) { if (e === !0 || e === !1) return `${e}`; if (e === void 0) return "undefined"; if (e === null) return "null"; let o = typeof e; if (o === "number") return Lh(e); if (o === "bigint") return Bh(e); if (o === "string") return n ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`; if (o === "function") return _s(e, t); if (o === "symbol") return Ts(e); let a = _h.call(e); return a === "[object WeakMap]" ? "WeakMap {}" : a === "[object WeakSet]" ? "WeakSet {}" : a === "[object Function]" || a === "[object GeneratorFunction]" ? _s(e, t) : a === "[object Symbol]" ? Ts(e) : a === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : AC.call(e) : a === "[object Error]" ? Rs(e) : a === "[object RegExp]" ? r ? Mp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Mp.call(e) : e instanceof Error ? Rs(e) : null; } O(hc, "printBasicValue"); function yc(e, t, r, n, o, a) { if (o.includes(e)) return "[Circular]"; ((o = [...o]), o.push(e)); let i = ++n > t.maxDepth, l = t.min; if (t.callToJSON && !i && e.toJSON && typeof e.toJSON == "function" && !a) return Qt(e.toJSON(), t, r, n, o, !0); let s = _h.call(e); return s === "[object Arguments]" ? i ? "[Arguments]" : `${l ? "" : "Arguments "}[${Vo(e, t, r, n, o, Qt)}]` : Ih(s) ? i ? `[${e.constructor.name}]` : `${l || (!t.printBasicPrototype && e.constructor.name === "Array") ? "" : `${e.constructor.name} `}[${Vo(e, t, r, n, o, Qt)}]` : s === "[object Map]" ? i ? "[Map]" : `Map {${oo(e.entries(), t, r, n, o, Qt, " => ")}}` : s === "[object Set]" ? i ? "[Set]" : `Set {${Oi(e.values(), t, r, n, o, Qt)}}` : i || Th(e) ? `[${Po(e)}]` : `${l || (!t.printBasicPrototype && Po(e) === "Object") ? "" : `${Po(e)} `}{${Fi(e, t, r, n, o, Qt)}}`; } O(yc, "printComplexValue"); var FC = { test: O((e) => e && e instanceof Error, "test"), serialize(e, t, r, n, o, a) { if (o.includes(e)) return "[Circular]"; o = [...o, e]; let i = ++n > t.maxDepth, { message: l, cause: s, ...u } = e, d = { message: l, ...(typeof s < "u" ? { cause: s } : {}), ...(e instanceof AggregateError ? { errors: e.errors } : {}), ...u, }, p = e.name !== "Error" ? e.name : Po(e); return i ? `[${p}]` : `${p} {${oo(Object.entries(d).values(), t, r, n, o, a)}}`; }, }; function Nh(e) { return e.serialize != null; } O(Nh, "isNewPlugin"); function bc(e, t, r, n, o, a) { let i; try { i = Nh(e) ? e.serialize(t, r, n, o, a, Qt) : e.print( t, (l) => Qt(l, r, n, o, a), (l) => { let s = n + r.indent; return ( s + l.replaceAll( OC, ` ${s}`, ) ); }, { edgeSpacing: r.spacingOuter, min: r.min, spacing: r.spacingInner }, r.colors, ); } catch (l) { throw new Ph(l.message, l.stack); } if (typeof i != "string") throw new TypeError( `pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`, ); return i; } O(bc, "printPlugin"); function vc(e, t) { for (let r of e) try { if (r.test(t)) return r; } catch (n) { throw new Ph(n.message, n.stack); } return null; } O(vc, "findPlugin"); function Qt(e, t, r, n, o, a) { let i = vc(t.plugins, e); if (i !== null) return bc(i, e, t, r, n, o); let l = hc(e, t.printFunctionName, t.escapeRegex, t.escapeString); return l !== null ? l : yc(e, t, r, n, o, a); } O(Qt, "printer"); var xc = { comment: "gray", content: "reset", prop: "yellow", tag: "cyan", value: "green", }, jh = Object.keys(xc), Et = { callToJSON: !0, compareKeys: void 0, escapeRegex: !1, escapeString: !0, highlight: !1, indent: 2, maxDepth: Number.POSITIVE_INFINITY, maxWidth: Number.POSITIVE_INFINITY, min: !1, plugins: [], printBasicPrototype: !0, printFunctionName: !0, theme: xc, }; function Mh(e) { for (let t of Object.keys(e)) if (!Object.prototype.hasOwnProperty.call(Et, t)) throw new Error(`pretty-format: Unknown option "${t}".`); if (e.min && e.indent !== void 0 && e.indent !== 0) throw new Error( 'pretty-format: Options "min" and "indent" cannot be used together.', ); } O(Mh, "validateOptions"); function zh() { return jh.reduce((e, t) => { let r = xc[t], n = r && tr[r]; if (n && typeof n.close == "string" && typeof n.open == "string") e[t] = n; else throw new Error( `pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`, ); return e; }, Object.create(null)); } O(zh, "getColorsHighlight"); function Hh() { return jh.reduce( (e, t) => ((e[t] = { close: "", open: "" }), e), Object.create(null), ); } O(Hh, "getColorsEmpty"); function Ec(e) { return e?.printFunctionName ?? Et.printFunctionName; } O(Ec, "getPrintFunctionName"); function wc(e) { return e?.escapeRegex ?? Et.escapeRegex; } O(wc, "getEscapeRegex"); function Sc(e) { return e?.escapeString ?? Et.escapeString; } O(Sc, "getEscapeString"); function Ps(e) { return { callToJSON: e?.callToJSON ?? Et.callToJSON, colors: e?.highlight ? zh() : Hh(), compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : Et.compareKeys, escapeRegex: wc(e), escapeString: Sc(e), indent: e?.min ? "" : Uh(e?.indent ?? Et.indent), maxDepth: e?.maxDepth ?? Et.maxDepth, maxWidth: e?.maxWidth ?? Et.maxWidth, min: e?.min ?? Et.min, plugins: e?.plugins ?? Et.plugins, printBasicPrototype: e?.printBasicPrototype ?? !0, printFunctionName: Ec(e), spacingInner: e?.min ? " " : ` `, spacingOuter: e?.min ? "" : ` `, }; } O(Ps, "getConfig"); function Uh(e) { return Array.from({ length: e + 1 }).join(" "); } O(Uh, "createIndent"); function At(e, t) { if (t && (Mh(t), t.plugins)) { let n = vc(t.plugins, e); if (n !== null) return bc(n, e, Ps(t), "", 0, []); } let r = hc(e, Ec(t), wc(t), Sc(t)); return r !== null ? r : yc(e, Ps(t), "", 0, []); } O(At, "format"); var Cc = { AsymmetricMatcher: q2, DOMCollection: Z2, DOMElement: rC, Immutable: fC, ReactElement: EC, ReactTestComponent: $C, Error: FC, }, zp = { bold: ["1", "22"], dim: ["2", "22"], italic: ["3", "23"], underline: ["4", "24"], inverse: ["7", "27"], hidden: ["8", "28"], strike: ["9", "29"], black: ["30", "39"], red: ["31", "39"], green: ["32", "39"], yellow: ["33", "39"], blue: ["34", "39"], magenta: ["35", "39"], cyan: ["36", "39"], white: ["37", "39"], brightblack: ["30;1", "39"], brightred: ["31;1", "39"], brightgreen: ["32;1", "39"], brightyellow: ["33;1", "39"], brightblue: ["34;1", "39"], brightmagenta: ["35;1", "39"], brightcyan: ["36;1", "39"], brightwhite: ["37;1", "39"], grey: ["90", "39"], }, _C = { special: "cyan", number: "yellow", bigint: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", symbol: "green", date: "magenta", regexp: "red", }, Ln = "…"; function Wh(e, t) { let r = zp[_C[t]] || zp[t] || ""; return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e); } O(Wh, "colorise"); function Vh( { showHidden: e = !1, depth: t = 2, colors: r = !1, customInspect: n = !0, showProxy: o = !1, maxArrayLength: a = 1 / 0, breakLength: i = 1 / 0, seen: l = [], truncate: s = 1 / 0, stylize: u = String, } = {}, d, ) { let p = { showHidden: !!e, depth: Number(t), colors: !!r, customInspect: !!n, showProxy: !!o, maxArrayLength: Number(a), breakLength: Number(i), truncate: Number(s), seen: l, inspect: d, stylize: u, }; return (p.colors && (p.stylize = Wh), p); } O(Vh, "normaliseOptions"); function qh(e) { return e >= "\uD800" && e <= "\uDBFF"; } O(qh, "isHighSurrogate"); function or(e, t, r = Ln) { e = String(e); let n = r.length, o = e.length; if (n > t && o > n) return r; if (o > t && o > n) { let a = t - n; return (a > 0 && qh(e[a - 1]) && (a = a - 1), `${e.slice(0, a)}${r}`); } return e; } O(or, "truncate"); function ft(e, t, r, n = ", ") { r = r || t.inspect; let o = e.length; if (o === 0) return ""; let a = t.truncate, i = "", l = "", s = ""; for (let u = 0; u < o; u += 1) { let d = u + 1 === e.length, p = u + 2 === e.length; s = `${Ln}(${e.length - u})`; let c = e[u]; t.truncate = a - i.length - (d ? 0 : n.length); let f = l || r(c, t) + (d ? "" : n), g = i.length + f.length, y = g + s.length; if ( (d && g > a && i.length + s.length <= a) || (!d && !p && y > a) || ((l = d ? "" : r(e[u + 1], t) + (p ? "" : n)), !d && p && y > a && g + l.length > a) ) break; if (((i += f), !d && !p && g + l.length >= a)) { s = `${Ln}(${e.length - u - 1})`; break; } s = ""; } return `${i}${s}`; } O(ft, "inspectList"); function Gh(e) { return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e) .replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); } O(Gh, "quoteComplexKey"); function Bn([e, t], r) { return ( (r.truncate -= 2), typeof e == "string" ? (e = Gh(e)) : typeof e != "number" && (e = `[${r.inspect(e, r)}]`), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e}: ${t}` ); } O(Bn, "inspectProperty"); function Yh(e, t) { let r = Object.keys(e).slice(e.length); if (!e.length && !r.length) return "[]"; t.truncate -= 4; let n = ft(e, t); t.truncate -= n.length; let o = ""; return ( r.length && (o = ft( r.map((a) => [a, e[a]]), t, Bn, )), `[ ${n}${o ? `, ${o}` : ""} ]` ); } O(Yh, "inspectArray"); var TC = O( (e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] : e.constructor.name, "getArrayName", ); function Lt(e, t) { let r = TC(e); t.truncate -= r.length + 4; let n = Object.keys(e).slice(e.length); if (!e.length && !n.length) return `${r}[]`; let o = ""; for (let i = 0; i < e.length; i++) { let l = `${t.stylize(or(e[i], t.truncate), "number")}${i === e.length - 1 ? "" : ", "}`; if (((t.truncate -= l.length), e[i] !== e.length && t.truncate <= 3)) { o += `${Ln}(${e.length - e[i] + 1})`; break; } o += l; } let a = ""; return ( n.length && (a = ft( n.map((i) => [i, e[i]]), t, Bn, )), `${r}[ ${o}${a ? `, ${a}` : ""} ]` ); } O(Lt, "inspectTypedArray"); function Kh(e, t) { let r = e.toJSON(); if (r === null) return "Invalid Date"; let n = r.split("T"), o = n[0]; return t.stylize(`${o}T${or(n[1], t.truncate - o.length - 1)}`, "date"); } O(Kh, "inspectDate"); function Is(e, t) { let r = e[Symbol.toStringTag] || "Function", n = e.name; return n ? t.stylize(`[${r} ${or(n, t.truncate - 11)}]`, "special") : t.stylize(`[${r}]`, "special"); } O(Is, "inspectFunction"); function Xh([e, t], r) { return ( (r.truncate -= 4), (e = r.inspect(e, r)), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e} => ${t}` ); } O(Xh, "inspectMapEntry"); function Zh(e) { let t = []; return ( e.forEach((r, n) => { t.push([n, r]); }), t ); } O(Zh, "mapToEntries"); function Jh(e, t) { return e.size === 0 ? "Map{}" : ((t.truncate -= 7), `Map{ ${ft(Zh(e), t, Xh)} }`); } O(Jh, "inspectMap"); var RC = Number.isNaN || ((e) => e !== e); function Ls(e, t) { return RC(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") : e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(or(String(e), t.truncate), "number"); } O(Ls, "inspectNumber"); function Bs(e, t) { let r = or(e.toString(), t.truncate - 1); return (r !== Ln && (r += "n"), t.stylize(r, "bigint")); } O(Bs, "inspectBigInt"); function Qh(e, t) { let r = e.toString().split("/")[2], n = t.truncate - (2 + r.length), o = e.source; return t.stylize(`/${or(o, n)}/${r}`, "regexp"); } O(Qh, "inspectRegExp"); function e0(e) { let t = []; return ( e.forEach((r) => { t.push(r); }), t ); } O(e0, "arrayFromSet"); function t0(e, t) { return e.size === 0 ? "Set{}" : ((t.truncate -= 7), `Set{ ${ft(e0(e), t)} }`); } O(t0, "inspectSet"); var Hp = new RegExp( "['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g", ), PC = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", "'": "\\'", "\\": "\\\\", }, IC = 16; function r0(e) { return PC[e] || `\\u${`0000${e.charCodeAt(0).toString(IC)}`.slice(-4)}`; } O(r0, "escape"); function Ns(e, t) { return ( Hp.test(e) && (e = e.replace(Hp, r0)), t.stylize(`'${or(e, t.truncate - 2)}'`, "string") ); } O(Ns, "inspectString"); function js(e) { return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString(); } O(js, "inspectSymbol"); var n0 = O(() => "Promise{…}", "getPromiseValue"); try { let { getPromiseDetails: e, kPending: t, kRejected: r, } = process.binding("util"); Array.isArray(e(Promise.resolve())) && (n0 = O((n, o) => { let [a, i] = e(n); return a === t ? "Promise{}" : `Promise${a === r ? "!" : ""}{${o.inspect(i, o)}}`; }, "getPromiseValue")); } catch {} var LC = n0; function Io(e, t) { let r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : []; if (r.length === 0 && n.length === 0) return "{}"; if (((t.truncate -= 4), (t.seen = t.seen || []), t.seen.includes(e))) return "[Circular]"; t.seen.push(e); let o = ft( r.map((l) => [l, e[l]]), t, Bn, ), a = ft( n.map((l) => [l, e[l]]), t, Bn, ); t.seen.pop(); let i = ""; return (o && a && (i = ", "), `{ ${o}${i}${a} }`); } O(Io, "inspectObject"); var Pl = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; function o0(e, t) { let r = ""; return ( Pl && Pl in e && (r = e[Pl]), (r = r || e.constructor.name), (!r || r === "_class") && (r = ""), (t.truncate -= r.length), `${r}${Io(e, t)}` ); } O(o0, "inspectClass"); function a0(e, t) { return e.length === 0 ? "Arguments[]" : ((t.truncate -= 13), `Arguments[ ${ft(e, t)} ]`); } O(a0, "inspectArguments"); var BC = [ "stack", "line", "column", "name", "message", "fileName", "lineNumber", "columnNumber", "number", "description", "cause", ]; function i0(e, t) { let r = Object.getOwnPropertyNames(e).filter((i) => BC.indexOf(i) === -1), n = e.name; t.truncate -= n.length; let o = ""; if ( (typeof e.message == "string" ? (o = or(e.message, t.truncate)) : r.unshift("message"), (o = o ? `: ${o}` : ""), (t.truncate -= o.length + 5), (t.seen = t.seen || []), t.seen.includes(e)) ) return "[Circular]"; t.seen.push(e); let a = ft( r.map((i) => [i, e[i]]), t, Bn, ); return `${n}${o}${a ? ` { ${a} }` : ""}`; } O(i0, "inspectObject"); function l0([e, t], r) { return ( (r.truncate -= 3), t ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` : `${r.stylize(String(e), "yellow")}` ); } O(l0, "inspectAttribute"); function Xa(e, t) { return ft( e, t, s0, ` `, ); } O(Xa, "inspectNodeCollection"); function s0(e, t) { switch (e.nodeType) { case 1: return $c(e, t); case 3: return t.inspect(e.data, t); default: return t.inspect(e, t); } } O(s0, "inspectNode"); function $c(e, t) { let r = e.getAttributeNames(), n = e.tagName.toLowerCase(), o = t.stylize(`<${n}`, "special"), a = t.stylize(">", "special"), i = t.stylize(``, "special"); t.truncate -= n.length * 2 + 5; let l = ""; (r.length > 0 && ((l += " "), (l += ft( r.map((d) => [d, e.getAttribute(d)]), t, l0, " ", ))), (t.truncate -= l.length)); let s = t.truncate, u = Xa(e.children, t); return ( u && u.length > s && (u = `${Ln}(${e.children.length})`), `${o}${l}${a}${u}${i}` ); } O($c, "inspectHTML"); var NC = typeof Symbol == "function" && typeof Symbol.for == "function", Il = NC ? Symbol.for("chai/inspect") : "@@chai/inspect", Ll = Symbol.for("nodejs.util.inspect.custom"), Up = new WeakMap(), Wp = {}, Vp = { undefined: O((e, t) => t.stylize("undefined", "undefined"), "undefined"), null: O((e, t) => t.stylize("null", "null"), "null"), boolean: O((e, t) => t.stylize(String(e), "boolean"), "boolean"), Boolean: O((e, t) => t.stylize(String(e), "boolean"), "Boolean"), number: Ls, Number: Ls, bigint: Bs, BigInt: Bs, string: Ns, String: Ns, function: Is, Function: Is, symbol: js, Symbol: js, Array: Yh, Date: Kh, Map: Jh, Set: t0, RegExp: Qh, Promise: LC, WeakSet: O((e, t) => t.stylize("WeakSet{…}", "special"), "WeakSet"), WeakMap: O((e, t) => t.stylize("WeakMap{…}", "special"), "WeakMap"), Arguments: a0, Int8Array: Lt, Uint8Array: Lt, Uint8ClampedArray: Lt, Int16Array: Lt, Uint16Array: Lt, Int32Array: Lt, Uint32Array: Lt, Float32Array: Lt, Float64Array: Lt, Generator: O(() => "", "Generator"), DataView: O(() => "", "DataView"), ArrayBuffer: O(() => "", "ArrayBuffer"), Error: i0, HTMLCollection: Xa, NodeList: Xa, }, jC = O( (e, t, r) => Il in e && typeof e[Il] == "function" ? e[Il](t) : Ll in e && typeof e[Ll] == "function" ? e[Ll](t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && Up.has(e.constructor) ? Up.get(e.constructor)(e, t) : Wp[r] ? Wp[r](e, t) : "", "inspectCustom", ), MC = Object.prototype.toString; function Za(e, t = {}) { let r = Vh(t, Za), { customInspect: n } = r, o = e === null ? "null" : typeof e; if ((o === "object" && (o = MC.call(e).slice(8, -1)), o in Vp)) return Vp[o](e, r); if (n && e) { let i = jC(e, r, o); if (i) return typeof i == "string" ? i : Za(i, r); } let a = e ? Object.getPrototypeOf(e) : !1; return a === Object.prototype || a === null ? Io(e, r) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? $c(e, r) : "constructor" in e ? e.constructor !== Object ? o0(e, r) : Io(e, r) : e === Object(e) ? Io(e, r) : r.stylize(String(e), o); } O(Za, "inspect"); var { AsymmetricMatcher: zC, DOMCollection: HC, DOMElement: UC, Immutable: WC, ReactElement: VC, ReactTestComponent: qC, } = Cc, qp = [qC, VC, UC, HC, WC, zC]; function Nn(e, t = 10, { maxLength: r, ...n } = {}) { let o = r ?? 1e4, a; try { a = At(e, { maxDepth: t, escapeString: !1, plugins: qp, ...n }); } catch { a = At(e, { callToJSON: !1, maxDepth: t, escapeString: !1, plugins: qp, ...n, }); } return a.length >= o && t > 1 ? Nn(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), { maxLength: r, ...n, }) : a; } O(Nn, "stringify"); var GC = /%[sdjifoOc%]/g; function u0(...e) { if (typeof e[0] != "string") { let a = []; for (let i = 0; i < e.length; i++) a.push(bn(e[i], { depth: 0, colors: !1 })); return a.join(" "); } let t = e.length, r = 1, n = e[0], o = String(n).replace(GC, (a) => { if (a === "%%") return "%"; if (r >= t) return a; switch (a) { case "%s": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !== null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : bn(i, { depth: 0, colors: !1 }) : String(i); } case "%d": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : Number(i).toString(); } case "%i": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : Number.parseInt(String(i)).toString(); } case "%f": return Number.parseFloat(String(e[r++])).toString(); case "%o": return bn(e[r++], { showHidden: !0, showProxy: !0 }); case "%O": return bn(e[r++]); case "%c": return (r++, ""); case "%j": try { return JSON.stringify(e[r++]); } catch (i) { let l = i.message; if ( l.includes("circular structure") || l.includes("cyclic structures") || l.includes("cyclic object") ) return "[Circular]"; throw i; } default: return a; } }); for (let a = e[r]; r < t; a = e[++r]) a === null || typeof a != "object" ? (o += ` ${a}`) : (o += ` ${bn(a)}`); return o; } O(u0, "format"); function bn(e, t = {}) { return ( t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), Za(e, t) ); } O(bn, "inspect"); function c0(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } O(c0, "getDefaultExportFromCjs"); function d0(e) { return ( e === Object.prototype || e === Function.prototype || e === RegExp.prototype ); } O(d0, "isFinalObj"); function Ja(e) { return Object.prototype.toString.apply(e).slice(8, -1); } O(Ja, "getType"); function p0(e, t) { let r = typeof t == "function" ? t : (n) => t.add(n); (Object.getOwnPropertyNames(e).forEach(r), Object.getOwnPropertySymbols(e).forEach(r)); } O(p0, "collectOwnProperties"); function Ac(e) { let t = new Set(); return d0(e) ? [] : (p0(e, t), Array.from(t)); } O(Ac, "getOwnProperties"); var f0 = { forceWritable: !1 }; function Ms(e, t = f0) { return Qa(e, new WeakMap(), t); } O(Ms, "deepClone"); function Qa(e, t, r = f0) { let n, o; if (t.has(e)) return t.get(e); if (Array.isArray(e)) { for (o = Array.from({ length: (n = e.length) }), t.set(e, o); n--; ) o[n] = Qa(e[n], t, r); return o; } if (Object.prototype.toString.call(e) === "[object Object]") { ((o = Object.create(Object.getPrototypeOf(e))), t.set(e, o)); let a = Ac(e); for (let i of a) { let l = Object.getOwnPropertyDescriptor(e, i); if (!l) continue; let s = Qa(e[i], t, r); r.forceWritable ? Object.defineProperty(o, i, { enumerable: l.enumerable, configurable: !0, writable: !0, value: s, }) : "get" in l ? Object.defineProperty(o, i, { ...l, get() { return s; }, }) : Object.defineProperty(o, i, { ...l, value: s }); } return o; } return e; } O(Qa, "clone"); var Ue = -1, Ne = 1, Se = 0, g0 = class { 0; 1; constructor(t, r) { ((this[0] = t), (this[1] = r)); } }; O(g0, "Diff"); var Ee = g0; function m0(e, t) { if (!e || !t || e.charAt(0) !== t.charAt(0)) return 0; let r = 0, n = Math.min(e.length, t.length), o = n, a = 0; for (; r < o; ) (e.substring(a, o) === t.substring(a, o) ? ((r = o), (a = r)) : (n = o), (o = Math.floor((n - r) / 2 + r))); return o; } O(m0, "diff_commonPrefix"); function Dc(e, t) { if (!e || !t || e.charAt(e.length - 1) !== t.charAt(t.length - 1)) return 0; let r = 0, n = Math.min(e.length, t.length), o = n, a = 0; for (; r < o; ) (e.substring(e.length - o, e.length - a) === t.substring(t.length - o, t.length - a) ? ((r = o), (a = r)) : (n = o), (o = Math.floor((n - r) / 2 + r))); return o; } O(Dc, "diff_commonSuffix"); function zs(e, t) { let r = e.length, n = t.length; if (r === 0 || n === 0) return 0; r > n ? (e = e.substring(r - n)) : r < n && (t = t.substring(0, r)); let o = Math.min(r, n); if (e === t) return o; let a = 0, i = 1; for (;;) { let l = e.substring(o - i), s = t.indexOf(l); if (s === -1) return a; ((i += s), (s === 0 || e.substring(o - i) === t.substring(0, i)) && ((a = i), i++)); } } O(zs, "diff_commonOverlap_"); function h0(e) { let t = !1, r = [], n = 0, o = null, a = 0, i = 0, l = 0, s = 0, u = 0; for (; a < e.length; ) (e[a][0] === Se ? ((r[n++] = a), (i = s), (l = u), (s = 0), (u = 0), (o = e[a][1])) : (e[a][0] === Ne ? (s += e[a][1].length) : (u += e[a][1].length), o && o.length <= Math.max(i, l) && o.length <= Math.max(s, u) && (e.splice(r[n - 1], 0, new Ee(Ue, o)), (e[r[n - 1] + 1][0] = Ne), n--, n--, (a = n > 0 ? r[n - 1] : -1), (i = 0), (l = 0), (s = 0), (u = 0), (o = null), (t = !0))), a++); for (t && kc(e), y0(e), a = 1; a < e.length; ) { if (e[a - 1][0] === Ue && e[a][0] === Ne) { let d = e[a - 1][1], p = e[a][1], c = zs(d, p), f = zs(p, d); (c >= f ? (c >= d.length / 2 || c >= p.length / 2) && (e.splice(a, 0, new Ee(Se, p.substring(0, c))), (e[a - 1][1] = d.substring(0, d.length - c)), (e[a + 1][1] = p.substring(c)), a++) : (f >= d.length / 2 || f >= p.length / 2) && (e.splice(a, 0, new Ee(Se, d.substring(0, f))), (e[a - 1][0] = Ne), (e[a - 1][1] = p.substring(0, p.length - f)), (e[a + 1][0] = Ue), (e[a + 1][1] = d.substring(f)), a++), a++); } a++; } } O(h0, "diff_cleanupSemantic"); var Gp = /[^a-z0-9]/i, Yp = /\s/, Kp = /[\r\n]/, YC = /\n\r?\n$/, KC = /^\r?\n\r?\n/; function y0(e) { let t = 1; for (; t < e.length - 1; ) { if (e[t - 1][0] === Se && e[t + 1][0] === Se) { let r = e[t - 1][1], n = e[t][1], o = e[t + 1][1], a = Dc(r, n); if (a) { let d = n.substring(n.length - a); ((r = r.substring(0, r.length - a)), (n = d + n.substring(0, n.length - a)), (o = d + o)); } let i = r, l = n, s = o, u = Do(r, n) + Do(n, o); for (; n.charAt(0) === o.charAt(0); ) { ((r += n.charAt(0)), (n = n.substring(1) + o.charAt(0)), (o = o.substring(1))); let d = Do(r, n) + Do(n, o); d >= u && ((u = d), (i = r), (l = n), (s = o)); } e[t - 1][1] !== i && (i ? (e[t - 1][1] = i) : (e.splice(t - 1, 1), t--), (e[t][1] = l), s ? (e[t + 1][1] = s) : (e.splice(t + 1, 1), t--)); } t++; } } O(y0, "diff_cleanupSemanticLossless"); function kc(e) { e.push(new Ee(Se, "")); let t = 0, r = 0, n = 0, o = "", a = "", i; for (; t < e.length; ) switch (e[t][0]) { case Ne: (n++, (a += e[t][1]), t++); break; case Ue: (r++, (o += e[t][1]), t++); break; case Se: (r + n > 1 ? (r !== 0 && n !== 0 && ((i = m0(a, o)), i !== 0 && (t - r - n > 0 && e[t - r - n - 1][0] === Se ? (e[t - r - n - 1][1] += a.substring(0, i)) : (e.splice(0, 0, new Ee(Se, a.substring(0, i))), t++), (a = a.substring(i)), (o = o.substring(i))), (i = Dc(a, o)), i !== 0 && ((e[t][1] = a.substring(a.length - i) + e[t][1]), (a = a.substring(0, a.length - i)), (o = o.substring(0, o.length - i)))), (t -= r + n), e.splice(t, r + n), o.length && (e.splice(t, 0, new Ee(Ue, o)), t++), a.length && (e.splice(t, 0, new Ee(Ne, a)), t++), t++) : t !== 0 && e[t - 1][0] === Se ? ((e[t - 1][1] += e[t][1]), e.splice(t, 1)) : t++, (n = 0), (r = 0), (o = ""), (a = "")); break; } e[e.length - 1][1] === "" && e.pop(); let l = !1; for (t = 1; t < e.length - 1; ) (e[t - 1][0] === Se && e[t + 1][0] === Se && (e[t][1].substring(e[t][1].length - e[t - 1][1].length) === e[t - 1][1] ? ((e[t][1] = e[t - 1][1] + e[t][1].substring(0, e[t][1].length - e[t - 1][1].length)), (e[t + 1][1] = e[t - 1][1] + e[t + 1][1]), e.splice(t - 1, 1), (l = !0)) : e[t][1].substring(0, e[t + 1][1].length) === e[t + 1][1] && ((e[t - 1][1] += e[t + 1][1]), (e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1]), e.splice(t + 1, 1), (l = !0))), t++); l && kc(e); } O(kc, "diff_cleanupMerge"); function Do(e, t) { if (!e || !t) return 6; let r = e.charAt(e.length - 1), n = t.charAt(0), o = r.match(Gp), a = n.match(Gp), i = o && r.match(Yp), l = a && n.match(Yp), s = i && r.match(Kp), u = l && n.match(Kp), d = s && e.match(YC), p = u && t.match(KC); return d || p ? 5 : s || u ? 4 : o && !i && l ? 3 : i || l ? 2 : o || a ? 1 : 0; } O(Do, "diff_cleanupSemanticScore_"); var b0 = "Compared values have no visual difference.", XC = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.", fa = {}, Xp; function v0() { if (Xp) return fa; ((Xp = 1), Object.defineProperty(fa, "__esModule", { value: !0 }), (fa.default = c)); let e = "diff-sequences", t = 0, r = O((f, g, y, x, v) => { let C = 0; for (; f < g && y < x && v(f, y); ) ((f += 1), (y += 1), (C += 1)); return C; }, "countCommonItemsF"), n = O((f, g, y, x, v) => { let C = 0; for (; f <= g && y <= x && v(g, x); ) ((g -= 1), (x -= 1), (C += 1)); return C; }, "countCommonItemsR"), o = O((f, g, y, x, v, C, w) => { let E = 0, $ = -f, A = C[E], S = A; C[E] += r(A + 1, g, x + A - $ + 1, y, v); let D = f < w ? f : w; for (E += 1, $ += 2; E <= D; E += 1, $ += 2) { if (E !== f && S < C[E]) A = C[E]; else if (((A = S + 1), g <= A)) return E - 1; ((S = C[E]), (C[E] = A + r(A + 1, g, x + A - $ + 1, y, v))); } return w; }, "extendPathsF"), a = O((f, g, y, x, v, C, w) => { let E = 0, $ = f, A = C[E], S = A; C[E] -= n(g, A - 1, y, x + A - $ - 1, v); let D = f < w ? f : w; for (E += 1, $ -= 2; E <= D; E += 1, $ -= 2) { if (E !== f && C[E] < S) A = C[E]; else if (((A = S - 1), A < g)) return E - 1; ((S = C[E]), (C[E] = A - n(g, A - 1, y, x + A - $ - 1, v))); } return w; }, "extendPathsR"), i = O((f, g, y, x, v, C, w, E, $, A, S) => { let D = x - g, F = y - g, k = v - x - F, _ = -k - (f - 1), I = -k + (f - 1), L = t, j = f < E ? f : E; for (let B = 0, z = -f; B <= j; B += 1, z += 2) { let V = B === 0 || (B !== f && L < w[B]), Y = V ? w[B] : L, W = V ? Y : Y + 1, G = D + W - z, J = r(W + 1, y, G + 1, v, C), Q = W + J; if (((L = w[B]), (w[B] = Q), _ <= z && z <= I)) { let re = (f - 1 - (z + k)) / 2; if (re <= A && $[re] - 1 <= Q) { let ie = D + Y - (V ? z + 1 : z - 1), H = n(g, Y, x, ie, C), X = Y - H, Z = ie - H, le = X + 1, me = Z + 1; ((S.nChangePreceding = f - 1), f - 1 === le + me - g - x ? ((S.aEndPreceding = g), (S.bEndPreceding = x)) : ((S.aEndPreceding = le), (S.bEndPreceding = me)), (S.nCommonPreceding = H), H !== 0 && ((S.aCommonPreceding = le), (S.bCommonPreceding = me)), (S.nCommonFollowing = J), J !== 0 && ((S.aCommonFollowing = W + 1), (S.bCommonFollowing = G + 1))); let Re = Q + 1, ne = G + J + 1; return ( (S.nChangeFollowing = f - 1), f - 1 === y + v - Re - ne ? ((S.aStartFollowing = y), (S.bStartFollowing = v)) : ((S.aStartFollowing = Re), (S.bStartFollowing = ne)), !0 ); } } } return !1; }, "extendOverlappablePathsF"), l = O((f, g, y, x, v, C, w, E, $, A, S) => { let D = v - y, F = y - g, k = v - x - F, _ = k - f, I = k + f, L = t, j = f < A ? f : A; for (let B = 0, z = f; B <= j; B += 1, z -= 2) { let V = B === 0 || (B !== f && $[B] < L), Y = V ? $[B] : L, W = V ? Y : Y - 1, G = D + W - z, J = n(g, W - 1, x, G - 1, C), Q = W - J; if (((L = $[B]), ($[B] = Q), _ <= z && z <= I)) { let re = (f + (z - k)) / 2; if (re <= E && Q - 1 <= w[re]) { let ie = G - J; if ( ((S.nChangePreceding = f), f === Q + ie - g - x ? ((S.aEndPreceding = g), (S.bEndPreceding = x)) : ((S.aEndPreceding = Q), (S.bEndPreceding = ie)), (S.nCommonPreceding = J), J !== 0 && ((S.aCommonPreceding = Q), (S.bCommonPreceding = ie)), (S.nChangeFollowing = f - 1), f === 1) ) ((S.nCommonFollowing = 0), (S.aStartFollowing = y), (S.bStartFollowing = v)); else { let H = D + Y - (V ? z - 1 : z + 1), X = r(Y, y, H, v, C); ((S.nCommonFollowing = X), X !== 0 && ((S.aCommonFollowing = Y), (S.bCommonFollowing = H))); let Z = Y + X, le = H + X; f - 1 === y + v - Z - le ? ((S.aStartFollowing = y), (S.bStartFollowing = v)) : ((S.aStartFollowing = Z), (S.bStartFollowing = le)); } return !0; } } } return !1; }, "extendOverlappablePathsR"), s = O((f, g, y, x, v, C, w, E, $) => { let A = x - g, S = v - y, D = y - g, F = v - x, k = F - D, _ = D, I = D; if (((w[0] = g - 1), (E[0] = y), k % 2 === 0)) { let L = (f || k) / 2, j = (D + F) / 2; for (let B = 1; B <= j; B += 1) if (((_ = o(B, y, v, A, C, w, _)), B < L)) I = a(B, g, x, S, C, E, I); else if (l(B, g, y, x, v, C, w, _, E, I, $)) return; } else { let L = ((f || k) + 1) / 2, j = (D + F + 1) / 2, B = 1; for (_ = o(B, y, v, A, C, w, _), B += 1; B <= j; B += 1) if (((I = a(B - 1, g, x, S, C, E, I)), B < L)) _ = o(B, y, v, A, C, w, _); else if (i(B, g, y, x, v, C, w, _, E, I, $)) return; } throw new Error( `${e}: no overlap aStart=${g} aEnd=${y} bStart=${x} bEnd=${v}`, ); }, "divide"), u = O((f, g, y, x, v, C, w, E, $, A) => { if (v - x < y - g) { if (((C = !C), C && w.length === 1)) { let { foundSubsequence: re, isCommon: ie } = w[0]; w[1] = { foundSubsequence: O((H, X, Z) => { re(H, Z, X); }, "foundSubsequence"), isCommon: O((H, X) => ie(X, H), "isCommon"), }; } let J = g, Q = y; ((g = x), (y = v), (x = J), (v = Q)); } let { foundSubsequence: S, isCommon: D } = w[C ? 1 : 0]; s(f, g, y, x, v, D, E, $, A); let { nChangePreceding: F, aEndPreceding: k, bEndPreceding: _, nCommonPreceding: I, aCommonPreceding: L, bCommonPreceding: j, nCommonFollowing: B, aCommonFollowing: z, bCommonFollowing: V, nChangeFollowing: Y, aStartFollowing: W, bStartFollowing: G, } = A; (g < k && x < _ && u(F, g, k, x, _, C, w, E, $, A), I !== 0 && S(I, L, j), B !== 0 && S(B, z, V), W < y && G < v && u(Y, W, y, G, v, C, w, E, $, A)); }, "findSubsequences"), d = O((f, g) => { if (typeof g != "number") throw new TypeError(`${e}: ${f} typeof ${typeof g} is not a number`); if (!Number.isSafeInteger(g)) throw new RangeError(`${e}: ${f} value ${g} is not a safe integer`); if (g < 0) throw new RangeError(`${e}: ${f} value ${g} is a negative integer`); }, "validateLength"), p = O((f, g) => { let y = typeof g; if (y !== "function") throw new TypeError(`${e}: ${f} typeof ${y} is not a function`); }, "validateCallback"); function c(f, g, y, x) { (d("aLength", f), d("bLength", g), p("isCommon", y), p("foundSubsequence", x)); let v = r(0, f, 0, g, y); if ((v !== 0 && x(v, 0, 0), f !== v || g !== v)) { let C = v, w = v, E = n(C, f - 1, w, g - 1, y), $ = f - E, A = g - E, S = v + E; (f !== S && g !== S && u(0, C, $, w, A, !1, [{ foundSubsequence: x, isCommon: y }], [t], [t], { aCommonFollowing: t, aCommonPreceding: t, aEndPreceding: t, aStartFollowing: t, bCommonFollowing: t, bCommonPreceding: t, bEndPreceding: t, bStartFollowing: t, nChangeFollowing: t, nChangePreceding: t, nCommonFollowing: t, nCommonPreceding: t, }), E !== 0 && x(E, $, A)); } } return (O(c, "diffSequence"), fa); } O(v0, "requireBuild"); var ZC = v0(), x0 = c0(ZC); function E0(e, t) { return e.replace(/\s+$/, (r) => t(r)); } O(E0, "formatTrailingSpaces"); function Li(e, t, r, n, o, a) { return e.length !== 0 ? r(`${n} ${E0(e, o)}`) : n !== " " ? r(n) : t && a.length !== 0 ? r(`${n} ${a}`) : ""; } O(Li, "printDiffLine"); function Oc( e, t, { aColor: r, aIndicator: n, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: a, }, ) { return Li(e, t, r, n, o, a); } O(Oc, "printDeleteLine"); function Fc( e, t, { bColor: r, bIndicator: n, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: a, }, ) { return Li(e, t, r, n, o, a); } O(Fc, "printInsertLine"); function _c( e, t, { commonColor: r, commonIndicator: n, commonLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: a, }, ) { return Li(e, t, r, n, o, a); } O(_c, "printCommonLine"); function Hs(e, t, r, n, { patchColor: o }) { return o(`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`); } O(Hs, "createPatchMark"); function w0(e, t) { let r = e.length, n = t.contextLines, o = n + n, a = r, i = !1, l = 0, s = 0; for (; s !== r; ) { let E = s; for (; s !== r && e[s][0] === Se; ) s += 1; if (E !== s) if (E === 0) s > n && ((a -= s - n), (i = !0)); else if (s === r) { let $ = s - E; $ > n && ((a -= $ - n), (i = !0)); } else { let $ = s - E; $ > o && ((a -= $ - o), (l += 1)); } for (; s !== r && e[s][0] !== Se; ) s += 1; } let u = l !== 0 || i; l !== 0 ? (a += l + 1) : i && (a += 1); let d = a - 1, p = [], c = 0; u && p.push(""); let f = 0, g = 0, y = 0, x = 0, v = O((E) => { let $ = p.length; (p.push(_c(E, $ === 0 || $ === d, t)), (y += 1), (x += 1)); }, "pushCommonLine"), C = O((E) => { let $ = p.length; (p.push(Oc(E, $ === 0 || $ === d, t)), (y += 1)); }, "pushDeleteLine"), w = O((E) => { let $ = p.length; (p.push(Fc(E, $ === 0 || $ === d, t)), (x += 1)); }, "pushInsertLine"); for (s = 0; s !== r; ) { let E = s; for (; s !== r && e[s][0] === Se; ) s += 1; if (E !== s) if (E === 0) { s > n && ((E = s - n), (f = E), (g = E), (y = f), (x = g)); for (let $ = E; $ !== s; $ += 1) v(e[$][1]); } else if (s === r) { let $ = s - E > n ? E + n : s; for (let A = E; A !== $; A += 1) v(e[A][1]); } else { let $ = s - E; if ($ > o) { let A = E + n; for (let D = E; D !== A; D += 1) v(e[D][1]); ((p[c] = Hs(f, y, g, x, t)), (c = p.length), p.push("")); let S = $ - o; ((f = y + S), (g = x + S), (y = f), (x = g)); for (let D = s - n; D !== s; D += 1) v(e[D][1]); } else for (let A = E; A !== s; A += 1) v(e[A][1]); } for (; s !== r && e[s][0] === Ue; ) (C(e[s][1]), (s += 1)); for (; s !== r && e[s][0] === Ne; ) (w(e[s][1]), (s += 1)); } return ( u && (p[c] = Hs(f, y, g, x, t)), p.join(` `) ); } O(w0, "joinAlignedDiffsNoExpand"); function S0(e, t) { return e.map((r, n, o) => { let a = r[1], i = n === 0 || n === o.length - 1; switch (r[0]) { case Ue: return Oc(a, i, t); case Ne: return Fc(a, i, t); default: return _c(a, i, t); } }).join(` `); } O(S0, "joinAlignedDiffsExpand"); var Bl = O((e) => e, "noColor"), C0 = 5, JC = 0; function $0() { return { aAnnotation: "Expected", aColor: tr.green, aIndicator: "-", bAnnotation: "Received", bColor: tr.red, bIndicator: "+", changeColor: tr.inverse, changeLineTrailingSpaceColor: Bl, commonColor: tr.dim, commonIndicator: " ", commonLineTrailingSpaceColor: Bl, compareKeys: void 0, contextLines: C0, emptyFirstOrLastLinePlaceholder: "", expand: !1, includeChangeCounts: !1, omitAnnotationLines: !1, patchColor: tr.yellow, printBasicPrototype: !1, truncateThreshold: JC, truncateAnnotation: "... Diff result is truncated", truncateAnnotationColor: Bl, }; } O($0, "getDefaultOptions"); function A0(e) { return e && typeof e == "function" ? e : void 0; } O(A0, "getCompareKeys"); function D0(e) { return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : C0; } O(D0, "getContextLines"); function kr(e = {}) { return { ...$0(), ...e, compareKeys: A0(e.compareKeys), contextLines: D0(e.contextLines), }; } O(kr, "normalizeDiffOptions"); function Wr(e) { return e.length === 1 && e[0].length === 0; } O(Wr, "isEmptyString"); function k0(e) { let t = 0, r = 0; return ( e.forEach((n) => { switch (n[0]) { case Ue: t += 1; break; case Ne: r += 1; break; } }), { a: t, b: r } ); } O(k0, "countChanges"); function O0( { aAnnotation: e, aColor: t, aIndicator: r, bAnnotation: n, bColor: o, bIndicator: a, includeChangeCounts: i, omitAnnotationLines: l, }, s, ) { if (l) return ""; let u = "", d = ""; if (i) { let f = String(s.a), g = String(s.b), y = n.length - e.length, x = " ".repeat(Math.max(0, y)), v = " ".repeat(Math.max(0, -y)), C = g.length - f.length, w = " ".repeat(Math.max(0, C)), E = " ".repeat(Math.max(0, -C)); ((u = `${x} ${r} ${w}${f}`), (d = `${v} ${a} ${E}${g}`)); } let p = `${r} ${e}${u}`, c = `${a} ${n}${d}`; return `${t(p)} ${o(c)} `; } O(O0, "printAnnotation"); function Bi(e, t, r) { return ( O0(r, k0(e)) + (r.expand ? S0(e, r) : w0(e, r)) + (t ? r.truncateAnnotationColor(` ${r.truncateAnnotation}`) : "") ); } O(Bi, "printDiffLines"); function ta(e, t, r) { let n = kr(r), [o, a] = Tc(Wr(e) ? [] : e, Wr(t) ? [] : t, n); return Bi(o, a, n); } O(ta, "diffLinesUnified"); function F0(e, t, r, n, o) { if ( (Wr(e) && Wr(r) && ((e = []), (r = [])), Wr(t) && Wr(n) && ((t = []), (n = [])), e.length !== r.length || t.length !== n.length) ) return ta(e, t, o); let [a, i] = Tc(r, n, o), l = 0, s = 0; return ( a.forEach((u) => { switch (u[0]) { case Ue: ((u[1] = e[l]), (l += 1)); break; case Ne: ((u[1] = t[s]), (s += 1)); break; default: ((u[1] = t[s]), (l += 1), (s += 1)); } }), Bi(a, i, kr(o)) ); } O(F0, "diffLinesUnified2"); function Tc(e, t, r) { let n = r?.truncateThreshold ?? !1, o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), a = n ? Math.min(e.length, o) : e.length, i = n ? Math.min(t.length, o) : t.length, l = a !== e.length || i !== t.length, s = O((c, f) => e[c] === t[f], "isCommon"), u = [], d = 0, p = 0; for ( x0( a, i, s, O((c, f, g) => { for (; d !== f; d += 1) u.push(new Ee(Ue, e[d])); for (; p !== g; p += 1) u.push(new Ee(Ne, t[p])); for (; c !== 0; c -= 1, d += 1, p += 1) u.push(new Ee(Se, t[p])); }, "foundSubsequence"), ); d !== a; d += 1 ) u.push(new Ee(Ue, e[d])); for (; p !== i; p += 1) u.push(new Ee(Ne, t[p])); return [u, l]; } O(Tc, "diffLinesRaw"); function Us(e) { if (e === void 0) return "undefined"; if (e === null) return "null"; if (Array.isArray(e)) return "array"; if (typeof e == "boolean") return "boolean"; if (typeof e == "function") return "function"; if (typeof e == "number") return "number"; if (typeof e == "string") return "string"; if (typeof e == "bigint") return "bigint"; if (typeof e == "object") { if (e != null) { if (e.constructor === RegExp) return "regexp"; if (e.constructor === Map) return "map"; if (e.constructor === Set) return "set"; if (e.constructor === Date) return "date"; } return "object"; } else if (typeof e == "symbol") return "symbol"; throw new Error(`value of unknown type: ${e}`); } O(Us, "getType"); function Ws(e) { return e.includes(`\r `) ? `\r ` : ` `; } O(Ws, "getNewLineSymbol"); function _0(e, t, r) { let n = r?.truncateThreshold ?? !1, o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), a = e.length, i = t.length; if (n) { let c = e.includes(` `), f = t.includes(` `), g = Ws(e), y = Ws(t), x = c ? `${e.split(g, o).join(g)} ` : e, v = f ? `${t.split(y, o).join(y)} ` : t; ((a = x.length), (i = v.length)); } let l = a !== e.length || i !== t.length, s = O((c, f) => e[c] === t[f], "isCommon"), u = 0, d = 0, p = []; return ( x0( a, i, s, O((c, f, g) => { (u !== f && p.push(new Ee(Ue, e.slice(u, f))), d !== g && p.push(new Ee(Ne, t.slice(d, g))), (u = f + c), (d = g + c), p.push(new Ee(Se, t.slice(g, d)))); }, "foundSubsequence"), ), u !== a && p.push(new Ee(Ue, e.slice(u))), d !== i && p.push(new Ee(Ne, t.slice(d))), [p, l] ); } O(_0, "diffStrings"); function T0(e, t, r) { return t.reduce( (n, o) => n + (o[0] === Se ? o[1] : o[0] === e && o[1].length !== 0 ? r(o[1]) : ""), "", ); } O(T0, "concatenateRelevantDiffs"); var R0 = class { op; line; lines; changeColor; constructor(t, r) { ((this.op = t), (this.line = []), (this.lines = []), (this.changeColor = r)); } pushSubstring(t) { this.pushDiff(new Ee(this.op, t)); } pushLine() { (this.lines.push( this.line.length !== 1 ? new Ee(this.op, T0(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new Ee(this.op, this.line[0][1]), ), (this.line.length = 0)); } isLineEmpty() { return this.line.length === 0; } pushDiff(t) { this.line.push(t); } align(t) { let r = t[1]; if ( r.includes(` `) ) { let n = r.split(` `), o = n.length - 1; n.forEach((a, i) => { i < o ? (this.pushSubstring(a), this.pushLine()) : a.length !== 0 && this.pushSubstring(a); }); } else this.pushDiff(t); } moveLinesTo(t) { (this.isLineEmpty() || this.pushLine(), t.push(...this.lines), (this.lines.length = 0)); } }; O(R0, "ChangeBuffer"); var Zp = R0, P0 = class { deleteBuffer; insertBuffer; lines; constructor(t, r) { ((this.deleteBuffer = t), (this.insertBuffer = r), (this.lines = [])); } pushDiffCommonLine(t) { this.lines.push(t); } pushDiffChangeLines(t) { let r = t[1].length === 0; ((!r || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(t), (!r || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(t)); } flushChangeLines() { (this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines)); } align(t) { let r = t[0], n = t[1]; if ( n.includes(` `) ) { let o = n.split(` `), a = o.length - 1; o.forEach((i, l) => { if (l === 0) { let s = new Ee(r, i); this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(s)) : (this.pushDiffChangeLines(s), this.flushChangeLines()); } else l < a ? this.pushDiffCommonLine(new Ee(r, i)) : i.length !== 0 && this.pushDiffChangeLines(new Ee(r, i)); }); } else this.pushDiffChangeLines(t); } getLines() { return (this.flushChangeLines(), this.lines); } }; O(P0, "CommonBuffer"); var QC = P0; function I0(e, t) { let r = new Zp(Ue, t), n = new Zp(Ne, t), o = new QC(r, n); return ( e.forEach((a) => { switch (a[0]) { case Ue: r.align(a); break; case Ne: n.align(a); break; default: o.align(a); } }), o.getLines() ); } O(I0, "getAlignedDiffs"); function L0(e, t) { if (t) { let r = e.length - 1; return e.some( (n, o) => n[0] === Se && (o !== r || n[1] !== ` `), ); } return e.some((r) => r[0] === Se); } O(L0, "hasCommonDiff"); function B0(e, t, r) { if (e !== t && e.length !== 0 && t.length !== 0) { let n = e.includes(` `) || t.includes(` `), [o, a] = Rc( n ? `${e} ` : e, n ? `${t} ` : t, !0, r, ); if (L0(o, n)) { let i = kr(r), l = I0(o, i.changeColor); return Bi(l, a, i); } } return ta( e.split(` `), t.split(` `), r, ); } O(B0, "diffStringsUnified"); function Rc(e, t, r, n) { let [o, a] = _0(e, t, n); return (r && h0(o), [o, a]); } O(Rc, "diffStringsRaw"); function ei(e, t) { let { commonColor: r } = kr(t); return r(e); } O(ei, "getCommonMessage"); var { AsymmetricMatcher: e$, DOMCollection: t$, DOMElement: r$, Immutable: n$, ReactElement: o$, ReactTestComponent: a$, } = Cc, N0 = [a$, o$, r$, t$, n$, e$, Cc.Error], Vs = { maxDepth: 20, plugins: N0 }, j0 = { callToJSON: !1, maxDepth: 8, plugins: N0 }; function M0(e, t, r) { if (Object.is(e, t)) return ""; let n = Us(e), o = n, a = !1; if (n === "object" && typeof e.asymmetricMatch == "function") { if ( e.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof e.getExpectedType != "function" ) return; ((o = e.getExpectedType()), (a = o === "string")); } if (o !== Us(t)) { let i = function (w) { return w.length <= x ? w : `${w.slice(0, x)}...`; }; O(i, "truncate"); let { aAnnotation: l, aColor: s, aIndicator: u, bAnnotation: d, bColor: p, bIndicator: c, } = kr(r), f = ti(j0, r), g = At(e, f), y = At(t, f), x = 1e5; ((g = i(g)), (y = i(y))); let v = `${s(`${u} ${l}:`)} ${g}`, C = `${p(`${c} ${d}:`)} ${y}`; return `${v} ${C}`; } if (!a) switch (n) { case "string": return ta( e.split(` `), t.split(` `), r, ); case "boolean": case "number": return z0(e, t, r); case "map": return Ia(qs(e), qs(t), r); case "set": return Ia(Gs(e), Gs(t), r); default: return Ia(e, t, r); } } O(M0, "diff"); function z0(e, t, r) { let n = At(e, Vs), o = At(t, Vs); return n === o ? "" : ta( n.split(` `), o.split(` `), r, ); } O(z0, "comparePrimitive"); function qs(e) { return new Map(Array.from(e.entries()).sort()); } O(qs, "sortMap"); function Gs(e) { return new Set(Array.from(e.values()).sort()); } O(Gs, "sortSet"); function Ia(e, t, r) { let n, o = !1; try { let i = ti(Vs, r); n = Ys(e, t, i, r); } catch { o = !0; } let a = ei(b0, r); if (n === void 0 || n === a) { let i = ti(j0, r); ((n = Ys(e, t, i, r)), n !== a && !o && (n = `${ei(XC, r)} ${n}`)); } return n; } O(Ia, "compareObjects"); function ti(e, t) { let { compareKeys: r, printBasicPrototype: n, maxDepth: o } = kr(t); return { ...e, compareKeys: r, printBasicPrototype: n, maxDepth: o ?? e.maxDepth, }; } O(ti, "getFormatOptions"); function Ys(e, t, r, n) { let o = { ...r, indent: 0 }, a = At(e, o), i = At(t, o); if (a === i) return ei(b0, n); { let l = At(e, r), s = At(t, r); return F0( l.split(` `), s.split(` `), a.split(` `), i.split(` `), n, ); } } O(Ys, "getObjectsDifference"); var Jp = 2e4; function Ks(e) { return Ja(e) === "Object" && typeof e.asymmetricMatch == "function"; } O(Ks, "isAsymmetricMatcher"); function Xs(e, t) { let r = Ja(e), n = Ja(t); return r === n && (r === "Object" || r === "Array"); } O(Xs, "isReplaceable"); function H0(e, t, r) { let { aAnnotation: n, bAnnotation: o } = kr(r); if ( typeof t == "string" && typeof e == "string" && t.length > 0 && e.length > 0 && t.length <= Jp && e.length <= Jp && t !== e ) { if ( t.includes(` `) || e.includes(` `) ) return B0(t, e, r); let [u] = Rc(t, e, !0), d = u.some((g) => g[0] === Se), p = U0(n, o), c = p(n) + V0(Zs(u, Ue, d)), f = p(o) + W0(Zs(u, Ne, d)); return `${c} ${f}`; } let a = Ms(t, { forceWritable: !0 }), i = Ms(e, { forceWritable: !0 }), { replacedExpected: l, replacedActual: s } = Pc(i, a); return M0(l, s, r); } O(H0, "printDiffOrStringify"); function Pc(e, t, r = new WeakSet(), n = new WeakSet()) { return e instanceof Error && t instanceof Error && typeof e.cause < "u" && typeof t.cause > "u" ? (delete e.cause, { replacedActual: e, replacedExpected: t }) : Xs(e, t) ? r.has(e) || n.has(t) ? { replacedActual: e, replacedExpected: t } : (r.add(e), n.add(t), Ac(t).forEach((o) => { let a = t[o], i = e[o]; if (Ks(a)) a.asymmetricMatch(i) && (e[o] = a); else if (Ks(i)) i.asymmetricMatch(a) && (t[o] = i); else if (Xs(i, a)) { let l = Pc(i, a, r, n); ((e[o] = l.replacedActual), (t[o] = l.replacedExpected)); } }), { replacedActual: e, replacedExpected: t }) : { replacedActual: e, replacedExpected: t }; } O(Pc, "replaceAsymmetricMatcher"); function U0(...e) { let t = e.reduce((r, n) => (n.length > r ? n.length : r), 0); return (r) => `${r}: ${" ".repeat(t - r.length)}`; } O(U0, "getLabelPrinter"); var i$ = "·"; function Ic(e) { return e.replace(/\s+$/gm, (t) => i$.repeat(t.length)); } O(Ic, "replaceTrailingSpaces"); function W0(e) { return tr.red(Ic(Nn(e))); } O(W0, "printReceived"); function V0(e) { return tr.green(Ic(Nn(e))); } O(V0, "printExpected"); function Zs(e, t, r) { return e.reduce( (n, o) => n + (o[0] === Se ? o[1] : o[0] === t ? (r ? tr.inverse(o[1]) : o[1]) : ""), "", ); } O(Zs, "getCommonAndChangedSubstrings"); var l$ = "@@__IMMUTABLE_RECORD__@@", s$ = "@@__IMMUTABLE_ITERABLE__@@"; function q0(e) { return e && (e[s$] || e[l$]); } O(q0, "isImmutable"); var u$ = Object.getPrototypeOf({}); function Js(e) { return e instanceof Error ? `: ${e.message}` : typeof e == "string" ? `: ${e}` : ""; } O(Js, "getUnserializableMessage"); function er(e, t = new WeakMap()) { if (!e || typeof e == "string") return e; if (e instanceof Error && "toJSON" in e && typeof e.toJSON == "function") { let r = e.toJSON(); return ( r && r !== e && typeof r == "object" && (typeof e.message == "string" && ko(() => r.message ?? (r.message = e.message)), typeof e.stack == "string" && ko(() => r.stack ?? (r.stack = e.stack)), typeof e.name == "string" && ko(() => r.name ?? (r.name = e.name)), e.cause != null && ko(() => r.cause ?? (r.cause = er(e.cause, t)))), er(r, t) ); } if (typeof e == "function") return `Function<${e.name || "anonymous"}>`; if (typeof e == "symbol") return e.toString(); if (typeof e != "object") return e; if (typeof Buffer < "u" && e instanceof Buffer) return ``; if (typeof Uint8Array < "u" && e instanceof Uint8Array) return ``; if (q0(e)) return er(e.toJSON(), t); if ( e instanceof Promise || (e.constructor && e.constructor.prototype === "AsyncFunction") ) return "Promise"; if (typeof Element < "u" && e instanceof Element) return e.tagName; if (typeof e.asymmetricMatch == "function") return `${e.toString()} ${u0(e.sample)}`; if (typeof e.toJSON == "function") return er(e.toJSON(), t); if (t.has(e)) return t.get(e); if (Array.isArray(e)) { let r = new Array(e.length); return ( t.set(e, r), e.forEach((n, o) => { try { r[o] = er(n, t); } catch (a) { r[o] = Js(a); } }), r ); } else { let r = Object.create(null); t.set(e, r); let n = e; for (; n && n !== u$; ) (Object.getOwnPropertyNames(n).forEach((o) => { if (!(o in r)) try { r[o] = er(e[o], t); } catch (a) { (delete r[o], (r[o] = Js(a))); } }), (n = Object.getPrototypeOf(n))); return r; } } O(er, "serializeValue"); function ko(e) { try { return e(); } catch {} } O(ko, "safe"); function G0(e) { return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, ""); } O(G0, "normalizeErrorMessage"); function Lc(e, t, r = new WeakSet()) { if (!e || typeof e != "object") return { message: String(e) }; let n = e; ((n.showDiff || (n.showDiff === void 0 && n.expected !== void 0 && n.actual !== void 0)) && (n.diff = H0(n.actual, n.expected, { ...t, ...n.diffOptions })), "expected" in n && typeof n.expected != "string" && (n.expected = Nn(n.expected, 10)), "actual" in n && typeof n.actual != "string" && (n.actual = Nn(n.actual, 10))); try { typeof n.message == "string" && (n.message = G0(n.message)); } catch {} try { !r.has(n) && typeof n.cause == "object" && (r.add(n), (n.cause = Lc(n.cause, t, r))); } catch {} try { return er(n); } catch (o) { return er( new Error(`Failed to fully serialize error: ${o?.message} Inner error message: ${n?.message}`), ); } } O(Lc, "processError"); var Gt = { CALL: "storybook/instrumenter/call", SYNC: "storybook/instrumenter/sync", START: "storybook/instrumenter/start", BACK: "storybook/instrumenter/back", GOTO: "storybook/instrumenter/goto", NEXT: "storybook/instrumenter/next", END: "storybook/instrumenter/end", }, Nl = globalThis.__STORYBOOK_ADDONS_PREVIEW, c$ = new Error( "This function ran after the play function completed. Did you forget to `await` it?", ), Qp = O( (e) => Object.prototype.toString.call(e) === "[object Object]", "isObject", ), d$ = O( (e) => Object.prototype.toString.call(e) === "[object Module]", "isModule", ), p$ = O((e) => { if (!Qp(e) && !d$(e)) return !1; if (e.constructor === void 0) return !0; let t = e.constructor.prototype; return !!Qp(t); }, "isInstrumentable"), f$ = O((e) => { try { return new e.constructor(); } catch { return {}; } }, "construct"), jl = O( () => ({ renderPhase: "preparing", isDebugging: !1, isPlaying: !1, isLocked: !1, cursor: 0, calls: [], shadowCalls: [], callRefsByResult: new Map(), chainedCallIds: new Set(), ancestors: [], playUntil: void 0, resolvers: {}, syncTimeout: void 0, }), "getInitialState", ), ef = O((e, t = !1) => { let r = (t ? e.shadowCalls : e.calls).filter((o) => o.retain); if (!r.length) return; let n = new Map( Array.from(e.callRefsByResult.entries()).filter(([, o]) => o.retain), ); return { cursor: r.length, calls: r, callRefsByResult: n }; }, "getRetainedState"), Y0 = class { constructor() { ((this.detached = !1), (this.initialized = !1), (this.state = {}), (this.loadParentWindowState = O(() => { try { this.state = dt.window?.parent ?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {}; } catch { this.detached = !0; } }, "loadParentWindowState")), (this.updateParentWindowState = O(() => { try { dt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state; } catch { this.detached = !0; } }, "updateParentWindowState")), this.loadParentWindowState()); let t = O( ({ storyId: s, renderPhase: u, isPlaying: d = !0, isDebugging: p = !1, }) => { let c = this.getState(s); (this.setState(s, { ...jl(), ...ef(c, p), renderPhase: u || c.renderPhase, shadowCalls: p ? c.shadowCalls : [], chainedCallIds: p ? c.chainedCallIds : new Set(), playUntil: p ? c.playUntil : void 0, isPlaying: d, isDebugging: p, }), this.sync(s)); }, "resetState", ), r = O( (s) => ({ storyId: u, playUntil: d }) => { this.getState(u).isDebugging || this.setState(u, ({ calls: c }) => ({ calls: [], shadowCalls: c.map((f) => ({ ...f, status: "waiting" })), isDebugging: !0, })); let p = this.getLog(u); (this.setState(u, ({ shadowCalls: c }) => { if (d || !p.length) return { playUntil: d }; let f = c.findIndex((g) => g.id === p[0].callId); return { playUntil: c .slice(0, f) .filter((g) => g.interceptable && !g.ancestors?.length) .slice(-1)[0]?.id, }; }), s.emit(_p, { storyId: u, isDebugging: !0 })); }, "start", ), n = O( (s) => ({ storyId: u }) => { let d = this.getLog(u).filter((c) => !c.ancestors?.length), p = d.reduceRight( (c, f, g) => (c >= 0 || f.status === "waiting" ? c : g), -1, ); r(s)({ storyId: u, playUntil: d[p - 1]?.callId }); }, "back", ), o = O( (s) => ({ storyId: u, callId: d }) => { let { calls: p, shadowCalls: c, resolvers: f } = this.getState(u), g = p.find(({ id: x }) => x === d), y = c.find(({ id: x }) => x === d); if (!g && y && Object.values(f).length > 0) { let x = this.getLog(u).find( (v) => v.status === "waiting", )?.callId; (y.id !== x && this.setState(u, { playUntil: y.id }), Object.values(f).forEach((v) => v())); } else r(s)({ storyId: u, playUntil: d }); }, "goto", ), a = O( (s) => ({ storyId: u }) => { let { resolvers: d } = this.getState(u); if (Object.values(d).length > 0) Object.values(d).forEach((p) => p()); else { let p = this.getLog(u).find( (c) => c.status === "waiting", )?.callId; p ? r(s)({ storyId: u, playUntil: p }) : i({ storyId: u }); } }, "next", ), i = O(({ storyId: s }) => { (this.setState(s, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(s).resolvers).forEach((u) => u())); }, "end"), l = O(({ storyId: s, newPhase: u }) => { let { isDebugging: d } = this.getState(s); if (u === "preparing" && d) return t({ storyId: s, renderPhase: u }); if (u === "playing") return t({ storyId: s, renderPhase: u, isDebugging: d }); (u === "played" ? this.setState(s, { renderPhase: u, isLocked: !1, isPlaying: !1, isDebugging: !1, }) : u === "errored" ? this.setState(s, { renderPhase: u, isLocked: !1, isPlaying: !1, }) : u === "aborted" ? this.setState(s, { renderPhase: u, isLocked: !0, isPlaying: !1, }) : this.setState(s, { renderPhase: u }), this.sync(s)); }, "renderPhaseChanged"); Nl && Nl.ready().then(() => { ((this.channel = Nl.getChannel()), this.channel.on(_p, t), this.channel.on(M2, l), this.channel.on(j2, () => { this.initialized ? this.cleanup() : (this.initialized = !0); }), this.channel.on(Gt.START, r(this.channel)), this.channel.on(Gt.BACK, n(this.channel)), this.channel.on(Gt.GOTO, o(this.channel)), this.channel.on(Gt.NEXT, a(this.channel)), this.channel.on(Gt.END, i)); }); } getState(t) { return this.state[t] || jl(); } setState(t, r) { if (t) { let n = this.getState(t), o = typeof r == "function" ? r(n) : r; ((this.state = { ...this.state, [t]: { ...n, ...o } }), this.updateParentWindowState()); } } cleanup() { this.state = Object.entries(this.state).reduce((r, [n, o]) => { let a = ef(o); return (a && (r[n] = Object.assign(jl(), a)), r); }, {}); let t = { controlStates: { detached: this.detached, start: !1, back: !1, goto: !1, next: !1, end: !1, }, logItems: [], }; (this.channel?.emit(Gt.SYNC, t), this.updateParentWindowState()); } getLog(t) { let { calls: r, shadowCalls: n } = this.getState(t), o = [...n]; r.forEach((i, l) => { o[l] = i; }); let a = new Set(); return o.reduceRight( (i, l) => ( l.args.forEach((s) => { s?.__callId__ && a.add(s.__callId__); }), l.path.forEach((s) => { s.__callId__ && a.add(s.__callId__); }), (l.interceptable || l.exception) && !a.has(l.id) && (i.unshift({ callId: l.id, status: l.status, ancestors: l.ancestors, }), a.add(l.id)), i ), [], ); } instrument(t, r, n = 0) { if (!p$(t)) return t; let { mutate: o = !1, path: a = [] } = r, i = r.getKeys ? r.getKeys(t, n) : Object.keys(t); return ( (n += 1), i.reduce( (l, s) => { let u = K0(t, s); if (typeof u?.get == "function") { if (u.configurable) { let p = O(() => u?.get?.bind(t)?.(), "getter"); Object.defineProperty(l, s, { get: O( () => this.instrument(p(), { ...r, path: a.concat(s) }, n), "get", ), }); } return l; } let d = t[s]; return typeof d != "function" ? ((l[s] = this.instrument(d, { ...r, path: a.concat(s) }, n)), l) : "__originalFn__" in d && typeof d.__originalFn__ == "function" ? ((l[s] = d), l) : ((l[s] = (...p) => this.track(s, d, t, p, r)), (l[s].__originalFn__ = d), Object.defineProperty(l[s], "name", { value: s, writable: !1, }), Object.keys(d).length > 0 && Object.assign( l[s], this.instrument({ ...d }, { ...r, path: a.concat(s) }, n), ), l); }, o ? t : f$(t), ) ); } track(t, r, n, o, a) { let i = o?.[0]?.__storyId__ || dt.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: l, ancestors: s } = this.getState(i); this.setState(i, { cursor: l + 1 }); let u = `${s.slice(-1)[0] || i} [${l}] ${t}`, { path: d = [], intercept: p = !1, retain: c = !1 } = a, f = typeof p == "function" ? p(t, d) : p, g = { id: u, cursor: l, storyId: i, ancestors: s, path: d, method: t, args: o, interceptable: f, retain: c, }, y = (f && !s.length ? this.intercept : this.invoke).call( this, r, n, g, a, ); return this.instrument(y, { ...a, mutate: !0, path: [{ __callId__: g.id }], }); } intercept(t, r, n, o) { let { chainedCallIds: a, isDebugging: i, playUntil: l, } = this.getState(n.storyId), s = a.has(n.id); return !i || s || l ? (l === n.id && this.setState(n.storyId, { playUntil: void 0 }), this.invoke(t, r, n, o)) : new Promise((u) => { this.setState(n.storyId, ({ resolvers: d }) => ({ isLocked: !1, resolvers: { ...d, [n.id]: u }, })); }).then( () => ( this.setState(n.storyId, (u) => { let { [n.id]: d, ...p } = u.resolvers; return { isLocked: !0, resolvers: p }; }), this.invoke(t, r, n, o) ), ); } invoke(t, r, n, o) { let { callRefsByResult: a, renderPhase: i } = this.getState(n.storyId), l = 25, s = O((p, c, f) => { if (f.includes(p)) return "[Circular]"; if (((f = [...f, p]), c > l)) return "..."; if (a.has(p)) return a.get(p); if (p instanceof Array) return p.map((g) => s(g, ++c, f)); if (p instanceof Date) return { __date__: { value: p.toISOString() } }; if (p instanceof Error) { let { name: g, message: y, stack: x } = p; return { __error__: { name: g, message: y, stack: x } }; } if (p instanceof RegExp) { let { flags: g, source: y } = p; return { __regexp__: { flags: g, source: y } }; } if (p instanceof dt.window?.HTMLElement) { let { prefix: g, localName: y, id: x, classList: v, innerText: C, } = p, w = Array.from(v); return { __element__: { prefix: g, localName: y, id: x, classNames: w, innerText: C, }, }; } return typeof p == "function" ? { __function__: { name: "getMockName" in p ? p.getMockName() : p.name, }, } : typeof p == "symbol" ? { __symbol__: { description: p.description } } : typeof p == "object" && p?.constructor?.name && p?.constructor?.name !== "Object" ? { __class__: { name: p.constructor.name } } : Object.prototype.toString.call(p) === "[object Object]" ? Object.fromEntries( Object.entries(p).map(([g, y]) => [g, s(y, ++c, f)]), ) : p; }, "serializeValues"), u = { ...n, args: n.args.map((p) => s(p, 0, [])) }; n.path.forEach((p) => { p?.__callId__ && this.setState(n.storyId, ({ chainedCallIds: c }) => ({ chainedCallIds: new Set(Array.from(c).concat(p.__callId__)), })); }); let d = O((p) => { if (p instanceof Error) { let { name: c, message: f, stack: g, callId: y = n.id } = p, { showDiff: x = void 0, diff: v = void 0, actual: C = void 0, expected: w = void 0, } = p.name === "AssertionError" ? Lc(p) : p, E = { name: c, message: f, stack: g, callId: y, showDiff: x, diff: v, actual: C, expected: w, }; if ( (this.update({ ...u, status: "error", exception: E }), this.setState(n.storyId, ($) => ({ callRefsByResult: new Map([ ...Array.from($.callRefsByResult.entries()), [p, { __callId__: n.id, retain: n.retain }], ]), })), n.ancestors?.length) ) throw ( Object.prototype.hasOwnProperty.call(p, "callId") || Object.defineProperty(p, "callId", { value: n.id }), p ); } throw p; }, "handleException"); try { if (i === "played" && !n.retain) throw c$; let p = ( o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args ).map((f) => typeof f != "function" || X0(f) || Object.keys(f).length ? f : (...g) => { let { cursor: y, ancestors: x } = this.getState(n.storyId); this.setState(n.storyId, { cursor: 0, ancestors: [...x, n.id], }); let v = O( () => this.setState(n.storyId, { cursor: y, ancestors: x }), "restore", ), C = !1; try { let w = f(...g); return w instanceof Promise ? ((C = !0), w.finally(v)) : w; } finally { C || v(); } }, ), c = t.apply(r, p); return ( c && ["object", "function", "symbol"].includes(typeof c) && this.setState(n.storyId, (f) => ({ callRefsByResult: new Map([ ...Array.from(f.callRefsByResult.entries()), [c, { __callId__: n.id, retain: n.retain }], ]), })), this.update({ ...u, status: c instanceof Promise ? "active" : "done", }), c instanceof Promise ? c.then((f) => (this.update({ ...u, status: "done" }), f), d) : c ); } catch (p) { return d(p); } } update(t) { (this.channel?.emit(Gt.CALL, t), this.setState(t.storyId, ({ calls: r }) => { let n = r .concat(t) .reduce((o, a) => Object.assign(o, { [a.id]: a }), {}); return { calls: Object.values(n).sort((o, a) => o.id.localeCompare(a.id, void 0, { numeric: !0 }), ), }; }), this.sync(t.storyId)); } sync(t) { let r = O(() => { let { isLocked: n, isPlaying: o } = this.getState(t), a = this.getLog(t), i = a .filter(({ ancestors: d }) => !d.length) .find((d) => d.status === "waiting")?.callId, l = a.some((d) => d.status === "active"); if (this.detached || n || l || a.length === 0) { let d = { controlStates: { detached: this.detached, start: !1, back: !1, goto: !1, next: !1, end: !1, }, logItems: a, }; this.channel?.emit(Gt.SYNC, d); return; } let s = a.some((d) => d.status === "done" || d.status === "error"), u = { controlStates: { detached: this.detached, start: s, back: s, goto: !0, next: o, end: o, }, logItems: a, pausedAt: i, }; this.channel?.emit(Gt.SYNC, u); }, "synchronize"); this.setState( t, ({ syncTimeout: n }) => ( clearTimeout(n), { syncTimeout: setTimeout(r, 0) } ), ); } }; O(Y0, "Instrumenter"); var g$ = Y0; function Bc(e, t = {}) { try { let r = !1, n = !1; return ( dt.window?.location?.search?.includes("instrument=true") ? (r = !0) : dt.window?.location?.search?.includes("instrument=false") && (n = !0), (dt.window?.parent === dt.window && !r) || n ? e : (dt.window && !dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new g$()), (dt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument( e, t, )) ); } catch (r) { return (N2.warn(r), e); } } O(Bc, "instrument"); function K0(e, t) { let r = e; for (; r != null; ) { let n = Object.getOwnPropertyDescriptor(r, t); if (n) return n; r = Object.getPrototypeOf(r); } } O(K0, "getPropertyDescriptor"); function X0(e) { if (typeof e != "function") return !1; let t = Object.getOwnPropertyDescriptor(e, "prototype"); return t ? !t.writable : !1; } O(X0, "isClass"); var m$ = Object.create, Ni = Object.defineProperty, h$ = Object.getOwnPropertyDescriptor, y$ = Object.getOwnPropertyNames, b$ = Object.getPrototypeOf, v$ = Object.prototype.hasOwnProperty, R = (e, t) => Ni(e, "name", { value: t, configurable: !0 }), x$ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Z0 = (e, t) => { for (var r in t) Ni(e, r, { get: t[r], enumerable: !0 }); }, E$ = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let o of y$(t)) !v$.call(e, o) && o !== r && Ni(e, o, { get: () => t[o], enumerable: !(n = h$(t, o)) || n.enumerable, }); return e; }, w$ = (e, t, r) => ( (r = e != null ? m$(b$(e)) : {}), E$(Ni(r, "default", { value: e, enumerable: !0 }), e) ), S$ = x$((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.isEqual = (function () { var t = Object.prototype.toString, r = Object.getPrototypeOf, n = Object.getOwnPropertySymbols ? function (o) { return Object.keys(o).concat(Object.getOwnPropertySymbols(o)); } : Object.keys; return function (o, a) { return R(function i(l, s, u) { var d, p, c, f = t.call(l), g = t.call(s); if (l === s) return !0; if (l == null || s == null) return !1; if (u.indexOf(l) > -1 && u.indexOf(s) > -1) return !0; if ( (u.push(l, s), f != g || ((d = n(l)), (p = n(s)), d.length != p.length || d.some(function (y) { return !i(l[y], s[y], u); }))) ) return !1; switch (f.slice(8, -1)) { case "Symbol": return l.valueOf() == s.valueOf(); case "Date": case "Number": return +l == +s || (+l != +l && +s != +s); case "RegExp": case "Function": case "String": case "Boolean": return "" + l == "" + s; case "Set": case "Map": ((d = l.entries()), (p = s.entries())); do if (!i((c = d.next()).value, p.next().value, u)) return !1; while (!c.done); return !0; case "ArrayBuffer": ((l = new Uint8Array(l)), (s = new Uint8Array(s))); case "DataView": ((l = new Uint8Array(l.buffer)), (s = new Uint8Array(s.buffer))); case "Float32Array": case "Float64Array": case "Int8Array": case "Int16Array": case "Int32Array": case "Uint8Array": case "Uint16Array": case "Uint32Array": case "Uint8ClampedArray": case "Arguments": case "Array": if (l.length != s.length) return !1; for (c = 0; c < l.length; c++) if ( (c in l || c in s) && (c in l != c in s || !i(l[c], s[c], u)) ) return !1; return !0; case "Object": return i(r(l), r(s), u); default: return !1; } }, "n")(o, a, []); }; })())); }); function J0(e) { return e .replace(/_/g, " ") .replace(/-/g, " ") .replace(/\./g, " ") .replace(/([^\n])([A-Z])([a-z])/g, (t, r, n, o) => `${r} ${n}${o}`) .replace(/([a-z])([A-Z])/g, (t, r, n) => `${r} ${n}`) .replace(/([a-z])([0-9])/gi, (t, r, n) => `${r} ${n}`) .replace(/([0-9])([a-z])/gi, (t, r, n) => `${r} ${n}`) .replace(/(\s|^)(\w)/g, (t, r, n) => `${r}${n.toUpperCase()}`) .replace(/ +/g, " ") .trim(); } R(J0, "toStartCaseStr"); var tf = w$(S$()), Q0 = R((e) => e.map((t) => typeof t < "u").filter(Boolean).length, "count"), C$ = R((e, t) => { let { exists: r, eq: n, neq: o, truthy: a } = e; if (Q0([r, n, o, a]) > 1) throw new Error( `Invalid conditional test ${JSON.stringify({ exists: r, eq: n, neq: o })}`, ); if (typeof n < "u") return (0, tf.isEqual)(t, n); if (typeof o < "u") return !(0, tf.isEqual)(t, o); if (typeof r < "u") { let i = typeof t < "u"; return r ? i : !i; } return typeof a > "u" || a ? !!t : !t; }, "testValue"), ey = R((e, t, r) => { if (!e.if) return !0; let { arg: n, global: o } = e.if; if (Q0([n, o]) !== 1) throw new Error( `Invalid conditional value ${JSON.stringify({ arg: n, global: o })}`, ); let a = n ? t[n] : r[o]; return C$(e.if, a); }, "includeConditionalArg"); const { global: Ml } = __STORYBOOK_MODULE_GLOBAL__, { Channel: $$ } = __STORYBOOK_MODULE_CHANNELS__; function ty() { let e = { setHandler: R(() => {}, "setHandler"), send: R(() => {}, "send") }; return new $$({ transport: e }); } R(ty, "mockChannel"); var ry = class { constructor() { ((this.getChannel = R(() => { if (!this.channel) { let t = ty(); return (this.setChannel(t), t); } return this.channel; }, "getChannel")), (this.ready = R(() => this.promise, "ready")), (this.hasChannel = R(() => !!this.channel, "hasChannel")), (this.setChannel = R((t) => { ((this.channel = t), this.resolve()); }, "setChannel")), (this.promise = new Promise((t) => { this.resolve = () => t(this.getChannel()); }))); } }; R(ry, "AddonStore"); var A$ = ry, zl = "__STORYBOOK_ADDONS_PREVIEW"; function ny() { return (Ml[zl] || (Ml[zl] = new A$()), Ml[zl]); } R(ny, "getAddonsStore"); var rf = ny(); const { logger: kN } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { FORCE_RE_RENDER: ON, RESET_STORY_ARGS: FN, STORY_RENDERED: nf, UPDATE_GLOBALS: _N, UPDATE_STORY_ARGS: TN, } = __STORYBOOK_MODULE_CORE_EVENTS__, { global: Hl } = __STORYBOOK_MODULE_GLOBAL__; var oy = class { constructor() { ((this.hookListsMap = void 0), (this.mountedDecorators = void 0), (this.prevMountedDecorators = void 0), (this.currentHooks = void 0), (this.nextHookIndex = void 0), (this.currentPhase = void 0), (this.currentEffects = void 0), (this.prevEffects = void 0), (this.currentDecoratorName = void 0), (this.hasUpdates = void 0), (this.currentContext = void 0), (this.renderListener = R((t) => { t === this.currentContext?.id && (this.triggerEffects(), (this.currentContext = null), this.removeRenderListeners()); }, "renderListener")), this.init()); } init() { ((this.hookListsMap = new WeakMap()), (this.mountedDecorators = new Set()), (this.prevMountedDecorators = new Set()), (this.currentHooks = []), (this.nextHookIndex = 0), (this.currentPhase = "NONE"), (this.currentEffects = []), (this.prevEffects = []), (this.currentDecoratorName = null), (this.hasUpdates = !1), (this.currentContext = null)); } clean() { (this.prevEffects.forEach((t) => { t.destroy && t.destroy(); }), this.init(), this.removeRenderListeners()); } getNextHook() { let t = this.currentHooks[this.nextHookIndex]; return ((this.nextHookIndex += 1), t); } triggerEffects() { (this.prevEffects.forEach((t) => { !this.currentEffects.includes(t) && t.destroy && t.destroy(); }), this.currentEffects.forEach((t) => { this.prevEffects.includes(t) || (t.destroy = t.create()); }), (this.prevEffects = this.currentEffects), (this.currentEffects = [])); } addRenderListeners() { (this.removeRenderListeners(), rf.getChannel().on(nf, this.renderListener)); } removeRenderListeners() { rf.getChannel().removeListener(nf, this.renderListener); } }; R(oy, "HooksContext"); var D$ = oy; function Qs(e) { let t = R((...r) => { let { hooks: n } = typeof r[0] == "function" ? r[1] : r[0], o = n.currentPhase, a = n.currentHooks, i = n.nextHookIndex, l = n.currentDecoratorName; ((n.currentDecoratorName = e.name), n.prevMountedDecorators.has(e) ? ((n.currentPhase = "UPDATE"), (n.currentHooks = n.hookListsMap.get(e) || [])) : ((n.currentPhase = "MOUNT"), (n.currentHooks = []), n.hookListsMap.set(e, n.currentHooks), n.prevMountedDecorators.add(e)), (n.nextHookIndex = 0)); let s = Hl.STORYBOOK_HOOKS_CONTEXT; Hl.STORYBOOK_HOOKS_CONTEXT = n; let u = e(...r); if ( ((Hl.STORYBOOK_HOOKS_CONTEXT = s), n.currentPhase === "UPDATE" && n.getNextHook() != null) ) throw new Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.", ); return ( (n.currentPhase = o), (n.currentHooks = a), (n.nextHookIndex = i), (n.currentDecoratorName = l), u ); }, "hookified"); return ((t.originalFn = e), t); } R(Qs, "hookify"); var Ul = 0, k$ = 25, O$ = R( (e) => (t, r) => { let n = e( Qs(t), r.map((o) => Qs(o)), ); return (o) => { let { hooks: a } = o; ((a.prevMountedDecorators ??= new Set()), (a.mountedDecorators = new Set([t, ...r])), (a.currentContext = o), (a.hasUpdates = !1)); let i = n(o); for (Ul = 1; a.hasUpdates; ) if ( ((a.hasUpdates = !1), (a.currentEffects = []), (i = n(o)), (Ul += 1), Ul > k$) ) throw new Error( "Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.", ); return (a.addRenderListeners(), i); }; }, "applyHooks", ); function La(e) { if (!e || typeof e != "object") return !1; let t = Object.getPrototypeOf(e); return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1; } R(La, "isPlainObject"); function jn(e, t) { let r = {}, n = Object.keys(e); for (let o = 0; o < n.length; o++) { let a = n[o], i = e[a]; r[a] = t(i, a, e); } return r; } R(jn, "mapValues"); function ay(e, t) { let r = {}, n = Object.keys(e); for (let o = 0; o < n.length; o++) { let a = n[o], i = e[a]; t(i, a) && (r[a] = i); } return r; } R(ay, "pickBy"); const { once: PN } = __STORYBOOK_MODULE_CLIENT_LOGGER__; function ji(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var o = n.reduce(function (l, s) { var u = s.match(/\n([\t ]+|(?!\s).)/g); return u ? l.concat( u.map(function (d) { var p, c; return (c = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && c !== void 0 ? c : 0; }), ) : l; }, []); if (o.length) { var a = new RegExp( ` [ ]{` + Math.min.apply(Math, o) + "}", "g", ); n = n.map(function (l) { return l.replace( a, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (l, s) { var u = i.match(/(?:^|\n)( *)$/), d = u ? u[1] : "", p = l; (typeof l == "string" && l.includes(` `) && (p = String(l) .split( ` `, ) .map(function (c, f) { return f === 0 ? c : "" + d + c; }).join(` `)), (i += p + n[s + 1])); }), i ); } R(ji, "dedent"); var iy = "UNTARGETED"; function ly({ args: e, argTypes: t }) { let r = {}; return ( Object.entries(e).forEach(([n, o]) => { let { target: a = iy } = t[n] || {}; ((r[a] = r[a] || {}), (r[a][n] = o)); }), r ); } R(ly, "groupArgsByTarget"); var F$ = R( (e = {}) => Object.entries(e).reduce( (t, [r, { defaultValue: n }]) => (typeof n < "u" && (t[r] = n), t), {}, ), "getValuesFromArgTypes", ), _$ = R((e) => (typeof e == "string" ? { name: e } : e), "normalizeType"), T$ = R((e) => (typeof e == "string" ? { type: e } : e), "normalizeControl"), R$ = R((e, t) => { let { type: r, control: n, ...o } = e, a = { name: t, ...o }; return ( r && (a.type = _$(r)), n ? (a.control = T$(n)) : n === !1 && (a.control = { disable: !0 }), a ); }, "normalizeInputType"), ri = R((e) => jn(e, R$), "normalizeInputTypes"); const { deprecate: P$, logger: I$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; var se = R((e) => (Array.isArray(e) ? e : e ? [e] : []), "normalizeArrays"), L$ = ji` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `; function sy(e, t, r) { let n = t, o = typeof t == "function" ? t : null, { story: a } = n; a && (I$.debug("deprecated story", a), P$(L$)); let i = p3(e), l = (typeof n != "function" && n.name) || n.storyName || a?.name || i, s = [...se(n.decorators), ...se(a?.decorators)], u = { ...a?.parameters, ...n.parameters }, d = { ...a?.args, ...n.args }, p = { ...a?.argTypes, ...n.argTypes }, c = [...se(n.loaders), ...se(a?.loaders)], f = [...se(n.beforeEach), ...se(a?.beforeEach)], g = [...se(n.afterEach), ...se(a?.afterEach)], { render: y, play: x, tags: v = [], globals: C = {} } = n, w = u.__id || d3(r.id, i); return { moduleExport: t, id: w, name: l, tags: v, decorators: s, parameters: u, args: d, argTypes: ri(p), loaders: c, beforeEach: f, afterEach: g, globals: C, ...(y && { render: y }), ...(o && { userStoryFn: o }), ...(x && { play: x }), }; } R(sy, "normalizeStory"); function uy(e, t = e.title, r) { let { id: n, argTypes: o } = e; return { id: Wi(n || t), ...e, title: t, ...(o && { argTypes: ri(o) }), parameters: { fileName: r, ...e.parameters }, }; } R(uy, "normalizeComponentAnnotations"); const { NoRenderFunctionError: B$ } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, { global: N$ } = __STORYBOOK_MODULE_GLOBAL__, { global: j$ } = __STORYBOOK_MODULE_GLOBAL__; function cy(e) { return e != null && dy(e).includes("mount"); } R(cy, "mountDestructured"); function dy(e) { let t = e.toString().match(/[^(]*\(([^)]*)/); if (!t) return []; let r = eu(t[1]); if (!r.length) return []; let n = r[0]; return n.startsWith("{") && n.endsWith("}") ? eu(n.slice(1, -1).replace(/\s/g, "")).map((o) => o.replace(/:.*|=.*/g, ""), ) : []; } R(dy, "getUsedProps"); function eu(e) { let t = [], r = [], n = 0; for (let a = 0; a < e.length; a++) if (e[a] === "{" || e[a] === "[") r.push(e[a] === "{" ? "}" : "]"); else if (e[a] === r[r.length - 1]) r.pop(); else if (!r.length && e[a] === ",") { let i = e.substring(n, a).trim(); (i && t.push(i), (n = a + 1)); } let o = e.substring(n).trim(); return (o && t.push(o), t); } R(eu, "splitByComma"); function py(e, t, r) { let n = r(e); return (o) => t(n, o); } R(py, "decorateStory"); function fy({ componentId: e, title: t, kind: r, id: n, name: o, story: a, parameters: i, initialArgs: l, argTypes: s, ...u } = {}) { return u; } R(fy, "sanitizeStoryContextUpdate"); function gy(e, t) { let r = {}, n = R( (a) => (i) => { if (!r.value) throw new Error("Decorated function called without init"); return ((r.value = { ...r.value, ...fy(i) }), a(r.value)); }, "bindWithContext", ), o = t.reduce((a, i) => py(a, i, n), e); return (a) => ((r.value = a), o(a)); } R(gy, "defaultDecorateStory"); var Ar = R((...e) => { let t = {}, r = e.filter(Boolean), n = r.reduce( (o, a) => ( Object.entries(a).forEach(([i, l]) => { let s = o[i]; Array.isArray(l) || typeof s > "u" ? (o[i] = l) : La(l) && La(s) ? (t[i] = !0) : typeof l < "u" && (o[i] = l); }), o ), {}, ); return ( Object.keys(t).forEach((o) => { let a = r .filter(Boolean) .map((i) => i[o]) .filter((i) => typeof i < "u"); a.every((i) => La(i)) ? (n[o] = Ar(...a)) : (n[o] = a[a.length - 1]); }), n ); }, "combineParameters"); function my(e, t, r) { let { moduleExport: n, id: o, name: a } = e || {}, i = hy(e, t, r), l = R(async (A) => { let S = {}; for (let D of [se(r.loaders), se(t.loaders), se(e.loaders)]) { if (A.abortSignal.aborted) return S; let F = await Promise.all(D.map((k) => k(A))); Object.assign(S, ...F); } return S; }, "applyLoaders"), s = R(async (A) => { let S = new Array(); for (let D of [ ...se(r.beforeEach), ...se(t.beforeEach), ...se(e.beforeEach), ]) { if (A.abortSignal.aborted) return S; let F = await D(A); F && S.push(F); } return S; }, "applyBeforeEach"), u = R(async (A) => { let S = [ ...se(r.afterEach), ...se(t.afterEach), ...se(e.afterEach), ].reverse(); for (let D of S) { if (A.abortSignal.aborted) return; await D(A); } }, "applyAfterEach"), d = R((A) => A.originalStoryFn(A.args, A), "undecoratedStoryFn"), { applyDecorators: p = gy, runStep: c } = r, f = [...se(e?.decorators), ...se(t?.decorators), ...se(r?.decorators)], g = e?.userStoryFn || e?.render || t.render || r.render, y = O$(p)(d, f), x = R((A) => y(A), "unboundStoryFn"), v = e?.play ?? t?.play, C = cy(v); if (!g && !C) throw new B$({ id: o }); let w = R( (A) => async () => (await A.renderToCanvas(), A.canvas), "defaultMount", ), E = e.mount ?? t.mount ?? r.mount ?? w, $ = r.testingLibraryRender; return { storyGlobals: {}, ...i, moduleExport: n, id: o, name: a, story: a, originalStoryFn: g, undecoratedStoryFn: d, unboundStoryFn: x, applyLoaders: l, applyBeforeEach: s, applyAfterEach: u, playFunction: v, runStep: c, mount: E, testingLibraryRender: $, renderToCanvas: r.renderToCanvas, usesMount: C, }; } R(my, "prepareStory"); function hy(e, t, r) { let n = ["dev", "test"], o = j$.DOCS_OPTIONS?.autodocs === !0 ? ["autodocs"] : [], a = nb( ...n, ...o, ...(r.tags ?? []), ...(t.tags ?? []), ...(e?.tags ?? []), ), i = Ar(r.parameters, t.parameters, e?.parameters), { argTypesEnhancers: l = [], argsEnhancers: s = [] } = r, u = Ar(r.argTypes, t.argTypes, e?.argTypes); if (e) { let v = e?.userStoryFn || e?.render || t.render || r.render; i.__isArgsStory = v && v.length > 0; } let d = { ...r.args, ...t.args, ...e?.args }, p = { ...t.globals, ...e?.globals }, c = { componentId: t.id, title: t.title, kind: t.title, id: e?.id || t.id, name: e?.name || "__meta", story: e?.name || "__meta", component: t.component, subcomponents: t.subcomponents, tags: a, parameters: i, initialArgs: d, argTypes: u, storyGlobals: p, }; c.argTypes = l.reduce((v, C) => C({ ...c, argTypes: v }), c.argTypes); let f = { ...d }; c.initialArgs = [...s].reduce( (v, C) => ({ ...v, ...C({ ...c, initialArgs: v }) }), f, ); let { name: g, story: y, ...x } = c; return x; } R(hy, "preparePartialAnnotations"); function yy(e) { let { args: t } = e, r = { ...e, allArgs: void 0, argsByTarget: void 0 }; if (N$.FEATURES?.argTypeTargetsV7) { let a = ly(e); r = { ...e, allArgs: e.args, argsByTarget: a, args: a[iy] || {} }; } let n = Object.entries(r.args).reduce((a, [i, l]) => { if (!r.argTypes[i]?.mapping) return ((a[i] = l), a); let s = R((u) => { let d = r.argTypes[i].mapping; return d && u in d ? d[u] : u; }, "mappingFn"); return ((a[i] = Array.isArray(l) ? l.map(s) : s(l)), a); }, {}), o = Object.entries(n).reduce((a, [i, l]) => { let s = r.argTypes[i] || {}; return (ey(s, n, r.globals) && (a[i] = l), a); }, {}); return { ...r, unmappedArgs: t, args: o }; } R(yy, "prepareContext"); const { logger: M$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; var tu = R((e, t, r) => { let n = typeof e; switch (n) { case "boolean": case "string": case "number": case "function": case "symbol": return { name: n }; } return e ? r.has(e) ? (M$.warn(ji` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args `), { name: "other", value: "cyclic object" }) : (r.add(e), Array.isArray(e) ? { name: "array", value: e.length > 0 ? tu(e[0], t, new Set(r)) : { name: "other", value: "unknown" }, } : { name: "object", value: jn(e, (o) => tu(o, t, new Set(r))) }) : { name: "object", value: {} }; }, "inferType"), by = R((e) => { let { id: t, argTypes: r = {}, initialArgs: n = {} } = e, o = jn(n, (i, l) => ({ name: l, type: tu(i, `${t}.${l}`, new Set()) })), a = jn(r, (i, l) => ({ name: l })); return Ar(o, a, r); }, "inferArgTypes"); by.secondPass = !0; const { logger: z$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; var of = R( (e, t) => (Array.isArray(t) ? t.includes(e) : e.match(t)), "matches", ), H$ = R( (e, t, r) => !t && !r ? e : e && ay(e, (n, o) => { let a = n.name || o.toString(); return !!(!t || of(a, t)) && (!r || !of(a, r)); }), "filterArgTypes", ), U$ = R((e, t, r) => { let { type: n, options: o } = e; if (n) { if (r.color && r.color.test(t)) { let a = n.name; if (a === "string") return { control: { type: "color" } }; a !== "enum" && z$.warn( `Addon controls: Control of type color only supports string, received "${a}" instead`, ); } if (r.date && r.date.test(t)) return { control: { type: "date" } }; switch (n.name) { case "array": return { control: { type: "object" } }; case "boolean": return { control: { type: "boolean" } }; case "string": return { control: { type: "text" } }; case "number": return { control: { type: "number" } }; case "enum": { let { value: a } = n; return { control: { type: a?.length <= 5 ? "radio" : "select" }, options: a, }; } case "function": case "symbol": return null; default: return { control: { type: o ? "select" : "object" } }; } } }, "inferControl"), vy = R((e) => { let { argTypes: t, parameters: { __isArgsStory: r, controls: { include: n = null, exclude: o = null, matchers: a = {}, } = {}, }, } = e; if (!r) return t; let i = H$(t, n, o), l = jn(i, (s, u) => s?.type && U$(s, u.toString(), a)); return Ar(l, i); }, "inferControls"); vy.secondPass = !0; function Nc({ argTypes: e, globalTypes: t, argTypesEnhancers: r, decorators: n, loaders: o, beforeEach: a, afterEach: i, initialGlobals: l, ...s }) { return { ...(e && { argTypes: ri(e) }), ...(t && { globalTypes: ri(t) }), decorators: se(n), loaders: se(o), beforeEach: se(a), afterEach: se(i), argTypesEnhancers: [...(r || []), by, vy], initialGlobals: l, ...s, }; } R(Nc, "normalizeProjectAnnotations"); const { global: W$ } = __STORYBOOK_MODULE_GLOBAL__; var V$ = R( (e) => async () => { let t = []; for (let r of e) { let n = await r(); n && t.unshift(n); } return async () => { for (let r of t) await r(); }; }, "composeBeforeAllHooks", ); function xy(e) { return async (t, r, n) => { await e.reduceRight( (o, a) => async () => a(t, o, n), async () => r(n), )(); }; } R(xy, "composeStepRunners"); function Mn(e, t) { return e.map((r) => r.default?.[t] ?? r[t]).filter(Boolean); } R(Mn, "getField"); function Zt(e, t, r = {}) { return Mn(e, t).reduce((n, o) => { let a = se(o); return r.reverseFileOrder ? [...a, ...n] : [...n, ...a]; }, []); } R(Zt, "getArrayField"); function Oo(e, t) { return Object.assign({}, ...Mn(e, t)); } R(Oo, "getObjectField"); function vn(e, t) { return Mn(e, t).pop(); } R(vn, "getSingletonField"); function jc(e) { let t = Zt(e, "argTypesEnhancers"), r = Mn(e, "runStep"), n = Zt(e, "beforeAll"); return { parameters: Ar(...Mn(e, "parameters")), decorators: Zt(e, "decorators", { reverseFileOrder: !(W$.FEATURES?.legacyDecoratorFileOrder ?? !1), }), args: Oo(e, "args"), argsEnhancers: Zt(e, "argsEnhancers"), argTypes: Oo(e, "argTypes"), argTypesEnhancers: [ ...t.filter((o) => !o.secondPass), ...t.filter((o) => o.secondPass), ], initialGlobals: Oo(e, "initialGlobals"), globalTypes: Oo(e, "globalTypes"), loaders: Zt(e, "loaders"), beforeAll: V$(n), beforeEach: Zt(e, "beforeEach"), afterEach: Zt(e, "afterEach"), render: vn(e, "render"), renderToCanvas: vn(e, "renderToCanvas"), applyDecorators: vn(e, "applyDecorators"), runStep: xy(r), tags: Zt(e, "tags"), mount: vn(e, "mount"), testingLibraryRender: vn(e, "testingLibraryRender"), }; } R(jc, "composeConfigs"); const { MountMustBeDestructuredError: q$ } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__; function Ey() { try { return ( !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) ); } catch { return !1; } } R(Ey, "isTestEnvironment"); function wy(e = !0) { if (!("document" in globalThis && "createElement" in globalThis.document)) return () => {}; let t = document.createElement("style"); ((t.textContent = `*, *:before, *:after { animation: none !important; }`), document.head.appendChild(t)); let r = document.createElement("style"); return ( (r.textContent = `*, *:before, *:after { animation-delay: 0s !important; animation-direction: ${e ? "reverse" : "normal"} !important; animation-play-state: paused !important; transition: none !important; }`), document.head.appendChild(r), document.body.clientHeight, document.head.removeChild(t), () => { r.parentNode?.removeChild(r); } ); } R(wy, "pauseAnimations"); async function Sy(e) { if ( !( "document" in globalThis && "getAnimations" in globalThis.document && "querySelectorAll" in globalThis.document ) ) return; let t = !1; await Promise.race([ new Promise((r) => { setTimeout(() => { let n = [globalThis.document, ...Mc(globalThis.document)], o = R(async () => { if (t || e?.aborted) return; let a = n .flatMap((i) => i?.getAnimations?.() || []) .filter((i) => i.playState === "running" && !Cy(i)); a.length > 0 && (await Promise.all(a.map((i) => i.finished)), await o()); }, "checkAnimationsFinished"); o().then(r); }, 100); }), new Promise((r) => setTimeout(() => { ((t = !0), r(void 0)); }, 5e3), ), ]); } R(Sy, "waitForAnimations"); function Mc(e) { return [e, ...e.querySelectorAll("*")].reduce( (t, r) => ( "shadowRoot" in r && r.shadowRoot && t.push(r.shadowRoot, ...Mc(r.shadowRoot)), t ), [], ); } R(Mc, "getShadowRoots"); function Cy(e) { if ( e instanceof CSSAnimation && e.effect instanceof KeyframeEffect && e.effect.target ) { let t = getComputedStyle(e.effect.target, e.effect.pseudoElement), r = t.animationName?.split(", ").indexOf(e.animationName); return t.animationIterationCount.split(", ")[r] === "infinite"; } return !1; } R(Cy, "isInfiniteAnimation"); var $y = class { constructor() { this.reports = []; } async addReport(t) { this.reports.push(t); } }; R($y, "ReporterAPI"); var G$ = $y, Y$ = "ComposedStory", K$ = "Unnamed Story", Sr = []; function Ay(e, t, r, n, o) { if (e === void 0) throw new Error("Expected a story but received undefined."); t.title = t.title ?? Y$; let a = uy(t), i = o || e.storyName || e.story?.name || e.name || K$, l = sy(i, e, a), s = Nc(jc([n ?? globalThis.globalProjectAnnotations ?? {}, r ?? {}])), u = my(l, a, s), d = { ...F$(s.globalTypes), ...s.initialGlobals, ...u.storyGlobals }, p = new G$(), c = R(() => { let v = yy({ hooks: new D$(), globals: d, args: { ...u.initialArgs }, viewMode: "story", reporting: p, loaded: {}, abortSignal: new AbortController().signal, step: R((C, w) => u.runStep(C, w, v), "step"), canvasElement: null, canvas: {}, userEvent: {}, globalTypes: s.globalTypes, ...u, context: null, mount: null, }); return ( (v.parameters.__isPortableStory = !0), (v.context = v), u.renderToCanvas && (v.renderToCanvas = async () => { let C = await u.renderToCanvas?.( { componentId: u.componentId, title: u.title, id: u.id, name: u.name, tags: u.tags, showMain: R(() => {}, "showMain"), showError: R((w) => { throw new Error(`${w.title} ${w.description}`); }, "showError"), showException: R((w) => { throw w; }, "showException"), forceRemount: !0, storyContext: v, storyFn: R(() => u.unboundStoryFn(v), "storyFn"), unboundStoryFn: u.unboundStoryFn, }, v.canvasElement, ); C && Sr.push(C); }), (v.mount = u.mount(v)), v ); }, "initializeContext"), f, g = R(async (v) => { let C = c(); return ( (C.canvasElement ??= globalThis?.document?.body), f && (C.loaded = f.loaded), Object.assign(C, v), u.playFunction(C) ); }, "play"), y = R((v) => { let C = c(); return (Object.assign(C, v), Dy(u, C)); }, "run"), x = u.playFunction ? g : void 0; return Object.assign( R(function (v) { let C = c(); return ( f && (C.loaded = f.loaded), (C.args = { ...C.initialArgs, ...v }), u.unboundStoryFn(C) ); }, "storyFn"), { id: u.id, storyName: i, load: R(async () => { for (let C of [...Sr].reverse()) await C(); Sr.length = 0; let v = c(); ((v.loaded = await u.applyLoaders(v)), Sr.push(...(await u.applyBeforeEach(v)).filter(Boolean)), (f = v)); }, "load"), globals: d, args: u.initialArgs, parameters: u.parameters, argTypes: u.argTypes, play: x, run: y, reporting: p, tags: u.tags, }, ); } R(Ay, "composeStory"); async function Dy(e, t) { for (let a of [...Sr].reverse()) await a(); if (((Sr.length = 0), !t.canvasElement)) { let a = document.createElement("div"); (globalThis?.document?.body?.appendChild(a), (t.canvasElement = a), Sr.push(() => { globalThis?.document?.body?.contains(a) && globalThis?.document?.body?.removeChild(a); })); } if (((t.loaded = await e.applyLoaders(t)), t.abortSignal.aborted)) return; Sr.push(...(await e.applyBeforeEach(t)).filter(Boolean)); let r = e.playFunction, n = e.usesMount; if ((n || (await t.mount()), t.abortSignal.aborted)) return; r && (n || (t.mount = async () => { throw new q$({ playFunction: r.toString() }); }), await r(t)); let o; (Ey() ? (o = wy()) : await Sy(t.abortSignal), await e.applyAfterEach(t), await o?.()); } R(Dy, "runStory"); var af = "Invariant failed"; function ni(e, t) { if (!e) { var r = typeof t == "function" ? t() : t, n = r ? "".concat(af, ": ").concat(r) : af; throw new Error(n); } } R(ni, "invariant"); var ky = {}; Z0(ky, { argsEnhancers: () => aA }); const { ImplicitActionsDuringRendering: X$ } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, { global: lf } = __STORYBOOK_MODULE_GLOBAL__, { addons: Z$ } = __STORYBOOK_MODULE_PREVIEW_API__; var J$ = "storybook/actions", Q$ = `${J$}/action-event`, eA = { depth: 10, clearOnStoryChange: !0, limit: 50 }, Oy = R((e, t) => { let r = Object.getPrototypeOf(e); return !r || t(r) ? r : Oy(r, t); }, "findProto"), tA = R( (e) => !!( typeof e == "object" && e && Oy(e, (t) => /^Synthetic(?:Base)?Event$/.test(t.constructor.name)) && typeof e.persist == "function" ), "isReactSyntheticEvent", ), rA = R((e) => { if (tA(e)) { let t = Object.create( e.constructor.prototype, Object.getOwnPropertyDescriptors(e), ); t.persist(); let r = Object.getOwnPropertyDescriptor(t, "view"), n = r?.value; return ( typeof n == "object" && n?.constructor.name === "Window" && Object.defineProperty(t, "view", { ...r, value: Object.create(n.constructor.prototype), }), t ); } return e; }, "serializeArg"); function Mi(e, t = {}) { let r = { ...eA, ...t }, n = R(function (...o) { if (t.implicit) { let p = ( "__STORYBOOK_PREVIEW__" in lf ? lf.__STORYBOOK_PREVIEW__ : void 0 )?.storyRenders.find( (c) => c.phase === "playing" || c.phase === "rendering", ); if (p) { let c = !globalThis?.FEATURES?.disallowImplicitActionsInRenderV8, f = new X$({ phase: p.phase, name: e, deprecated: c }); if (c) console.warn(f); else throw f; } } let a = Z$.getChannel(), i = Date.now().toString(36) + Math.random().toString(36).substring(2), l = 5, s = o.map(rA), u = o.length > 1 ? s : s[0], d = { id: i, count: 0, data: { name: e, args: u }, options: { ...r, maxDepth: l + (r.depth || 3) }, }; a.emit(Q$, d); }, "actionHandler"); return ((n.isAction = !0), (n.implicit = t.implicit), n); } R(Mi, "action"); var Fy = R((e, t) => typeof t[e] > "u" && !(e in t), "isInInitialArgs"), nA = R((e) => { let { initialArgs: t, argTypes: r, id: n, parameters: { actions: o }, } = e; if (!o || o.disable || !o.argTypesRegex || !r) return {}; let a = new RegExp(o.argTypesRegex); return Object.entries(r) .filter(([i]) => !!a.test(i)) .reduce( (i, [l, s]) => (Fy(l, t) && (i[l] = Mi(l, { implicit: !0, id: n })), i), {}, ); }, "inferActionsFromArgTypesRegex"), oA = R((e) => { let { initialArgs: t, argTypes: r, parameters: { actions: n }, } = e; return n?.disable || !r ? {} : Object.entries(r) .filter(([o, a]) => !!a.action) .reduce( (o, [a, i]) => ( Fy(a, t) && (o[a] = Mi(typeof i.action == "string" ? i.action : a)), o ), {}, ); }, "addActionsFromArgTypes"), aA = [oA, nA], _y = {}; Z0(_y, { loaders: () => sA }); const { onMockCall: iA } = __STORYBOOK_MODULE_TEST__; var sf = !1, lA = R((e) => { let { parameters: t } = e; t?.actions?.disable || sf || (iA((r, n) => { let o = r.getMockName(); o !== "spy" && (!/^next\/.*::/.test(o) || [ "next/router::useRouter()", "next/navigation::useRouter()", "next/navigation::redirect", "next/cache::", "next/headers::cookies().set", "next/headers::cookies().delete", "next/headers::headers().set", "next/headers::headers().delete", ].some((a) => o.startsWith(a))) && Mi(o)(n); }), (sf = !0)); }, "logActionsWhenMockCalled"), sA = [lA], uf = R(() => ({ ...ky, ..._y }), "default"), oi = "backgrounds"; const { useEffect: cf } = __STORYBOOK_MODULE_PREVIEW_API__; var uA = { light: { name: "light", value: "#F8F8F8" }, dark: { name: "dark", value: "#333" }, }, { document: $t } = globalThis, cA = R( () => globalThis?.matchMedia ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches : !1, "isReduceMotionEnabled", ), df = R((e) => { (Array.isArray(e) ? e : [e]).forEach(dA); }, "clearStyles"), dA = R((e) => { if (!$t) return; let t = $t.getElementById(e); t && t.parentElement && t.parentElement.removeChild(t); }, "clearStyle"), pA = R((e, t) => { if (!$t) return; let r = $t.getElementById(e); if (r) r.innerHTML !== t && (r.innerHTML = t); else { let n = $t.createElement("style"); (n.setAttribute("id", e), (n.innerHTML = t), $t.head.appendChild(n)); } }, "addGridStyle"), fA = R((e, t, r) => { if (!$t) return; let n = $t.getElementById(e); if (n) n.innerHTML !== t && (n.innerHTML = t); else { let o = $t.createElement("style"); (o.setAttribute("id", e), (o.innerHTML = t)); let a = `addon-backgrounds-grid${r ? `-docs-${r}` : ""}`, i = $t.getElementById(a); i ? i.parentElement?.insertBefore(o, i) : $t.head.appendChild(o); } }, "addBackgroundStyle"), gA = { cellSize: 100, cellAmount: 10, opacity: 0.8 }, pf = "addon-backgrounds", ff = "addon-backgrounds-grid", mA = cA() ? "" : "transition: background-color 0.3s;", hA = R((e, t) => { let { globals: r = {}, parameters: n = {}, viewMode: o, id: a } = t, { options: i = uA, disable: l, grid: s = gA } = n[oi] || {}, u = r[oi] || {}, d = typeof u == "string" ? u : u?.value, p = d ? i[d] : void 0, c = typeof p == "string" ? p : p?.value || "transparent", f = typeof u == "string" ? !1 : u.grid || !1, g = !!p && !l, y = o === "docs" ? `#anchor--${a} .docs-story` : ".sb-show-main", x = o === "docs" ? `#anchor--${a} .docs-story` : ".sb-show-main", v = n.layout === void 0 || n.layout === "padded", C = o === "docs" ? 20 : v ? 16 : 0, { cellAmount: w, cellSize: E, opacity: $, offsetX: A = C, offsetY: S = C, } = s, D = o === "docs" ? `${pf}-docs-${a}` : `${pf}-color`, F = o === "docs" ? a : null; cf(() => { let _ = ` ${y} { background: ${c} !important; ${mA} }`; if (!g) { df(D); return; } fA(D, _, F); }, [y, D, F, g, c]); let k = o === "docs" ? `${ff}-docs-${a}` : `${ff}`; return ( cf(() => { if (!f) { df(k); return; } let _ = [ `${E * w}px ${E * w}px`, `${E * w}px ${E * w}px`, `${E}px ${E}px`, `${E}px ${E}px`, ].join(", "), I = ` ${x} { background-size: ${_} !important; background-position: ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px !important; background-blend-mode: difference !important; background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px), linear-gradient(rgba(130, 130, 130, ${$ / 2}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${$ / 2}) 1px, transparent 1px) !important; } `; pA(k, I); }, [w, E, x, k, f, A, S, $]), e() ); }, "withBackgroundAndGrid"), yA = globalThis.FEATURES?.backgrounds ? [hA] : [], bA = { [oi]: { grid: { cellSize: 20, opacity: 0.5, cellAmount: 5 }, disable: !1 }, }, vA = { [oi]: { value: void 0, grid: !1 } }, gf = R( () => ({ decorators: yA, parameters: bA, initialGlobals: vA }), "default", ), { step: xA } = Bc( { step: R(async (e, t, r) => t(r), "step") }, { intercept: !0 }, ), mf = R( () => ({ parameters: { throwPlayFunctionExceptions: !1 }, runStep: xA }), "default", ); const { addons: hf } = __STORYBOOK_MODULE_PREVIEW_API__, { STORY_RENDER_PHASE_CHANGED: EA } = __STORYBOOK_MODULE_CORE_EVENTS__; var zi = "storybook/highlight", wA = `${zi}/add`, SA = `${zi}/remove`, CA = `${zi}/reset`, $A = `${zi}/scroll-into-view`, yf = 2147483647, yr = 28, bf = { chevronLeft: [ "M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z", ], chevronRight: [ "M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z", ], info: [ "M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z", "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", ], shareAlt: [ "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z", "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z", ], }, AA = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), _e = R((e, t = {}, r) => { let n = AA.includes(e) ? document.createElementNS("http://www.w3.org/2000/svg", e) : document.createElement(e); return ( Object.entries(t).forEach(([o, a]) => { /[A-Z]/.test(o) ? (o === "onClick" && (n.addEventListener("click", a), n.addEventListener("keydown", (i) => { (i.key === "Enter" || i.key === " ") && (i.preventDefault(), a()); })), o === "onMouseEnter" && n.addEventListener("mouseenter", a), o === "onMouseLeave" && n.addEventListener("mouseleave", a)) : n.setAttribute(o, a); }), r?.forEach((o) => { if (!(o == null || o === !1)) try { n.appendChild(o); } catch { n.appendChild(document.createTextNode(String(o))); } }), n ); }, "createElement"), ga = R( (e) => bf[e] && _e( "svg", { width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", }, bf[e].map((t) => _e("path", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd", d: t, }), ), ), "createIcon", ), DA = R((e) => { if ("elements" in e) { let { elements: n, color: o, style: a } = e; return { id: void 0, priority: 0, selectors: n, styles: { outline: `2px ${a} ${o}`, outlineOffset: "2px", boxShadow: "0 0 0 6px rgba(255,255,255,0.6)", }, menu: void 0, }; } let { menu: t, ...r } = e; return { id: void 0, priority: 0, styles: { outline: "2px dashed #029cfd" }, ...r, menu: Array.isArray(t) ? (t.every(Array.isArray) ? t : [t]) : void 0, }; }, "normalizeOptions"), kA = R((e) => e instanceof Function, "isFunction"), bo = new Map(), Lr = new Map(), ma = new Map(), Yt = R((e) => { let t = Symbol(); return ( Lr.set(t, []), bo.set(t, e), { get: R(() => bo.get(t), "get"), set: R((r) => { let n = bo.get(t), o = kA(r) ? r(n) : r; o !== n && (bo.set(t, o), Lr.get(t)?.forEach((a) => { (ma.get(a)?.(), ma.set(a, a(o))); })); }, "set"), subscribe: R( (r) => ( Lr.get(t)?.push(r), () => { let n = Lr.get(t); n && Lr.set( t, n.filter((o) => o !== r), ); } ), "subscribe", ), teardown: R(() => { (Lr.get(t)?.forEach((r) => { (ma.get(r)?.(), ma.delete(r)); }), Lr.delete(t), bo.delete(t)); }, "teardown"), } ); }, "useStore"), vf = R((e) => { let t = document.getElementById("storybook-root"), r = new Map(); for (let n of e) { let { priority: o = 0 } = n; for (let a of n.selectors) { let i = [ ...document.querySelectorAll( `:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`, ), ...(t?.querySelectorAll(a) || []), ]; for (let l of i) { let s = r.get(l); (!s || s.priority <= o) && r.set(l, { ...n, priority: o, selectors: Array.from(new Set((s?.selectors || []).concat(a))), }); } } } return r; }, "mapElements"), OA = R( (e) => Array.from(e.entries()) .map( ([ t, { selectors: r, styles: n, hoverStyles: o, focusStyles: a, menu: i, }, ]) => { let { top: l, left: s, width: u, height: d, } = t.getBoundingClientRect(), { position: p } = getComputedStyle(t); return { element: t, selectors: r, styles: n, hoverStyles: o, focusStyles: a, menu: i, top: p === "fixed" ? l : l + window.scrollY, left: p === "fixed" ? s : s + window.scrollX, width: u, height: d, }; }, ) .sort((t, r) => r.width * r.height - t.width * t.height), "mapBoxes", ), xf = R((e, t) => { let r = e.getBoundingClientRect(), { x: n, y: o } = t; return ( r?.top && r?.left && n >= r.left && n <= r.left + r.width && o >= r.top && o <= r.top + r.height ); }, "isOverMenu"), Ef = R((e, t, r) => { if (!t || !r) return !1; let { left: n, top: o, width: a, height: i } = e; (i < yr && ((o = o - Math.round((yr - i) / 2)), (i = yr)), a < yr && ((n = n - Math.round((yr - a) / 2)), (a = yr)), t.style.position === "fixed" && ((n += window.scrollX), (o += window.scrollY))); let { x: l, y: s } = r; return l >= n && l <= n + a && s >= o && s <= o + i; }, "isTargeted"), FA = R((e, t, r = {}) => { let { x: n, y: o } = t, { margin: a = 5, topOffset: i = 0, centered: l = !1 } = r, { scrollX: s, scrollY: u, innerHeight: d, innerWidth: p } = window, c = Math.min( e.style.position === "fixed" ? o - u : o, d - e.clientHeight - a - i + u, ), f = l ? e.clientWidth / 2 : 0, g = e.style.position === "fixed" ? Math.max(Math.min(n - s, p - f - a), f + a) : Math.max(Math.min(n, p - f - a + s), f + a + s); Object.assign(e.style, { ...(g !== n && { left: `${g}px` }), ...(c !== o && { top: `${c}px` }), }); }, "keepInViewport"), wf = R((e) => { window.HTMLElement.prototype.hasOwnProperty("showPopover") && e.showPopover(); }, "showPopover"), _A = R((e) => { window.HTMLElement.prototype.hasOwnProperty("showPopover") && e.hidePopover(); }, "hidePopover"), TA = R( (e) => ({ top: e.top, left: e.left, width: e.width, height: e.height, selectors: e.selectors, element: { attributes: Object.fromEntries( Array.from(e.element.attributes).map((t) => [t.name, t.value]), ), localName: e.element.localName, tagName: e.element.tagName, outerHTML: e.element.outerHTML, }, }), "getEventDetails", ), he = "storybook-highlights-menu", Sf = "storybook-highlights-root", RA = "storybook-root", PA = R((e) => { if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED) return; globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0; let { document: t } = globalThis, r = Yt([]), n = Yt(new Map()), o = Yt([]), a = Yt(), i = Yt(), l = Yt([]), s = Yt([]), u = Yt(), d = Yt(), p = t.getElementById(Sf); (r.subscribe(() => { p || ((p = _e("div", { id: Sf })), t.body.appendChild(p)); }), r.subscribe((S) => { let D = t.getElementById(RA); if (!D) return; n.set(vf(S)); let F = new MutationObserver(() => n.set(vf(S))); return ( F.observe(D, { subtree: !0, childList: !0 }), () => { F.disconnect(); } ); }), n.subscribe((S) => { let D = R( () => requestAnimationFrame(() => o.set(OA(S))), "updateBoxes", ), F = new ResizeObserver(D); (F.observe(t.body), Array.from(S.keys()).forEach((_) => F.observe(_))); let k = Array.from(t.body.querySelectorAll("*")).filter((_) => { let { overflow: I, overflowX: L, overflowY: j, } = window.getComputedStyle(_); return ["auto", "scroll"].some((B) => [I, L, j].includes(B)); }); return ( k.forEach((_) => _.addEventListener("scroll", D)), () => { (F.disconnect(), k.forEach((_) => _.removeEventListener("scroll", D))); } ); }), n.subscribe((S) => { let D = Array.from(S.keys()).filter( ({ style: k }) => k.position === "sticky", ), F = R( () => requestAnimationFrame(() => { o.set((k) => k.map((_) => { if (D.includes(_.element)) { let { top: I, left: L } = _.element.getBoundingClientRect(); return { ..._, top: I + window.scrollY, left: L + window.scrollX, }; } return _; }), ); }), "updateBoxes", ); return ( t.addEventListener("scroll", F), () => t.removeEventListener("scroll", F) ); }), n.subscribe((S) => { l.set((D) => D.filter(({ element: F }) => S.has(F))); }), l.subscribe((S) => { S.length ? (d.set((D) => S.some((F) => F.element === D?.element) ? D : void 0, ), u.set((D) => S.some((F) => F.element === D?.element) ? D : void 0, )) : (d.set(void 0), u.set(void 0), a.set(void 0)); })); let c = new Map(new Map()); r.subscribe((S) => { (S.forEach(({ keyframes: D }) => { if (D) { let F = c.get(D); (F || ((F = t.createElement("style")), F.setAttribute("data-highlight", "keyframes"), c.set(D, F), t.head.appendChild(F)), (F.innerHTML = D)); } }), c.forEach((D, F) => { S.some((k) => k.keyframes === F) || (D.remove(), c.delete(F)); })); }); let f = new Map(new Map()); (o.subscribe((S) => { (S.forEach((D) => { let F = f.get(D.element); if (p && !F) { let k = { popover: "manual", "data-highlight-dimensions": `w${D.width.toFixed(0)}h${D.height.toFixed(0)}`, "data-highlight-coordinates": `x${D.left.toFixed(0)}y${D.top.toFixed(0)}`, }; ((F = p.appendChild(_e("div", k, [_e("div")]))), f.set(D.element, F)); } }), f.forEach((D, F) => { S.some(({ element: k }) => k === F) || (D.remove(), f.delete(F)); })); }), o.subscribe((S) => { let D = S.filter((k) => k.menu); if (!D.length) return; let F = R((k) => { requestAnimationFrame(() => { let _ = t.getElementById(he), I = { x: k.pageX, y: k.pageY }; if (_ && !xf(_, I)) { let L = D.filter((j) => { let B = f.get(j.element); return Ef(j, B, I); }); (a.set(L.length ? I : void 0), l.set(L)); } }); }, "onClick"); return ( t.addEventListener("click", F), () => t.removeEventListener("click", F) ); })); let g = R(() => { let S = t.getElementById(he), D = i.get(); !D || (S && xf(S, D)) || s.set((F) => { let k = o.get().filter((j) => { let B = f.get(j.element); return Ef(j, B, D); }), _ = F.filter((j) => k.includes(j)), I = k.filter((j) => !F.includes(j)), L = F.length - _.length; return I.length || L ? [..._, ...I] : F; }); }, "updateHovered"); (i.subscribe(g), o.subscribe(g)); let y = R(() => { let S = d.get(), D = S ? [S] : l.get(), F = D.length === 1 ? D[0] : u.get(), k = a.get() !== void 0; o.get().forEach((_) => { let I = f.get(_.element); if (I) { let L = F === _, j = k ? (F ? L : D.includes(_)) : s.get()?.includes(_); (Object.assign(I.style, { animation: "none", background: "transparent", border: "none", boxSizing: "border-box", outline: "none", outlineOffset: "0px", ..._.styles, ...(j ? _.hoverStyles : {}), ...(L ? _.focusStyles : {}), position: getComputedStyle(_.element).position === "fixed" ? "fixed" : "absolute", zIndex: yf - 10, top: `${_.top}px`, left: `${_.left}px`, width: `${_.width}px`, height: `${_.height}px`, margin: 0, padding: 0, cursor: _.menu && j ? "pointer" : "default", pointerEvents: _.menu ? "auto" : "none", display: "flex", alignItems: "center", justifyContent: "center", overflow: "visible", }), Object.assign(I.children[0].style, { width: "100%", height: "100%", minHeight: `${yr}px`, minWidth: `${yr}px`, boxSizing: "content-box", padding: I.style.outlineWidth || "0px", }), wf(I)); } }); }, "updateBoxStyles"); (o.subscribe(y), l.subscribe(y), s.subscribe(y), u.subscribe(y), d.subscribe(y)); let x = R(() => { if (!p) return; let S = t.getElementById(he); if (S) S.innerHTML = ""; else { let _ = { id: he, popover: "manual" }; ((S = p.appendChild(_e("div", _))), p.appendChild( _e("style", {}, [ ` #${he} { position: absolute; z-index: ${yf}; width: 300px; padding: 0px; margin: 15px 0 0 0; transform: translateX(-50%); font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; background: white; border: none; border-radius: 6px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); color: #2E3438; } #${he} ul { list-style: none; margin: 0; padding: 0; } #${he} > ul { max-height: 300px; overflow-y: auto; padding: 4px 0; } #${he} li { padding: 0 4px; margin: 0; } #${he} li > :not(ul) { display: flex; padding: 8px; margin: 0; align-items: center; gap: 8px; border-radius: 4px; } #${he} button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: inherit; } #${he} button:focus-visible { outline-color: #029CFD; } #${he} button:hover { background: rgba(2, 156, 253, 0.07); color: #029CFD; cursor: pointer; } #${he} li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; font-size: 11px; } #${he} li svg { flex-shrink: 0; margin: 1px; color: #73828C; } #${he} li > button:hover svg, #${he} li > button:focus-visible svg { color: #029CFD; } #${he} .element-list li svg { display: none; } #${he} li.selectable svg, #${he} li.selected svg { display: block; } #${he} .menu-list { border-top: 1px solid rgba(38, 85, 115, 0.15); } #${he} .menu-list > li:not(:last-child) { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(38, 85, 115, 0.15); } #${he} .menu-items, #${he} .menu-items li { padding: 0; } #${he} .menu-item { display: flex; } #${he} .menu-item-content { display: flex; flex-direction: column; flex-grow: 1; } `, ]), )); } let D = d.get(), F = D ? [D] : l.get(); if ( (F.length && ((S.style.position = getComputedStyle(F[0].element).position === "fixed" ? "fixed" : "absolute"), S.appendChild( _e( "ul", { class: "element-list" }, F.map((_) => { let I = F.length > 1 && !!_.menu?.some((B) => B.some( (z) => !z.selectors || z.selectors.some((V) => _.selectors.includes(V)), ), ), L = I ? { class: "selectable", onClick: R(() => d.set(_), "onClick"), onMouseEnter: R(() => u.set(_), "onMouseEnter"), onMouseLeave: R(() => u.set(void 0), "onMouseLeave"), } : D ? { class: "selected", onClick: R(() => d.set(void 0), "onClick"), } : {}, j = I || D; return _e("li", L, [ _e(j ? "button" : "div", j ? { type: "button" } : {}, [ D ? ga("chevronLeft") : null, _e("code", {}, [_.element.outerHTML]), I ? ga("chevronRight") : null, ]), ]); }), ), )), d.get() || l.get().length === 1) ) { let _ = d.get() || l.get()[0], I = _.menu?.filter((L) => L.some( (j) => !j.selectors || j.selectors.some((B) => _.selectors.includes(B)), ), ); I?.length && S.appendChild( _e( "ul", { class: "menu-list" }, I.map((L) => _e("li", {}, [ _e( "ul", { class: "menu-items" }, L.map( ({ id: j, title: B, description: z, iconLeft: V, iconRight: Y, clickEvent: W, }) => { let G = W && (() => e.emit(W, j, TA(_))); return _e("li", {}, [ _e( G ? "button" : "div", G ? { class: "menu-item", type: "button", onClick: G, } : { class: "menu-item" }, [ V ? ga(V) : null, _e("div", { class: "menu-item-content" }, [ _e(z ? "strong" : "span", {}, [B]), z && _e("span", {}, [z]), ]), Y ? ga(Y) : null, ], ), ]); }, ), ), ]), ), ), ); } let k = a.get(); k ? (Object.assign(S.style, { display: "block", left: `${S.style.position === "fixed" ? k.x - window.scrollX : k.x}px`, top: `${S.style.position === "fixed" ? k.y - window.scrollY : k.y}px`, }), wf(S), requestAnimationFrame(() => FA(S, k, { topOffset: 15, centered: !0 }), )) : (_A(S), Object.assign(S.style, { display: "none" })); }, "renderMenu"); (l.subscribe(x), d.subscribe(x)); let v = R((S) => { let D = DA(S); r.set((F) => { let k = D.id ? F.filter((_) => _.id !== D.id) : F; return D.selectors?.length ? [...k, D] : k; }); }, "addHighlight"), C = R((S) => { S && r.set((D) => D.filter((F) => F.id !== S)); }, "removeHighlight"), w = R(() => { (r.set([]), n.set(new Map()), o.set([]), a.set(void 0), i.set(void 0), l.set([]), s.set([]), u.set(void 0), d.set(void 0)); }, "resetState"), E, $ = R((S, D) => { let F = "scrollIntoView-highlight"; (clearTimeout(E), C(F)); let k = t.querySelector(S); if (!k) { console.warn(`Cannot scroll into view: ${S} not found`); return; } k.scrollIntoView({ behavior: "smooth", block: "center", ...D }); let _ = `kf-${Math.random().toString(36).substring(2, 15)}`; (r.set((I) => [ ...I, { id: F, priority: 1e3, selectors: [S], styles: { outline: "2px solid #1EA7FD", outlineOffset: "-1px", animation: `${_} 3s linear forwards`, }, keyframes: `@keyframes ${_} { 0% { outline: 2px solid #1EA7FD; } 20% { outline: 2px solid #1EA7FD00; } 40% { outline: 2px solid #1EA7FD; } 60% { outline: 2px solid #1EA7FD00; } 80% { outline: 2px solid #1EA7FD; } 100% { outline: 2px solid #1EA7FD00; } }`, }, ]), (E = setTimeout(() => C(F), 3500))); }, "scrollIntoView"), A = R((S) => { requestAnimationFrame(() => i.set({ x: S.pageX, y: S.pageY })); }, "onMouseMove"); (t.body.addEventListener("mousemove", A), e.on(wA, v), e.on(SA, C), e.on(CA, w), e.on($A, $), e.on(EA, ({ newPhase: S }) => { S === "loading" && w(); })); }, "useHighlights"); globalThis?.FEATURES?.highlight && hf?.ready && hf.ready().then(PA); var Cf = R(() => ({}), "default"), IA = "measureEnabled"; const { useEffect: $f } = __STORYBOOK_MODULE_PREVIEW_API__, { global: ai } = __STORYBOOK_MODULE_GLOBAL__; function zc() { let e = ai.document.documentElement, t = Math.max(e.scrollHeight, e.offsetHeight); return { width: Math.max(e.scrollWidth, e.offsetWidth), height: t }; } R(zc, "getDocumentWidthAndHeight"); function Ty() { let e = ai.document.createElement("canvas"); e.id = "storybook-addon-measure"; let t = e.getContext("2d"); ni(t != null); let { width: r, height: n } = zc(); return ( ii(e, t, { width: r, height: n }), (e.style.position = "absolute"), (e.style.left = "0"), (e.style.top = "0"), (e.style.zIndex = "2147483647"), (e.style.pointerEvents = "none"), ai.document.body.appendChild(e), { canvas: e, context: t, width: r, height: n } ); } R(Ty, "createCanvas"); function ii(e, t, { width: r, height: n }) { ((e.style.width = `${r}px`), (e.style.height = `${n}px`)); let o = ai.window.devicePixelRatio; ((e.width = Math.floor(r * o)), (e.height = Math.floor(n * o)), t.scale(o, o)); } R(ii, "setCanvasWidthAndHeight"); var Te = {}; function Ry() { Te.canvas || (Te = Ty()); } R(Ry, "init"); function Hc() { Te.context && Te.context.clearRect(0, 0, Te.width ?? 0, Te.height ?? 0); } R(Hc, "clear"); function Py(e) { (Hc(), e(Te.context)); } R(Py, "draw"); function Iy() { (ni(Te.canvas, "Canvas should exist in the state."), ni(Te.context, "Context should exist in the state."), ii(Te.canvas, Te.context, { width: 0, height: 0 })); let { width: e, height: t } = zc(); (ii(Te.canvas, Te.context, { width: e, height: t }), (Te.width = e), (Te.height = t)); } R(Iy, "rescale"); function Ly() { Te.canvas && (Hc(), Te.canvas.parentNode?.removeChild(Te.canvas), (Te = {})); } R(Ly, "destroy"); const { global: St } = __STORYBOOK_MODULE_GLOBAL__; var fn = { margin: "#f6b26b", border: "#ffe599", padding: "#93c47d", content: "#6fa8dc", text: "#232020", }, rr = 6; function ru(e, { x: t, y: r, w: n, h: o, r: a }) { ((t = t - n / 2), (r = r - o / 2), n < 2 * a && (a = n / 2), o < 2 * a && (a = o / 2), e.beginPath(), e.moveTo(t + a, r), e.arcTo(t + n, r, t + n, r + o, a), e.arcTo(t + n, r + o, t, r + o, a), e.arcTo(t, r + o, t, r, a), e.arcTo(t, r, t + n, r, a), e.closePath()); } R(ru, "roundedRect"); function By( e, { padding: t, border: r, width: n, height: o, top: a, left: i }, ) { let l = n - r.left - r.right - t.left - t.right, s = o - t.top - t.bottom - r.top - r.bottom, u = i + r.left + t.left, d = a + r.top + t.top; return ( e === "top" ? (u += l / 2) : e === "right" ? ((u += l), (d += s / 2)) : e === "bottom" ? ((u += l / 2), (d += s)) : e === "left" ? (d += s / 2) : e === "center" && ((u += l / 2), (d += s / 2)), { x: u, y: d } ); } R(By, "positionCoordinate"); function Ny(e, t, { margin: r, border: n, padding: o }, a, i) { let l = R((c) => 0, "shift"), s = 0, u = 0, d = i ? 1 : 0.5, p = i ? a * 2 : 0; return ( e === "padding" ? (l = R((c) => o[c] * d + p, "shift")) : e === "border" ? (l = R((c) => o[c] + n[c] * d + p, "shift")) : e === "margin" && (l = R((c) => o[c] + n[c] + r[c] * d + p, "shift")), t === "top" ? (u = -l("top")) : t === "right" ? (s = l("right")) : t === "bottom" ? (u = l("bottom")) : t === "left" && (s = -l("left")), { offsetX: s, offsetY: u } ); } R(Ny, "offset"); function jy(e, t) { return ( Math.abs(e.x - t.x) < Math.abs(e.w + t.w) / 2 && Math.abs(e.y - t.y) < Math.abs(e.h + t.h) / 2 ); } R(jy, "collide"); function My(e, t, r) { return ( e === "top" ? (t.y = r.y - r.h - rr) : e === "right" ? (t.x = r.x + r.w / 2 + rr + t.w / 2) : e === "bottom" ? (t.y = r.y + r.h + rr) : e === "left" && (t.x = r.x - r.w / 2 - rr - t.w / 2), { x: t.x, y: t.y } ); } R(My, "overlapAdjustment"); function Uc(e, t, { x: r, y: n, w: o, h: a }, i) { return ( ru(e, { x: r, y: n, w: o, h: a, r: 3 }), (e.fillStyle = `${fn[t]}dd`), e.fill(), (e.strokeStyle = fn[t]), e.stroke(), (e.fillStyle = fn.text), e.fillText(i, r, n), ru(e, { x: r, y: n, w: o, h: a, r: 3 }), (e.fillStyle = `${fn[t]}dd`), e.fill(), (e.strokeStyle = fn[t]), e.stroke(), (e.fillStyle = fn.text), e.fillText(i, r, n), { x: r, y: n, w: o, h: a } ); } R(Uc, "textWithRect"); function Wc(e, t) { ((e.font = "600 12px monospace"), (e.textBaseline = "middle"), (e.textAlign = "center")); let r = e.measureText(t), n = r.actualBoundingBoxAscent + r.actualBoundingBoxDescent, o = r.width + rr * 2, a = n + rr * 2; return { w: o, h: a }; } R(Wc, "configureText"); function zy(e, t, { type: r, position: n = "center", text: o }, a, i = !1) { let { x: l, y: s } = By(n, t), { offsetX: u, offsetY: d } = Ny(r, n, t, rr + 1, i); ((l += u), (s += d)); let { w: p, h: c } = Wc(e, o); if (a && jy({ x: l, y: s, w: p, h: c }, a)) { let f = My(n, { x: l, y: s, w: p }, a); ((l = f.x), (s = f.y)); } return Uc(e, r, { x: l, y: s, w: p, h: c }, o); } R(zy, "drawLabel"); function Hy(e, { w: t, h: r }) { let n = t * 0.5 + rr, o = r * 0.5 + rr; return { offsetX: (e.x === "left" ? -1 : 1) * n, offsetY: (e.y === "top" ? -1 : 1) * o, }; } R(Hy, "floatingOffset"); function Uy(e, t, { type: r, text: n }) { let { floatingAlignment: o, extremities: a } = t, i = a[o.x], l = a[o.y], { w: s, h: u } = Wc(e, n), { offsetX: d, offsetY: p } = Hy(o, { w: s, h: u }); return ((i += d), (l += p), Uc(e, r, { x: i, y: l, w: s, h: u }, n)); } R(Uy, "drawFloatingLabel"); function xn(e, t, r, n) { let o = []; r.forEach((a, i) => { let l = n && a.position === "center" ? Uy(e, t, a) : zy(e, t, a, o[i - 1], n); o[i] = l; }); } R(xn, "drawStack"); function Wy(e, t, r, n) { let o = r.reduce( (a, i) => ( Object.prototype.hasOwnProperty.call(a, i.position) || (a[i.position] = []), a[i.position]?.push(i), a ), {}, ); (o.top && xn(e, t, o.top, n), o.right && xn(e, t, o.right, n), o.bottom && xn(e, t, o.bottom, n), o.left && xn(e, t, o.left, n), o.center && xn(e, t, o.center, n)); } R(Wy, "labelStacks"); var Hi = { margin: "#f6b26ba8", border: "#ffe599a8", padding: "#93c47d8c", content: "#6fa8dca8", }, Af = 30; function it(e) { return parseInt(e.replace("px", ""), 10); } R(it, "pxToNumber"); function Vr(e) { return Number.isInteger(e) ? e : e.toFixed(2); } R(Vr, "round"); function Ui(e) { return e.filter((t) => t.text !== 0 && t.text !== "0"); } R(Ui, "filterZeroValues"); function Vy(e) { let t = { top: St.window.scrollY, bottom: St.window.scrollY + St.window.innerHeight, left: St.window.scrollX, right: St.window.scrollX + St.window.innerWidth, }, r = { top: Math.abs(t.top - e.top), bottom: Math.abs(t.bottom - e.bottom), left: Math.abs(t.left - e.left), right: Math.abs(t.right - e.right), }; return { x: r.left > r.right ? "left" : "right", y: r.top > r.bottom ? "top" : "bottom", }; } R(Vy, "floatingAlignment"); function qy(e) { let t = St.getComputedStyle(e), { top: r, left: n, right: o, bottom: a, width: i, height: l, } = e.getBoundingClientRect(), { marginTop: s, marginBottom: u, marginLeft: d, marginRight: p, paddingTop: c, paddingBottom: f, paddingLeft: g, paddingRight: y, borderBottomWidth: x, borderTopWidth: v, borderLeftWidth: C, borderRightWidth: w, } = t; ((r = r + St.window.scrollY), (n = n + St.window.scrollX), (a = a + St.window.scrollY), (o = o + St.window.scrollX)); let E = { top: it(s), bottom: it(u), left: it(d), right: it(p) }, $ = { top: it(c), bottom: it(f), left: it(g), right: it(y) }, A = { top: it(v), bottom: it(x), left: it(C), right: it(w) }, S = { top: r - E.top, bottom: a + E.bottom, left: n - E.left, right: o + E.right, }; return { margin: E, padding: $, border: A, top: r, left: n, bottom: a, right: o, width: i, height: l, extremities: S, floatingAlignment: Vy(S), }; } R(qy, "measureElement"); function Gy( e, { margin: t, width: r, height: n, top: o, left: a, bottom: i, right: l }, ) { let s = n + t.bottom + t.top; ((e.fillStyle = Hi.margin), e.fillRect(a, o - t.top, r, t.top), e.fillRect(l, o - t.top, t.right, s), e.fillRect(a, i, r, t.bottom), e.fillRect(a - t.left, o - t.top, t.left, s)); let u = [ { type: "margin", text: Vr(t.top), position: "top" }, { type: "margin", text: Vr(t.right), position: "right" }, { type: "margin", text: Vr(t.bottom), position: "bottom" }, { type: "margin", text: Vr(t.left), position: "left" }, ]; return Ui(u); } R(Gy, "drawMargin"); function Yy( e, { padding: t, border: r, width: n, height: o, top: a, left: i, bottom: l, right: s, }, ) { let u = n - r.left - r.right, d = o - t.top - t.bottom - r.top - r.bottom; ((e.fillStyle = Hi.padding), e.fillRect(i + r.left, a + r.top, u, t.top), e.fillRect(s - t.right - r.right, a + t.top + r.top, t.right, d), e.fillRect(i + r.left, l - t.bottom - r.bottom, u, t.bottom), e.fillRect(i + r.left, a + t.top + r.top, t.left, d)); let p = [ { type: "padding", text: t.top, position: "top" }, { type: "padding", text: t.right, position: "right" }, { type: "padding", text: t.bottom, position: "bottom" }, { type: "padding", text: t.left, position: "left" }, ]; return Ui(p); } R(Yy, "drawPadding"); function Ky( e, { border: t, width: r, height: n, top: o, left: a, bottom: i, right: l }, ) { let s = n - t.top - t.bottom; ((e.fillStyle = Hi.border), e.fillRect(a, o, r, t.top), e.fillRect(a, i - t.bottom, r, t.bottom), e.fillRect(a, o + t.top, t.left, s), e.fillRect(l - t.right, o + t.top, t.right, s)); let u = [ { type: "border", text: t.top, position: "top" }, { type: "border", text: t.right, position: "right" }, { type: "border", text: t.bottom, position: "bottom" }, { type: "border", text: t.left, position: "left" }, ]; return Ui(u); } R(Ky, "drawBorder"); function Xy( e, { padding: t, border: r, width: n, height: o, top: a, left: i }, ) { let l = n - r.left - r.right - t.left - t.right, s = o - t.top - t.bottom - r.top - r.bottom; return ( (e.fillStyle = Hi.content), e.fillRect(i + r.left + t.left, a + r.top + t.top, l, s), [{ type: "content", position: "center", text: `${Vr(l)} x ${Vr(s)}` }] ); } R(Xy, "drawContent"); function Zy(e) { return (t) => { if (e && t) { let r = qy(e), n = Gy(t, r), o = Yy(t, r), a = Ky(t, r), i = Xy(t, r), l = r.width <= Af * 3 || r.height <= Af; Wy(t, r, [...i, ...o, ...a, ...n], l); } }; } R(Zy, "drawBoxModel"); function Jy(e) { Py(Zy(e)); } R(Jy, "drawSelectedElement"); const { global: LA } = __STORYBOOK_MODULE_GLOBAL__; var BA = R((e, t) => { let r = LA.document.elementFromPoint(e, t), n = R((o) => { if (o && o.shadowRoot) { let a = o.shadowRoot.elementFromPoint(e, t); return o.isEqualNode(a) ? o : a.shadowRoot ? n(a) : a; } return o; }, "crawlShadows"); return n(r) || r; }, "deepElementFromPoint"), Df, ha = { x: 0, y: 0 }; function nu(e, t) { ((Df = BA(e, t)), Jy(Df)); } R(nu, "findAndDrawElement"); var NA = R((e, t) => { let { measureEnabled: r } = t.globals || {}; return ( $f(() => { if (typeof globalThis.document > "u") return; let n = R((o) => { window.requestAnimationFrame(() => { (o.stopPropagation(), (ha.x = o.clientX), (ha.y = o.clientY)); }); }, "onPointerMove"); return ( globalThis.document.addEventListener("pointermove", n), () => { globalThis.document.removeEventListener("pointermove", n); } ); }, []), $f(() => { let n = R((a) => { window.requestAnimationFrame(() => { (a.stopPropagation(), nu(a.clientX, a.clientY)); }); }, "onPointerOver"), o = R(() => { window.requestAnimationFrame(() => { Iy(); }); }, "onResize"); return ( t.viewMode === "story" && r && (globalThis.document.addEventListener("pointerover", n), Ry(), globalThis.window.addEventListener("resize", o), nu(ha.x, ha.y)), () => { (globalThis.window.removeEventListener("resize", o), Ly()); } ); }, [r, t.viewMode]), e() ); }, "withMeasure"), jA = globalThis.FEATURES?.measure ? [NA] : [], MA = { [IA]: !1 }, kf = R(() => ({ decorators: jA, initialGlobals: MA }), "default"), Qy = "outline"; const { useEffect: zA, useMemo: HA } = __STORYBOOK_MODULE_PREVIEW_API__, { global: Ba } = __STORYBOOK_MODULE_GLOBAL__; var Of = R((e) => { (Array.isArray(e) ? e : [e]).forEach(UA); }, "clearStyles"), UA = R((e) => { let t = typeof e == "string" ? e : e.join(""), r = Ba.document.getElementById(t); r && r.parentElement && r.parentElement.removeChild(r); }, "clearStyle"), WA = R((e, t) => { let r = Ba.document.getElementById(e); if (r) r.innerHTML !== t && (r.innerHTML = t); else { let n = Ba.document.createElement("style"); (n.setAttribute("id", e), (n.innerHTML = t), Ba.document.head.appendChild(n)); } }, "addOutlineStyles"); function eb(e) { return ji` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`; } R(eb, "outlineCSS"); var VA = R((e, t) => { let r = t.globals || {}, n = [!0, "true"].includes(r[Qy]), o = t.viewMode === "docs", a = HA(() => eb(o ? '[data-story-block="true"]' : ".sb-show-main"), [t]); return ( zA(() => { let i = o ? `addon-outline-docs-${t.id}` : "addon-outline"; return ( n ? WA(i, a) : Of(i), () => { Of(i); } ); }, [n, a, t]), e() ); }, "withOutline"), qA = globalThis.FEATURES?.outline ? [VA] : [], GA = { [Qy]: !1 }, Ff = R(() => ({ decorators: qA, initialGlobals: GA }), "default"); const { clearAllMocks: YA, fn: KA, isMockFunction: XA, resetAllMocks: ZA, restoreAllMocks: JA, uninstrumentedUserEvent: QA, within: e3, } = __STORYBOOK_MODULE_TEST__; var t3 = R(({ parameters: e }) => { e?.test?.mockReset === !0 ? ZA() : e?.test?.clearMocks === !0 ? YA() : e?.test?.restoreMocks !== !1 && JA(); }, "resetAllMocksLoader"), ou = R((e, t = 0, r) => { if (t > 5 || e == null) return e; if (XA(e)) return (r && e.mockName(r), e); if ( typeof e == "function" && "isAction" in e && e.isAction && !("implicit" in e && e.implicit) ) { let n = KA(e); return (r && n.mockName(r), n); } if (Array.isArray(e)) { t++; for (let n = 0; n < e.length; n++) Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = ou(e[n], t)); return e; } if (typeof e == "object" && e.constructor === Object) { t++; for (let [n, o] of Object.entries(e)) Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = ou(o, t, n)); return e; } return e; }, "traverseArgs"), r3 = R(({ initialArgs: e }) => { ou(e); }, "nameSpiesAndWrapActionsInSpies"), _f = !1, n3 = R(async (e) => { globalThis.HTMLElement && e.canvasElement instanceof globalThis.HTMLElement && (e.canvas = e3(e.canvasElement)); let t = globalThis.window?.navigator?.clipboard; if (t) { ((e.userEvent = Bc( { userEvent: QA.setup() }, { intercept: !0 }, ).userEvent), Object.defineProperty(globalThis.window.navigator, "clipboard", { get: R(() => t, "get"), configurable: !0, })); let r = HTMLElement.prototype.focus; _f || Object.defineProperties(HTMLElement.prototype, { focus: { configurable: !0, set: R((n) => { ((r = n), (_f = !0)); }, "set"), get: R(() => r, "get"), }, }); } }, "enhanceContext"), Tf = R(() => ({ loaders: [t3, r3, n3] }), "default"), o3 = "viewport", a3 = { [o3]: { value: void 0, isRotated: !1 } }, Rf = R(() => ({ initialGlobals: a3 }), "default"); function tb() { return [ (kf.default ?? kf)(), (gf.default ?? gf)(), (Cf.default ?? Cf)(), (Ff.default ?? Ff)(), (Rf.default ?? Rf)(), (uf.default ?? uf)(), (mf.default ?? mf)(), (Tf.default ?? Tf)(), ]; } R(tb, "getCoreAnnotations"); function i3(e) { let t, r = { _tag: "Preview", input: e, get composed() { if (t) return t; let { addons: n, ...o } = e; return ((t = Nc(jc([...tb(), ...(n ?? []), o]))), t); }, meta(n) { return rb(n, this); }, }; return ((globalThis.globalProjectAnnotations = r.composed), r); } R(i3, "definePreview"); function l3(e) { return e; } R(l3, "definePreviewAddon"); function s3(e) { return ( e != null && typeof e == "object" && "_tag" in e && e?._tag === "Preview" ); } R(s3, "isPreview"); function u3(e) { return e != null && typeof e == "object" && "_tag" in e && e?._tag === "Meta"; } R(u3, "isMeta"); function rb(e, t) { return { _tag: "Meta", input: e, preview: t, get composed() { throw new Error("Not implemented"); }, story(r = {}) { return Vc(typeof r == "function" ? { render: r } : r, this); }, }; } R(rb, "defineMeta"); function c3(e) { return ( e != null && typeof e == "object" && "_tag" in e && e?._tag === "Story" ); } R(c3, "isStory"); function Vc(e, t) { let r, n = R( () => (r || (r = Ay(e, t.input, void 0, t.preview.composed)), r), "compose", ); return { _tag: "Story", input: e, meta: t, __compose: n, get composed() { let o = n(), { args: a, argTypes: i, parameters: l, id: s, tags: u, globals: d, storyName: p, } = o; return { args: a, argTypes: i, parameters: l, id: s, tags: u, name: p, globals: d, }; }, get play() { return e.play ?? t.input?.play ?? (async () => {}); }, get run() { return n().run ?? (async () => {}); }, extend(o) { return Vc( { ...this.input, ...o, args: { ...this.input.args, ...o.args }, argTypes: Ar(this.input.argTypes, o.argTypes), afterEach: [ ...se(this.input?.afterEach ?? []), ...se(o.afterEach ?? []), ], beforeEach: [ ...se(this.input?.beforeEach ?? []), ...se(o.beforeEach ?? []), ], decorators: [ ...se(this.input?.decorators ?? []), ...se(o.decorators ?? []), ], globals: { ...this.input.globals, ...o.globals }, loaders: [...se(this.input?.loaders ?? []), ...se(o.loaders ?? [])], parameters: Ar(this.input.parameters, o.parameters), tags: nb(...(this.input.tags ?? []), ...(o.tags ?? [])), }, this.meta, ); }, }; } R(Vc, "defineStory"); var Wi = R( (e) => e .toLowerCase() .replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-") .replace(/-+/g, "-") .replace(/^-+/, "") .replace(/-+$/, ""), "sanitize", ), Pf = R((e, t) => { let r = Wi(e); if (r === "") throw new Error( `Invalid ${t} '${e}', must include alphanumeric characters`, ); return r; }, "sanitizeSafe"), d3 = R((e, t) => `${Pf(e, "kind")}${t ? `--${Pf(t, "name")}` : ""}`, "toId"), p3 = R((e) => J0(e), "storyNameFromExport"); function au(e, t) { return Array.isArray(t) ? t.includes(e) : e.match(t); } R(au, "matches"); function f3(e, { includeStories: t, excludeStories: r }) { return e !== "__esModule" && (!t || au(e, t)) && (!r || !au(e, r)); } R(f3, "isExportStory"); var nb = R((...e) => { let t = e.reduce( (r, n) => (n.startsWith("!") ? r.delete(n.slice(1)) : r.add(n), r), new Set(), ); return Array.from(t); }, "combineTags"); function g3(e, t, { signal: r, edges: n } = {}) { let o, a = null, i = n != null && n.includes("leading"), l = n == null || n.includes("trailing"), s = () => { a !== null && (e.apply(o, a), (o = void 0), (a = null)); }, u = () => { (l && s(), f()); }, d = null, p = () => { (d != null && clearTimeout(d), (d = setTimeout(() => { ((d = null), u()); }, t))); }, c = () => { d !== null && (clearTimeout(d), (d = null)); }, f = () => { (c(), (o = void 0), (a = null)); }, g = () => { (c(), s()); }, y = function (...x) { if (r?.aborted) return; ((o = this), (a = x)); let v = d == null; (p(), i && v && s()); }; return ( (y.schedule = p), (y.cancel = f), (y.flush = g), r?.addEventListener("abort", f, { once: !0 }), y ); } function LN(e, t = 0, r = {}) { typeof r != "object" && (r = {}); let { signal: n, leading: o = !1, trailing: a = !0, maxWait: i } = r, l = Array(2); (o && (l[0] = "leading"), a && (l[1] = "trailing")); let s, u = null, d = g3( function (...f) { ((s = e.apply(this, f)), (u = null)); }, t, { signal: n, edges: l }, ), p = function (...f) { if (i != null) { if (u === null) u = Date.now(); else if (Date.now() - u >= i) return ( (s = e.apply(this, f)), (u = Date.now()), d.cancel(), d.schedule(), s ); } return (d.apply(this, f), s); }, c = () => (d.flush(), s); return ((p.cancel = d.cancel), (p.flush = c), p); } function ob(e) { return typeof e == "symbol" || e instanceof Symbol; } function m3(e) { return ob(e) ? NaN : Number(e); } function h3(e) { return e ? ((e = m3(e)), e === 1 / 0 || e === -1 / 0 ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0; } function y3(e) { let t = h3(e), r = t % 1; return r ? t - r : t; } function b3(e) { return Array.from(new Set(e)); } function v3(e) { return e == null || (typeof e != "object" && typeof e != "function"); } function ab(e) { return ArrayBuffer.isView(e) && !(e instanceof DataView); } function ib(e) { return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t), ); } function x3(e) { return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e); } var E3 = "[object RegExp]", lb = "[object String]", sb = "[object Number]", ub = "[object Boolean]", cb = "[object Arguments]", w3 = "[object Symbol]", S3 = "[object Date]", C3 = "[object Map]", $3 = "[object Set]", A3 = "[object Array]", D3 = "[object ArrayBuffer]", k3 = "[object Object]", O3 = "[object DataView]", F3 = "[object Uint8Array]", _3 = "[object Uint8ClampedArray]", T3 = "[object Uint16Array]", R3 = "[object Uint32Array]", P3 = "[object Int8Array]", I3 = "[object Int16Array]", L3 = "[object Int32Array]", B3 = "[object Float32Array]", N3 = "[object Float64Array]"; function j3(e, t) { return An(e, void 0, e, new Map(), t); } function An(e, t, r, n = new Map(), o = void 0) { let a = o?.(e, t, r, n); if (a != null) return a; if (v3(e)) return e; if (n.has(e)) return n.get(e); if (Array.isArray(e)) { let i = new Array(e.length); n.set(e, i); for (let l = 0; l < e.length; l++) i[l] = An(e[l], l, r, n, o); return ( Object.hasOwn(e, "index") && (i.index = e.index), Object.hasOwn(e, "input") && (i.input = e.input), i ); } if (e instanceof Date) return new Date(e.getTime()); if (e instanceof RegExp) { let i = new RegExp(e.source, e.flags); return ((i.lastIndex = e.lastIndex), i); } if (e instanceof Map) { let i = new Map(); n.set(e, i); for (let [l, s] of e) i.set(l, An(s, l, r, n, o)); return i; } if (e instanceof Set) { let i = new Set(); n.set(e, i); for (let l of e) i.add(An(l, void 0, r, n, o)); return i; } if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray(); if (ab(e)) { let i = new (Object.getPrototypeOf(e).constructor)(e.length); n.set(e, i); for (let l = 0; l < e.length; l++) i[l] = An(e[l], l, r, n, o); return i; } if ( e instanceof ArrayBuffer || (typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) ) return e.slice(0); if (e instanceof DataView) { let i = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength); return (n.set(e, i), Hr(i, e, r, n, o), i); } if (typeof File < "u" && e instanceof File) { let i = new File([e], e.name, { type: e.type }); return (n.set(e, i), Hr(i, e, r, n, o), i); } if (e instanceof Blob) { let i = new Blob([e], { type: e.type }); return (n.set(e, i), Hr(i, e, r, n, o), i); } if (e instanceof Error) { let i = new e.constructor(); return ( n.set(e, i), (i.message = e.message), (i.name = e.name), (i.stack = e.stack), (i.cause = e.cause), Hr(i, e, r, n, o), i ); } if (typeof e == "object" && M3(e)) { let i = Object.create(Object.getPrototypeOf(e)); return (n.set(e, i), Hr(i, e, r, n, o), i); } return e; } function Hr(e, t, r = e, n, o) { let a = [...Object.keys(t), ...ib(t)]; for (let i = 0; i < a.length; i++) { let l = a[i], s = Object.getOwnPropertyDescriptor(e, l); (s == null || s.writable) && (e[l] = An(t[l], l, r, n, o)); } } function M3(e) { switch (x3(e)) { case cb: case A3: case D3: case O3: case ub: case S3: case B3: case N3: case P3: case I3: case L3: case C3: case sb: case k3: case E3: case $3: case lb: case w3: case F3: case _3: case T3: case R3: return !0; default: return !1; } } function z3(e) { return Number.isSafeInteger(e) && e >= 0; } function qc(e) { return e != null && typeof e != "function" && z3(e.length); } function H3(e, t) { return j3(e, (r, n, o, a) => { if (typeof e == "object") switch (Object.prototype.toString.call(e)) { case sb: case lb: case ub: { let i = new e.constructor(e?.valueOf()); return (Hr(i, e), i); } case cb: { let i = {}; return ( Hr(i, e), (i.length = e.length), (i[Symbol.iterator] = e[Symbol.iterator]), i ); } default: return; } }); } function U3(e) { return H3(e); } function W3(e, t, r = 1) { if ((t == null && ((t = e), (e = 0)), !Number.isInteger(r) || r === 0)) throw new Error("The step value must be a non-zero integer."); let n = Math.max(Math.ceil((t - e) / r), 0), o = new Array(n); for (let a = 0; a < n; a++) o[a] = e + a * r; return o; } function V3(e) { return qc(e) ? b3(Array.from(e)) : []; } function q3(e) { return typeof Buffer < "u" && Buffer.isBuffer(e); } function G3(e) { let t = e?.constructor, r = typeof t == "function" ? t.prototype : Object.prototype; return e === r; } function Y3(e) { return ab(e); } function K3(e, t) { if (((e = y3(e)), e < 1 || !Number.isSafeInteger(e))) return []; let r = new Array(e); for (let n = 0; n < e; n++) r[n] = typeof t == "function" ? t(n) : n; return r; } function X3(e) { if (e == null) return []; switch (typeof e) { case "object": case "function": return qc(e) ? J3(e) : G3(e) ? Z3(e) : li(e); default: return li(Object(e)); } } function li(e) { let t = []; for (let r in e) t.push(r); return t; } function Z3(e) { return li(e).filter((t) => t !== "constructor"); } function J3(e) { let t = K3(e.length, (n) => `${n}`), r = new Set(t); return ( q3(e) && (r.add("offset"), r.add("parent")), Y3(e) && (r.add("buffer"), r.add("byteLength"), r.add("byteOffset")), [...t, ...li(e).filter((n) => !r.has(n))] ); } function Q3(e) { let t = []; for (; e; ) (t.push(...ib(e)), (e = Object.getPrototypeOf(e))); return t; } function eD(e, t) { if (e == null) return {}; let r = {}; if (t == null) return e; let n = qc(e) ? W3(0, e.length) : [...X3(e), ...Q3(e)]; for (let o = 0; o < n.length; o++) { let a = ob(n[o]) ? n[o] : n[o].toString(), i = e[a]; t(i, a, e) && (r[a] = i); } return r; } var Ft = (e) => `control-${e.replace(/\s+/g, "-")}`, Vi = (e) => `set-${e.replace(/\s+/g, "-")}`, tD = Object.create, db = Object.defineProperty, rD = Object.getOwnPropertyDescriptor, pb = Object.getOwnPropertyNames, nD = Object.getPrototypeOf, oD = Object.prototype.hasOwnProperty, ya = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r], }) : e)(function (e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), aD = (e, t) => function () { return ( t || (0, e[pb(e)[0]])((t = { exports: {} }).exports, t), t.exports ); }, iD = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let o of pb(t)) !oD.call(e, o) && o !== r && db(e, o, { get: () => t[o], enumerable: !(n = rD(t, o)) || n.enumerable, }); return e; }, lD = (e, t, r) => ( (r = e != null ? tD(nD(e)) : {}), iD( !e || !e.__esModule ? db(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), sD = Object.create, Gc = Object.defineProperty, uD = Object.getOwnPropertyDescriptor, cD = Object.getOwnPropertyNames, dD = Object.getPrototypeOf, pD = Object.prototype.hasOwnProperty, P = (e, t) => Gc(e, "name", { value: t, configurable: !0 }), ba = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r], }) : e)(function (e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), qi = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), fD = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let o of cD(t)) !pD.call(e, o) && o !== r && Gc(e, o, { get: () => t[o], enumerable: !(n = uD(t, o)) || n.enumerable, }); return e; }, Yc = (e, t, r) => ( (r = e != null ? sD(dD(e)) : {}), fD( t || !e || !e.__esModule ? Gc(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), gD = qi((e) => { (function () { var t = typeof Symbol == "function" && Symbol.for, r = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, p = t ? Symbol.for("react.forward_ref") : 60112, c = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119; function E(M) { return ( typeof M == "string" || typeof M == "function" || M === o || M === d || M === i || M === a || M === c || M === f || (typeof M == "object" && M !== null && (M.$$typeof === y || M.$$typeof === g || M.$$typeof === l || M.$$typeof === s || M.$$typeof === p || M.$$typeof === v || M.$$typeof === C || M.$$typeof === w || M.$$typeof === x)) ); } P(E, "isValidElementType"); function $(M) { if (typeof M == "object" && M !== null) { var U = M.$$typeof; switch (U) { case r: var fe = M.type; switch (fe) { case u: case d: case o: case i: case a: case c: return fe; default: var ke = fe && fe.$$typeof; switch (ke) { case s: case p: case y: case g: case l: return ke; default: return U; } } case n: return U; } } } P($, "typeOf"); var A = u, S = d, D = s, F = l, k = r, _ = p, I = o, L = y, j = g, B = n, z = i, V = a, Y = c, W = !1; function G(M) { return ( W || ((W = !0), console.warn( "The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.", )), J(M) || $(M) === u ); } P(G, "isAsyncMode"); function J(M) { return $(M) === d; } P(J, "isConcurrentMode"); function Q(M) { return $(M) === s; } P(Q, "isContextConsumer"); function re(M) { return $(M) === l; } P(re, "isContextProvider"); function ie(M) { return typeof M == "object" && M !== null && M.$$typeof === r; } P(ie, "isElement"); function H(M) { return $(M) === p; } P(H, "isForwardRef"); function X(M) { return $(M) === o; } P(X, "isFragment"); function Z(M) { return $(M) === y; } P(Z, "isLazy"); function le(M) { return $(M) === g; } P(le, "isMemo"); function me(M) { return $(M) === n; } P(me, "isPortal"); function Re(M) { return $(M) === i; } P(Re, "isProfiler"); function ne(M) { return $(M) === a; } P(ne, "isStrictMode"); function de(M) { return $(M) === c; } (P(de, "isSuspense"), (e.AsyncMode = A), (e.ConcurrentMode = S), (e.ContextConsumer = D), (e.ContextProvider = F), (e.Element = k), (e.ForwardRef = _), (e.Fragment = I), (e.Lazy = L), (e.Memo = j), (e.Portal = B), (e.Profiler = z), (e.StrictMode = V), (e.Suspense = Y), (e.isAsyncMode = G), (e.isConcurrentMode = J), (e.isContextConsumer = Q), (e.isContextProvider = re), (e.isElement = ie), (e.isForwardRef = H), (e.isFragment = X), (e.isLazy = Z), (e.isMemo = le), (e.isPortal = me), (e.isProfiler = Re), (e.isStrictMode = ne), (e.isSuspense = de), (e.isValidElementType = E), (e.typeOf = $)); })(); }), mD = qi((e, t) => { t.exports = gD(); }), fb = qi((e, t) => { var r = mD(), n = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0, }, o = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0, }, a = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0, }, i = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0, }, l = {}; ((l[r.ForwardRef] = a), (l[r.Memo] = i)); function s(x) { return r.isMemo(x) ? i : l[x.$$typeof] || n; } P(s, "getStatics"); var u = Object.defineProperty, d = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, c = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, g = Object.prototype; function y(x, v, C) { if (typeof v != "string") { if (g) { var w = f(v); w && w !== g && y(x, w, C); } var E = d(v); p && (E = E.concat(p(v))); for (var $ = s(x), A = s(v), S = 0; S < E.length; ++S) { var D = E[S]; if (!o[D] && !(C && C[D]) && !(A && A[D]) && !($ && $[D])) { var F = c(v, D); try { u(x, D, F); } catch {} } } } return x; } (P(y, "hoistNonReactStatics"), (t.exports = y)); }), hD = qi((e, t) => { (function (r) { if (typeof e == "object" && typeof t < "u") t.exports = r(); else if (typeof define == "function" && define.amd) define([], r); else { var n; (typeof window < "u" ? (n = window) : typeof global < "u" ? (n = global) : typeof self < "u" ? (n = self) : (n = this), (n.memoizerific = r())); } })(function () { return P(function r(n, o, a) { function i(u, d) { if (!o[u]) { if (!n[u]) { var p = typeof ba == "function" && ba; if (!d && p) return p(u, !0); if (l) return l(u, !0); var c = new Error("Cannot find module '" + u + "'"); throw ((c.code = "MODULE_NOT_FOUND"), c); } var f = (o[u] = { exports: {} }); n[u][0].call( f.exports, function (g) { var y = n[u][1][g]; return i(y || g); }, f, f.exports, r, n, o, a, ); } return o[u].exports; } P(i, "s"); for (var l = typeof ba == "function" && ba, s = 0; s < a.length; s++) i(a[s]); return i; }, "e")( { 1: [ function (r, n, o) { n.exports = function (a) { if (typeof Map != "function" || a) { var i = r("./similar"); return new i(); } else return new Map(); }; }, { "./similar": 2 }, ], 2: [ function (r, n, o) { function a() { return ( (this.list = []), (this.lastItem = void 0), (this.size = 0), this ); } (P(a, "Similar"), (a.prototype.get = function (i) { var l; if (this.lastItem && this.isEqual(this.lastItem.key, i)) return this.lastItem.val; if (((l = this.indexOf(i)), l >= 0)) return ((this.lastItem = this.list[l]), this.list[l].val); }), (a.prototype.set = function (i, l) { var s; return this.lastItem && this.isEqual(this.lastItem.key, i) ? ((this.lastItem.val = l), this) : ((s = this.indexOf(i)), s >= 0 ? ((this.lastItem = this.list[s]), (this.list[s].val = l), this) : ((this.lastItem = { key: i, val: l }), this.list.push(this.lastItem), this.size++, this)); }), (a.prototype.delete = function (i) { var l; if ( (this.lastItem && this.isEqual(this.lastItem.key, i) && (this.lastItem = void 0), (l = this.indexOf(i)), l >= 0) ) return (this.size--, this.list.splice(l, 1)[0]); }), (a.prototype.has = function (i) { var l; return this.lastItem && this.isEqual(this.lastItem.key, i) ? !0 : ((l = this.indexOf(i)), l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); }), (a.prototype.forEach = function (i, l) { var s; for (s = 0; s < this.size; s++) i.call(l || this, this.list[s].val, this.list[s].key, this); }), (a.prototype.indexOf = function (i) { var l; for (l = 0; l < this.size; l++) if (this.isEqual(this.list[l].key, i)) return l; return -1; }), (a.prototype.isEqual = function (i, l) { return i === l || (i !== i && l !== l); }), (n.exports = a)); }, {}, ], 3: [ function (r, n, o) { var a = r("map-or-similar"); n.exports = function (u) { var d = new a(!1), p = []; return function (c) { var f = P(function () { var g = d, y, x, v = arguments.length - 1, C = Array(v + 1), w = !0, E; if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) throw new Error( "Memoizerific functions should always be called with the same number of arguments", ); for (E = 0; E < v; E++) { if ( ((C[E] = { cacheItem: g, arg: arguments[E] }), g.has(arguments[E])) ) { g = g.get(arguments[E]); continue; } ((w = !1), (y = new a(!1)), g.set(arguments[E], y), (g = y)); } return ( w && (g.has(arguments[v]) ? (x = g.get(arguments[v])) : (w = !1)), w || ((x = c.apply(null, arguments)), g.set(arguments[v], x)), u > 0 && ((C[v] = { cacheItem: g, arg: arguments[v] }), w ? i(p, C) : p.push(C), p.length > u && l(p.shift())), (f.wasMemoized = w), (f.numArgs = v + 1), x ); }, "memoizerific"); return ( (f.limit = u), (f.wasMemoized = !1), (f.cache = d), (f.lru = p), f ); }; }; function i(u, d) { var p = u.length, c = d.length, f, g, y; for (g = 0; g < p; g++) { for (f = !0, y = 0; y < c; y++) if (!s(u[g][y].arg, d[y].arg)) { f = !1; break; } if (f) break; } u.push(u.splice(g, 1)[0]); } P(i, "moveToMostRecentLru"); function l(u) { var d = u.length, p = u[d - 1], c, f; for ( p.cacheItem.delete(p.arg), f = d - 2; f >= 0 && ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); f-- ) p.cacheItem.delete(p.arg); } P(l, "removeCachedResult"); function s(u, d) { return u === d || (u !== u && d !== d); } P(s, "isEqual"); }, { "map-or-similar": 1 }, ], }, {}, [3], )(3); }); }); function Be() { return ( (Be = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; }), Be.apply(null, arguments) ); } P(Be, "_extends"); function gb(e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; } P(gb, "sheetForTag"); function mb(e) { var t = document.createElement("style"); return ( t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t ); } P(mb, "createStyleElement"); var yD = (function () { function e(r) { var n = this; ((this._insertTag = function (o) { var a; (n.tags.length === 0 ? n.insertionPoint ? (a = n.insertionPoint.nextSibling) : n.prepend ? (a = n.container.firstChild) : (a = n.before) : (a = n.tags[n.tags.length - 1].nextSibling), n.container.insertBefore(o, a), n.tags.push(o)); }), (this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy), (this.tags = []), (this.ctr = 0), (this.nonce = r.nonce), (this.key = r.key), (this.container = r.container), (this.prepend = r.prepend), (this.insertionPoint = r.insertionPoint), (this.before = null)); } P(e, "StyleSheet"); var t = e.prototype; return ( (t.hydrate = P(function (r) { r.forEach(this._insertTag); }, "hydrate")), (t.insert = P(function (r) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(mb(this)); var n = this.tags[this.tags.length - 1]; if (this.isSpeedy) { var o = gb(n); try { o.insertRule(r, o.cssRules.length); } catch {} } else n.appendChild(document.createTextNode(r)); this.ctr++; }, "insert")), (t.flush = P(function () { (this.tags.forEach(function (r) { var n; return (n = r.parentNode) == null ? void 0 : n.removeChild(r); }), (this.tags = []), (this.ctr = 0)); }, "flush")), e ); })(), He = "-ms-", si = "-moz-", ce = "-webkit-", hb = "comm", Kc = "rule", Xc = "decl", bD = "@import", yb = "@keyframes", vD = "@layer", xD = Math.abs, Gi = String.fromCharCode, ED = Object.assign; function bb(e, t) { return Le(e, 0) ^ 45 ? (((((((t << 2) ^ Le(e, 0)) << 2) ^ Le(e, 1)) << 2) ^ Le(e, 2)) << 2) ^ Le(e, 3) : 0; } P(bb, "hash"); function Zc(e) { return e.trim(); } P(Zc, "trim"); function vb(e, t) { return (e = t.exec(e)) ? e[0] : e; } P(vb, "match"); function ue(e, t, r) { return e.replace(t, r); } P(ue, "replace"); function ui(e, t) { return e.indexOf(t); } P(ui, "indexof"); function Le(e, t) { return e.charCodeAt(t) | 0; } P(Le, "charat"); function zn(e, t, r) { return e.slice(t, r); } P(zn, "substr"); function Ct(e) { return e.length; } P(Ct, "strlen"); function Yi(e) { return e.length; } P(Yi, "sizeof"); function Fo(e, t) { return (t.push(e), e); } P(Fo, "append"); function xb(e, t) { return e.map(t).join(""); } P(xb, "combine"); var Ki = 1, Hn = 1, Eb = 0, Je = 0, De = 0, ao = ""; function ra(e, t, r, n, o, a, i) { return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Ki, column: Hn, length: i, return: "", }; } P(ra, "node"); function En(e, t) { return ED(ra("", null, null, "", null, null, 0), e, { length: -e.length }, t); } P(En, "copy"); function wb() { return De; } P(wb, "char"); function Sb() { return ( (De = Je > 0 ? Le(ao, --Je) : 0), Hn--, De === 10 && ((Hn = 1), Ki--), De ); } P(Sb, "prev"); function Ze() { return ( (De = Je < Eb ? Le(ao, Je++) : 0), Hn++, De === 10 && ((Hn = 1), Ki++), De ); } P(Ze, "next"); function Dt() { return Le(ao, Je); } P(Dt, "peek"); function Lo() { return Je; } P(Lo, "caret"); function io(e, t) { return zn(ao, e, t); } P(io, "slice"); function Un(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } P(Un, "token"); function Jc(e) { return ((Ki = Hn = 1), (Eb = Ct((ao = e))), (Je = 0), []); } P(Jc, "alloc"); function Qc(e) { return ((ao = ""), e); } P(Qc, "dealloc"); function Bo(e) { return Zc(io(Je - 1, ci(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } P(Bo, "delimit"); function Cb(e) { for (; (De = Dt()) && De < 33; ) Ze(); return Un(e) > 2 || Un(De) > 3 ? "" : " "; } P(Cb, "whitespace"); function $b(e, t) { for ( ; --t && Ze() && !(De < 48 || De > 102 || (De > 57 && De < 65) || (De > 70 && De < 97)); ); return io(e, Lo() + (t < 6 && Dt() == 32 && Ze() == 32)); } P($b, "escaping"); function ci(e) { for (; Ze(); ) switch (De) { case e: return Je; case 34: case 39: e !== 34 && e !== 39 && ci(De); break; case 40: e === 41 && ci(e); break; case 92: Ze(); break; } return Je; } P(ci, "delimiter"); function Ab(e, t) { for (; Ze() && e + De !== 57 && !(e + De === 84 && Dt() === 47); ); return "/*" + io(t, Je - 1) + "*" + Gi(e === 47 ? e : Ze()); } P(Ab, "commenter"); function Db(e) { for (; !Un(Dt()); ) Ze(); return io(e, Je); } P(Db, "identifier"); function kb(e) { return Qc(No("", null, null, null, [""], (e = Jc(e)), 0, [0], e)); } P(kb, "compile"); function No(e, t, r, n, o, a, i, l, s) { for ( var u = 0, d = 0, p = i, c = 0, f = 0, g = 0, y = 1, x = 1, v = 1, C = 0, w = "", E = o, $ = a, A = n, S = w; x; ) switch (((g = C), (C = Ze()))) { case 40: if (g != 108 && Le(S, p - 1) == 58) { ui((S += ue(Bo(C), "&", "&\f")), "&\f") != -1 && (v = -1); break; } case 34: case 39: case 91: S += Bo(C); break; case 9: case 10: case 13: case 32: S += Cb(g); break; case 92: S += $b(Lo() - 1, 7); continue; case 47: switch (Dt()) { case 42: case 47: Fo(Ob(Ab(Ze(), Lo()), t, r), s); break; default: S += "/"; } break; case 123 * y: l[u++] = Ct(S) * v; case 125 * y: case 59: case 0: switch (C) { case 0: case 125: x = 0; case 59 + d: (v == -1 && (S = ue(S, /\f/g, "")), f > 0 && Ct(S) - p && Fo( f > 32 ? lu(S + ";", n, r, p - 1) : lu(ue(S, " ", "") + ";", n, r, p - 2), s, )); break; case 59: S += ";"; default: if ( (Fo((A = iu(S, t, r, u, d, o, l, w, (E = []), ($ = []), p)), a), C === 123) ) if (d === 0) No(S, t, A, A, E, a, p, l, $); else switch (c === 99 && Le(S, 3) === 110 ? 100 : c) { case 100: case 108: case 109: case 115: No( e, A, A, n && Fo(iu(e, A, A, 0, 0, o, l, w, o, (E = []), p), $), o, $, p, l, n ? E : $, ); break; default: No(S, A, A, A, [""], $, 0, l, $); } } ((u = d = f = 0), (y = v = 1), (w = S = ""), (p = i)); break; case 58: ((p = 1 + Ct(S)), (f = g)); default: if (y < 1) { if (C == 123) --y; else if (C == 125 && y++ == 0 && Sb() == 125) continue; } switch (((S += Gi(C)), C * y)) { case 38: v = d > 0 ? 1 : ((S += "\f"), -1); break; case 44: ((l[u++] = (Ct(S) - 1) * v), (v = 1)); break; case 64: (Dt() === 45 && (S += Bo(Ze())), (c = Dt()), (d = p = Ct((w = S += Db(Lo())))), C++); break; case 45: g === 45 && Ct(S) == 2 && (y = 0); } } return a; } P(No, "parse"); function iu(e, t, r, n, o, a, i, l, s, u, d) { for ( var p = o - 1, c = o === 0 ? a : [""], f = Yi(c), g = 0, y = 0, x = 0; g < n; ++g ) for (var v = 0, C = zn(e, p + 1, (p = xD((y = i[g])))), w = e; v < f; ++v) (w = Zc(y > 0 ? c[v] + " " + C : ue(C, /&\f/g, c[v]))) && (s[x++] = w); return ra(e, t, r, o === 0 ? Kc : l, s, u, d); } P(iu, "ruleset"); function Ob(e, t, r) { return ra(e, t, r, hb, Gi(wb()), zn(e, 2, -2), 0); } P(Ob, "comment"); function lu(e, t, r, n) { return ra(e, t, r, Xc, zn(e, 0, n), zn(e, n + 1, -1), n); } P(lu, "declaration"); function Yr(e, t) { for (var r = "", n = Yi(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || ""; return r; } P(Yr, "serialize"); function Fb(e, t, r, n) { switch (e.type) { case vD: if (e.children.length) break; case bD: case Xc: return (e.return = e.return || e.value); case hb: return ""; case yb: return (e.return = e.value + "{" + Yr(e.children, n) + "}"); case Kc: e.value = e.props.join(","); } return Ct((r = Yr(e.children, n))) ? (e.return = e.value + "{" + r + "}") : ""; } P(Fb, "stringify"); function _b(e) { var t = Yi(e); return function (r, n, o, a) { for (var i = "", l = 0; l < t; l++) i += e[l](r, n, o, a) || ""; return i; }; } P(_b, "middleware"); function Tb(e) { return function (t) { t.root || ((t = t.return) && e(t)); }; } P(Tb, "rulesheet"); var If = P(function (e) { var t = new WeakMap(); return function (r) { if (t.has(r)) return t.get(r); var n = e(r); return (t.set(r, n), n); }; }, "weakMemoize"); function ed(e) { var t = Object.create(null); return function (r) { return (t[r] === void 0 && (t[r] = e(r)), t[r]); }; } P(ed, "memoize"); var wD = P(function (e, t, r) { for ( var n = 0, o = 0; (n = o), (o = Dt()), n === 38 && o === 12 && (t[r] = 1), !Un(o); ) Ze(); return io(e, Je); }, "identifierWithPointTracking"), SD = P(function (e, t) { var r = -1, n = 44; do switch (Un(n)) { case 0: (n === 38 && Dt() === 12 && (t[r] = 1), (e[r] += wD(Je - 1, t, r))); break; case 2: e[r] += Bo(n); break; case 4: if (n === 44) { ((e[++r] = Dt() === 58 ? "&\f" : ""), (t[r] = e[r].length)); break; } default: e[r] += Gi(n); } while ((n = Ze())); return e; }, "toRules"), CD = P(function (e, t) { return Qc(SD(Jc(e), t)); }, "getRules"), Lf = new WeakMap(), $D = P(function (e) { if (!(e.type !== "rule" || !e.parent || e.length < 1)) { for ( var t = e.value, r = e.parent, n = e.column === r.column && e.line === r.line; r.type !== "rule"; ) if (((r = r.parent), !r)) return; if ( !(e.props.length === 1 && t.charCodeAt(0) !== 58 && !Lf.get(r)) && !n ) { Lf.set(e, !0); for ( var o = [], a = CD(t, o), i = r.props, l = 0, s = 0; l < a.length; l++ ) for (var u = 0; u < i.length; u++, s++) e.props[s] = o[l] ? a[l].replace(/&\f/g, i[u]) : i[u] + " " + a[l]; } } }, "compat"), AD = P(function (e) { if (e.type === "decl") { var t = e.value; t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && ((e.return = ""), (e.value = "")); } }, "removeLabel"); function td(e, t) { switch (bb(e, t)) { case 5103: return ce + "print-" + e + e; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return ce + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return ce + e + si + e + He + e + e; case 6828: case 4268: return ce + e + He + e + e; case 6165: return ce + e + He + "flex-" + e + e; case 5187: return ( ce + e + ue(e, /(\w+).+(:[^]+)/, ce + "box-$1$2" + He + "flex-$1$2") + e ); case 5443: return ce + e + He + "flex-item-" + ue(e, /flex-|-self/, "") + e; case 4675: return ( ce + e + He + "flex-line-pack" + ue(e, /align-content|flex-|-self/, "") + e ); case 5548: return ce + e + He + ue(e, "shrink", "negative") + e; case 5292: return ce + e + He + ue(e, "basis", "preferred-size") + e; case 6060: return ( ce + "box-" + ue(e, "-grow", "") + ce + e + He + ue(e, "grow", "positive") + e ); case 4554: return ce + ue(e, /([^-])(transform)/g, "$1" + ce + "$2") + e; case 6187: return ( ue( ue(ue(e, /(zoom-|grab)/, ce + "$1"), /(image-set)/, ce + "$1"), e, "", ) + e ); case 5495: case 3959: return ue(e, /(image-set\([^]*)/, ce + "$1$`$1"); case 4968: return ( ue( ue(e, /(.+:)(flex-)?(.*)/, ce + "box-pack:$3" + He + "flex-pack:$3"), /s.+-b[^;]+/, "justify", ) + ce + e + e ); case 4095: case 3583: case 4068: case 2532: return ue(e, /(.+)-inline(.+)/, ce + "$1$2") + e; case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (Ct(e) - 1 - t > 6) switch (Le(e, t + 1)) { case 109: if (Le(e, t + 4) !== 45) break; case 102: return ( ue( e, /(.+:)(.+)-([^]+)/, "$1" + ce + "$2-$3$1" + si + (Le(e, t + 3) == 108 ? "$3" : "$2-$3"), ) + e ); case 115: return ~ui(e, "stretch") ? td(ue(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: if (Le(e, t + 1) !== 115) break; case 6444: switch (Le(e, Ct(e) - 3 - (~ui(e, "!important") && 10))) { case 107: return ue(e, ":", ":" + ce) + e; case 101: return ( ue( e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ce + (Le(e, 14) === 45 ? "inline-" : "") + "box$3$1" + ce + "$2$3$1" + He + "$2box$3", ) + e ); } break; case 5936: switch (Le(e, t + 11)) { case 114: return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } return ce + e + He + e + e; } return e; } P(td, "prefix"); var DD = P(function (e, t, r, n) { if (e.length > -1 && !e.return) switch (e.type) { case Xc: e.return = td(e.value, e.length); break; case yb: return Yr([En(e, { value: ue(e.value, "@", "@" + ce) })], n); case Kc: if (e.length) return xb(e.props, function (o) { switch (vb(o, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": return Yr( [En(e, { props: [ue(o, /:(read-\w+)/, ":" + si + "$1")] })], n, ); case "::placeholder": return Yr( [ En(e, { props: [ue(o, /:(plac\w+)/, ":" + ce + "input-$1")], }), En(e, { props: [ue(o, /:(plac\w+)/, ":" + si + "$1")] }), En(e, { props: [ue(o, /:(plac\w+)/, He + "input-$1")] }), ], n, ); } return ""; }); } }, "prefixer"), kD = [DD], OD = P(function (e) { var t = e.key; if (t === "css") { var r = document.querySelectorAll("style[data-emotion]:not([data-s])"); Array.prototype.forEach.call(r, function (g) { var y = g.getAttribute("data-emotion"); y.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", "")); }); } var n = e.stylisPlugins || kD, o = {}, a, i = []; ((a = e.container || document.head), Array.prototype.forEach.call( document.querySelectorAll('style[data-emotion^="' + t + ' "]'), function (g) { for ( var y = g.getAttribute("data-emotion").split(" "), x = 1; x < y.length; x++ ) o[y[x]] = !0; i.push(g); }, )); var l, s = [$D, AD]; { var u, d = [ Fb, Tb(function (g) { u.insert(g); }), ], p = _b(s.concat(n, d)), c = P(function (g) { return Yr(kb(g), p); }, "stylis"); l = P(function (g, y, x, v) { ((u = x), c(g ? g + "{" + y.styles + "}" : y.styles), v && (f.inserted[y.name] = !0)); }, "insert"); } var f = { key: t, sheet: new yD({ key: t, container: a, nonce: e.nonce, speedy: e.speedy, prepend: e.prepend, insertionPoint: e.insertionPoint, }), nonce: e.nonce, inserted: o, registered: {}, insert: l, }; return (f.sheet.hydrate(i), f); }, "createCache"), FD = Yc(fb()), _D = P(function (e, t) { return (0, FD.default)(e, t); }, "hoistNonReactStatics"), TD = !0; function Xi(e, t, r) { var n = ""; return ( r.split(" ").forEach(function (o) { e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " "); }), n ); } P(Xi, "getRegisteredStyles"); var rd = P(function (e, t, r) { var n = e.key + "-" + t.name; (r === !1 || TD === !1) && e.registered[n] === void 0 && (e.registered[n] = t.styles); }, "registerStyles"), Rb = P(function (e, t, r) { rd(e, t, r); var n = e.key + "-" + t.name; if (e.inserted[t.name] === void 0) { var o = t; do (e.insert(t === o ? "." + n : "", o, e.sheet, !0), (o = o.next)); while (o !== void 0); } }, "insertStyles"); function Pb(e) { for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) ((r = (e.charCodeAt(n) & 255) | ((e.charCodeAt(++n) & 255) << 8) | ((e.charCodeAt(++n) & 255) << 16) | ((e.charCodeAt(++n) & 255) << 24)), (r = (r & 65535) * 1540483477 + (((r >>> 16) * 59797) << 16)), (r ^= r >>> 24), (t = ((r & 65535) * 1540483477 + (((r >>> 16) * 59797) << 16)) ^ ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)))); switch (o) { case 3: t ^= (e.charCodeAt(n + 2) & 255) << 16; case 2: t ^= (e.charCodeAt(n + 1) & 255) << 8; case 1: ((t ^= e.charCodeAt(n) & 255), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16))); } return ( (t ^= t >>> 13), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)), ((t ^ (t >>> 15)) >>> 0).toString(36) ); } P(Pb, "murmur2"); var RD = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1, }, PD = /[A-Z]|^ms/g, ID = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ib = P(function (e) { return e.charCodeAt(1) === 45; }, "isCustomProperty"), Bf = P(function (e) { return e != null && typeof e != "boolean"; }, "isProcessableValue"), Wl = ed(function (e) { return Ib(e) ? e : e.replace(PD, "-$&").toLowerCase(); }), Nf = P(function (e, t) { switch (e) { case "animation": case "animationName": if (typeof t == "string") return t.replace(ID, function (r, n, o) { return ((Nt = { name: n, styles: o, next: Nt }), n); }); } return RD[e] !== 1 && !Ib(e) && typeof t == "number" && t !== 0 ? t + "px" : t; }, "processStyleValue"); function Wn(e, t, r) { if (r == null) return ""; var n = r; if (n.__emotion_styles !== void 0) return n; switch (typeof r) { case "boolean": return ""; case "object": { var o = r; if (o.anim === 1) return ((Nt = { name: o.name, styles: o.styles, next: Nt }), o.name); var a = r; if (a.styles !== void 0) { var i = a.next; if (i !== void 0) for (; i !== void 0; ) ((Nt = { name: i.name, styles: i.styles, next: Nt }), (i = i.next)); var l = a.styles + ";"; return l; } return Lb(e, t, r); } case "function": { if (e !== void 0) { var s = Nt, u = r(e); return ((Nt = s), Wn(e, t, u)); } break; } } var d = r; if (t == null) return d; var p = t[d]; return p !== void 0 ? p : d; } P(Wn, "handleInterpolation"); function Lb(e, t, r) { var n = ""; if (Array.isArray(r)) for (var o = 0; o < r.length; o++) n += Wn(e, t, r[o]) + ";"; else for (var a in r) { var i = r[a]; if (typeof i != "object") { var l = i; t != null && t[l] !== void 0 ? (n += a + "{" + t[l] + "}") : Bf(l) && (n += Wl(a) + ":" + Nf(a, l) + ";"); } else if ( Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0) ) for (var s = 0; s < i.length; s++) Bf(i[s]) && (n += Wl(a) + ":" + Nf(a, i[s]) + ";"); else { var u = Wn(e, t, i); switch (a) { case "animation": case "animationName": { n += Wl(a) + ":" + u + ";"; break; } default: n += a + "{" + u + "}"; } } } return n; } P(Lb, "createStringFromObject"); var jf = /label:\s*([^\s;{]+)\s*(;|$)/g, Nt; function Zi(e, t, r) { if ( e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0 ) return e[0]; var n = !0, o = ""; Nt = void 0; var a = e[0]; if (a == null || a.raw === void 0) ((n = !1), (o += Wn(r, t, a))); else { var i = a; o += i[0]; } for (var l = 1; l < e.length; l++) if (((o += Wn(r, t, e[l])), n)) { var s = a; o += s[l]; } jf.lastIndex = 0; for (var u = "", d; (d = jf.exec(o)) !== null; ) u += "-" + d[1]; var p = Pb(o) + u; return { name: p, styles: o, next: Nt }; } P(Zi, "serializeStyles"); var LD = P(function (e) { return e(); }, "syncFallback"), BD = b.useInsertionEffect ? b.useInsertionEffect : !1, Bb = BD || LD, Nb = b.createContext(typeof HTMLElement < "u" ? OD({ key: "css" }) : null); Nb.Provider; var jb = P(function (e) { return b.forwardRef(function (t, r) { var n = b.useContext(Nb); return e(t, n, r); }); }, "withEmotionCache"), Vn = b.createContext({}), Mb = P(function () { return b.useContext(Vn); }, "useTheme"), ND = P(function (e, t) { if (typeof t == "function") { var r = t(e); return r; } return Be({}, e, t); }, "getTheme"), jD = If(function (e) { return If(function (t) { return ND(e, t); }); }), zb = P(function (e) { var t = b.useContext(Vn); return ( e.theme !== t && (t = jD(t)(e.theme)), b.createElement(Vn.Provider, { value: t }, e.children) ); }, "ThemeProvider"); function MD(e) { var t = e.displayName || e.name || "Component", r = b.forwardRef( P(function (n, o) { var a = b.useContext(Vn); return b.createElement(e, Be({ theme: a, ref: o }, n)); }, "render"), ); return ((r.displayName = "WithTheme(" + t + ")"), _D(r, e)); } P(MD, "withTheme"); var nd = {}.hasOwnProperty, su = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", zD = P(function (e, t) { var r = {}; for (var n in t) nd.call(t, n) && (r[n] = t[n]); return ((r[su] = e), r); }, "createEmotionProps"), HD = P(function (e) { var t = e.cache, r = e.serialized, n = e.isStringTag; return ( rd(t, r, n), Bb(function () { return Rb(t, r, n); }), null ); }, "Insertion"), UD = jb(function (e, t, r) { var n = e.css; typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]); var o = e[su], a = [n], i = ""; typeof e.className == "string" ? (i = Xi(t.registered, a, e.className)) : e.className != null && (i = e.className + " "); var l = Zi(a, void 0, b.useContext(Vn)); i += t.key + "-" + l.name; var s = {}; for (var u in e) nd.call(e, u) && u !== "css" && u !== su && (s[u] = e[u]); return ( (s.className = i), r && (s.ref = r), b.createElement( b.Fragment, null, b.createElement(HD, { cache: t, serialized: l, isStringTag: typeof o == "string", }), b.createElement(o, s), ) ); }), WD = UD; Yc(fb()); var Mf = P(function (e, t) { var r = arguments; if (t == null || !nd.call(t, "css")) return b.createElement.apply(void 0, r); var n = r.length, o = new Array(n); ((o[0] = WD), (o[1] = zD(e, t))); for (var a = 2; a < n; a++) o[a] = r[a]; return b.createElement.apply(null, o); }, "jsx"); (function (e) { var t; t || (t = e.JSX || (e.JSX = {})); })(Mf || (Mf = {})); function Ji() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return Zi(t); } P(Ji, "css"); function _t() { var e = Ji.apply(void 0, arguments), t = "animation-" + e.name; return { name: t, styles: "@keyframes " + t + "{" + e.styles + "}", anim: 1, toString: P(function () { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; }, "toString"), }; } P(_t, "keyframes"); function VD(e, t, r) { var n = [], o = Xi(e, n, r); return n.length < 2 ? r : o + t(n); } P(VD, "merge"); var qD = /^((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|fetchpriority|fetchPriority|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)-.*))$/, od = ed(function (e) { return ( qD.test(e) || (e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91) ); }), GD = od, YD = P(function (e) { return e !== "theme"; }, "testOmitPropsOnComponent"), zf = P(function (e) { return typeof e == "string" && e.charCodeAt(0) > 96 ? GD : YD; }, "getDefaultShouldForwardProp"), Hf = P(function (e, t, r) { var n; if (t) { var o = t.shouldForwardProp; n = e.__emotion_forwardProp && o ? function (a) { return e.__emotion_forwardProp(a) && o(a); } : o; } return (typeof n != "function" && r && (n = e.__emotion_forwardProp), n); }, "composeShouldForwardProps"), KD = P(function (e) { var t = e.cache, r = e.serialized, n = e.isStringTag; return ( rd(t, r, n), Bb(function () { return Rb(t, r, n); }), null ); }, "Insertion"), XD = P(function e(t, r) { var n = t.__emotion_real === t, o = (n && t.__emotion_base) || t, a, i; r !== void 0 && ((a = r.label), (i = r.target)); var l = Hf(t, r, n), s = l || zf(o), u = !s("as"); return function () { var d = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; if ( (a !== void 0 && p.push("label:" + a + ";"), d[0] == null || d[0].raw === void 0) ) p.push.apply(p, d); else { var c = d[0]; p.push(c[0]); for (var f = d.length, g = 1; g < f; g++) p.push(d[g], c[g]); } var y = jb(function (x, v, C) { var w = (u && x.as) || o, E = "", $ = [], A = x; if (x.theme == null) { A = {}; for (var S in x) A[S] = x[S]; A.theme = b.useContext(Vn); } typeof x.className == "string" ? (E = Xi(v.registered, $, x.className)) : x.className != null && (E = x.className + " "); var D = Zi(p.concat($), v.registered, A); ((E += v.key + "-" + D.name), i !== void 0 && (E += " " + i)); var F = u && l === void 0 ? zf(w) : s, k = {}; for (var _ in x) (u && _ === "as") || (F(_) && (k[_] = x[_])); return ( (k.className = E), C && (k.ref = C), b.createElement( b.Fragment, null, b.createElement(KD, { cache: v, serialized: D, isStringTag: typeof w == "string", }), b.createElement(w, k), ) ); }); return ( (y.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")"), (y.defaultProps = t.defaultProps), (y.__emotion_real = y), (y.__emotion_base = o), (y.__emotion_styles = p), (y.__emotion_forwardProp = l), Object.defineProperty(y, "toString", { value: P(function () { return "." + i; }, "value"), }), (y.withComponent = function (x, v) { var C = e(x, Be({}, r, v, { shouldForwardProp: Hf(y, v, !0) })); return C.apply(void 0, p); }), y ); }; }, "createStyled"), ZD = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan", ], T = XD.bind(null); ZD.forEach(function (e) { T[e] = T(e); }); function Hb(e) { if (e === void 0) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called", ); return e; } P(Hb, "_assertThisInitialized"); function qn(e, t) { return ( (qn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (r, n) { return ((r.__proto__ = n), r); }), qn(e, t) ); } P(qn, "_setPrototypeOf"); function Ub(e, t) { ((e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), qn(e, t)); } P(Ub, "_inheritsLoose"); function di(e) { return ( (di = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }), di(e) ); } P(di, "_getPrototypeOf"); function Wb(e) { try { return Function.toString.call(e).indexOf("[native code]") !== -1; } catch { return typeof e == "function"; } } P(Wb, "_isNativeFunction"); function ad() { try { var e = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function () {}), ); } catch {} return (ad = P(function () { return !!e; }, "_isNativeReflectConstruct"))(); } P(ad, "_isNativeReflectConstruct"); function Vb(e, t, r) { if (ad()) return Reflect.construct.apply(null, arguments); var n = [null]; n.push.apply(n, t); var o = new (e.bind.apply(e, n))(); return (r && qn(o, r.prototype), o); } P(Vb, "_construct"); function pi(e) { var t = typeof Map == "function" ? new Map() : void 0; return ( (pi = P(function (r) { if (r === null || !Wb(r)) return r; if (typeof r != "function") throw new TypeError( "Super expression must either be null or a function", ); if (t !== void 0) { if (t.has(r)) return t.get(r); t.set(r, n); } function n() { return Vb(r, arguments, di(this).constructor); } return ( P(n, "Wrapper"), (n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0, }, })), qn(n, r) ); }, "_wrapNativeSuper")), pi(e) ); } P(pi, "_wrapNativeSuper"); var JD = { 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `, 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). `, 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. `, 4: `Couldn't generate valid rgb string from %s, it returned %s. `, 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. `, 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). `, 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). `, 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. `, 9: `Please provide a number of steps to the modularScale helper. `, 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" `, 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. `, 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. `, 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. `, 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. `, 16: `You must provide a template to this method. `, 17: `You passed an unsupported selector state to this method. `, 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 19: `fromSize and toSize must be provided as stringified numbers with the same units. `, 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 23: `fontFace expects a name of a font-family. `, 24: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 25: `fontFace expects localFonts to be an array. `, 26: `fontFace expects fileFormats to be an array. `, 27: `radialGradient requries at least 2 color-stops to properly render. `, 28: `Please supply a filename to retinaImage() as the first argument. `, 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation `, 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') `, 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation `, 34: `borderRadius expects a radius value as a string or number as the second argument. `, 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 36: `Property must be a string value. `, 37: `Syntax Error at %s. `, 38: `Formula contains a function that needs parentheses at %s. `, 39: `Formula is missing closing parenthesis at %s. `, 40: `Formula has too many closing parentheses at %s. `, 41: `All values in a formula must have the same unit or be unitless. `, 42: `Please provide a number of steps to the modularScale helper. `, 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. `, 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. `, 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. `, 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 48: `fromSize and toSize must be provided as stringified numbers with the same units. `, 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. `, 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. `, 52: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 53: `fontFace expects localFonts to be an array. `, 54: `fontFace expects fileFormats to be an array. `, 55: `fontFace expects a name of a font-family. `, 56: `linearGradient requries at least 2 color-stops to properly render. `, 57: `radialGradient requries at least 2 color-stops to properly render. `, 58: `Please supply a filename to retinaImage() as the first argument. `, 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 61: `Property must be a string value. `, 62: `borderRadius expects a radius value as a string or number as the second argument. `, 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. `, 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). `, 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. `, 67: `You must provide a template to this method. `, 68: `You passed an unsupported selector state to this method. `, 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. `, 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. `, 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. `, 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. `, 73: `Please provide a valid CSS variable. `, 74: `CSS variable not found and no default was provided. `, 75: `important requires a valid style object, got a %s instead. `, 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. `, 77: `remToPx expects a value in "rem" but you provided it in "%s". `, 78: `base must be set in "px" or "%" but you set it in "%s". `, }; function qb() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; var n = t[0], o = [], a; for (a = 1; a < t.length; a += 1) o.push(t[a]); return ( o.forEach(function (i) { n = n.replace(/%[a-z]/, i); }), n ); } P(qb, "format"); var Ke = (function (e) { Ub(t, e); function t(r) { for ( var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++ ) a[i - 1] = arguments[i]; return ( (n = e.call(this, qb.apply(void 0, [JD[r]].concat(a))) || this), Hb(n) ); } return (P(t, "PolishedError"), t); })(pi(Error)); function uu(e, t) { return e.substr(-t.length) === t; } P(uu, "endsWith"); var QD = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; function cu(e) { if (typeof e != "string") return e; var t = e.match(QD); return t ? parseFloat(e) : e; } P(cu, "stripUnit"); var e5 = P(function (e) { return function (t, r) { r === void 0 && (r = "16px"); var n = t, o = r; if (typeof t == "string") { if (!uu(t, "px")) throw new Ke(69, e, t); n = cu(t); } if (typeof r == "string") { if (!uu(r, "px")) throw new Ke(70, e, r); o = cu(r); } if (typeof n == "string") throw new Ke(71, t, e); if (typeof o == "string") throw new Ke(72, r, e); return "" + n / o + e; }; }, "pxtoFactory"), Gb = e5; Gb("em"); Gb("rem"); function Na(e) { return Math.round(e * 255); } P(Na, "colorToInt"); function Yb(e, t, r) { return Na(e) + "," + Na(t) + "," + Na(r); } P(Yb, "convertToInt"); function Gn(e, t, r, n) { if ((n === void 0 && (n = Yb), t === 0)) return n(r, r, r); var o = (((e % 360) + 360) % 360) / 60, a = (1 - Math.abs(2 * r - 1)) * t, i = a * (1 - Math.abs((o % 2) - 1)), l = 0, s = 0, u = 0; o >= 0 && o < 1 ? ((l = a), (s = i)) : o >= 1 && o < 2 ? ((l = i), (s = a)) : o >= 2 && o < 3 ? ((s = a), (u = i)) : o >= 3 && o < 4 ? ((s = i), (u = a)) : o >= 4 && o < 5 ? ((l = i), (u = a)) : o >= 5 && o < 6 && ((l = a), (u = i)); var d = r - a / 2, p = l + d, c = s + d, f = u + d; return n(p, c, f); } P(Gn, "hslToRgb"); var Uf = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "639", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32", }; function Kb(e) { if (typeof e != "string") return e; var t = e.toLowerCase(); return Uf[t] ? "#" + Uf[t] : e; } P(Kb, "nameToHex"); var t5 = /^#[a-fA-F0-9]{6}$/, r5 = /^#[a-fA-F0-9]{8}$/, n5 = /^#[a-fA-F0-9]{3}$/, o5 = /^#[a-fA-F0-9]{4}$/, Vl = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, a5 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, i5 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, l5 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; function Zr(e) { if (typeof e != "string") throw new Ke(3); var t = Kb(e); if (t.match(t5)) return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), }; if (t.match(r5)) { var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), alpha: r, }; } if (t.match(n5)) return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), }; if (t.match(o5)) { var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), alpha: n, }; } var o = Vl.exec(t); if (o) return { red: parseInt("" + o[1], 10), green: parseInt("" + o[2], 10), blue: parseInt("" + o[3], 10), }; var a = a5.exec(t.substring(0, 50)); if (a) return { red: parseInt("" + a[1], 10), green: parseInt("" + a[2], 10), blue: parseInt("" + a[3], 10), alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4]), }; var i = i5.exec(t); if (i) { var l = parseInt("" + i[1], 10), s = parseInt("" + i[2], 10) / 100, u = parseInt("" + i[3], 10) / 100, d = "rgb(" + Gn(l, s, u) + ")", p = Vl.exec(d); if (!p) throw new Ke(4, t, d); return { red: parseInt("" + p[1], 10), green: parseInt("" + p[2], 10), blue: parseInt("" + p[3], 10), }; } var c = l5.exec(t.substring(0, 50)); if (c) { var f = parseInt("" + c[1], 10), g = parseInt("" + c[2], 10) / 100, y = parseInt("" + c[3], 10) / 100, x = "rgb(" + Gn(f, g, y) + ")", v = Vl.exec(x); if (!v) throw new Ke(4, t, x); return { red: parseInt("" + v[1], 10), green: parseInt("" + v[2], 10), blue: parseInt("" + v[3], 10), alpha: parseFloat("" + c[4]) > 1 ? parseFloat("" + c[4]) / 100 : parseFloat("" + c[4]), }; } throw new Ke(5); } P(Zr, "parseToRgb"); function Xb(e) { var t = e.red / 255, r = e.green / 255, n = e.blue / 255, o = Math.max(t, r, n), a = Math.min(t, r, n), i = (o + a) / 2; if (o === a) return e.alpha !== void 0 ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } : { hue: 0, saturation: 0, lightness: i }; var l, s = o - a, u = i > 0.5 ? s / (2 - o - a) : s / (o + a); switch (o) { case t: l = (r - n) / s + (r < n ? 6 : 0); break; case r: l = (n - t) / s + 2; break; default: l = (t - r) / s + 4; break; } return ( (l *= 60), e.alpha !== void 0 ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } : { hue: l, saturation: u, lightness: i } ); } P(Xb, "rgbToHsl"); function ar(e) { return Xb(Zr(e)); } P(ar, "parseToHsl"); var s5 = P(function (e) { return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e; }, "reduceHexValue"), du = s5; function br(e) { var t = e.toString(16); return t.length === 1 ? "0" + t : t; } P(br, "numberToHex"); function ja(e) { return br(Math.round(e * 255)); } P(ja, "colorToHex"); function Zb(e, t, r) { return du("#" + ja(e) + ja(t) + ja(r)); } P(Zb, "convertToHex"); function Go(e, t, r) { return Gn(e, t, r, Zb); } P(Go, "hslToHex"); function Jb(e, t, r) { if (typeof e == "number" && typeof t == "number" && typeof r == "number") return Go(e, t, r); if (typeof e == "object" && t === void 0 && r === void 0) return Go(e.hue, e.saturation, e.lightness); throw new Ke(1); } P(Jb, "hsl"); function Qb(e, t, r, n) { if ( typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof n == "number" ) return n >= 1 ? Go(e, t, r) : "rgba(" + Gn(e, t, r) + "," + n + ")"; if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) return e.alpha >= 1 ? Go(e.hue, e.saturation, e.lightness) : "rgba(" + Gn(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; throw new Ke(2); } P(Qb, "hsla"); function fi(e, t, r) { if (typeof e == "number" && typeof t == "number" && typeof r == "number") return du("#" + br(e) + br(t) + br(r)); if (typeof e == "object" && t === void 0 && r === void 0) return du("#" + br(e.red) + br(e.green) + br(e.blue)); throw new Ke(6); } P(fi, "rgb"); function Jr(e, t, r, n) { if (typeof e == "string" && typeof t == "number") { var o = Zr(e); return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; } else { if ( typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof n == "number" ) return n >= 1 ? fi(e, t, r) : "rgba(" + e + "," + t + "," + r + "," + n + ")"; if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) return e.alpha >= 1 ? fi(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; } throw new Ke(7); } P(Jr, "rgba"); var u5 = P(function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, "isRgb"), c5 = P(function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number" ); }, "isRgba"), d5 = P(function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, "isHsl"), p5 = P(function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number" ); }, "isHsla"); function ir(e) { if (typeof e != "object") throw new Ke(8); if (c5(e)) return Jr(e); if (u5(e)) return fi(e); if (p5(e)) return Qb(e); if (d5(e)) return Jb(e); throw new Ke(8); } P(ir, "toColorString"); function id(e, t, r) { return P(function () { var n = r.concat(Array.prototype.slice.call(arguments)); return n.length >= t ? e.apply(this, n) : id(e, t, n); }, "fn"); } P(id, "curried"); function tt(e) { return id(e, e.length, []); } P(tt, "curry"); function e1(e, t) { if (t === "transparent") return t; var r = ar(t); return ir(Be({}, r, { hue: r.hue + parseFloat(e) })); } P(e1, "adjustHue"); tt(e1); function an(e, t, r) { return Math.max(e, Math.min(t, r)); } P(an, "guard"); function t1(e, t) { if (t === "transparent") return t; var r = ar(t); return ir(Be({}, r, { lightness: an(0, 1, r.lightness - parseFloat(e)) })); } P(t1, "darken"); var f5 = tt(t1), g5 = f5; function r1(e, t) { if (t === "transparent") return t; var r = ar(t); return ir(Be({}, r, { saturation: an(0, 1, r.saturation - parseFloat(e)) })); } P(r1, "desaturate"); tt(r1); function n1(e, t) { if (t === "transparent") return t; var r = ar(t); return ir(Be({}, r, { lightness: an(0, 1, r.lightness + parseFloat(e)) })); } P(n1, "lighten"); var m5 = tt(n1), h5 = m5; function o1(e, t, r) { if (t === "transparent") return r; if (r === "transparent") return t; if (e === 0) return r; var n = Zr(t), o = Be({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), a = Zr(r), i = Be({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), l = o.alpha - i.alpha, s = parseFloat(e) * 2 - 1, u = s * l === -1 ? s : s + l, d = 1 + s * l, p = (u / d + 1) / 2, c = 1 - p, f = { red: Math.floor(o.red * p + i.red * c), green: Math.floor(o.green * p + i.green * c), blue: Math.floor(o.blue * p + i.blue * c), alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), }; return Jr(f); } P(o1, "mix"); var y5 = tt(o1), a1 = y5; function i1(e, t) { if (t === "transparent") return t; var r = Zr(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = Be({}, r, { alpha: an(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); return Jr(o); } P(i1, "opacify"); var b5 = tt(i1), v5 = b5; function l1(e, t) { if (t === "transparent") return t; var r = ar(t); return ir(Be({}, r, { saturation: an(0, 1, r.saturation + parseFloat(e)) })); } P(l1, "saturate"); tt(l1); function s1(e, t) { return t === "transparent" ? t : ir(Be({}, ar(t), { hue: parseFloat(e) })); } P(s1, "setHue"); tt(s1); function u1(e, t) { return t === "transparent" ? t : ir(Be({}, ar(t), { lightness: parseFloat(e) })); } P(u1, "setLightness"); tt(u1); function c1(e, t) { return t === "transparent" ? t : ir(Be({}, ar(t), { saturation: parseFloat(e) })); } P(c1, "setSaturation"); tt(c1); function d1(e, t) { return t === "transparent" ? t : a1(parseFloat(e), "rgb(0, 0, 0)", t); } P(d1, "shade"); tt(d1); function p1(e, t) { return t === "transparent" ? t : a1(parseFloat(e), "rgb(255, 255, 255)", t); } P(p1, "tint"); tt(p1); function f1(e, t) { if (t === "transparent") return t; var r = Zr(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = Be({}, r, { alpha: an(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), }); return Jr(o); } P(f1, "transparentize"); var x5 = tt(f1), E5 = x5, K = { secondary: "#029CFD", tertiary: "#FAFBFC", ancillary: "#22a699", orange: "#FC521F", gold: "#FFAE00", green: "#66BF3C", seafoam: "#37D5D3", purple: "#6F2CAC", ultraviolet: "#2A0481", lightest: "#FFFFFF", lighter: "#F7FAFC", light: "#EEF3F6", mediumlight: "#ECF4F9", medium: "#D9E8F2", mediumdark: "#73828C", dark: "#5C6870", darker: "#454E54", darkest: "#2E3438", border: "hsla(203, 50%, 30%, 0.15)", positive: "#66BF3C", negative: "#FF4400", warning: "#E69D00", critical: "#FFFFFF", positiveText: "#448028", negativeText: "#D43900", warningText: "#A15C20", }, vr = { app: "#F6F9FC", gridCellSize: 10, hoverable: E5(0.9, K.secondary), positive: "#E1FFD4", negative: "#FEDED2", warning: "#FFF5CF", critical: "#FF4400", }, zt = { fonts: { base: [ '"Nunito Sans"', "-apple-system", '".SFNSText-Regular"', '"San Francisco"', "BlinkMacSystemFont", '"Segoe UI"', '"Helvetica Neue"', "Helvetica", "Arial", "sans-serif", ].join(", "), mono: [ "ui-monospace", "Menlo", "Monaco", '"Roboto Mono"', '"Oxygen Mono"', '"Ubuntu Monospace"', '"Source Code Pro"', '"Droid Sans Mono"', '"Courier New"', "monospace", ].join(", "), }, weight: { regular: 400, bold: 700 }, size: { s1: 12, s2: 14, s3: 16, m1: 20, m2: 24, m3: 28, l1: 32, l2: 40, l3: 48, code: 90, }, }, g1 = Yc(hD(), 1), w5 = (0, g1.default)(1)(({ typography: e }) => ({ body: { fontFamily: e.fonts.base, fontSize: e.size.s3, margin: 0, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", WebkitOverflowScrolling: "touch", }, "*": { boxSizing: "border-box" }, "h1, h2, h3, h4, h5, h6": { fontWeight: e.weight.regular, margin: 0, padding: 0, }, "button, input, textarea, select": { fontFamily: "inherit", fontSize: "inherit", boxSizing: "border-box", }, sub: { fontSize: "0.8em", bottom: "-0.2em" }, sup: { fontSize: "0.8em", top: "-0.2em" }, "b, strong": { fontWeight: e.weight.bold }, hr: { border: "none", borderTop: "1px solid silver", clear: "both", marginBottom: "1.25rem", }, code: { fontFamily: e.fonts.mono, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", display: "inline-block", paddingLeft: 2, paddingRight: 2, verticalAlign: "baseline", color: "inherit", }, pre: { fontFamily: e.fonts.mono, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", lineHeight: "18px", padding: "11px 1rem", whiteSpace: "pre-wrap", color: "inherit", borderRadius: 3, margin: "1rem 0", }, })); (0, g1.default)(1)(({ color: e, background: t, typography: r }) => { let n = w5({ typography: r }); return { ...n, body: { ...n.body, color: e.defaultText, background: t.app, overflow: "hidden", }, hr: { ...n.hr, borderTop: `1px solid ${e.border}` }, ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": { position: "absolute", width: 1, height: 1, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", border: 0, }, ".sb-hidden-until-focus": { opacity: 0, transition: "opacity 150ms ease-out", }, ".sb-hidden-until-focus:focus": { opacity: 1 }, }; }); var S5 = { base: "dark", colorPrimary: "#FF4785", colorSecondary: "#029CFD", appBg: "#222425", appContentBg: "#1B1C1D", appPreviewBg: K.lightest, appBorderColor: "rgba(255,255,255,.1)", appBorderRadius: 4, fontBase: zt.fonts.base, fontCode: zt.fonts.mono, textColor: "#C9CDCF", textInverseColor: "#222425", textMutedColor: "#798186", barTextColor: K.mediumdark, barHoverColor: K.secondary, barSelectedColor: K.secondary, barBg: "#292C2E", buttonBg: "#222425", buttonBorder: "rgba(255,255,255,.1)", booleanBg: "#222425", booleanSelectedBg: "#2E3438", inputBg: "#1B1C1D", inputBorder: "rgba(255,255,255,.1)", inputTextColor: K.lightest, inputBorderRadius: 4, }, C5 = S5, $5 = { base: "light", colorPrimary: "#FF4785", colorSecondary: "#029CFD", appBg: vr.app, appContentBg: K.lightest, appPreviewBg: K.lightest, appBorderColor: K.border, appBorderRadius: 4, fontBase: zt.fonts.base, fontCode: zt.fonts.mono, textColor: K.darkest, textInverseColor: K.lightest, textMutedColor: K.dark, barTextColor: K.mediumdark, barHoverColor: K.secondary, barSelectedColor: K.secondary, barBg: K.lightest, buttonBg: vr.app, buttonBorder: K.medium, booleanBg: K.mediumlight, booleanSelectedBg: K.lightest, inputBg: K.lightest, inputBorder: K.border, inputTextColor: K.darkest, inputBorderRadius: 4, }, gi = $5; const { logger: A5 } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { global: D5 } = __STORYBOOK_MODULE_GLOBAL__; var { window: ql } = D5, k5 = P((e) => ({ color: e }), "mkColor"), O5 = P( (e) => typeof e != "string" ? (A5.warn( `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`, ), !1) : !0, "isColorString", ), F5 = P((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), _5 = P( (e, t) => e === "darken" ? Jr(`${g5(1, t)}`, 0.95) : e === "lighten" ? Jr(`${h5(1, t)}`, 0.95) : t, "applyPolished", ), m1 = P( (e) => (t) => { if (!O5(t) || !F5(t)) return t; try { return _5(e, t); } catch { return t; } }, "colorFactory", ), wn = m1("lighten"); m1("darken"); var h1 = P( () => !ql || !ql.matchMedia ? "light" : ql.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme", ), pu = { light: gi, dark: C5, normal: gi }; h1(); var T5 = { rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)" }, R5 = _t` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `, y1 = _t` 0%, 100% { opacity: 1; } 50% { opacity: .4; } `, P5 = _t` 0% { transform: translateY(1px); } 25% { transform: translateY(0px); } 50% { transform: translateY(-3px); } 100% { transform: translateY(1px); } `, I5 = _t` 0%, 100% { transform:translate3d(0,0,0); } 12.5%, 62.5% { transform:translate3d(-4px,0,0); } 37.5%, 87.5% { transform: translate3d(4px,0,0); } `, L5 = Ji` animation: ${y1} 1.5s ease-in-out infinite; color: transparent; cursor: progress; `, B5 = Ji` transition: all 150ms ease-out; transform: translate3d(0, 0, 0); &:hover { transform: translate3d(0, -2px, 0); } &:active { transform: translate3d(0, 0, 0); } `, N5 = { rotate360: R5, glow: y1, float: P5, jiggle: I5, inlineGlow: L5, hoverable: B5, }, j5 = { BASE_FONT_FAMILY: "Menlo, monospace", BASE_FONT_SIZE: "11px", BASE_LINE_HEIGHT: 1.2, BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)", BASE_COLOR: "rgb(213, 213, 213)", OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, OBJECT_NAME_COLOR: "rgb(227, 110, 236)", OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)", OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)", OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)", OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)", OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)", OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)", OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)", OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)", HTML_TAG_COLOR: "rgb(93, 176, 215)", HTML_TAGNAME_COLOR: "rgb(93, 176, 215)", HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)", HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)", HTML_COMMENT_COLOR: "rgb(137, 137, 137)", HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", ARROW_COLOR: "rgb(145, 145, 145)", ARROW_MARGIN_RIGHT: 3, ARROW_FONT_SIZE: 12, ARROW_ANIMATION_DURATION: "0", TREENODE_FONT_FAMILY: "Menlo, monospace", TREENODE_FONT_SIZE: "11px", TREENODE_LINE_HEIGHT: 1.2, TREENODE_PADDING_LEFT: 12, TABLE_BORDER_COLOR: "rgb(85, 85, 85)", TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)", TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)", TABLE_SORT_ICON_COLOR: "black", TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))", TABLE_DATA_BACKGROUND_SIZE: "128px 32px", }, M5 = { BASE_FONT_FAMILY: "Menlo, monospace", BASE_FONT_SIZE: "11px", BASE_LINE_HEIGHT: 1.2, BASE_BACKGROUND_COLOR: "white", BASE_COLOR: "black", OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, OBJECT_NAME_COLOR: "rgb(136, 19, 145)", OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)", OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)", OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)", OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)", OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)", OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)", OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)", OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)", HTML_TAG_COLOR: "rgb(168, 148, 166)", HTML_TAGNAME_COLOR: "rgb(136, 18, 128)", HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)", HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)", HTML_COMMENT_COLOR: "rgb(35, 110, 37)", HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", ARROW_COLOR: "#6e6e6e", ARROW_MARGIN_RIGHT: 3, ARROW_FONT_SIZE: 12, ARROW_ANIMATION_DURATION: "0", TREENODE_FONT_FAMILY: "Menlo, monospace", TREENODE_FONT_SIZE: "11px", TREENODE_LINE_HEIGHT: 1.2, TREENODE_PADDING_LEFT: 12, TABLE_BORDER_COLOR: "#aaa", TABLE_TH_BACKGROUND_COLOR: "#eee", TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)", TABLE_SORT_ICON_COLOR: "#6e6e6e", TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))", TABLE_DATA_BACKGROUND_SIZE: "128px 32px", }, z5 = P( (e) => Object.entries(e).reduce((t, [r, n]) => ({ ...t, [r]: k5(n) }), {}), "convertColors", ), H5 = P(({ colors: e, mono: t }) => { let r = z5(e); return { token: { fontFamily: t, WebkitFontSmoothing: "antialiased", "&.tag": r.red3, "&.comment": { ...r.green1, fontStyle: "italic" }, "&.prolog": { ...r.green1, fontStyle: "italic" }, "&.doctype": { ...r.green1, fontStyle: "italic" }, "&.cdata": { ...r.green1, fontStyle: "italic" }, "&.string": r.red1, "&.url": r.cyan1, "&.symbol": r.cyan1, "&.number": r.cyan1, "&.boolean": r.cyan1, "&.variable": r.cyan1, "&.constant": r.cyan1, "&.inserted": r.cyan1, "&.atrule": r.blue1, "&.keyword": r.blue1, "&.attr-value": r.blue1, "&.punctuation": r.gray1, "&.operator": r.gray1, "&.function": r.gray1, "&.deleted": r.red2, "&.important": { fontWeight: "bold" }, "&.bold": { fontWeight: "bold" }, "&.italic": { fontStyle: "italic" }, "&.class-name": r.cyan2, "&.selector": r.red3, "&.attr-name": r.red4, "&.property": r.red4, "&.regex": r.red4, "&.entity": r.red4, "&.directive.tag .tag": { background: "#ffff00", ...r.gray1 }, }, "language-json .token.boolean": r.blue1, "language-json .token.number": r.blue1, "language-json .token.property": r.cyan2, namespace: { opacity: 0.7 }, }; }, "create"), U5 = { green1: "#008000", red1: "#A31515", red2: "#9a050f", red3: "#800000", red4: "#ff0000", gray1: "#393A34", cyan1: "#36acaa", cyan2: "#2B91AF", blue1: "#0000ff", blue2: "#00009f", }, W5 = { green1: "#7C7C7C", red1: "#92C379", red2: "#9a050f", red3: "#A8FF60", red4: "#96CBFE", gray1: "#EDEDED", cyan1: "#C6C5FE", cyan2: "#FFFFB6", blue1: "#B474DD", blue2: "#00009f", }, V5 = P( (e) => ({ primary: e.colorPrimary, secondary: e.colorSecondary, tertiary: K.tertiary, ancillary: K.ancillary, orange: K.orange, gold: K.gold, green: K.green, seafoam: K.seafoam, purple: K.purple, ultraviolet: K.ultraviolet, lightest: K.lightest, lighter: K.lighter, light: K.light, mediumlight: K.mediumlight, medium: K.medium, mediumdark: K.mediumdark, dark: K.dark, darker: K.darker, darkest: K.darkest, border: K.border, positive: K.positive, negative: K.negative, warning: K.warning, critical: K.critical, defaultText: e.textColor || K.darkest, inverseText: e.textInverseColor || K.lightest, positiveText: K.positiveText, negativeText: K.negativeText, warningText: K.warningText, }), "createColors", ), fu = P((e = pu[h1()]) => { let { base: t, colorPrimary: r, colorSecondary: n, appBg: o, appContentBg: a, appPreviewBg: i, appBorderColor: l, appBorderRadius: s, fontBase: u, fontCode: d, textColor: p, textInverseColor: c, barTextColor: f, barHoverColor: g, barSelectedColor: y, barBg: x, buttonBg: v, buttonBorder: C, booleanBg: w, booleanSelectedBg: E, inputBg: $, inputBorder: A, inputTextColor: S, inputBorderRadius: D, brandTitle: F, brandUrl: k, brandImage: _, brandTarget: I, gridCellSize: L, ...j } = e; return { ...j, base: t, color: V5(e), background: { app: o, bar: x, content: a, preview: i, gridCellSize: L || vr.gridCellSize, hoverable: vr.hoverable, positive: vr.positive, negative: vr.negative, warning: vr.warning, critical: vr.critical, }, typography: { fonts: { base: u, mono: d }, weight: zt.weight, size: zt.size, }, animation: N5, easing: T5, input: { background: $, border: A, borderRadius: D, color: S }, button: { background: v || $, border: C || A }, boolean: { background: w || A, selectedBackground: E || $ }, layoutMargin: 10, appBorderColor: l, appBorderRadius: s, barTextColor: f, barHoverColor: g || n, barSelectedColor: y || n, barBg: x, brand: { title: F, url: k, image: _ || (F ? null : void 0), target: I }, code: H5({ colors: t === "light" ? U5 : W5, mono: d }), addonActionsTheme: { ...(t === "light" ? M5 : j5), BASE_FONT_FAMILY: d, BASE_FONT_SIZE: zt.size.s2 - 1, BASE_LINE_HEIGHT: "18px", BASE_BACKGROUND_COLOR: "transparent", BASE_COLOR: p, ARROW_COLOR: v5(0.2, l), ARROW_MARGIN_RIGHT: 4, ARROW_FONT_SIZE: 8, TREENODE_FONT_FAMILY: d, TREENODE_FONT_SIZE: zt.size.s2 - 1, TREENODE_LINE_HEIGHT: "18px", TREENODE_PADDING_LEFT: 12, }, }; }, "convert"); const { logger: q5 } = __STORYBOOK_MODULE_CLIENT_LOGGER__; var G5 = P((e) => Object.keys(e).length === 0, "isEmpty"), Gl = P((e) => e != null && typeof e == "object", "isObject"), Y5 = P( (e, ...t) => Object.prototype.hasOwnProperty.call(e, ...t), "hasOwnProperty", ), K5 = P(() => Object.create(null), "makeObjectWithoutPrototype"), b1 = P( (e, t) => e === t || !Gl(e) || !Gl(t) ? {} : Object.keys(e).reduce((r, n) => { if (Y5(t, n)) { let o = b1(e[n], t[n]); return ((Gl(o) && G5(o)) || (r[n] = o), r); } return ((r[n] = void 0), r); }, K5()), "deletedDiff", ), X5 = b1; function v1(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var o = n.reduce(function (l, s) { var u = s.match(/\n([\t ]+|(?!\s).)/g); return u ? l.concat( u.map(function (d) { var p, c; return (c = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && c !== void 0 ? c : 0; }), ) : l; }, []); if (o.length) { var a = new RegExp( ` [ ]{` + Math.min.apply(Math, o) + "}", "g", ); n = n.map(function (l) { return l.replace( a, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (l, s) { var u = i.match(/(?:^|\n)( *)$/), d = u ? u[1] : "", p = l; (typeof l == "string" && l.includes(` `) && (p = String(l) .split( ` `, ) .map(function (c, f) { return f === 0 ? c : "" + d + c; }).join(` `)), (i += p + n[s + 1])); }), i ); } P(v1, "dedent"); var Z5 = P((e) => { if (!e) return fu(gi); let t = X5(gi, e); return ( Object.keys(t).length && q5.warn( v1` Your theme is missing properties, you should update your theme! theme-data missing: `, t, ), fu(e) ); }, "ensure"), gu = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Qi = P2(); const x1 = R2(Qi); var J5 = Object.create, el = Object.defineProperty, Q5 = Object.getOwnPropertyDescriptor, ek = Object.getOwnPropertyNames, tk = Object.getPrototypeOf, rk = Object.prototype.hasOwnProperty, m = (e, t) => el(e, "name", { value: t, configurable: !0 }), va = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r], }) : e)(function (e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), N = (e, t) => () => (e && (t = e((e = 0))), t), te = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), na = (e, t) => { for (var r in t) el(e, r, { get: t[r], enumerable: !0 }); }, nk = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let o of ek(t)) !rk.call(e, o) && o !== r && el(e, o, { get: () => t[o], enumerable: !(n = Q5(t, o)) || n.enumerable, }); return e; }, je = (e, t, r) => ( (r = e != null ? J5(tk(e)) : {}), nk( t || !e || !e.__esModule ? el(r, "default", { value: e, enumerable: !0 }) : r, e, ) ); function xe() { return ( (xe = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; }), xe.apply(null, arguments) ); } var tl = N(() => { m(xe, "_extends"); }); function E1(e) { if (e === void 0) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called", ); return e; } var ok = N(() => { m(E1, "_assertThisInitialized"); }); function Yn(e, t) { return ( (Yn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (r, n) { return ((r.__proto__ = n), r); }), Yn(e, t) ); } var ld = N(() => { m(Yn, "_setPrototypeOf"); }); function mi(e) { return ( (mi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }), mi(e) ); } var ak = N(() => { m(mi, "_getPrototypeOf"); }), rl = te((e, t) => { (function (r) { if (typeof e == "object" && typeof t < "u") t.exports = r(); else if (typeof define == "function" && define.amd) define([], r); else { var n; (typeof window < "u" ? (n = window) : typeof global < "u" ? (n = global) : typeof self < "u" ? (n = self) : (n = this), (n.memoizerific = r())); } })(function () { return m(function r(n, o, a) { function i(u, d) { if (!o[u]) { if (!n[u]) { var p = typeof va == "function" && va; if (!d && p) return p(u, !0); if (l) return l(u, !0); var c = new Error("Cannot find module '" + u + "'"); throw ((c.code = "MODULE_NOT_FOUND"), c); } var f = (o[u] = { exports: {} }); n[u][0].call( f.exports, function (g) { var y = n[u][1][g]; return i(y || g); }, f, f.exports, r, n, o, a, ); } return o[u].exports; } m(i, "s"); for (var l = typeof va == "function" && va, s = 0; s < a.length; s++) i(a[s]); return i; }, "e")( { 1: [ function (r, n, o) { n.exports = function (a) { if (typeof Map != "function" || a) { var i = r("./similar"); return new i(); } else return new Map(); }; }, { "./similar": 2 }, ], 2: [ function (r, n, o) { function a() { return ( (this.list = []), (this.lastItem = void 0), (this.size = 0), this ); } (m(a, "Similar"), (a.prototype.get = function (i) { var l; if (this.lastItem && this.isEqual(this.lastItem.key, i)) return this.lastItem.val; if (((l = this.indexOf(i)), l >= 0)) return ((this.lastItem = this.list[l]), this.list[l].val); }), (a.prototype.set = function (i, l) { var s; return this.lastItem && this.isEqual(this.lastItem.key, i) ? ((this.lastItem.val = l), this) : ((s = this.indexOf(i)), s >= 0 ? ((this.lastItem = this.list[s]), (this.list[s].val = l), this) : ((this.lastItem = { key: i, val: l }), this.list.push(this.lastItem), this.size++, this)); }), (a.prototype.delete = function (i) { var l; if ( (this.lastItem && this.isEqual(this.lastItem.key, i) && (this.lastItem = void 0), (l = this.indexOf(i)), l >= 0) ) return (this.size--, this.list.splice(l, 1)[0]); }), (a.prototype.has = function (i) { var l; return this.lastItem && this.isEqual(this.lastItem.key, i) ? !0 : ((l = this.indexOf(i)), l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); }), (a.prototype.forEach = function (i, l) { var s; for (s = 0; s < this.size; s++) i.call(l || this, this.list[s].val, this.list[s].key, this); }), (a.prototype.indexOf = function (i) { var l; for (l = 0; l < this.size; l++) if (this.isEqual(this.list[l].key, i)) return l; return -1; }), (a.prototype.isEqual = function (i, l) { return i === l || (i !== i && l !== l); }), (n.exports = a)); }, {}, ], 3: [ function (r, n, o) { var a = r("map-or-similar"); n.exports = function (u) { var d = new a(!1), p = []; return function (c) { var f = m(function () { var g = d, y, x, v = arguments.length - 1, C = Array(v + 1), w = !0, E; if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) throw new Error( "Memoizerific functions should always be called with the same number of arguments", ); for (E = 0; E < v; E++) { if ( ((C[E] = { cacheItem: g, arg: arguments[E] }), g.has(arguments[E])) ) { g = g.get(arguments[E]); continue; } ((w = !1), (y = new a(!1)), g.set(arguments[E], y), (g = y)); } return ( w && (g.has(arguments[v]) ? (x = g.get(arguments[v])) : (w = !1)), w || ((x = c.apply(null, arguments)), g.set(arguments[v], x)), u > 0 && ((C[v] = { cacheItem: g, arg: arguments[v] }), w ? i(p, C) : p.push(C), p.length > u && l(p.shift())), (f.wasMemoized = w), (f.numArgs = v + 1), x ); }, "memoizerific"); return ( (f.limit = u), (f.wasMemoized = !1), (f.cache = d), (f.lru = p), f ); }; }; function i(u, d) { var p = u.length, c = d.length, f, g, y; for (g = 0; g < p; g++) { for (f = !0, y = 0; y < c; y++) if (!s(u[g][y].arg, d[y].arg)) { f = !1; break; } if (f) break; } u.push(u.splice(g, 1)[0]); } m(i, "moveToMostRecentLru"); function l(u) { var d = u.length, p = u[d - 1], c, f; for ( p.cacheItem.delete(p.arg), f = d - 2; f >= 0 && ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); f-- ) p.cacheItem.delete(p.arg); } m(l, "removeCachedResult"); function s(u, d) { return u === d || (u !== u && d !== d); } m(s, "isEqual"); }, { "map-or-similar": 1 }, ], }, {}, [3], )(3); }); }); function nl(e, t) { if (e == null) return {}; var r = {}; for (var n in e) if ({}.hasOwnProperty.call(e, n)) { if (t.indexOf(n) !== -1) continue; r[n] = e[n]; } return r; } var sd = N(() => { m(nl, "_objectWithoutPropertiesLoose"); }); function w1(e, t) { if (e == null) return {}; var r, n, o = nl(e, t); if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e); for (n = 0; n < a.length; n++) ((r = a[n]), t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r])); } return o; } var ik = N(() => { (sd(), m(w1, "_objectWithoutProperties")); }); function hi(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; return n; } var S1 = N(() => { m(hi, "_arrayLikeToArray"); }); function C1(e) { if (Array.isArray(e)) return hi(e); } var lk = N(() => { (S1(), m(C1, "_arrayWithoutHoles")); }); function $1(e) { if ( (typeof Symbol < "u" && e[Symbol.iterator] != null) || e["@@iterator"] != null ) return Array.from(e); } var sk = N(() => { m($1, "_iterableToArray"); }); function A1(e, t) { if (e) { if (typeof e == "string") return hi(e, t); var r = {}.toString.call(e).slice(8, -1); return ( r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? hi(e, t) : void 0 ); } } var uk = N(() => { (S1(), m(A1, "_unsupportedIterableToArray")); }); function D1() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var ck = N(() => { m(D1, "_nonIterableSpread"); }); function yi(e) { return C1(e) || $1(e) || A1(e) || D1(); } var dk = N(() => { (lk(), sk(), uk(), ck(), m(yi, "_toConsumableArray")); }); function Kn(e) { "@babel/helpers - typeof"; return ( (Kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (t) { return typeof t; } : function (t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }), Kn(e) ); } var k1 = N(() => { m(Kn, "_typeof"); }); function O1(e, t) { if (Kn(e) != "object" || !e) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (Kn(n) != "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var pk = N(() => { (k1(), m(O1, "toPrimitive")); }); function F1(e) { var t = O1(e, "string"); return Kn(t) == "symbol" ? t : t + ""; } var fk = N(() => { (k1(), pk(), m(F1, "toPropertyKey")); }); function ud(e, t, r) { return ( (t = F1(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } var _1 = N(() => { (fk(), m(ud, "_defineProperty")); }); function mu(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); (t && (n = n.filter(function (o) { return Object.getOwnPropertyDescriptor(e, o).enumerable; })), r.push.apply(r, n)); } return r; } function qr(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? mu(Object(r), !0).forEach(function (n) { ud(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mu(Object(r)).forEach(function (n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } function T1(e) { var t = e.length; if (t === 0 || t === 1) return e; if (t === 2) return [ e[0], e[1], "".concat(e[0], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0]), ]; if (t === 3) return [ e[0], e[1], e[2], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), ]; if (t >= 4) return [ e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1], ".").concat(e[0]), ]; } function R1(e) { if (e.length === 0 || e.length === 1) return e; var t = e.join("."); return (Ma[t] || (Ma[t] = T1(e)), Ma[t]); } function P1(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, n = e.filter(function (a) { return a !== "token"; }), o = R1(n); return o.reduce(function (a, i) { return qr(qr({}, a), r[i]); }, t); } function hu(e) { return e.join(" "); } function I1(e, t) { var r = 0; return function (n) { return ( (r += 1), n.map(function (o, a) { return ol({ node: o, stylesheet: e, useInlineStyles: t, key: "code-segment-".concat(r, "-").concat(a), }); }) ); }; } function ol(e) { var t = e.node, r = e.stylesheet, n = e.style, o = n === void 0 ? {} : n, a = e.useInlineStyles, i = e.key, l = t.properties, s = t.type, u = t.tagName, d = t.value; if (s === "text") return d; if (u) { var p = I1(r, a), c; if (!a) c = qr(qr({}, l), {}, { className: hu(l.className) }); else { var f = Object.keys(r).reduce(function (v, C) { return ( C.split(".").forEach(function (w) { v.includes(w) || v.push(w); }), v ); }, []), g = l.className && l.className.includes("token") ? ["token"] : [], y = l.className && g.concat( l.className.filter(function (v) { return !f.includes(v); }), ); c = qr( qr({}, l), {}, { className: hu(y) || void 0, style: P1(l.className, Object.assign({}, l.style, o), r), }, ); } var x = p(t.children); return h.createElement(u, xe({ key: i }, c), x); } } var Ma, L1 = N(() => { (tl(), _1(), m(mu, "ownKeys"), m(qr, "_objectSpread"), m(T1, "powerSetPermutations"), (Ma = {}), m(R1, "getClassNameCombinations"), m(P1, "createStyleObject"), m(hu, "createClassNameString"), m(I1, "createChildren"), m(ol, "createElement")); }), B1, gk = N(() => { B1 = m(function (e, t) { var r = e.listLanguages(); return r.indexOf(t) !== -1; }, "default"); }); function yu(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); (t && (n = n.filter(function (o) { return Object.getOwnPropertyDescriptor(e, o).enumerable; })), r.push.apply(r, n)); } return r; } function nr(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? yu(Object(r), !0).forEach(function (n) { ud(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : yu(Object(r)).forEach(function (n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } function N1(e) { return e.match(G1); } function j1(e) { var t = e.lines, r = e.startingLineNumber, n = e.style; return t.map(function (o, a) { var i = a + r; return h.createElement( "span", { key: "line-".concat(a), className: "react-syntax-highlighter-line-number", style: typeof n == "function" ? n(i) : n, }, "".concat( i, ` `, ), ); }); } function M1(e) { var t = e.codeString, r = e.codeStyle, n = e.containerStyle, o = n === void 0 ? { float: "left", paddingRight: "10px" } : n, a = e.numberStyle, i = a === void 0 ? {} : a, l = e.startingLineNumber; return h.createElement( "code", { style: Object.assign({}, r, o) }, j1({ lines: t.replace(/\n$/, "").split(` `), style: i, startingLineNumber: l, }), ); } function z1(e) { return "".concat(e.toString().length, ".25em"); } function cd(e, t) { return { type: "element", tagName: "span", properties: { key: "line-number--".concat(e), className: [ "comment", "linenumber", "react-syntax-highlighter-line-number", ], style: t, }, children: [{ type: "text", value: e }], }; } function dd(e, t, r) { var n = { display: "inline-block", minWidth: z1(r), paddingRight: "1em", textAlign: "right", userSelect: "none", }, o = typeof e == "function" ? e(t) : e, a = nr(nr({}, n), o); return a; } function jo(e) { var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, o = e.largestLineNumber, a = e.showInlineLineNumbers, i = e.lineProps, l = i === void 0 ? {} : i, s = e.className, u = s === void 0 ? [] : s, d = e.showLineNumbers, p = e.wrapLongLines, c = e.wrapLines, f = c === void 0 ? !1 : c, g = f ? nr({}, typeof l == "function" ? l(r) : l) : {}; if ( ((g.className = g.className ? [].concat(yi(g.className.trim().split(/\s+/)), yi(u)) : u), r && a) ) { var y = dd(n, r, o); t.unshift(cd(r, y)); } return ( p & d && (g.style = nr({ display: "flex" }, g.style)), { type: "element", tagName: "span", properties: g, children: t } ); } function pd(e) { for ( var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], n = 0; n < e.length; n++ ) { var o = e[n]; if (o.type === "text") r.push(jo({ children: [o], className: yi(new Set(t)) })); else if (o.children) { var a = t.concat(o.properties.className); pd(o.children, a).forEach(function (i) { return r.push(i); }); } } return r; } function H1(e, t, r, n, o, a, i, l, s) { var u, d = pd(e.value), p = [], c = -1, f = 0; function g($, A) { var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; return jo({ children: $, lineNumber: A, lineNumberStyle: l, largestLineNumber: i, showInlineLineNumbers: o, lineProps: r, className: S, showLineNumbers: n, wrapLongLines: s, wrapLines: t, }); } m(g, "createWrappedLine"); function y($, A) { if (n && A && o) { var S = dd(l, A, i); $.unshift(cd(A, S)); } return $; } m(y, "createUnwrappedLine"); function x($, A) { var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; return t || S.length > 0 ? g($, A, S) : y($, A); } m(x, "createLine"); for ( var v = m(function () { var $ = d[f], A = $.children[0].value, S = N1(A); if (S) { var D = A.split(` `); (D.forEach(function (F, k) { var _ = n && p.length + a, I = { type: "text", value: "".concat( F, ` `, ), }; if (k === 0) { var L = d .slice(c + 1, f) .concat( jo({ children: [I], className: $.properties.className }), ), j = x(L, _); p.push(j); } else if (k === D.length - 1) { var B = d[f + 1] && d[f + 1].children && d[f + 1].children[0], z = { type: "text", value: "".concat(F) }; if (B) { var V = jo({ children: [z], className: $.properties.className }); d.splice(f + 1, 0, V); } else { var Y = [z], W = x(Y, _, $.properties.className); p.push(W); } } else { var G = [I], J = x(G, _, $.properties.className); p.push(J); } }), (c = f)); } f++; }, "_loop"); f < d.length; ) v(); if (c !== d.length - 1) { var C = d.slice(c + 1, d.length); if (C && C.length) { var w = n && p.length + a, E = x(C, w); p.push(E); } } return t ? p : (u = []).concat.apply(u, p); } function U1(e) { var t = e.rows, r = e.stylesheet, n = e.useInlineStyles; return t.map(function (o, a) { return ol({ node: o, stylesheet: r, useInlineStyles: n, key: "code-segement".concat(a), }); }); } function fd(e) { return e && typeof e.highlightAuto < "u"; } function W1(e) { var t = e.astGenerator, r = e.language, n = e.code, o = e.defaultCodeValue; if (fd(t)) { var a = B1(t, r); return r === "text" ? { value: o, language: "text" } : a ? t.highlight(r, n) : t.highlightAuto(n); } try { return r && r !== "text" ? { value: t.highlight(n, r) } : { value: o }; } catch { return { value: o }; } } function V1(e, t) { return m(function (r) { var n = r.language, o = r.children, a = r.style, i = a === void 0 ? t : a, l = r.customStyle, s = l === void 0 ? {} : l, u = r.codeTagProps, d = u === void 0 ? { className: n ? "language-".concat(n) : void 0, style: nr( nr({}, i['code[class*="language-"]']), i['code[class*="language-'.concat(n, '"]')], ), } : u, p = r.useInlineStyles, c = p === void 0 ? !0 : p, f = r.showLineNumbers, g = f === void 0 ? !1 : f, y = r.showInlineLineNumbers, x = y === void 0 ? !0 : y, v = r.startingLineNumber, C = v === void 0 ? 1 : v, w = r.lineNumberContainerStyle, E = r.lineNumberStyle, $ = E === void 0 ? {} : E, A = r.wrapLines, S = r.wrapLongLines, D = S === void 0 ? !1 : S, F = r.lineProps, k = F === void 0 ? {} : F, _ = r.renderer, I = r.PreTag, L = I === void 0 ? "pre" : I, j = r.CodeTag, B = j === void 0 ? "code" : j, z = r.code, V = z === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : z, Y = r.astGenerator, W = w1(r, q1); Y = Y || e; var G = g ? h.createElement(M1, { containerStyle: w, codeStyle: d.style || {}, numberStyle: $, startingLineNumber: C, codeString: V, }) : null, J = i.hljs || i['pre[class*="language-"]'] || { backgroundColor: "#fff" }, Q = fd(Y) ? "hljs" : "prismjs", re = c ? Object.assign({}, W, { style: Object.assign({}, J, s) }) : Object.assign({}, W, { className: W.className ? "".concat(Q, " ").concat(W.className) : Q, style: Object.assign({}, s), }); if ( (D ? (d.style = nr({ whiteSpace: "pre-wrap" }, d.style)) : (d.style = nr({ whiteSpace: "pre" }, d.style)), !Y) ) return h.createElement(L, re, G, h.createElement(B, d, V)); (((A === void 0 && _) || D) && (A = !0), (_ = _ || U1)); var ie = [{ type: "text", value: V }], H = W1({ astGenerator: Y, language: n, code: V, defaultCodeValue: ie }); H.language === null && (H.value = ie); var X = H.value.length; X === 1 && H.value[0].type === "text" && (X = H.value[0].value.split(` `).length); var Z = X + C, le = H1(H, A, k, g, x, C, Z, $, D); return h.createElement( L, re, h.createElement( B, d, !x && G, _({ rows: le, stylesheet: i, useInlineStyles: c }), ), ); }, "SyntaxHighlighter"); } var q1, G1, mk = N(() => { (ik(), dk(), _1(), L1(), gk(), (q1 = [ "language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator", ]), m(yu, "ownKeys"), m(nr, "_objectSpread"), (G1 = /\n/g), m(N1, "getNewLines"), m(j1, "getAllLineNumbers"), m(M1, "AllLineNumbers"), m(z1, "getEmWidthOfNumber"), m(cd, "getInlineLineNumber"), m(dd, "assembleLineNumberStyles"), m(jo, "createLineElement"), m(pd, "flattenCodeTree"), m(H1, "processLines"), m(U1, "defaultRenderer"), m(fd, "isHighlightJs"), m(W1, "getCodeTree"), m(V1, "default")); }), hk = te((e, t) => { t.exports = n; var r = Object.prototype.hasOwnProperty; function n() { for (var o = {}, a = 0; a < arguments.length; a++) { var i = arguments[a]; for (var l in i) r.call(i, l) && (o[l] = i[l]); } return o; } m(n, "extend"); }), Y1 = te((e, t) => { t.exports = n; var r = n.prototype; ((r.space = null), (r.normal = {}), (r.property = {})); function n(o, a, i) { ((this.property = o), (this.normal = a), i && (this.space = i)); } m(n, "Schema"); }), yk = te((e, t) => { var r = hk(), n = Y1(); t.exports = o; function o(a) { for (var i = a.length, l = [], s = [], u = -1, d, p; ++u < i; ) ((d = a[u]), l.push(d.property), s.push(d.normal), (p = d.space)); return new n(r.apply(null, l), r.apply(null, s), p); } m(o, "merge"); }), gd = te((e, t) => { t.exports = r; function r(n) { return n.toLowerCase(); } m(r, "normalize"); }), K1 = te((e, t) => { t.exports = n; var r = n.prototype; ((r.space = null), (r.attribute = null), (r.property = null), (r.boolean = !1), (r.booleanish = !1), (r.overloadedBoolean = !1), (r.number = !1), (r.commaSeparated = !1), (r.spaceSeparated = !1), (r.commaOrSpaceSeparated = !1), (r.mustUseProperty = !1), (r.defined = !1)); function n(o, a) { ((this.property = o), (this.attribute = a)); } m(n, "Info"); }), md = te((e) => { var t = 0; ((e.boolean = r()), (e.booleanish = r()), (e.overloadedBoolean = r()), (e.number = r()), (e.spaceSeparated = r()), (e.commaSeparated = r()), (e.commaOrSpaceSeparated = r())); function r() { return Math.pow(2, ++t); } m(r, "increment"); }), X1 = te((e, t) => { var r = K1(), n = md(); ((t.exports = i), (i.prototype = new r()), (i.prototype.defined = !0)); var o = [ "boolean", "booleanish", "overloadedBoolean", "number", "commaSeparated", "spaceSeparated", "commaOrSpaceSeparated", ], a = o.length; function i(s, u, d, p) { var c = -1, f; for (l(this, "space", p), r.call(this, s, u); ++c < a; ) ((f = o[c]), l(this, f, (d & n[f]) === n[f])); } m(i, "DefinedInfo"); function l(s, u, d) { d && (s[u] = d); } m(l, "mark"); }), oa = te((e, t) => { var r = gd(), n = Y1(), o = X1(); t.exports = a; function a(i) { var l = i.space, s = i.mustUseProperty || [], u = i.attributes || {}, d = i.properties, p = i.transform, c = {}, f = {}, g, y; for (g in d) ((y = new o(g, p(u, g), d[g], l)), s.indexOf(g) !== -1 && (y.mustUseProperty = !0), (c[g] = y), (f[r(g)] = g), (f[r(y.attribute)] = g)); return new n(c, f, l); } m(a, "create"); }), bk = te((e, t) => { var r = oa(); t.exports = r({ space: "xlink", transform: n, properties: { xLinkActuate: null, xLinkArcRole: null, xLinkHref: null, xLinkRole: null, xLinkShow: null, xLinkTitle: null, xLinkType: null, }, }); function n(o, a) { return "xlink:" + a.slice(5).toLowerCase(); } m(n, "xlinkTransform"); }), vk = te((e, t) => { var r = oa(); t.exports = r({ space: "xml", transform: n, properties: { xmlLang: null, xmlBase: null, xmlSpace: null }, }); function n(o, a) { return "xml:" + a.slice(3).toLowerCase(); } m(n, "xmlTransform"); }), xk = te((e, t) => { t.exports = r; function r(n, o) { return o in n ? n[o] : o; } m(r, "caseSensitiveTransform"); }), Z1 = te((e, t) => { var r = xk(); t.exports = n; function n(o, a) { return r(o, a.toLowerCase()); } m(n, "caseInsensitiveTransform"); }), Ek = te((e, t) => { var r = oa(), n = Z1(); t.exports = r({ space: "xmlns", attributes: { xmlnsxlink: "xmlns:xlink" }, transform: n, properties: { xmlns: null, xmlnsXLink: null }, }); }), wk = te((e, t) => { var r = md(), n = oa(), o = r.booleanish, a = r.number, i = r.spaceSeparated; t.exports = n({ transform: l, properties: { ariaActiveDescendant: null, ariaAtomic: o, ariaAutoComplete: null, ariaBusy: o, ariaChecked: o, ariaColCount: a, ariaColIndex: a, ariaColSpan: a, ariaControls: i, ariaCurrent: null, ariaDescribedBy: i, ariaDetails: null, ariaDisabled: o, ariaDropEffect: i, ariaErrorMessage: null, ariaExpanded: o, ariaFlowTo: i, ariaGrabbed: o, ariaHasPopup: null, ariaHidden: o, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, ariaLabelledBy: i, ariaLevel: a, ariaLive: null, ariaModal: o, ariaMultiLine: o, ariaMultiSelectable: o, ariaOrientation: null, ariaOwns: i, ariaPlaceholder: null, ariaPosInSet: a, ariaPressed: o, ariaReadOnly: o, ariaRelevant: null, ariaRequired: o, ariaRoleDescription: i, ariaRowCount: a, ariaRowIndex: a, ariaRowSpan: a, ariaSelected: o, ariaSetSize: a, ariaSort: null, ariaValueMax: a, ariaValueMin: a, ariaValueNow: a, ariaValueText: null, role: null, }, }); function l(s, u) { return u === "role" ? u : "aria-" + u.slice(4).toLowerCase(); } m(l, "ariaTransform"); }), Sk = te((e, t) => { var r = md(), n = oa(), o = Z1(), a = r.boolean, i = r.overloadedBoolean, l = r.booleanish, s = r.number, u = r.spaceSeparated, d = r.commaSeparated; t.exports = n({ space: "html", attributes: { acceptcharset: "accept-charset", classname: "class", htmlfor: "for", httpequiv: "http-equiv", }, transform: o, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { abbr: null, accept: d, acceptCharset: u, accessKey: u, action: null, allow: null, allowFullScreen: a, allowPaymentRequest: a, allowUserMedia: a, alt: null, as: null, async: a, autoCapitalize: null, autoComplete: u, autoFocus: a, autoPlay: a, capture: a, charSet: null, checked: a, cite: null, className: u, cols: s, colSpan: null, content: null, contentEditable: l, controls: a, controlsList: u, coords: s | d, crossOrigin: null, data: null, dateTime: null, decoding: null, default: a, defer: a, dir: null, dirName: null, disabled: a, download: i, draggable: l, encType: null, enterKeyHint: null, form: null, formAction: null, formEncType: null, formMethod: null, formNoValidate: a, formTarget: null, headers: u, height: s, hidden: a, high: s, href: null, hrefLang: null, htmlFor: u, httpEquiv: u, id: null, imageSizes: null, imageSrcSet: d, inputMode: null, integrity: null, is: null, isMap: a, itemId: null, itemProp: u, itemRef: u, itemScope: a, itemType: u, kind: null, label: null, lang: null, language: null, list: null, loading: null, loop: a, low: s, manifest: null, max: null, maxLength: s, media: null, method: null, min: null, minLength: s, multiple: a, muted: a, name: null, nonce: null, noModule: a, noValidate: a, onAbort: null, onAfterPrint: null, onAuxClick: null, onBeforePrint: null, onBeforeUnload: null, onBlur: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onContextMenu: null, onCopy: null, onCueChange: null, onCut: null, onDblClick: null, onDrag: null, onDragEnd: null, onDragEnter: null, onDragExit: null, onDragLeave: null, onDragOver: null, onDragStart: null, onDrop: null, onDurationChange: null, onEmptied: null, onEnded: null, onError: null, onFocus: null, onFormData: null, onHashChange: null, onInput: null, onInvalid: null, onKeyDown: null, onKeyPress: null, onKeyUp: null, onLanguageChange: null, onLoad: null, onLoadedData: null, onLoadedMetadata: null, onLoadEnd: null, onLoadStart: null, onMessage: null, onMessageError: null, onMouseDown: null, onMouseEnter: null, onMouseLeave: null, onMouseMove: null, onMouseOut: null, onMouseOver: null, onMouseUp: null, onOffline: null, onOnline: null, onPageHide: null, onPageShow: null, onPaste: null, onPause: null, onPlay: null, onPlaying: null, onPopState: null, onProgress: null, onRateChange: null, onRejectionHandled: null, onReset: null, onResize: null, onScroll: null, onSecurityPolicyViolation: null, onSeeked: null, onSeeking: null, onSelect: null, onSlotChange: null, onStalled: null, onStorage: null, onSubmit: null, onSuspend: null, onTimeUpdate: null, onToggle: null, onUnhandledRejection: null, onUnload: null, onVolumeChange: null, onWaiting: null, onWheel: null, open: a, optimum: s, pattern: null, ping: u, placeholder: null, playsInline: a, poster: null, preload: null, readOnly: a, referrerPolicy: null, rel: u, required: a, reversed: a, rows: s, rowSpan: s, sandbox: u, scope: null, scoped: a, seamless: a, selected: a, shape: null, size: s, sizes: null, slot: null, span: s, spellCheck: l, src: null, srcDoc: null, srcLang: null, srcSet: d, start: s, step: null, style: null, tabIndex: s, target: null, title: null, translate: null, type: null, typeMustMatch: a, useMap: null, value: l, width: s, wrap: null, align: null, aLink: null, archive: u, axis: null, background: null, bgColor: null, border: s, borderColor: null, bottomMargin: s, cellPadding: null, cellSpacing: null, char: null, charOff: null, classId: null, clear: null, code: null, codeBase: null, codeType: null, color: null, compact: a, declare: a, event: null, face: null, frame: null, frameBorder: null, hSpace: s, leftMargin: s, link: null, longDesc: null, lowSrc: null, marginHeight: s, marginWidth: s, noResize: a, noHref: a, noShade: a, noWrap: a, object: null, profile: null, prompt: null, rev: null, rightMargin: s, rules: null, scheme: null, scrolling: l, standby: null, summary: null, text: null, topMargin: s, valueType: null, version: null, vAlign: null, vLink: null, vSpace: s, allowTransparency: null, autoCorrect: null, autoSave: null, disablePictureInPicture: a, disableRemotePlayback: a, prefix: null, property: null, results: s, security: null, unselectable: null, }, }); }), Ck = te((e, t) => { var r = yk(), n = bk(), o = vk(), a = Ek(), i = wk(), l = Sk(); t.exports = r([o, n, a, i, l]); }), $k = te((e, t) => { var r = gd(), n = X1(), o = K1(), a = "data"; t.exports = u; var i = /^data[-\w.:]+$/i, l = /-[a-z]/g, s = /[A-Z]/g; function u(g, y) { var x = r(y), v = y, C = o; return x in g.normal ? g.property[g.normal[x]] : (x.length > 4 && x.slice(0, 4) === a && i.test(y) && (y.charAt(4) === "-" ? (v = d(y)) : (y = p(y)), (C = n)), new C(v, y)); } m(u, "find"); function d(g) { var y = g.slice(5).replace(l, f); return a + y.charAt(0).toUpperCase() + y.slice(1); } m(d, "datasetToProperty"); function p(g) { var y = g.slice(4); return l.test(y) ? g : ((y = y.replace(s, c)), y.charAt(0) !== "-" && (y = "-" + y), a + y); } m(p, "datasetToAttribute"); function c(g) { return "-" + g.toLowerCase(); } m(c, "kebab"); function f(g) { return g.charAt(1).toUpperCase(); } m(f, "camelcase"); }), Ak = te((e, t) => { t.exports = n; var r = /[#.]/g; function n(o, a) { for ( var i = o || "", l = a || "div", s = {}, u = 0, d, p, c; u < i.length; ) ((r.lastIndex = u), (c = r.exec(i)), (d = i.slice(u, c ? c.index : i.length)), d && (p ? p === "#" ? (s.id = d) : s.className ? s.className.push(d) : (s.className = [d]) : (l = d), (u += d.length)), c && ((p = c[0]), u++)); return { type: "element", tagName: l, properties: s, children: [] }; } m(n, "parse"); }), Dk = te((e) => { ((e.parse = o), (e.stringify = a)); var t = "", r = " ", n = /[ \t\n\r\f]+/g; function o(i) { var l = String(i || t).trim(); return l === t ? [] : l.split(n); } m(o, "parse"); function a(i) { return i.join(r).trim(); } m(a, "stringify"); }), kk = te((e) => { ((e.parse = o), (e.stringify = a)); var t = ",", r = " ", n = ""; function o(i) { for ( var l = [], s = String(i || n), u = s.indexOf(t), d = 0, p = !1, c; !p; ) (u === -1 && ((u = s.length), (p = !0)), (c = s.slice(d, u).trim()), (c || !p) && l.push(c), (d = u + 1), (u = s.indexOf(t, d))); return l; } m(o, "parse"); function a(i, l) { var s = l || {}, u = s.padLeft === !1 ? n : r, d = s.padRight ? r : n; return ( i[i.length - 1] === n && (i = i.concat(n)), i.join(d + t + u).trim() ); } m(a, "stringify"); }), Ok = te((e, t) => { var r = $k(), n = gd(), o = Ak(), a = Dk().parse, i = kk().parse; t.exports = s; var l = {}.hasOwnProperty; function s(x, v, C) { var w = C ? y(C) : null; return E; function E(A, S) { var D = o(A, v), F = Array.prototype.slice.call(arguments, 2), k = D.tagName.toLowerCase(), _; if ( ((D.tagName = w && l.call(w, k) ? w[k] : k), S && u(S, D) && (F.unshift(S), (S = null)), S) ) for (_ in S) $(D.properties, _, S[_]); return ( p(D.children, F), D.tagName === "template" && ((D.content = { type: "root", children: D.children }), (D.children = [])), D ); } function $(A, S, D) { var F, k, _; D == null || D !== D || ((F = r(x, S)), (k = F.property), (_ = D), typeof _ == "string" && (F.spaceSeparated ? (_ = a(_)) : F.commaSeparated ? (_ = i(_)) : F.commaOrSpaceSeparated && (_ = a(i(_).join(" ")))), k === "style" && typeof D != "string" && (_ = g(_)), k === "className" && A.className && (_ = A.className.concat(_)), (A[k] = c(F, k, _))); } } m(s, "factory"); function u(x, v) { return typeof x == "string" || "length" in x || d(v.tagName, x); } m(u, "isChildren"); function d(x, v) { var C = v.type; return x === "input" || !C || typeof C != "string" ? !1 : typeof v.children == "object" && "length" in v.children ? !0 : ((C = C.toLowerCase()), x === "button" ? C !== "menu" && C !== "submit" && C !== "reset" && C !== "button" : "value" in v); } m(d, "isNode"); function p(x, v) { var C, w; if (typeof v == "string" || typeof v == "number") { x.push({ type: "text", value: String(v) }); return; } if (typeof v == "object" && "length" in v) { for (C = -1, w = v.length; ++C < w; ) p(x, v[C]); return; } if (typeof v != "object" || !("type" in v)) throw new Error("Expected node, nodes, or string, got `" + v + "`"); x.push(v); } m(p, "addChild"); function c(x, v, C) { var w, E, $; if (typeof C != "object" || !("length" in C)) return f(x, v, C); for (E = C.length, w = -1, $ = []; ++w < E; ) $[w] = f(x, v, C[w]); return $; } m(c, "parsePrimitives"); function f(x, v, C) { var w = C; return ( x.number || x.positiveNumber ? !isNaN(w) && w !== "" && (w = Number(w)) : (x.boolean || x.overloadedBoolean) && typeof w == "string" && (w === "" || n(C) === n(v)) && (w = !0), w ); } m(f, "parsePrimitive"); function g(x) { var v = [], C; for (C in x) v.push([C, x[C]].join(": ")); return v.join("; "); } m(g, "style"); function y(x) { for (var v = x.length, C = -1, w = {}, E; ++C < v; ) ((E = x[C]), (w[E.toLowerCase()] = E)); return w; } m(y, "createAdjustMap"); }), Fk = te((e, t) => { var r = Ck(), n = Ok(), o = n(r, "div"); ((o.displayName = "html"), (t.exports = o)); }), _k = te((e, t) => { t.exports = Fk(); }), Tk = te((e, t) => { t.exports = { AElig: "Æ", AMP: "&", Aacute: "Á", Acirc: "Â", Agrave: "À", Aring: "Å", Atilde: "Ã", Auml: "Ä", COPY: "©", Ccedil: "Ç", ETH: "Ð", Eacute: "É", Ecirc: "Ê", Egrave: "È", Euml: "Ë", GT: ">", Iacute: "Í", Icirc: "Î", Igrave: "Ì", Iuml: "Ï", LT: "<", Ntilde: "Ñ", Oacute: "Ó", Ocirc: "Ô", Ograve: "Ò", Oslash: "Ø", Otilde: "Õ", Ouml: "Ö", QUOT: '"', REG: "®", THORN: "Þ", Uacute: "Ú", Ucirc: "Û", Ugrave: "Ù", Uuml: "Ü", Yacute: "Ý", aacute: "á", acirc: "â", acute: "´", aelig: "æ", agrave: "à", amp: "&", aring: "å", atilde: "ã", auml: "ä", brvbar: "¦", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", curren: "¤", deg: "°", divide: "÷", eacute: "é", ecirc: "ê", egrave: "è", eth: "ð", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", iacute: "í", icirc: "î", iexcl: "¡", igrave: "ì", iquest: "¿", iuml: "ï", laquo: "«", lt: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", ntilde: "ñ", oacute: "ó", ocirc: "ô", ograve: "ò", ordf: "ª", ordm: "º", oslash: "ø", otilde: "õ", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', raquo: "»", reg: "®", sect: "§", shy: "­", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", thorn: "þ", times: "×", uacute: "ú", ucirc: "û", ugrave: "ù", uml: "¨", uuml: "ü", yacute: "ý", yen: "¥", yuml: "ÿ", }; }), Rk = te((e, t) => { t.exports = { 0: "�", 128: "€", 130: "‚", 131: "ƒ", 132: "„", 133: "…", 134: "†", 135: "‡", 136: "ˆ", 137: "‰", 138: "Š", 139: "‹", 140: "Œ", 142: "Ž", 145: "‘", 146: "’", 147: "“", 148: "”", 149: "•", 150: "–", 151: "—", 152: "˜", 153: "™", 154: "š", 155: "›", 156: "œ", 158: "ž", 159: "Ÿ", }; }), J1 = te((e, t) => { t.exports = r; function r(n) { var o = typeof n == "string" ? n.charCodeAt(0) : n; return o >= 48 && o <= 57; } m(r, "decimal"); }), Pk = te((e, t) => { t.exports = r; function r(n) { var o = typeof n == "string" ? n.charCodeAt(0) : n; return ( (o >= 97 && o <= 102) || (o >= 65 && o <= 70) || (o >= 48 && o <= 57) ); } m(r, "hexadecimal"); }), Ik = te((e, t) => { t.exports = r; function r(n) { var o = typeof n == "string" ? n.charCodeAt(0) : n; return (o >= 97 && o <= 122) || (o >= 65 && o <= 90); } m(r, "alphabetical"); }), Lk = te((e, t) => { var r = Ik(), n = J1(); t.exports = o; function o(a) { return r(a) || n(a); } m(o, "alphanumerical"); }), Bk = te((e, t) => { var r, n = 59; t.exports = o; function o(a) { var i = "&" + a + ";", l; return ( (r = r || document.createElement("i")), (r.innerHTML = i), (l = r.textContent), (l.charCodeAt(l.length - 1) === n && a !== "semi") || l === i ? !1 : l ); } m(o, "decodeEntity"); }), Nk = te((e, t) => { var r = Tk(), n = Rk(), o = J1(), a = Pk(), i = Lk(), l = Bk(); t.exports = J; var s = {}.hasOwnProperty, u = String.fromCharCode, d = Function.prototype, p = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: !1, nonTerminated: !0, }, c = 9, f = 10, g = 12, y = 32, x = 38, v = 59, C = 60, w = 61, E = 35, $ = 88, A = 120, S = 65533, D = "named", F = "hexadecimal", k = "decimal", _ = {}; ((_[F] = 16), (_[k] = 10)); var I = {}; ((I[D] = i), (I[k] = o), (I[F] = a)); var L = 1, j = 2, B = 3, z = 4, V = 5, Y = 6, W = 7, G = {}; ((G[L] = "Named character references must be terminated by a semicolon"), (G[j] = "Numeric character references must be terminated by a semicolon"), (G[B] = "Named character references cannot be empty"), (G[z] = "Numeric character references cannot be empty"), (G[V] = "Named character references must be known"), (G[Y] = "Numeric character references cannot be disallowed"), (G[W] = "Numeric character references cannot be outside the permissible Unicode range")); function J(H, X) { var Z = {}, le, me; X || (X = {}); for (me in p) ((le = X[me]), (Z[me] = le ?? p[me])); return ( (Z.position.indent || Z.position.start) && ((Z.indent = Z.position.indent || []), (Z.position = Z.position.start)), Q(H, Z) ); } m(J, "parseEntities"); function Q(H, X) { var Z = X.additional, le = X.nonTerminated, me = X.text, Re = X.reference, ne = X.warning, de = X.textContext, M = X.referenceContext, U = X.warningContext, fe = X.position, ke = X.indent || [], be = H.length, We = 0, pr = -1, Ce = fe.column || 1, nt = fe.line || 1, $e = "", ht = [], Ve, yt, Rt, Me, bt, Pe, Ae, Pt, da, Fl, Pr, mo, Ir, qt, Ap, ho, pa, It, Ie; for ( typeof Z == "string" && (Z = Z.charCodeAt(0)), ho = yo(), Pt = ne ? T2 : d, We--, be++; ++We < be; ) if ( (bt === f && (Ce = ke[pr] || 1), (bt = H.charCodeAt(We)), bt === x) ) { if ( ((Ae = H.charCodeAt(We + 1)), Ae === c || Ae === f || Ae === g || Ae === y || Ae === x || Ae === C || Ae !== Ae || (Z && Ae === Z)) ) { (($e += u(bt)), Ce++); continue; } for ( Ir = We + 1, mo = Ir, Ie = Ir, Ae === E ? ((Ie = ++mo), (Ae = H.charCodeAt(Ie)), Ae === $ || Ae === A ? ((qt = F), (Ie = ++mo)) : (qt = k)) : (qt = D), Ve = "", Pr = "", Me = "", Ap = I[qt], Ie--; ++Ie < be && ((Ae = H.charCodeAt(Ie)), !!Ap(Ae)); ) ((Me += u(Ae)), qt === D && s.call(r, Me) && ((Ve = Me), (Pr = r[Me]))); ((Rt = H.charCodeAt(Ie) === v), Rt && (Ie++, (yt = qt === D ? l(Me) : !1), yt && ((Ve = Me), (Pr = yt))), (It = 1 + Ie - Ir), (!Rt && !le) || (Me ? qt === D ? (Rt && !Pr ? Pt(V, 1) : (Ve !== Me && ((Ie = mo + Ve.length), (It = 1 + Ie - mo), (Rt = !1)), Rt || ((da = Ve ? L : B), X.attribute ? ((Ae = H.charCodeAt(Ie)), Ae === w ? (Pt(da, It), (Pr = null)) : i(Ae) ? (Pr = null) : Pt(da, It)) : Pt(da, It))), (Pe = Pr)) : (Rt || Pt(j, It), (Pe = parseInt(Me, _[qt])), re(Pe) ? (Pt(W, It), (Pe = u(S))) : Pe in n ? (Pt(Y, It), (Pe = n[Pe])) : ((Fl = ""), ie(Pe) && Pt(Y, It), Pe > 65535 && ((Pe -= 65536), (Fl += u((Pe >>> 10) | 55296)), (Pe = 56320 | (Pe & 1023))), (Pe = Fl + u(Pe)))) : qt !== D && Pt(z, It)), Pe ? (Dp(), (ho = yo()), (We = Ie - 1), (Ce += Ie - Ir + 1), ht.push(Pe), (pa = yo()), pa.offset++, Re && Re.call(M, Pe, { start: ho, end: pa }, H.slice(Ir - 1, Ie)), (ho = pa)) : ((Me = H.slice(Ir - 1, Ie)), ($e += Me), (Ce += Me.length), (We = Ie - 1))); } else (bt === 10 && (nt++, pr++, (Ce = 0)), bt === bt ? (($e += u(bt)), Ce++) : Dp()); return ht.join(""); function yo() { return { line: nt, column: Ce, offset: We + (fe.offset || 0) }; } function T2(kp, Op) { var _l = yo(); ((_l.column += Op), (_l.offset += Op), ne.call(U, G[kp], _l, kp)); } function Dp() { $e && (ht.push($e), me && me.call(de, $e, { start: ho, end: yo() }), ($e = "")); } } m(Q, "parse"); function re(H) { return (H >= 55296 && H <= 57343) || H > 1114111; } m(re, "prohibited"); function ie(H) { return ( (H >= 1 && H <= 8) || H === 11 || (H >= 13 && H <= 31) || (H >= 127 && H <= 159) || (H >= 64976 && H <= 65007) || (H & 65535) === 65535 || (H & 65535) === 65534 ); } m(ie, "disallowed"); }), jk = te((e, t) => { var r = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}, n = (function (o) { var a = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, l = {}, s = { manual: o.Prism && o.Prism.manual, disableWorkerMessageHandler: o.Prism && o.Prism.disableWorkerMessageHandler, util: { encode: m(function w(E) { return E instanceof u ? new u(E.type, w(E.content), E.alias) : Array.isArray(E) ? E.map(w) : E.replace(/&/g, "&") .replace(/ "u") return null; if ("currentScript" in document) return document.currentScript; try { throw new Error(); } catch (A) { var w = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack) || [])[1]; if (w) { var E = document.getElementsByTagName("script"); for (var $ in E) if (E[$].src == w) return E[$]; } return null; } }, "currentScript"), isActive: m(function (w, E, $) { for (var A = "no-" + E; w; ) { var S = w.classList; if (S.contains(E)) return !0; if (S.contains(A)) return !1; w = w.parentElement; } return !!$; }, "isActive"), }, languages: { plain: l, plaintext: l, text: l, txt: l, extend: m(function (w, E) { var $ = s.util.clone(s.languages[w]); for (var A in E) $[A] = E[A]; return $; }, "extend"), insertBefore: m(function (w, E, $, A) { A = A || s.languages; var S = A[w], D = {}; for (var F in S) if (S.hasOwnProperty(F)) { if (F == E) for (var k in $) $.hasOwnProperty(k) && (D[k] = $[k]); $.hasOwnProperty(F) || (D[F] = S[F]); } var _ = A[w]; return ( (A[w] = D), s.languages.DFS(s.languages, function (I, L) { L === _ && I != w && (this[I] = D); }), D ); }, "insertBefore"), DFS: m(function w(E, $, A, S) { S = S || {}; var D = s.util.objId; for (var F in E) if (E.hasOwnProperty(F)) { $.call(E, F, E[F], A || F); var k = E[F], _ = s.util.type(k); _ === "Object" && !S[D(k)] ? ((S[D(k)] = !0), w(k, $, null, S)) : _ === "Array" && !S[D(k)] && ((S[D(k)] = !0), w(k, $, F, S)); } }, "DFS"), }, plugins: {}, highlightAll: m(function (w, E) { s.highlightAllUnder(document, w, E); }, "highlightAll"), highlightAllUnder: m(function (w, E, $) { var A = { callback: $, container: w, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code', }; (s.hooks.run("before-highlightall", A), (A.elements = Array.prototype.slice.apply( A.container.querySelectorAll(A.selector), )), s.hooks.run("before-all-elements-highlight", A)); for (var S = 0, D; (D = A.elements[S++]); ) s.highlightElement(D, E === !0, A.callback); }, "highlightAllUnder"), highlightElement: m(function (w, E, $) { var A = s.util.getLanguage(w), S = s.languages[A]; s.util.setLanguage(w, A); var D = w.parentElement; D && D.nodeName.toLowerCase() === "pre" && s.util.setLanguage(D, A); var F = w.textContent, k = { element: w, language: A, grammar: S, code: F }; function _(L) { ((k.highlightedCode = L), s.hooks.run("before-insert", k), (k.element.innerHTML = k.highlightedCode), s.hooks.run("after-highlight", k), s.hooks.run("complete", k), $ && $.call(k.element)); } if ( (m(_, "insertHighlightedCode"), s.hooks.run("before-sanity-check", k), (D = k.element.parentElement), D && D.nodeName.toLowerCase() === "pre" && !D.hasAttribute("tabindex") && D.setAttribute("tabindex", "0"), !k.code) ) { (s.hooks.run("complete", k), $ && $.call(k.element)); return; } if ((s.hooks.run("before-highlight", k), !k.grammar)) { _(s.util.encode(k.code)); return; } if (E && o.Worker) { var I = new Worker(s.filename); ((I.onmessage = function (L) { _(L.data); }), I.postMessage( JSON.stringify({ language: k.language, code: k.code, immediateClose: !0, }), )); } else _(s.highlight(k.code, k.grammar, k.language)); }, "highlightElement"), highlight: m(function (w, E, $) { var A = { code: w, grammar: E, language: $ }; if ((s.hooks.run("before-tokenize", A), !A.grammar)) throw new Error( 'The language "' + A.language + '" has no grammar.', ); return ( (A.tokens = s.tokenize(A.code, A.grammar)), s.hooks.run("after-tokenize", A), u.stringify(s.util.encode(A.tokens), A.language) ); }, "highlight"), tokenize: m(function (w, E) { var $ = E.rest; if ($) { for (var A in $) E[A] = $[A]; delete E.rest; } var S = new c(); return (f(S, S.head, w), p(w, S, E, S.head, 0), y(S)); }, "tokenize"), hooks: { all: {}, add: m(function (w, E) { var $ = s.hooks.all; (($[w] = $[w] || []), $[w].push(E)); }, "add"), run: m(function (w, E) { var $ = s.hooks.all[w]; if (!(!$ || !$.length)) for (var A = 0, S; (S = $[A++]); ) S(E); }, "run"), }, Token: u, }; o.Prism = s; function u(w, E, $, A) { ((this.type = w), (this.content = E), (this.alias = $), (this.length = (A || "").length | 0)); } (m(u, "Token"), (u.stringify = m(function w(E, $) { if (typeof E == "string") return E; if (Array.isArray(E)) { var A = ""; return ( E.forEach(function (_) { A += w(_, $); }), A ); } var S = { type: E.type, content: w(E.content, $), tag: "span", classes: ["token", E.type], attributes: {}, language: $, }, D = E.alias; (D && (Array.isArray(D) ? Array.prototype.push.apply(S.classes, D) : S.classes.push(D)), s.hooks.run("wrap", S)); var F = ""; for (var k in S.attributes) F += " " + k + '="' + (S.attributes[k] || "").replace(/"/g, """) + '"'; return ( "<" + S.tag + ' class="' + S.classes.join(" ") + '"' + F + ">" + S.content + "" ); }, "stringify"))); function d(w, E, $, A) { w.lastIndex = E; var S = w.exec($); if (S && A && S[1]) { var D = S[1].length; ((S.index += D), (S[0] = S[0].slice(D))); } return S; } m(d, "matchPattern"); function p(w, E, $, A, S, D) { for (var F in $) if (!(!$.hasOwnProperty(F) || !$[F])) { var k = $[F]; k = Array.isArray(k) ? k : [k]; for (var _ = 0; _ < k.length; ++_) { if (D && D.cause == F + "," + _) return; var I = k[_], L = I.inside, j = !!I.lookbehind, B = !!I.greedy, z = I.alias; if (B && !I.pattern.global) { var V = I.pattern.toString().match(/[imsuy]*$/)[0]; I.pattern = RegExp(I.pattern.source, V + "g"); } for ( var Y = I.pattern || I, W = A.next, G = S; W !== E.tail && !(D && G >= D.reach); G += W.value.length, W = W.next ) { var J = W.value; if (E.length > w.length) return; if (!(J instanceof u)) { var Q = 1, re; if (B) { if (((re = d(Y, G, w, j)), !re || re.index >= w.length)) break; var Z = re.index, ie = re.index + re[0].length, H = G; for (H += W.value.length; Z >= H; ) ((W = W.next), (H += W.value.length)); if ( ((H -= W.value.length), (G = H), W.value instanceof u) ) continue; for ( var X = W; X !== E.tail && (H < ie || typeof X.value == "string"); X = X.next ) (Q++, (H += X.value.length)); (Q--, (J = w.slice(G, H)), (re.index -= G)); } else if (((re = d(Y, 0, J, j)), !re)) continue; var Z = re.index, le = re[0], me = J.slice(0, Z), Re = J.slice(Z + le.length), ne = G + J.length; D && ne > D.reach && (D.reach = ne); var de = W.prev; (me && ((de = f(E, de, me)), (G += me.length)), g(E, de, Q)); var M = new u(F, L ? s.tokenize(le, L) : le, z, le); if (((W = f(E, de, M)), Re && f(E, W, Re), Q > 1)) { var U = { cause: F + "," + _, reach: ne }; (p(w, E, $, W.prev, G, U), D && U.reach > D.reach && (D.reach = U.reach)); } } } } } } m(p, "matchGrammar"); function c() { var w = { value: null, prev: null, next: null }, E = { value: null, prev: w, next: null }; ((w.next = E), (this.head = w), (this.tail = E), (this.length = 0)); } m(c, "LinkedList"); function f(w, E, $) { var A = E.next, S = { value: $, prev: E, next: A }; return ((E.next = S), (A.prev = S), w.length++, S); } m(f, "addAfter"); function g(w, E, $) { for (var A = E.next, S = 0; S < $ && A !== w.tail; S++) A = A.next; ((E.next = A), (A.prev = E), (w.length -= S)); } m(g, "removeRange"); function y(w) { for (var E = [], $ = w.head.next; $ !== w.tail; ) (E.push($.value), ($ = $.next)); return E; } if ((m(y, "toArray"), !o.document)) return ( o.addEventListener && (s.disableWorkerMessageHandler || o.addEventListener( "message", function (w) { var E = JSON.parse(w.data), $ = E.language, A = E.code, S = E.immediateClose; (o.postMessage(s.highlight(A, s.languages[$], $)), S && o.close()); }, !1, )), s ); var x = s.util.currentScript(); x && ((s.filename = x.src), x.hasAttribute("data-manual") && (s.manual = !0)); function v() { s.manual || s.highlightAll(); } if ((m(v, "highlightAutomaticallyCallback"), !s.manual)) { var C = document.readyState; C === "loading" || (C === "interactive" && x && x.defer) ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16); } return s; })(r); (typeof t < "u" && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n)); }), Q1 = te((e, t) => { ((t.exports = r), (r.displayName = "markup"), (r.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"])); function r(n) { ((n.languages.markup = { comment: { pattern: //, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null, }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/, }, }, cdata: { pattern: //i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ }, }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/], }, }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ }, }, }, }, entity: [ { pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i, ], }), (n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity), (n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup), n.hooks.add("wrap", function (o) { o.type === "entity" && (o.attributes.title = o.content.value.replace(/&/, "&")); }), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: m(function (o, a) { var i = {}; ((i["language-" + a] = { pattern: /(^$)/i, lookbehind: !0, inside: n.languages[a], }), (i.cdata = /^$/i)); var l = { "included-cdata": { pattern: //i, inside: i, }, }; l["language-" + a] = { pattern: /[\s\S]+/, inside: n.languages[a] }; var s = {}; ((s[o] = { pattern: RegExp( /(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace( /__/g, function () { return o; }, ), "i", ), lookbehind: !0, greedy: !0, inside: l, }), n.languages.insertBefore("markup", "cdata", s)); }, "addInlined"), }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: m(function (o, a) { n.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp( /(^|["'\s])/.source + "(?:" + o + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i", ), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [a, "language-" + a], inside: n.languages[a], }, punctuation: [ { pattern: /^=/, alias: "attr-equals" }, /"|'/, ], }, }, }, }); }, "value"), }), (n.languages.html = n.languages.markup), (n.languages.mathml = n.languages.markup), (n.languages.svg = n.languages.markup), (n.languages.xml = n.languages.extend("markup", {})), (n.languages.ssml = n.languages.xml), (n.languages.atom = n.languages.xml), (n.languages.rss = n.languages.xml)); } m(r, "markup"); }), ev = te((e, t) => { ((t.exports = r), (r.displayName = "css"), (r.aliases = [])); function r(n) { (function (o) { var a = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; ((o.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector", }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0, }, }, }, url: { pattern: RegExp( "\\burl\\((?:" + a.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i", ), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + a.source + "$"), alias: "url" }, }, }, selector: { pattern: RegExp( `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + a.source + ")*(?=\\s*\\{)", ), lookbehind: !0, }, string: { pattern: a, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0, }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0, }, punctuation: /[(){};:,]/, }), (o.languages.css.atrule.inside.rest = o.languages.css)); var i = o.languages.markup; i && (i.tag.addInlined("style", "css"), i.tag.addAttribute("style", "css")); })(n); } m(r, "css"); }), Mk = te((e, t) => { ((t.exports = r), (r.displayName = "clike"), (r.aliases = [])); function r(n) { n.languages.clike = { comment: [ { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0, }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }, ], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0, }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ }, }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/, }; } m(r, "clike"); }), zk = te((e, t) => { ((t.exports = r), (r.displayName = "javascript"), (r.aliases = ["js"])); function r(n) { ((n.languages.javascript = n.languages.extend("clike", { "class-name": [ n.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0, }, ], keyword: [ { pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0, }, ], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp( /(^|[^\w$])/.source + "(?:" + (/NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/ .source) + ")" + /(?![\w$])/.source, ), lookbehind: !0, }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/, })), (n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/), n.languages.insertBefore("javascript", "keyword", { regex: { pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: n.languages.regex, }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/, }, }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function", }, parameter: [ { pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: n.languages.javascript, }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: n.languages.javascript, }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: n.languages.javascript, }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: n.languages.javascript, }, ], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/, }), n.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation", }, rest: n.languages.javascript, }, }, string: /[\s\S]+/, }, }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property", }, }), n.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property", }, }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute( /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/ .source, "javascript", )), (n.languages.js = n.languages.javascript)); } m(r, "javascript"); }), Hk = te((e, t) => { var r = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, n = S(); r.Prism = { manual: !0, disableWorkerMessageHandler: !0 }; var o = _k(), a = Nk(), i = jk(), l = Q1(), s = ev(), u = Mk(), d = zk(); n(); var p = {}.hasOwnProperty; function c() {} (m(c, "Refractor"), (c.prototype = i)); var f = new c(); ((t.exports = f), (f.highlight = x), (f.register = g), (f.alias = y), (f.registered = v), (f.listLanguages = C), g(l), g(s), g(u), g(d), (f.util.encode = $), (f.Token.stringify = w)); function g(D) { if (typeof D != "function" || !D.displayName) throw new Error("Expected `function` for `grammar`, got `" + D + "`"); f.languages[D.displayName] === void 0 && D(f); } m(g, "register"); function y(D, F) { var k = f.languages, _ = D, I, L, j, B; F && ((_ = {}), (_[D] = F)); for (I in _) for ( L = _[I], L = typeof L == "string" ? [L] : L, j = L.length, B = -1; ++B < j; ) k[L[B]] = k[I]; } m(y, "alias"); function x(D, F) { var k = i.highlight, _; if (typeof D != "string") throw new Error("Expected `string` for `value`, got `" + D + "`"); if (f.util.type(F) === "Object") ((_ = F), (F = null)); else { if (typeof F != "string") throw new Error("Expected `string` for `name`, got `" + F + "`"); if (p.call(f.languages, F)) _ = f.languages[F]; else throw new Error("Unknown language: `" + F + "` is not registered"); } return k.call(this, D, _, F); } m(x, "highlight"); function v(D) { if (typeof D != "string") throw new Error("Expected `string` for `language`, got `" + D + "`"); return p.call(f.languages, D); } m(v, "registered"); function C() { var D = f.languages, F = [], k; for (k in D) p.call(D, k) && typeof D[k] == "object" && F.push(k); return F; } m(C, "listLanguages"); function w(D, F, k) { var _; return typeof D == "string" ? { type: "text", value: D } : f.util.type(D) === "Array" ? E(D, F) : ((_ = { type: D.type, content: f.Token.stringify(D.content, F, k), tag: "span", classes: ["token", D.type], attributes: {}, language: F, parent: k, }), D.alias && (_.classes = _.classes.concat(D.alias)), f.hooks.run("wrap", _), o(_.tag + "." + _.classes.join("."), A(_.attributes), _.content)); } m(w, "stringify"); function E(D, F) { for (var k = [], _ = D.length, I = -1, L; ++I < _; ) ((L = D[I]), L !== "" && L !== null && L !== void 0 && k.push(L)); for (I = -1, _ = k.length; ++I < _; ) ((L = k[I]), (k[I] = f.Token.stringify(L, F, k))); return k; } m(E, "stringifyAll"); function $(D) { return D; } m($, "encode"); function A(D) { var F; for (F in D) D[F] = a(D[F]); return D; } m(A, "attributes"); function S() { var D = "Prism" in r, F = D ? r.Prism : void 0; return k; function k() { (D ? (r.Prism = F) : delete r.Prism, (D = void 0), (F = void 0)); } } m(S, "capture"); }), xa, Ea, za, Uk = N(() => { (mk(), (xa = je(Hk())), (Ea = V1(xa.default, {})), (Ea.registerLanguage = function (e, t) { return xa.default.register(t); }), (Ea.alias = function (e, t) { return xa.default.alias(e, t); }), (za = Ea)); }), Wk = N(() => { L1(); }), Vk = te((e, t) => { ((t.exports = r), (r.displayName = "bash"), (r.aliases = ["shell"])); function r(n) { (function (o) { var a = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", i = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null, }, l = { bash: i, environment: { pattern: RegExp("\\$" + a), alias: "constant" }, variable: [ { pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [ { pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/, ], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/, }, }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ }, }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + a), lookbehind: !0, alias: "constant", }, }, }, /\$(?:\w+|[#?*!@$])/, ], entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/, }; ((o.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [ { pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function", }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }, ], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0, }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + a), lookbehind: !0, alias: "constant", }, }, alias: "variable", lookbehind: !0, }, string: [ { pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: l, }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: i }, }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: l, }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: l.entity }, }, ], environment: { pattern: RegExp("\\$?" + a), alias: "constant" }, variable: l.variable, function: { pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, lookbehind: !0, }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0, }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name", }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0, }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" }, }, }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0, }, }), (i.inside = o.languages.bash)); for ( var s = [ "comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number", ], u = l.variable[1].inside, d = 0; d < s.length; d++ ) u[s[d]] = o.languages.bash[s[d]]; o.languages.shell = o.languages.bash; })(n); } m(r, "bash"); }), Wf, tv, qk = N(() => { ((Wf = je(Vk())), (tv = Wf.default)); }), Vf, rv, Gk = N(() => { ((Vf = je(ev())), (rv = Vf.default)); }), Yk = te((e, t) => { ((t.exports = r), (r.displayName = "graphql"), (r.aliases = [])); function r(n) { ((n.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: n.languages.markdown, }, }, }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0, }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0, }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0, }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function", }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function", }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function", }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/, }), n.hooks.add( "after-tokenize", m(function (o) { if (o.language !== "graphql") return; var a = o.tokens.filter(function (C) { return ( typeof C != "string" && C.type !== "comment" && C.type !== "scalar" ); }), i = 0; function l(C) { return a[i + C]; } m(l, "getToken"); function s(C, w) { w = w || 0; for (var E = 0; E < C.length; E++) { var $ = l(E + w); if (!$ || $.type !== C[E]) return !1; } return !0; } m(s, "isTokenType"); function u(C, w) { for (var E = 1, $ = i; $ < a.length; $++) { var A = a[$], S = A.content; if (A.type === "punctuation" && typeof S == "string") { if (C.test(S)) E++; else if (w.test(S) && (E--, E === 0)) return $; } } return -1; } m(u, "findClosingBracket"); function d(C, w) { var E = C.alias; (E ? Array.isArray(E) || (C.alias = E = [E]) : (C.alias = E = []), E.push(w)); } for (m(d, "addAlias"); i < a.length; ) { var p = a[i++]; if (p.type === "keyword" && p.content === "mutation") { var c = []; if ( s(["definition-mutation", "punctuation"]) && l(1).content === "(" ) { i += 2; var f = u(/^\($/, /^\)$/); if (f === -1) continue; for (; i < f; i++) { var g = l(0); g.type === "variable" && (d(g, "variable-input"), c.push(g.content)); } i = f + 1; } if ( s(["punctuation", "property-query"]) && l(0).content === "{" && (i++, d(l(0), "property-mutation"), c.length > 0) ) { var y = u(/^\{$/, /^\}$/); if (y === -1) continue; for (var x = i; x < y; x++) { var v = a[x]; v.type === "variable" && c.indexOf(v.content) >= 0 && d(v, "variable-input"); } } } } }, "afterTokenizeGraphql"), )); } m(r, "graphql"); }), qf, nv, Kk = N(() => { ((qf = je(Yk())), (nv = qf.default)); }), Xk = te((e, t) => { ((t.exports = r), (r.displayName = "jsExtras"), (r.aliases = [])); function r(n) { (function (o) { (o.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp( "(\\.\\s*)" + o.languages.javascript["function-variable"].pattern.source, ), lookbehind: !0, alias: [ "function-variable", "method", "function", "property-access", ], }, }), o.languages.insertBefore("javascript", "function", { method: { pattern: RegExp( "(\\.\\s*)" + o.languages.javascript.function.source, ), lookbehind: !0, alias: ["function", "property-access"], }, }), o.languages.insertBefore("javascript", "constant", { "known-class-name": [ { pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name", }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }, ], })); function a(p, c) { return RegExp( p.replace(//g, function () { return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/ .source; }), c, ); } (m(a, "withId"), o.languages.insertBefore("javascript", "keyword", { imports: { pattern: a( /(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/ .source, ), lookbehind: !0, inside: o.languages.javascript, }, exports: { pattern: a( /(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/ .source, ), lookbehind: !0, inside: o.languages.javascript, }, }), o.languages.javascript.keyword.unshift( { pattern: /\b(?:as|default|export|from|import)\b/, alias: "module", }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow", }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }, ), o.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" }, }), o.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: a(/(\.\s*)#?/.source), lookbehind: !0, }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0, }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable", }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" }, })); for ( var i = [ "function", "function-variable", "method", "method-variable", "property-access", ], l = 0; l < i.length; l++ ) { var s = i[l], u = o.languages.javascript[s]; o.util.type(u) === "RegExp" && (u = o.languages.javascript[s] = { pattern: u }); var d = u.inside || {}; ((u.inside = d), (d["maybe-class-name"] = /^[A-Z][\s\S]*/)); } })(n); } m(r, "jsExtras"); }), Gf, ov, Zk = N(() => { ((Gf = je(Xk())), (ov = Gf.default)); }), Jk = te((e, t) => { ((t.exports = r), (r.displayName = "json"), (r.aliases = ["webmanifest"])); function r(n) { ((n.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0, }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0, }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" }, }), (n.languages.webmanifest = n.languages.json)); } m(r, "json"); }), Yf, av, Qk = N(() => { ((Yf = je(Jk())), (av = Yf.default)); }), iv = te((e, t) => { ((t.exports = r), (r.displayName = "jsx"), (r.aliases = [])); function r(n) { (function (o) { var a = o.util.clone(o.languages.javascript), i = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, s = /(?:\{*\.{3}(?:[^{}]|)*\})/.source; function u(c, f) { return ( (c = c .replace(//g, function () { return i; }) .replace(//g, function () { return l; }) .replace(//g, function () { return s; })), RegExp(c, f) ); } (m(u, "re"), (s = u(s).source), (o.languages.jsx = o.languages.extend("markup", a)), (o.languages.jsx.tag.pattern = u( /<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/ .source, )), (o.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/), (o.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/), (o.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/), (o.languages.jsx.tag.inside.comment = a.comment), o.languages.insertBefore( "inside", "attr-name", { spread: { pattern: u(//.source), inside: o.languages.jsx, }, }, o.languages.jsx.tag, ), o.languages.insertBefore( "inside", "special-attr", { script: { pattern: u(/=/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation", }, rest: o.languages.jsx, }, }, }, o.languages.jsx.tag, )); var d = m(function (c) { return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(d).join("") : ""; }, "stringifyToken"), p = m(function (c) { for (var f = [], g = 0; g < c.length; g++) { var y = c[g], x = !1; if ( (typeof y != "string" && (y.type === "tag" && y.content[0] && y.content[0].type === "tag" ? y.content[0].content[0].content === " 0 && f[f.length - 1].tagName === d(y.content[0].content[1]) && f.pop() : y.content[y.content.length - 1].content === "/>" || f.push({ tagName: d(y.content[0].content[1]), openedBraces: 0, }) : f.length > 0 && y.type === "punctuation" && y.content === "{" ? f[f.length - 1].openedBraces++ : f.length > 0 && f[f.length - 1].openedBraces > 0 && y.type === "punctuation" && y.content === "}" ? f[f.length - 1].openedBraces-- : (x = !0)), (x || typeof y == "string") && f.length > 0 && f[f.length - 1].openedBraces === 0) ) { var v = d(y); (g < c.length - 1 && (typeof c[g + 1] == "string" || c[g + 1].type === "plain-text") && ((v += d(c[g + 1])), c.splice(g + 1, 1)), g > 0 && (typeof c[g - 1] == "string" || c[g - 1].type === "plain-text") && ((v = d(c[g - 1]) + v), c.splice(g - 1, 1), g--), (c[g] = new o.Token("plain-text", v, null, v))); } y.content && typeof y.content != "string" && p(y.content); } }, "walkTokens"); o.hooks.add("after-tokenize", function (c) { (c.language !== "jsx" && c.language !== "tsx") || p(c.tokens); }); })(n); } m(r, "jsx"); }), Kf, lv, eO = N(() => { ((Kf = je(iv())), (lv = Kf.default)); }), tO = te((e, t) => { ((t.exports = r), (r.displayName = "markdown"), (r.aliases = ["md"])); function r(n) { (function (o) { var a = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source; function i(g) { return ( (g = g.replace(//g, function () { return a; })), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")") ); } m(i, "createInline"); var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/ .source, s = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace( /__/g, function () { return l; }, ), u = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/ .source; ((o.languages.markdown = o.languages.extend("markup", {})), o.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: o.languages.yaml, }, }, }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + s + u + "(?:" + s + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + s + u + ")(?:" + s + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: o.languages.markdown, }, punctuation: /\|/, }, }, "table-line": { pattern: RegExp("^(" + s + ")" + u + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ }, }, "table-header-row": { pattern: RegExp("^" + s + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: o.languages.markdown, }, punctuation: /\|/, }, }, }, }, code: [ { pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword", }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0, }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/, }, }, ], title: [ { pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ }, }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ }, }, ], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation", }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation", }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/, }, alias: "url", }, bold: { pattern: i( /\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/ .source, ), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {}, }, punctuation: /\*\*|__/, }, }, italic: { pattern: i( /\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/ .source, ), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {}, }, punctuation: /[*_]/, }, }, strike: { pattern: i(/(~~?)(?:(?!~))+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {}, }, punctuation: /~~?/, }, }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"], }, url: { pattern: i( /!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/ .source, ), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {}, }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0, }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0, }, }, }, }), ["url", "bold", "italic", "strike"].forEach(function (g) { ["url", "bold", "italic", "strike", "code-snippet"].forEach( function (y) { g !== y && (o.languages.markdown[g].inside.content.inside[y] = o.languages.markdown[y]); }, ); }), o.hooks.add("after-tokenize", function (g) { if (g.language !== "markdown" && g.language !== "md") return; function y(x) { if (!(!x || typeof x == "string")) for (var v = 0, C = x.length; v < C; v++) { var w = x[v]; if (w.type !== "code") { y(w.content); continue; } var E = w.content[1], $ = w.content[3]; if ( E && $ && E.type === "code-language" && $.type === "code-block" && typeof E.content == "string" ) { var A = E.content .replace(/\b#/g, "sharp") .replace(/\b\+\+/g, "pp"); A = (/[a-z][\w-]*/i.exec(A) || [""])[0].toLowerCase(); var S = "language-" + A; $.alias ? typeof $.alias == "string" ? ($.alias = [$.alias, S]) : $.alias.push(S) : ($.alias = [S]); } } } (m(y, "walkTokens"), y(g.tokens)); }), o.hooks.add("wrap", function (g) { if (g.type === "code-block") { for (var y = "", x = 0, v = g.classes.length; x < v; x++) { var C = g.classes[x], w = /language-(.+)/.exec(C); if (w) { y = w[1]; break; } } var E = o.languages[y]; if (E) g.content = o.highlight(f(g.content.value), E, y); else if (y && y !== "none" && o.plugins.autoloader) { var $ = "md-" + new Date().valueOf() + "-" + Math.floor(Math.random() * 1e16); ((g.attributes.id = $), o.plugins.autoloader.loadLanguages(y, function () { var A = document.getElementById($); A && (A.innerHTML = o.highlight( A.textContent, o.languages[y], y, )); })); } } })); var d = RegExp(o.languages.markup.tag.pattern.source, "gi"), p = { amp: "&", lt: "<", gt: ">", quot: '"' }, c = String.fromCodePoint || String.fromCharCode; function f(g) { var y = g.replace(d, ""); return ( (y = y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function (x, v) { if (((v = v.toLowerCase()), v[0] === "#")) { var C; return ( v[1] === "x" ? (C = parseInt(v.slice(2), 16)) : (C = Number(v.slice(1))), c(C) ); } else { var w = p[v]; return w || x; } })), y ); } (m(f, "textContent"), (o.languages.md = o.languages.markdown)); })(n); } m(r, "markdown"); }), Xf, sv, rO = N(() => { ((Xf = je(tO())), (sv = Xf.default)); }), Zf, uv, nO = N(() => { ((Zf = je(Q1())), (uv = Zf.default)); }), cv = te((e, t) => { ((t.exports = r), (r.displayName = "typescript"), (r.aliases = ["ts"])); function r(n) { (function (o) { ((o.languages.typescript = o.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null, }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/, })), o.languages.typescript.keyword.push( /\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/, ), delete o.languages.typescript.parameter, delete o.languages.typescript["literal-property"]); var a = o.languages.extend("typescript", {}); (delete a["class-name"], (o.languages.typescript["class-name"].inside = a), o.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/, }, }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: a, }, }, }, }), (o.languages.ts = o.languages.typescript)); })(n); } m(r, "typescript"); }), oO = te((e, t) => { var r = iv(), n = cv(); ((t.exports = o), (o.displayName = "tsx"), (o.aliases = [])); function o(a) { (a.register(r), a.register(n), (function (i) { var l = i.util.clone(i.languages.typescript); ((i.languages.tsx = i.languages.extend("jsx", l)), delete i.languages.tsx.parameter, delete i.languages.tsx["literal-property"]); var s = i.languages.tsx.tag; ((s.pattern = RegExp( /(^|[^\w$]|(?=<\/))/.source + "(?:" + s.pattern.source + ")", s.pattern.flags, )), (s.lookbehind = !0)); })(a)); } m(o, "tsx"); }), Jf, dv, aO = N(() => { ((Jf = je(oO())), (dv = Jf.default)); }), Qf, pv, iO = N(() => { ((Qf = je(cv())), (pv = Qf.default)); }), lO = te((e, t) => { ((t.exports = r), (r.displayName = "yaml"), (r.aliases = ["yml"])); function r(n) { (function (o) { var a = /[*&][^\s[\]{},]+/, i = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + i.source + "(?:[ ]+" + a.source + ")?|" + a.source + "(?:[ ]+" + i.source + ")?)", s = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace( //g, function () { return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/ .source; }, ), u = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source; function d(p, c) { c = (c || "").replace(/m/g, "") + "m"; var f = /([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source .replace(/<>/g, function () { return l; }) .replace(/<>/g, function () { return p; }); return RegExp(f, c); } (m(d, "createValuePattern"), (o.languages.yaml = { scalar: { pattern: RegExp( /([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace( /<>/g, function () { return l; }, ), ), lookbehind: !0, alias: "string", }, comment: /#.*/, key: { pattern: RegExp( /((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source .replace(/<>/g, function () { return l; }) .replace(/<>/g, function () { return "(?:" + s + "|" + u + ")"; }), ), lookbehind: !0, greedy: !0, alias: "atrule", }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important", }, datetime: { pattern: d( /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/ .source, ), lookbehind: !0, alias: "number", }, boolean: { pattern: d(/false|true/.source, "i"), lookbehind: !0, alias: "important", }, null: { pattern: d(/null|~/.source, "i"), lookbehind: !0, alias: "important", }, string: { pattern: d(u), lookbehind: !0, greedy: !0 }, number: { pattern: d( /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/ .source, "i", ), lookbehind: !0, }, tag: i, important: a, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./, }), (o.languages.yml = o.languages.yaml)); })(n); } m(r, "yaml"); }), eg, fv, sO = N(() => { ((eg = je(lO())), (fv = eg.default)); }), tg, Yl, al, gv = N(() => { ((tg = T.div(({ theme: e }) => ({ position: "absolute", bottom: 0, right: 0, maxWidth: "100%", display: "flex", background: e.background.content, zIndex: 1, }))), (Yl = T.button( ({ theme: e }) => ({ margin: 0, border: "0 none", padding: "4px 10px", cursor: "pointer", display: "flex", alignItems: "center", color: e.color.defaultText, background: e.background.content, fontSize: 12, lineHeight: "16px", fontFamily: e.typography.fonts.base, fontWeight: e.typography.weight.bold, borderTop: `1px solid ${e.appBorderColor}`, borderLeft: `1px solid ${e.appBorderColor}`, marginLeft: -1, borderRadius: "4px 0 0 0", "&:not(:last-child)": { borderRight: `1px solid ${e.appBorderColor}`, }, "& + *": { borderLeft: `1px solid ${e.appBorderColor}`, borderRadius: 0, }, "&:focus": { boxShadow: `${e.color.secondary} 0 -3px 0 0 inset`, outline: "0 none", "@media (forced-colors: active)": { outline: "1px solid highlight", }, }, }), ({ disabled: e }) => e && { cursor: "not-allowed", opacity: 0.5 }, )), (Yl.displayName = "ActionButton"), (al = m( ({ actionItems: e, ...t }) => h.createElement( tg, { ...t }, e.map(({ title: r, className: n, onClick: o, disabled: a }, i) => h.createElement( Yl, { key: i, className: n, onClick: o, disabled: !!a }, r, ), ), ), "ActionBar", ))); }); function mv(e, t) { typeof e == "function" ? e(t) : e != null && (e.current = t); } function hd(...e) { return (t) => e.forEach((r) => mv(r, t)); } function xr(...e) { return b.useCallback(hd(...e), e); } var yd = N(() => { (m(mv, "setRef"), m(hd, "composeRefs"), m(xr, "useComposedRefs")); }); function rg(e) { return b.isValidElement(e) && e.type === hv; } function ng(e, t) { let r = { ...t }; for (let n in t) { let o = e[n], a = t[n]; /^on[A-Z]/.test(n) ? o && a ? (r[n] = (...i) => { (a(...i), o(...i)); }) : o && (r[n] = o) : n === "style" ? (r[n] = { ...o, ...a }) : n === "className" && (r[n] = [o, a].filter(Boolean).join(" ")); } return { ...e, ...r }; } function og(e) { let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning; return r ? e.ref : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), (r = t && "isReactWarning" in t && t.isReactWarning), r ? e.props.ref : e.props.ref || e.ref); } var bu, wa, hv, uO = N(() => { (yd(), (bu = b.forwardRef((e, t) => { let { children: r, ...n } = e, o = b.Children.toArray(r), a = o.find(rg); if (a) { let i = a.props.children, l = o.map((s) => s === a ? b.Children.count(i) > 1 ? b.Children.only(null) : b.isValidElement(i) ? i.props.children : null : s, ); return q.jsx(wa, { ...n, ref: t, children: b.isValidElement(i) ? b.cloneElement(i, void 0, l) : null, }); } return q.jsx(wa, { ...n, ref: t, children: r }); })), (bu.displayName = "Slot"), (wa = b.forwardRef((e, t) => { let { children: r, ...n } = e; if (b.isValidElement(r)) { let o = og(r); return b.cloneElement(r, { ...ng(n, r.props), ref: t ? hd(t, o) : o, }); } return b.Children.count(r) > 1 ? b.Children.only(null) : null; })), (wa.displayName = "SlotClone"), (hv = m( ({ children: e }) => q.jsx(q.Fragment, { children: e }), "Slottable", )), m(rg, "isSlottable"), m(ng, "mergeProps"), m(og, "getElementRef")); }), ag, Sn, cO = N(() => { (uO(), (ag = [ "a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul", ]), (Sn = ag.reduce((e, t) => { let r = b.forwardRef((n, o) => { let { asChild: a, ...i } = n, l = a ? bu : t; return ( typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), q.jsx(l, { ...i, ref: o }) ); }); return ((r.displayName = `Primitive.${t}`), { ...e, [t]: r }); }, {}))); }), bi, yv = N(() => { bi = globalThis?.document ? b.useLayoutEffect : () => {}; }); function bv(e, t) { return b.useReducer((r, n) => t[r][n] ?? r, e); } function ig(e) { let [t, r] = b.useState(), n = b.useRef({}), o = b.useRef(e), a = b.useRef("none"), i = e ? "mounted" : "unmounted", [l, s] = bv(i, { mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" }, unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" }, unmounted: { MOUNT: "mounted" }, }); return ( b.useEffect(() => { let u = _o(n.current); a.current = l === "mounted" ? u : "none"; }, [l]), bi(() => { let u = n.current, d = o.current; if (d !== e) { let p = a.current, c = _o(u); (e ? s("MOUNT") : c === "none" || u?.display === "none" ? s("UNMOUNT") : s(d && p !== c ? "ANIMATION_OUT" : "UNMOUNT"), (o.current = e)); } }, [e, s]), bi(() => { if (t) { let u = m((p) => { let c = _o(n.current).includes(p.animationName); p.target === t && c && Qi.flushSync(() => s("ANIMATION_END")); }, "handleAnimationEnd"), d = m((p) => { p.target === t && (a.current = _o(n.current)); }, "handleAnimationStart"); return ( t.addEventListener("animationstart", d), t.addEventListener("animationcancel", u), t.addEventListener("animationend", u), () => { (t.removeEventListener("animationstart", d), t.removeEventListener("animationcancel", u), t.removeEventListener("animationend", u)); } ); } else s("ANIMATION_END"); }, [t, s]), { isPresent: ["mounted", "unmountSuspended"].includes(l), ref: b.useCallback((u) => { (u && (n.current = getComputedStyle(u)), r(u)); }, []), } ); } function _o(e) { return e?.animationName || "none"; } function lg(e) { let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning; return r ? e.ref : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), (r = t && "isReactWarning" in t && t.isReactWarning), r ? e.props.ref : e.props.ref || e.ref); } var Dn, dO = N(() => { "use client"; (yd(), yv(), m(bv, "useStateMachine"), (Dn = m((e) => { let { present: t, children: r } = e, n = ig(t), o = typeof r == "function" ? r({ present: n.isPresent }) : b.Children.only(r), a = xr(n.ref, lg(o)); return typeof r == "function" || n.isPresent ? b.cloneElement(o, { ref: a }) : null; }, "Presence")), (Dn.displayName = "Presence"), m(ig, "usePresence"), m(_o, "getAnimationName"), m(lg, "getElementRef")); }); function vv(e, t = []) { let r = []; function n(a, i) { let l = b.createContext(i), s = r.length; r = [...r, i]; function u(p) { let { scope: c, children: f, ...g } = p, y = c?.[e][s] || l, x = b.useMemo(() => g, Object.values(g)); return q.jsx(y.Provider, { value: x, children: f }); } m(u, "Provider"); function d(p, c) { let f = c?.[e][s] || l, g = b.useContext(f); if (g) return g; if (i !== void 0) return i; throw new Error(`\`${p}\` must be used within \`${a}\``); } return (m(d, "useContext2"), (u.displayName = a + "Provider"), [u, d]); } m(n, "createContext3"); let o = m(() => { let a = r.map((i) => b.createContext(i)); return m(function (i) { let l = i?.[e] || a; return b.useMemo(() => ({ [`__scope${e}`]: { ...i, [e]: l } }), [i, l]); }, "useScope"); }, "createScope"); return ((o.scopeName = e), [n, xv(o, ...t)]); } function xv(...e) { let t = e[0]; if (e.length === 1) return t; let r = m(() => { let n = e.map((o) => ({ useScope: o(), scopeName: o.scopeName })); return m(function (o) { let a = n.reduce((i, { useScope: l, scopeName: s }) => { let u = l(o)[`__scope${s}`]; return { ...i, ...u }; }, {}); return b.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]); }, "useComposedScopes"); }, "createScope"); return ((r.scopeName = t.scopeName), r); } var pO = N(() => { (m(vv, "createContextScope"), m(xv, "composeContextScopes")); }); function wr(e) { let t = b.useRef(e); return ( b.useEffect(() => { t.current = e; }), b.useMemo( () => (...r) => t.current?.(...r), [], ) ); } var fO = N(() => { m(wr, "useCallbackRef"); }); function Ev(e) { let t = b.useContext(wv); return e || t || "ltr"; } var wv, gO = N(() => { ((wv = b.createContext(void 0)), m(Ev, "useDirection")); }); function Sv(e, [t, r]) { return Math.min(r, Math.max(t, e)); } var mO = N(() => { m(Sv, "clamp"); }); function mr(e, t, { checkForDefaultPrevented: r = !0 } = {}) { return m(function (n) { if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); }, "handleEvent"); } var hO = N(() => { m(mr, "composeEventHandlers"); }); function sg(e, t) { return b.useReducer((r, n) => t[r][n] ?? r, e); } function vo(e) { return e ? parseInt(e, 10) : 0; } function vu(e, t) { let r = e / t; return isNaN(r) ? 0 : r; } function Mo(e) { let t = vu(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, n = (e.scrollbar.size - r) * t; return Math.max(n, 18); } function ug(e, t, r, n = "ltr") { let o = Mo(r), a = o / 2, i = t || a, l = o - i, s = r.scrollbar.paddingStart + i, u = r.scrollbar.size - r.scrollbar.paddingEnd - l, d = r.content - r.viewport, p = n === "ltr" ? [0, d] : [d * -1, 0]; return bd([s, u], p)(e); } function Kl(e, t, r = "ltr") { let n = Mo(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - o, i = t.content - t.viewport, l = a - n, s = r === "ltr" ? [0, i] : [i * -1, 0], u = Sv(e, s); return bd([0, i], [0, l])(u); } function bd(e, t) { return (r) => { if (e[0] === e[1] || t[0] === t[1]) return t[0]; let n = (t[1] - t[0]) / (e[1] - e[0]); return t[0] + n * (r - e[0]); }; } function Xl(e, t) { return e > 0 && e < t; } function xo(e, t) { let r = wr(e), n = b.useRef(0); return ( b.useEffect(() => () => window.clearTimeout(n.current), []), b.useCallback(() => { (window.clearTimeout(n.current), (n.current = window.setTimeout(r, t))); }, [r, t]) ); } function Br(e, t) { let r = wr(t); bi(() => { let n = 0; if (e) { let o = new ResizeObserver(() => { (cancelAnimationFrame(n), (n = window.requestAnimationFrame(r))); }); return ( o.observe(e), () => { (window.cancelAnimationFrame(n), o.unobserve(e)); } ); } }, [e, r]); } function cg(e, t) { let { asChild: r, children: n } = e; if (!r) return typeof t == "function" ? t(n) : t; let o = b.Children.only(n); return b.cloneElement(o, { children: typeof t == "function" ? t(o.props.children) : t, }); } var Sa, Zl, yO, dg, ot, Jl, Ql, es, vt, ts, pg, fg, rs, Ca, gg, mg, hg, ns, os, Eo, as, yg, $a, is, bg, vg, Cv, $v, Av, Dv, kv, bO = N(() => { "use client"; (cO(), dO(), pO(), yd(), fO(), gO(), yv(), mO(), hO(), m(sg, "useStateMachine"), (Sa = "ScrollArea"), ([Zl, yO] = vv(Sa)), ([dg, ot] = Zl(Sa)), (Jl = b.forwardRef((e, t) => { let { __scopeScrollArea: r, type: n = "hover", dir: o, scrollHideDelay: a = 600, ...i } = e, [l, s] = b.useState(null), [u, d] = b.useState(null), [p, c] = b.useState(null), [f, g] = b.useState(null), [y, x] = b.useState(null), [v, C] = b.useState(0), [w, E] = b.useState(0), [$, A] = b.useState(!1), [S, D] = b.useState(!1), F = xr(t, (_) => s(_)), k = Ev(o); return q.jsx(dg, { scope: r, type: n, dir: k, scrollHideDelay: a, scrollArea: l, viewport: u, onViewportChange: d, content: p, onContentChange: c, scrollbarX: f, onScrollbarXChange: g, scrollbarXEnabled: $, onScrollbarXEnabledChange: A, scrollbarY: y, onScrollbarYChange: x, scrollbarYEnabled: S, onScrollbarYEnabledChange: D, onCornerWidthChange: C, onCornerHeightChange: E, children: q.jsx(Sn.div, { dir: k, ...i, ref: F, style: { position: "relative", "--radix-scroll-area-corner-width": v + "px", "--radix-scroll-area-corner-height": w + "px", ...e.style, }, }), }); })), (Jl.displayName = Sa), (Ql = "ScrollAreaViewport"), (es = b.forwardRef((e, t) => { let { __scopeScrollArea: r, children: n, asChild: o, nonce: a, ...i } = e, l = ot(Ql, r), s = b.useRef(null), u = xr(t, s, l.onViewportChange); return q.jsxs(q.Fragment, { children: [ q.jsx("style", { dangerouslySetInnerHTML: { __html: ` [data-radix-scroll-area-viewport] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display: none; } :where([data-radix-scroll-area-viewport]) { display: flex; flex-direction: column; align-items: stretch; } :where([data-radix-scroll-area-content]) { flex-grow: 1; } `, }, nonce: a, }), q.jsx(Sn.div, { "data-radix-scroll-area-viewport": "", ...i, asChild: o, ref: u, style: { overflowX: l.scrollbarXEnabled ? "scroll" : "hidden", overflowY: l.scrollbarYEnabled ? "scroll" : "hidden", ...e.style, }, children: cg({ asChild: o, children: n }, (d) => q.jsx("div", { "data-radix-scroll-area-content": "", ref: l.onContentChange, style: { minWidth: l.scrollbarXEnabled ? "fit-content" : void 0, }, children: d, }), ), }), ], }); })), (es.displayName = Ql), (vt = "ScrollAreaScrollbar"), (ts = b.forwardRef((e, t) => { let { forceMount: r, ...n } = e, o = ot(vt, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: i } = o, l = e.orientation === "horizontal"; return ( b.useEffect( () => ( l ? a(!0) : i(!0), () => { l ? a(!1) : i(!1); } ), [l, a, i], ), o.type === "hover" ? q.jsx(pg, { ...n, ref: t, forceMount: r }) : o.type === "scroll" ? q.jsx(fg, { ...n, ref: t, forceMount: r }) : o.type === "auto" ? q.jsx(rs, { ...n, ref: t, forceMount: r }) : o.type === "always" ? q.jsx(Ca, { ...n, ref: t }) : null ); })), (ts.displayName = vt), (pg = b.forwardRef((e, t) => { let { forceMount: r, ...n } = e, o = ot(vt, e.__scopeScrollArea), [a, i] = b.useState(!1); return ( b.useEffect(() => { let l = o.scrollArea, s = 0; if (l) { let u = m(() => { (window.clearTimeout(s), i(!0)); }, "handlePointerEnter"), d = m(() => { s = window.setTimeout(() => i(!1), o.scrollHideDelay); }, "handlePointerLeave"); return ( l.addEventListener("pointerenter", u), l.addEventListener("pointerleave", d), () => { (window.clearTimeout(s), l.removeEventListener("pointerenter", u), l.removeEventListener("pointerleave", d)); } ); } }, [o.scrollArea, o.scrollHideDelay]), q.jsx(Dn, { present: r || a, children: q.jsx(rs, { "data-state": a ? "visible" : "hidden", ...n, ref: t, }), }) ); })), (fg = b.forwardRef((e, t) => { let { forceMount: r, ...n } = e, o = ot(vt, e.__scopeScrollArea), a = e.orientation === "horizontal", i = xo(() => s("SCROLL_END"), 100), [l, s] = sg("hidden", { hidden: { SCROLL: "scrolling" }, scrolling: { SCROLL_END: "idle", POINTER_ENTER: "interacting" }, interacting: { SCROLL: "interacting", POINTER_LEAVE: "idle" }, idle: { HIDE: "hidden", SCROLL: "scrolling", POINTER_ENTER: "interacting", }, }); return ( b.useEffect(() => { if (l === "idle") { let u = window.setTimeout(() => s("HIDE"), o.scrollHideDelay); return () => window.clearTimeout(u); } }, [l, o.scrollHideDelay, s]), b.useEffect(() => { let u = o.viewport, d = a ? "scrollLeft" : "scrollTop"; if (u) { let p = u[d], c = m(() => { let f = u[d]; (p !== f && (s("SCROLL"), i()), (p = f)); }, "handleScroll"); return ( u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c) ); } }, [o.viewport, a, s, i]), q.jsx(Dn, { present: r || l !== "hidden", children: q.jsx(Ca, { "data-state": l === "hidden" ? "hidden" : "visible", ...n, ref: t, onPointerEnter: mr(e.onPointerEnter, () => s("POINTER_ENTER")), onPointerLeave: mr(e.onPointerLeave, () => s("POINTER_LEAVE")), }), }) ); })), (rs = b.forwardRef((e, t) => { let r = ot(vt, e.__scopeScrollArea), { forceMount: n, ...o } = e, [a, i] = b.useState(!1), l = e.orientation === "horizontal", s = xo(() => { if (r.viewport) { let u = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight; i(l ? u : d); } }, 10); return ( Br(r.viewport, s), Br(r.content, s), q.jsx(Dn, { present: n || a, children: q.jsx(Ca, { "data-state": a ? "visible" : "hidden", ...o, ref: t, }), }) ); })), (Ca = b.forwardRef((e, t) => { let { orientation: r = "vertical", ...n } = e, o = ot(vt, e.__scopeScrollArea), a = b.useRef(null), i = b.useRef(0), [l, s] = b.useState({ content: 0, viewport: 0, scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }, }), u = vu(l.viewport, l.content), d = { ...n, sizes: l, onSizesChange: s, hasThumb: u > 0 && u < 1, onThumbChange: m((c) => (a.current = c), "onThumbChange"), onThumbPointerUp: m(() => (i.current = 0), "onThumbPointerUp"), onThumbPointerDown: m((c) => (i.current = c), "onThumbPointerDown"), }; function p(c, f) { return ug(c, i.current, l, f); } return ( m(p, "getScrollPosition"), r === "horizontal" ? q.jsx(gg, { ...d, ref: t, onThumbPositionChange: m(() => { if (o.viewport && a.current) { let c = o.viewport.scrollLeft, f = Kl(c, l, o.dir); a.current.style.transform = `translate3d(${f}px, 0, 0)`; } }, "onThumbPositionChange"), onWheelScroll: m((c) => { o.viewport && (o.viewport.scrollLeft = c); }, "onWheelScroll"), onDragScroll: m((c) => { o.viewport && (o.viewport.scrollLeft = p(c, o.dir)); }, "onDragScroll"), }) : r === "vertical" ? q.jsx(mg, { ...d, ref: t, onThumbPositionChange: m(() => { if (o.viewport && a.current) { let c = o.viewport.scrollTop, f = Kl(c, l); a.current.style.transform = `translate3d(0, ${f}px, 0)`; } }, "onThumbPositionChange"), onWheelScroll: m((c) => { o.viewport && (o.viewport.scrollTop = c); }, "onWheelScroll"), onDragScroll: m((c) => { o.viewport && (o.viewport.scrollTop = p(c)); }, "onDragScroll"), }) : null ); })), (gg = b.forwardRef((e, t) => { let { sizes: r, onSizesChange: n, ...o } = e, a = ot(vt, e.__scopeScrollArea), [i, l] = b.useState(), s = b.useRef(null), u = xr(t, s, a.onScrollbarXChange); return ( b.useEffect(() => { s.current && l(getComputedStyle(s.current)); }, [s]), q.jsx(os, { "data-orientation": "horizontal", ...o, ref: u, sizes: r, style: { bottom: 0, left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0, right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0, "--radix-scroll-area-thumb-width": Mo(r) + "px", ...e.style, }, onThumbPointerDown: m( (d) => e.onThumbPointerDown(d.x), "onThumbPointerDown", ), onDragScroll: m((d) => e.onDragScroll(d.x), "onDragScroll"), onWheelScroll: m((d, p) => { if (a.viewport) { let c = a.viewport.scrollLeft + d.deltaX; (e.onWheelScroll(c), Xl(c, p) && d.preventDefault()); } }, "onWheelScroll"), onResize: m(() => { s.current && a.viewport && i && n({ content: a.viewport.scrollWidth, viewport: a.viewport.offsetWidth, scrollbar: { size: s.current.clientWidth, paddingStart: vo(i.paddingLeft), paddingEnd: vo(i.paddingRight), }, }); }, "onResize"), }) ); })), (mg = b.forwardRef((e, t) => { let { sizes: r, onSizesChange: n, ...o } = e, a = ot(vt, e.__scopeScrollArea), [i, l] = b.useState(), s = b.useRef(null), u = xr(t, s, a.onScrollbarYChange); return ( b.useEffect(() => { s.current && l(getComputedStyle(s.current)); }, [s]), q.jsx(os, { "data-orientation": "vertical", ...o, ref: u, sizes: r, style: { top: 0, right: a.dir === "ltr" ? 0 : void 0, left: a.dir === "rtl" ? 0 : void 0, bottom: "var(--radix-scroll-area-corner-height)", "--radix-scroll-area-thumb-height": Mo(r) + "px", ...e.style, }, onThumbPointerDown: m( (d) => e.onThumbPointerDown(d.y), "onThumbPointerDown", ), onDragScroll: m((d) => e.onDragScroll(d.y), "onDragScroll"), onWheelScroll: m((d, p) => { if (a.viewport) { let c = a.viewport.scrollTop + d.deltaY; (e.onWheelScroll(c), Xl(c, p) && d.preventDefault()); } }, "onWheelScroll"), onResize: m(() => { s.current && a.viewport && i && n({ content: a.viewport.scrollHeight, viewport: a.viewport.offsetHeight, scrollbar: { size: s.current.clientHeight, paddingStart: vo(i.paddingTop), paddingEnd: vo(i.paddingBottom), }, }); }, "onResize"), }) ); })), ([hg, ns] = Zl(vt)), (os = b.forwardRef((e, t) => { let { __scopeScrollArea: r, sizes: n, hasThumb: o, onThumbChange: a, onThumbPointerUp: i, onThumbPointerDown: l, onThumbPositionChange: s, onDragScroll: u, onWheelScroll: d, onResize: p, ...c } = e, f = ot(vt, r), [g, y] = b.useState(null), x = xr(t, (F) => y(F)), v = b.useRef(null), C = b.useRef(""), w = f.viewport, E = n.content - n.viewport, $ = wr(d), A = wr(s), S = xo(p, 10); function D(F) { if (v.current) { let k = F.clientX - v.current.left, _ = F.clientY - v.current.top; u({ x: k, y: _ }); } } return ( m(D, "handleDragScroll"), b.useEffect(() => { let F = m((k) => { let _ = k.target; g?.contains(_) && $(k, E); }, "handleWheel"); return ( document.addEventListener("wheel", F, { passive: !1 }), () => document.removeEventListener("wheel", F, { passive: !1 }) ); }, [w, g, E, $]), b.useEffect(A, [n, A]), Br(g, S), Br(f.content, S), q.jsx(hg, { scope: r, scrollbar: g, hasThumb: o, onThumbChange: wr(a), onThumbPointerUp: wr(i), onThumbPositionChange: A, onThumbPointerDown: wr(l), children: q.jsx(Sn.div, { ...c, ref: x, style: { position: "absolute", ...c.style }, onPointerDown: mr(e.onPointerDown, (F) => { F.button === 0 && (F.target.setPointerCapture(F.pointerId), (v.current = g.getBoundingClientRect()), (C.current = document.body.style.webkitUserSelect), (document.body.style.webkitUserSelect = "none"), f.viewport && (f.viewport.style.scrollBehavior = "auto"), D(F)); }), onPointerMove: mr(e.onPointerMove, D), onPointerUp: mr(e.onPointerUp, (F) => { let k = F.target; (k.hasPointerCapture(F.pointerId) && k.releasePointerCapture(F.pointerId), (document.body.style.webkitUserSelect = C.current), f.viewport && (f.viewport.style.scrollBehavior = ""), (v.current = null)); }), }), }) ); })), (Eo = "ScrollAreaThumb"), (as = b.forwardRef((e, t) => { let { forceMount: r, ...n } = e, o = ns(Eo, e.__scopeScrollArea); return q.jsx(Dn, { present: r || o.hasThumb, children: q.jsx(yg, { ref: t, ...n }), }); })), (yg = b.forwardRef((e, t) => { let { __scopeScrollArea: r, style: n, ...o } = e, a = ot(Eo, r), i = ns(Eo, r), { onThumbPositionChange: l } = i, s = xr(t, (p) => i.onThumbChange(p)), u = b.useRef(), d = xo(() => { u.current && (u.current(), (u.current = void 0)); }, 100); return ( b.useEffect(() => { let p = a.viewport; if (p) { let c = m(() => { if ((d(), !u.current)) { let f = vg(p, l); ((u.current = f), l()); } }, "handleScroll"); return ( l(), p.addEventListener("scroll", c), () => p.removeEventListener("scroll", c) ); } }, [a.viewport, d, l]), q.jsx(Sn.div, { "data-state": i.hasThumb ? "visible" : "hidden", ...o, ref: s, style: { width: "var(--radix-scroll-area-thumb-width)", height: "var(--radix-scroll-area-thumb-height)", ...n, }, onPointerDownCapture: mr(e.onPointerDownCapture, (p) => { let c = p.target.getBoundingClientRect(), f = p.clientX - c.left, g = p.clientY - c.top; i.onThumbPointerDown({ x: f, y: g }); }), onPointerUp: mr(e.onPointerUp, i.onThumbPointerUp), }) ); })), (as.displayName = Eo), ($a = "ScrollAreaCorner"), (is = b.forwardRef((e, t) => { let r = ot($a, e.__scopeScrollArea), n = !!(r.scrollbarX && r.scrollbarY); return r.type !== "scroll" && n ? q.jsx(bg, { ...e, ref: t }) : null; })), (is.displayName = $a), (bg = b.forwardRef((e, t) => { let { __scopeScrollArea: r, ...n } = e, o = ot($a, r), [a, i] = b.useState(0), [l, s] = b.useState(0), u = !!(a && l); return ( Br(o.scrollbarX, () => { let d = o.scrollbarX?.offsetHeight || 0; (o.onCornerHeightChange(d), s(d)); }), Br(o.scrollbarY, () => { let d = o.scrollbarY?.offsetWidth || 0; (o.onCornerWidthChange(d), i(d)); }), u ? q.jsx(Sn.div, { ...n, ref: t, style: { width: a, height: l, position: "absolute", right: o.dir === "ltr" ? 0 : void 0, left: o.dir === "rtl" ? 0 : void 0, bottom: 0, ...e.style, }, }) : null ); })), m(vo, "toInt"), m(vu, "getThumbRatio"), m(Mo, "getThumbSize"), m(ug, "getScrollPositionFromPointer"), m(Kl, "getThumbOffsetFromScroll"), m(bd, "linearScale"), m(Xl, "isScrollingWithinScrollbarBounds"), (vg = m((e, t = () => {}) => { let r = { left: e.scrollLeft, top: e.scrollTop }, n = 0; return ( m(function o() { let a = { left: e.scrollLeft, top: e.scrollTop }, i = r.left !== a.left, l = r.top !== a.top; ((i || l) && t(), (r = a), (n = window.requestAnimationFrame(o))); }, "loop")(), () => window.cancelAnimationFrame(n) ); }, "addUnlinkedScrollListener")), m(xo, "useDebounceCallback"), m(Br, "useResizeObserver"), m(cg, "getSubtree"), (Cv = Jl), ($v = es), (Av = ts), (Dv = as), (kv = is)); }), xg, Eg, ls, ss, Yo, vd = N(() => { (bO(), (xg = T(Cv)(({ scrollbarsize: e, offset: t }) => ({ width: "100%", height: "100%", overflow: "hidden", "--scrollbar-size": `${e + t}px`, "--radix-scroll-area-thumb-width": `${e}px`, }))), (Eg = T($v)({ width: "100%", height: "100%" })), (ls = T(Av)(({ offset: e, horizontal: t, vertical: r }) => ({ display: "flex", userSelect: "none", touchAction: "none", background: "transparent", transition: "all 0.2s ease-out", borderRadius: "var(--scrollbar-size)", zIndex: 1, '&[data-orientation="vertical"]': { width: "var(--scrollbar-size)", paddingRight: e, marginTop: e, marginBottom: t === "true" && r === "true" ? 0 : e, }, '&[data-orientation="horizontal"]': { flexDirection: "column", height: "var(--scrollbar-size)", paddingBottom: e, marginLeft: e, marginRight: t === "true" && r === "true" ? 0 : e, }, }))), (ss = T(Dv)(({ theme: e }) => ({ flex: 1, background: e.textMutedColor, opacity: 0.5, borderRadius: "var(--scrollbar-size)", position: "relative", transition: "opacity 0.2s ease-out", "&:hover": { opacity: 0.8 }, "::before": { content: '""', position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)", width: "100%", height: "100%", }, }))), (Yo = b.forwardRef( ( { children: e, horizontal: t = !1, vertical: r = !1, offset: n = 2, scrollbarSize: o = 6, className: a, }, i, ) => h.createElement( xg, { scrollbarsize: o, offset: n, className: a }, h.createElement(Eg, { ref: i }, e), t && h.createElement( ls, { orientation: "horizontal", offset: n, horizontal: t.toString(), vertical: r.toString(), }, h.createElement(ss, null), ), r && h.createElement( ls, { orientation: "vertical", offset: n, horizontal: t.toString(), vertical: r.toString(), }, h.createElement(ss, null), ), t && r && h.createElement(kv, null), ), )), (Yo.displayName = "ScrollArea")); }), xd = {}; na(xd, { SyntaxHighlighter: () => Ho, createCopyToClipboardFunction: () => vi, default: () => Ov, supportedLanguages: () => xu, }); const { logger: vO } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { global: xO } = __STORYBOOK_MODULE_GLOBAL__; function vi() { return zo.navigator?.clipboard ? async (e) => { try { await zo.top?.navigator.clipboard.writeText(e); } catch { await zo.navigator.clipboard.writeText(e); } } : async (e) => { let t = Cn.createElement("TEXTAREA"), r = Cn.activeElement; ((t.value = e), Cn.body.appendChild(t), t.select(), Cn.execCommand("copy"), Cn.body.removeChild(t), r.focus()); }; } var wg, Cn, zo, xu, Sg, Cg, $g, Ag, Dg, kg, Og, us, Fg, _g, Ho, Ov, il = N(() => { ((wg = je(rl(), 1)), Wk(), qk(), Gk(), Kk(), Zk(), Qk(), eO(), rO(), nO(), aO(), iO(), sO(), Uk(), gv(), vd(), ({ document: Cn, window: zo } = xO), (xu = { jsextra: ov, jsx: lv, json: av, yml: fv, md: sv, bash: tv, css: rv, html: uv, tsx: dv, typescript: pv, graphql: nv, }), Object.entries(xu).forEach(([e, t]) => { za.registerLanguage(e, t); }), (Sg = (0, wg.default)(2)((e) => Object.entries(e.code || {}).reduce( (t, [r, n]) => ({ ...t, [`* .${r}`]: n }), {}, ), )), (Cg = vi()), m(vi, "createCopyToClipboardFunction"), ($g = T.div( ({ theme: e }) => ({ position: "relative", overflow: "hidden", color: e.color.defaultText, }), ({ theme: e, bordered: t }) => t ? { border: `1px solid ${e.appBorderColor}`, borderRadius: e.borderRadius, background: e.background.content, } : {}, ({ showLineNumbers: e }) => e ? { ".react-syntax-highlighter-line-number::before": { content: "attr(data-line-number)", }, } : {}, )), (Ag = m( ({ children: e, className: t }) => h.createElement( Yo, { horizontal: !0, vertical: !0, className: t }, e, ), "UnstyledScroller", )), (Dg = T(Ag)({ position: "relative" }, ({ theme: e }) => Sg(e))), (kg = T.pre(({ theme: e, padded: t }) => ({ display: "flex", justifyContent: "flex-start", margin: 0, padding: t ? e.layoutMargin : 0, }))), (Og = T.div(({ theme: e }) => ({ flex: 1, paddingLeft: 2, paddingRight: e.layoutMargin, opacity: 1, fontFamily: e.typography.fonts.mono, }))), (us = m((e) => { let t = [...e.children], r = t[0], n = r.children[0].value, o = { ...r, children: [], properties: { ...r.properties, "data-line-number": n, style: { ...r.properties.style, userSelect: "auto" }, }, }; return ((t[0] = o), { ...e, children: t }); }, "processLineNumber")), (Fg = m( ({ rows: e, stylesheet: t, useInlineStyles: r }) => e.map((n, o) => ol({ node: us(n), stylesheet: t, useInlineStyles: r, key: `code-segement${o}`, }), ), "defaultRenderer", )), (_g = m( (e, t) => t ? e ? ({ rows: r, ...n }) => e({ rows: r.map((o) => us(o)), ...n }) : Fg : e, "wrapRenderer", )), (Ho = m( ({ children: e, language: t = "jsx", copyable: r = !1, bordered: n = !1, padded: o = !1, format: a = !0, formatter: i = void 0, className: l = void 0, showLineNumbers: s = !1, ...u }) => { if (typeof e != "string" || !e.trim()) return null; let [d, p] = b.useState(""); b.useEffect(() => { i ? i(a, e).then(p) : p(e.trim()); }, [e, a, i]); let [c, f] = b.useState(!1), g = b.useCallback( (x) => { (x.preventDefault(), Cg(d) .then(() => { (f(!0), zo.setTimeout(() => f(!1), 1500)); }) .catch(vO.error)); }, [d], ), y = _g(u.renderer, s); return h.createElement( $g, { bordered: n, padded: o, showLineNumbers: s, className: l }, h.createElement( Dg, null, h.createElement( za, { padded: o || n, language: t, showLineNumbers: s, showInlineLineNumbers: s, useInlineStyles: !1, PreTag: kg, CodeTag: Og, lineNumberContainerStyle: {}, ...u, renderer: y, }, d, ), ), r ? h.createElement(al, { actionItems: [{ title: c ? "Copied" : "Copy", onClick: g }], }) : null, ); }, "SyntaxHighlighter", )), (Ho.registerLanguage = (...e) => za.registerLanguage(...e)), (Ov = Ho)); }); function Fv(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var o = n.reduce(function (l, s) { var u = s.match(/\n([\t ]+|(?!\s).)/g); return u ? l.concat( u.map(function (d) { var p, c; return (c = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && c !== void 0 ? c : 0; }), ) : l; }, []); if (o.length) { var a = new RegExp( ` [ ]{` + Math.min.apply(Math, o) + "}", "g", ); n = n.map(function (l) { return l.replace( a, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (l, s) { var u = i.match(/(?:^|\n)( *)$/), d = u ? u[1] : "", p = l; (typeof l == "string" && l.includes(` `) && (p = String(l) .split( ` `, ) .map(function (c, f) { return f === 0 ? c : "" + d + c; }).join(` `)), (i += p + n[s + 1])); }), i ); } var EO = N(() => { m(Fv, "dedent"); }), _v = {}; na(_v, { formatter: () => Tv }); var Tg, Tv, wO = N(() => { ((Tg = je(rl(), 1)), EO(), (Tv = (0, Tg.default)(2)(async (e, t) => (e === !1 ? t : Fv(t))))); }), Eu, wu, SO = N(() => { ((Eu = m(function (e) { return e.reduce(function (t, r) { var n = r[0], o = r[1]; return ((t[n] = o), t); }, {}); }, "fromEntries")), (wu = typeof window < "u" && window.document && window.document.createElement ? b.useLayoutEffect : b.useEffect)); }), Ge, st, ut, Ye, xi, On, Kr, Fn, Rv, Ed, $n, Pv, Su, wd, Rg, Pg, Ig, Lg, Bg, Ng, jg, Mg, zg, Iv, gt = N(() => { ((Ge = "top"), (st = "bottom"), (ut = "right"), (Ye = "left"), (xi = "auto"), (On = [Ge, st, ut, Ye]), (Kr = "start"), (Fn = "end"), (Rv = "clippingParents"), (Ed = "viewport"), ($n = "popper"), (Pv = "reference"), (Su = On.reduce(function (e, t) { return e.concat([t + "-" + Kr, t + "-" + Fn]); }, [])), (wd = [].concat(On, [xi]).reduce(function (e, t) { return e.concat([t, t + "-" + Kr, t + "-" + Fn]); }, [])), (Rg = "beforeRead"), (Pg = "read"), (Ig = "afterRead"), (Lg = "beforeMain"), (Bg = "main"), (Ng = "afterMain"), (jg = "beforeWrite"), (Mg = "write"), (zg = "afterWrite"), (Iv = [Rg, Pg, Ig, Lg, Bg, Ng, jg, Mg, zg])); }); function Ot(e) { return e ? (e.nodeName || "").toLowerCase() : null; } var ln = N(() => { m(Ot, "getNodeName"); }); function Qe(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { var t = e.ownerDocument; return (t && t.defaultView) || window; } return e; } var Wt = N(() => { m(Qe, "getWindow"); }); function Dr(e) { var t = Qe(e).Element; return e instanceof t || e instanceof Element; } function lt(e) { var t = Qe(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } function ll(e) { if (typeof ShadowRoot > "u") return !1; var t = Qe(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } var mt = N(() => { (Wt(), m(Dr, "isElement"), m(lt, "isHTMLElement"), m(ll, "isShadowRoot")); }); function Hg(e) { var t = e.state; Object.keys(t.elements).forEach(function (r) { var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r]; !lt(a) || !Ot(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function (i) { var l = o[i]; l === !1 ? a.removeAttribute(i) : a.setAttribute(i, l === !0 ? "" : l); })); }); } function Ug(e) { var t = e.state, r = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0", }, arrow: { position: "absolute" }, reference: {}, }; return ( Object.assign(t.elements.popper.style, r.popper), (t.styles = r), t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function () { Object.keys(t.elements).forEach(function (n) { var o = t.elements[n], a = t.attributes[n] || {}, i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = i.reduce(function (s, u) { return ((s[u] = ""), s); }, {}); !lt(o) || !Ot(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function (s) { o.removeAttribute(s); })); }); } ); } var Lv, CO = N(() => { (ln(), mt(), m(Hg, "applyStyles"), m(Ug, "effect"), (Lv = { name: "applyStyles", enabled: !0, phase: "write", fn: Hg, effect: Ug, requires: ["computeStyles"], })); }); function kt(e) { return e.split("-")[0]; } var sn = N(() => { m(kt, "getBasePlacement"); }), Cr, Ko, Qr, un = N(() => { ((Cr = Math.max), (Ko = Math.min), (Qr = Math.round)); }); function Ei() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands .map(function (t) { return t.brand + "/" + t.version; }) .join(" ") : navigator.userAgent; } var Bv = N(() => { m(Ei, "getUAString"); }); function Sd() { return !/^((?!chrome|android).)*safari/i.test(Ei()); } var Nv = N(() => { (Bv(), m(Sd, "isLayoutViewport")); }); function en(e, t, r) { (t === void 0 && (t = !1), r === void 0 && (r = !1)); var n = e.getBoundingClientRect(), o = 1, a = 1; t && lt(e) && ((o = (e.offsetWidth > 0 && Qr(n.width) / e.offsetWidth) || 1), (a = (e.offsetHeight > 0 && Qr(n.height) / e.offsetHeight) || 1)); var i = Dr(e) ? Qe(e) : window, l = i.visualViewport, s = !Sd() && r, u = (n.left + (s && l ? l.offsetLeft : 0)) / o, d = (n.top + (s && l ? l.offsetTop : 0)) / a, p = n.width / o, c = n.height / a; return { width: p, height: c, top: d, right: u + p, bottom: d + c, left: u, x: u, y: d, }; } var aa = N(() => { (mt(), un(), Wt(), Nv(), m(en, "getBoundingClientRect")); }); function sl(e) { var t = en(e), r = e.offsetWidth, n = e.offsetHeight; return ( Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e.offsetLeft, y: e.offsetTop, width: r, height: n } ); } var Cd = N(() => { (aa(), m(sl, "getLayoutRect")); }); function $d(e, t) { var r = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (r && ll(r)) { var n = t; do { if (n && e.isSameNode(n)) return !0; n = n.parentNode || n.host; } while (n); } return !1; } var jv = N(() => { (mt(), m($d, "contains")); }); function Ut(e) { return Qe(e).getComputedStyle(e); } var ia = N(() => { (Wt(), m(Ut, "getComputedStyle")); }); function Mv(e) { return ["table", "td", "th"].indexOf(Ot(e)) >= 0; } var $O = N(() => { (ln(), m(Mv, "isTableElement")); }); function lr(e) { return ((Dr(e) ? e.ownerDocument : e.document) || window.document) .documentElement; } var Or = N(() => { (mt(), m(lr, "getDocumentElement")); }); function la(e) { return Ot(e) === "html" ? e : e.assignedSlot || e.parentNode || (ll(e) ? e.host : null) || lr(e); } var ul = N(() => { (ln(), Or(), mt(), m(la, "getParentNode")); }); function Cu(e) { return !lt(e) || Ut(e).position === "fixed" ? null : e.offsetParent; } function zv(e) { var t = /firefox/i.test(Ei()), r = /Trident/i.test(Ei()); if (r && lt(e)) { var n = Ut(e); if (n.position === "fixed") return null; } var o = la(e); for (ll(o) && (o = o.host); lt(o) && ["html", "body"].indexOf(Ot(o)) < 0; ) { var a = Ut(o); if ( a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || (t && a.willChange === "filter") || (t && a.filter && a.filter !== "none") ) return o; o = o.parentNode; } return null; } function lo(e) { for (var t = Qe(e), r = Cu(e); r && Mv(r) && Ut(r).position === "static"; ) r = Cu(r); return r && (Ot(r) === "html" || (Ot(r) === "body" && Ut(r).position === "static")) ? t : r || zv(e) || t; } var sa = N(() => { (Wt(), ln(), ia(), mt(), $O(), ul(), Bv(), m(Cu, "getTrueOffsetParent"), m(zv, "getContainingBlock"), m(lo, "getOffsetParent")); }); function cl(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } var Ad = N(() => { m(cl, "getMainAxisFromPlacement"); }); function _n(e, t, r) { return Cr(e, Ko(t, r)); } function Hv(e, t, r) { var n = _n(e, t, r); return n > r ? r : n; } var Uv = N(() => { (un(), m(_n, "within"), m(Hv, "withinMaxClamp")); }); function Dd() { return { top: 0, right: 0, bottom: 0, left: 0 }; } var Wv = N(() => { m(Dd, "getFreshSideObject"); }); function kd(e) { return Object.assign({}, Dd(), e); } var Vv = N(() => { (Wv(), m(kd, "mergePaddingObject")); }); function Od(e, t) { return t.reduce(function (r, n) { return ((r[n] = e), r); }, {}); } var qv = N(() => { m(Od, "expandToHashMap"); }); function Wg(e) { var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, l = kt(r.placement), s = cl(l), u = [Ye, ut].indexOf(l) >= 0, d = u ? "height" : "width"; if (!(!a || !i)) { var p = Gv(o.padding, r), c = sl(a), f = s === "y" ? Ge : Ye, g = s === "y" ? st : ut, y = r.rects.reference[d] + r.rects.reference[s] - i[s] - r.rects.popper[d], x = i[s] - r.rects.reference[s], v = lo(a), C = v ? (s === "y" ? v.clientHeight || 0 : v.clientWidth || 0) : 0, w = y / 2 - x / 2, E = p[f], $ = C - c[d] - p[g], A = C / 2 - c[d] / 2 + w, S = _n(E, A, $), D = s; r.modifiersData[n] = ((t = {}), (t[D] = S), (t.centerOffset = S - A), t); } } function Vg(e) { var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n; o != null && ((typeof o == "string" && ((o = t.elements.popper.querySelector(o)), !o)) || ($d(t.elements.popper, o) && (t.elements.arrow = o))); } var Gv, Yv, AO = N(() => { (sn(), Cd(), jv(), sa(), Ad(), Uv(), Vv(), qv(), gt(), (Gv = m(function (e, t) { return ( (e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e), kd(typeof e != "number" ? e : Od(e, On)) ); }, "toPaddingObject")), m(Wg, "arrow"), m(Vg, "effect"), (Yv = { name: "arrow", enabled: !0, phase: "main", fn: Wg, effect: Vg, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"], })); }); function tn(e) { return e.split("-")[1]; } var ua = N(() => { m(tn, "getVariation"); }); function Kv(e, t) { var r = e.x, n = e.y, o = t.devicePixelRatio || 1; return { x: Qr(r * o) / o || 0, y: Qr(n * o) / o || 0 }; } function $u(e) { var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, u = e.adaptive, d = e.roundOffsets, p = e.isFixed, c = i.x, f = c === void 0 ? 0 : c, g = i.y, y = g === void 0 ? 0 : g, x = typeof d == "function" ? d({ x: f, y }) : { x: f, y }; ((f = x.x), (y = x.y)); var v = i.hasOwnProperty("x"), C = i.hasOwnProperty("y"), w = Ye, E = Ge, $ = window; if (u) { var A = lo(r), S = "clientHeight", D = "clientWidth"; if ( (A === Qe(r) && ((A = lr(r)), Ut(A).position !== "static" && l === "absolute" && ((S = "scrollHeight"), (D = "scrollWidth"))), (A = A), o === Ge || ((o === Ye || o === ut) && a === Fn)) ) { E = st; var F = p && A === $ && $.visualViewport ? $.visualViewport.height : A[S]; ((y -= F - n.height), (y *= s ? 1 : -1)); } if (o === Ye || ((o === Ge || o === st) && a === Fn)) { w = ut; var k = p && A === $ && $.visualViewport ? $.visualViewport.width : A[D]; ((f -= k - n.width), (f *= s ? 1 : -1)); } } var _ = Object.assign({ position: l }, u && Xv), I = d === !0 ? Kv({ x: f, y }, Qe(r)) : { x: f, y }; if (((f = I.x), (y = I.y), s)) { var L; return Object.assign( {}, _, ((L = {}), (L[E] = C ? "0" : ""), (L[w] = v ? "0" : ""), (L.transform = ($.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + y + "px)" : "translate3d(" + f + "px, " + y + "px, 0)"), L), ); } return Object.assign( {}, _, ((t = {}), (t[E] = C ? y + "px" : ""), (t[w] = v ? f + "px" : ""), (t.transform = ""), t), ); } function qg(e) { var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, i = a === void 0 ? !0 : a, l = r.roundOffsets, s = l === void 0 ? !0 : l, u = { placement: kt(t.placement), variation: tn(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed", }; (t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign( {}, t.styles.popper, $u( Object.assign({}, u, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: s, }), ), )), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign( {}, t.styles.arrow, $u( Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: s, }), ), )), (t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement, }))); } var Xv, Zv, DO = N(() => { (gt(), sa(), Wt(), Or(), ia(), sn(), ua(), un(), (Xv = { top: "auto", right: "auto", bottom: "auto", left: "auto" }), m(Kv, "roundOffsetsByDPR"), m($u, "mapToStyles"), m(qg, "computeStyles"), (Zv = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: qg, data: {}, })); }); function Gg(e) { var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, l = i === void 0 ? !0 : i, s = Qe(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper); return ( a && u.forEach(function (d) { d.addEventListener("scroll", r.update, To); }), l && s.addEventListener("resize", r.update, To), function () { (a && u.forEach(function (d) { d.removeEventListener("scroll", r.update, To); }), l && s.removeEventListener("resize", r.update, To)); } ); } var To, Jv, kO = N(() => { (Wt(), (To = { passive: !0 }), m(Gg, "effect"), (Jv = { name: "eventListeners", enabled: !0, phase: "write", fn: m(function () {}, "fn"), effect: Gg, data: {}, })); }); function Uo(e) { return e.replace(/left|right|bottom|top/g, function (t) { return Qv[t]; }); } var Qv, OO = N(() => { ((Qv = { left: "right", right: "left", bottom: "top", top: "bottom" }), m(Uo, "getOppositePlacement")); }); function Au(e) { return e.replace(/start|end/g, function (t) { return ex[t]; }); } var ex, FO = N(() => { ((ex = { start: "end", end: "start" }), m(Au, "getOppositeVariationPlacement")); }); function dl(e) { var t = Qe(e), r = t.pageXOffset, n = t.pageYOffset; return { scrollLeft: r, scrollTop: n }; } var Fd = N(() => { (Wt(), m(dl, "getWindowScroll")); }); function pl(e) { return en(lr(e)).left + dl(e).scrollLeft; } var _d = N(() => { (aa(), Or(), Fd(), m(pl, "getWindowScrollBarX")); }); function tx(e, t) { var r = Qe(e), n = lr(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, l = 0, s = 0; if (o) { ((a = o.width), (i = o.height)); var u = Sd(); (u || (!u && t === "fixed")) && ((l = o.offsetLeft), (s = o.offsetTop)); } return { width: a, height: i, x: l + pl(e), y: s }; } var _O = N(() => { (Wt(), Or(), _d(), Nv(), m(tx, "getViewportRect")); }); function rx(e) { var t, r = lr(e), n = dl(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Cr( r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0, ), i = Cr( r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0, ), l = -n.scrollLeft + pl(e), s = -n.scrollTop; return ( Ut(o || r).direction === "rtl" && (l += Cr(r.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: i, x: l, y: s } ); } var TO = N(() => { (Or(), ia(), _d(), Fd(), un(), m(rx, "getDocumentRect")); }); function fl(e) { var t = Ut(e), r = t.overflow, n = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(r + o + n); } var Td = N(() => { (ia(), m(fl, "isScrollParent")); }); function Rd(e) { return ["html", "body", "#document"].indexOf(Ot(e)) >= 0 ? e.ownerDocument.body : lt(e) && fl(e) ? e : Rd(la(e)); } var RO = N(() => { (ul(), Td(), ln(), mt(), m(Rd, "getScrollParent")); }); function Tn(e, t) { var r; t === void 0 && (t = []); var n = Rd(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Qe(n), i = o ? [a].concat(a.visualViewport || [], fl(n) ? n : []) : n, l = t.concat(i); return o ? l : l.concat(Tn(la(i))); } var nx = N(() => { (RO(), ul(), Wt(), Td(), m(Tn, "listScrollParents")); }); function wi(e) { return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height, }); } var ox = N(() => { m(wi, "rectToClientRect"); }); function ax(e, t) { var r = en(e, !1, t === "fixed"); return ( (r.top = r.top + e.clientTop), (r.left = r.left + e.clientLeft), (r.bottom = r.top + e.clientHeight), (r.right = r.left + e.clientWidth), (r.width = e.clientWidth), (r.height = e.clientHeight), (r.x = r.left), (r.y = r.top), r ); } function Du(e, t, r) { return t === Ed ? wi(tx(e, r)) : Dr(t) ? ax(t, r) : wi(rx(lr(e))); } function ix(e) { var t = Tn(la(e)), r = ["absolute", "fixed"].indexOf(Ut(e).position) >= 0, n = r && lt(e) ? lo(e) : e; return Dr(n) ? t.filter(function (o) { return Dr(o) && $d(o, n) && Ot(o) !== "body"; }) : []; } function lx(e, t, r, n) { var o = t === "clippingParents" ? ix(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], l = a.reduce( function (s, u) { var d = Du(e, u, n); return ( (s.top = Cr(d.top, s.top)), (s.right = Ko(d.right, s.right)), (s.bottom = Ko(d.bottom, s.bottom)), (s.left = Cr(d.left, s.left)), s ); }, Du(e, i, n), ); return ( (l.width = l.right - l.left), (l.height = l.bottom - l.top), (l.x = l.left), (l.y = l.top), l ); } var PO = N(() => { (gt(), _O(), TO(), nx(), sa(), Or(), ia(), mt(), aa(), ul(), jv(), ln(), ox(), un(), m(ax, "getInnerBoundingClientRect"), m(Du, "getClientRectFromMixedType"), m(ix, "getClippingParents"), m(lx, "getClippingRect")); }); function Pd(e) { var t = e.reference, r = e.element, n = e.placement, o = n ? kt(n) : null, a = n ? tn(n) : null, i = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s; switch (o) { case Ge: s = { x: i, y: t.y - r.height }; break; case st: s = { x: i, y: t.y + t.height }; break; case ut: s = { x: t.x + t.width, y: l }; break; case Ye: s = { x: t.x - r.width, y: l }; break; default: s = { x: t.x, y: t.y }; } var u = o ? cl(o) : null; if (u != null) { var d = u === "y" ? "height" : "width"; switch (a) { case Kr: s[u] = s[u] - (t[d] / 2 - r[d] / 2); break; case Fn: s[u] = s[u] + (t[d] / 2 - r[d] / 2); break; } } return s; } var sx = N(() => { (sn(), ua(), Ad(), gt(), m(Pd, "computeOffsets")); }); function Xn(e, t) { t === void 0 && (t = {}); var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, l = r.boundary, s = l === void 0 ? Rv : l, u = r.rootBoundary, d = u === void 0 ? Ed : u, p = r.elementContext, c = p === void 0 ? $n : p, f = r.altBoundary, g = f === void 0 ? !1 : f, y = r.padding, x = y === void 0 ? 0 : y, v = kd(typeof x != "number" ? x : Od(x, On)), C = c === $n ? Pv : $n, w = e.rects.popper, E = e.elements[g ? C : c], $ = lx(Dr(E) ? E : E.contextElement || lr(e.elements.popper), s, d, i), A = en(e.elements.reference), S = Pd({ reference: A, element: w, placement: o }), D = wi(Object.assign({}, w, S)), F = c === $n ? D : A, k = { top: $.top - F.top + v.top, bottom: F.bottom - $.bottom + v.bottom, left: $.left - F.left + v.left, right: F.right - $.right + v.right, }, _ = e.modifiersData.offset; if (c === $n && _) { var I = _[o]; Object.keys(k).forEach(function (L) { var j = [ut, st].indexOf(L) >= 0 ? 1 : -1, B = [Ge, st].indexOf(L) >= 0 ? "y" : "x"; k[L] += I[B] * j; }); } return k; } var gl = N(() => { (PO(), Or(), aa(), sx(), ox(), gt(), mt(), Vv(), qv(), m(Xn, "detectOverflow")); }); function ux(e, t) { t === void 0 && (t = {}); var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, u = s === void 0 ? wd : s, d = tn(n), p = d ? l ? Su : Su.filter(function (g) { return tn(g) === d; }) : On, c = p.filter(function (g) { return u.indexOf(g) >= 0; }); c.length === 0 && (c = p); var f = c.reduce(function (g, y) { return ( (g[y] = Xn(e, { placement: y, boundary: o, rootBoundary: a, padding: i })[ kt(y) ]), g ); }, {}); return Object.keys(f).sort(function (g, y) { return f[g] - f[y]; }); } var IO = N(() => { (ua(), gt(), gl(), sn(), m(ux, "computeAutoPlacement")); }); function cx(e) { if (kt(e) === xi) return []; var t = Uo(e); return [Au(e), t, Au(t)]; } function Yg(e) { var t = e.state, r = e.options, n = e.name; if (!t.modifiersData[n]._skip) { for ( var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, l = i === void 0 ? !0 : i, s = r.fallbackPlacements, u = r.padding, d = r.boundary, p = r.rootBoundary, c = r.altBoundary, f = r.flipVariations, g = f === void 0 ? !0 : f, y = r.allowedAutoPlacements, x = t.options.placement, v = kt(x), C = v === x, w = s || (C || !g ? [Uo(x)] : cx(x)), E = [x].concat(w).reduce(function (ie, H) { return ie.concat( kt(H) === xi ? ux(t, { placement: H, boundary: d, rootBoundary: p, padding: u, flipVariations: g, allowedAutoPlacements: y, }) : H, ); }, []), $ = t.rects.reference, A = t.rects.popper, S = new Map(), D = !0, F = E[0], k = 0; k < E.length; k++ ) { var _ = E[k], I = kt(_), L = tn(_) === Kr, j = [Ge, st].indexOf(I) >= 0, B = j ? "width" : "height", z = Xn(t, { placement: _, boundary: d, rootBoundary: p, altBoundary: c, padding: u, }), V = j ? (L ? ut : Ye) : L ? st : Ge; $[B] > A[B] && (V = Uo(V)); var Y = Uo(V), W = []; if ( (a && W.push(z[I] <= 0), l && W.push(z[V] <= 0, z[Y] <= 0), W.every(function (ie) { return ie; })) ) { ((F = _), (D = !1)); break; } S.set(_, W); } if (D) for ( var G = g ? 3 : 1, J = m(function (ie) { var H = E.find(function (X) { var Z = S.get(X); if (Z) return Z.slice(0, ie).every(function (le) { return le; }); }); if (H) return ((F = H), "break"); }, "_loop"), Q = G; Q > 0; Q-- ) { var re = J(Q); if (re === "break") break; } t.placement !== F && ((t.modifiersData[n]._skip = !0), (t.placement = F), (t.reset = !0)); } } var dx, LO = N(() => { (OO(), sn(), FO(), gl(), IO(), gt(), ua(), m(cx, "getExpandedFallbackPlacements"), m(Yg, "flip"), (dx = { name: "flip", enabled: !0, phase: "main", fn: Yg, requiresIfExists: ["offset"], data: { _skip: !1 }, })); }); function ku(e, t, r) { return ( r === void 0 && (r = { x: 0, y: 0 }), { top: e.top - t.height - r.y, right: e.right - t.width + r.x, bottom: e.bottom - t.height + r.y, left: e.left - t.width - r.x, } ); } function Ou(e) { return [Ge, ut, st, Ye].some(function (t) { return e[t] >= 0; }); } function Kg(e) { var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Xn(t, { elementContext: "reference" }), l = Xn(t, { altBoundary: !0 }), s = ku(i, n), u = ku(l, o, a), d = Ou(s), p = Ou(u); ((t.modifiersData[r] = { referenceClippingOffsets: s, popperEscapeOffsets: u, isReferenceHidden: d, hasPopperEscaped: p, }), (t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": d, "data-popper-escaped": p, }))); } var px, BO = N(() => { (gt(), gl(), m(ku, "getSideOffsets"), m(Ou, "isAnySideFullyClipped"), m(Kg, "hide"), (px = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Kg, })); }); function fx(e, t, r) { var n = kt(e), o = [Ye, Ge].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : r, i = a[0], l = a[1]; return ( (i = i || 0), (l = (l || 0) * o), [Ye, ut].indexOf(n) >= 0 ? { x: l, y: i } : { x: i, y: l } ); } function Xg(e) { var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = wd.reduce(function (d, p) { return ((d[p] = fx(p, t.rects, a)), d); }, {}), l = i[t.placement], s = l.x, u = l.y; (t.modifiersData.popperOffsets != null && ((t.modifiersData.popperOffsets.x += s), (t.modifiersData.popperOffsets.y += u)), (t.modifiersData[n] = i)); } var gx, NO = N(() => { (sn(), gt(), m(fx, "distanceAndSkiddingToXY"), m(Xg, "offset"), (gx = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: Xg, })); }); function Zg(e) { var t = e.state, r = e.name; t.modifiersData[r] = Pd({ reference: t.rects.reference, element: t.rects.popper, placement: t.placement, }); } var mx, jO = N(() => { (sx(), m(Zg, "popperOffsets"), (mx = { name: "popperOffsets", enabled: !0, phase: "read", fn: Zg, data: {}, })); }); function hx(e) { return e === "x" ? "y" : "x"; } var MO = N(() => { m(hx, "getAltAxis"); }); function Jg(e) { var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, l = i === void 0 ? !1 : i, s = r.boundary, u = r.rootBoundary, d = r.altBoundary, p = r.padding, c = r.tether, f = c === void 0 ? !0 : c, g = r.tetherOffset, y = g === void 0 ? 0 : g, x = Xn(t, { boundary: s, rootBoundary: u, padding: p, altBoundary: d }), v = kt(t.placement), C = tn(t.placement), w = !C, E = cl(v), $ = hx(E), A = t.modifiersData.popperOffsets, S = t.rects.reference, D = t.rects.popper, F = typeof y == "function" ? y(Object.assign({}, t.rects, { placement: t.placement })) : y, k = typeof F == "number" ? { mainAxis: F, altAxis: F } : Object.assign({ mainAxis: 0, altAxis: 0 }, F), _ = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I = { x: 0, y: 0 }; if (A) { if (a) { var L, j = E === "y" ? Ge : Ye, B = E === "y" ? st : ut, z = E === "y" ? "height" : "width", V = A[E], Y = V + x[j], W = V - x[B], G = f ? -D[z] / 2 : 0, J = C === Kr ? S[z] : D[z], Q = C === Kr ? -D[z] : -S[z], re = t.elements.arrow, ie = f && re ? sl(re) : { width: 0, height: 0 }, H = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Dd(), X = H[j], Z = H[B], le = _n(0, S[z], ie[z]), me = w ? S[z] / 2 - G - le - X - k.mainAxis : J - le - X - k.mainAxis, Re = w ? -S[z] / 2 + G + le + Z + k.mainAxis : Q + le + Z + k.mainAxis, ne = t.elements.arrow && lo(t.elements.arrow), de = ne ? (E === "y" ? ne.clientTop || 0 : ne.clientLeft || 0) : 0, M = (L = _?.[E]) != null ? L : 0, U = V + me - M - de, fe = V + Re - M, ke = _n(f ? Ko(Y, U) : Y, V, f ? Cr(W, fe) : W); ((A[E] = ke), (I[E] = ke - V)); } if (l) { var be, We = E === "x" ? Ge : Ye, pr = E === "x" ? st : ut, Ce = A[$], nt = $ === "y" ? "height" : "width", $e = Ce + x[We], ht = Ce - x[pr], Ve = [Ge, Ye].indexOf(v) !== -1, yt = (be = _?.[$]) != null ? be : 0, Rt = Ve ? $e : Ce - S[nt] - D[nt] - yt + k.altAxis, Me = Ve ? Ce + S[nt] + D[nt] - yt - k.altAxis : ht, bt = f && Ve ? Hv(Rt, Ce, Me) : _n(f ? Rt : $e, Ce, f ? Me : ht); ((A[$] = bt), (I[$] = bt - Ce)); } t.modifiersData[n] = I; } } var yx, zO = N(() => { (gt(), sn(), Ad(), MO(), Uv(), Cd(), sa(), gl(), ua(), Wv(), un(), m(Jg, "preventOverflow"), (yx = { name: "preventOverflow", enabled: !0, phase: "main", fn: Jg, requiresIfExists: ["offset"], })); }), bx = N(() => {}); function vx(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } var HO = N(() => { m(vx, "getHTMLElementScroll"); }); function xx(e) { return e === Qe(e) || !lt(e) ? dl(e) : vx(e); } var UO = N(() => { (Fd(), Wt(), mt(), HO(), m(xx, "getNodeScroll")); }); function Ex(e) { var t = e.getBoundingClientRect(), r = Qr(t.width) / e.offsetWidth || 1, n = Qr(t.height) / e.offsetHeight || 1; return r !== 1 || n !== 1; } function wx(e, t, r) { r === void 0 && (r = !1); var n = lt(t), o = lt(t) && Ex(t), a = lr(t), i = en(e, o, r), l = { scrollLeft: 0, scrollTop: 0 }, s = { x: 0, y: 0 }; return ( (n || (!n && !r)) && ((Ot(t) !== "body" || fl(a)) && (l = xx(t)), lt(t) ? ((s = en(t, !0)), (s.x += t.clientLeft), (s.y += t.clientTop)) : a && (s.x = pl(a))), { x: i.left + l.scrollLeft - s.x, y: i.top + l.scrollTop - s.y, width: i.width, height: i.height, } ); } var WO = N(() => { (aa(), UO(), ln(), mt(), _d(), Or(), Td(), un(), m(Ex, "isElementScaled"), m(wx, "getCompositeRect")); }); function Sx(e) { var t = new Map(), r = new Set(), n = []; e.forEach(function (a) { t.set(a.name, a); }); function o(a) { r.add(a.name); var i = [].concat(a.requires || [], a.requiresIfExists || []); (i.forEach(function (l) { if (!r.has(l)) { var s = t.get(l); s && o(s); } }), n.push(a)); } return ( m(o, "sort"), e.forEach(function (a) { r.has(a.name) || o(a); }), n ); } function Cx(e) { var t = Sx(e); return Iv.reduce(function (r, n) { return r.concat( t.filter(function (o) { return o.phase === n; }), ); }, []); } var VO = N(() => { (gt(), m(Sx, "order"), m(Cx, "orderModifiers")); }); function $x(e) { var t; return function () { return ( t || (t = new Promise(function (r) { Promise.resolve().then(function () { ((t = void 0), r(e())); }); })), t ); }; } var qO = N(() => { m($x, "debounce"); }); function Ax(e) { var t = e.reduce(function (r, n) { var o = r[n.name]; return ( (r[n.name] = o ? Object.assign({}, o, n, { options: Object.assign({}, o.options, n.options), data: Object.assign({}, o.data, n.data), }) : n), r ); }, {}); return Object.keys(t).map(function (r) { return t[r]; }); } var GO = N(() => { m(Ax, "mergeByName"); }); function Fu() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return !t.some(function (n) { return !(n && typeof n.getBoundingClientRect == "function"); }); } function Dx(e) { e === void 0 && (e = {}); var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? _u : o; return m(function (i, l, s) { s === void 0 && (s = a); var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, _u, a), modifiersData: {}, elements: { reference: i, popper: l }, attributes: {}, styles: {}, }, d = [], p = !1, c = { state: u, setOptions: m(function (y) { var x = typeof y == "function" ? y(u.options) : y; (g(), (u.options = Object.assign({}, a, u.options, x)), (u.scrollParents = { reference: Dr(i) ? Tn(i) : i.contextElement ? Tn(i.contextElement) : [], popper: Tn(l), })); var v = Cx(Ax([].concat(n, u.options.modifiers))); return ( (u.orderedModifiers = v.filter(function (C) { return C.enabled; })), f(), c.update() ); }, "setOptions"), forceUpdate: m(function () { if (!p) { var y = u.elements, x = y.reference, v = y.popper; if (Fu(x, v)) { ((u.rects = { reference: wx(x, lo(v), u.options.strategy === "fixed"), popper: sl(v), }), (u.reset = !1), (u.placement = u.options.placement), u.orderedModifiers.forEach(function (D) { return (u.modifiersData[D.name] = Object.assign({}, D.data)); })); for (var C = 0; C < u.orderedModifiers.length; C++) { if (u.reset === !0) { ((u.reset = !1), (C = -1)); continue; } var w = u.orderedModifiers[C], E = w.fn, $ = w.options, A = $ === void 0 ? {} : $, S = w.name; typeof E == "function" && (u = E({ state: u, options: A, name: S, instance: c }) || u); } } } }, "forceUpdate"), update: $x(function () { return new Promise(function (y) { (c.forceUpdate(), y(u)); }); }), destroy: m(function () { (g(), (p = !0)); }, "destroy"), }; if (!Fu(i, l)) return c; c.setOptions(s).then(function (y) { !p && s.onFirstUpdate && s.onFirstUpdate(y); }); function f() { u.orderedModifiers.forEach(function (y) { var x = y.name, v = y.options, C = v === void 0 ? {} : v, w = y.effect; if (typeof w == "function") { var E = w({ state: u, name: x, instance: c, options: C }), $ = m(function () {}, "noopFn"); d.push(E || $); } }); } m(f, "runModifierEffects"); function g() { (d.forEach(function (y) { return y(); }), (d = [])); } return (m(g, "cleanupModifierEffects"), c); }, "createPopper"); } var _u, YO = N(() => { (WO(), Cd(), nx(), sa(), VO(), qO(), GO(), mt(), (_u = { placement: "bottom", modifiers: [], strategy: "absolute" }), m(Fu, "areValidElements"), m(Dx, "popperGenerator")); }), Qg, kx, KO = N(() => { (YO(), kO(), jO(), DO(), CO(), NO(), LO(), zO(), AO(), BO(), bx(), (Qg = [Jv, mx, Zv, Lv, gx, dx, yx, Yv, px]), (kx = Dx({ defaultModifiers: Qg }))); }), XO = N(() => { (gt(), bx(), KO()); }), ZO = te((e, t) => { var r = typeof Element < "u", n = typeof Map == "function", o = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; function i(l, s) { if (l === s) return !0; if (l && s && typeof l == "object" && typeof s == "object") { if (l.constructor !== s.constructor) return !1; var u, d, p; if (Array.isArray(l)) { if (((u = l.length), u != s.length)) return !1; for (d = u; d-- !== 0; ) if (!i(l[d], s[d])) return !1; return !0; } var c; if (n && l instanceof Map && s instanceof Map) { if (l.size !== s.size) return !1; for (c = l.entries(); !(d = c.next()).done; ) if (!s.has(d.value[0])) return !1; for (c = l.entries(); !(d = c.next()).done; ) if (!i(d.value[1], s.get(d.value[0]))) return !1; return !0; } if (o && l instanceof Set && s instanceof Set) { if (l.size !== s.size) return !1; for (c = l.entries(); !(d = c.next()).done; ) if (!s.has(d.value[0])) return !1; return !0; } if (a && ArrayBuffer.isView(l) && ArrayBuffer.isView(s)) { if (((u = l.length), u != s.length)) return !1; for (d = u; d-- !== 0; ) if (l[d] !== s[d]) return !1; return !0; } if (l.constructor === RegExp) return l.source === s.source && l.flags === s.flags; if ( l.valueOf !== Object.prototype.valueOf && typeof l.valueOf == "function" && typeof s.valueOf == "function" ) return l.valueOf() === s.valueOf(); if ( l.toString !== Object.prototype.toString && typeof l.toString == "function" && typeof s.toString == "function" ) return l.toString() === s.toString(); if (((p = Object.keys(l)), (u = p.length), u !== Object.keys(s).length)) return !1; for (d = u; d-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(s, p[d])) return !1; if (r && l instanceof Element) return !1; for (d = u; d-- !== 0; ) if ( !( (p[d] === "_owner" || p[d] === "__v" || p[d] === "__o") && l.$$typeof ) && !i(l[p[d]], s[p[d]]) ) return !1; return !0; } return l !== l && s !== s; } (m(i, "equal"), (t.exports = m(function (l, s) { try { return i(l, s); } catch (u) { if ((u.message || "").match(/stack|recursion/i)) return ( console.warn("react-fast-compare cannot handle circular refs"), !1 ); throw u; } }, "isEqual"))); }), em, tm, Ox, JO = N(() => { (XO(), (em = je(ZO())), SO(), (tm = []), (Ox = m(function (e, t, r) { r === void 0 && (r = {}); var n = b.useRef(null), o = { onFirstUpdate: r.onFirstUpdate, placement: r.placement || "bottom", strategy: r.strategy || "absolute", modifiers: r.modifiers || tm, }, a = b.useState({ styles: { popper: { position: o.strategy, left: "0", top: "0" }, arrow: { position: "absolute" }, }, attributes: {}, }), i = a[0], l = a[1], s = b.useMemo(function () { return { name: "updateState", enabled: !0, phase: "write", fn: m(function (p) { var c = p.state, f = Object.keys(c.elements); Qi.flushSync(function () { l({ styles: Eu( f.map(function (g) { return [g, c.styles[g] || {}]; }), ), attributes: Eu( f.map(function (g) { return [g, c.attributes[g]]; }), ), }); }); }, "fn"), requires: ["computeStyles"], }; }, []), u = b.useMemo( function () { var p = { onFirstUpdate: o.onFirstUpdate, placement: o.placement, strategy: o.strategy, modifiers: [].concat(o.modifiers, [ s, { name: "applyStyles", enabled: !1 }, ]), }; return (0, em.default)(n.current, p) ? n.current || p : ((n.current = p), p); }, [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, s], ), d = b.useRef(); return ( wu( function () { d.current && d.current.setOptions(u); }, [u], ), wu( function () { if (!(e == null || t == null)) { var p = r.createPopper || kx, c = p(e, t, u); return ( (d.current = c), function () { (c.destroy(), (d.current = null)); } ); } }, [e, t, r.createPopper], ), { state: d.current ? d.current.state : null, styles: i.styles, attributes: i.attributes, update: d.current ? d.current.update : null, forceUpdate: d.current ? d.current.forceUpdate : null, } ); }, "usePopper"))); }), QO = N(() => { JO(); }); function Id(e) { var t = b.useRef(e); return ( (t.current = e), b.useCallback(function () { return t.current; }, []) ); } function Fx(e) { var t = e.initial, r = e.value, n = e.onChange, o = n === void 0 ? Tx : n; if (t === void 0 && r === void 0) throw new TypeError( 'Either "value" or "initial" variable must be set. Now both are undefined', ); var a = b.useState(t), i = a[0], l = a[1], s = Id(i), u = b.useCallback( function (p) { var c = s(), f = typeof p == "function" ? p(c) : p; (typeof f.persist == "function" && f.persist(), l(f), typeof o == "function" && o(f)); }, [s, o], ), d = r !== void 0; return [d ? r : i, d ? o : u]; } function Tu(e, t) { return ( e === void 0 && (e = 0), t === void 0 && (t = 0), function () { return { width: 0, height: 0, top: t, right: e, bottom: t, left: e, x: 0, y: 0, toJSON: m(function () { return null; }, "toJSON"), }; } ); } function _x(e, t) { var r, n, o; (e === void 0 && (e = {}), t === void 0 && (t = {})); var a = Object.keys(Pu).reduce(function (B, z) { var V; return xe({}, B, ((V = {}), (V[z] = B[z] !== void 0 ? B[z] : Pu[z]), V)); }, e), i = b.useMemo( function () { return [{ name: "offset", options: { offset: a.offset } }]; }, Array.isArray(a.offset) ? a.offset : [], ), l = xe({}, t, { placement: t.placement || a.placement, modifiers: t.modifiers || i, }), s = b.useState(null), u = s[0], d = s[1], p = b.useState(null), c = p[0], f = p[1], g = Fx({ initial: a.defaultVisible, value: a.visible, onChange: a.onVisibleChange, }), y = g[0], x = g[1], v = b.useRef(); b.useEffect(function () { return function () { return clearTimeout(v.current); }; }, []); var C = Ox(a.followCursor ? Ru : u, c, l), w = C.styles, E = C.attributes, $ = nl(C, Rx), A = $.update, S = Id({ visible: y, triggerRef: u, tooltipRef: c, finalConfig: a }), D = b.useCallback( function (B) { return Array.isArray(a.trigger) ? a.trigger.includes(B) : a.trigger === B; }, Array.isArray(a.trigger) ? a.trigger : [a.trigger], ), F = b.useCallback( function () { (clearTimeout(v.current), (v.current = window.setTimeout(function () { return x(!1); }, a.delayHide))); }, [a.delayHide, x], ), k = b.useCallback( function () { (clearTimeout(v.current), (v.current = window.setTimeout(function () { return x(!0); }, a.delayShow))); }, [a.delayShow, x], ), _ = b.useCallback( function () { S().visible ? F() : k(); }, [S, F, k], ); (b.useEffect( function () { if (S().finalConfig.closeOnOutsideClick) { var B = m(function (z) { var V, Y = S(), W = Y.tooltipRef, G = Y.triggerRef, J = (z.composedPath == null || (V = z.composedPath()) == null ? void 0 : V[0]) || z.target; J instanceof Node && W != null && G != null && !W.contains(J) && !G.contains(J) && F(); }, "handleClickOutside"); return ( document.addEventListener("mousedown", B), function () { return document.removeEventListener("mousedown", B); } ); } }, [S, F], ), b.useEffect( function () { if (!(u == null || !D("click"))) return ( u.addEventListener("click", _), function () { return u.removeEventListener("click", _); } ); }, [u, D, _], ), b.useEffect( function () { if (!(u == null || !D("double-click"))) return ( u.addEventListener("dblclick", _), function () { return u.removeEventListener("dblclick", _); } ); }, [u, D, _], ), b.useEffect( function () { if (!(u == null || !D("right-click"))) { var B = m(function (z) { (z.preventDefault(), _()); }, "preventDefaultAndToggle"); return ( u.addEventListener("contextmenu", B), function () { return u.removeEventListener("contextmenu", B); } ); } }, [u, D, _], ), b.useEffect( function () { if (!(u == null || !D("focus"))) return ( u.addEventListener("focus", k), u.addEventListener("blur", F), function () { (u.removeEventListener("focus", k), u.removeEventListener("blur", F)); } ); }, [u, D, k, F], ), b.useEffect( function () { if (!(u == null || !D("hover"))) return ( u.addEventListener("mouseenter", k), u.addEventListener("mouseleave", F), function () { (u.removeEventListener("mouseenter", k), u.removeEventListener("mouseleave", F)); } ); }, [u, D, k, F], ), b.useEffect( function () { if (!(c == null || !D("hover") || !S().finalConfig.interactive)) return ( c.addEventListener("mouseenter", k), c.addEventListener("mouseleave", F), function () { (c.removeEventListener("mouseenter", k), c.removeEventListener("mouseleave", F)); } ); }, [c, D, k, F, S], )); var I = $ == null || (r = $.state) == null || (n = r.modifiersData) == null || (o = n.hide) == null ? void 0 : o.isReferenceHidden; (b.useEffect( function () { a.closeOnTriggerHidden && I && F(); }, [a.closeOnTriggerHidden, F, I], ), b.useEffect( function () { if (!a.followCursor || u == null) return; function B(z) { var V = z.clientX, Y = z.clientY; ((Ru.getBoundingClientRect = Tu(V, Y)), A?.()); } return ( m(B, "setMousePosition"), u.addEventListener("mousemove", B), function () { return u.removeEventListener("mousemove", B); } ); }, [a.followCursor, u, A], ), b.useEffect( function () { if (!(c == null || A == null || a.mutationObserverOptions == null)) { var B = new MutationObserver(A); return ( B.observe(c, a.mutationObserverOptions), function () { return B.disconnect(); } ); } }, [a.mutationObserverOptions, c, A], )); var L = m(function (B) { return ( B === void 0 && (B = {}), xe({}, B, { style: xe({}, B.style, w.popper) }, E.popper, { "data-popper-interactive": a.interactive, }) ); }, "getTooltipProps"), j = m(function (B) { return ( B === void 0 && (B = {}), xe({}, B, E.arrow, { style: xe({}, B.style, w.arrow), "data-popper-arrow": !0, }) ); }, "getArrowProps"); return xe( { getArrowProps: j, getTooltipProps: L, setTooltipRef: f, setTriggerRef: d, tooltipRef: c, triggerRef: u, visible: y, }, $, ); } var Tx, Rx, Ru, Pu, eF = N(() => { (sd(), tl(), QO(), m(Id, "useGetLatest"), (Tx = m(function () {}, "noop")), m(Fx, "useControlledState"), m(Tu, "generateBoundingClientRect"), (Rx = ["styles", "attributes"]), (Ru = { getBoundingClientRect: Tu() }), (Pu = { closeOnOutsideClick: !0, closeOnTriggerHidden: !1, defaultVisible: !1, delayHide: 0, delayShow: 0, followCursor: !1, interactive: !1, mutationObserverOptions: { attributes: !0, childList: !0, subtree: !0 }, offset: [0, 6], trigger: "hover", }), m(_x, "usePopperTooltip")); }), rm, at, Kt, nm, om, Iu, tF = N(() => { ((rm = je(rl(), 1)), (at = (0, rm.default)(1e3)((e, t, r, n = 0) => t.split("-")[0] === e ? r : n, )), (Kt = 8), (nm = T.div( { position: "absolute", borderStyle: "solid" }, ({ placement: e }) => { let t = 0, r = 0; switch (!0) { case e.startsWith("left") || e.startsWith("right"): { r = 8; break; } case e.startsWith("top") || e.startsWith("bottom"): { t = 8; break; } } return { transform: `translate3d(${t}px, ${r}px, 0px)` }; }, ({ theme: e, color: t, placement: r }) => ({ bottom: `${at("top", r, `${Kt * -1}px`, "auto")}`, top: `${at("bottom", r, `${Kt * -1}px`, "auto")}`, right: `${at("left", r, `${Kt * -1}px`, "auto")}`, left: `${at("right", r, `${Kt * -1}px`, "auto")}`, borderBottomWidth: `${at("top", r, "0", Kt)}px`, borderTopWidth: `${at("bottom", r, "0", Kt)}px`, borderRightWidth: `${at("left", r, "0", Kt)}px`, borderLeftWidth: `${at("right", r, "0", Kt)}px`, borderTopColor: at( "top", r, e.color[t] || t || e.base === "light" ? wn(e.background.app) : e.background.app, "transparent", ), borderBottomColor: at( "bottom", r, e.color[t] || t || e.base === "light" ? wn(e.background.app) : e.background.app, "transparent", ), borderLeftColor: at( "left", r, e.color[t] || t || e.base === "light" ? wn(e.background.app) : e.background.app, "transparent", ), borderRightColor: at( "right", r, e.color[t] || t || e.base === "light" ? wn(e.background.app) : e.background.app, "transparent", ), }), )), (om = T.div( ({ hidden: e }) => ({ display: e ? "none" : "inline-block", zIndex: 2147483647, colorScheme: "light dark", }), ({ theme: e, color: t, hasChrome: r }) => r ? { background: (t && e.color[t]) || t || e.base === "light" ? wn(e.background.app) : e.background.app, filter: ` drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)) `, borderRadius: e.appBorderRadius + 2, fontSize: e.typography.size.s1, } : {}, )), (Iu = h.forwardRef( ( { placement: e = "top", hasChrome: t = !0, children: r, arrowProps: n = {}, tooltipRef: o, color: a, withArrows: i, ...l }, s, ) => h.createElement( om, { "data-testid": "tooltip", hasChrome: t, ref: s, ...l, color: a }, t && i && h.createElement(nm, { placement: e, ...n, color: a }), r, ), )), (Iu.displayName = "Tooltip")); }), Ld = {}; na(Ld, { WithToolTipState: () => Si, WithTooltip: () => Si, WithTooltipPure: () => Lu, }); const { global: rF } = __STORYBOOK_MODULE_GLOBAL__; var wo, am, im, Lu, Si, Bd = N(() => { (eF(), tF(), ({ document: wo } = rF), (am = T.div` display: inline-block; cursor: ${(e) => (e.trigger === "hover" || e.trigger?.includes("hover") ? "default" : "pointer")}; `), (im = T.g` cursor: ${(e) => (e.trigger === "hover" || e.trigger?.includes("hover") ? "default" : "pointer")}; `), (Lu = m( ({ svg: e = !1, trigger: t = "click", closeOnOutsideClick: r = !1, placement: n = "top", modifiers: o = [ { name: "preventOverflow", options: { padding: 8 } }, { name: "offset", options: { offset: [8, 8] } }, { name: "arrow", options: { padding: 8 } }, ], hasChrome: a = !0, defaultVisible: i = !1, withArrows: l, offset: s, tooltip: u, children: d, closeOnTriggerHidden: p, mutationObserverOptions: c, delayHide: f = t === "hover" ? 200 : 0, visible: g, interactive: y, delayShow: x = t === "hover" ? 400 : 0, strategy: v, followCursor: C, onVisibleChange: w, ...E }) => { let $ = e ? im : am, { getArrowProps: A, getTooltipProps: S, setTooltipRef: D, setTriggerRef: F, visible: k, state: _, } = _x( { trigger: t, placement: n, defaultVisible: i, delayHide: f, interactive: y, closeOnOutsideClick: r, closeOnTriggerHidden: p, onVisibleChange: w, delayShow: x, followCursor: C, mutationObserverOptions: c, visible: g, offset: s, }, { modifiers: o, strategy: v }, ), I = k ? h.createElement( Iu, { placement: _?.placement, ref: D, hasChrome: a, arrowProps: A(), withArrows: l, ...S(), }, typeof u == "function" ? u({ onHide: m(() => w(!1), "onHide") }) : u, ) : null; return h.createElement( h.Fragment, null, h.createElement($, { trigger: t, ref: F, ...E }, d), k && x1.createPortal(I, wo.body), ); }, "WithTooltipPure", )), (Si = m(({ startOpen: e = !1, onVisibleChange: t, ...r }) => { let [n, o] = b.useState(e), a = b.useCallback( (i) => { (t && t(i) === !1) || o(i); }, [t], ); return ( b.useEffect(() => { let i = m(() => a(!1), "hide"); wo.addEventListener("keydown", i, !1); let l = Array.from(wo.getElementsByTagName("iframe")), s = []; return ( l.forEach((u) => { let d = m(() => { try { u.contentWindow.document && (u.contentWindow.document.addEventListener("click", i), s.push(() => { try { u.contentWindow.document.removeEventListener( "click", i, ); } catch {} })); } catch {} }, "bind"); (d(), u.addEventListener("load", d), s.push(() => { u.removeEventListener("load", d); })); }), () => { (wo.removeEventListener("keydown", i), s.forEach((u) => { u(); })); } ); }), h.createElement(Lu, { ...r, visible: n, onVisibleChange: a }) ); }, "WithToolTipState"))); }), ve = m(({ ...e }, t) => { let r = [e.class, e.className]; return ( delete e.class, (e.className = ["sbdocs", `sbdocs-${t}`, ...r].filter(Boolean).join(" ")), e ); }, "nameSpaceClassNames"); tl(); ok(); ld(); function Px(e, t) { ((e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), Yn(e, t)); } m(Px, "_inheritsLoose"); ak(); ld(); function Ix(e) { try { return Function.toString.call(e).indexOf("[native code]") !== -1; } catch { return typeof e == "function"; } } m(Ix, "_isNativeFunction"); function Nd() { try { var e = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function () {}), ); } catch {} return (Nd = m(function () { return !!e; }, "_isNativeReflectConstruct"))(); } m(Nd, "_isNativeReflectConstruct"); ld(); function Lx(e, t, r) { if (Nd()) return Reflect.construct.apply(null, arguments); var n = [null]; n.push.apply(n, t); var o = new (e.bind.apply(e, n))(); return (r && Yn(o, r.prototype), o); } m(Lx, "_construct"); function Ci(e) { var t = typeof Map == "function" ? new Map() : void 0; return ( (Ci = m(function (r) { if (r === null || !Ix(r)) return r; if (typeof r != "function") throw new TypeError( "Super expression must either be null or a function", ); if (t !== void 0) { if (t.has(r)) return t.get(r); t.set(r, n); } function n() { return Lx(r, arguments, mi(this).constructor); } return ( m(n, "Wrapper"), (n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0, }, })), Yn(n, r) ); }, "_wrapNativeSuper")), Ci(e) ); } m(Ci, "_wrapNativeSuper"); var nF = { 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `, 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). `, 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. `, 4: `Couldn't generate valid rgb string from %s, it returned %s. `, 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. `, 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). `, 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). `, 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. `, 9: `Please provide a number of steps to the modularScale helper. `, 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" `, 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. `, 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. `, 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. `, 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. `, 16: `You must provide a template to this method. `, 17: `You passed an unsupported selector state to this method. `, 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 19: `fromSize and toSize must be provided as stringified numbers with the same units. `, 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 23: `fontFace expects a name of a font-family. `, 24: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 25: `fontFace expects localFonts to be an array. `, 26: `fontFace expects fileFormats to be an array. `, 27: `radialGradient requries at least 2 color-stops to properly render. `, 28: `Please supply a filename to retinaImage() as the first argument. `, 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation `, 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') `, 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation `, 34: `borderRadius expects a radius value as a string or number as the second argument. `, 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 36: `Property must be a string value. `, 37: `Syntax Error at %s. `, 38: `Formula contains a function that needs parentheses at %s. `, 39: `Formula is missing closing parenthesis at %s. `, 40: `Formula has too many closing parentheses at %s. `, 41: `All values in a formula must have the same unit or be unitless. `, 42: `Please provide a number of steps to the modularScale helper. `, 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. `, 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. `, 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. `, 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 48: `fromSize and toSize must be provided as stringified numbers with the same units. `, 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. `, 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. `, 52: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 53: `fontFace expects localFonts to be an array. `, 54: `fontFace expects fileFormats to be an array. `, 55: `fontFace expects a name of a font-family. `, 56: `linearGradient requries at least 2 color-stops to properly render. `, 57: `radialGradient requries at least 2 color-stops to properly render. `, 58: `Please supply a filename to retinaImage() as the first argument. `, 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 61: `Property must be a string value. `, 62: `borderRadius expects a radius value as a string or number as the second argument. `, 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. `, 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). `, 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. `, 67: `You must provide a template to this method. `, 68: `You passed an unsupported selector state to this method. `, 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. `, 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. `, 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. `, 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. `, 73: `Please provide a valid CSS variable. `, 74: `CSS variable not found and no default was provided. `, 75: `important requires a valid style object, got a %s instead. `, 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. `, 77: `remToPx expects a value in "rem" but you provided it in "%s". `, 78: `base must be set in "px" or "%" but you set it in "%s". `, }; function Bx() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; var n = t[0], o = [], a; for (a = 1; a < t.length; a += 1) o.push(t[a]); return ( o.forEach(function (i) { n = n.replace(/%[a-z]/, i); }), n ); } m(Bx, "format"); var Xe = (function (e) { Px(t, e); function t(r) { for ( var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++ ) a[i - 1] = arguments[i]; return ( (n = e.call(this, Bx.apply(void 0, [nF[r]].concat(a))) || this), E1(n) ); } return (m(t, "PolishedError"), t); })(Ci(Error)); function Bu(e, t) { return e.substr(-t.length) === t; } m(Bu, "endsWith"); var oF = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; function Nu(e) { if (typeof e != "string") return e; var t = e.match(oF); return t ? parseFloat(e) : e; } m(Nu, "stripUnit"); var aF = m(function (e) { return function (t, r) { r === void 0 && (r = "16px"); var n = t, o = r; if (typeof t == "string") { if (!Bu(t, "px")) throw new Xe(69, e, t); n = Nu(t); } if (typeof r == "string") { if (!Bu(r, "px")) throw new Xe(70, e, r); o = Nu(r); } if (typeof n == "string") throw new Xe(71, t, e); if (typeof o == "string") throw new Xe(72, r, e); return "" + n / o + e; }; }, "pxtoFactory"), Nx = aF; Nx("em"); Nx("rem"); function Ha(e) { return Math.round(e * 255); } m(Ha, "colorToInt"); function jx(e, t, r) { return Ha(e) + "," + Ha(t) + "," + Ha(r); } m(jx, "convertToInt"); function Zn(e, t, r, n) { if ((n === void 0 && (n = jx), t === 0)) return n(r, r, r); var o = (((e % 360) + 360) % 360) / 60, a = (1 - Math.abs(2 * r - 1)) * t, i = a * (1 - Math.abs((o % 2) - 1)), l = 0, s = 0, u = 0; o >= 0 && o < 1 ? ((l = a), (s = i)) : o >= 1 && o < 2 ? ((l = i), (s = a)) : o >= 2 && o < 3 ? ((s = a), (u = i)) : o >= 3 && o < 4 ? ((s = i), (u = a)) : o >= 4 && o < 5 ? ((l = i), (u = a)) : o >= 5 && o < 6 && ((l = a), (u = i)); var d = r - a / 2, p = l + d, c = s + d, f = u + d; return n(p, c, f); } m(Zn, "hslToRgb"); var lm = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "639", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32", }; function Mx(e) { if (typeof e != "string") return e; var t = e.toLowerCase(); return lm[t] ? "#" + lm[t] : e; } m(Mx, "nameToHex"); var iF = /^#[a-fA-F0-9]{6}$/, lF = /^#[a-fA-F0-9]{8}$/, sF = /^#[a-fA-F0-9]{3}$/, uF = /^#[a-fA-F0-9]{4}$/, cs = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, cF = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, dF = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, pF = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; function rn(e) { if (typeof e != "string") throw new Xe(3); var t = Mx(e); if (t.match(iF)) return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), }; if (t.match(lF)) { var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), alpha: r, }; } if (t.match(sF)) return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), }; if (t.match(uF)) { var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), alpha: n, }; } var o = cs.exec(t); if (o) return { red: parseInt("" + o[1], 10), green: parseInt("" + o[2], 10), blue: parseInt("" + o[3], 10), }; var a = cF.exec(t.substring(0, 50)); if (a) return { red: parseInt("" + a[1], 10), green: parseInt("" + a[2], 10), blue: parseInt("" + a[3], 10), alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4]), }; var i = dF.exec(t); if (i) { var l = parseInt("" + i[1], 10), s = parseInt("" + i[2], 10) / 100, u = parseInt("" + i[3], 10) / 100, d = "rgb(" + Zn(l, s, u) + ")", p = cs.exec(d); if (!p) throw new Xe(4, t, d); return { red: parseInt("" + p[1], 10), green: parseInt("" + p[2], 10), blue: parseInt("" + p[3], 10), }; } var c = pF.exec(t.substring(0, 50)); if (c) { var f = parseInt("" + c[1], 10), g = parseInt("" + c[2], 10) / 100, y = parseInt("" + c[3], 10) / 100, x = "rgb(" + Zn(f, g, y) + ")", v = cs.exec(x); if (!v) throw new Xe(4, t, x); return { red: parseInt("" + v[1], 10), green: parseInt("" + v[2], 10), blue: parseInt("" + v[3], 10), alpha: parseFloat("" + c[4]) > 1 ? parseFloat("" + c[4]) / 100 : parseFloat("" + c[4]), }; } throw new Xe(5); } m(rn, "parseToRgb"); function zx(e) { var t = e.red / 255, r = e.green / 255, n = e.blue / 255, o = Math.max(t, r, n), a = Math.min(t, r, n), i = (o + a) / 2; if (o === a) return e.alpha !== void 0 ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } : { hue: 0, saturation: 0, lightness: i }; var l, s = o - a, u = i > 0.5 ? s / (2 - o - a) : s / (o + a); switch (o) { case t: l = (r - n) / s + (r < n ? 6 : 0); break; case r: l = (n - t) / s + 2; break; default: l = (t - r) / s + 4; break; } return ( (l *= 60), e.alpha !== void 0 ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } : { hue: l, saturation: u, lightness: i } ); } m(zx, "rgbToHsl"); function sr(e) { return zx(rn(e)); } m(sr, "parseToHsl"); var fF = m(function (e) { return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e; }, "reduceHexValue"), ju = fF; function Er(e) { var t = e.toString(16); return t.length === 1 ? "0" + t : t; } m(Er, "numberToHex"); function Ua(e) { return Er(Math.round(e * 255)); } m(Ua, "colorToHex"); function Hx(e, t, r) { return ju("#" + Ua(e) + Ua(t) + Ua(r)); } m(Hx, "convertToHex"); function Xo(e, t, r) { return Zn(e, t, r, Hx); } m(Xo, "hslToHex"); function Ux(e, t, r) { if (typeof e == "number" && typeof t == "number" && typeof r == "number") return Xo(e, t, r); if (typeof e == "object" && t === void 0 && r === void 0) return Xo(e.hue, e.saturation, e.lightness); throw new Xe(1); } m(Ux, "hsl"); function Wx(e, t, r, n) { if ( typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof n == "number" ) return n >= 1 ? Xo(e, t, r) : "rgba(" + Zn(e, t, r) + "," + n + ")"; if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) return e.alpha >= 1 ? Xo(e.hue, e.saturation, e.lightness) : "rgba(" + Zn(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; throw new Xe(2); } m(Wx, "hsla"); function $i(e, t, r) { if (typeof e == "number" && typeof t == "number" && typeof r == "number") return ju("#" + Er(e) + Er(t) + Er(r)); if (typeof e == "object" && t === void 0 && r === void 0) return ju("#" + Er(e.red) + Er(e.green) + Er(e.blue)); throw new Xe(6); } m($i, "rgb"); function nn(e, t, r, n) { if (typeof e == "string" && typeof t == "number") { var o = rn(e); return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; } else { if ( typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof n == "number" ) return n >= 1 ? $i(e, t, r) : "rgba(" + e + "," + t + "," + r + "," + n + ")"; if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) return e.alpha >= 1 ? $i(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; } throw new Xe(7); } m(nn, "rgba"); var gF = m(function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, "isRgb"), mF = m(function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number" ); }, "isRgba"), hF = m(function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, "isHsl"), yF = m(function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number" ); }, "isHsla"); function ur(e) { if (typeof e != "object") throw new Xe(8); if (mF(e)) return nn(e); if (gF(e)) return $i(e); if (yF(e)) return Wx(e); if (hF(e)) return Ux(e); throw new Xe(8); } m(ur, "toColorString"); function jd(e, t, r) { return m(function () { var n = r.concat(Array.prototype.slice.call(arguments)); return n.length >= t ? e.apply(this, n) : jd(e, t, n); }, "fn"); } m(jd, "curried"); function rt(e) { return jd(e, e.length, []); } m(rt, "curry"); function Vx(e, t) { if (t === "transparent") return t; var r = sr(t); return ur(xe({}, r, { hue: r.hue + parseFloat(e) })); } m(Vx, "adjustHue"); rt(Vx); function cn(e, t, r) { return Math.max(e, Math.min(t, r)); } m(cn, "guard"); function qx(e, t) { if (t === "transparent") return t; var r = sr(t); return ur(xe({}, r, { lightness: cn(0, 1, r.lightness - parseFloat(e)) })); } m(qx, "darken"); var bF = rt(qx), kn = bF; function Gx(e, t) { if (t === "transparent") return t; var r = sr(t); return ur(xe({}, r, { saturation: cn(0, 1, r.saturation - parseFloat(e)) })); } m(Gx, "desaturate"); rt(Gx); function Yx(e, t) { if (t === "transparent") return t; var r = sr(t); return ur(xe({}, r, { lightness: cn(0, 1, r.lightness + parseFloat(e)) })); } m(Yx, "lighten"); var vF = rt(Yx), sm = vF; function Kx(e, t, r) { if (t === "transparent") return r; if (r === "transparent") return t; if (e === 0) return r; var n = rn(t), o = xe({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), a = rn(r), i = xe({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), l = o.alpha - i.alpha, s = parseFloat(e) * 2 - 1, u = s * l === -1 ? s : s + l, d = 1 + s * l, p = (u / d + 1) / 2, c = 1 - p, f = { red: Math.floor(o.red * p + i.red * c), green: Math.floor(o.green * p + i.green * c), blue: Math.floor(o.blue * p + i.blue * c), alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), }; return nn(f); } m(Kx, "mix"); var xF = rt(Kx), Xx = xF; function Zx(e, t) { if (t === "transparent") return t; var r = rn(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = xe({}, r, { alpha: cn(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); return nn(o); } m(Zx, "opacify"); rt(Zx); function Jx(e, t) { if (t === "transparent") return t; var r = sr(t); return ur(xe({}, r, { saturation: cn(0, 1, r.saturation + parseFloat(e)) })); } m(Jx, "saturate"); rt(Jx); function Qx(e, t) { return t === "transparent" ? t : ur(xe({}, sr(t), { hue: parseFloat(e) })); } m(Qx, "setHue"); rt(Qx); function eE(e, t) { return t === "transparent" ? t : ur(xe({}, sr(t), { lightness: parseFloat(e) })); } m(eE, "setLightness"); rt(eE); function tE(e, t) { return t === "transparent" ? t : ur(xe({}, sr(t), { saturation: parseFloat(e) })); } m(tE, "setSaturation"); rt(tE); function rE(e, t) { return t === "transparent" ? t : Xx(parseFloat(e), "rgb(0, 0, 0)", t); } m(rE, "shade"); rt(rE); function nE(e, t) { return t === "transparent" ? t : Xx(parseFloat(e), "rgb(255, 255, 255)", t); } m(nE, "tint"); rt(nE); function oE(e, t) { if (t === "transparent") return t; var r = rn(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = xe({}, r, { alpha: cn(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), }); return nn(o); } m(oE, "transparentize"); var EF = rt(oE), pt = EF, so = m( ({ theme: e }) => ({ margin: "20px 0 8px", padding: 0, cursor: "text", position: "relative", color: e.color.defaultText, "&:first-of-type": { marginTop: 0, paddingTop: 0 }, "&:hover a.anchor": { textDecoration: "none" }, "& tt, & code": { fontSize: "inherit" }, }), "headerCommon", ), cr = m( ({ theme: e }) => ({ lineHeight: 1, margin: "0 2px", padding: "3px 5px", whiteSpace: "nowrap", borderRadius: 3, fontSize: e.typography.size.s2 - 1, border: e.base === "light" ? `1px solid ${e.color.mediumlight}` : `1px solid ${e.color.darker}`, color: e.base === "light" ? pt(0.1, e.color.defaultText) : pt(0.3, e.color.defaultText), backgroundColor: e.base === "light" ? e.color.lighter : e.color.border, }), "codeCommon", ), we = m( ({ theme: e }) => ({ fontFamily: e.typography.fonts.base, fontSize: e.typography.size.s3, margin: 0, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", WebkitOverflowScrolling: "touch", }), "withReset", ), dn = { margin: "16px 0" }, Md = T.div(we), wF = m(({ href: e = "", ...t }) => { let r = /^\//.test(e) ? `./?path=${e}` : e, n = /^#.*/.test(e) ? "_self" : "_top"; return h.createElement("a", { href: r, target: n, ...t }); }, "Link"), aE = T(wF)(we, ({ theme: e }) => ({ fontSize: "inherit", lineHeight: "24px", color: e.color.secondary, textDecoration: "none", "&.absent": { color: "#cc0000" }, "&.anchor": { display: "block", paddingLeft: 30, marginLeft: -30, cursor: "pointer", position: "absolute", top: 0, left: 0, bottom: 0, }, })), iE = T.blockquote(we, dn, ({ theme: e }) => ({ borderLeft: `4px solid ${e.color.medium}`, padding: "0 15px", color: e.color.dark, "& > :first-of-type": { marginTop: 0 }, "& > :last-child": { marginBottom: 0 }, })); il(); var SF = m((e) => typeof e == "string", "isReactChildString"), CF = /[\n\r]/g, $F = T.code( ({ theme: e }) => ({ fontFamily: e.typography.fonts.mono, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", display: "inline-block", paddingLeft: 2, paddingRight: 2, verticalAlign: "baseline", color: "inherit", }), cr, ), AF = T(Ho)(({ theme: e }) => ({ fontFamily: e.typography.fonts.mono, fontSize: `${e.typography.size.s2 - 1}px`, lineHeight: "19px", margin: "25px 0 40px", borderRadius: e.appBorderRadius, boxShadow: e.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", "pre.prismjs": { padding: 20, background: "inherit" }, })), zd = m(({ className: e, children: t, ...r }) => { let n = (e || "").match(/lang-(\S+)/), o = b.Children.toArray(t); return o.filter(SF).some((a) => a.match(CF)) ? h.createElement( AF, { bordered: !0, copyable: !0, language: n?.[1] ?? "text", format: !1, ...r, }, t, ) : h.createElement($F, { ...r, className: e }, o); }, "Code"), lE = T.dl(we, dn, { padding: 0, "& dt": { fontSize: "14px", fontWeight: "bold", fontStyle: "italic", padding: 0, margin: "16px 0 4px", }, "& dt:first-of-type": { padding: 0 }, "& dt > :first-of-type": { marginTop: 0 }, "& dt > :last-child": { marginBottom: 0 }, "& dd": { margin: "0 0 16px", padding: "0 15px" }, "& dd > :first-of-type": { marginTop: 0 }, "& dd > :last-child": { marginBottom: 0 }, }), sE = T.div(we), uE = T.h1(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.l1}px`, fontWeight: e.typography.weight.bold, })), Hd = T.h2(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.m2}px`, paddingBottom: 4, borderBottom: `1px solid ${e.appBorderColor}`, })), Ud = T.h3(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.m1}px`, })), cE = T.h4(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.s3}px`, })), dE = T.h5(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.s2}px`, })), pE = T.h6(we, so, ({ theme: e }) => ({ fontSize: `${e.typography.size.s2}px`, color: e.color.dark, })), fE = T.hr(({ theme: e }) => ({ border: "0 none", borderTop: `1px solid ${e.appBorderColor}`, height: 4, padding: 0, })), gE = T.img({ maxWidth: "100%" }), mE = T.li(we, ({ theme: e }) => ({ fontSize: e.typography.size.s2, color: e.color.defaultText, lineHeight: "24px", "& + li": { marginTop: ".25em" }, "& ul, & ol": { marginTop: ".25em", marginBottom: 0 }, "& code": cr({ theme: e }), })), DF = { paddingLeft: 30, "& :first-of-type": { marginTop: 0 }, "& :last-child": { marginBottom: 0 }, }, hE = T.ol(we, dn, DF, { listStyle: "decimal" }), yE = T.p(we, dn, ({ theme: e }) => ({ fontSize: e.typography.size.s2, lineHeight: "24px", color: e.color.defaultText, "& code": cr({ theme: e }), })), bE = T.pre(we, dn, ({ theme: e }) => ({ fontFamily: e.typography.fonts.mono, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", lineHeight: "18px", padding: "11px 1rem", whiteSpace: "pre-wrap", color: "inherit", borderRadius: 3, margin: "1rem 0", "&:not(.prismjs)": { background: "transparent", border: "none", borderRadius: 0, padding: 0, margin: 0, }, "& pre, &.prismjs": { padding: 15, margin: 0, whiteSpace: "pre-wrap", color: "inherit", fontSize: "13px", lineHeight: "19px", code: { color: "inherit", fontSize: "inherit" }, }, "& code": { whiteSpace: "pre" }, "& code, & tt": { border: "none" }, })), vE = T.span(we, ({ theme: e }) => ({ "&.frame": { display: "block", overflow: "hidden", "& > span": { border: `1px solid ${e.color.medium}`, display: "block", float: "left", overflow: "hidden", margin: "13px 0 0", padding: 7, width: "auto", }, "& span img": { display: "block", float: "left" }, "& span span": { clear: "both", color: e.color.darkest, display: "block", padding: "5px 0 0", }, }, "&.align-center": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "center", }, "& span img": { margin: "0 auto", textAlign: "center" }, }, "&.align-right": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px 0 0", textAlign: "right", }, "& span img": { margin: 0, textAlign: "right" }, }, "&.float-left": { display: "block", marginRight: 13, overflow: "hidden", float: "left", "& span": { margin: "13px 0 0" }, }, "&.float-right": { display: "block", marginLeft: 13, overflow: "hidden", float: "right", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "right", }, }, })), xE = T.title(cr), EE = T.table(we, dn, ({ theme: e }) => ({ fontSize: e.typography.size.s2, lineHeight: "24px", padding: 0, borderCollapse: "collapse", "& tr": { borderTop: `1px solid ${e.appBorderColor}`, backgroundColor: e.appContentBg, margin: 0, padding: 0, }, "& tr:nth-of-type(2n)": { backgroundColor: e.base === "dark" ? e.color.darker : e.color.lighter, }, "& tr th": { fontWeight: "bold", color: e.color.defaultText, border: `1px solid ${e.appBorderColor}`, margin: 0, padding: "6px 13px", }, "& tr td": { border: `1px solid ${e.appBorderColor}`, color: e.color.defaultText, margin: 0, padding: "6px 13px", }, "& tr th :first-of-type, & tr td :first-of-type": { marginTop: 0 }, "& tr th :last-child, & tr td :last-child": { marginBottom: 0 }, })), kF = { paddingLeft: 30, "& :first-of-type": { marginTop: 0 }, "& :last-child": { marginBottom: 0 }, }, wE = T.ul(we, dn, kF, { listStyle: "disc" }), SE = { h1: m((e) => h.createElement(uE, { ...ve(e, "h1") }), "h1"), h2: m((e) => h.createElement(Hd, { ...ve(e, "h2") }), "h2"), h3: m((e) => h.createElement(Ud, { ...ve(e, "h3") }), "h3"), h4: m((e) => h.createElement(cE, { ...ve(e, "h4") }), "h4"), h5: m((e) => h.createElement(dE, { ...ve(e, "h5") }), "h5"), h6: m((e) => h.createElement(pE, { ...ve(e, "h6") }), "h6"), pre: m((e) => h.createElement(bE, { ...ve(e, "pre") }), "pre"), a: m((e) => h.createElement(aE, { ...ve(e, "a") }), "a"), hr: m((e) => h.createElement(fE, { ...ve(e, "hr") }), "hr"), dl: m((e) => h.createElement(lE, { ...ve(e, "dl") }), "dl"), blockquote: m( (e) => h.createElement(iE, { ...ve(e, "blockquote") }), "blockquote", ), table: m((e) => h.createElement(EE, { ...ve(e, "table") }), "table"), img: m((e) => h.createElement(gE, { ...ve(e, "img") }), "img"), div: m((e) => h.createElement(sE, { ...ve(e, "div") }), "div"), span: m((e) => h.createElement(vE, { ...ve(e, "span") }), "span"), li: m((e) => h.createElement(mE, { ...ve(e, "li") }), "li"), ul: m((e) => h.createElement(wE, { ...ve(e, "ul") }), "ul"), ol: m((e) => h.createElement(hE, { ...ve(e, "ol") }), "ol"), p: m((e) => h.createElement(yE, { ...ve(e, "p") }), "p"), code: m((e) => h.createElement(zd, { ...ve(e, "code") }), "code"), tt: m((e) => h.createElement(xE, { ...ve(e, "tt") }), "tt"), resetwrapper: m( (e) => h.createElement(Md, { ...ve(e, "resetwrapper") }), "resetwrapper", ), }, OF = T.div( ({ theme: e, compact: t }) => ({ display: "inline-flex", alignItems: "center", justifyContent: "center", fontSize: e.typography.size.s1, fontWeight: e.typography.weight.bold, lineHeight: "12px", minWidth: 20, borderRadius: 20, padding: t ? "4px 7px" : "4px 10px", }), { svg: { height: 12, width: 12, marginRight: 4, marginTop: -2, path: { fill: "currentColor" }, }, }, ({ theme: e, status: t }) => { switch (t) { case "critical": return { color: e.color.critical, background: e.background.critical }; case "negative": return { color: e.color.negativeText, background: e.background.negative, boxShadow: e.base === "light" ? `inset 0 0 0 1px ${pt(0.9, e.color.negativeText)}` : "none", }; case "warning": return { color: e.color.warningText, background: e.background.warning, boxShadow: e.base === "light" ? `inset 0 0 0 1px ${pt(0.9, e.color.warningText)}` : "none", }; case "neutral": return { color: e.textMutedColor, background: e.base === "light" ? e.background.app : e.barBg, boxShadow: `inset 0 0 0 1px ${pt(0.8, e.textMutedColor)}`, }; case "positive": return { color: e.color.positiveText, background: e.background.positive, boxShadow: e.base === "light" ? `inset 0 0 0 1px ${pt(0.9, e.color.positiveText)}` : "none", }; case "active": return { color: e.color.secondary, background: e.background.hoverable, boxShadow: `inset 0 0 0 1px ${pt(0.9, e.color.secondary)}`, }; default: return {}; } }, ), FF = m(({ ...e }) => h.createElement(OF, { ...e }), "Badge"), _F = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z", fill: e, }), ), ), TF = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z", fill: e, }), ), ), RF = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z", fill: e, }), ), ), PF = 0, IF = m( (e) => e.button === PF && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, "isPlainLeftClick", ), LF = m((e, t) => { IF(e) && (e.preventDefault(), t(e)); }, "cancelled"), BF = T.span( ({ withArrow: e }) => e ? { "> svg:last-of-type": { height: "0.7em", width: "0.7em", marginRight: 0, marginLeft: "0.25em", bottom: "auto", verticalAlign: "inherit", }, } : {}, ({ containsIcon: e }) => e ? { svg: { height: "1em", width: "1em", verticalAlign: "middle", position: "relative", bottom: 0, marginRight: 0, }, } : {}, ), NF = T.a( ({ theme: e }) => ({ display: "inline-block", transition: "all 150ms ease-out", textDecoration: "none", color: e.color.secondary, "&:hover, &:focus": { cursor: "pointer", color: kn(0.07, e.color.secondary), "svg path:not([fill])": { fill: kn(0.07, e.color.secondary) }, }, "&:active": { color: kn(0.1, e.color.secondary), "svg path:not([fill])": { fill: kn(0.1, e.color.secondary) }, }, svg: { display: "inline-block", height: "1em", width: "1em", verticalAlign: "text-top", position: "relative", bottom: "-0.125em", marginRight: "0.4em", "& path": { fill: e.color.secondary }, }, }), ({ theme: e, secondary: t, tertiary: r }) => { let n; return ( t && (n = [e.textMutedColor, e.color.dark, e.color.darker]), r && (n = [e.color.dark, e.color.darkest, e.textMutedColor]), n ? { color: n[0], "svg path:not([fill])": { fill: n[0] }, "&:hover": { color: n[1], "svg path:not([fill])": { fill: n[1] }, }, "&:active": { color: n[2], "svg path:not([fill])": { fill: n[2] }, }, } : {} ); }, ({ nochrome: e }) => e ? { color: "inherit", "&:hover, &:active": { color: "inherit", textDecoration: "underline", }, } : {}, ({ theme: e, inverse: t }) => t ? { color: e.color.lightest, ":not([fill])": { fill: e.color.lightest }, "&:hover": { color: e.color.lighter, "svg path:not([fill])": { fill: e.color.lighter }, }, "&:active": { color: e.color.light, "svg path:not([fill])": { fill: e.color.light }, }, } : {}, ({ isButton: e }) => e ? { border: 0, borderRadius: 0, background: "none", padding: 0, fontSize: "inherit", } : {}, ), Jn = m( ({ cancel: e = !0, children: t, onClick: r = void 0, withArrow: n = !1, containsIcon: o = !1, className: a = void 0, style: i = void 0, ...l }) => h.createElement( NF, { ...l, onClick: r && e ? (s) => LF(s, r) : r, className: a }, h.createElement( BF, { withArrow: n, containsIcon: o }, t, n && h.createElement(RF, null), ), ), "Link", ), jF = T.div(({ theme: e }) => ({ fontSize: `${e.typography.size.s2}px`, lineHeight: "1.6", h1: { fontSize: `${e.typography.size.l1}px`, fontWeight: e.typography.weight.bold, }, h2: { fontSize: `${e.typography.size.m2}px`, borderBottom: `1px solid ${e.appBorderColor}`, }, h3: { fontSize: `${e.typography.size.m1}px` }, h4: { fontSize: `${e.typography.size.s3}px` }, h5: { fontSize: `${e.typography.size.s2}px` }, h6: { fontSize: `${e.typography.size.s2}px`, color: e.color.dark }, "pre:not(.prismjs)": { background: "transparent", border: "none", borderRadius: 0, padding: 0, margin: 0, }, "pre pre, pre.prismjs": { padding: 15, margin: 0, whiteSpace: "pre-wrap", color: "inherit", fontSize: "13px", lineHeight: "19px", }, "pre pre code, pre.prismjs code": { color: "inherit", fontSize: "inherit" }, "pre code": { margin: 0, padding: 0, whiteSpace: "pre", border: "none", background: "transparent", }, "pre code, pre tt": { backgroundColor: "transparent", border: "none" }, "body > *:first-of-type": { marginTop: "0 !important" }, "body > *:last-child": { marginBottom: "0 !important" }, a: { color: e.color.secondary, textDecoration: "none" }, "a.absent": { color: "#cc0000" }, "a.anchor": { display: "block", paddingLeft: 30, marginLeft: -30, cursor: "pointer", position: "absolute", top: 0, left: 0, bottom: 0, }, "h1, h2, h3, h4, h5, h6": { margin: "20px 0 10px", padding: 0, cursor: "text", position: "relative", "&:first-of-type": { marginTop: 0, paddingTop: 0 }, "&:hover a.anchor": { textDecoration: "none" }, "& tt, & code": { fontSize: "inherit" }, }, "h1:first-of-type + h2": { marginTop: 0, paddingTop: 0 }, "p, blockquote, ul, ol, dl, li, table, pre": { margin: "15px 0" }, hr: { border: "0 none", borderTop: `1px solid ${e.appBorderColor}`, height: 4, padding: 0, }, "body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type": { marginTop: 0, paddingTop: 0 }, "body > h1:first-of-type + h2": { marginTop: 0, paddingTop: 0 }, "a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6": { marginTop: 0, paddingTop: 0 }, "h1 p, h2 p, h3 p, h4 p, h5 p, h6 p": { marginTop: 0 }, "li p.first": { display: "inline-block" }, "ul, ol": { paddingLeft: 30, "& :first-of-type": { marginTop: 0 }, "& :last-child": { marginBottom: 0 }, }, dl: { padding: 0 }, "dl dt": { fontSize: "14px", fontWeight: "bold", fontStyle: "italic", margin: "0 0 15px", padding: "0 15px", "&:first-of-type": { padding: 0 }, "& > :first-of-type": { marginTop: 0 }, "& > :last-child": { marginBottom: 0 }, }, blockquote: { borderLeft: `4px solid ${e.color.medium}`, padding: "0 15px", color: e.color.dark, "& > :first-of-type": { marginTop: 0 }, "& > :last-child": { marginBottom: 0 }, }, table: { padding: 0, borderCollapse: "collapse", "& tr": { borderTop: `1px solid ${e.appBorderColor}`, backgroundColor: "white", margin: 0, padding: 0, "& th": { fontWeight: "bold", border: `1px solid ${e.appBorderColor}`, textAlign: "left", margin: 0, padding: "6px 13px", }, "& td": { border: `1px solid ${e.appBorderColor}`, textAlign: "left", margin: 0, padding: "6px 13px", }, "&:nth-of-type(2n)": { backgroundColor: e.color.lighter }, "& th :first-of-type, & td :first-of-type": { marginTop: 0 }, "& th :last-child, & td :last-child": { marginBottom: 0 }, }, }, img: { maxWidth: "100%" }, "span.frame": { display: "block", overflow: "hidden", "& > span": { border: `1px solid ${e.color.medium}`, display: "block", float: "left", overflow: "hidden", margin: "13px 0 0", padding: 7, width: "auto", }, "& span img": { display: "block", float: "left" }, "& span span": { clear: "both", color: e.color.darkest, display: "block", padding: "5px 0 0", }, }, "span.align-center": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "center", }, "& span img": { margin: "0 auto", textAlign: "center" }, }, "span.align-right": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px 0 0", textAlign: "right", }, "& span img": { margin: 0, textAlign: "right" }, }, "span.float-left": { display: "block", marginRight: 13, overflow: "hidden", float: "left", "& span": { margin: "13px 0 0" }, }, "span.float-right": { display: "block", marginLeft: 13, overflow: "hidden", float: "right", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "right", }, }, "code, tt": { margin: "0 2px", padding: "0 5px", whiteSpace: "nowrap", border: `1px solid ${e.color.mediumlight}`, backgroundColor: e.color.lighter, borderRadius: 3, color: e.base === "dark" ? e.color.darkest : e.color.dark, }, })), Xr = [], Qn = null, MF = b.lazy(async () => { let { SyntaxHighlighter: e } = await Promise.resolve().then( () => (il(), xd), ); return ( Xr.length > 0 && (Xr.forEach((t) => { e.registerLanguage(...t); }), (Xr = [])), Qn === null && (Qn = e), { default: m((t) => h.createElement(e, { ...t }), "default") } ); }), zF = b.lazy(async () => { let [{ SyntaxHighlighter: e }, { formatter: t }] = await Promise.all([ Promise.resolve().then(() => (il(), xd)), Promise.resolve().then(() => (wO(), _v)), ]); return ( Xr.length > 0 && (Xr.forEach((r) => { e.registerLanguage(...r); }), (Xr = [])), Qn === null && (Qn = e), { default: m( (r) => h.createElement(e, { ...r, formatter: t }), "default", ), } ); }), ml = m( (e) => h.createElement( b.Suspense, { fallback: h.createElement("div", null) }, e.format !== !1 ? h.createElement(zF, { ...e }) : h.createElement(MF, { ...e }), ), "SyntaxHighlighter", ); ml.registerLanguage = (...e) => { if (Qn !== null) { Qn.registerLanguage(...e); return; } Xr.push(e); }; il(); gv(); var CE = {}; na(CE, { Close: () => Rw, Content: () => Fw, Description: () => Tw, Dialog: () => Yd, DialogClose: () => np, DialogContent: () => Qd, DialogDescription: () => rp, DialogOverlay: () => Jd, DialogPortal: () => Zd, DialogTitle: () => tp, DialogTrigger: () => Kd, Overlay: () => Ow, Portal: () => kw, Root: () => Dw, Title: () => _w, Trigger: () => z_, WarningProvider: () => B_, createDialogScope: () => F_, }); function Rn(e, t, { checkForDefaultPrevented: r = !0 } = {}) { return m(function (n) { if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); }, "handleEvent"); } m(Rn, "composeEventHandlers"); function Mu(e, t) { if (typeof e == "function") return e(t); e != null && (e.current = t); } m(Mu, "setRef"); function Wd(...e) { return (t) => { let r = !1, n = e.map((o) => { let a = Mu(o, t); return (!r && typeof a == "function" && (r = !0), a); }); if (r) return () => { for (let o = 0; o < n.length; o++) { let a = n[o]; typeof a == "function" ? a() : Mu(e[o], null); } }; }; } m(Wd, "composeRefs"); function Fr(...e) { return b.useCallback(Wd(...e), e); } m(Fr, "useComposedRefs"); function $E(e, t) { let r = b.createContext(t), n = m((a) => { let { children: i, ...l } = a, s = b.useMemo(() => l, Object.values(l)); return q.jsx(r.Provider, { value: s, children: i }); }, "Provider"); n.displayName = e + "Provider"; function o(a) { let i = b.useContext(r); if (i) return i; if (t !== void 0) return t; throw new Error(`\`${a}\` must be used within \`${e}\``); } return (m(o, "useContext2"), [n, o]); } m($E, "createContext2"); function AE(e, t = []) { let r = []; function n(a, i) { let l = b.createContext(i), s = r.length; r = [...r, i]; let u = m((p) => { let { scope: c, children: f, ...g } = p, y = c?.[e]?.[s] || l, x = b.useMemo(() => g, Object.values(g)); return q.jsx(y.Provider, { value: x, children: f }); }, "Provider"); u.displayName = a + "Provider"; function d(p, c) { let f = c?.[e]?.[s] || l, g = b.useContext(f); if (g) return g; if (i !== void 0) return i; throw new Error(`\`${p}\` must be used within \`${a}\``); } return (m(d, "useContext2"), [u, d]); } m(n, "createContext3"); let o = m(() => { let a = r.map((i) => b.createContext(i)); return m(function (i) { let l = i?.[e] || a; return b.useMemo(() => ({ [`__scope${e}`]: { ...i, [e]: l } }), [i, l]); }, "useScope"); }, "createScope"); return ((o.scopeName = e), [n, DE(o, ...t)]); } m(AE, "createContextScope"); function DE(...e) { let t = e[0]; if (e.length === 1) return t; let r = m(() => { let n = e.map((o) => ({ useScope: o(), scopeName: o.scopeName })); return m(function (o) { let a = n.reduce((i, { useScope: l, scopeName: s }) => { let u = l(o)[`__scope${s}`]; return { ...i, ...u }; }, {}); return b.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]); }, "useComposedScopes"); }, "createScope"); return ((r.scopeName = t.scopeName), r); } m(DE, "composeContextScopes"); var Zo = globalThis?.document ? b.useLayoutEffect : () => {}, HF = oh[" useId ".trim().toString()] || (() => {}), UF = 0; function Wa(e) { let [t, r] = b.useState(HF()); return ( Zo(() => { e || r((n) => n ?? String(UF++)); }, [e]), e || (t ? `radix-${t}` : "") ); } m(Wa, "useId"); var WF = oh[" useInsertionEffect ".trim().toString()] || Zo; function kE({ prop: e, defaultProp: t, onChange: r = m(() => {}, "onChange"), caller: n, }) { let [o, a, i] = OE({ defaultProp: t, onChange: r }), l = e !== void 0, s = l ? e : o; { let d = b.useRef(e !== void 0); b.useEffect(() => { let p = d.current; (p !== l && console.warn( `${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`, ), (d.current = l)); }, [l, n]); } let u = b.useCallback( (d) => { if (l) { let p = FE(d) ? d(e) : d; p !== e && i.current?.(p); } else a(d); }, [l, e, a, i], ); return [s, u]; } m(kE, "useControllableState"); function OE({ defaultProp: e, onChange: t }) { let [r, n] = b.useState(e), o = b.useRef(r), a = b.useRef(t); return ( WF(() => { a.current = t; }, [t]), b.useEffect(() => { o.current !== r && (a.current?.(r), (o.current = r)); }, [r, o]), [r, n, a] ); } m(OE, "useUncontrolledState"); function FE(e) { return typeof e == "function"; } m(FE, "isFunction"); function Va(e, t, { checkForDefaultPrevented: r = !0 } = {}) { return m(function (n) { if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); }, "handleEvent"); } m(Va, "composeEventHandlers"); function hl(e) { let t = _E(e), r = b.forwardRef((n, o) => { let { children: a, ...i } = n, l = b.Children.toArray(a), s = l.find(TE); if (s) { let u = s.props.children, d = l.map((p) => p === s ? b.Children.count(u) > 1 ? b.Children.only(null) : b.isValidElement(u) ? u.props.children : null : p, ); return q.jsx(t, { ...i, ref: o, children: b.isValidElement(u) ? b.cloneElement(u, void 0, d) : null, }); } return q.jsx(t, { ...i, ref: o, children: a }); }); return ((r.displayName = `${e}.Slot`), r); } m(hl, "createSlot"); var VF = hl("Slot"); function _E(e) { let t = b.forwardRef((r, n) => { let { children: o, ...a } = r; if (b.isValidElement(o)) { let i = PE(o), l = RE(a, o.props); return ( o.type !== b.Fragment && (l.ref = n ? Wd(n, i) : i), b.cloneElement(o, l) ); } return b.Children.count(o) > 1 ? b.Children.only(null) : null; }); return ((t.displayName = `${e}.SlotClone`), t); } m(_E, "createSlotClone"); var qF = Symbol("radix.slottable"); function TE(e) { return ( b.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qF ); } m(TE, "isSlottable"); function RE(e, t) { let r = { ...t }; for (let n in t) { let o = e[n], a = t[n]; /^on[A-Z]/.test(n) ? o && a ? (r[n] = (...i) => { (a(...i), o(...i)); }) : o && (r[n] = o) : n === "style" ? (r[n] = { ...o, ...a }) : n === "className" && (r[n] = [o, a].filter(Boolean).join(" ")); } return { ...e, ...r }; } m(RE, "mergeProps"); function PE(e) { let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning; return r ? e.ref : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), (r = t && "isReactWarning" in t && t.isReactWarning), r ? e.props.ref : e.props.ref || e.ref); } m(PE, "getElementRef"); var GF = [ "a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "select", "span", "svg", "ul", ], dr = GF.reduce((e, t) => { let r = hl(`Primitive.${t}`), n = b.forwardRef((o, a) => { let { asChild: i, ...l } = o, s = i ? r : t; return ( typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), q.jsx(s, { ...l, ref: a }) ); }); return ((n.displayName = `Primitive.${t}`), { ...e, [t]: n }); }, {}); function IE(e, t) { e && Qi.flushSync(() => e.dispatchEvent(t)); } m(IE, "dispatchDiscreteCustomEvent"); function eo(e) { let t = b.useRef(e); return ( b.useEffect(() => { t.current = e; }), b.useMemo( () => (...r) => t.current?.(...r), [], ) ); } m(eo, "useCallbackRef"); function LE(e, t = globalThis?.document) { let r = eo(e); b.useEffect(() => { let n = m((o) => { o.key === "Escape" && r(o); }, "handleKeyDown"); return ( t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 }) ); }, [r, t]); } m(LE, "useEscapeKeydown"); var YF = "DismissableLayer", zu = "dismissableLayer.update", KF = "dismissableLayer.pointerDownOutside", XF = "dismissableLayer.focusOutside", um, BE = b.createContext({ layers: new Set(), layersWithOutsidePointerEventsDisabled: new Set(), branches: new Set(), }), NE = b.forwardRef((e, t) => { let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: n, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: i, onDismiss: l, ...s } = e, u = b.useContext(BE), [d, p] = b.useState(null), c = d?.ownerDocument ?? globalThis?.document, [, f] = b.useState({}), g = Fr(t, (S) => p(S)), y = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = y.indexOf(x), C = d ? y.indexOf(d) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, E = C >= v, $ = jE((S) => { let D = S.target, F = [...u.branches].some((k) => k.contains(D)); !E || F || (o?.(S), i?.(S), S.defaultPrevented || l?.()); }, c), A = ME((S) => { let D = S.target; [...u.branches].some((F) => F.contains(D)) || (a?.(S), i?.(S), S.defaultPrevented || l?.()); }, c); return ( LE((S) => { C === u.layers.size - 1 && (n?.(S), !S.defaultPrevented && l && (S.preventDefault(), l())); }, c), b.useEffect(() => { if (d) return ( r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && ((um = c.body.style.pointerEvents), (c.body.style.pointerEvents = "none")), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Hu(), () => { r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (c.body.style.pointerEvents = um); } ); }, [d, c, r, u]), b.useEffect( () => () => { d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Hu()); }, [d, u], ), b.useEffect(() => { let S = m(() => f({}), "handleUpdate"); return ( document.addEventListener(zu, S), () => document.removeEventListener(zu, S) ); }, []), q.jsx(dr.div, { ...s, ref: g, style: { pointerEvents: w ? (E ? "auto" : "none") : void 0, ...e.style, }, onFocusCapture: Va(e.onFocusCapture, A.onFocusCapture), onBlurCapture: Va(e.onBlurCapture, A.onBlurCapture), onPointerDownCapture: Va( e.onPointerDownCapture, $.onPointerDownCapture, ), }) ); }); NE.displayName = YF; var ZF = "DismissableLayerBranch", JF = b.forwardRef((e, t) => { let r = b.useContext(BE), n = b.useRef(null), o = Fr(t, n); return ( b.useEffect(() => { let a = n.current; if (a) return ( r.branches.add(a), () => { r.branches.delete(a); } ); }, [r.branches]), q.jsx(dr.div, { ...e, ref: o }) ); }); JF.displayName = ZF; function jE(e, t = globalThis?.document) { let r = eo(e), n = b.useRef(!1), o = b.useRef(() => {}); return ( b.useEffect(() => { let a = m((l) => { if (l.target && !n.current) { let s = m(function () { Vd(KF, r, u, { discrete: !0 }); }, "handleAndDispatchPointerDownOutsideEvent2"), u = { originalEvent: l }; l.pointerType === "touch" ? (t.removeEventListener("click", o.current), (o.current = s), t.addEventListener("click", o.current, { once: !0 })) : s(); } else t.removeEventListener("click", o.current); n.current = !1; }, "handlePointerDown"), i = window.setTimeout(() => { t.addEventListener("pointerdown", a); }, 0); return () => { (window.clearTimeout(i), t.removeEventListener("pointerdown", a), t.removeEventListener("click", o.current)); }; }, [t, r]), { onPointerDownCapture: m(() => (n.current = !0), "onPointerDownCapture") } ); } m(jE, "usePointerDownOutside"); function ME(e, t = globalThis?.document) { let r = eo(e), n = b.useRef(!1); return ( b.useEffect(() => { let o = m((a) => { a.target && !n.current && Vd(XF, r, { originalEvent: a }, { discrete: !1 }); }, "handleFocus"); return ( t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o) ); }, [t, r]), { onFocusCapture: m(() => (n.current = !0), "onFocusCapture"), onBlurCapture: m(() => (n.current = !1), "onBlurCapture"), } ); } m(ME, "useFocusOutside"); function Hu() { let e = new CustomEvent(zu); document.dispatchEvent(e); } m(Hu, "dispatchUpdate"); function Vd(e, t, r, { discrete: n }) { let o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r }); (t && o.addEventListener(e, t, { once: !0 }), n ? IE(o, a) : o.dispatchEvent(a)); } m(Vd, "handleAndDispatchCustomEvent"); var ds = "focusScope.autoFocusOnMount", ps = "focusScope.autoFocusOnUnmount", cm = { bubbles: !1, cancelable: !0 }, QF = "FocusScope", zE = b.forwardRef((e, t) => { let { loop: r = !1, trapped: n = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [l, s] = b.useState(null), u = eo(o), d = eo(a), p = b.useRef(null), c = Fr(t, (y) => s(y)), f = b.useRef({ paused: !1, pause() { this.paused = !0; }, resume() { this.paused = !1; }, }).current; (b.useEffect(() => { if (n) { let y = m(function (w) { if (f.paused || !l) return; let E = w.target; l.contains(E) ? (p.current = E) : Jt(p.current, { select: !0 }); }, "handleFocusIn2"), x = m(function (w) { if (f.paused || !l) return; let E = w.relatedTarget; E !== null && (l.contains(E) || Jt(p.current, { select: !0 })); }, "handleFocusOut2"), v = m(function (w) { if (document.activeElement === document.body) for (let E of w) E.removedNodes.length > 0 && Jt(l); }, "handleMutations2"); (document.addEventListener("focusin", y), document.addEventListener("focusout", x)); let C = new MutationObserver(v); return ( l && C.observe(l, { childList: !0, subtree: !0 }), () => { (document.removeEventListener("focusin", y), document.removeEventListener("focusout", x), C.disconnect()); } ); } }, [n, l, f.paused]), b.useEffect(() => { if (l) { dm.add(f); let y = document.activeElement; if (!l.contains(y)) { let x = new CustomEvent(ds, cm); (l.addEventListener(ds, u), l.dispatchEvent(x), x.defaultPrevented || (HE(GE(qd(l)), { select: !0 }), document.activeElement === y && Jt(l))); } return () => { (l.removeEventListener(ds, u), setTimeout(() => { let x = new CustomEvent(ps, cm); (l.addEventListener(ps, d), l.dispatchEvent(x), x.defaultPrevented || Jt(y ?? document.body, { select: !0 }), l.removeEventListener(ps, d), dm.remove(f)); }, 0)); }; } }, [l, u, d, f])); let g = b.useCallback( (y) => { if ((!r && !n) || f.paused) return; let x = y.key === "Tab" && !y.altKey && !y.ctrlKey && !y.metaKey, v = document.activeElement; if (x && v) { let C = y.currentTarget, [w, E] = UE(C); w && E ? !y.shiftKey && v === E ? (y.preventDefault(), r && Jt(w, { select: !0 })) : y.shiftKey && v === w && (y.preventDefault(), r && Jt(E, { select: !0 })) : v === C && y.preventDefault(); } }, [r, n, f.paused], ); return q.jsx(dr.div, { tabIndex: -1, ...i, ref: c, onKeyDown: g }); }); zE.displayName = QF; function HE(e, { select: t = !1 } = {}) { let r = document.activeElement; for (let n of e) if ((Jt(n, { select: t }), document.activeElement !== r)) return; } m(HE, "focusFirst"); function UE(e) { let t = qd(e), r = Uu(t, e), n = Uu(t.reverse(), e); return [r, n]; } m(UE, "getTabbableEdges"); function qd(e) { let t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: m((n) => { let o = n.tagName === "INPUT" && n.type === "hidden"; return n.disabled || n.hidden || o ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; }, "acceptNode"), }); for (; r.nextNode(); ) t.push(r.currentNode); return t; } m(qd, "getTabbableCandidates"); function Uu(e, t) { for (let r of e) if (!WE(r, { upTo: t })) return r; } m(Uu, "findVisible"); function WE(e, { upTo: t }) { if (getComputedStyle(e).visibility === "hidden") return !0; for (; e; ) { if (t !== void 0 && e === t) return !1; if (getComputedStyle(e).display === "none") return !0; e = e.parentElement; } return !1; } m(WE, "isHidden"); function VE(e) { return e instanceof HTMLInputElement && "select" in e; } m(VE, "isSelectableInput"); function Jt(e, { select: t = !1 } = {}) { if (e && e.focus) { let r = document.activeElement; (e.focus({ preventScroll: !0 }), e !== r && VE(e) && t && e.select()); } } m(Jt, "focus"); var dm = qE(); function qE() { let e = []; return { add(t) { let r = e[0]; (t !== r && r?.pause(), (e = Wu(e, t)), e.unshift(t)); }, remove(t) { ((e = Wu(e, t)), e[0]?.resume()); }, }; } m(qE, "createFocusScopesStack"); function Wu(e, t) { let r = [...e], n = r.indexOf(t); return (n !== -1 && r.splice(n, 1), r); } m(Wu, "arrayRemove"); function GE(e) { return e.filter((t) => t.tagName !== "A"); } m(GE, "removeLinks"); var e_ = "Portal", YE = b.forwardRef((e, t) => { let { container: r, ...n } = e, [o, a] = b.useState(!1); Zo(() => a(!0), []); let i = r || (o && globalThis?.document?.body); return i ? x1.createPortal(q.jsx(dr.div, { ...n, ref: t }), i) : null; }); YE.displayName = e_; function KE(e, t) { return b.useReducer((r, n) => t[r][n] ?? r, e); } m(KE, "useStateMachine"); var yl = m((e) => { let { present: t, children: r } = e, n = XE(t), o = typeof r == "function" ? r({ present: n.isPresent }) : b.Children.only(r), a = Fr(n.ref, ZE(o)); return typeof r == "function" || n.isPresent ? b.cloneElement(o, { ref: a }) : null; }, "Presence"); yl.displayName = "Presence"; function XE(e) { let [t, r] = b.useState(), n = b.useRef(null), o = b.useRef(e), a = b.useRef("none"), i = e ? "mounted" : "unmounted", [l, s] = KE(i, { mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" }, unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" }, unmounted: { MOUNT: "mounted" }, }); return ( b.useEffect(() => { let u = Ro(n.current); a.current = l === "mounted" ? u : "none"; }, [l]), Zo(() => { let u = n.current, d = o.current; if (d !== e) { let p = a.current, c = Ro(u); (e ? s("MOUNT") : c === "none" || u?.display === "none" ? s("UNMOUNT") : s(d && p !== c ? "ANIMATION_OUT" : "UNMOUNT"), (o.current = e)); } }, [e, s]), Zo(() => { if (t) { let u, d = t.ownerDocument.defaultView ?? window, p = m((f) => { let g = Ro(n.current).includes(f.animationName); if (f.target === t && g && (s("ANIMATION_END"), !o.current)) { let y = t.style.animationFillMode; ((t.style.animationFillMode = "forwards"), (u = d.setTimeout(() => { t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y); }))); } }, "handleAnimationEnd"), c = m((f) => { f.target === t && (a.current = Ro(n.current)); }, "handleAnimationStart"); return ( t.addEventListener("animationstart", c), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => { (d.clearTimeout(u), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p)); } ); } else s("ANIMATION_END"); }, [t, s]), { isPresent: ["mounted", "unmountSuspended"].includes(l), ref: b.useCallback((u) => { ((n.current = u ? getComputedStyle(u) : null), r(u)); }, []), } ); } m(XE, "usePresence"); function Ro(e) { return e?.animationName || "none"; } m(Ro, "getAnimationName"); function ZE(e) { let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning; return r ? e.ref : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), (r = t && "isReactWarning" in t && t.isReactWarning), r ? e.props.ref : e.props.ref || e.ref); } m(ZE, "getElementRef"); var fs = 0; function JE() { b.useEffect(() => { let e = document.querySelectorAll("[data-radix-focus-guard]"); return ( document.body.insertAdjacentElement("afterbegin", e[0] ?? Vu()), document.body.insertAdjacentElement("beforeend", e[1] ?? Vu()), fs++, () => { (fs === 1 && document .querySelectorAll("[data-radix-focus-guard]") .forEach((t) => t.remove()), fs--); } ); }, []); } m(JE, "useFocusGuards"); function Vu() { let e = document.createElement("span"); return ( e.setAttribute("data-radix-focus-guard", ""), (e.tabIndex = 0), (e.style.outline = "none"), (e.style.opacity = "0"), (e.style.position = "fixed"), (e.style.pointerEvents = "none"), e ); } m(Vu, "createFocusGuard"); var Mt = m(function () { return ( (Mt = Object.assign || m(function (e) { for (var t, r = 1, n = arguments.length; r < n; r++) { t = arguments[r]; for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); } return e; }, "__assign")), Mt.apply(this, arguments) ); }, "__assign"); function Gd(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++) t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]); return r; } m(Gd, "__rest"); function QE(e, t, r) { if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++) (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), (a[n] = t[n])); return e.concat(a || Array.prototype.slice.call(t)); } m(QE, "__spreadArray"); var qa = "right-scroll-bar-position", Ga = "width-before-scroll-bar", t_ = "with-scroll-bars-hidden", r_ = "--removed-body-scroll-bar-size"; function Ya(e, t) { return (typeof e == "function" ? e(t) : e && (e.current = t), e); } m(Ya, "assignRef"); function ew(e, t) { var r = b.useState(function () { return { value: e, callback: t, facade: { get current() { return r.value; }, set current(n) { var o = r.value; o !== n && ((r.value = n), r.callback(n, o)); }, }, }; })[0]; return ((r.callback = t), r.facade); } m(ew, "useCallbackRef"); var n_ = typeof window < "u" ? b.useLayoutEffect : b.useEffect, pm = new WeakMap(); function tw(e, t) { var r = ew(t || null, function (n) { return e.forEach(function (o) { return Ya(o, n); }); }); return ( n_( function () { var n = pm.get(r); if (n) { var o = new Set(n), a = new Set(e), i = r.current; (o.forEach(function (l) { a.has(l) || Ya(l, null); }), a.forEach(function (l) { o.has(l) || Ya(l, i); })); } pm.set(r, e); }, [e], ), r ); } m(tw, "useMergeRefs"); function rw(e) { return e; } m(rw, "ItoI"); function nw(e, t) { t === void 0 && (t = rw); var r = [], n = !1, o = { read: m(function () { if (n) throw new Error( "Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.", ); return r.length ? r[r.length - 1] : e; }, "read"), useMedium: m(function (a) { var i = t(a, n); return ( r.push(i), function () { r = r.filter(function (l) { return l !== i; }); } ); }, "useMedium"), assignSyncMedium: m(function (a) { for (n = !0; r.length; ) { var i = r; ((r = []), i.forEach(a)); } r = { push: m(function (l) { return a(l); }, "push"), filter: m(function () { return r; }, "filter"), }; }, "assignSyncMedium"), assignMedium: m(function (a) { n = !0; var i = []; if (r.length) { var l = r; ((r = []), l.forEach(a), (i = r)); } var s = m(function () { var d = i; ((i = []), d.forEach(a)); }, "executeQueue"), u = m(function () { return Promise.resolve().then(s); }, "cycle"); (u(), (r = { push: m(function (d) { (i.push(d), u()); }, "push"), filter: m(function (d) { return ((i = i.filter(d)), r); }, "filter"), })); }, "assignMedium"), }; return o; } m(nw, "innerCreateMedium"); function ow(e) { e === void 0 && (e = {}); var t = nw(null); return ((t.options = Mt({ async: !0, ssr: !1 }, e)), t); } m(ow, "createSidecarMedium"); var aw = m(function (e) { var t = e.sideCar, r = Gd(e, ["sideCar"]); if (!t) throw new Error( "Sidecar: please provide `sideCar` property to import the right car", ); var n = t.read(); if (!n) throw new Error("Sidecar medium not found"); return b.createElement(n, Mt({}, r)); }, "SideCar"); aw.isSideCarExport = !0; function iw(e, t) { return (e.useMedium(t), aw); } m(iw, "exportSidecar"); var lw = ow(), gs = m(function () {}, "nothing"), bl = b.forwardRef(function (e, t) { var r = b.useRef(null), n = b.useState({ onScrollCapture: gs, onWheelCapture: gs, onTouchMoveCapture: gs, }), o = n[0], a = n[1], i = e.forwardProps, l = e.children, s = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, c = e.sideCar, f = e.noIsolation, g = e.inert, y = e.allowPinchZoom, x = e.as, v = x === void 0 ? "div" : x, C = e.gapMode, w = Gd(e, [ "forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode", ]), E = c, $ = tw([r, t]), A = Mt(Mt({}, w), o); return b.createElement( b.Fragment, null, d && b.createElement(E, { sideCar: lw, removeScrollBar: u, shards: p, noIsolation: f, inert: g, setCallbacks: a, allowPinchZoom: !!y, lockRef: r, gapMode: C, }), i ? b.cloneElement(b.Children.only(l), Mt(Mt({}, A), { ref: $ })) : b.createElement(v, Mt({}, A, { className: s, ref: $ }), l), ); }); bl.defaultProps = { enabled: !0, removeScrollBar: !0, inert: !1 }; bl.classNames = { fullWidth: Ga, zeroRight: qa }; var o_ = m(function () { if (typeof __webpack_nonce__ < "u") return __webpack_nonce__; }, "getNonce"); function sw() { if (!document) return null; var e = document.createElement("style"); e.type = "text/css"; var t = o_(); return (t && e.setAttribute("nonce", t), e); } m(sw, "makeStyleTag"); function uw(e, t) { e.styleSheet ? (e.styleSheet.cssText = t) : e.appendChild(document.createTextNode(t)); } m(uw, "injectStyles"); function cw(e) { var t = document.head || document.getElementsByTagName("head")[0]; t.appendChild(e); } m(cw, "insertStyleTag"); var a_ = m(function () { var e = 0, t = null; return { add: m(function (r) { (e == 0 && (t = sw()) && (uw(t, r), cw(t)), e++); }, "add"), remove: m(function () { (e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), (t = null))); }, "remove"), }; }, "stylesheetSingleton"), i_ = m(function () { var e = a_(); return function (t, r) { b.useEffect( function () { return ( e.add(t), function () { e.remove(); } ); }, [t && r], ); }; }, "styleHookSingleton"), dw = m(function () { var e = i_(), t = m(function (r) { var n = r.styles, o = r.dynamic; return (e(n, o), null); }, "Sheet"); return t; }, "styleSingleton"), l_ = { left: 0, top: 0, right: 0, gap: 0 }, ms = m(function (e) { return parseInt(e || "", 10) || 0; }, "parse"), s_ = m(function (e) { var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"]; return [ms(r), ms(n), ms(o)]; }, "getOffset"), u_ = m(function (e) { if ((e === void 0 && (e = "margin"), typeof window > "u")) return l_; var t = s_(e), r = document.documentElement.clientWidth, n = window.innerWidth; return { left: t[0], top: t[1], right: t[2], gap: Math.max(0, n - r + t[2] - t[0]), }; }, "getGapWidth"), c_ = dw(), Pn = "data-scroll-locked", d_ = m(function (e, t, r, n) { var o = e.left, a = e.top, i = e.right, l = e.gap; return ( r === void 0 && (r = "margin"), ` .` .concat( t_, ` { overflow: hidden `, ) .concat( n, `; padding-right: `, ) .concat(l, "px ") .concat( n, `; } body[`, ) .concat( Pn, `] { overflow: hidden `, ) .concat( n, `; overscroll-behavior: contain; `, ) .concat( [ t && "position: relative ".concat(n, ";"), r === "margin" && ` padding-left: ` .concat( o, `px; padding-top: `, ) .concat( a, `px; padding-right: `, ) .concat( i, `px; margin-left:0; margin-top:0; margin-right: `, ) .concat(l, "px ") .concat( n, `; `, ), r === "padding" && "padding-right: ".concat(l, "px ").concat(n, ";"), ] .filter(Boolean) .join(""), ` } .`, ) .concat( qa, ` { right: `, ) .concat(l, "px ") .concat( n, `; } .`, ) .concat( Ga, ` { margin-right: `, ) .concat(l, "px ") .concat( n, `; } .`, ) .concat(qa, " .") .concat( qa, ` { right: 0 `, ) .concat( n, `; } .`, ) .concat(Ga, " .") .concat( Ga, ` { margin-right: 0 `, ) .concat( n, `; } body[`, ) .concat( Pn, `] { `, ) .concat(r_, ": ") .concat( l, `px; } `, ) ); }, "getStyles"), fm = m(function () { var e = parseInt(document.body.getAttribute(Pn) || "0", 10); return isFinite(e) ? e : 0; }, "getCurrentUseCounter"), p_ = m(function () { b.useEffect(function () { return ( document.body.setAttribute(Pn, (fm() + 1).toString()), function () { var e = fm() - 1; e <= 0 ? document.body.removeAttribute(Pn) : document.body.setAttribute(Pn, e.toString()); } ); }, []); }, "useLockAttribute"), f_ = m(function (e) { var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n; p_(); var a = b.useMemo( function () { return u_(o); }, [o], ); return b.createElement(c_, { styles: d_(a, !t, o, r ? "" : "!important") }); }, "RemoveScrollBar"), qu = !1; if (typeof window < "u") try { ((So = Object.defineProperty({}, "passive", { get: m(function () { return ((qu = !0), !0); }, "get"), })), window.addEventListener("test", So, So), window.removeEventListener("test", So, So)); } catch { qu = !1; } var So, gn = qu ? { passive: !1 } : !1, g_ = m(function (e) { return e.tagName === "TEXTAREA"; }, "alwaysContainsScroll"), pw = m(function (e, t) { if (!(e instanceof Element)) return !1; var r = window.getComputedStyle(e); return ( r[t] !== "hidden" && !(r.overflowY === r.overflowX && !g_(e) && r[t] === "visible") ); }, "elementCanBeScrolled"), m_ = m(function (e) { return pw(e, "overflowY"); }, "elementCouldBeVScrolled"), h_ = m(function (e) { return pw(e, "overflowX"); }, "elementCouldBeHScrolled"), gm = m(function (e, t) { var r = t.ownerDocument, n = t; do { typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host); var o = fw(e, n); if (o) { var a = gw(e, n), i = a[1], l = a[2]; if (i > l) return !0; } n = n.parentNode; } while (n && n !== r.body); return !1; }, "locationCouldBeScrolled"), y_ = m(function (e) { var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight; return [t, r, n]; }, "getVScrollVariables"), b_ = m(function (e) { var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth; return [t, r, n]; }, "getHScrollVariables"), fw = m(function (e, t) { return e === "v" ? m_(t) : h_(t); }, "elementCouldBeScrolled"), gw = m(function (e, t) { return e === "v" ? y_(t) : b_(t); }, "getScrollVariables"), v_ = m(function (e, t) { return e === "h" && t === "rtl" ? -1 : 1; }, "getDirectionFactor"), x_ = m(function (e, t, r, n, o) { var a = v_(e, window.getComputedStyle(t).direction), i = a * n, l = r.target, s = t.contains(l), u = !1, d = i > 0, p = 0, c = 0; do { var f = gw(e, l), g = f[0], y = f[1], x = f[2], v = y - x - a * g; ((g || v) && fw(e, l) && ((p += v), (c += g)), l instanceof ShadowRoot ? (l = l.host) : (l = l.parentNode)); } while ((!s && l !== document.body) || (s && (t.contains(l) || t === l))); return ( ((d && ((o && Math.abs(p) < 1) || (!o && i > p))) || (!d && ((o && Math.abs(c) < 1) || (!o && -i > c)))) && (u = !0), u ); }, "handleScroll"), Aa = m(function (e) { return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0]; }, "getTouchXY"), mm = m(function (e) { return [e.deltaX, e.deltaY]; }, "getDeltaXY"), hm = m(function (e) { return e && "current" in e ? e.current : e; }, "extractRef"), E_ = m(function (e, t) { return e[0] === t[0] && e[1] === t[1]; }, "deltaCompare"), w_ = m(function (e) { return ` .block-interactivity-` .concat( e, ` {pointer-events: none;} .allow-interactivity-`, ) .concat( e, ` {pointer-events: all;} `, ); }, "generateStyle"), S_ = 0, mn = []; function mw(e) { var t = b.useRef([]), r = b.useRef([0, 0]), n = b.useRef(), o = b.useState(S_++)[0], a = b.useState(dw)[0], i = b.useRef(e); (b.useEffect( function () { i.current = e; }, [e], ), b.useEffect( function () { if (e.inert) { document.body.classList.add("block-interactivity-".concat(o)); var y = QE([e.lockRef.current], (e.shards || []).map(hm), !0).filter( Boolean, ); return ( y.forEach(function (x) { return x.classList.add("allow-interactivity-".concat(o)); }), function () { (document.body.classList.remove("block-interactivity-".concat(o)), y.forEach(function (x) { return x.classList.remove("allow-interactivity-".concat(o)); })); } ); } }, [e.inert, e.lockRef.current, e.shards], )); var l = b.useCallback(function (y, x) { if ( ("touches" in y && y.touches.length === 2) || (y.type === "wheel" && y.ctrlKey) ) return !i.current.allowPinchZoom; var v = Aa(y), C = r.current, w = "deltaX" in y ? y.deltaX : C[0] - v[0], E = "deltaY" in y ? y.deltaY : C[1] - v[1], $, A = y.target, S = Math.abs(w) > Math.abs(E) ? "h" : "v"; if ("touches" in y && S === "h" && A.type === "range") return !1; var D = gm(S, A); if (!D) return !0; if ((D ? ($ = S) : (($ = S === "v" ? "h" : "v"), (D = gm(S, A))), !D)) return !1; if ( (!n.current && "changedTouches" in y && (w || E) && (n.current = $), !$) ) return !0; var F = n.current || $; return x_(F, x, y, F === "h" ? w : E, !0); }, []), s = b.useCallback(function (y) { var x = y; if (!(!mn.length || mn[mn.length - 1] !== a)) { var v = "deltaY" in x ? mm(x) : Aa(x), C = t.current.filter(function ($) { return ( $.name === x.type && ($.target === x.target || x.target === $.shadowParent) && E_($.delta, v) ); })[0]; if (C && C.should) { x.cancelable && x.preventDefault(); return; } if (!C) { var w = (i.current.shards || []) .map(hm) .filter(Boolean) .filter(function ($) { return $.contains(x.target); }), E = w.length > 0 ? l(x, w[0]) : !i.current.noIsolation; E && x.cancelable && x.preventDefault(); } } }, []), u = b.useCallback(function (y, x, v, C) { var w = { name: y, delta: x, target: v, should: C, shadowParent: hw(v) }; (t.current.push(w), setTimeout(function () { t.current = t.current.filter(function (E) { return E !== w; }); }, 1)); }, []), d = b.useCallback(function (y) { ((r.current = Aa(y)), (n.current = void 0)); }, []), p = b.useCallback(function (y) { u(y.type, mm(y), y.target, l(y, e.lockRef.current)); }, []), c = b.useCallback(function (y) { u(y.type, Aa(y), y.target, l(y, e.lockRef.current)); }, []); b.useEffect(function () { return ( mn.push(a), e.setCallbacks({ onScrollCapture: p, onWheelCapture: p, onTouchMoveCapture: c, }), document.addEventListener("wheel", s, gn), document.addEventListener("touchmove", s, gn), document.addEventListener("touchstart", d, gn), function () { ((mn = mn.filter(function (y) { return y !== a; })), document.removeEventListener("wheel", s, gn), document.removeEventListener("touchmove", s, gn), document.removeEventListener("touchstart", d, gn)); } ); }, []); var f = e.removeScrollBar, g = e.inert; return b.createElement( b.Fragment, null, g ? b.createElement(a, { styles: w_(o) }) : null, f ? b.createElement(f_, { gapMode: e.gapMode }) : null, ); } m(mw, "RemoveScrollSideCar"); function hw(e) { for (var t = null; e !== null; ) (e instanceof ShadowRoot && ((t = e.host), (e = e.host)), (e = e.parentNode)); return t; } m(hw, "getOutermostShadowParent"); var C_ = iw(lw, mw), yw = b.forwardRef(function (e, t) { return b.createElement(bl, Mt({}, e, { ref: t, sideCar: C_ })); }); yw.classNames = bl.classNames; var $_ = yw, A_ = m(function (e) { if (typeof document > "u") return null; var t = Array.isArray(e) ? e[0] : e; return t.ownerDocument.body; }, "getDefaultParent"), hn = new WeakMap(), Da = new WeakMap(), ka = {}, hs = 0, bw = m(function (e) { return e && (e.host || bw(e.parentNode)); }, "unwrapHost"), D_ = m(function (e, t) { return t .map(function (r) { if (e.contains(r)) return r; var n = bw(r); return n && e.contains(n) ? n : (console.error( "aria-hidden", r, "in not contained inside", e, ". Doing nothing", ), null); }) .filter(function (r) { return !!r; }); }, "correctTargets"), k_ = m(function (e, t, r, n) { var o = D_(t, Array.isArray(e) ? e : [e]); ka[r] || (ka[r] = new WeakMap()); var a = ka[r], i = [], l = new Set(), s = new Set(o), u = m(function (p) { !p || l.has(p) || (l.add(p), u(p.parentNode)); }, "keep"); o.forEach(u); var d = m(function (p) { !p || s.has(p) || Array.prototype.forEach.call(p.children, function (c) { if (l.has(c)) d(c); else try { var f = c.getAttribute(n), g = f !== null && f !== "false", y = (hn.get(c) || 0) + 1, x = (a.get(c) || 0) + 1; (hn.set(c, y), a.set(c, x), i.push(c), y === 1 && g && Da.set(c, !0), x === 1 && c.setAttribute(r, "true"), g || c.setAttribute(n, "true")); } catch (v) { console.error("aria-hidden: cannot operate on ", c, v); } }); }, "deep"); return ( d(t), l.clear(), hs++, function () { (i.forEach(function (p) { var c = hn.get(p) - 1, f = a.get(p) - 1; (hn.set(p, c), a.set(p, f), c || (Da.has(p) || p.removeAttribute(n), Da.delete(p)), f || p.removeAttribute(r)); }), hs--, hs || ((hn = new WeakMap()), (hn = new WeakMap()), (Da = new WeakMap()), (ka = {}))); } ); }, "applyAttributeToOthers"), O_ = m(function (e, t, r) { r === void 0 && (r = "data-aria-hidden"); var n = Array.from(Array.isArray(e) ? e : [e]), o = t || A_(e); return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), k_(n, o, r, "aria-hidden")) : function () { return null; }; }, "hideOthers"), vl = "Dialog", [vw, F_] = AE(vl), [__, Tt] = vw(vl), Yd = m((e) => { let { __scopeDialog: t, children: r, open: n, defaultOpen: o, onOpenChange: a, modal: i = !0, } = e, l = b.useRef(null), s = b.useRef(null), [u, d] = kE({ prop: n, defaultProp: o ?? !1, onChange: a, caller: vl }); return q.jsx(__, { scope: t, triggerRef: l, contentRef: s, contentId: Wa(), titleId: Wa(), descriptionId: Wa(), open: u, onOpenChange: d, onOpenToggle: b.useCallback(() => d((p) => !p), [d]), modal: i, children: r, }); }, "Dialog"); Yd.displayName = vl; var xw = "DialogTrigger", Kd = b.forwardRef((e, t) => { let { __scopeDialog: r, ...n } = e, o = Tt(xw, r), a = Fr(t, o.triggerRef); return q.jsx(dr.button, { type: "button", "aria-haspopup": "dialog", "aria-expanded": o.open, "aria-controls": o.contentId, "data-state": xl(o.open), ...n, ref: a, onClick: Rn(e.onClick, o.onOpenToggle), }); }); Kd.displayName = xw; var Xd = "DialogPortal", [T_, Ew] = vw(Xd, { forceMount: void 0 }), Zd = m((e) => { let { __scopeDialog: t, forceMount: r, children: n, container: o } = e, a = Tt(Xd, t); return q.jsx(T_, { scope: t, forceMount: r, children: b.Children.map(n, (i) => q.jsx(yl, { present: r || a.open, children: q.jsx(YE, { asChild: !0, container: o, children: i }), }), ), }); }, "DialogPortal"); Zd.displayName = Xd; var Ai = "DialogOverlay", Jd = b.forwardRef((e, t) => { let r = Ew(Ai, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = Tt(Ai, e.__scopeDialog); return a.modal ? q.jsx(yl, { present: n || a.open, children: q.jsx(P_, { ...o, ref: t }), }) : null; }); Jd.displayName = Ai; var R_ = hl("DialogOverlay.RemoveScroll"), P_ = b.forwardRef((e, t) => { let { __scopeDialog: r, ...n } = e, o = Tt(Ai, r); return q.jsx($_, { as: R_, allowPinchZoom: !0, shards: [o.contentRef], children: q.jsx(dr.div, { "data-state": xl(o.open), ...n, ref: t, style: { pointerEvents: "auto", ...n.style }, }), }); }), on = "DialogContent", Qd = b.forwardRef((e, t) => { let r = Ew(on, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = Tt(on, e.__scopeDialog); return q.jsx(yl, { present: n || a.open, children: a.modal ? q.jsx(I_, { ...o, ref: t }) : q.jsx(L_, { ...o, ref: t }), }); }); Qd.displayName = on; var I_ = b.forwardRef((e, t) => { let r = Tt(on, e.__scopeDialog), n = b.useRef(null), o = Fr(t, r.contentRef, n); return ( b.useEffect(() => { let a = n.current; if (a) return O_(a); }, []), q.jsx(ww, { ...e, ref: o, trapFocus: r.open, disableOutsidePointerEvents: !0, onCloseAutoFocus: Rn(e.onCloseAutoFocus, (a) => { (a.preventDefault(), r.triggerRef.current?.focus()); }), onPointerDownOutside: Rn(e.onPointerDownOutside, (a) => { let i = a.detail.originalEvent, l = i.button === 0 && i.ctrlKey === !0; (i.button === 2 || l) && a.preventDefault(); }), onFocusOutside: Rn(e.onFocusOutside, (a) => a.preventDefault()), }) ); }), L_ = b.forwardRef((e, t) => { let r = Tt(on, e.__scopeDialog), n = b.useRef(!1), o = b.useRef(!1); return q.jsx(ww, { ...e, ref: t, trapFocus: !1, disableOutsidePointerEvents: !1, onCloseAutoFocus: m((a) => { (e.onCloseAutoFocus?.(a), a.defaultPrevented || (n.current || r.triggerRef.current?.focus(), a.preventDefault()), (n.current = !1), (o.current = !1)); }, "onCloseAutoFocus"), onInteractOutside: m((a) => { (e.onInteractOutside?.(a), a.defaultPrevented || ((n.current = !0), a.detail.originalEvent.type === "pointerdown" && (o.current = !0))); let i = a.target; (r.triggerRef.current?.contains(i) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault()); }, "onInteractOutside"), }); }), ww = b.forwardRef((e, t) => { let { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, l = Tt(on, r), s = b.useRef(null), u = Fr(t, s); return ( JE(), q.jsxs(q.Fragment, { children: [ q.jsx(zE, { asChild: !0, loop: !0, trapped: n, onMountAutoFocus: o, onUnmountAutoFocus: a, children: q.jsx(NE, { role: "dialog", id: l.contentId, "aria-describedby": l.descriptionId, "aria-labelledby": l.titleId, "data-state": xl(l.open), ...i, ref: u, onDismiss: m(() => l.onOpenChange(!1), "onDismiss"), }), }), q.jsxs(q.Fragment, { children: [ q.jsx(N_, { titleId: l.titleId }), q.jsx(M_, { contentRef: s, descriptionId: l.descriptionId }), ], }), ], }) ); }), ep = "DialogTitle", tp = b.forwardRef((e, t) => { let { __scopeDialog: r, ...n } = e, o = Tt(ep, r); return q.jsx(dr.h2, { id: o.titleId, ...n, ref: t }); }); tp.displayName = ep; var Sw = "DialogDescription", rp = b.forwardRef((e, t) => { let { __scopeDialog: r, ...n } = e, o = Tt(Sw, r); return q.jsx(dr.p, { id: o.descriptionId, ...n, ref: t }); }); rp.displayName = Sw; var Cw = "DialogClose", np = b.forwardRef((e, t) => { let { __scopeDialog: r, ...n } = e, o = Tt(Cw, r); return q.jsx(dr.button, { type: "button", ...n, ref: t, onClick: Rn(e.onClick, () => o.onOpenChange(!1)), }); }); np.displayName = Cw; function xl(e) { return e ? "open" : "closed"; } m(xl, "getState"); var $w = "DialogTitleWarning", [B_, Aw] = $E($w, { contentName: on, titleName: ep, docsSlug: "dialog" }), N_ = m(({ titleId: e }) => { let t = Aw($w), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`; return ( b.useEffect(() => { e && (document.getElementById(e) || console.error(r)); }, [r, e]), null ); }, "TitleWarning"), j_ = "DialogDescriptionWarning", M_ = m(({ contentRef: e, descriptionId: t }) => { let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Aw(j_).contentName}}.`; return ( b.useEffect(() => { let n = e.current?.getAttribute("aria-describedby"); t && n && (document.getElementById(t) || console.warn(r)); }, [r, e, t]), null ); }, "DescriptionWarning"), Dw = Yd, z_ = Kd, kw = Zd, Ow = Jd, Fw = Qd, _w = tp, Tw = rp, Rw = np, Pw = {}; na(Pw, { Actions: () => K_, CloseButton: () => Nw, Col: () => Mw, Container: () => Bw, Content: () => V_, Description: () => Y_, Error: () => X_, ErrorWrapper: () => zw, Header: () => q_, Overlay: () => Lw, Row: () => jw, Title: () => G_, }); var _r = b.forwardRef( ( { asChild: e = !1, animation: t = "none", size: r = "small", variant: n = "outline", padding: o = "medium", disabled: a = !1, active: i = !1, onClick: l, ...s }, u, ) => { let d = "button"; e && (d = VF); let [p, c] = b.useState(!1), f = m((g) => { (l && l(g), t !== "none" && c(!0)); }, "handleClick"); return ( b.useEffect(() => { let g = setTimeout(() => { p && c(!1); }, 1e3); return () => clearTimeout(g); }, [p]), h.createElement(H_, { as: d, ref: u, variant: n, size: r, padding: o, disabled: a, active: i, animating: p, animation: t, onClick: f, ...s, }) ); }, ); _r.displayName = "Button"; var H_ = T("button", { shouldForwardProp: m((e) => od(e), "shouldForwardProp"), })( ({ theme: e, variant: t, size: r, disabled: n, active: o, animating: a, animation: i = "none", padding: l, }) => ({ border: 0, cursor: n ? "not-allowed" : "pointer", display: "inline-flex", gap: "6px", alignItems: "center", justifyContent: "center", overflow: "hidden", padding: l === "none" ? 0 : l === "small" && r === "small" ? "0 7px" : l === "small" && r === "medium" ? "0 9px" : r === "small" ? "0 10px" : r === "medium" ? "0 12px" : 0, height: r === "small" ? "28px" : "32px", position: "relative", textAlign: "center", textDecoration: "none", transitionProperty: "background, box-shadow", transitionDuration: "150ms", transitionTimingFunction: "ease-out", verticalAlign: "top", whiteSpace: "nowrap", userSelect: "none", opacity: n ? 0.5 : 1, margin: 0, fontSize: `${e.typography.size.s1}px`, fontWeight: e.typography.weight.bold, lineHeight: "1", background: t === "solid" ? e.color.secondary : t === "outline" ? e.button.background : t === "ghost" && o ? e.background.hoverable : "transparent", ...(t === "ghost" ? { ".sb-bar &": { background: o ? pt(0.9, e.barTextColor) : "transparent", color: o ? e.barSelectedColor : e.barTextColor, "&:hover": { color: e.barHoverColor, background: pt(0.86, e.barHoverColor), }, "&:active": { color: e.barSelectedColor, background: pt(0.9, e.barSelectedColor), }, "&:focus": { boxShadow: `${nn(e.barHoverColor, 1)} 0 0 0 1px inset`, outline: "none", }, }, } : {}), color: t === "solid" ? e.color.lightest : t === "outline" ? e.input.color : t === "ghost" && o ? e.color.secondary : t === "ghost" ? e.color.mediumdark : e.input.color, boxShadow: t === "outline" ? `${e.button.border} 0 0 0 1px inset` : "none", borderRadius: e.input.borderRadius, flexShrink: 0, "&:hover": { color: t === "ghost" ? e.color.secondary : void 0, background: (() => { let s = e.color.secondary; return ( t === "solid" && (s = e.color.secondary), t === "outline" && (s = e.button.background), t === "ghost" ? pt(0.86, e.color.secondary) : e.base === "light" ? kn(0.02, s) : sm(0.03, s) ); })(), }, "&:active": { color: t === "ghost" ? e.color.secondary : void 0, background: (() => { let s = e.color.secondary; return ( t === "solid" && (s = e.color.secondary), t === "outline" && (s = e.button.background), t === "ghost" ? e.background.hoverable : e.base === "light" ? kn(0.02, s) : sm(0.03, s) ); })(), }, "&:focus": { boxShadow: `${nn(e.color.secondary, 1)} 0 0 0 1px inset`, outline: "none", }, "> svg": { animation: a && i !== "none" ? `${e.animation[i]} 1000ms ease-out` : "", }, }), ), $r = b.forwardRef(({ padding: e = "small", variant: t = "ghost", ...r }, n) => h.createElement(_r, { padding: e, variant: t, ref: n, ...r }), ); $r.displayName = "IconButton"; var Iw = _t({ from: { opacity: 0 }, to: { opacity: 1 } }), U_ = _t({ from: { maxHeight: 0 }, to: {} }), W_ = _t({ from: { opacity: 0, transform: "translate(-50%, -50%) scale(0.9)" }, to: { opacity: 1, transform: "translate(-50%, -50%) scale(1)" }, }), Lw = T.div({ backdropFilter: "blur(24px)", position: "fixed", inset: 0, width: "100%", height: "100%", zIndex: 10, animation: `${Iw} 200ms`, }), Bw = T.div(({ theme: e, width: t, height: r }) => ({ backgroundColor: e.background.bar, borderRadius: 6, boxShadow: "0px 4px 67px 0px #00000040", position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)", width: t ?? 740, height: r ?? "auto", maxWidth: "calc(100% - 40px)", maxHeight: "85vh", overflow: "auto", zIndex: 11, animation: `${W_} 200ms`, "&:focus-visible": { outline: "none" }, })), Nw = m( (e) => h.createElement( Rw, { asChild: !0 }, h.createElement( $r, { "aria-label": "Close", ...e }, h.createElement(TF, null), ), ), "CloseButton", ), V_ = T.div({ display: "flex", flexDirection: "column", margin: 16, gap: 16 }), jw = T.div({ display: "flex", justifyContent: "space-between", gap: 16 }), Mw = T.div({ display: "flex", flexDirection: "column", gap: 4 }), q_ = m( (e) => h.createElement( jw, null, h.createElement(Mw, { ...e }), h.createElement(Nw, null), ), "Header", ), G_ = T(_w)(({ theme: e }) => ({ margin: 0, fontSize: e.typography.size.s3, fontWeight: e.typography.weight.bold, })), Y_ = T(Tw)(({ theme: e }) => ({ position: "relative", zIndex: 1, margin: 0, fontSize: e.typography.size.s2, })), K_ = T.div({ display: "flex", flexDirection: "row-reverse", gap: 8 }), zw = T.div(({ theme: e }) => ({ maxHeight: 100, overflow: "auto", animation: `${U_} 300ms, ${Iw} 300ms`, backgroundColor: e.background.critical, color: e.color.lightest, fontSize: e.typography.size.s2, "& > div": { position: "relative", padding: "8px 16px" }, })), X_ = m( ({ children: e, ...t }) => h.createElement(zw, { ...t }, h.createElement("div", null, e)), "Error", ); function Hw({ children: e, width: t, height: r, onEscapeKeyDown: n, onInteractOutside: o = m((u) => u.preventDefault(), "onInteractOutside"), className: a, container: i, portalSelector: l, ...s }) { let u = i ?? (l ? document.querySelector(l) : null) ?? document.body; return h.createElement( Dw, { ...s }, h.createElement( kw, { container: u }, h.createElement(Ow, { asChild: !0 }, h.createElement(Lw, null)), h.createElement( Fw, { asChild: !0, onInteractOutside: o, onEscapeKeyDown: n }, h.createElement(Bw, { className: a, width: t, height: r }, e), ), ), ); } m(Hw, "BaseModal"); var Z_ = Object.assign(Hw, Pw, { Dialog: CE }), J_ = m((e) => (typeof e == "number" ? e : Number(e)), "toNumber"), Q_ = T.div( ({ theme: e, col: t, row: r = 1 }) => t ? { display: "inline-block", verticalAlign: "inherit", "& > *": { marginLeft: t * e.layoutMargin, verticalAlign: "inherit", }, [`& > *:first-child${gu}`]: { marginLeft: 0 }, } : { "& > *": { marginTop: r * e.layoutMargin }, [`& > *:first-child${gu}`]: { marginTop: 0 }, }, ({ theme: e, outer: t, col: r, row: n }) => { switch (!0) { case !!(t && r): return { marginLeft: t * e.layoutMargin, marginRight: t * e.layoutMargin, }; case !!(t && n): return { marginTop: t * e.layoutMargin, marginBottom: t * e.layoutMargin, }; default: return {}; } }, ), e4 = m(({ col: e, row: t, outer: r, children: n, ...o }) => { let a = J_(typeof r == "number" || !r ? r : e || t); return h.createElement(Q_, { col: e, row: t, outer: a, ...o }, n); }, "Spaced"), t4 = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold })), r4 = T.div(), n4 = T.div(({ theme: e }) => ({ padding: 30, textAlign: "center", color: e.color.defaultText, fontSize: e.typography.size.s2 - 1, })), o4 = m(({ children: e, ...t }) => { let [r, n] = b.Children.toArray(e); return h.createElement( n4, { ...t }, h.createElement(t4, null, r), n && h.createElement(r4, null, n), ); }, "Placeholder"); vd(); function Uw(e, t) { var r = b.useRef(null), n = b.useRef(null); n.current = t; var o = b.useRef(null); b.useEffect(function () { a(); }); var a = b.useCallback( function () { var i = o.current, l = n.current, s = i || (l ? (l instanceof Element ? l : l.current) : null); (r.current && r.current.element === s && r.current.subscriber === e) || (r.current && r.current.cleanup && r.current.cleanup(), (r.current = { element: s, subscriber: e, cleanup: s ? e(s) : void 0, })); }, [e], ); return ( b.useEffect(function () { return function () { r.current && r.current.cleanup && (r.current.cleanup(), (r.current = null)); }; }, []), b.useCallback( function (i) { ((o.current = i), a()); }, [a], ) ); } m(Uw, "useResolvedElement"); function Gu(e, t, r) { return e[t] ? e[t][0] ? e[t][0][r] : e[t][r] : t === "contentBoxSize" ? e.contentRect[r === "inlineSize" ? "width" : "height"] : void 0; } m(Gu, "extractSize"); function op(e) { e === void 0 && (e = {}); var t = e.onResize, r = b.useRef(void 0); r.current = t; var n = e.round || Math.round, o = b.useRef(), a = b.useState({ width: void 0, height: void 0 }), i = a[0], l = a[1], s = b.useRef(!1); b.useEffect(function () { return ( (s.current = !1), function () { s.current = !0; } ); }, []); var u = b.useRef({ width: void 0, height: void 0 }), d = Uw( b.useCallback( function (p) { return ( (!o.current || o.current.box !== e.box || o.current.round !== n) && (o.current = { box: e.box, round: n, instance: new ResizeObserver(function (c) { var f = c[0], g = e.box === "border-box" ? "borderBoxSize" : e.box === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", y = Gu(f, g, "inlineSize"), x = Gu(f, g, "blockSize"), v = y ? n(y) : void 0, C = x ? n(x) : void 0; if (u.current.width !== v || u.current.height !== C) { var w = { width: v, height: C }; ((u.current.width = v), (u.current.height = C), r.current ? r.current(w) : s.current || l(w)); } }), }), o.current.instance.observe(p, { box: e.box }), function () { o.current && o.current.instance.unobserve(p); } ); }, [e.box, n], ), e.ref, ); return b.useMemo( function () { return { ref: d, width: i.width, height: i.height }; }, [d, i.width, i.height], ); } m(op, "useResizeObserver"); var a4 = T.div(({ centered: e = !1, scale: t = 1, elementHeight: r }) => ({ height: r || "auto", transformOrigin: e ? "center top" : "left top", transform: `scale(${1 / t})`, })); function Ww({ centered: e, scale: t, children: r }) { let n = b.useRef(null), [o, a] = b.useState(0), i = b.useCallback( ({ height: l }) => { l && a(l / t); }, [t], ); return ( b.useEffect(() => { n.current && a(n.current.getBoundingClientRect().height); }, [t]), op({ ref: n, onResize: i }), h.createElement( a4, { centered: e, scale: t, elementHeight: o }, h.createElement( "div", { ref: n, className: "innerZoomElementWrapper" }, r, ), ) ); } m(Ww, "ZoomElement"); var Vw = class extends b.Component { constructor() { (super(...arguments), (this.iframe = null)); } componentDidMount() { let { iFrameRef: t } = this.props; this.iframe = t.current; } shouldComponentUpdate(t) { let { scale: r, active: n } = this.props; return ( r !== t.scale && this.setIframeInnerZoom(t.scale), n !== t.active && this.iframe.setAttribute( "data-is-storybook", t.active ? "true" : "false", ), t.children.props.src !== this.props.children.props.src ); } setIframeInnerZoom(t) { try { Object.assign(this.iframe.contentDocument.body.style, { width: `${t * 100}%`, height: `${t * 100}%`, transform: `scale(${1 / t})`, transformOrigin: "top left", }); } catch { this.setIframeZoom(t); } } setIframeZoom(t) { Object.assign(this.iframe.style, { width: `${t * 100}%`, height: `${t * 100}%`, transform: `scale(${1 / t})`, transformOrigin: "top left", }); } render() { let { children: t } = this.props; return h.createElement(h.Fragment, null, t); } }; m(Vw, "ZoomIFrame"); var i4 = Vw, qw = { Element: Ww, IFrame: i4 }; const { global: l4 } = __STORYBOOK_MODULE_GLOBAL__; var { document: s4 } = l4, u4 = T.strong(({ theme: e }) => ({ color: e.color.orange })), c4 = T.strong(({ theme: e }) => ({ color: e.color.ancillary, textDecoration: "underline", })), ym = T.em(({ theme: e }) => ({ color: e.textMutedColor })), d4 = /(Error): (.*)\n/, p4 = /at (?:(.*) )?\(?(.+)\)?/, f4 = /([^@]+)?(?:\/<)?@(.+)?/, g4 = /([^@]+)?@(.+)?/, Gw = m(({ error: e }) => { if (!e) return h.createElement( b.Fragment, null, "This error has no stack or message", ); if (!e.stack) return h.createElement( b.Fragment, null, e.message || "This error has no stack or message", ); let t = e.stack.toString(); t && e.message && !t.includes(e.message) && (t = `Error: ${e.message} ${t}`); let r = t.match(d4); if (!r) return h.createElement(b.Fragment, null, t); let [, n, o] = r, a = t.split(/\n/).slice(1), [, ...i] = a .map((l) => { let s = l.match(p4) || l.match(f4) || l.match(g4); return s ? { name: (s[1] || "").replace("/<", ""), location: s[2].replace(s4.location.origin, ""), } : null; }) .filter(Boolean); return h.createElement( b.Fragment, null, h.createElement("span", null, n), ": ", h.createElement(u4, null, o), h.createElement("br", null), i.map((l, s) => l?.name ? h.createElement( b.Fragment, { key: s }, " ", "at ", h.createElement(c4, null, l.name), " (", h.createElement(ym, null, l.location), ")", h.createElement("br", null), ) : h.createElement( b.Fragment, { key: s }, " ", "at ", h.createElement(ym, null, l?.location), h.createElement("br", null), ), ), ); }, "ErrorFormatter"), m4 = T.input({ appearance: "none", display: "grid", placeContent: "center", width: 14, height: 14, flexShrink: 0, margin: 0, border: `1px solid ${K.border}`, borderRadius: 2, backgroundColor: "white", transition: "background-color 0.1s", "&:enabled": { cursor: "pointer" }, "&:disabled": { backgroundColor: K.medium }, "&:disabled:checked, &:disabled:indeterminate": { backgroundColor: K.mediumdark, }, "&:checked, &:indeterminate": { backgroundColor: K.secondary }, "&:checked::before": { content: '""', width: 14, height: 14, background: `no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`, }, "&:indeterminate::before": { content: '""', width: 8, height: 2, background: "white", }, "&:enabled:focus-visible": { outline: `1px solid ${K.secondary}`, outlineOffset: 1, }, }), h4 = m((e) => h.createElement(m4, { ...e, type: "checkbox" }), "Checkbox"), y4 = T.label(({ theme: e }) => ({ display: "flex", borderBottom: `1px solid ${e.appBorderColor}`, margin: "0 15px", padding: "8px 0", "&:last-child": { marginBottom: "3rem" }, })), b4 = T.span(({ theme: e }) => ({ minWidth: 100, fontWeight: e.typography.weight.bold, marginRight: 15, display: "flex", justifyContent: "flex-start", alignItems: "center", lineHeight: "16px", })), v4 = m( ({ label: e, children: t, ...r }) => h.createElement( y4, { ...r }, e ? h.createElement(b4, null, h.createElement("span", null, e)) : null, t, ), "Field", ), ap = m(({ size: e }) => { switch (e) { case "100%": return { width: "100%" }; case "flex": return { flex: 1 }; case "auto": default: return { display: "inline" }; } }, "sizes"), Yw = m(({ align: e }) => { switch (e) { case "end": return { textAlign: "right" }; case "center": return { textAlign: "center" }; case "start": default: return { textAlign: "left" }; } }, "alignment"), Kw = m(({ valid: e, theme: t }) => { switch (e) { case "valid": return { boxShadow: `${t.color.positive} 0 0 0 1px inset !important` }; case "error": return { boxShadow: `${t.color.negative} 0 0 0 1px inset !important` }; case "warn": return { boxShadow: `${t.color.warning} 0 0 0 1px inset` }; case void 0: case null: default: return {}; } }, "validation"), x4 = { appearance: "none", border: "0 none", boxSizing: "inherit", display: " block", margin: " 0", background: "transparent", padding: 0, fontSize: "inherit", position: "relative", }, Xw = m( ({ theme: e }) => ({ ...x4, transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", color: e.input.color || "inherit", background: e.input.background, boxShadow: `${e.input.border} 0 0 0 1px inset`, borderRadius: e.input.borderRadius, fontSize: e.typography.size.s2 - 1, lineHeight: "20px", padding: "6px 10px", boxSizing: "border-box", height: 32, '&[type="file"]': { height: "auto" }, "&:focus": { boxShadow: `${e.color.secondary} 0 0 0 1px inset`, outline: "none", "@media (forced-colors: active)": { outline: "1px solid highlight" }, }, "&[disabled]": { cursor: "not-allowed", opacity: 0.5 }, "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${e.color.lightest} inset`, }, "&::placeholder": { color: e.textMutedColor, opacity: 1 }, }), "styles", ), E4 = Object.assign( T( b.forwardRef( m(function ({ size: e, valid: t, align: r, ...n }, o) { return h.createElement("input", { ...n, ref: o }); }, "Input"), ), )(Xw, ap, Yw, Kw, { minHeight: 32 }), { displayName: "Input" }, ), w4 = T.input({ appearance: "none", display: "grid", placeContent: "center", width: 16, height: 16, flexShrink: 0, margin: -1, border: `1px solid ${K.border}`, borderRadius: 8, backgroundColor: "white", transition: "background-color 0.1s", "&:enabled": { cursor: "pointer" }, "&:disabled": { backgroundColor: K.medium }, "&:disabled:checked": { backgroundColor: K.mediumdark }, "&:checked": { backgroundColor: K.secondary, boxShadow: "inset 0 0 0 2px white", }, "&:enabled:focus-visible": { outline: `1px solid ${K.secondary}`, outlineOffset: 1, }, }), S4 = m((e) => h.createElement(w4, { ...e, type: "radio" }), "Radio"); function Zw() { try { return ( !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) ); } catch { return !1; } } m(Zw, "isTestEnvironment"); var C4 = T.select(ap, ({ theme: e }) => ({ appearance: "none", background: `calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`, backgroundSize: 10, padding: "6px 30px 6px 10px", "@supports (appearance: base-select)": { appearance: "base-select", background: e.input.background, padding: "6px 10px", }, transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", color: e.input.color || "inherit", boxShadow: `${e.input.border} 0 0 0 1px inset`, borderRadius: e.input.borderRadius, fontSize: e.typography.size.s2 - 1, lineHeight: "20px", boxSizing: "border-box", border: "none", cursor: "pointer", "& > button": { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", gap: 8, "& > svg": { width: 14, height: 14, color: e.color.mediumdark }, }, "&:has(option:not([hidden]):checked)": { color: e.color.defaultText }, "&:focus-visible, &:focus-within": { outline: "none", boxShadow: `${e.color.secondary} 0 0 0 1px inset`, }, "&::picker-icon": { display: "none" }, "&::picker(select)": { appearance: "base-select", border: "1px solid #e4e4e7", padding: 4, marginTop: 4, background: e.base === "light" ? wn(e.background.app) : e.background.app, filter: ` drop-shadow(0 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 0 3px rgba(0,0,0,0.1)) `, borderRadius: e.appBorderRadius + 2, fontSize: e.typography.size.s1, cursor: "default", transition: "opacity 100ms ease-in-out, transform 100ms ease-in-out", transformOrigin: "top", transform: "translateY(0)", opacity: 1, "@starting-style": { transform: "translateY(-0.25rem) scale(0.95)", opacity: 0, }, }, "& optgroup label": { display: "block", padding: "3px 6px" }, "& option": { lineHeight: "18px", padding: "7px 10px", borderRadius: 4, outline: "none", cursor: "pointer", color: e.color.defaultText, "&::checkmark": { display: "none" }, "&:hover, &:focus-visible": { backgroundColor: e.background.hoverable }, "&:checked": { color: e.color.secondary, fontWeight: e.typography.weight.bold, }, "&:disabled": { backgroundColor: "transparent", cursor: "default", color: e.color.defaultText, }, }, })), $4 = m( ({ children: e, ...t }) => h.createElement( C4, { ...t }, !Zw() && h.createElement( "button", null, h.createElement("selectedcontent", null), h.createElement( "svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", }, h.createElement("path", { d: "m6 9 6 6 6-6" }), ), ), h.createElement("optgroup", null, e), ), "Select", ); tl(); sd(); var A4 = b.useLayoutEffect, D4 = m(function (e) { var t = h.useRef(e); return ( A4(function () { t.current = e; }), t ); }, "useLatest"), bm = m(function (e, t) { if (typeof e == "function") { e(t); return; } e.current = t; }, "updateRef"), k4 = m(function (e, t) { var r = h.useRef(); return h.useCallback( function (n) { ((e.current = n), r.current && bm(r.current, null), (r.current = t), t && bm(t, n)); }, [t], ); }, "useComposedRef"), vm = { "min-height": "0", "max-height": "none", height: "0", visibility: "hidden", overflow: "hidden", position: "absolute", "z-index": "-1000", top: "0", right: "0", display: "block", }, O4 = m(function (e) { Object.keys(vm).forEach(function (t) { e.style.setProperty(t, vm[t], "important"); }); }, "forceHiddenStyles"), xm = O4, qe = null, Em = m(function (e, t) { var r = e.scrollHeight; return t.sizingStyle.boxSizing === "border-box" ? r + t.borderSize : r - t.paddingSize; }, "getHeight"); function Jw(e, t, r, n) { (r === void 0 && (r = 1), n === void 0 && (n = 1 / 0), qe || ((qe = document.createElement("textarea")), qe.setAttribute("tabindex", "-1"), qe.setAttribute("aria-hidden", "true"), xm(qe)), qe.parentNode === null && document.body.appendChild(qe)); var o = e.paddingSize, a = e.borderSize, i = e.sizingStyle, l = i.boxSizing; (Object.keys(i).forEach(function (c) { var f = c; qe.style[f] = i[f]; }), xm(qe), (qe.value = t)); var s = Em(qe, e); ((qe.value = t), (s = Em(qe, e)), (qe.value = "x")); var u = qe.scrollHeight - o, d = u * r; (l === "border-box" && (d = d + o + a), (s = Math.max(d, s))); var p = u * n; return (l === "border-box" && (p = p + o + a), (s = Math.min(p, s)), [s, u]); } m(Jw, "calculateNodeHeight"); var wm = m(function () {}, "noop"), F4 = m(function (e, t) { return e.reduce(function (r, n) { return ((r[n] = t[n]), r); }, {}); }, "pick"), _4 = [ "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak", "wordSpacing", "scrollbarGutter", ], T4 = !!document.documentElement.currentStyle, R4 = m(function (e) { var t = window.getComputedStyle(e); if (t === null) return null; var r = F4(_4, t), n = r.boxSizing; if (n === "") return null; T4 && n === "border-box" && (r.width = parseFloat(r.width) + parseFloat(r.borderRightWidth) + parseFloat(r.borderLeftWidth) + parseFloat(r.paddingRight) + parseFloat(r.paddingLeft) + "px"); var o = parseFloat(r.paddingBottom) + parseFloat(r.paddingTop), a = parseFloat(r.borderBottomWidth) + parseFloat(r.borderTopWidth); return { sizingStyle: r, paddingSize: o, borderSize: a }; }, "getSizingData"), P4 = R4; function El(e, t, r) { var n = D4(r); b.useLayoutEffect(function () { var o = m(function (a) { return n.current(a); }, "handler"); if (e) return ( e.addEventListener(t, o), function () { return e.removeEventListener(t, o); } ); }, []); } m(El, "useListener"); var I4 = m(function (e, t) { El(document.body, "reset", function (r) { e.current.form === r.target && t(r); }); }, "useFormResetListener"), L4 = m(function (e) { El(window, "resize", e); }, "useWindowResizeListener"), B4 = m(function (e) { El(document.fonts, "loadingdone", e); }, "useFontsLoadedListener"), N4 = [ "cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange", ], j4 = m(function (e, t) { var r = e.cacheMeasurements, n = e.maxRows, o = e.minRows, a = e.onChange, i = a === void 0 ? wm : a, l = e.onHeightChange, s = l === void 0 ? wm : l, u = nl(e, N4), d = u.value !== void 0, p = b.useRef(null), c = k4(p, t), f = b.useRef(0), g = b.useRef(), y = m(function () { var v = p.current, C = r && g.current ? g.current : P4(v); if (C) { g.current = C; var w = Jw(C, v.value || v.placeholder || "x", o, n), E = w[0], $ = w[1]; f.current !== E && ((f.current = E), v.style.setProperty("height", E + "px", "important"), s(E, { rowHeight: $ })); } }, "resizeTextarea"), x = m(function (v) { (d || y(), i(v)); }, "handleChange"); return ( b.useLayoutEffect(y), I4(p, function () { if (!d) { var v = p.current.value; requestAnimationFrame(function () { var C = p.current; C && v !== C.value && y(); }); } }), L4(y), B4(y), b.createElement("textarea", xe({}, u, { onChange: x, ref: c })) ); }, "TextareaAutosize"), M4 = b.forwardRef(j4), z4 = Object.assign( T( b.forwardRef( m(function ({ size: e, valid: t, align: r, ...n }, o) { return h.createElement(M4, { ...n, ref: o }); }, "Textarea"), ), )(Xw, ap, Yw, Kw, ({ height: e = 400 }) => ({ overflow: "visible", maxHeight: e, })), { displayName: "Textarea" }, ), uo = Object.assign(T.form({ boxSizing: "border-box", width: "100%" }), { Field: v4, Input: E4, Select: $4, Textarea: z4, Button: _r, Checkbox: h4, Radio: S4, }), H4 = b.lazy(() => Promise.resolve() .then(() => (Bd(), Ld)) .then((e) => ({ default: e.WithTooltip })), ), U4 = m( (e) => h.createElement( b.Suspense, { fallback: h.createElement("div", null) }, h.createElement(H4, { ...e }), ), "WithTooltip", ), W4 = b.lazy(() => Promise.resolve() .then(() => (Bd(), Ld)) .then((e) => ({ default: e.WithTooltipPure })), ), Qw = m( (e) => h.createElement( b.Suspense, { fallback: h.createElement("div", null) }, h.createElement(W4, { ...e }), ), "WithTooltipPure", ), V4 = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold })), q4 = T.span(), G4 = T.div(({ theme: e }) => ({ marginTop: 8, textAlign: "center", "> *": { margin: "0 8px", fontWeight: e.typography.weight.bold }, })), Y4 = T.div(({ theme: e }) => ({ color: e.color.defaultText, lineHeight: "18px", })), K4 = T.div({ padding: 15, width: 280, boxSizing: "border-box" }), X4 = m( ({ title: e, desc: t, links: r }) => h.createElement( K4, null, h.createElement( Y4, null, e && h.createElement(V4, null, e), t && h.createElement(q4, null, t), ), r && h.createElement( G4, null, r.map(({ title: n, ...o }) => h.createElement(Jn, { ...o, key: n }, n), ), ), ), "TooltipMessage", ), Z4 = T.div(({ theme: e }) => ({ padding: "2px 6px", lineHeight: "16px", fontSize: 10, fontWeight: e.typography.weight.bold, color: e.color.lightest, boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.3)", borderRadius: 4, whiteSpace: "nowrap", pointerEvents: "none", zIndex: -1, background: e.base === "light" ? "rgba(60, 60, 60, 0.9)" : "rgba(0, 0, 0, 0.95)", margin: 6, })), J4 = m( ({ note: e, ...t }) => h.createElement(Z4, { ...t }, e), "TooltipNote", ), Q4 = je(rl(), 1), eT = T(({ active: e, loading: t, disabled: r, ...n }) => h.createElement("span", { ...n }), )( ({ theme: e }) => ({ color: e.color.defaultText, fontWeight: e.typography.weight.regular, }), ({ active: e, theme: t }) => e ? { color: t.color.secondary, fontWeight: t.typography.weight.bold } : {}, ({ loading: e, theme: t }) => e ? { display: "inline-block", flex: "none", ...t.animation.inlineGlow } : {}, ({ disabled: e, theme: t }) => (e ? { color: t.textMutedColor } : {}), ), tT = T.span({ display: "flex", "& svg": { height: 12, width: 12, margin: "3px 0", verticalAlign: "top" }, "& path": { fill: "inherit" }, }), rT = T.span( { flex: 1, textAlign: "left", display: "flex", flexDirection: "column" }, ({ isIndented: e }) => (e ? { marginLeft: 24 } : {}), ), nT = T.span( ({ theme: e }) => ({ fontSize: "11px", lineHeight: "14px" }), ({ active: e, theme: t }) => (e ? { color: t.color.secondary } : {}), ({ theme: e, disabled: t }) => (t ? { color: e.textMutedColor } : {}), ), oT = T.span( ({ active: e, theme: t }) => (e ? { color: t.color.secondary } : {}), () => ({ display: "flex", maxWidth: 14 }), ), aT = T.div( ({ theme: e }) => ({ width: "100%", border: "none", borderRadius: e.appBorderRadius, background: "none", fontSize: e.typography.size.s1, transition: "all 150ms ease-out", color: e.color.dark, textDecoration: "none", justifyContent: "space-between", lineHeight: "18px", padding: "7px 10px", display: "flex", alignItems: "center", "& > * + *": { paddingLeft: 10 }, }), ({ theme: e, href: t, onClick: r }) => (t || r) && { cursor: "pointer", "&:hover": { background: e.background.hoverable }, "&:hover svg": { opacity: 1 }, }, ({ theme: e, as: t }) => t === "label" && { "&:has(input:not(:disabled))": { cursor: "pointer", "&:hover": { background: e.background.hoverable }, }, }, ({ disabled: e }) => e && { cursor: "not-allowed" }, ), iT = (0, Q4.default)(100)( ({ onClick: e, input: t, href: r, LinkWrapper: n }) => ({ ...(e && { as: "button", onClick: e }), ...(t && { as: "label" }), ...(r && { as: "a", href: r, ...(n && { as: n, to: r }) }), }), ), lT = m((e) => { let { loading: t = !1, title: r = h.createElement("span", null, "Loading state"), center: n = null, right: o = null, active: a = !1, disabled: i = !1, isIndented: l = !1, href: s = void 0, onClick: u = void 0, icon: d, input: p, LinkWrapper: c = void 0, ...f } = e, g = { active: a, disabled: i }, y = iT(e), x = d || p; return h.createElement( aT, { ...f, ...g, ...y }, h.createElement( h.Fragment, null, x && h.createElement(oT, { ...g }, x), r || n ? h.createElement( rT, { isIndented: l && !x }, r && h.createElement(eT, { ...g, loading: t }, r), n && h.createElement(nT, { ...g }, n), ) : null, o && h.createElement(tT, { ...g }, o), ), ); }, "ListItem"), eS = lT, sT = T.div( { minWidth: 180, overflow: "hidden", overflowY: "auto", maxHeight: 15.5 * 32 + 8, }, ({ theme: e }) => ({ borderRadius: e.appBorderRadius + 2 }), ({ theme: e }) => e.base === "dark" ? { background: e.background.content } : {}, ), uT = T.div(({ theme: e }) => ({ padding: 4, "& + &": { borderTop: `1px solid ${e.appBorderColor}` }, })), cT = m(({ id: e, onClick: t, ...r }) => { let { active: n, disabled: o, title: a, href: i } = r, l = b.useCallback( (s) => t?.(s, { id: e, active: n, disabled: o, title: a, href: i }), [t, e, n, o, a, i], ); return h.createElement(eS, { id: `list-item-${e}`, ...r, ...(t && { onClick: l }), }); }, "Item"), tS = m(({ links: e, LinkWrapper: t, ...r }) => { let n = Array.isArray(e[0]) ? e : [e], o = n.some((a) => a.some((i) => ("icon" in i && i.icon) || ("input" in i && i.input)), ); return h.createElement( sT, { ...r }, n .filter((a) => a.length) .map((a, i) => h.createElement( uT, { key: a.map((l) => l.id).join(`~${i}~`) }, a.map((l) => "content" in l ? h.createElement(b.Fragment, { key: l.id }, l.content) : h.createElement(cT, { key: l.id, isIndented: o, LinkWrapper: t, ...l, }), ), ), ), ); }, "TooltipLinkList"); vd(); var Yu = T.div( { display: "flex", whiteSpace: "nowrap", flexBasis: "auto", marginLeft: 3, marginRight: 10, }, ({ scrollable: e }) => (e ? { flexShrink: 0 } : {}), ({ left: e }) => (e ? { "& > *": { marginLeft: 4 } } : {}), ({ right: e }) => (e ? { gap: 6 } : {}), ); Yu.displayName = "Side"; var dT = m( ({ children: e, className: t, scrollable: r }) => r ? h.createElement(Yo, { vertical: !1, className: t }, e) : h.createElement("div", { className: t }, e), "UnstyledBar", ), ip = T(dT)( ({ backgroundColor: e, theme: t, scrollable: r = !0 }) => ({ color: t.barTextColor, width: "100%", minHeight: 40, flexShrink: 0, scrollbarColor: `${t.barTextColor} ${e || t.barBg}`, scrollbarWidth: "thin", overflow: r ? "auto" : "hidden", overflowY: "hidden", }), ({ theme: e, border: t = !1 }) => t ? { boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`, background: e.barBg, } : {}, ); ip.displayName = "Bar"; var pT = T.div(({ bgColor: e }) => ({ display: "flex", justifyContent: "space-between", position: "relative", flexWrap: "nowrap", flexShrink: 0, height: 40, backgroundColor: e || "", })), wl = m(({ children: e, backgroundColor: t, className: r, ...n }) => { let [o, a] = b.Children.toArray(e); return h.createElement( ip, { backgroundColor: t, className: `sb-bar ${r}`, ...n }, h.createElement( pT, { bgColor: t }, h.createElement(Yu, { scrollable: n.scrollable, left: !0 }, o), a ? h.createElement(Yu, { right: !0 }, a) : null, ), ); }, "FlexBar"); wl.displayName = "FlexBar"; var fT = m((e) => typeof e.props.href == "string", "isLink"), gT = m((e) => typeof e.props.href != "string", "isButton"); function rS({ children: e, ...t }, r) { let n = { props: t, ref: r }; if (fT(n)) return h.createElement("a", { ref: n.ref, ...n.props }, e); if (gT(n)) return h.createElement( "button", { ref: n.ref, type: "button", ...n.props }, e, ); throw new Error("invalid props"); } m(rS, "ForwardRefFunction"); var nS = b.forwardRef(rS); nS.displayName = "ButtonOrLink"; var ca = T(nS, { shouldForwardProp: od })( { whiteSpace: "normal", display: "inline-flex", overflow: "hidden", verticalAlign: "top", justifyContent: "center", alignItems: "center", textAlign: "center", textDecoration: "none", "&:empty": { display: "none" }, "&[hidden]": { display: "none" }, }, ({ theme: e }) => ({ padding: "0 15px", transition: "color 0.2s linear, border-bottom-color 0.2s linear", height: 40, lineHeight: "12px", cursor: "pointer", background: "transparent", border: "0 solid transparent", borderTop: "3px solid transparent", borderBottom: "3px solid transparent", fontWeight: "bold", fontSize: 13, "&:focus": { outline: "0 none", borderBottomColor: e.barSelectedColor }, }), ({ active: e, textColor: t, theme: r }) => e ? { color: t || r.barSelectedColor, borderBottomColor: r.barSelectedColor, } : { color: t || r.barTextColor, borderBottomColor: "transparent", "&:hover": { color: r.barHoverColor }, }, ); ca.displayName = "TabButton"; var mT = T.div(({ theme: e }) => ({ height: "100%", display: "flex", padding: 30, alignItems: "center", justifyContent: "center", flexDirection: "column", gap: 15, background: e.background.content, })), hT = T.div({ display: "flex", flexDirection: "column", gap: 4, maxWidth: 415, }), yT = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold, fontSize: e.typography.size.s2 - 1, textAlign: "center", color: e.textColor, })), bT = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.regular, fontSize: e.typography.size.s2 - 1, textAlign: "center", color: e.textMutedColor, })), Sl = m( ({ title: e, description: t, footer: r }) => h.createElement( mT, null, h.createElement( hT, null, h.createElement(yT, null, e), t && h.createElement(bT, null, t), ), r, ), "EmptyTabContent", ), oS = T.div(({ active: e }) => e ? { display: "block" } : { display: "none" }, ), vT = m( (e) => b.Children.toArray(e).map( ({ props: { title: t, id: r, color: n, children: o } }) => { let a = Array.isArray(o) ? o[0] : o; return { title: t, id: r, ...(n ? { color: n } : {}), render: typeof a == "function" ? a : ({ active: i }) => h.createElement(oS, { active: i, role: "tabpanel" }, a), }; }, ), "childrenToList", ); Bd(); var xT = T.span(({ theme: e, isActive: t }) => ({ display: "inline-block", width: 0, height: 0, marginLeft: 8, color: t ? e.color.secondary : e.color.mediumdark, borderRight: "3px solid transparent", borderLeft: "3px solid transparent", borderTop: "3px solid", transition: "transform .1s ease-out", })), ET = T(ca)( ({ active: e, theme: t, preActive: r }) => ` color: ${r || e ? t.barSelectedColor : t.barTextColor}; .addon-collapsible-icon { color: ${r || e ? t.barSelectedColor : t.barTextColor}; } &:hover { color: ${t.barHoverColor}; .addon-collapsible-icon { color: ${t.barHoverColor}; } } `, ); function aS(e) { let t = b.useRef(), r = b.useRef(), n = b.useRef(new Map()), { width: o = 1 } = op({ ref: t }), [a, i] = b.useState(e), [l, s] = b.useState([]), u = b.useRef(e), d = b.useCallback( ({ menuName: c, actions: f }) => { let g = l.some(({ active: v }) => v), [y, x] = b.useState(!1); return h.createElement( h.Fragment, null, h.createElement( Si, { interactive: !0, visible: y, onVisibleChange: x, placement: "bottom", delayHide: 100, tooltip: h.createElement(tS, { links: l.map(({ title: v, id: C, color: w, active: E }) => ({ id: C, title: v, color: w, active: E, onClick: m(($) => { ($.preventDefault(), f.onSelect(C)); }, "onClick"), })), }), }, h.createElement( ET, { id: "addons-menu-button", ref: r, active: g, preActive: y, style: { visibility: l.length ? "visible" : "hidden" }, "aria-hidden": !l.length, className: "tabbutton", type: "button", role: "tab", }, c, h.createElement(xT, { className: "addon-collapsible-icon", isActive: g || y, }), ), ), l.map(({ title: v, id: C, color: w }, E) => { let $ = `index-${E}`; return h.createElement( ca, { id: `tabbutton-${Wi(C) ?? $}`, style: { visibility: "hidden" }, "aria-hidden": !0, tabIndex: -1, ref: (A) => { n.current.set(C, A); }, className: "tabbutton", type: "button", key: C, textColor: w, role: "tab", }, v, ); }), ); }, [l], ), p = b.useCallback(() => { if (!t.current || !r.current) return; let { x: c, width: f } = t.current.getBoundingClientRect(), { width: g } = r.current.getBoundingClientRect(), y = l.length ? c + f - g : c + f, x = [], v = 0, C = e.filter((w) => { let { id: E } = w, $ = n.current.get(E), { width: A = 0 } = $?.getBoundingClientRect() || {}, S = c + v + A > y; return ((!S || !$) && x.push(w), (v += A), S); }); (x.length !== a.length || u.current !== e) && (i(x), s(C), (u.current = e)); }, [l.length, e, a]); return ( b.useLayoutEffect(p, [p, o]), { tabRefs: n, addonsRef: r, tabBarRef: t, visibleList: a, invisibleList: l, AddonTab: d, } ); } m(aS, "useList"); var wT = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", ST = T.div( ({ theme: e, bordered: t }) => t ? { backgroundClip: "padding-box", border: `1px solid ${e.appBorderColor}`, borderRadius: e.appBorderRadius, overflow: "hidden", boxSizing: "border-box", } : {}, ({ absolute: e }) => e ? { width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", } : { display: "block" }, ), lp = T.div({ overflow: "hidden", "&:first-of-type": { marginLeft: -3 }, whiteSpace: "nowrap", flexGrow: 1, }); lp.displayName = "TabBar"; var CT = T.div( { display: "block", position: "relative", container: "tab-content / inline-size", }, ({ theme: e }) => ({ fontSize: e.typography.size.s2 - 1, background: e.background.content, }), ({ bordered: e, theme: t }) => e ? { borderRadius: `0 0 ${t.appBorderRadius - 1}px ${t.appBorderRadius - 1}px`, } : {}, ({ absolute: e, bordered: t }) => e ? { height: `calc(100% - ${t ? 42 : 40}px)`, position: "absolute", left: 0 + (t ? 1 : 0), right: 0 + (t ? 1 : 0), bottom: 0 + (t ? 1 : 0), top: 40 + (t ? 1 : 0), overflow: "auto", [`& > *:first-child${wT}`]: { position: "absolute", left: 0 + (t ? 1 : 0), right: 0 + (t ? 1 : 0), bottom: 0 + (t ? 1 : 0), top: 0 + (t ? 1 : 0), height: `calc(100% - ${t ? 2 : 0}px)`, overflow: "auto", }, } : {}, ), $T = m( ({ active: e, render: t, children: r }) => h.createElement(oS, { active: e }, t ? t() : r), "TabWrapper", ), iS = class extends b.Component { constructor(t) { (super(t), (this.state = { hasError: !1 })); } static getDerivedStateFromError() { return { hasError: !0 }; } componentDidCatch(t, r) { (console.error("Error rendering addon panel"), console.error(t), console.error(r.componentStack)); } render() { return this.state.hasError && this.props.active ? h.createElement(Sl, { title: "This addon has errors", description: "Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook.", }) : this.props.children; } }; m(iS, "TabErrorBoundary"); var AT = iS, sp = b.memo( ({ children: e, selected: t = null, actions: r, absolute: n = !1, bordered: o = !1, tools: a = null, backgroundColor: i, id: l = null, menuName: s = "Tabs", emptyState: u, showToolsWhenEmpty: d, }) => { let p = b.useMemo( () => vT(e).map((v, C) => ({ ...v, active: t ? v.id === t : C === 0 })), [e, t], ), { visibleList: c, tabBarRef: f, tabRefs: g, AddonTab: y } = aS(p), x = u ?? h.createElement(Sl, { title: "Nothing found" }); return !d && p.length === 0 ? x : h.createElement( ST, { absolute: n, bordered: o, id: l }, h.createElement( wl, { scrollable: !1, border: !0, backgroundColor: i }, h.createElement( lp, { style: { whiteSpace: "normal" }, ref: f, role: "tablist" }, c.map(({ title: v, id: C, active: w, color: E }, $) => { let A = `index-${$}`; return h.createElement( ca, { id: `tabbutton-${Wi(C) ?? A}`, ref: (S) => { g.current.set(C, S); }, className: `tabbutton ${w ? "tabbutton-active" : ""}`, type: "button", key: C, active: w, textColor: E, onClick: (S) => { (S.preventDefault(), r.onSelect(C)); }, role: "tab", }, typeof v == "function" ? h.createElement("title", null) : v, ); }), h.createElement(y, { menuName: s, actions: r }), ), a, ), h.createElement( CT, { id: "panel-tab-content", bordered: o, absolute: n }, p.length ? p.map(({ id: v, active: C, render: w }) => h.createElement( AT, { key: v, active: C }, h.createElement(w, { active: C }, null), ), ) : x, ), ); }, ); sp.displayName = "Tabs"; var Ku = class extends b.Component { constructor(t) { (super(t), (this.handlers = { onSelect: m((r) => this.setState({ selected: r }), "onSelect"), }), (this.state = { selected: t.initial })); } render() { let { bordered: t = !1, absolute: r = !1, children: n, backgroundColor: o, menuName: a, } = this.props, { selected: i } = this.state; return h.createElement( sp, { bordered: t, absolute: r, selected: i, backgroundColor: o, menuName: a, actions: this.handlers, }, n, ); } }; (m(Ku, "TabsState"), (Ku.defaultProps = { children: [], initial: null, absolute: !1, bordered: !1, backgroundColor: "", menuName: void 0, })); var lS = Ku, up = T.span( ({ theme: e }) => ({ width: 1, height: 20, background: e.appBorderColor, marginLeft: 2, marginRight: 2, }), ({ force: e }) => (e ? {} : { "& + &": { display: "none" } }), ); up.displayName = "Separator"; var DT = m( (e) => e.reduce( (t, r, n) => r ? h.createElement( b.Fragment, { key: r.id || r.key || `f-${n}` }, t, n > 0 ? h.createElement(up, { key: `s-${n}` }) : null, r.render() || r, ) : t, null, ), "interleaveSeparators", ), kT = m((e) => { let t = b.useRef(); return ( b.useEffect(() => { t.current = e; }, [e]), t.current ); }, "usePrevious"), OT = m((e, t) => { let r = kT(t); return e ? t : r; }, "useUpdate"), FT = m( ({ active: e, children: t }) => h.createElement("div", { hidden: !e }, OT(e, t)), "AddonPanel", ), _T = m( ({ alt: e, ...t }) => h.createElement( "svg", { width: "200px", height: "40px", viewBox: "0 0 200 40", ...t, role: "img", }, e ? h.createElement("title", null, e) : null, h.createElement( "defs", null, h.createElement("path", { d: "M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z", id: "a", }), ), h.createElement( "g", { fill: "none", fillRule: "evenodd" }, h.createElement("path", { d: "M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z", fill: "currentColor", }), h.createElement( "mask", { id: "b", fill: "#fff" }, h.createElement("use", { xlinkHref: "#a" }), ), h.createElement("use", { fill: "#FF4785", fillRule: "nonzero", xlinkHref: "#a", }), h.createElement("path", { d: "M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z", fill: "#FFF", fillRule: "nonzero", mask: "url(#b)", }), ), ), "StorybookLogo", ), TT = m( (e) => h.createElement( "svg", { viewBox: "0 0 64 64", ...e }, h.createElement("title", null, "Storybook icon"), h.createElement( "g", { id: "Artboard", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", }, h.createElement("path", { d: "M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z", id: "path-1", fill: "#FF4785", fillRule: "nonzero", }), h.createElement("path", { d: "M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z", id: "path9_fill-path", fill: "#FFFFFF", fillRule: "nonzero", }), h.createElement("path", { d: "M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z", id: "Path", fill: "#FFFFFF", }), ), ), "StorybookIcon", ), RT = _t` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `, PT = T.div(({ size: e = 32 }) => ({ borderRadius: "50%", cursor: "progress", display: "inline-block", overflow: "hidden", position: "absolute", transition: "all 200ms ease-out", verticalAlign: "top", top: "50%", left: "50%", marginTop: -(e / 2), marginLeft: -(e / 2), height: e, width: e, zIndex: 4, borderWidth: 2, borderStyle: "solid", borderColor: "rgba(97, 97, 97, 0.29)", borderTopColor: "rgb(100,100,100)", animation: `${RT} 0.7s linear infinite`, mixBlendMode: "difference", })), Sm = T.div({ position: "absolute", display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", width: "100%", height: "100%", }), IT = T.div(({ theme: e }) => ({ position: "relative", width: "80%", marginBottom: "0.75rem", maxWidth: 300, height: 5, borderRadius: 5, background: pt(0.8, e.color.secondary), overflow: "hidden", cursor: "progress", })), LT = T.div(({ theme: e }) => ({ position: "absolute", top: 0, left: 0, height: "100%", background: e.color.secondary, })), Cm = T.div(({ theme: e }) => ({ minHeight: "2em", fontSize: `${e.typography.size.s1}px`, color: e.textMutedColor, })), BT = T(_F)(({ theme: e }) => ({ width: 20, height: 20, marginBottom: "0.5rem", color: e.textMutedColor, })), NT = _t` from { content: "..." } 33% { content: "." } 66% { content: ".." } to { content: "..." } `, jT = T.span({ "&::after": { content: "'...'", animation: `${NT} 1s linear infinite`, animationDelay: "1s", display: "inline-block", width: "1em", height: "auto", }, }), sS = m(({ progress: e, error: t, size: r, ...n }) => { if (t) return h.createElement( Sm, { "aria-label": t.toString(), "aria-live": "polite", role: "status", ...n, }, h.createElement(BT, null), h.createElement(Cm, null, t.message), ); if (e) { let { value: o, modules: a } = e, { message: i } = e; return ( a && (i += ` ${a.complete} / ${a.total} modules`), h.createElement( Sm, { "aria-label": "Content is loading...", "aria-live": "polite", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": o * 100, "aria-valuetext": i, role: "progressbar", ...n, }, h.createElement( IT, null, h.createElement(LT, { style: { width: `${o * 100}%` } }), ), h.createElement( Cm, null, i, o < 1 && h.createElement(jT, { key: i }), ), ) ); } return h.createElement(PT, { "aria-label": "Content is loading...", "aria-live": "polite", role: "status", size: r, ...n, }); }, "Loader"), ys = "http://www.w3.org/2000/svg", MT = _t({ "0%": { transform: "rotate(0deg)" }, "100%": { transform: "rotate(360deg)" }, }), $m = T.div(({ size: e }) => ({ display: "inline-flex", alignItems: "center", justifyContent: "center", position: "relative", minWidth: e, minHeight: e, })), bs = T.svg( ({ size: e, width: t }) => ({ position: "absolute", width: `${e}px!important`, height: `${e}px!important`, transform: "rotate(-90deg)", circle: { r: (e - Math.ceil(t)) / 2, cx: e / 2, cy: e / 2, opacity: 0.15, fill: "transparent", stroke: "currentColor", strokeWidth: t, strokeLinecap: "round", strokeDasharray: Math.PI * (e - Math.ceil(t)), }, }), ({ progress: e }) => e && { circle: { opacity: 0.75 } }, ({ spinner: e }) => e && { animation: `${MT} 1s linear infinite`, circle: { opacity: 0.25 } }, ), zT = m( ({ percentage: e = void 0, running: t = !0, size: r = 24, width: n = 1.5, children: o = null, ...a }) => typeof e == "number" ? h.createElement( $m, { size: r, ...a }, o, h.createElement( bs, { size: r, width: n, xmlns: ys }, h.createElement("circle", null), ), t && h.createElement( bs, { size: r, width: n, xmlns: ys, spinner: !0 }, h.createElement("circle", { strokeDashoffset: Math.PI * (r - Math.ceil(n)) * (1 - e / 100), }), ), h.createElement( bs, { size: r, width: n, xmlns: ys, progress: !0 }, h.createElement("circle", { strokeDashoffset: Math.PI * (r - Math.ceil(n)) * (1 - e / 100), }), ), ) : h.createElement($m, { size: r, ...a }, o), "ProgressSpinner", ); function uS(e) { let t = {}, r = e.split("&"); for (let n = 0; n < r.length; n++) { let o = r[n].split("="); t[decodeURIComponent(o[0])] = decodeURIComponent(o[1] || ""); } return t; } m(uS, "parseQuery"); var cS = m((e, t, r = {}) => { let [n, o] = e.split("?"), a = o ? { ...uS(o), ...r, id: t } : { ...r, id: t }; return `${n}?${Object.entries(a) .map((i) => `${i[0]}=${i[1]}`) .join("&")}`; }, "getStoryHref"), HT = T.pre` line-height: 18px; padding: 11px 1rem; white-space: pre-wrap; background: rgba(0, 0, 0, 0.05); color: ${K.darkest}; border-radius: 3px; margin: 1rem 0; width: 100%; display: block; overflow: hidden; font-family: ${zt.fonts.mono}; font-size: ${zt.size.s2 - 1}px; `, UT = m( ({ code: e, ...t }) => h.createElement(HT, { id: "clipboard-code", ...t }, e), "ClipboardCode", ), dS = SE, pS = {}; Object.keys(SE).forEach((e) => { pS[e] = b.forwardRef((t, r) => b.createElement(e, { ...t, ref: r })); }); const WT = Object.freeze( Object.defineProperty( { __proto__: null, A: aE, get ActionBar() { return al; }, AddonPanel: FT, Badge: FF, Bar: ip, Blockquote: iE, Button: _r, ClipboardCode: UT, Code: zd, DL: lE, Div: sE, DocumentWrapper: jF, EmptyTabContent: Sl, ErrorFormatter: Gw, FlexBar: wl, Form: uo, H1: uE, H2: Hd, H3: Ud, H4: cE, H5: dE, H6: pE, HR: fE, IconButton: $r, Img: gE, LI: mE, Link: Jn, ListItem: eS, Loader: sS, Modal: Z_, OL: hE, P: yE, Placeholder: o4, Pre: bE, ProgressSpinner: zT, ResetWrapper: Md, get ScrollArea() { return Yo; }, Separator: up, Spaced: e4, Span: vE, StorybookIcon: TT, StorybookLogo: _T, SyntaxHighlighter: ml, TT: xE, TabBar: lp, TabButton: ca, TabWrapper: $T, Table: EE, Tabs: sp, TabsState: lS, TooltipLinkList: tS, TooltipMessage: X4, TooltipNote: J4, UL: wE, WithTooltip: U4, WithTooltipPure: Qw, Zoom: qw, codeCommon: cr, components: dS, createCopyToClipboardFunction: vi, getStoryHref: cS, interleaveSeparators: DT, nameSpaceClassNames: ve, resetComponents: pS, withReset: we, }, Symbol.toStringTag, { value: "Module" }, ), ); var VT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z", fill: e, }), ), ), qT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z", fill: e, }), ), ), GT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z", fill: e, }), ), ), YT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z", fill: e, }), ), ), KT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z", fill: e, }), b.createElement("path", { d: "M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z", fill: e, }), ), ), Xu = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z", fill: e, }), ), ), MN = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z", fill: e, }), ), ), XT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", fill: e, }), ), ), ZT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z", fill: e, }), b.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", fill: e, }), ), ), JT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z", fill: e, }), b.createElement("path", { d: "M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z", fill: e, }), ), ), QT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z", fill: e, }), ), ), eR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z", fill: e, }), ), ), tR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z", fill: e, }), ), ), fS = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z", fill: e, }), ), ), rR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => b.createElement( "svg", { width: t, height: t, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...r, }, b.createElement("path", { d: "M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z", fill: e, }), ), ); function nR(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var o = n.reduce(function (l, s) { var u = s.match(/\n([\t ]+|(?!\s).)/g); return u ? l.concat( u.map(function (d) { var p, c; return (c = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && c !== void 0 ? c : 0; }), ) : l; }, []); if (o.length) { var a = new RegExp( ` [ ]{` + Math.min.apply(Math, o) + "}", "g", ); n = n.map(function (l) { return l.replace( a, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (l, s) { var u = i.match(/(?:^|\n)( *)$/), d = u ? u[1] : "", p = l; (typeof l == "string" && l.includes(` `) && (p = String(l) .split( ` `, ) .map(function (c, f) { return f === 0 ? c : "" + d + c; }).join(` `)), (i += p + n[s + 1])); }), i ); } const { deprecate: oR, once: aR, logger: cp, } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { NAVIGATE_URL: gS, STORY_ARGS_UPDATED: Am, UPDATE_STORY_ARGS: iR, RESET_STORY_ARGS: lR, GLOBALS_UPDATED: Dm, } = __STORYBOOK_MODULE_CORE_EVENTS__, { filterArgTypes: km, composeConfigs: zN, Preview: HN, DocsContext: UN, } = __STORYBOOK_MODULE_PREVIEW_API__, { Channel: WN } = __STORYBOOK_MODULE_CHANNELS__; var sR = aD({ "../../node_modules/memoizerific/memoizerific.js"(e, t) { (function (r) { if (typeof e == "object" && typeof t < "u") t.exports = r(); else if (typeof define == "function" && define.amd) define([], r); else { var n; (typeof window < "u" ? (n = window) : typeof global < "u" ? (n = global) : typeof self < "u" ? (n = self) : (n = this), (n.memoizerific = r())); } })(function () { return (function r(n, o, a) { function i(u, d) { if (!o[u]) { if (!n[u]) { var p = typeof ya == "function" && ya; if (!d && p) return p(u, !0); if (l) return l(u, !0); var c = new Error("Cannot find module '" + u + "'"); throw ((c.code = "MODULE_NOT_FOUND"), c); } var f = (o[u] = { exports: {} }); n[u][0].call( f.exports, function (g) { var y = n[u][1][g]; return i(y || g); }, f, f.exports, r, n, o, a, ); } return o[u].exports; } for (var l = typeof ya == "function" && ya, s = 0; s < a.length; s++) i(a[s]); return i; })( { 1: [ function (r, n, o) { n.exports = function (a) { if (typeof Map != "function" || a) { var i = r("./similar"); return new i(); } else return new Map(); }; }, { "./similar": 2 }, ], 2: [ function (r, n, o) { function a() { return ( (this.list = []), (this.lastItem = void 0), (this.size = 0), this ); } ((a.prototype.get = function (i) { var l; if (this.lastItem && this.isEqual(this.lastItem.key, i)) return this.lastItem.val; if (((l = this.indexOf(i)), l >= 0)) return ((this.lastItem = this.list[l]), this.list[l].val); }), (a.prototype.set = function (i, l) { var s; return this.lastItem && this.isEqual(this.lastItem.key, i) ? ((this.lastItem.val = l), this) : ((s = this.indexOf(i)), s >= 0 ? ((this.lastItem = this.list[s]), (this.list[s].val = l), this) : ((this.lastItem = { key: i, val: l }), this.list.push(this.lastItem), this.size++, this)); }), (a.prototype.delete = function (i) { var l; if ( (this.lastItem && this.isEqual(this.lastItem.key, i) && (this.lastItem = void 0), (l = this.indexOf(i)), l >= 0) ) return (this.size--, this.list.splice(l, 1)[0]); }), (a.prototype.has = function (i) { var l; return this.lastItem && this.isEqual(this.lastItem.key, i) ? !0 : ((l = this.indexOf(i)), l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); }), (a.prototype.forEach = function (i, l) { var s; for (s = 0; s < this.size; s++) i.call(l || this, this.list[s].val, this.list[s].key, this); }), (a.prototype.indexOf = function (i) { var l; for (l = 0; l < this.size; l++) if (this.isEqual(this.list[l].key, i)) return l; return -1; }), (a.prototype.isEqual = function (i, l) { return i === l || (i !== i && l !== l); }), (n.exports = a)); }, {}, ], 3: [ function (r, n, o) { var a = r("map-or-similar"); n.exports = function (u) { var d = new a(!1), p = []; return function (c) { var f = function () { var g = d, y, x, v = arguments.length - 1, C = Array(v + 1), w = !0, E; if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) throw new Error( "Memoizerific functions should always be called with the same number of arguments", ); for (E = 0; E < v; E++) { if ( ((C[E] = { cacheItem: g, arg: arguments[E] }), g.has(arguments[E])) ) { g = g.get(arguments[E]); continue; } ((w = !1), (y = new a(!1)), g.set(arguments[E], y), (g = y)); } return ( w && (g.has(arguments[v]) ? (x = g.get(arguments[v])) : (w = !1)), w || ((x = c.apply(null, arguments)), g.set(arguments[v], x)), u > 0 && ((C[v] = { cacheItem: g, arg: arguments[v] }), w ? i(p, C) : p.push(C), p.length > u && l(p.shift())), (f.wasMemoized = w), (f.numArgs = v + 1), x ); }; return ( (f.limit = u), (f.wasMemoized = !1), (f.cache = d), (f.lru = p), f ); }; }; function i(u, d) { var p = u.length, c = d.length, f, g, y; for (g = 0; g < p; g++) { for (f = !0, y = 0; y < c; y++) if (!s(u[g][y].arg, d[y].arg)) { f = !1; break; } if (f) break; } u.push(u.splice(g, 1)[0]); } function l(u) { var d = u.length, p = u[d - 1], c, f; for ( p.cacheItem.delete(p.arg), f = d - 2; f >= 0 && ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); f-- ) p.cacheItem.delete(p.arg); } function s(u, d) { return u === d || (u !== u && d !== d); } }, { "map-or-similar": 1 }, ], }, {}, [3], )(3); }); }, }); function et() { return ( (et = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; }), et.apply(null, arguments) ); } function uR(e) { if (e === void 0) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called", ); return e; } function Jo(e, t) { return ( (Jo = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (r, n) { return ((r.__proto__ = n), r); }), Jo(e, t) ); } function cR(e, t) { ((e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), Jo(e, t)); } function Zu(e) { return ( (Zu = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }), Zu(e) ); } function dR(e) { try { return Function.toString.call(e).indexOf("[native code]") !== -1; } catch { return typeof e == "function"; } } function mS() { try { var e = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function () {}), ); } catch {} return (mS = function () { return !!e; })(); } function pR(e, t, r) { if (mS()) return Reflect.construct.apply(null, arguments); var n = [null]; n.push.apply(n, t); var o = new (e.bind.apply(e, n))(); return (r && Jo(o, r.prototype), o); } function Ju(e) { var t = typeof Map == "function" ? new Map() : void 0; return ( (Ju = function (r) { if (r === null || !dR(r)) return r; if (typeof r != "function") throw new TypeError( "Super expression must either be null or a function", ); if (t !== void 0) { if (t.has(r)) return t.get(r); t.set(r, n); } function n() { return pR(r, arguments, Zu(this).constructor); } return ( (n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0, }, })), Jo(n, r) ); }), Ju(e) ); } var fR = { 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `, 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). `, 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. `, 4: `Couldn't generate valid rgb string from %s, it returned %s. `, 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. `, 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). `, 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). `, 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. `, 9: `Please provide a number of steps to the modularScale helper. `, 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" `, 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. `, 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. `, 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. `, 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. `, 16: `You must provide a template to this method. `, 17: `You passed an unsupported selector state to this method. `, 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 19: `fromSize and toSize must be provided as stringified numbers with the same units. `, 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 23: `fontFace expects a name of a font-family. `, 24: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 25: `fontFace expects localFonts to be an array. `, 26: `fontFace expects fileFormats to be an array. `, 27: `radialGradient requries at least 2 color-stops to properly render. `, 28: `Please supply a filename to retinaImage() as the first argument. `, 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation `, 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') `, 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation `, 34: `borderRadius expects a radius value as a string or number as the second argument. `, 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 36: `Property must be a string value. `, 37: `Syntax Error at %s. `, 38: `Formula contains a function that needs parentheses at %s. `, 39: `Formula is missing closing parenthesis at %s. `, 40: `Formula has too many closing parentheses at %s. `, 41: `All values in a formula must have the same unit or be unitless. `, 42: `Please provide a number of steps to the modularScale helper. `, 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. `, 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. `, 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. `, 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 48: `fromSize and toSize must be provided as stringified numbers with the same units. `, 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. `, 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. `, 52: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 53: `fontFace expects localFonts to be an array. `, 54: `fontFace expects fileFormats to be an array. `, 55: `fontFace expects a name of a font-family. `, 56: `linearGradient requries at least 2 color-stops to properly render. `, 57: `radialGradient requries at least 2 color-stops to properly render. `, 58: `Please supply a filename to retinaImage() as the first argument. `, 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 61: `Property must be a string value. `, 62: `borderRadius expects a radius value as a string or number as the second argument. `, 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. `, 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). `, 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. `, 67: `You must provide a template to this method. `, 68: `You passed an unsupported selector state to this method. `, 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. `, 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. `, 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. `, 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. `, 73: `Please provide a valid CSS variable. `, 74: `CSS variable not found and no default was provided. `, 75: `important requires a valid style object, got a %s instead. `, 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. `, 77: `remToPx expects a value in "rem" but you provided it in "%s". `, 78: `base must be set in "px" or "%" but you set it in "%s". `, }; function gR() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; var n = t[0], o = [], a; for (a = 1; a < t.length; a += 1) o.push(t[a]); return ( o.forEach(function (i) { n = n.replace(/%[a-z]/, i); }), n ); } var Ht = (function (e) { cR(t, e); function t(r) { for ( var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++ ) a[i - 1] = arguments[i]; return ( (n = e.call(this, gR.apply(void 0, [fR[r]].concat(a))) || this), uR(n) ); } return t; })(Ju(Error)); function vs(e) { return Math.round(e * 255); } function mR(e, t, r) { return vs(e) + "," + vs(t) + "," + vs(r); } function Di(e, t, r, n) { if ((n === void 0 && (n = mR), t === 0)) return n(r, r, r); var o = (((e % 360) + 360) % 360) / 60, a = (1 - Math.abs(2 * r - 1)) * t, i = a * (1 - Math.abs((o % 2) - 1)), l = 0, s = 0, u = 0; o >= 0 && o < 1 ? ((l = a), (s = i)) : o >= 1 && o < 2 ? ((l = i), (s = a)) : o >= 2 && o < 3 ? ((s = a), (u = i)) : o >= 3 && o < 4 ? ((s = i), (u = a)) : o >= 4 && o < 5 ? ((l = i), (u = a)) : o >= 5 && o < 6 && ((l = a), (u = i)); var d = r - a / 2, p = l + d, c = s + d, f = u + d; return n(p, c, f); } var Om = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "639", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32", }; function hR(e) { if (typeof e != "string") return e; var t = e.toLowerCase(); return Om[t] ? "#" + Om[t] : e; } var yR = /^#[a-fA-F0-9]{6}$/, bR = /^#[a-fA-F0-9]{8}$/, vR = /^#[a-fA-F0-9]{3}$/, xR = /^#[a-fA-F0-9]{4}$/, xs = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, ER = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, wR = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, SR = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; function to(e) { if (typeof e != "string") throw new Ht(3); var t = hR(e); if (t.match(yR)) return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), }; if (t.match(bR)) { var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[2], 16), green: parseInt("" + t[3] + t[4], 16), blue: parseInt("" + t[5] + t[6], 16), alpha: r, }; } if (t.match(vR)) return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), }; if (t.match(xR)) { var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); return { red: parseInt("" + t[1] + t[1], 16), green: parseInt("" + t[2] + t[2], 16), blue: parseInt("" + t[3] + t[3], 16), alpha: n, }; } var o = xs.exec(t); if (o) return { red: parseInt("" + o[1], 10), green: parseInt("" + o[2], 10), blue: parseInt("" + o[3], 10), }; var a = ER.exec(t.substring(0, 50)); if (a) return { red: parseInt("" + a[1], 10), green: parseInt("" + a[2], 10), blue: parseInt("" + a[3], 10), alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4]), }; var i = wR.exec(t); if (i) { var l = parseInt("" + i[1], 10), s = parseInt("" + i[2], 10) / 100, u = parseInt("" + i[3], 10) / 100, d = "rgb(" + Di(l, s, u) + ")", p = xs.exec(d); if (!p) throw new Ht(4, t, d); return { red: parseInt("" + p[1], 10), green: parseInt("" + p[2], 10), blue: parseInt("" + p[3], 10), }; } var c = SR.exec(t.substring(0, 50)); if (c) { var f = parseInt("" + c[1], 10), g = parseInt("" + c[2], 10) / 100, y = parseInt("" + c[3], 10) / 100, x = "rgb(" + Di(f, g, y) + ")", v = xs.exec(x); if (!v) throw new Ht(4, t, x); return { red: parseInt("" + v[1], 10), green: parseInt("" + v[2], 10), blue: parseInt("" + v[3], 10), alpha: parseFloat("" + c[4]) > 1 ? parseFloat("" + c[4]) / 100 : parseFloat("" + c[4]), }; } throw new Ht(5); } function CR(e) { var t = e.red / 255, r = e.green / 255, n = e.blue / 255, o = Math.max(t, r, n), a = Math.min(t, r, n), i = (o + a) / 2; if (o === a) return e.alpha !== void 0 ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } : { hue: 0, saturation: 0, lightness: i }; var l, s = o - a, u = i > 0.5 ? s / (2 - o - a) : s / (o + a); switch (o) { case t: l = (r - n) / s + (r < n ? 6 : 0); break; case r: l = (n - t) / s + 2; break; default: l = (t - r) / s + 4; break; } return ( (l *= 60), e.alpha !== void 0 ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } : { hue: l, saturation: u, lightness: i } ); } function Tr(e) { return CR(to(e)); } var $R = function (e) { return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e; }, Qu = $R; function Mr(e) { var t = e.toString(16); return t.length === 1 ? "0" + t : t; } function Es(e) { return Mr(Math.round(e * 255)); } function AR(e, t, r) { return Qu("#" + Es(e) + Es(t) + Es(r)); } function hS(e, t, r) { return Di(e, t, r, AR); } function DR(e, t, r) { if (typeof e == "object" && t === void 0 && r === void 0) return hS(e.hue, e.saturation, e.lightness); throw new Ht(1); } function kR(e, t, r, n) { if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) return e.alpha >= 1 ? hS(e.hue, e.saturation, e.lightness) : "rgba(" + Di(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; throw new Ht(2); } function yS(e, t, r) { if (typeof e == "number" && typeof t == "number" && typeof r == "number") return Qu("#" + Mr(e) + Mr(t) + Mr(r)); if (typeof e == "object" && t === void 0 && r === void 0) return Qu("#" + Mr(e.red) + Mr(e.green) + Mr(e.blue)); throw new Ht(6); } function jt(e, t, r, n) { if (typeof e == "string" && typeof t == "number") { var o = to(e); return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; } else if ( typeof e == "object" && t === void 0 && r === void 0 && n === void 0 ) return e.alpha >= 1 ? yS(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; throw new Ht(7); } var OR = function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, FR = function (e) { return ( typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number" ); }, _R = function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || typeof e.alpha > "u") ); }, TR = function (e) { return ( typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number" ); }; function Rr(e) { if (typeof e != "object") throw new Ht(8); if (FR(e)) return jt(e); if (OR(e)) return yS(e); if (TR(e)) return kR(e); if (_R(e)) return DR(e); throw new Ht(8); } function bS(e, t, r) { return function () { var n = r.concat(Array.prototype.slice.call(arguments)); return n.length >= t ? e.apply(this, n) : bS(e, t, n); }; } function ct(e) { return bS(e, e.length, []); } function RR(e, t) { if (t === "transparent") return t; var r = Tr(t); return Rr(et({}, r, { hue: r.hue + parseFloat(e) })); } ct(RR); function co(e, t, r) { return Math.max(e, Math.min(t, r)); } function PR(e, t) { if (t === "transparent") return t; var r = Tr(t); return Rr(et({}, r, { lightness: co(0, 1, r.lightness - parseFloat(e)) })); } var IR = ct(PR), Bt = IR; function LR(e, t) { if (t === "transparent") return t; var r = Tr(t); return Rr(et({}, r, { saturation: co(0, 1, r.saturation - parseFloat(e)) })); } ct(LR); function BR(e, t) { if (t === "transparent") return t; var r = Tr(t); return Rr(et({}, r, { lightness: co(0, 1, r.lightness + parseFloat(e)) })); } var NR = ct(BR), zr = NR; function jR(e, t, r) { if (t === "transparent") return r; if (r === "transparent") return t; if (e === 0) return r; var n = to(t), o = et({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), a = to(r), i = et({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), l = o.alpha - i.alpha, s = parseFloat(e) * 2 - 1, u = s * l === -1 ? s : s + l, d = 1 + s * l, p = (u / d + 1) / 2, c = 1 - p, f = { red: Math.floor(o.red * p + i.red * c), green: Math.floor(o.green * p + i.green * c), blue: Math.floor(o.blue * p + i.blue * c), alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), }; return jt(f); } var MR = ct(jR), vS = MR; function zR(e, t) { if (t === "transparent") return t; var r = to(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = et({}, r, { alpha: co(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); return jt(o); } var HR = ct(zR), Oa = HR; function UR(e, t) { if (t === "transparent") return t; var r = Tr(t); return Rr(et({}, r, { saturation: co(0, 1, r.saturation + parseFloat(e)) })); } ct(UR); function WR(e, t) { return t === "transparent" ? t : Rr(et({}, Tr(t), { hue: parseFloat(e) })); } ct(WR); function VR(e, t) { return t === "transparent" ? t : Rr(et({}, Tr(t), { lightness: parseFloat(e) })); } ct(VR); function qR(e, t) { return t === "transparent" ? t : Rr(et({}, Tr(t), { saturation: parseFloat(e) })); } ct(qR); function GR(e, t) { return t === "transparent" ? t : vS(parseFloat(e), "rgb(0, 0, 0)", t); } ct(GR); function YR(e, t) { return t === "transparent" ? t : vS(parseFloat(e), "rgb(255, 255, 255)", t); } ct(YR); function KR(e, t) { if (t === "transparent") return t; var r = to(t), n = typeof r.alpha == "number" ? r.alpha : 1, o = et({}, r, { alpha: co(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), }); return jt(o); } var XR = ct(KR), ye = XR, ZR = T.div(we, ({ theme: e }) => ({ backgroundColor: e.base === "light" ? "rgba(0,0,0,.01)" : "rgba(255,255,255,.01)", borderRadius: e.appBorderRadius, border: `1px dashed ${e.appBorderColor}`, display: "flex", alignItems: "center", justifyContent: "center", padding: 20, margin: "25px 0 40px", color: ye(0.3, e.color.defaultText), fontSize: e.typography.size.s2, })), xS = (e) => h.createElement(ZR, { ...e, className: "docblock-emptyblock sb-unstyled" }), JR = T(ml)(({ theme: e }) => ({ fontSize: `${e.typography.size.s2 - 1}px`, lineHeight: "19px", margin: "25px 0 40px", borderRadius: e.appBorderRadius, boxShadow: e.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", "pre.prismjs": { padding: 20, background: "inherit" }, })), QR = T.div(({ theme: e }) => ({ background: e.background.content, borderRadius: e.appBorderRadius, border: `1px solid ${e.appBorderColor}`, boxShadow: e.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", margin: "25px 0 40px", padding: "20px 20px 20px 22px", })), Fa = T.div(({ theme: e }) => ({ animation: `${e.animation.glow} 1.5s ease-in-out infinite`, background: e.appBorderColor, height: 17, marginTop: 1, width: "60%", [`&:first-child${gu}`]: { margin: 0 }, })), e6 = () => h.createElement( QR, null, h.createElement(Fa, null), h.createElement(Fa, { style: { width: "80%" } }), h.createElement(Fa, { style: { width: "30%" } }), h.createElement(Fa, { style: { width: "80%" } }), ), ES = ({ isLoading: e, error: t, language: r, code: n, dark: o, format: a = !0, ...i }) => { let { typography: l } = Mb(); if (e) return h.createElement(e6, null); if (t) return h.createElement(xS, null, t); let s = h.createElement( JR, { bordered: !0, copyable: !0, format: a, language: r ?? "jsx", className: "docblock-source sb-unstyled", ...i, }, n, ); if (typeof o > "u") return s; let u = o ? pu.dark : pu.light; return h.createElement( zb, { theme: fu({ ...u, fontCode: l.fonts.mono, fontBase: l.fonts.base }) }, s, ); }, Oe = (e) => `& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`, dp = 600, t6 = T.h1(we, ({ theme: e }) => ({ color: e.color.defaultText, fontSize: e.typography.size.m3, fontWeight: e.typography.weight.bold, lineHeight: "32px", [`@media (min-width: ${dp}px)`]: { fontSize: e.typography.size.l1, lineHeight: "36px", marginBottom: "16px", }, })), r6 = T.h2(we, ({ theme: e }) => ({ fontWeight: e.typography.weight.regular, fontSize: e.typography.size.s3, lineHeight: "20px", borderBottom: "none", marginBottom: 15, [`@media (min-width: ${dp}px)`]: { fontSize: e.typography.size.m1, lineHeight: "28px", marginBottom: 24, }, color: ye(0.25, e.color.defaultText), })), n6 = T.div(({ theme: e }) => { let t = { fontFamily: e.typography.fonts.base, fontSize: e.typography.size.s3, margin: 0, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", WebkitOverflowScrolling: "touch", }, r = { margin: "20px 0 8px", padding: 0, cursor: "text", position: "relative", color: e.color.defaultText, "&:first-of-type": { marginTop: 0, paddingTop: 0 }, "&:hover a.anchor": { textDecoration: "none" }, "& code": { fontSize: "inherit" }, }, n = { lineHeight: 1, margin: "0 2px", padding: "3px 5px", whiteSpace: "nowrap", borderRadius: 3, fontSize: e.typography.size.s2 - 1, border: e.base === "light" ? `1px solid ${e.color.mediumlight}` : `1px solid ${e.color.darker}`, color: e.base === "light" ? ye(0.1, e.color.defaultText) : ye(0.3, e.color.defaultText), backgroundColor: e.base === "light" ? e.color.lighter : e.color.border, }; return { maxWidth: 1e3, width: "100%", minWidth: 0, [Oe("a")]: { ...t, fontSize: "inherit", lineHeight: "24px", color: e.color.secondary, textDecoration: "none", "&.absent": { color: "#cc0000" }, "&.anchor": { display: "block", paddingLeft: 30, marginLeft: -30, cursor: "pointer", position: "absolute", top: 0, left: 0, bottom: 0, }, }, [Oe("blockquote")]: { ...t, margin: "16px 0", borderLeft: `4px solid ${e.color.medium}`, padding: "0 15px", color: e.color.dark, "& > :first-of-type": { marginTop: 0 }, "& > :last-child": { marginBottom: 0 }, }, [Oe("div")]: t, [Oe("dl")]: { ...t, margin: "16px 0", padding: 0, "& dt": { fontSize: "14px", fontWeight: "bold", fontStyle: "italic", padding: 0, margin: "16px 0 4px", }, "& dt:first-of-type": { padding: 0 }, "& dt > :first-of-type": { marginTop: 0 }, "& dt > :last-child": { marginBottom: 0 }, "& dd": { margin: "0 0 16px", padding: "0 15px" }, "& dd > :first-of-type": { marginTop: 0 }, "& dd > :last-child": { marginBottom: 0 }, }, [Oe("h1")]: { ...t, ...r, fontSize: `${e.typography.size.l1}px`, fontWeight: e.typography.weight.bold, }, [Oe("h2")]: { ...t, ...r, fontSize: `${e.typography.size.m2}px`, paddingBottom: 4, borderBottom: `1px solid ${e.appBorderColor}`, }, [Oe("h3")]: { ...t, ...r, fontSize: `${e.typography.size.m1}px`, fontWeight: e.typography.weight.bold, }, [Oe("h4")]: { ...t, ...r, fontSize: `${e.typography.size.s3}px` }, [Oe("h5")]: { ...t, ...r, fontSize: `${e.typography.size.s2}px` }, [Oe("h6")]: { ...t, ...r, fontSize: `${e.typography.size.s2}px`, color: e.color.dark, }, [Oe("hr")]: { border: "0 none", borderTop: `1px solid ${e.appBorderColor}`, height: 4, padding: 0, }, [Oe("img")]: { maxWidth: "100%" }, [Oe("li")]: { ...t, fontSize: e.typography.size.s2, color: e.color.defaultText, lineHeight: "24px", "& + li": { marginTop: ".25em" }, "& ul, & ol": { marginTop: ".25em", marginBottom: 0 }, "& code": n, }, [Oe("ol")]: { ...t, margin: "16px 0", paddingLeft: 30, "& :first-of-type": { marginTop: 0 }, "& :last-child": { marginBottom: 0 }, }, [Oe("p")]: { ...t, margin: "16px 0", fontSize: e.typography.size.s2, lineHeight: "24px", color: e.color.defaultText, "& code": n, }, [Oe("pre")]: { ...t, fontFamily: e.typography.fonts.mono, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", lineHeight: "18px", padding: "11px 1rem", whiteSpace: "pre-wrap", color: "inherit", borderRadius: 3, margin: "1rem 0", "&:not(.prismjs)": { background: "transparent", border: "none", borderRadius: 0, padding: 0, margin: 0, }, "& pre, &.prismjs": { padding: 15, margin: 0, whiteSpace: "pre-wrap", color: "inherit", fontSize: "13px", lineHeight: "19px", code: { color: "inherit", fontSize: "inherit" }, }, "& code": { whiteSpace: "pre" }, "& code, & tt": { border: "none" }, }, [Oe("span")]: { ...t, "&.frame": { display: "block", overflow: "hidden", "& > span": { border: `1px solid ${e.color.medium}`, display: "block", float: "left", overflow: "hidden", margin: "13px 0 0", padding: 7, width: "auto", }, "& span img": { display: "block", float: "left" }, "& span span": { clear: "both", color: e.color.darkest, display: "block", padding: "5px 0 0", }, }, "&.align-center": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "center", }, "& span img": { margin: "0 auto", textAlign: "center" }, }, "&.align-right": { display: "block", overflow: "hidden", clear: "both", "& > span": { display: "block", overflow: "hidden", margin: "13px 0 0", textAlign: "right", }, "& span img": { margin: 0, textAlign: "right" }, }, "&.float-left": { display: "block", marginRight: 13, overflow: "hidden", float: "left", "& span": { margin: "13px 0 0" }, }, "&.float-right": { display: "block", marginLeft: 13, overflow: "hidden", float: "right", "& > span": { display: "block", overflow: "hidden", margin: "13px auto 0", textAlign: "right", }, }, }, [Oe("table")]: { ...t, margin: "16px 0", fontSize: e.typography.size.s2, lineHeight: "24px", padding: 0, borderCollapse: "collapse", "& tr": { borderTop: `1px solid ${e.appBorderColor}`, backgroundColor: e.appContentBg, margin: 0, padding: 0, }, "& tr:nth-of-type(2n)": { backgroundColor: e.base === "dark" ? e.color.darker : e.color.lighter, }, "& tr th": { fontWeight: "bold", color: e.color.defaultText, border: `1px solid ${e.appBorderColor}`, margin: 0, padding: "6px 13px", }, "& tr td": { border: `1px solid ${e.appBorderColor}`, color: e.color.defaultText, margin: 0, padding: "6px 13px", }, "& tr th :first-of-type, & tr td :first-of-type": { marginTop: 0 }, "& tr th :last-child, & tr td :last-child": { marginBottom: 0 }, }, [Oe("ul")]: { ...t, margin: "16px 0", paddingLeft: 30, "& :first-of-type": { marginTop: 0 }, "& :last-child": { marginBottom: 0 }, listStyle: "disc", }, }; }), o6 = T.div(({ theme: e }) => ({ background: e.background.content, display: "flex", flexDirection: "row-reverse", justifyContent: "center", padding: "4rem 20px", minHeight: "100vh", boxSizing: "border-box", gap: "3rem", [`@media (min-width: ${dp}px)`]: {}, })), a6 = ({ children: e, toc: t }) => h.createElement( o6, { className: "sbdocs sbdocs-wrapper" }, t, h.createElement(n6, { className: "sbdocs sbdocs-content" }, e), ), Cl = (e) => ({ borderRadius: e.appBorderRadius, background: e.background.content, boxShadow: e.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", border: `1px solid ${e.appBorderColor}`, }), { window: i6 } = globalThis, l6 = class extends b.Component { constructor() { (super(...arguments), (this.iframe = null)); } componentDidMount() { let { id: e } = this.props; this.iframe = i6.document.getElementById(e); } shouldComponentUpdate(e) { let { scale: t } = e; return ( t !== this.props.scale && this.setIframeBodyStyle({ width: `${t * 100}%`, height: `${t * 100}%`, transform: `scale(${1 / t})`, transformOrigin: "top left", }), !1 ); } setIframeBodyStyle(e) { return Object.assign(this.iframe.contentDocument.body.style, e); } render() { let { id: e, title: t, src: r, allowFullScreen: n, scale: o, ...a } = this.props; return h.createElement("iframe", { id: e, title: t, src: r, ...(n ? { allow: "fullscreen" } : {}), loading: "lazy", ...a, }); } }, wS = b.createContext({ scale: 1 }), { PREVIEW_URL: s6 } = globalThis, u6 = s6 || "iframe.html", ec = ({ story: e, primary: t }) => `story--${e.id}${t ? "--primary" : ""}`, c6 = (e) => { let t = b.useRef(), [r, n] = b.useState(!0), [o, a] = b.useState(), { story: i, height: l, autoplay: s, forceInitialArgs: u, renderStoryToElement: d, } = e; return ( b.useEffect(() => { if (!(i && t.current)) return () => {}; let p = t.current, c = d( i, p, { showMain: () => {}, showError: ({ title: f, description: g }) => a(new Error(`${f} - ${g}`)), showException: (f) => a(f), }, { autoplay: s, forceInitialArgs: u }, ); return ( n(!1), () => { Promise.resolve().then(() => c()); } ); }, [s, d, i]), o ? h.createElement("pre", null, h.createElement(Gw, { error: o })) : h.createElement( h.Fragment, null, l ? h.createElement( "style", null, `#${ec(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`, ) : null, r && h.createElement(SS, null), h.createElement("div", { ref: t, id: `${ec(e)}-inner`, "data-name": i.name, }), ) ); }, d6 = ({ story: e, height: t = "500px" }) => h.createElement( "div", { style: { width: "100%", height: t } }, h.createElement(wS.Consumer, null, ({ scale: r }) => h.createElement(l6, { key: "iframe", id: `iframe--${e.id}`, title: e.name, src: cS(u6, e.id, { viewMode: "story" }), allowFullScreen: !0, scale: r, style: { width: "100%", height: "100%", border: "0 none" }, }), ), ), p6 = T.strong(({ theme: e }) => ({ color: e.color.orange })), f6 = (e) => { let { inline: t, story: r } = e; return t && !e.autoplay && r.usesMount ? h.createElement( p6, null, "This story mounts inside of play. Set", " ", h.createElement( "a", { href: "https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay", }, "autoplay", ), " ", "to true to view this story.", ) : h.createElement( "div", { id: ec(e), className: "sb-story sb-unstyled", "data-story-block": "true", }, t ? h.createElement(c6, { ...e }) : h.createElement(d6, { ...e }), ); }, SS = () => h.createElement(sS, null), g6 = T(wl)({ position: "absolute", left: 0, right: 0, top: 0, transition: "transform .2s linear", }), m6 = T.div({ display: "flex", alignItems: "center", gap: 4 }), h6 = T.div(({ theme: e }) => ({ width: 14, height: 14, borderRadius: 2, margin: "0 7px", backgroundColor: e.appBorderColor, animation: `${e.animation.glow} 1.5s ease-in-out infinite`, })), y6 = ({ isLoading: e, storyId: t, baseUrl: r, zoom: n, resetZoom: o, ...a }) => h.createElement( g6, { ...a }, h.createElement( m6, { key: "left" }, e ? [1, 2, 3].map((i) => h.createElement(h6, { key: i })) : h.createElement( h.Fragment, null, h.createElement( $r, { key: "zoomin", onClick: (i) => { (i.preventDefault(), n(0.8)); }, title: "Zoom in", }, h.createElement(VT, null), ), h.createElement( $r, { key: "zoomout", onClick: (i) => { (i.preventDefault(), n(1.25)); }, title: "Zoom out", }, h.createElement(qT, null), ), h.createElement( $r, { key: "zoomreset", onClick: (i) => { (i.preventDefault(), o()); }, title: "Reset zoom", }, h.createElement(GT, null), ), ), ), ), b6 = T.div( ({ isColumn: e, columns: t, layout: r }) => ({ display: e || !t ? "block" : "flex", position: "relative", flexWrap: "wrap", overflow: "auto", flexDirection: e ? "column" : "row", "& .innerZoomElementWrapper > *": e ? { width: r !== "fullscreen" ? "calc(100% - 20px)" : "100%", display: "block", } : { maxWidth: r !== "fullscreen" ? "calc(100% - 20px)" : "100%", display: "inline-block", }, }), ({ layout: e = "padded", inline: t }) => e === "centered" || e === "padded" ? { padding: t ? "32px 22px" : "0px", "& .innerZoomElementWrapper > *": { width: "auto", border: "8px solid transparent!important", }, } : {}, ({ layout: e = "padded", inline: t }) => e === "centered" && t ? { display: "flex", justifyContent: "center", justifyItems: "center", alignContent: "center", alignItems: "center", } : {}, ({ columns: e }) => e && e > 1 ? { ".innerZoomElementWrapper > *": { minWidth: `calc(100% / ${e} - 20px)`, }, } : {}, ), Fm = T(ES)(({ theme: e }) => ({ margin: 0, borderTopLeftRadius: 0, borderTopRightRadius: 0, borderBottomLeftRadius: e.appBorderRadius, borderBottomRightRadius: e.appBorderRadius, border: "none", background: e.base === "light" ? "rgba(0, 0, 0, 0.85)" : Bt(0.05, e.background.content), color: e.color.lightest, button: { background: e.base === "light" ? "rgba(0, 0, 0, 0.85)" : Bt(0.05, e.background.content), }, })), v6 = T.div( ({ theme: e, withSource: t, isExpanded: r }) => ({ position: "relative", overflow: "hidden", margin: "25px 0 40px", ...Cl(e), borderBottomLeftRadius: t && r && 0, borderBottomRightRadius: t && r && 0, borderBottomWidth: r && 0, "h3 + &": { marginTop: "16px" }, }), ({ withToolbar: e }) => e && { paddingTop: 40 }, ), x6 = (e, t, r) => { switch (!0) { case !!(e && e.error): return { source: null, actionItem: { title: "No code available", className: "docblock-code-toggle docblock-code-toggle--disabled", disabled: !0, onClick: () => r(!1), }, }; case t: return { source: h.createElement(Fm, { ...e, dark: !0 }), actionItem: { title: "Hide code", className: "docblock-code-toggle docblock-code-toggle--expanded", onClick: () => r(!1), }, }; default: return { source: h.createElement(Fm, { ...e, dark: !0 }), actionItem: { title: "Show code", className: "docblock-code-toggle", onClick: () => r(!0), }, }; } }; function E6(e) { if (b.Children.count(e) === 1) { let t = e; if (t.props) return t.props.id; } return null; } var w6 = T(y6)({ position: "absolute", top: 0, left: 0, right: 0, height: 40 }), S6 = T.div({ overflow: "hidden", position: "relative" }), CS = ({ isLoading: e, isColumn: t, columns: r, children: n, withSource: o, withToolbar: a = !1, isExpanded: i = !1, additionalActions: l, className: s, layout: u = "padded", inline: d = !1, ...p }) => { let [c, f] = b.useState(i), { source: g, actionItem: y } = x6(o, c, f), [x, v] = b.useState(1), C = [s].concat(["sbdocs", "sbdocs-preview", "sb-unstyled"]), w = o ? [y] : [], [E, $] = b.useState(l ? [...l] : []), A = [...w, ...E], { window: S } = globalThis, D = b.useCallback(async (k) => { let { createCopyToClipboardFunction: _ } = await cc( () => Promise.resolve().then(() => WT), void 0, ); _(); }, []), F = (k) => { let _ = S.getSelection(); (_ && _.type === "Range") || (k.preventDefault(), E.filter((I) => I.title === "Copied").length === 0 && D(g?.props.code ?? "").then(() => { ($([...E, { title: "Copied", onClick: () => {} }]), S.setTimeout( () => $(E.filter((I) => I.title !== "Copied")), 1500, )); })); }; return h.createElement( v6, { withSource: o, withToolbar: a, ...p, className: C.join(" ") }, a && h.createElement(w6, { isLoading: e, border: !0, zoom: (k) => v(x * k), resetZoom: () => v(1), storyId: E6(n), baseUrl: "./iframe.html", }), h.createElement( wS.Provider, { value: { scale: x } }, h.createElement( S6, { className: "docs-story", onCopyCapture: o && F }, h.createElement( b6, { isColumn: t || !Array.isArray(n), columns: r, layout: u, inline: d, }, h.createElement( qw.Element, { centered: u === "centered", scale: d ? x : 1 }, Array.isArray(n) ? n.map((k, _) => h.createElement("div", { key: _ }, k)) : h.createElement("div", null, n), ), ), h.createElement(al, { actionItems: A }), ), ), o && c && g, ); }; T(CS)(() => ({ ".docs-story": { paddingTop: 32, paddingBottom: 40 } })); var C6 = ({ tabs: e, ...t }) => { let r = Object.entries(e); return r.length === 1 ? h.createElement(lc, { ...r[0][1], ...t }) : h.createElement( lS, null, r.map((n, o) => { let [a, i] = n, l = `prop_table_div_${a}`, s = "div", u = o === 0 ? t : { sort: t.sort }; return h.createElement( s, { key: l, id: l, title: a }, ({ active: d }) => d ? h.createElement(lc, { key: `prop_table_${a}`, ...i, ...u }) : null, ); }), ); }; T.div(({ theme: e }) => ({ marginRight: 30, fontSize: `${e.typography.size.s1}px`, color: e.base === "light" ? ye(0.4, e.color.defaultText) : ye(0.6, e.color.defaultText), })); T.div({ overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }); T.div({ display: "flex", flexDirection: "row", alignItems: "baseline", "&:not(:last-child)": { marginBottom: "1rem" }, }); T.div(we, ({ theme: e }) => ({ ...Cl(e), margin: "25px 0 40px", padding: "30px 20px", })); T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold, color: e.color.defaultText, })); T.div(({ theme: e }) => ({ color: e.base === "light" ? ye(0.2, e.color.defaultText) : ye(0.6, e.color.defaultText), })); T.div({ flex: "0 0 30%", lineHeight: "20px", marginTop: 5 }); T.div(({ theme: e }) => ({ flex: 1, textAlign: "center", fontFamily: e.typography.fonts.mono, fontSize: e.typography.size.s1, lineHeight: 1, overflow: "hidden", color: e.base === "light" ? ye(0.4, e.color.defaultText) : ye(0.6, e.color.defaultText), "> div": { display: "inline-block", overflow: "hidden", maxWidth: "100%", textOverflow: "ellipsis", }, span: { display: "block", marginTop: 2 }, })); T.div({ display: "flex", flexDirection: "row" }); T.div(({ background: e }) => ({ position: "relative", flex: 1, "&::before": { position: "absolute", top: 0, left: 0, width: "100%", height: "100%", background: e, content: '""', }, })); T.div(({ theme: e }) => ({ ...Cl(e), display: "flex", flexDirection: "row", height: 50, marginBottom: 5, overflow: "hidden", backgroundColor: "white", backgroundImage: "repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)", backgroundClip: "padding-box", })); T.div({ display: "flex", flexDirection: "column", flex: 1, position: "relative", marginBottom: 30, }); T.div({ flex: 1, display: "flex", flexDirection: "row" }); T.div({ display: "flex", alignItems: "flex-start" }); T.div({ flex: "0 0 30%" }); T.div({ flex: 1 }); T.div(({ theme: e }) => ({ display: "flex", flexDirection: "row", alignItems: "center", paddingBottom: 20, fontWeight: e.typography.weight.bold, color: e.base === "light" ? ye(0.4, e.color.defaultText) : ye(0.6, e.color.defaultText), })); T.div(({ theme: e }) => ({ fontSize: e.typography.size.s2, lineHeight: "20px", display: "flex", flexDirection: "column", })); T.div(({ theme: e }) => ({ fontFamily: e.typography.fonts.base, fontSize: e.typography.size.s1, color: e.color.defaultText, marginLeft: 10, lineHeight: 1.2, display: "-webkit-box", overflow: "hidden", wordBreak: "break-word", textOverflow: "ellipsis", WebkitLineClamp: 2, WebkitBoxOrient: "vertical", })); T.div(({ theme: e }) => ({ ...Cl(e), overflow: "hidden", height: 40, width: 40, display: "flex", alignItems: "center", justifyContent: "center", flex: "none", "> img, > svg": { width: 20, height: 20 }, })); T.div({ display: "inline-flex", flexDirection: "row", alignItems: "center", width: "100%", }); T.div({ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))", gridGap: "8px 16px", gridAutoFlow: "row dense", gridAutoRows: 50, }); function $6(e) { let t = [].forEach, r = [].some, n = typeof window < "u" && document.body, o = " ", a, i = !0, l = 0; function s(k, _) { let I = _.appendChild(d(k)); if (k.children.length) { let L = p(k.isCollapsed); (k.children.forEach((j) => { s(j, L); }), I.appendChild(L)); } } function u(k, _) { let I = p(!1); if ( (_.forEach((L) => { s(L, I); }), (a = k || a), a !== null) ) return ( a.firstChild && a.removeChild(a.firstChild), _.length === 0 ? a : a.appendChild(I) ); } function d(k) { let _ = document.createElement("li"), I = document.createElement("a"); return ( e.listItemClass && _.setAttribute("class", e.listItemClass), e.onClick && (I.onclick = e.onClick), e.includeTitleTags && I.setAttribute("title", k.textContent), e.includeHtml && k.childNodes.length ? t.call(k.childNodes, (L) => { I.appendChild(L.cloneNode(!0)); }) : (I.textContent = k.textContent), I.setAttribute("href", `${e.basePath}#${k.id}`), I.setAttribute( "class", `${e.linkClass + o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`, ), _.appendChild(I), _ ); } function p(k) { let _ = e.orderedList ? "ol" : "ul", I = document.createElement(_), L = e.listClass + o + e.extraListClasses; return ( k && ((L = L + o + e.collapsibleClass), (L = L + o + e.isCollapsedClass)), I.setAttribute("class", L), I ); } function c() { let k = S(), _ = document.querySelector(e.positionFixedSelector); (e.fixedSidebarOffset === "auto" && (e.fixedSidebarOffset = a.offsetTop), k > e.fixedSidebarOffset ? _.className.indexOf(e.positionFixedClass) === -1 && (_.className += o + e.positionFixedClass) : (_.className = _.className.replace(o + e.positionFixedClass, ""))); } function f(k) { let _ = 0; return ( k !== null && ((_ = k.offsetTop), e.hasInnerContainers && (_ += f(k.offsetParent))), _ ); } function g(k, _) { return (k && k.className !== _ && (k.className = _), k); } function y(k, _) { e.positionFixedSelector && c(); let I = k, L = _?.target?.getAttribute ? _?.target?.getAttribute("href") : null, j = L && L.charAt(0) === "#" ? E(L.replace("#", "")) : !1, B = i || j; if ((_ && l < 5 && l++, B && a && I.length > 0)) { let z = D(I), V = a.querySelector(`.${e.activeLinkClass}`), Y = z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g, "\\$1"), W = window.location.hash.replace("#", ""), G = Y, J = $(); L && j ? (G = L.replace("#", "")) : W && W !== Y && J && (E(Y) || l <= 2) && (G = W); let Q = a.querySelector(`.${e.linkClass}[href="${e.basePath}#${G}"]`); if (V === Q) return; let re = a.querySelectorAll(`.${e.linkClass}`); t.call(re, (Z) => { g(Z, Z.className.replace(o + e.activeLinkClass, "")); }); let ie = a.querySelectorAll(`.${e.listItemClass}`); (t.call(ie, (Z) => { g(Z, Z.className.replace(o + e.activeListItemClass, "")); }), Q && Q.className.indexOf(e.activeLinkClass) === -1 && (Q.className += o + e.activeLinkClass)); let H = Q?.parentNode; H && H.className.indexOf(e.activeListItemClass) === -1 && (H.className += o + e.activeListItemClass); let X = a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`); (t.call(X, (Z) => { Z.className.indexOf(e.isCollapsedClass) === -1 && (Z.className += o + e.isCollapsedClass); }), Q?.nextSibling && Q.nextSibling.className.indexOf(e.isCollapsedClass) !== -1 && g( Q.nextSibling, Q.nextSibling.className.replace(o + e.isCollapsedClass, ""), ), x(Q?.parentNode.parentNode)); } } function x(k) { return k && k.className.indexOf(e.collapsibleClass) !== -1 && k.className.indexOf(e.isCollapsedClass) !== -1 ? (g(k, k.className.replace(o + e.isCollapsedClass, "")), x(k.parentNode.parentNode)) : k; } function v(k) { let _ = k.target || k.srcElement; typeof _.className != "string" || _.className.indexOf(e.linkClass) === -1 || (i = !1); } function C() { i = !0; } function w() { return i; } function E(k) { let _ = A(); return ( (document?.getElementById(k)).offsetTop > _.offsetHeight - _.clientHeight * 1.4 - e.bottomModeThreshold ); } function $() { let k = A(), _ = k.scrollHeight > k.clientHeight, I = S() + k.clientHeight > k.offsetHeight - e.bottomModeThreshold; return _ && I; } function A() { let k; return ( e.scrollContainer && document.querySelector(e.scrollContainer) ? (k = document.querySelector(e.scrollContainer)) : (k = document.documentElement || n), k ); } function S() { return A()?.scrollTop || 0; } function D(k, _ = S()) { let I; return ( r.call(k, (L, j) => { if (f(L) > _ + e.headingsOffset + 10) { let B = j === 0 ? j : j - 1; return ((I = k[B]), !0); } if (j === k.length - 1) return ((I = k[k.length - 1]), !0); }), I ); } function F(k) { let _ = S(), I = D(k, _), L = $(); if ((!I || _ < 5) && !L) window.location.hash === "#" || window.location.hash === "" || window.history.pushState(null, null, "#"); else if (I && !L) { let j = `#${I.id}`; window.location.hash !== j && window.history.pushState(null, null, j); } } return { enableTocAnimation: C, disableTocAnimation: v, render: u, updateToc: y, getCurrentlyHighlighting: w, getTopHeader: D, getScrollTop: S, updateUrlHashForHeader: F, }; } var A6 = { tocSelector: ".js-toc", tocElement: null, contentSelector: ".js-toc-content", contentElement: null, headingSelector: "h1, h2, h3", ignoreSelector: ".js-toc-ignore", hasInnerContainers: !1, linkClass: "toc-link", extraLinkClasses: "", activeLinkClass: "is-active-link", listClass: "toc-list", extraListClasses: "", isCollapsedClass: "is-collapsed", collapsibleClass: "is-collapsible", listItemClass: "toc-list-item", activeListItemClass: "is-active-li", collapseDepth: 0, scrollSmooth: !0, scrollSmoothDuration: 420, scrollSmoothOffset: 0, scrollEndCallback: function (e) {}, headingsOffset: 1, enableUrlHashUpdateOnScroll: !1, scrollHandlerType: "auto", scrollHandlerTimeout: 50, throttleTimeout: 50, positionFixedSelector: null, positionFixedClass: "is-position-fixed", fixedSidebarOffset: "auto", includeHtml: !1, includeTitleTags: !1, onClick: function (e) {}, orderedList: !0, scrollContainer: null, skipRendering: !1, headingLabelCallback: !1, ignoreHiddenElements: !1, headingObjectCallback: null, basePath: "", disableTocScrollSync: !1, tocScrollingWrapper: null, tocScrollOffset: 30, bottomModeThreshold: 30, }; function D6(e) { let t = [].reduce; function r(u) { return u[u.length - 1]; } function n(u) { return +u.nodeName.toUpperCase().replace("H", ""); } function o(u) { try { return ( u instanceof window.HTMLElement || u instanceof window.parent.HTMLElement ); } catch { return u instanceof window.HTMLElement; } } function a(u) { if (!o(u)) return u; if (e.ignoreHiddenElements && (!u.offsetHeight || !u.offsetParent)) return null; let d = u.getAttribute("data-heading-label") || (e.headingLabelCallback ? String(e.headingLabelCallback(u.innerText)) : (u.innerText || u.textContent).trim()), p = { id: u.id, children: [], nodeName: u.nodeName, headingLevel: n(u), textContent: d, }; return ( e.includeHtml && (p.childNodes = u.childNodes), e.headingObjectCallback ? e.headingObjectCallback(p, u) : p ); } function i(u, d) { let p = a(u), c = p.headingLevel, f = d, g = r(f), y = g ? g.headingLevel : 0, x = c - y; for (; x > 0 && ((g = r(f)), !(g && c === g.headingLevel)); ) (g && g.children !== void 0 && (f = g.children), x--); return (c >= e.collapseDepth && (p.isCollapsed = !0), f.push(p), f); } function l(u, d) { let p = d; e.ignoreSelector && (p = d.split(",").map(function (c) { return `${c.trim()}:not(${e.ignoreSelector})`; })); try { return u.querySelectorAll(p); } catch { return (console.warn(`Headers not found with selector: ${p}`), null); } } function s(u) { return t.call( u, function (d, p) { let c = a(p); return (c && i(c, d.nest), d); }, { nest: [] }, ); } return { nestHeadingsArray: s, selectHeadings: l }; } function k6(e) { var t = e.duration, r = e.offset; if (typeof window > "u" || typeof location > "u") return; var n = location.hash ? i(location.href) : location.href; o(); function o() { document.body.addEventListener("click", s, !1); function s(u) { !a(u.target) || u.target.className.indexOf("no-smooth-scroll") > -1 || (u.target.href.charAt(u.target.href.length - 2) === "#" && u.target.href.charAt(u.target.href.length - 1) === "!") || u.target.className.indexOf(e.linkClass) === -1 || O6(u.target.hash, { duration: t, offset: r, callback: function () { l(u.target.hash); }, }); } } function a(s) { return ( s.tagName.toLowerCase() === "a" && (s.hash.length > 0 || s.href.charAt(s.href.length - 1) === "#") && (i(s.href) === n || i(s.href) + "#" === n) ); } function i(s) { return s.slice(0, s.lastIndexOf("#")); } function l(s) { var u = document.getElementById(s.substring(1)); u && (/^(?:a|select|input|button|textarea)$/i.test(u.tagName) || (u.tabIndex = -1), u.focus()); } } function O6(e, t) { var r = window.pageYOffset, n = { duration: t.duration, offset: t.offset || 0, callback: t.callback, easing: t.easing || p, }, o = document.querySelector( '[id="' + decodeURI(e).split("#").join("") + '"]', ) || document.querySelector('[id="' + e.split("#").join("") + '"]'), a = typeof e == "string" ? n.offset + (e ? (o && o.getBoundingClientRect().top) || 0 : -(document.documentElement.scrollTop || document.body.scrollTop)) : e, i = typeof n.duration == "function" ? n.duration(a) : n.duration, l, s; requestAnimationFrame(function (c) { ((l = c), u(c)); }); function u(c) { ((s = c - l), window.scrollTo(0, n.easing(s, r, a, i)), s < i ? requestAnimationFrame(u) : d()); } function d() { (window.scrollTo(0, r + a), typeof n.callback == "function" && n.callback()); } function p(c, f, g, y) { return ( (c /= y / 2), c < 1 ? (g / 2) * c * c + f : (c--, (-g / 2) * (c * (c - 2) - 1) + f) ); } } function F6(e) { let t = e.tocScrollingWrapper || e.tocElement || document.querySelector(e.tocSelector); if (t && t.scrollHeight > t.clientHeight) { let r = t.querySelector(`.${e.activeListItemClass}`); if (r) { let n = r.offsetTop - e.tocScrollOffset; t.scrollTop = n > 0 ? n : 0; } } } var ae = {}, xt, ws, Nr, wt, Wo; function $S(e) { let t = !1; ((ae = R6(A6, e || {})), ae.scrollSmooth && ((ae.duration = ae.scrollSmoothDuration), (ae.offset = ae.scrollSmoothOffset), k6(ae)), (xt = $6(ae)), (ws = D6(ae)), pp()); let r = I6(ae); if (r === null) return; let n = AS(ae); if ( n === null || ((Nr = ws.selectHeadings(r, ae.headingSelector)), Nr === null) ) return; let o = ws.nestHeadingsArray(Nr).nest; if (!ae.skipRendering) xt.render(n, o); else return this; let a = !1, i = ae.scrollHandlerTimeout || ae.throttleTimeout; ((wt = ((s, u) => P6(s, u, ae.scrollHandlerType))((s) => { (xt.updateToc(Nr, s), !ae.disableTocScrollSync && !a && F6(ae), ae.enableUrlHashUpdateOnScroll && t && xt.getCurrentlyHighlighting() && xt.updateUrlHashForHeader(Nr)); let u = s?.target?.scrollingElement?.scrollTop === 0; ((s && (s.eventPhase === 0 || s.currentTarget === null)) || u) && (xt.updateToc(Nr), ae.scrollEndCallback?.(s)); }, i)), t || (wt(), (t = !0)), (window.onhashchange = window.onscrollend = (s) => { wt(s); }), ae.scrollContainer && document.querySelector(ae.scrollContainer) ? (document .querySelector(ae.scrollContainer) .addEventListener("scroll", wt, !1), document .querySelector(ae.scrollContainer) .addEventListener("resize", wt, !1)) : (document.addEventListener("scroll", wt, !1), document.addEventListener("resize", wt, !1))); let l = null; ((Wo = tc((s) => { ((a = !0), ae.scrollSmooth && xt.disableTocAnimation(s), xt.updateToc(Nr, s), l && clearTimeout(l), (l = setTimeout(() => { xt.enableTocAnimation(); }, ae.scrollSmoothDuration)), setTimeout(() => { a = !1; }, ae.scrollSmoothDuration + 100)); }, ae.throttleTimeout)), ae.scrollContainer && document.querySelector(ae.scrollContainer) ? document .querySelector(ae.scrollContainer) .addEventListener("click", Wo, !1) : document.addEventListener("click", Wo, !1)); } function pp() { let e = AS(ae); e !== null && (ae.skipRendering || (e && (e.innerHTML = "")), ae.scrollContainer && document.querySelector(ae.scrollContainer) ? (document .querySelector(ae.scrollContainer) .removeEventListener("scroll", wt, !1), document .querySelector(ae.scrollContainer) .removeEventListener("resize", wt, !1), xt && document .querySelector(ae.scrollContainer) .removeEventListener("click", Wo, !1)) : (document.removeEventListener("scroll", wt, !1), document.removeEventListener("resize", wt, !1), xt && document.removeEventListener("click", Wo, !1))); } function _6(e) { (pp(), $S(e || ae)); } var T6 = Object.prototype.hasOwnProperty; function R6(...e) { let t = {}; for (let r = 0; r < e.length; r++) { let n = e[r]; for (let o in n) T6.call(n, o) && (t[o] = n[o]); } return t; } function tc(e, t, r) { t || (t = 250); let n, o; return function (...a) { let i = this, l = +new Date(); n && l < n + t ? (clearTimeout(o), (o = setTimeout(() => { ((n = l), e.apply(i, a)); }, t))) : ((n = l), e.apply(i, a)); }; } function _m(e, t) { let r; return (...n) => { (clearTimeout(r), (r = setTimeout(() => e.apply(this, n), t))); }; } function P6(e, t, r = "auto") { switch (r) { case "debounce": return _m(e, t); case "throttle": return tc(e, t); default: return t < 334 ? _m(e, t) : tc(e, t); } } function I6(e) { try { return e.contentElement || document.querySelector(e.contentSelector); } catch { return ( console.warn(`Contents element not found: ${e.contentSelector}`), null ); } } function AS(e) { try { return e.tocElement || document.querySelector(e.tocSelector); } catch { return (console.warn(`TOC element not found: ${e.tocSelector}`), null); } } var L6 = { destroy: pp, init: $S, refresh: _6 }, Tm = L6, B6 = T.aside(() => ({ width: "10rem", "@media (max-width: 768px)": { display: "none" }, })), N6 = T.nav(({ theme: e }) => ({ position: "fixed", bottom: 0, top: 0, width: "10rem", paddingTop: "4rem", paddingBottom: "2rem", overflowY: "auto", fontFamily: e.typography.fonts.base, fontSize: e.typography.size.s2, WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", WebkitOverflowScrolling: "touch", "& *": { boxSizing: "border-box" }, "& > .toc-wrapper > .toc-list": { paddingLeft: 0, borderLeft: `solid 2px ${e.color.mediumlight}`, ".toc-list": { paddingLeft: 0, borderLeft: `solid 2px ${e.color.mediumlight}`, ".toc-list": { paddingLeft: 0, borderLeft: `solid 2px ${e.color.mediumlight}`, }, }, }, "& .toc-list-item": { position: "relative", listStyleType: "none", marginLeft: 20, paddingTop: 3, paddingBottom: 3, }, "& .toc-list-item::before": { content: '""', position: "absolute", height: "100%", top: 0, left: 0, transform: "translateX(calc(-2px - 20px))", borderLeft: `solid 2px ${e.color.mediumdark}`, opacity: 0, transition: "opacity 0.2s", }, "& .toc-list-item.is-active-li::before": { opacity: 1 }, "& .toc-list-item > a": { color: e.color.defaultText, textDecoration: "none", }, "& .toc-list-item.is-active-li > a": { fontWeight: 600, color: e.color.secondary, textDecoration: "none", }, })), j6 = T.p(({ theme: e }) => ({ fontWeight: 600, fontSize: "0.875em", color: e.textColor, textTransform: "uppercase", marginBottom: 10, })), M6 = ({ headingId: e, title: t }) => typeof t == "string" || !t ? h.createElement( j6, { as: "h2", id: e, className: t ? "" : "sb-sr-only" }, t || "Table of contents", ) : h.createElement("div", { id: e }, t), z6 = ({ title: e, disable: t, headingSelector: r, contentsSelector: n, ignoreSelector: o, unsafeTocbotOptions: a, channel: i, className: l, }) => { b.useEffect(() => { if (t) return () => {}; let u = { tocSelector: ".toc-wrapper", contentSelector: n ?? ".sbdocs-content", headingSelector: r ?? "h3", ignoreSelector: o ?? ".docs-story *, .skip-toc", headingsOffset: 40, scrollSmoothOffset: -40, orderedList: !1, onClick: (p) => { if ( (p.preventDefault(), p.currentTarget instanceof HTMLAnchorElement) ) { let [, c] = p.currentTarget.href.split("#"); c && i.emit(gS, `#${c}`); } }, ...a, }, d = setTimeout(() => Tm.init(u), 100); return () => { (clearTimeout(d), Tm.destroy()); }; }, [i, t, o, n, r, a]); let s = b.useId(); return h.createElement( B6, { className: l }, t ? null : h.createElement( N6, { "aria-labelledby": s }, h.createElement(M6, { headingId: s, title: e }), h.createElement("div", { className: "toc-wrapper" }), ), ); }; function Ur() { return ( (Ur = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; }), Ur.apply(this, arguments) ); } var H6 = ["children", "options"], ee = { blockQuote: "0", breakLine: "1", breakThematic: "2", codeBlock: "3", codeFenced: "4", codeInline: "5", footnote: "6", footnoteReference: "7", gfmTask: "8", heading: "9", headingSetext: "10", htmlBlock: "11", htmlComment: "12", htmlSelfClosing: "13", image: "14", link: "15", linkAngleBraceStyleDetector: "16", linkBareUrlDetector: "17", linkMailtoDetector: "18", newlineCoalescer: "19", orderedList: "20", paragraph: "21", ref: "22", refImage: "23", refLink: "24", table: "25", text: "27", textBolded: "28", textEmphasized: "29", textEscaped: "30", textMarked: "31", textStrikethroughed: "32", unorderedList: "33", }, Rm; (function (e) { ((e[(e.MAX = 0)] = "MAX"), (e[(e.HIGH = 1)] = "HIGH"), (e[(e.MED = 2)] = "MED"), (e[(e.LOW = 3)] = "LOW"), (e[(e.MIN = 4)] = "MIN")); })(Rm || (Rm = {})); var Pm = [ "allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap", ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), { class: "className", for: "htmlFor", }), Im = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, U6 = ["style", "script"], W6 = ["src", "href", "data", "formAction", "srcDoc", "action"], V6 = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, q6 = /mailto:/i, G6 = /\n{2,}$/, DS = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Y6 = /^ *> ?/gm, K6 = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, X6 = /^ {2,}\n/, Z6 = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, kS = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, OS = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, J6 = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Q6 = /^(?:\n *)*\n/, eP = /\r\n?/g, tP = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, rP = /^\[\^([^\]]+)]/, nP = /\f/g, oP = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, aP = /^\s*?\[(x|\s)\]/, FS = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _S = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, TS = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, rc = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, iP = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, RS = /^)/, lP = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, nc = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, sP = /^\{.*\}$/, uP = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, cP = /^<([^ >]+@[^ >]+)>/, dP = /^<([^ >]+:\/[^ >]+)>/, pP = /-([a-z])?/gi, PS = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, fP = /^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/, gP = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, mP = /^\[([^\]]*)\] ?\[([^\]]*)\]/, hP = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, yP = /\t/g, bP = /(^ *\||\| *$)/g, vP = /^ *:-+: *$/, xP = /^ *:-+ *$/, EP = /^ *-+: *$/, $l = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", wP = new RegExp(`^([*_])\\1${$l}\\1\\1(?!\\1)`), SP = new RegExp(`^([*_])${$l}\\1(?!\\1)`), CP = new RegExp(`^(==)${$l}\\1`), $P = new RegExp(`^(~~)${$l}\\1`), AP = /^\\([^0-9A-Za-z\s])/, Lm = /\\([^0-9A-Za-z\s])/g, DP = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, kP = /^\n+/, OP = /^([ \t]*)/, FP = /\\([^\\])/g, _P = /(?:^|\n)( *)$/, fp = "(?:\\d+\\.)", gp = "(?:[*+-])"; function IS(e) { return "( *)(" + (e === 1 ? fp : gp) + ") +"; } var LS = IS(1), BS = IS(2); function NS(e) { return new RegExp("^" + (e === 1 ? LS : BS)); } var TP = NS(1), RP = NS(2); function jS(e) { return new RegExp( "^" + (e === 1 ? LS : BS) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? fp : gp) + " )[^\\n]*)*(\\n|$)", "gm", ); } var PP = jS(1), IP = jS(2); function MS(e) { let t = e === 1 ? fp : gp; return new RegExp( "^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)", ); } var zS = MS(1), HS = MS(2); function Bm(e, t) { let r = t === 1, n = r ? zS : HS, o = r ? PP : IP, a = r ? TP : RP; return { match: ro(function (i, l) { let s = _P.exec(l.prevCapture); return s && (l.list || (!l.inline && !l.simple)) ? n.exec((i = s[1] + i)) : null; }), order: 1, parse(i, l, s) { let u = r ? +i[2] : void 0, d = i[0] .replace( G6, ` `, ) .match(o), p = !1; return { items: d.map(function (c, f) { let g = a.exec(c)[0].length, y = new RegExp("^ {1," + g + "}", "gm"), x = c.replace(y, "").replace(a, ""), v = f === d.length - 1, C = x.indexOf(` `) !== -1 || (v && p); p = C; let w = s.inline, E = s.list, $; ((s.list = !0), C ? ((s.inline = !1), ($ = Qo(x) + ` `)) : ((s.inline = !0), ($ = Qo(x)))); let A = l($, s); return ((s.inline = w), (s.list = E), A); }), ordered: r, start: u, }; }, render: (i, l, s) => e( i.ordered ? "ol" : "ul", { key: s.key, start: i.type === ee.orderedList ? i.start : void 0 }, i.items.map(function (u, d) { return e("li", { key: d }, l(u, s)); }), ), }; } var LP = new RegExp( `^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`, ), BP = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, US = [DS, kS, OS, FS, TS, _S, PS, zS, HS], NP = [...US, /^[^\n]+(?: \n|\n{2,})/, rc, RS, nc]; function Qo(e) { let t = e.length; for (; t > 0 && e[t - 1] <= " "; ) t--; return e.slice(0, t); } function Co(e) { return e .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a") .replace(/[çÇ]/g, "c") .replace(/[ðÐ]/g, "d") .replace(/[ÈÉÊËéèêë]/g, "e") .replace(/[ÏïÎîÍíÌì]/g, "i") .replace(/[Ññ]/g, "n") .replace(/[øØœŒÕõÔôÓóÒò]/g, "o") .replace(/[ÜüÛûÚúÙù]/g, "u") .replace(/[ŸÿÝý]/g, "y") .replace(/[^a-z0-9- ]/gi, "") .replace(/ /gi, "-") .toLowerCase(); } function jP(e) { return EP.test(e) ? "right" : vP.test(e) ? "center" : xP.test(e) ? "left" : null; } function Nm(e, t, r, n) { let o = r.inTable; r.inTable = !0; let a = [[]], i = ""; function l() { if (!i) return; let s = a[a.length - 1]; (s.push.apply(s, t(i, r)), (i = "")); } return ( e .trim() .split(/(`[^`]*`|\\\||\|)/) .filter(Boolean) .forEach((s, u, d) => { s.trim() === "|" && (l(), n) ? u !== 0 && u !== d.length - 1 && a.push([]) : (i += s); }), l(), (r.inTable = o), a ); } function MP(e, t, r) { r.inline = !0; let n = e[2] ? e[2].replace(bP, "").split("|").map(jP) : [], o = e[3] ? (function (i, l, s) { return i .trim() .split( ` `, ) .map(function (u) { return Nm(u, l, s, !0); }); })(e[3], t, r) : [], a = Nm(e[1], t, r, !!o.length); return ( (r.inline = !1), o.length ? { align: n, cells: o, header: a, type: ee.table } : { children: a, type: ee.paragraph } ); } function jm(e, t) { return e.align[t] == null ? {} : { textAlign: e.align[t] }; } function ro(e) { return ((e.inline = 1), e); } function fr(e) { return ro(function (t, r) { return r.inline ? e.exec(t) : null; }); } function gr(e) { return ro(function (t, r) { return r.inline || r.simple ? e.exec(t) : null; }); } function Xt(e) { return function (t, r) { return r.inline || r.simple ? null : e.exec(t); }; } function $o(e) { return ro(function (t) { return e.exec(t); }); } function zP(e, t) { if (t.inline || t.simple) return null; let r = ""; e.split( ` `, ).every( (o) => ( (o += ` `), !US.some((a) => a.test(o)) && ((r += o), !!o.trim()) ), ); let n = Qo(r); return n == "" ? null : [r, , n]; } var HP = /(javascript|vbscript|data(?!:image)):/i; function UP(e) { try { let t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, ""); if (HP.test(t)) return null; } catch { return null; } return e; } function Mm(e) { return e.replace(FP, "$1"); } function Ka(e, t, r) { let n = r.inline || !1, o = r.simple || !1; ((r.inline = !0), (r.simple = !0)); let a = e(t, r); return ((r.inline = n), (r.simple = o), a); } function WP(e, t, r) { let n = r.inline || !1, o = r.simple || !1; ((r.inline = !1), (r.simple = !0)); let a = e(t, r); return ((r.inline = n), (r.simple = o), a); } function VP(e, t, r) { let n = r.inline || !1; r.inline = !1; let o = e(t, r); return ((r.inline = n), o); } var Ss = (e, t, r) => ({ children: Ka(t, e[2], r) }); function Cs() { return {}; } function $s() { return null; } function qP(...e) { return e.filter(Boolean).join(" "); } function As(e, t, r) { let n = e, o = t.split("."); for (; o.length && ((n = n[o[0]]), n !== void 0); ) o.shift(); return n || r; } function GP(e = "", t = {}) { function r(c, f, ...g) { let y = As(t.overrides, `${c}.props`, {}); return t.createElement( (function (x, v) { let C = As(v, x); return C ? typeof C == "function" || (typeof C == "object" && "render" in C) ? C : As(v, `${x}.component`, x) : x; })(c, t.overrides), Ur({}, f, y, { className: qP(f?.className, y.className) || void 0 }), ...g, ); } function n(c) { c = c.replace(oP, ""); let f = !1; t.forceInline ? (f = !0) : t.forceBlock || (f = hP.test(c) === !1); let g = u( s( f ? c : `${Qo(c).replace(kP, "")} `, { inline: f }, ), ); for (; typeof g[g.length - 1] == "string" && !g[g.length - 1].trim(); ) g.pop(); if (t.wrapper === null) return g; let y = t.wrapper || (f ? "span" : "div"), x; if (g.length > 1 || t.forceWrapper) x = g; else { if (g.length === 1) return ( (x = g[0]), typeof x == "string" ? r("span", { key: "outer" }, x) : x ); x = null; } return t.createElement(y, { key: "outer" }, x); } function o(c, f) { let g = f.match(V6); return g ? g.reduce(function (y, x) { let v = x.indexOf("="); if (v !== -1) { let C = (function (A) { return ( A.indexOf("-") !== -1 && A.match(lP) === null && (A = A.replace(pP, function (S, D) { return D.toUpperCase(); })), A ); })(x.slice(0, v)).trim(), w = (function (A) { let S = A[0]; return (S === '"' || S === "'") && A.length >= 2 && A[A.length - 1] === S ? A.slice(1, -1) : A; })(x.slice(v + 1).trim()), E = Pm[C] || C; if (E === "ref") return y; let $ = (y[E] = (function (A, S, D, F) { return S === "style" ? (function (k) { let _ = [], I = "", L = !1, j = !1, B = ""; if (!k) return _; for (let V = 0; V < k.length; V++) { let Y = k[V]; if ( ((Y !== '"' && Y !== "'") || L || (j ? Y === B && ((j = !1), (B = "")) : ((j = !0), (B = Y))), Y === "(" && I.endsWith("url") ? (L = !0) : Y === ")" && L && (L = !1), Y !== ";" || j || L) ) I += Y; else { let W = I.trim(); if (W) { let G = W.indexOf(":"); if (G > 0) { let J = W.slice(0, G).trim(), Q = W.slice(G + 1).trim(); _.push([J, Q]); } } I = ""; } } let z = I.trim(); if (z) { let V = z.indexOf(":"); if (V > 0) { let Y = z.slice(0, V).trim(), W = z.slice(V + 1).trim(); _.push([Y, W]); } } return _; })(D).reduce(function (k, [_, I]) { return ( (k[_.replace(/(-[a-z])/g, (L) => L[1].toUpperCase())] = F( I, A, _, )), k ); }, {}) : W6.indexOf(S) !== -1 ? F(D, A, S) : (D.match(sP) && (D = D.slice(1, D.length - 1)), D === "true" || (D !== "false" && D)); })(c, C, w, t.sanitizer)); typeof $ == "string" && (rc.test($) || nc.test($)) && (y[E] = n($.trim())); } else x !== "style" && (y[Pm[x] || x] = !0); return y; }, {}) : null; } ((t.overrides = t.overrides || {}), (t.sanitizer = t.sanitizer || UP), (t.slugify = t.slugify || Co), (t.namedCodesToUnicode = t.namedCodesToUnicode ? Ur({}, Im, t.namedCodesToUnicode) : Im), (t.createElement = t.createElement || b.createElement)); let a = [], i = {}, l = { [ee.blockQuote]: { match: Xt(DS), order: 1, parse(c, f, g) { let [, y, x] = c[0].replace(Y6, "").match(K6); return { alert: y, children: f(x, g) }; }, render(c, f, g) { let y = { key: g.key }; return ( c.alert && ((y.className = "markdown-alert-" + t.slugify(c.alert.toLowerCase(), Co)), c.children.unshift({ attrs: {}, children: [{ type: ee.text, text: c.alert }], noInnerParse: !0, type: ee.htmlBlock, tag: "header", })), r("blockquote", y, f(c.children, g)) ); }, }, [ee.breakLine]: { match: $o(X6), order: 1, parse: Cs, render: (c, f, g) => r("br", { key: g.key }), }, [ee.breakThematic]: { match: Xt(Z6), order: 1, parse: Cs, render: (c, f, g) => r("hr", { key: g.key }), }, [ee.codeBlock]: { match: Xt(OS), order: 0, parse: (c) => ({ lang: void 0, text: Qo(c[0].replace(/^ {4}/gm, "")).replace(Lm, "$1"), }), render: (c, f, g) => r( "pre", { key: g.key }, r( "code", Ur({}, c.attrs, { className: c.lang ? `lang-${c.lang}` : "" }), c.text, ), ), }, [ee.codeFenced]: { match: Xt(kS), order: 0, parse: (c) => ({ attrs: o("code", c[3] || ""), lang: c[2] || void 0, text: c[4], type: ee.codeBlock, }), }, [ee.codeInline]: { match: gr(J6), order: 3, parse: (c) => ({ text: c[2].replace(Lm, "$1") }), render: (c, f, g) => r("code", { key: g.key }, c.text), }, [ee.footnote]: { match: Xt(tP), order: 0, parse: (c) => (a.push({ footnote: c[2], identifier: c[1] }), {}), render: $s, }, [ee.footnoteReference]: { match: fr(rP), order: 1, parse: (c) => ({ target: `#${t.slugify(c[1], Co)}`, text: c[1] }), render: (c, f, g) => r( "a", { key: g.key, href: t.sanitizer(c.target, "a", "href") }, r("sup", { key: g.key }, c.text), ), }, [ee.gfmTask]: { match: fr(aP), order: 1, parse: (c) => ({ completed: c[1].toLowerCase() === "x" }), render: (c, f, g) => r("input", { checked: c.completed, key: g.key, readOnly: !0, type: "checkbox", }), }, [ee.heading]: { match: Xt(t.enforceAtxHeadings ? _S : FS), order: 1, parse: (c, f, g) => ({ children: Ka(f, c[2], g), id: t.slugify(c[2], Co), level: c[1].length, }), render: (c, f, g) => r(`h${c.level}`, { id: c.id, key: g.key }, f(c.children, g)), }, [ee.headingSetext]: { match: Xt(TS), order: 0, parse: (c, f, g) => ({ children: Ka(f, c[1], g), level: c[2] === "=" ? 1 : 2, type: ee.heading, }), }, [ee.htmlBlock]: { match: $o(rc), order: 1, parse(c, f, g) { let [, y] = c[3].match(OP), x = new RegExp(`^${y}`, "gm"), v = c[3].replace(x, ""), C = ((w = v), NP.some((D) => D.test(w)) ? VP : Ka); var w; let E = c[1].toLowerCase(), $ = U6.indexOf(E) !== -1, A = ($ ? E : c[1]).trim(), S = { attrs: o(A, c[2]), noInnerParse: $, tag: A }; return ( (g.inAnchor = g.inAnchor || E === "a"), $ ? (S.text = c[3]) : (S.children = C(f, v, g)), (g.inAnchor = !1), S ); }, render: (c, f, g) => r( c.tag, Ur({ key: g.key }, c.attrs), c.text || (c.children ? f(c.children, g) : ""), ), }, [ee.htmlSelfClosing]: { match: $o(nc), order: 1, parse(c) { let f = c[1].trim(); return { attrs: o(f, c[2] || ""), tag: f }; }, render: (c, f, g) => r(c.tag, Ur({}, c.attrs, { key: g.key })), }, [ee.htmlComment]: { match: $o(RS), order: 1, parse: () => ({}), render: $s, }, [ee.image]: { match: gr(BP), order: 1, parse: (c) => ({ alt: c[1], target: Mm(c[2]), title: c[3] }), render: (c, f, g) => r("img", { key: g.key, alt: c.alt || void 0, title: c.title || void 0, src: t.sanitizer(c.target, "img", "src"), }), }, [ee.link]: { match: fr(LP), order: 3, parse: (c, f, g) => ({ children: WP(f, c[1], g), target: Mm(c[2]), title: c[3], }), render: (c, f, g) => r( "a", { key: g.key, href: t.sanitizer(c.target, "a", "href"), title: c.title, }, f(c.children, g), ), }, [ee.linkAngleBraceStyleDetector]: { match: fr(dP), order: 0, parse: (c) => ({ children: [{ text: c[1], type: ee.text }], target: c[1], type: ee.link, }), }, [ee.linkBareUrlDetector]: { match: ro((c, f) => f.inAnchor || t.disableAutoLink ? null : fr(uP)(c, f), ), order: 0, parse: (c) => ({ children: [{ text: c[1], type: ee.text }], target: c[1], title: void 0, type: ee.link, }), }, [ee.linkMailtoDetector]: { match: fr(cP), order: 0, parse(c) { let f = c[1], g = c[1]; return ( q6.test(g) || (g = "mailto:" + g), { children: [{ text: f.replace("mailto:", ""), type: ee.text }], target: g, type: ee.link, } ); }, }, [ee.orderedList]: Bm(r, 1), [ee.unorderedList]: Bm(r, 2), [ee.newlineCoalescer]: { match: Xt(Q6), order: 3, parse: Cs, render: () => ` `, }, [ee.paragraph]: { match: ro(zP), order: 3, parse: Ss, render: (c, f, g) => r("p", { key: g.key }, f(c.children, g)), }, [ee.ref]: { match: fr(fP), order: 0, parse: (c) => ((i[c[1]] = { target: c[2], title: c[4] }), {}), render: $s, }, [ee.refImage]: { match: gr(gP), order: 0, parse: (c) => ({ alt: c[1] || void 0, ref: c[2] }), render: (c, f, g) => i[c.ref] ? r("img", { key: g.key, alt: c.alt, src: t.sanitizer(i[c.ref].target, "img", "src"), title: i[c.ref].title, }) : null, }, [ee.refLink]: { match: fr(mP), order: 0, parse: (c, f, g) => ({ children: f(c[1], g), fallbackChildren: c[0], ref: c[2], }), render: (c, f, g) => i[c.ref] ? r( "a", { key: g.key, href: t.sanitizer(i[c.ref].target, "a", "href"), title: i[c.ref].title, }, f(c.children, g), ) : r("span", { key: g.key }, c.fallbackChildren), }, [ee.table]: { match: Xt(PS), order: 1, parse: MP, render(c, f, g) { let y = c; return r( "table", { key: g.key }, r( "thead", null, r( "tr", null, y.header.map(function (x, v) { return r("th", { key: v, style: jm(y, v) }, f(x, g)); }), ), ), r( "tbody", null, y.cells.map(function (x, v) { return r( "tr", { key: v }, x.map(function (C, w) { return r("td", { key: w, style: jm(y, w) }, f(C, g)); }), ); }), ), ); }, }, [ee.text]: { match: $o(DP), order: 4, parse: (c) => ({ text: c[0].replace(iP, (f, g) => t.namedCodesToUnicode[g] ? t.namedCodesToUnicode[g] : f, ), }), render: (c) => c.text, }, [ee.textBolded]: { match: gr(wP), order: 2, parse: (c, f, g) => ({ children: f(c[2], g) }), render: (c, f, g) => r("strong", { key: g.key }, f(c.children, g)), }, [ee.textEmphasized]: { match: gr(SP), order: 3, parse: (c, f, g) => ({ children: f(c[2], g) }), render: (c, f, g) => r("em", { key: g.key }, f(c.children, g)), }, [ee.textEscaped]: { match: gr(AP), order: 1, parse: (c) => ({ text: c[1], type: ee.text }), }, [ee.textMarked]: { match: gr(CP), order: 3, parse: Ss, render: (c, f, g) => r("mark", { key: g.key }, f(c.children, g)), }, [ee.textStrikethroughed]: { match: gr($P), order: 3, parse: Ss, render: (c, f, g) => r("del", { key: g.key }, f(c.children, g)), }, }; t.disableParsingRawHTML === !0 && (delete l[ee.htmlBlock], delete l[ee.htmlSelfClosing]); let s = (function (c) { let f = Object.keys(c); function g(y, x) { let v, C, w = [], E = "", $ = ""; for (x.prevCapture = x.prevCapture || ""; y; ) { let A = 0; for (; A < f.length; ) { if (((E = f[A]), (v = c[E]), x.inline && !v.match.inline)) { A++; continue; } let S = v.match(y, x); if (S) { (($ = S[0]), (x.prevCapture += $), (y = y.substring($.length)), (C = v.parse(S, g, x)), C.type == null && (C.type = E), w.push(C)); break; } A++; } } return ((x.prevCapture = ""), w); } return ( f.sort(function (y, x) { let v = c[y].order, C = c[x].order; return v !== C ? v - C : y < x ? -1 : 1; }), function (y, x) { return g( (function (v) { return v .replace( eP, ` `, ) .replace(nP, "") .replace(yP, " "); })(y), x, ); } ); })(l), u = ((d = (function (c, f) { return function (g, y, x) { let v = c[g.type].render; return f ? f(() => v(g, y, x), g, y, x) : v(g, y, x); }; })(l, t.renderRule)), function c(f, g = {}) { if (Array.isArray(f)) { let y = g.key, x = [], v = !1; for (let C = 0; C < f.length; C++) { g.key = C; let w = c(f[C], g), E = typeof w == "string"; (E && v ? (x[x.length - 1] += w) : w !== null && x.push(w), (v = E)); } return ((g.key = y), x); } return d(f, c, g); }); var d; let p = n(e); return a.length ? r( "div", null, p, r( "footer", { key: "footer" }, a.map(function (c) { return r( "div", { id: t.slugify(c.identifier, Co), key: c.identifier }, c.identifier, u(s(c.footnote, { inline: !0 })), ); }), ), ) : p; } var WS = (e) => { let { children: t = "", options: r } = e, n = (function (o, a) { if (o == null) return {}; var i, l, s = {}, u = Object.keys(o); for (l = 0; l < u.length; l++) a.indexOf((i = u[l])) >= 0 || (s[i] = o[i]); return s; })(e, H6); return b.cloneElement(GP(t, r), n); }, YP = T.label(({ theme: e }) => ({ lineHeight: "18px", alignItems: "center", marginBottom: 8, display: "inline-block", position: "relative", whiteSpace: "nowrap", background: e.boolean.background, borderRadius: "3em", padding: 1, '&[aria-disabled="true"]': { opacity: 0.5, input: { cursor: "not-allowed" }, }, input: { appearance: "none", width: "100%", height: "100%", position: "absolute", left: 0, top: 0, margin: 0, padding: 0, border: "none", background: "transparent", cursor: "pointer", borderRadius: "3em", "&:focus": { outline: "none", boxShadow: `${e.color.secondary} 0 0 0 1px inset !important`, }, "@media (forced-colors: active)": { "&:focus": { outline: "1px solid highlight" }, }, }, span: { textAlign: "center", fontSize: e.typography.size.s1, fontWeight: e.typography.weight.bold, lineHeight: "1", cursor: "pointer", display: "inline-block", padding: "7px 15px", transition: "all 100ms ease-out", userSelect: "none", borderRadius: "3em", color: ye(0.5, e.color.defaultText), background: "transparent", "&:hover": { boxShadow: `${Oa(0.3, e.appBorderColor)} 0 0 0 1px inset` }, "&:active": { boxShadow: `${Oa(0.05, e.appBorderColor)} 0 0 0 2px inset`, color: Oa(1, e.appBorderColor), }, "&:first-of-type": { paddingRight: 8 }, "&:last-of-type": { paddingLeft: 8 }, }, "input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type": { background: e.boolean.selectedBackground, boxShadow: e.base === "light" ? `${Oa(0.1, e.appBorderColor)} 0 0 2px` : `${e.appBorderColor} 0 0 0 1px`, color: e.color.defaultText, padding: "7px 15px", "@media (forced-colors: active)": { textDecoration: "underline" }, }, })), KP = (e) => e === "true", XP = ({ name: e, value: t, onChange: r, onBlur: n, onFocus: o, argType: a, }) => { let i = b.useCallback(() => r(!1), [r]), l = !!a?.table?.readonly; if (t === void 0) return h.createElement( _r, { variant: "outline", size: "medium", id: Vi(e), onClick: i, disabled: l, }, "Set boolean", ); let s = Ft(e), u = typeof t == "string" ? KP(t) : t; return h.createElement( YP, { "aria-disabled": l, htmlFor: s, "aria-label": e }, h.createElement("input", { id: s, type: "checkbox", onChange: (d) => r(d.target.checked), checked: u, role: "switch", disabled: l, name: e, onBlur: n, onFocus: o, }), h.createElement("span", { "aria-hidden": "true" }, "False"), h.createElement("span", { "aria-hidden": "true" }, "True"), ); }, ZP = (e) => { let [t, r, n] = e.split("-"), o = new Date(); return ( o.setFullYear(parseInt(t, 10), parseInt(r, 10) - 1, parseInt(n, 10)), o ); }, JP = (e) => { let [t, r] = e.split(":"), n = new Date(); return (n.setHours(parseInt(t, 10)), n.setMinutes(parseInt(r, 10)), n); }, QP = (e) => { let t = new Date(e), r = `000${t.getFullYear()}`.slice(-4), n = `0${t.getMonth() + 1}`.slice(-2), o = `0${t.getDate()}`.slice(-2); return `${r}-${n}-${o}`; }, e8 = (e) => { let t = new Date(e), r = `0${t.getHours()}`.slice(-2), n = `0${t.getMinutes()}`.slice(-2); return `${r}:${n}`; }, zm = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })), t8 = T.div(({ theme: e }) => ({ flex: 1, display: "flex", input: { marginLeft: 10, flex: 1, height: 32, "&::-webkit-calendar-picker-indicator": { opacity: 0.5, height: 12, filter: e.base === "light" ? void 0 : "invert(1)", }, }, "input:first-of-type": { marginLeft: 0, flexGrow: 4 }, "input:last-of-type": { flexGrow: 3 }, })), r8 = ({ name: e, value: t, onChange: r, onFocus: n, onBlur: o, argType: a, }) => { let [i, l] = b.useState(!0), s = b.useRef(), u = b.useRef(), d = !!a?.table?.readonly; b.useEffect(() => { i !== !1 && (s && s.current && (s.current.value = t ? QP(t) : ""), u && u.current && (u.current.value = t ? e8(t) : "")); }, [t]); let p = (g) => { if (!g.target.value) return r(); let y = ZP(g.target.value), x = new Date(t ?? ""); x.setFullYear(y.getFullYear(), y.getMonth(), y.getDate()); let v = x.getTime(); (v && r(v), l(!!v)); }, c = (g) => { if (!g.target.value) return r(); let y = JP(g.target.value), x = new Date(t ?? ""); (x.setHours(y.getHours()), x.setMinutes(y.getMinutes())); let v = x.getTime(); (v && r(v), l(!!v)); }, f = Ft(e); return h.createElement( t8, null, h.createElement(zm, { type: "date", max: "9999-12-31", ref: s, id: `${f}-date`, name: `${f}-date`, readOnly: d, onChange: p, onFocus: n, onBlur: o, }), h.createElement(zm, { type: "time", id: `${f}-time`, name: `${f}-time`, ref: u, onChange: c, readOnly: d, onFocus: n, onBlur: o, }), i ? null : h.createElement("div", null, "invalid"), ); }, n8 = T.label({ display: "flex" }), o8 = (e) => { let t = parseFloat(e); return Number.isNaN(t) ? void 0 : t; }, a8 = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })), i8 = ({ name: e, value: t, onChange: r, min: n, max: o, step: a, onBlur: i, onFocus: l, argType: s, }) => { let [u, d] = b.useState(typeof t == "number" ? t : ""), [p, c] = b.useState(!1), [f, g] = b.useState(null), y = !!s?.table?.readonly, x = b.useCallback( (w) => { d(w.target.value); let E = parseFloat(w.target.value); Number.isNaN(E) ? g(new Error(`'${w.target.value}' is not a number`)) : (r(E), g(null)); }, [r, g], ), v = b.useCallback(() => { (d("0"), r(0), c(!0)); }, [c]), C = b.useRef(null); return ( b.useEffect(() => { p && C.current && C.current.select(); }, [p]), b.useEffect(() => { let w = typeof t == "number" ? t : ""; u !== w && d(w); }, [t]), t === void 0 ? h.createElement( _r, { variant: "outline", size: "medium", id: Vi(e), onClick: v, disabled: y, }, "Set number", ) : h.createElement( n8, null, h.createElement(a8, { ref: C, id: Ft(e), type: "number", onChange: x, size: "flex", placeholder: "Edit number...", value: u, valid: f ? "error" : void 0, autoFocus: p, readOnly: y, name: e, min: n, max: o, step: a, onFocus: l, onBlur: i, }), ) ); }, VS = (e, t) => { let r = t && Object.entries(t).find(([n, o]) => o === e); return r ? r[0] : void 0; }, oc = (e, t) => e && t ? Object.entries(t) .filter((r) => e.includes(r[1])) .map((r) => r[0]) : [], qS = (e, t) => e && t && e.map((r) => t[r]), l8 = T.div( ({ isInline: e }) => e ? { display: "flex", flexWrap: "wrap", alignItems: "flex-start", label: { display: "inline-flex", marginRight: 15 }, } : { label: { display: "flex" } }, (e) => { if (e["aria-readonly"] === "true") return { input: { cursor: "not-allowed" } }; }, ), s8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }), u8 = T.label({ lineHeight: "20px", alignItems: "center", marginBottom: 8, "&:last-child": { marginBottom: 0 }, input: { margin: 0, marginRight: 6 }, }), Hm = ({ name: e, options: t, value: r, onChange: n, isInline: o, argType: a, }) => { if (!t) return ( cp.warn(`Checkbox with no options: ${e}`), h.createElement(h.Fragment, null, "-") ); let i = oc(r || [], t), [l, s] = b.useState(i), u = !!a?.table?.readonly, d = (c) => { let f = c.target.value, g = [...l]; (g.includes(f) ? g.splice(g.indexOf(f), 1) : g.push(f), n(qS(g, t)), s(g)); }; b.useEffect(() => { s(oc(r || [], t)); }, [r]); let p = Ft(e); return h.createElement( l8, { "aria-readonly": u, isInline: o }, Object.keys(t).map((c, f) => { let g = `${p}-${f}`; return h.createElement( u8, { key: g, htmlFor: g }, h.createElement("input", { type: "checkbox", disabled: u, id: g, name: g, value: c, onChange: d, checked: l?.includes(c), }), h.createElement(s8, null, c), ); }), ); }, c8 = T.div( ({ isInline: e }) => e ? { display: "flex", flexWrap: "wrap", alignItems: "flex-start", label: { display: "inline-flex", marginRight: 15 }, } : { label: { display: "flex" } }, (e) => { if (e["aria-readonly"] === "true") return { input: { cursor: "not-allowed" } }; }, ), d8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }), p8 = T.label({ lineHeight: "20px", alignItems: "center", marginBottom: 8, "&:last-child": { marginBottom: 0 }, input: { margin: 0, marginRight: 6 }, }), Um = ({ name: e, options: t, value: r, onChange: n, isInline: o, argType: a, }) => { if (!t) return ( cp.warn(`Radio with no options: ${e}`), h.createElement(h.Fragment, null, "-") ); let i = VS(r, t), l = Ft(e), s = !!a?.table?.readonly; return h.createElement( c8, { "aria-readonly": s, isInline: o }, Object.keys(t).map((u, d) => { let p = `${l}-${d}`; return h.createElement( p8, { key: p, htmlFor: p }, h.createElement("input", { type: "radio", id: p, name: l, disabled: s, value: u, onChange: (c) => n(t[c.currentTarget.value]), checked: u === i, }), h.createElement(d8, null, u), ); }), ); }, f8 = { appearance: "none", border: "0 none", boxSizing: "inherit", display: " block", margin: " 0", background: "transparent", padding: 0, fontSize: "inherit", position: "relative", }, GS = T.select(f8, ({ theme: e }) => ({ boxSizing: "border-box", position: "relative", padding: "6px 10px", width: "100%", color: e.input.color || "inherit", background: e.input.background, borderRadius: e.input.borderRadius, boxShadow: `${e.input.border} 0 0 0 1px inset`, fontSize: e.typography.size.s2 - 1, lineHeight: "20px", "&:focus": { boxShadow: `${e.color.secondary} 0 0 0 1px inset`, outline: "none", }, "&[disabled]": { cursor: "not-allowed", opacity: 0.5 }, "::placeholder": { color: e.textMutedColor }, "&[multiple]": { overflow: "auto", padding: 0, option: { display: "block", padding: "6px 10px", marginLeft: 1, marginRight: 1, }, }, })), YS = T.span(({ theme: e }) => ({ display: "inline-block", lineHeight: "normal", overflow: "hidden", position: "relative", verticalAlign: "top", width: "100%", svg: { position: "absolute", zIndex: 1, pointerEvents: "none", height: "12px", marginTop: "-6px", right: "12px", top: "50%", fill: e.textMutedColor, path: { fill: e.textMutedColor }, }, })), Wm = "Choose option...", g8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => { let a = (u) => { n(r[u.currentTarget.value]); }, i = VS(t, r) || Wm, l = Ft(e), s = !!o?.table?.readonly; return h.createElement( YS, null, h.createElement(fS, null), h.createElement( GS, { disabled: s, id: l, value: i, onChange: a }, h.createElement("option", { key: "no-selection", disabled: !0 }, Wm), Object.keys(r).map((u) => h.createElement("option", { key: u, value: u }, u), ), ), ); }, m8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => { let a = (u) => { let d = Array.from(u.currentTarget.options) .filter((p) => p.selected) .map((p) => p.value); n(qS(d, r)); }, i = oc(t, r), l = Ft(e), s = !!o?.table?.readonly; return h.createElement( YS, null, h.createElement( GS, { disabled: s, id: l, multiple: !0, value: i, onChange: a }, Object.keys(r).map((u) => h.createElement("option", { key: u, value: u }, u), ), ), ); }, Vm = (e) => { let { name: t, options: r } = e; return r ? e.isMulti ? h.createElement(m8, { ...e }) : h.createElement(g8, { ...e }) : (cp.warn(`Select with no options: ${t}`), h.createElement(h.Fragment, null, "-")); }, h8 = (e, t) => Array.isArray(e) ? e.reduce((r, n) => ((r[t?.[n] || String(n)] = n), r), {}) : e, y8 = { check: Hm, "inline-check": Hm, radio: Um, "inline-radio": Um, select: Vm, "multi-select": Vm, }, yn = (e) => { let { type: t = "select", labels: r, argType: n } = e, o = { ...e, argType: n, options: n ? h8(n.options, r) : {}, isInline: t.includes("inline"), isMulti: t.includes("multi"), }, a = y8[t]; if (a) return h.createElement(a, { ...o }); throw new Error(`Unknown options type: ${t}`); }, b8 = T.div(({ theme: e }) => ({ position: "relative", ":hover": { "& > .rejt-accordion-button::after": { background: e.color.secondary }, "& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)": { opacity: 1, }, }, })), v8 = T.button(({ theme: e }) => ({ padding: 0, background: "transparent", border: "none", marginRight: "3px", lineHeight: "22px", color: e.color.secondary, "::after": { content: '""', position: "absolute", top: 0, display: "block", width: "100%", marginLeft: "-1rem", height: "22px", background: "transparent", borderRadius: 4, transition: "background 0.2s", opacity: 0.1, paddingRight: "20px", }, "::before": { content: '""', position: "absolute" }, '&[aria-expanded="true"]::before': { left: -10, top: 10, borderTop: "3px solid rgba(153,153,153,0.6)", borderLeft: "3px solid transparent", borderRight: "3px solid transparent", }, '&[aria-expanded="false"]::before': { left: -8, top: 8, borderTop: "3px solid transparent", borderBottom: "3px solid transparent", borderLeft: "3px solid rgba(153,153,153,0.6)", }, })), x8 = T.div({ display: "inline" }); function KS({ children: e, name: t, collapsed: r, keyPath: n, deep: o, ...a }) { let i = `${n.at(-1) ?? "root"}-${t}-${o}`, l = { trigger: `${i}-trigger`, region: `${i}-region` }, s = n.length > 0 ? "li" : "div"; return h.createElement( b8, { as: s }, h.createElement( v8, { type: "button", "aria-expanded": !r, id: l.trigger, "aria-controls": l.region, className: "rejt-accordion-button", ...a, }, t, " :", ), h.createElement( x8, { role: "region", id: l.region, "aria-labelledby": l.trigger, className: "rejt-accordion-region", }, e, ), ); } var E8 = "Error", w8 = "Object", S8 = "Array", C8 = "String", $8 = "Number", A8 = "Boolean", D8 = "Date", k8 = "Null", O8 = "Undefined", F8 = "Function", _8 = "Symbol", XS = "ADD_DELTA_TYPE", ZS = "REMOVE_DELTA_TYPE", JS = "UPDATE_DELTA_TYPE", mp = "value", T8 = "key"; function Gr(e) { return e !== null && typeof e == "object" && !Array.isArray(e) && typeof e[Symbol.iterator] == "function" ? "Iterable" : Object.prototype.toString.call(e).slice(8, -1); } function QS(e, t) { let r = Gr(e), n = Gr(t); return (r === "Function" || n === "Function") && n !== r; } var hp = class extends b.Component { constructor(e) { (super(e), (this.state = { inputRefKey: null, inputRefValue: null }), (this.refInputValue = this.refInputValue.bind(this)), (this.refInputKey = this.refInputKey.bind(this)), (this.onKeydown = this.onKeydown.bind(this)), (this.onSubmit = this.onSubmit.bind(this))); } componentDidMount() { let { inputRefKey: e, inputRefValue: t } = this.state, { onlyValue: r } = this.props; (e && typeof e.focus == "function" && e.focus(), r && t && typeof t.focus == "function" && t.focus()); } onKeydown(e) { if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.repeat) return; let { inputRefKey: t, inputRefValue: r } = this.state, { addButtonElement: n, handleCancel: o } = this.props; [t, r, n].some((a) => a === e.target) && ((e.code === "Enter" || e.key === "Enter") && (e.preventDefault(), this.onSubmit()), (e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), o())); } onSubmit() { let { handleAdd: e, onlyValue: t, onSubmitValueParser: r, keyPath: n, deep: o, } = this.props, { inputRefKey: a, inputRefValue: i } = this.state, l = {}; if (!t) { if (!a.value) return; l.key = a.value; } ((l.newValue = r(!1, n, o, l.key, i.value)), e(l)); } refInputKey(e) { this.state.inputRefKey = e; } refInputValue(e) { this.state.inputRefValue = e; } render() { let { handleCancel: e, onlyValue: t, addButtonElement: r, cancelButtonElement: n, inputElementGenerator: o, keyPath: a, deep: i, } = this.props, l = r && b.cloneElement(r, { onClick: this.onSubmit }), s = n && b.cloneElement(n, { onClick: e }), u = o(mp, a, i), d = b.cloneElement(u, { placeholder: "Value", ref: this.refInputValue, onKeyDown: this.onKeydown, }), p = null; if (!t) { let c = o(T8, a, i); p = b.cloneElement(c, { placeholder: "Key", ref: this.refInputKey, onKeyDown: this.onKeydown, }); } return h.createElement( "span", { className: "rejt-add-value-node" }, p, d, l, s, ); } }; hp.defaultProps = { onlyValue: !1, addButtonElement: h.createElement("button", null, "+"), cancelButtonElement: h.createElement("button", null, "c"), }; var e2 = class extends b.Component { constructor(e) { super(e); let t = [...(e.keyPath || []), e.name]; ((this.state = { data: e.data, name: e.name, keyPath: t ?? [], deep: e.deep ?? 0, nextDeep: (e.deep ?? 0) + 1, collapsed: e.isCollapsed(t, e.deep ?? 0, e.data), addFormVisible: !1, }), (this.handleCollapseMode = this.handleCollapseMode.bind(this)), (this.handleRemoveItem = this.handleRemoveItem.bind(this)), (this.handleAddMode = this.handleAddMode.bind(this)), (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)), (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)), (this.handleEditValue = this.handleEditValue.bind(this)), (this.onChildUpdate = this.onChildUpdate.bind(this)), (this.renderCollapsed = this.renderCollapsed.bind(this)), (this.renderNotCollapsed = this.renderNotCollapsed.bind(this))); } static getDerivedStateFromProps(e, t) { return e.data !== t.data ? { data: e.data } : null; } onChildUpdate(e, t) { let { data: r, keyPath: n = [] } = this.state; ((r[e] = t), this.setState({ data: r })); let { onUpdate: o } = this.props, a = n.length; o(n[a - 1], r); } handleAddMode() { this.setState({ addFormVisible: !0 }); } handleCollapseMode() { this.setState((e) => ({ collapsed: !e.collapsed })); } handleRemoveItem(e) { return () => { let { beforeRemoveAction: t, logger: r } = this.props, { data: n, keyPath: o, nextDeep: a } = this.state, i = n[e]; (t || Promise.resolve.bind(Promise))(e, o, a, i) .then(() => { let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS }; (n.splice(e, 1), this.setState({ data: n })); let { onUpdate: s, onDeltaUpdate: u } = this.props; (s(o[o.length - 1], n), u(l)); }) .catch(r.error); }; } handleAddValueAdd({ key: e, newValue: t }) { let { data: r, keyPath: n = [], nextDeep: o } = this.state, { beforeAddAction: a, logger: i } = this.props; (a || Promise.resolve.bind(Promise))(e, n, o, t) .then(() => { ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel()); let { onUpdate: l, onDeltaUpdate: s } = this.props; (l(n[n.length - 1], r), s({ type: XS, keyPath: n, deep: o, key: e, newValue: t })); }) .catch(i.error); } handleAddValueCancel() { this.setState({ addFormVisible: !1 }); } handleEditValue({ key: e, value: t }) { return new Promise((r, n) => { let { beforeUpdateAction: o } = this.props, { data: a, keyPath: i, nextDeep: l } = this.state, s = a[e]; (o || Promise.resolve.bind(Promise))(e, i, l, s, t) .then(() => { ((a[e] = t), this.setState({ data: a })); let { onUpdate: u, onDeltaUpdate: d } = this.props; (u(i[i.length - 1], a), d({ type: JS, keyPath: i, deep: l, key: e, newValue: t, oldValue: s, }), r(void 0)); }) .catch(n); }); } renderCollapsed() { let { name: e, data: t, keyPath: r, deep: n } = this.state, { handleRemove: o, readOnly: a, getStyle: i, dataType: l, minusMenuElement: s, } = this.props, { minus: u, collapsed: d } = i(e, t, r, n, l), p = a(e, t, r, n, l), c = s && b.cloneElement(s, { onClick: o, className: "rejt-minus-menu", style: u, "aria-label": `remove the array '${String(e)}'`, }); return h.createElement( h.Fragment, null, h.createElement( "span", { style: d }, "[...] ", t.length, " ", t.length === 1 ? "item" : "items", ), !p && c, ); } renderNotCollapsed() { let { name: e, data: t, keyPath: r, deep: n, addFormVisible: o, nextDeep: a, } = this.state, { isCollapsed: i, handleRemove: l, onDeltaUpdate: s, readOnly: u, getStyle: d, dataType: p, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, textareaElementGenerator: y, minusMenuElement: x, plusMenuElement: v, beforeRemoveAction: C, beforeAddAction: w, beforeUpdateAction: E, logger: $, onSubmitValueParser: A, } = this.props, { minus: S, plus: D, delimiter: F, ul: k, addForm: _ } = d(e, t, r, n, p), I = u(e, t, r, n, p), L = v && b.cloneElement(v, { onClick: this.handleAddMode, className: "rejt-plus-menu", style: D, "aria-label": `add a new item to the '${String(e)}' array`, }), j = x && b.cloneElement(x, { onClick: l, className: "rejt-minus-menu", style: S, "aria-label": `remove the array '${String(e)}'`, }); return h.createElement( h.Fragment, null, h.createElement( "span", { className: "rejt-not-collapsed-delimiter", style: F }, "[", ), !o && L, h.createElement( "ul", { className: "rejt-not-collapsed-list", style: k }, t.map((B, z) => h.createElement(Al, { key: z, name: z.toString(), data: B, keyPath: r, deep: a, isCollapsed: i, handleRemove: this.handleRemoveItem(z), handleUpdateValue: this.handleEditValue, onUpdate: this.onChildUpdate, onDeltaUpdate: s, readOnly: u, getStyle: d, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, textareaElementGenerator: y, minusMenuElement: x, plusMenuElement: v, beforeRemoveAction: C, beforeAddAction: w, beforeUpdateAction: E, logger: $, onSubmitValueParser: A, }), ), ), !I && o && h.createElement( "div", { className: "rejt-add-form", style: _ }, h.createElement(hp, { handleAdd: this.handleAddValueAdd, handleCancel: this.handleAddValueCancel, onlyValue: !0, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, keyPath: r, deep: n, onSubmitValueParser: A, }), ), h.createElement( "span", { className: "rejt-not-collapsed-delimiter", style: F }, "]", ), !I && j, ); } render() { let { name: e, collapsed: t, keyPath: r, deep: n } = this.state, o = t ? this.renderCollapsed() : this.renderNotCollapsed(); return h.createElement( KS, { name: e, collapsed: t, deep: n, keyPath: r, onClick: this.handleCollapseMode, }, o, ); } }; e2.defaultProps = { keyPath: [], deep: 0, minusMenuElement: h.createElement("span", null, " - "), plusMenuElement: h.createElement("span", null, " + "), }; var t2 = class extends b.Component { constructor(e) { super(e); let t = [...(e.keyPath || []), e.name]; ((this.state = { value: e.value, name: e.name, keyPath: t ?? [], deep: e.deep ?? 0, editEnabled: !1, inputRef: null, }), (this.handleEditMode = this.handleEditMode.bind(this)), (this.refInput = this.refInput.bind(this)), (this.handleCancelEdit = this.handleCancelEdit.bind(this)), (this.handleEdit = this.handleEdit.bind(this)), (this.onKeydown = this.onKeydown.bind(this))); } static getDerivedStateFromProps(e, t) { return e.value !== t.value ? { value: e.value } : null; } componentDidUpdate() { let { editEnabled: e, inputRef: t, name: r, value: n, keyPath: o, deep: a, } = this.state, { readOnly: i, dataType: l } = this.props, s = i(r, n, o, a, l); e && !s && typeof t.focus == "function" && t.focus(); } onKeydown(e) { let { inputRef: t } = this.state; e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.repeat || t !== e.target || ((e.code === "Enter" || e.key === "Enter") && (e.preventDefault(), this.handleEdit()), (e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), this.handleCancelEdit())); } handleEdit() { let { handleUpdateValue: e, originalValue: t, logger: r, onSubmitValueParser: n, keyPath: o, } = this.props, { inputRef: a, name: i, deep: l } = this.state; if (!a) return; let s = n(!0, o, l, i, a.value), u = { value: s, key: i }; (e || Promise.resolve.bind(Promise))(u) .then(() => { QS(t, s) || this.handleCancelEdit(); }) .catch(r.error); } handleEditMode() { this.setState({ editEnabled: !0 }); } refInput(e) { this.state.inputRef = e; } handleCancelEdit() { this.setState({ editEnabled: !1 }); } render() { let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state, { handleRemove: a, originalValue: i, readOnly: l, dataType: s, getStyle: u, textareaElementGenerator: d, minusMenuElement: p, keyPath: c = [], } = this.props, f = u(e, i, n, o, s), g = null, y = null, x = l(e, i, n, o, s); if (r && !x) { let v = d(mp, c, o, e, i, s), C = b.cloneElement(v, { ref: this.refInput, defaultValue: t, onKeyDown: this.onKeydown, }); ((g = h.createElement( "span", { className: "rejt-edit-form", style: f.editForm }, C, )), (y = null)); } else { g = h.createElement( "span", { className: "rejt-value", style: f.value, onClick: x ? void 0 : this.handleEditMode, }, t, ); let v = c.at(-1), C = p && b.cloneElement(p, { onClick: a, className: "rejt-minus-menu", style: f.minus, "aria-label": `remove the function '${String(e)}'${String(v) ? ` from '${String(v)}'` : ""}`, }); y = x ? null : C; } return h.createElement( "li", { className: "rejt-value-node", style: f.li }, h.createElement( "span", { className: "rejt-name", style: f.name }, e, " :", " ", ), g, y, ); } }; t2.defaultProps = { keyPath: [], deep: 0, handleUpdateValue: () => {}, cancelButtonElement: h.createElement("button", null, "c"), minusMenuElement: h.createElement("span", null, " - "), }; var Al = class extends b.Component { constructor(e) { (super(e), (this.state = { data: e.data, name: e.name, keyPath: e.keyPath ?? [], deep: e.deep ?? 0, })); } static getDerivedStateFromProps(e, t) { return e.data !== t.data ? { data: e.data } : null; } render() { let { data: e, name: t, keyPath: r, deep: n } = this.state, { isCollapsed: o, handleRemove: a, handleUpdateValue: i, onUpdate: l, onDeltaUpdate: s, readOnly: u, getStyle: d, addButtonElement: p, cancelButtonElement: c, inputElementGenerator: f, textareaElementGenerator: g, minusMenuElement: y, plusMenuElement: x, beforeRemoveAction: v, beforeAddAction: C, beforeUpdateAction: w, logger: E, onSubmitValueParser: $, } = this.props, A = () => !0, S = Gr(e); switch (S) { case E8: return h.createElement(ac, { data: e, name: t, isCollapsed: o, keyPath: r, deep: n, handleRemove: a, onUpdate: l, onDeltaUpdate: s, readOnly: A, dataType: S, getStyle: d, addButtonElement: p, cancelButtonElement: c, inputElementGenerator: f, textareaElementGenerator: g, minusMenuElement: y, plusMenuElement: x, beforeRemoveAction: v, beforeAddAction: C, beforeUpdateAction: w, logger: E, onSubmitValueParser: $, }); case w8: return h.createElement(ac, { data: e, name: t, isCollapsed: o, keyPath: r, deep: n, handleRemove: a, onUpdate: l, onDeltaUpdate: s, readOnly: u, dataType: S, getStyle: d, addButtonElement: p, cancelButtonElement: c, inputElementGenerator: f, textareaElementGenerator: g, minusMenuElement: y, plusMenuElement: x, beforeRemoveAction: v, beforeAddAction: C, beforeUpdateAction: w, logger: E, onSubmitValueParser: $, }); case S8: return h.createElement(e2, { data: e, name: t, isCollapsed: o, keyPath: r, deep: n, handleRemove: a, onUpdate: l, onDeltaUpdate: s, readOnly: u, dataType: S, getStyle: d, addButtonElement: p, cancelButtonElement: c, inputElementGenerator: f, textareaElementGenerator: g, minusMenuElement: y, plusMenuElement: x, beforeRemoveAction: v, beforeAddAction: C, beforeUpdateAction: w, logger: E, onSubmitValueParser: $, }); case C8: return h.createElement(hr, { name: t, value: `"${e}"`, originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case $8: return h.createElement(hr, { name: t, value: e, originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case A8: return h.createElement(hr, { name: t, value: e ? "true" : "false", originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case D8: return h.createElement(hr, { name: t, value: e.toISOString(), originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: A, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case k8: return h.createElement(hr, { name: t, value: "null", originalValue: "null", keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case O8: return h.createElement(hr, { name: t, value: "undefined", originalValue: "undefined", keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case F8: return h.createElement(t2, { name: t, value: e.toString(), originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: u, dataType: S, getStyle: d, cancelButtonElement: c, textareaElementGenerator: g, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); case _8: return h.createElement(hr, { name: t, value: e.toString(), originalValue: e, keyPath: r, deep: n, handleRemove: a, handleUpdateValue: i, readOnly: A, dataType: S, getStyle: d, cancelButtonElement: c, inputElementGenerator: f, minusMenuElement: y, logger: E, onSubmitValueParser: $, }); default: return null; } } }; Al.defaultProps = { keyPath: [], deep: 0 }; var ac = class extends b.Component { constructor(e) { super(e); let t = e.deep === -1 ? [] : [...(e.keyPath || []), e.name]; ((this.state = { name: e.name, data: e.data, keyPath: t ?? [], deep: e.deep ?? 0, nextDeep: (e.deep ?? 0) + 1, collapsed: e.isCollapsed(t, e.deep ?? 0, e.data), addFormVisible: !1, }), (this.handleCollapseMode = this.handleCollapseMode.bind(this)), (this.handleRemoveValue = this.handleRemoveValue.bind(this)), (this.handleAddMode = this.handleAddMode.bind(this)), (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)), (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)), (this.handleEditValue = this.handleEditValue.bind(this)), (this.onChildUpdate = this.onChildUpdate.bind(this)), (this.renderCollapsed = this.renderCollapsed.bind(this)), (this.renderNotCollapsed = this.renderNotCollapsed.bind(this))); } static getDerivedStateFromProps(e, t) { return e.data !== t.data ? { data: e.data } : null; } onChildUpdate(e, t) { let { data: r, keyPath: n = [] } = this.state; ((r[e] = t), this.setState({ data: r })); let { onUpdate: o } = this.props, a = n.length; o(n[a - 1], r); } handleAddMode() { this.setState({ addFormVisible: !0 }); } handleAddValueCancel() { this.setState({ addFormVisible: !1 }); } handleAddValueAdd({ key: e, newValue: t }) { let { data: r, keyPath: n = [], nextDeep: o } = this.state, { beforeAddAction: a, logger: i } = this.props; (a || Promise.resolve.bind(Promise))(e, n, o, t) .then(() => { ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel()); let { onUpdate: l, onDeltaUpdate: s } = this.props; (l(n[n.length - 1], r), s({ type: XS, keyPath: n, deep: o, key: e, newValue: t })); }) .catch(i.error); } handleRemoveValue(e) { return () => { let { beforeRemoveAction: t, logger: r } = this.props, { data: n, keyPath: o = [], nextDeep: a } = this.state, i = n[e]; (t || Promise.resolve.bind(Promise))(e, o, a, i) .then(() => { let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS }; (delete n[e], this.setState({ data: n })); let { onUpdate: s, onDeltaUpdate: u } = this.props; (s(o[o.length - 1], n), u(l)); }) .catch(r.error); }; } handleCollapseMode() { this.setState((e) => ({ collapsed: !e.collapsed })); } handleEditValue({ key: e, value: t }) { return new Promise((r, n) => { let { beforeUpdateAction: o } = this.props, { data: a, keyPath: i = [], nextDeep: l } = this.state, s = a[e]; (o || Promise.resolve.bind(Promise))(e, i, l, s, t) .then(() => { ((a[e] = t), this.setState({ data: a })); let { onUpdate: u, onDeltaUpdate: d } = this.props; (u(i[i.length - 1], a), d({ type: JS, keyPath: i, deep: l, key: e, newValue: t, oldValue: s, }), r()); }) .catch(n); }); } renderCollapsed() { let { name: e, keyPath: t, deep: r, data: n } = this.state, { handleRemove: o, readOnly: a, dataType: i, getStyle: l, minusMenuElement: s, } = this.props, { minus: u, collapsed: d } = l(e, n, t, r, i), p = Object.getOwnPropertyNames(n), c = a(e, n, t, r, i), f = s && b.cloneElement(s, { onClick: o, className: "rejt-minus-menu", style: u, "aria-label": `remove the object '${String(e)}'`, }); return h.createElement( h.Fragment, null, h.createElement( "span", { style: d }, "{...}", " ", p.length, " ", p.length === 1 ? "key" : "keys", ), !c && f, ); } renderNotCollapsed() { let { name: e, data: t, keyPath: r, deep: n, nextDeep: o, addFormVisible: a, } = this.state, { isCollapsed: i, handleRemove: l, onDeltaUpdate: s, readOnly: u, getStyle: d, dataType: p, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, textareaElementGenerator: y, minusMenuElement: x, plusMenuElement: v, beforeRemoveAction: C, beforeAddAction: w, beforeUpdateAction: E, logger: $, onSubmitValueParser: A, } = this.props, { minus: S, plus: D, addForm: F, ul: k, delimiter: _ } = d(e, t, r, n, p), I = Object.getOwnPropertyNames(t), L = u(e, t, r, n, p), j = v && b.cloneElement(v, { onClick: this.handleAddMode, className: "rejt-plus-menu", style: D, "aria-label": `add a new property to the object '${String(e)}'`, }), B = x && b.cloneElement(x, { onClick: l, className: "rejt-minus-menu", style: S, "aria-label": `remove the object '${String(e)}'`, }), z = I.map((V) => h.createElement(Al, { key: V, name: V, data: t[V], keyPath: r, deep: o, isCollapsed: i, handleRemove: this.handleRemoveValue(V), handleUpdateValue: this.handleEditValue, onUpdate: this.onChildUpdate, onDeltaUpdate: s, readOnly: u, getStyle: d, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, textareaElementGenerator: y, minusMenuElement: x, plusMenuElement: v, beforeRemoveAction: C, beforeAddAction: w, beforeUpdateAction: E, logger: $, onSubmitValueParser: A, }), ); return h.createElement( h.Fragment, null, h.createElement( "span", { className: "rejt-not-collapsed-delimiter", style: _ }, "{", ), !L && j, h.createElement( "ul", { className: "rejt-not-collapsed-list", style: k }, z, ), !L && a && h.createElement( "div", { className: "rejt-add-form", style: F }, h.createElement(hp, { handleAdd: this.handleAddValueAdd, handleCancel: this.handleAddValueCancel, addButtonElement: c, cancelButtonElement: f, inputElementGenerator: g, keyPath: r, deep: n, onSubmitValueParser: A, }), ), h.createElement( "span", { className: "rejt-not-collapsed-delimiter", style: _ }, "}", ), !L && B, ); } render() { let { name: e, collapsed: t, keyPath: r, deep: n = 0 } = this.state, o = t ? this.renderCollapsed() : this.renderNotCollapsed(); return h.createElement( KS, { name: e, collapsed: t, deep: n, keyPath: r, onClick: this.handleCollapseMode, }, o, ); } }; ac.defaultProps = { keyPath: [], deep: 0, minusMenuElement: h.createElement("span", null, " - "), plusMenuElement: h.createElement("span", null, " + "), }; var hr = class extends b.Component { constructor(e) { super(e); let t = [...(e.keyPath || []), e.name]; ((this.state = { value: e.value, name: e.name, keyPath: t ?? [], deep: e.deep ?? 0, editEnabled: !1, inputRef: null, }), (this.handleEditMode = this.handleEditMode.bind(this)), (this.refInput = this.refInput.bind(this)), (this.handleCancelEdit = this.handleCancelEdit.bind(this)), (this.handleEdit = this.handleEdit.bind(this)), (this.onKeydown = this.onKeydown.bind(this))); } static getDerivedStateFromProps(e, t) { return e.value !== t.value ? { value: e.value } : null; } componentDidUpdate() { let { editEnabled: e, inputRef: t, name: r, value: n, keyPath: o, deep: a, } = this.state, { readOnly: i, dataType: l } = this.props, s = i(r, n, o, a, l); e && !s && typeof t.focus == "function" && t.focus(); } onKeydown(e) { let { inputRef: t } = this.state; e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.repeat || t !== e.target || ((e.code === "Enter" || e.key === "Enter") && (e.preventDefault(), this.handleEdit()), (e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), this.handleCancelEdit())); } handleEdit() { let { handleUpdateValue: e, originalValue: t, logger: r, onSubmitValueParser: n, keyPath: o, } = this.props, { inputRef: a, name: i, deep: l } = this.state; if (!a) return; let s = n(!0, o, l, i, a.value), u = { value: s, key: i }; (e || Promise.resolve.bind(Promise))(u) .then(() => { QS(t, s) || this.handleCancelEdit(); }) .catch(r.error); } handleEditMode() { this.setState({ editEnabled: !0 }); } refInput(e) { this.state.inputRef = e; } handleCancelEdit() { this.setState({ editEnabled: !1 }); } render() { let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state, { handleRemove: a, originalValue: i, readOnly: l, dataType: s, getStyle: u, inputElementGenerator: d, minusMenuElement: p, keyPath: c, } = this.props, f = u(e, i, n, o, s), g = l(e, i, n, o, s), y = r && !g, x = d(mp, c, o, e, i, s), v = b.cloneElement(x, { ref: this.refInput, defaultValue: JSON.stringify(i), onKeyDown: this.onKeydown, }), C = n.at(-2), w = p && b.cloneElement(p, { onClick: a, className: "rejt-minus-menu", style: f.minus, "aria-label": `remove the property '${String(e)}' with value '${String(i)}'${String(C) ? ` from '${String(C)}'` : ""}`, }); return h.createElement( "li", { className: "rejt-value-node", style: f.li }, h.createElement( "span", { className: "rejt-name", style: f.name }, e, " : ", ), y ? h.createElement( "span", { className: "rejt-edit-form", style: f.editForm }, v, ) : h.createElement( "span", { className: "rejt-value", style: f.value, onClick: g ? void 0 : this.handleEditMode, }, String(t), ), !g && !y && w, ); } }; hr.defaultProps = { keyPath: [], deep: 0, handleUpdateValue: () => Promise.resolve(), cancelButtonElement: h.createElement("button", null, "c"), minusMenuElement: h.createElement("span", null, " - "), }; function R8(e) { let t = e; if (t.indexOf("function") === 0) return (0, eval)(`(${t})`); try { t = JSON.parse(e); } catch {} return t; } var P8 = { minus: { color: "red" }, plus: { color: "green" }, collapsed: { color: "grey" }, delimiter: {}, ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" }, name: { color: "#2287CD" }, addForm: {}, }, I8 = { minus: { color: "red" }, plus: { color: "green" }, collapsed: { color: "grey" }, delimiter: {}, ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" }, name: { color: "#2287CD" }, addForm: {}, }, L8 = { minus: { color: "red" }, editForm: {}, value: { color: "#7bba3d" }, li: { minHeight: "22px", lineHeight: "22px", outline: "0px" }, name: { color: "#2287CD" }, }, r2 = class extends b.Component { constructor(e) { (super(e), (this.state = { data: e.data, rootName: e.rootName }), (this.onUpdate = this.onUpdate.bind(this)), (this.removeRoot = this.removeRoot.bind(this))); } static getDerivedStateFromProps(e, t) { return e.data !== t.data || e.rootName !== t.rootName ? { data: e.data, rootName: e.rootName } : null; } onUpdate(e, t) { (this.setState({ data: t }), this.props.onFullyUpdate?.(t)); } removeRoot() { this.onUpdate(null, null); } render() { let { data: e, rootName: t } = this.state, { isCollapsed: r, onDeltaUpdate: n, readOnly: o, getStyle: a, addButtonElement: i, cancelButtonElement: l, inputElement: s, textareaElement: u, minusMenuElement: d, plusMenuElement: p, beforeRemoveAction: c, beforeAddAction: f, beforeUpdateAction: g, logger: y, onSubmitValueParser: x, fallback: v = null, } = this.props, C = Gr(e), w = o; Gr(o) === "Boolean" && (w = () => o); let E = s; s && Gr(s) !== "Function" && (E = () => s); let $ = u; return ( u && Gr(u) !== "Function" && ($ = () => u), C === "Object" || C === "Array" ? h.createElement( "div", { className: "rejt-tree" }, h.createElement(Al, { data: e, name: t || "root", deep: -1, isCollapsed: r ?? (() => !1), onUpdate: this.onUpdate, onDeltaUpdate: n ?? (() => {}), readOnly: w, getStyle: a ?? (() => ({})), addButtonElement: i, cancelButtonElement: l, inputElementGenerator: E, textareaElementGenerator: $, minusMenuElement: d, plusMenuElement: p, handleRemove: this.removeRoot, beforeRemoveAction: c, beforeAddAction: f, beforeUpdateAction: g, logger: y ?? {}, onSubmitValueParser: x ?? ((A) => A), }), ) : v ); } }; r2.defaultProps = { rootName: "root", isCollapsed: (e, t) => t !== -1, getStyle: (e, t, r, n, o) => { switch (o) { case "Object": case "Error": return P8; case "Array": return I8; default: return L8; } }, readOnly: () => !1, onFullyUpdate: () => {}, onDeltaUpdate: () => {}, beforeRemoveAction: () => Promise.resolve(), beforeAddAction: () => Promise.resolve(), beforeUpdateAction: () => Promise.resolve(), logger: { error: () => {} }, onSubmitValueParser: (e, t, r, n, o) => R8(o), inputElement: () => h.createElement("input", null), textareaElement: () => h.createElement("textarea", null), fallback: null, }; var { window: B8 } = globalThis, N8 = T.div(({ theme: e }) => ({ position: "relative", display: "flex", '&[aria-readonly="true"]': { opacity: 0.5 }, ".rejt-tree": { marginLeft: "1rem", fontSize: "13px", listStyleType: "none", }, ".rejt-value-node:hover": { "& > button": { opacity: 1 } }, ".rejt-add-form": { marginLeft: 10 }, ".rejt-add-value-node": { display: "inline-flex", alignItems: "center" }, ".rejt-name": { lineHeight: "22px" }, ".rejt-not-collapsed-delimiter": { lineHeight: "22px" }, ".rejt-value": { display: "inline-block", border: "1px solid transparent", borderRadius: 4, margin: "1px 0", padding: "0 4px", cursor: "text", color: e.color.defaultText, }, ".rejt-value-node:hover > .rejt-value": { background: e.color.lighter, borderColor: e.appBorderColor, }, })), qm = T.button(({ theme: e, primary: t }) => ({ border: 0, height: 20, margin: 1, borderRadius: 4, background: t ? e.color.secondary : "transparent", color: t ? e.color.lightest : e.color.dark, fontWeight: t ? "bold" : "normal", cursor: "pointer", })), Gm = T.button(({ theme: e }) => ({ background: "none", border: 0, display: "inline-flex", verticalAlign: "middle", padding: 3, marginLeft: 5, color: e.textMutedColor, opacity: 0, transition: "opacity 0.2s", cursor: "pointer", position: "relative", svg: { width: 9, height: 9 }, ":disabled": { cursor: "not-allowed" }, ":hover, :focus-visible": { opacity: 1 }, "&:hover:not(:disabled), &:focus-visible:not(:disabled)": { "&.rejt-plus-menu": { color: e.color.ancillary }, "&.rejt-minus-menu": { color: e.color.negative }, }, })), Ym = T.input(({ theme: e, placeholder: t }) => ({ outline: 0, margin: t ? 1 : "1px 0", padding: "3px 4px", color: e.color.defaultText, background: e.background.app, border: `1px solid ${e.appBorderColor}`, borderRadius: 4, lineHeight: "14px", width: t === "Key" ? 80 : 120, "&:focus": { border: `1px solid ${e.color.secondary}` }, })), j8 = T($r)(({ theme: e }) => ({ position: "absolute", zIndex: 2, top: 2, right: 2, height: 21, padding: "0 3px", background: e.background.bar, border: `1px solid ${e.appBorderColor}`, borderRadius: 3, color: e.textMutedColor, fontSize: "9px", fontWeight: "bold", textDecoration: "none", span: { marginLeft: 3, marginTop: 1 }, })), M8 = T(uo.Textarea)(({ theme: e }) => ({ flex: 1, padding: "7px 6px", fontFamily: e.typography.fonts.mono, fontSize: "12px", lineHeight: "18px", "&::placeholder": { fontFamily: e.typography.fonts.base, fontSize: "13px" }, "&:placeholder-shown": { padding: "7px 10px" }, })), z8 = { bubbles: !0, cancelable: !0, key: "Enter", code: "Enter", keyCode: 13, }, H8 = (e) => { e.currentTarget.dispatchEvent(new B8.KeyboardEvent("keydown", z8)); }, U8 = (e) => { e.currentTarget.select(); }, W8 = (e) => () => ({ name: { color: e.color.secondary }, collapsed: { color: e.color.dark }, ul: { listStyle: "none", margin: "0 0 0 1rem", padding: 0 }, li: { outline: 0 }, }), Km = ({ name: e, value: t, onChange: r, argType: n }) => { let o = Mb(), a = b.useMemo(() => t && U3(t), [t]), i = a != null, [l, s] = b.useState(!i), [u, d] = b.useState(null), p = !!n?.table?.readonly, c = b.useCallback( (w) => { try { (w && r(JSON.parse(w)), d(null)); } catch (E) { d(E); } }, [r], ), [f, g] = b.useState(!1), y = b.useCallback(() => { (r({}), g(!0)); }, [g]), x = b.useRef(null); if ( (b.useEffect(() => { f && x.current && x.current.select(); }, [f]), !i) ) return h.createElement( _r, { disabled: p, id: Vi(e), onClick: y }, "Set object", ); let v = h.createElement(M8, { ref: x, id: Ft(e), name: e, defaultValue: t === null ? "" : JSON.stringify(t, null, 2), onBlur: (w) => c(w.target.value), placeholder: "Edit JSON string...", autoFocus: f, valid: u ? "error" : void 0, readOnly: p, }), C = Array.isArray(t) || (typeof t == "object" && t?.constructor === Object); return h.createElement( N8, { "aria-readonly": p }, C && h.createElement( j8, { role: "switch", "aria-checked": l, "aria-label": `Edit the ${e} properties in text format`, onClick: (w) => { (w.preventDefault(), s((E) => !E)); }, }, l ? h.createElement(KT, null) : h.createElement(YT, null), h.createElement("span", null, "RAW"), ), l ? v : h.createElement(r2, { readOnly: p || !C, isCollapsed: C ? void 0 : () => !0, data: a, rootName: e, onFullyUpdate: r, getStyle: W8(o), cancelButtonElement: h.createElement( qm, { type: "button" }, "Cancel", ), addButtonElement: h.createElement( qm, { type: "submit", primary: !0 }, "Save", ), plusMenuElement: h.createElement( Gm, { type: "button" }, h.createElement(XT, null), ), minusMenuElement: h.createElement( Gm, { type: "button" }, h.createElement(ZT, null), ), inputElement: (w, E, $, A) => A ? h.createElement(Ym, { onFocus: U8, onBlur: H8 }) : h.createElement(Ym, null), fallback: v, }), ); }, V8 = T.input(({ theme: e, min: t, max: r, value: n, disabled: o }) => ({ "&": { width: "100%", backgroundColor: "transparent", appearance: "none" }, "&::-webkit-slider-runnable-track": { background: e.base === "light" ? `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} 100%)` : `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} 100%)`, boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, borderRadius: 6, width: "100%", height: 6, cursor: o ? "not-allowed" : "pointer", }, "&::-webkit-slider-thumb": { marginTop: "-6px", width: 16, height: 16, border: `1px solid ${jt(e.appBorderColor, 0.2)}`, borderRadius: "50px", boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`, cursor: o ? "not-allowed" : "grab", appearance: "none", background: `${e.input.background}`, transition: "all 150ms ease-out", "&:hover": { background: `${Bt(0.05, e.input.background)}`, transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)", transition: "all 50ms ease-out", }, "&:active": { background: `${e.input.background}`, transform: "scale3d(1, 1, 1) translateY(0px)", cursor: o ? "not-allowed" : "grab", }, }, "&:focus": { outline: "none", "&::-webkit-slider-runnable-track": { borderColor: jt(e.color.secondary, 0.4), }, "&::-webkit-slider-thumb": { borderColor: e.color.secondary, boxShadow: `0 0px 5px 0px ${e.color.secondary}`, }, }, "&::-moz-range-track": { background: e.base === "light" ? `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} 100%)` : `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} 100%)`, boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, borderRadius: 6, width: "100%", height: 6, cursor: o ? "not-allowed" : "pointer", outline: "none", }, "&::-moz-range-thumb": { width: 16, height: 16, border: `1px solid ${jt(e.appBorderColor, 0.2)}`, borderRadius: "50px", boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`, cursor: o ? "not-allowed" : "grap", background: `${e.input.background}`, transition: "all 150ms ease-out", "&:hover": { background: `${Bt(0.05, e.input.background)}`, transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)", transition: "all 50ms ease-out", }, "&:active": { background: `${e.input.background}`, transform: "scale3d(1, 1, 1) translateY(0px)", cursor: "grabbing", }, }, "&::-ms-track": { background: e.base === "light" ? `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${Bt(0.02, e.input.background)} 100%)` : `linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, ${zr(0.02, e.input.background)} 100%)`, boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, color: "transparent", width: "100%", height: "6px", cursor: "pointer", }, "&::-ms-fill-lower": { borderRadius: 6 }, "&::-ms-fill-upper": { borderRadius: 6 }, "&::-ms-thumb": { width: 16, height: 16, background: `${e.input.background}`, border: `1px solid ${jt(e.appBorderColor, 0.2)}`, borderRadius: 50, cursor: "grab", marginTop: 0, }, "@supports (-ms-ime-align:auto)": { "input[type=range]": { margin: "0" } }, })), n2 = T.span({ paddingLeft: 5, paddingRight: 5, fontSize: 12, whiteSpace: "nowrap", fontFeatureSettings: "tnum", fontVariantNumeric: "tabular-nums", "[aria-readonly=true] &": { opacity: 0.5 }, }), q8 = T(n2)(({ numberOFDecimalsPlaces: e, max: t }) => ({ width: `${e + t.toString().length * 2 + 3}ch`, textAlign: "right", flexShrink: 0, })), G8 = T.div({ display: "flex", alignItems: "center", width: "100%" }); function Y8(e) { let t = e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); return t ? Math.max(0, (t[1] ? t[1].length : 0) - (t[2] ? +t[2] : 0)) : 0; } var K8 = ({ name: e, value: t, onChange: r, min: n = 0, max: o = 100, step: a = 1, onBlur: i, onFocus: l, argType: s, }) => { let u = (f) => { r(o8(f.target.value)); }, d = t !== void 0, p = b.useMemo(() => Y8(a), [a]), c = !!s?.table?.readonly; return h.createElement( G8, { "aria-readonly": c }, h.createElement(n2, null, n), h.createElement(V8, { id: Ft(e), type: "range", disabled: c, onChange: u, name: e, min: n, max: o, step: a, onFocus: l, onBlur: i, value: t ?? n, }), h.createElement( q8, { numberOFDecimalsPlaces: p, max: o }, d ? t.toFixed(p) : "--", " / ", o, ), ); }, X8 = T.label({ display: "flex" }), Z8 = T.div(({ isMaxed: e }) => ({ marginLeft: "0.75rem", paddingTop: "0.35rem", color: e ? "red" : void 0, })), J8 = ({ name: e, value: t, onChange: r, onFocus: n, onBlur: o, maxLength: a, argType: i, }) => { let l = (f) => { r(f.target.value); }, s = !!i?.table?.readonly, [u, d] = b.useState(!1), p = b.useCallback(() => { (r(""), d(!0)); }, [d]); if (t === void 0) return h.createElement( _r, { variant: "outline", size: "medium", disabled: s, id: Vi(e), onClick: p, }, "Set string", ); let c = typeof t == "string"; return h.createElement( X8, null, h.createElement(uo.Textarea, { id: Ft(e), maxLength: a, onChange: l, disabled: s, size: "flex", placeholder: "Edit string...", autoFocus: u, valid: c ? void 0 : "error", name: e, value: c ? t : "", onFocus: n, onBlur: o, }), a && h.createElement( Z8, { isMaxed: t?.length === a }, t?.length ?? 0, " / ", a, ), ); }, Q8 = T(uo.Input)({ padding: 10 }); function eI(e) { e.forEach((t) => { t.startsWith("blob:") && URL.revokeObjectURL(t); }); } var tI = ({ onChange: e, name: t, accept: r = "image/*", value: n, argType: o, }) => { let a = b.useRef(null), i = o?.control?.readOnly; function l(s) { if (!s.target.files) return; let u = Array.from(s.target.files).map((d) => URL.createObjectURL(d)); (e(u), eI(n || [])); } return ( b.useEffect(() => { n == null && a.current && (a.current.value = ""); }, [n, t]), h.createElement(Q8, { ref: a, id: Ft(t), type: "file", name: t, multiple: !0, disabled: i, onChange: l, accept: r, size: "flex", }) ); }, rI = b.lazy(() => cc( () => import("./Color-AVL7NMMY-Doxq8aw5.js"), __vite__mapDeps([0, 1, 2, 3, 4, 5]), ), ), nI = (e) => h.createElement( b.Suspense, { fallback: h.createElement("div", null) }, h.createElement(rI, { ...e }), ), oI = { array: Km, object: Km, boolean: XP, color: nI, date: r8, number: i8, check: yn, "inline-check": yn, radio: yn, "inline-radio": yn, select: yn, "multi-select": yn, range: K8, text: J8, file: tI, }, Xm = () => h.createElement(h.Fragment, null, "-"), aI = ({ row: e, arg: t, updateArgs: r, isHovered: n }) => { let { key: o, control: a } = e, [i, l] = b.useState(!1), [s, u] = b.useState({ value: t }); b.useEffect(() => { i || u({ value: t }); }, [i, t]); let d = b.useCallback((y) => (u({ value: y }), r({ [o]: y }), y), [r, o]), p = b.useCallback(() => l(!1), []), c = b.useCallback(() => l(!0), []); if (!a || a.disable) { let y = a?.disable !== !0 && e?.type?.name !== "function"; return n && y ? h.createElement( Jn, { href: "https://storybook.js.org/docs/essentials/controls", target: "_blank", withArrow: !0, }, "Setup controls", ) : h.createElement(Xm, null); } let f = { name: o, argType: e, value: s.value, onChange: d, onBlur: p, onFocus: c, }, g = oI[a.type] || Xm; return h.createElement(g, { ...f, ...a, controlType: a.type }); }, iI = T.table(({ theme: e }) => ({ "&&": { borderCollapse: "collapse", borderSpacing: 0, border: "none", tr: { border: "none !important", background: "none" }, "td, th": { padding: 0, border: "none", width: "auto!important" }, marginTop: 0, marginBottom: 0, "th:first-of-type, td:first-of-type": { paddingLeft: 0 }, "th:last-of-type, td:last-of-type": { paddingRight: 0 }, td: { paddingTop: 0, paddingBottom: 4, "&:not(:first-of-type)": { paddingLeft: 10, paddingRight: 0 }, }, tbody: { boxShadow: "none", border: "none" }, code: cr({ theme: e }), div: { span: { fontWeight: "bold" } }, "& code": { margin: 0, display: "inline-block", fontSize: e.typography.size.s1, }, }, })), lI = ({ tags: e }) => { let t = (e.params || []).filter((a) => a.description), r = t.length !== 0, n = e.deprecated != null, o = e.returns != null && e.returns.description != null; return !r && !o && !n ? null : h.createElement( h.Fragment, null, h.createElement( iI, null, h.createElement( "tbody", null, n && h.createElement( "tr", { key: "deprecated" }, h.createElement( "td", { colSpan: 2 }, h.createElement("strong", null, "Deprecated"), ": ", e.deprecated?.toString(), ), ), r && t.map((a) => h.createElement( "tr", { key: a.name }, h.createElement( "td", null, h.createElement("code", null, a.name), ), h.createElement("td", null, a.description), ), ), o && h.createElement( "tr", { key: "returns" }, h.createElement( "td", null, h.createElement("code", null, "Returns"), ), h.createElement("td", null, e.returns?.description), ), ), ), ); }, sI = lD(sR()), ic = 8, Zm = T.div(({ isExpanded: e }) => ({ display: "flex", flexDirection: e ? "column" : "row", flexWrap: "wrap", alignItems: "flex-start", marginBottom: "-4px", minWidth: 100, })), uI = T.span(cr, ({ theme: e, simple: t = !1 }) => ({ flex: "0 0 auto", fontFamily: e.typography.fonts.mono, fontSize: e.typography.size.s1, wordBreak: "break-word", whiteSpace: "normal", maxWidth: "100%", margin: 0, marginRight: "4px", marginBottom: "4px", paddingTop: "2px", paddingBottom: "2px", lineHeight: "13px", ...(t && { background: "transparent", border: "0 none", paddingLeft: 0 }), })), cI = T.button(({ theme: e }) => ({ fontFamily: e.typography.fonts.mono, color: e.color.secondary, marginBottom: "4px", background: "none", border: "none", })), dI = T.div(cr, ({ theme: e }) => ({ fontFamily: e.typography.fonts.mono, color: e.color.secondary, fontSize: e.typography.size.s1, margin: 0, whiteSpace: "nowrap", display: "flex", alignItems: "center", })), pI = T.div(({ theme: e, width: t }) => ({ width: t, minWidth: 200, maxWidth: 800, padding: 15, fontFamily: e.typography.fonts.mono, fontSize: e.typography.size.s1, boxSizing: "content-box", "& code": { padding: "0 !important" }, })), fI = T(tR)({ marginLeft: 4 }), gI = T(fS)({ marginLeft: 4 }), mI = () => h.createElement("span", null, "-"), o2 = ({ text: e, simple: t }) => h.createElement(uI, { simple: t }, e), hI = (0, sI.default)(1e3)((e) => { let t = e.split(/\r?\n/); return `${Math.max(...t.map((r) => r.length))}ch`; }), yI = (e) => { if (!e) return [e]; let t = e.split("|").map((r) => r.trim()); return V3(t); }, Jm = (e, t = !0) => { let r = e; return ( t || (r = e.slice(0, ic)), r.map((n) => h.createElement(o2, { key: n, text: n === "" ? '""' : n })) ); }, bI = ({ value: e, initialExpandedArgs: t }) => { let { summary: r, detail: n } = e, [o, a] = b.useState(!1), [i, l] = b.useState(t || !1); if (r == null) return null; let s = typeof r.toString == "function" ? r.toString() : r; if (n == null) { if (/[(){}[\]<>]/.test(s)) return h.createElement(o2, { text: s }); let u = yI(s), d = u.length; return d > ic ? h.createElement( Zm, { isExpanded: i }, Jm(u, i), h.createElement( cI, { onClick: () => l(!i) }, i ? "Show less..." : `Show ${d - ic} more...`, ), ) : h.createElement(Zm, null, Jm(u)); } return h.createElement( Qw, { closeOnOutsideClick: !0, placement: "bottom", visible: o, onVisibleChange: (u) => { a(u); }, tooltip: h.createElement( pI, { width: hI(n) }, h.createElement(ml, { language: "jsx", format: !1 }, n), ), }, h.createElement( dI, { className: "sbdocs-expandable" }, h.createElement("span", null, s), o ? h.createElement(fI, null) : h.createElement(gI, null), ), ); }, Ds = ({ value: e, initialExpandedArgs: t }) => e == null ? h.createElement(mI, null) : h.createElement(bI, { value: e, initialExpandedArgs: t }), vI = T.span({ fontWeight: "bold" }), xI = T.span(({ theme: e }) => ({ color: e.color.negative, fontFamily: e.typography.fonts.mono, cursor: "help", })), EI = T.div(({ theme: e }) => ({ "&&": { p: { margin: "0 0 10px 0" }, a: { color: e.color.secondary } }, code: { ...cr({ theme: e }), fontSize: 12, fontFamily: e.typography.fonts.mono, }, "& code": { margin: 0, display: "inline-block" }, "& pre > code": { whiteSpace: "pre-wrap" }, })), wI = T.div(({ theme: e, hasDescription: t }) => ({ color: e.base === "light" ? ye(0.1, e.color.defaultText) : ye(0.2, e.color.defaultText), marginTop: t ? 4 : 0, })), SI = T.div(({ theme: e, hasDescription: t }) => ({ color: e.base === "light" ? ye(0.1, e.color.defaultText) : ye(0.2, e.color.defaultText), marginTop: t ? 12 : 0, marginBottom: 12, })), CI = T.td(({ expandable: e }) => ({ paddingLeft: e ? "40px !important" : "20px !important", })), $I = (e) => e && { summary: typeof e == "string" ? e : e.name }, _a = (e) => { let [t, r] = b.useState(!1), { row: n, updateArgs: o, compact: a, expandable: i, initialExpandedArgs: l, } = e, { name: s, description: u } = n, d = n.table || {}, p = d.type || $I(n.type), c = d.defaultValue || n.defaultValue, f = n.type?.required, g = u != null && u !== ""; return h.createElement( "tr", { onMouseEnter: () => r(!0), onMouseLeave: () => r(!1) }, h.createElement( CI, { expandable: i ?? !1 }, h.createElement(vI, null, s), f ? h.createElement(xI, { title: "Required" }, "*") : null, ), a ? null : h.createElement( "td", null, g && h.createElement(EI, null, h.createElement(WS, null, u)), d.jsDocTags != null ? h.createElement( h.Fragment, null, h.createElement( SI, { hasDescription: g }, h.createElement(Ds, { value: p, initialExpandedArgs: l }), ), h.createElement(lI, { tags: d.jsDocTags }), ) : h.createElement( wI, { hasDescription: g }, h.createElement(Ds, { value: p, initialExpandedArgs: l }), ), ), a ? null : h.createElement( "td", null, h.createElement(Ds, { value: c, initialExpandedArgs: l }), ), o ? h.createElement( "td", null, h.createElement(aI, { ...e, isHovered: t }), ) : null, ); }, AI = T.div(({ inAddonPanel: e, theme: t }) => ({ height: e ? "100%" : "auto", display: "flex", border: e ? "none" : `1px solid ${t.appBorderColor}`, borderRadius: e ? 0 : t.appBorderRadius, padding: e ? 0 : 40, alignItems: "center", justifyContent: "center", flexDirection: "column", gap: 15, background: t.background.content, })), DI = T.div(({ theme: e }) => ({ display: "flex", fontSize: e.typography.size.s2 - 1, gap: 25, })), kI = ({ inAddonPanel: e }) => { let [t, r] = b.useState(!0); return ( b.useEffect(() => { let n = setTimeout(() => { r(!1); }, 100); return () => clearTimeout(n); }, []), t ? null : h.createElement( AI, { inAddonPanel: e }, h.createElement(Sl, { title: e ? "Interactive story playground" : "Args table with interactive controls couldn't be auto-generated", description: h.createElement( h.Fragment, null, "Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.", ), footer: h.createElement( DI, null, e && h.createElement( h.Fragment, null, h.createElement( Jn, { href: "https://storybook.js.org/docs/essentials/controls", target: "_blank", withArrow: !0, }, h.createElement(Xu, null), " Read docs", ), ), !e && h.createElement( Jn, { href: "https://storybook.js.org/docs/essentials/controls", target: "_blank", withArrow: !0, }, h.createElement(Xu, null), " Learn how to set that up", ), ), }), ) ); }, OI = T(QT)(({ theme: e }) => ({ marginRight: 8, marginLeft: -10, marginTop: -2, height: 12, width: 12, color: e.base === "light" ? ye(0.25, e.color.defaultText) : ye(0.3, e.color.defaultText), border: "none", display: "inline-block", })), FI = T(eR)(({ theme: e }) => ({ marginRight: 8, marginLeft: -10, marginTop: -2, height: 12, width: 12, color: e.base === "light" ? ye(0.25, e.color.defaultText) : ye(0.3, e.color.defaultText), border: "none", display: "inline-block", })), _I = T.span(({ theme: e }) => ({ display: "flex", lineHeight: "20px", alignItems: "center", })), TI = T.td(({ theme: e }) => ({ position: "relative", letterSpacing: "0.35em", textTransform: "uppercase", fontWeight: e.typography.weight.bold, fontSize: e.typography.size.s1 - 1, color: e.base === "light" ? ye(0.4, e.color.defaultText) : ye(0.6, e.color.defaultText), background: `${e.background.app} !important`, "& ~ td": { background: `${e.background.app} !important` }, })), RI = T.td(({ theme: e }) => ({ position: "relative", fontWeight: e.typography.weight.bold, fontSize: e.typography.size.s2 - 1, background: e.background.app, })), PI = T.td({ position: "relative" }), II = T.tr(({ theme: e }) => ({ "&:hover > td": { backgroundColor: `${zr(0.005, e.background.app)} !important`, boxShadow: `${e.color.mediumlight} 0 - 1px 0 0 inset`, cursor: "row-resize", }, })), Qm = T.button({ background: "none", border: "none", padding: "0", font: "inherit", position: "absolute", top: 0, bottom: 0, left: 0, right: 0, height: "100%", width: "100%", color: "transparent", cursor: "row-resize !important", }), ks = ({ level: e = "section", label: t, children: r, initialExpanded: n = !0, colSpan: o = 3, }) => { let [a, i] = b.useState(n), l = e === "subsection" ? RI : TI, s = r?.length || 0, u = e === "subsection" ? `${s} item${s !== 1 ? "s" : ""}` : "", d = `${a ? "Hide" : "Show"} ${e === "subsection" ? s : t} item${s !== 1 ? "s" : ""}`; return h.createElement( h.Fragment, null, h.createElement( II, { title: d }, h.createElement( l, { colSpan: 1 }, h.createElement(Qm, { onClick: (p) => i(!a), tabIndex: 0 }, d), h.createElement( _I, null, a ? h.createElement(OI, null) : h.createElement(FI, null), t, ), ), h.createElement( PI, { colSpan: o - 1 }, h.createElement( Qm, { onClick: (p) => i(!a), tabIndex: -1, style: { outline: "none" } }, d, ), a ? null : u, ), ), a ? r : null, ); }, LI = T.div(({ theme: e }) => ({ width: "100%", borderSpacing: 0, color: e.color.defaultText, })), Ta = T.div(({ theme: e }) => ({ display: "flex", borderBottom: `1px solid ${e.appBorderColor}`, "&:last-child": { borderBottom: 0 }, })), ze = T.div(({ position: e, theme: t }) => { let r = { display: "flex", flexDirection: "column", gap: 5, padding: "10px 15px", alignItems: "flex-start", }; switch (e) { case "first": return { ...r, width: "25%", paddingLeft: 20 }; case "second": return { ...r, width: "35%" }; case "third": return { ...r, width: "15%" }; case "last": return { ...r, width: "25%", paddingRight: 20 }; } }), Fe = T.div(({ theme: e, width: t, height: r }) => ({ animation: `${e.animation.glow} 1.5s ease-in-out infinite`, background: e.appBorderColor, width: t || "100%", height: r || 16, borderRadius: 3, })), BI = () => h.createElement( LI, null, h.createElement( Ta, null, h.createElement( ze, { position: "first" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "second" }, h.createElement(Fe, { width: "30%" }), ), h.createElement( ze, { position: "third" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "last" }, h.createElement(Fe, { width: "60%" }), ), ), h.createElement( Ta, null, h.createElement( ze, { position: "first" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "second" }, h.createElement(Fe, { width: "80%" }), h.createElement(Fe, { width: "30%" }), ), h.createElement( ze, { position: "third" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "last" }, h.createElement(Fe, { width: "60%" }), ), ), h.createElement( Ta, null, h.createElement( ze, { position: "first" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "second" }, h.createElement(Fe, { width: "80%" }), h.createElement(Fe, { width: "30%" }), ), h.createElement( ze, { position: "third" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "last" }, h.createElement(Fe, { width: "60%" }), ), ), h.createElement( Ta, null, h.createElement( ze, { position: "first" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "second" }, h.createElement(Fe, { width: "80%" }), h.createElement(Fe, { width: "30%" }), ), h.createElement( ze, { position: "third" }, h.createElement(Fe, { width: "60%" }), ), h.createElement( ze, { position: "last" }, h.createElement(Fe, { width: "60%" }), ), ), ), NI = T.table(({ theme: e, compact: t, inAddonPanel: r }) => ({ "&&": { borderSpacing: 0, color: e.color.defaultText, "td, th": { padding: 0, border: "none", verticalAlign: "top", textOverflow: "ellipsis", }, fontSize: e.typography.size.s2 - 1, lineHeight: "20px", textAlign: "left", width: "100%", marginTop: r ? 0 : 25, marginBottom: r ? 0 : 40, "thead th:first-of-type, td:first-of-type": { width: "25%" }, "th:first-of-type, td:first-of-type": { paddingLeft: 20 }, "th:nth-of-type(2), td:nth-of-type(2)": { ...(t ? null : { width: "35%" }), }, "td:nth-of-type(3)": { ...(t ? null : { width: "15%" }) }, "th:last-of-type, td:last-of-type": { paddingRight: 20, ...(t ? null : { width: "25%" }), }, th: { color: e.base === "light" ? ye(0.25, e.color.defaultText) : ye(0.45, e.color.defaultText), paddingTop: 10, paddingBottom: 10, paddingLeft: 15, paddingRight: 15, }, td: { paddingTop: "10px", paddingBottom: "10px", "&:not(:first-of-type)": { paddingLeft: 15, paddingRight: 15 }, "&:last-of-type": { paddingRight: 20 }, }, marginLeft: r ? 0 : 1, marginRight: r ? 0 : 1, tbody: { ...(r ? null : { filter: e.base === "light" ? "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))" : "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))", }), "> tr > *": { background: e.background.content, borderTop: `1px solid ${e.appBorderColor}`, }, ...(r ? null : { "> tr:first-of-type > *": { borderBlockStart: `1px solid ${e.appBorderColor}`, }, "> tr:last-of-type > *": { borderBlockEnd: `1px solid ${e.appBorderColor}`, }, "> tr > *:first-of-type": { borderInlineStart: `1px solid ${e.appBorderColor}`, }, "> tr > *:last-of-type": { borderInlineEnd: `1px solid ${e.appBorderColor}`, }, "> tr:first-of-type > td:first-of-type": { borderTopLeftRadius: e.appBorderRadius, }, "> tr:first-of-type > td:last-of-type": { borderTopRightRadius: e.appBorderRadius, }, "> tr:last-of-type > td:first-of-type": { borderBottomLeftRadius: e.appBorderRadius, }, "> tr:last-of-type > td:last-of-type": { borderBottomRightRadius: e.appBorderRadius, }, }), }, }, })), jI = T($r)(({ theme: e }) => ({ margin: "-4px -12px -4px 0" })), MI = T.span({ display: "flex", justifyContent: "space-between" }), zI = { alpha: (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), requiredFirst: (e, t) => +!!t.type?.required - +!!e.type?.required || (e.name ?? "").localeCompare(t.name ?? ""), none: null, }, HI = (e, t) => { let r = { ungrouped: [], ungroupedSubsections: {}, sections: {} }; if (!e) return r; Object.entries(e).forEach(([a, i]) => { let { category: l, subcategory: s } = i?.table || {}; if (l) { let u = r.sections[l] || { ungrouped: [], subsections: {} }; if (!s) u.ungrouped.push({ key: a, ...i }); else { let d = u.subsections[s] || []; (d.push({ key: a, ...i }), (u.subsections[s] = d)); } r.sections[l] = u; } else if (s) { let u = r.ungroupedSubsections[s] || []; (u.push({ key: a, ...i }), (r.ungroupedSubsections[s] = u)); } else r.ungrouped.push({ key: a, ...i }); }); let n = zI[t], o = (a) => n ? Object.keys(a).reduce((i, l) => ({ ...i, [l]: a[l].sort(n) }), {}) : a; return { ungrouped: n ? r.ungrouped.sort(n) : r.ungrouped, ungroupedSubsections: o(r.ungroupedSubsections), sections: Object.keys(r.sections).reduce( (a, i) => ({ ...a, [i]: { ungrouped: n ? r.sections[i].ungrouped.sort(n) : r.sections[i].ungrouped, subsections: o(r.sections[i].subsections), }, }), {}, ), }; }, UI = (e, t, r) => { try { return ey(e, t, r); } catch (n) { return (aR.warn(n.message), !1); } }, lc = (e) => { let { updateArgs: t, resetArgs: r, compact: n, inAddonPanel: o, initialExpandedArgs: a, sort: i = "none", isLoading: l, } = e; if ("error" in e) { let { error: C } = e; return h.createElement( xS, null, C, " ", h.createElement( Jn, { href: "http://storybook.js.org/docs/", target: "_blank", withArrow: !0, }, h.createElement(Xu, null), " Read the docs", ), ); } if (l) return h.createElement(BI, null); let { rows: s, args: u, globals: d, } = "rows" in e ? e : { rows: void 0, args: void 0, globals: void 0 }, p = HI( eD(s || {}, (C) => !C?.table?.disable && UI(C, u || {}, d || {})), i, ), c = p.ungrouped.length === 0, f = Object.entries(p.sections).length === 0, g = Object.entries(p.ungroupedSubsections).length === 0; if (c && f && g) return h.createElement(kI, { inAddonPanel: o }); let y = 1; (t && (y += 1), n || (y += 2)); let x = Object.keys(p.sections).length > 0, v = { updateArgs: t, compact: n, inAddonPanel: o, initialExpandedArgs: a, }; return h.createElement( Md, null, h.createElement( NI, { compact: n, inAddonPanel: o, className: "docblock-argstable sb-unstyled", }, h.createElement( "thead", { className: "docblock-argstable-head" }, h.createElement( "tr", null, h.createElement("th", null, h.createElement("span", null, "Name")), n ? null : h.createElement( "th", null, h.createElement("span", null, "Description"), ), n ? null : h.createElement( "th", null, h.createElement("span", null, "Default"), ), t ? h.createElement( "th", null, h.createElement( MI, null, "Control", " ", !l && r && h.createElement( jI, { onClick: () => r(), title: "Reset controls" }, h.createElement(rR, { "aria-hidden": !0 }), ), ), ) : null, ), ), h.createElement( "tbody", { className: "docblock-argstable-body" }, p.ungrouped.map((C) => h.createElement(_a, { key: C.key, row: C, arg: u && u[C.key], ...v, }), ), Object.entries(p.ungroupedSubsections).map(([C, w]) => h.createElement( ks, { key: C, label: C, level: "subsection", colSpan: y }, w.map((E) => h.createElement(_a, { key: E.key, row: E, arg: u && u[E.key], expandable: x, ...v, }), ), ), ), Object.entries(p.sections).map(([C, w]) => h.createElement( ks, { key: C, label: C, level: "section", colSpan: y }, w.ungrouped.map((E) => h.createElement(_a, { key: E.key, row: E, arg: u && u[E.key], ...v, }), ), Object.entries(w.subsections).map(([E, $]) => h.createElement( ks, { key: E, label: E, level: "subsection", colSpan: y }, $.map((A) => h.createElement(_a, { key: A.key, row: A, arg: u && u[A.key], expandable: x, ...v, }), ), ), ), ), ), ), ), ); }, WI = (e) => `anchor--${e}`, VI = ({ storyId: e, children: t }) => h.createElement("div", { id: WI(e), className: "sb-anchor" }, t); globalThis && globalThis.__DOCS_CONTEXT__ === void 0 && ((globalThis.__DOCS_CONTEXT__ = b.createContext(null)), (globalThis.__DOCS_CONTEXT__.displayName = "DocsContext")); var Vt = globalThis ? globalThis.__DOCS_CONTEXT__ : b.createContext(null), pn = (e, t) => b.useContext(Vt).resolveOf(e, t), qI = (e) => e .split("-") .map((t) => t.charAt(0).toUpperCase() + t.slice(1)) .join(""), GI = (e) => { if (e) return typeof e == "string" ? e.includes("-") ? qI(e) : e : e.__docgenInfo && e.__docgenInfo.displayName ? e.__docgenInfo.displayName : e.name; }; function YI(e, t = "start") { e.scrollIntoView({ behavior: "smooth", block: t, inline: "nearest" }); } var KI = Object.create, a2 = Object.defineProperty, XI = Object.getOwnPropertyDescriptor, i2 = Object.getOwnPropertyNames, ZI = Object.getPrototypeOf, JI = Object.prototype.hasOwnProperty, oe = (e, t) => function () { return ( t || (0, e[i2(e)[0]])((t = { exports: {} }).exports, t), t.exports ); }, QI = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let o of i2(t)) !JI.call(e, o) && o !== r && a2(e, o, { get: () => t[o], enumerable: !(n = XI(t, o)) || n.enumerable, }); return e; }, yp = (e, t, r) => ( (r = e != null ? KI(ZI(e)) : {}), QI( !e || !e.__esModule ? a2(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), e7 = [ "bubbles", "cancelBubble", "cancelable", "composed", "currentTarget", "defaultPrevented", "eventPhase", "isTrusted", "returnValue", "srcElement", "target", "timeStamp", "type", ], t7 = ["detail"]; function r7(e) { let t = e7 .filter((r) => e[r] !== void 0) .reduce((r, n) => ((r[n] = e[n]), r), {}); if (e instanceof CustomEvent) for (let r of t7.filter((n) => e[n] !== void 0)) t[r] = e[r]; return t; } var l2 = oe({ "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"( e, t, ) { t.exports = Object; }, }), n7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) { t.exports = Error; }, }), o7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) { t.exports = EvalError; }, }), a7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) { t.exports = RangeError; }, }), i7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) { t.exports = ReferenceError; }, }), l7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"( e, t, ) { t.exports = SyntaxError; }, }), bp = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e, t) { t.exports = TypeError; }, }), s7 = oe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) { t.exports = URIError; }, }), u7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"( e, t, ) { t.exports = Math.abs; }, }), c7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"( e, t, ) { t.exports = Math.floor; }, }), d7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"( e, t, ) { t.exports = Math.max; }, }), p7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"( e, t, ) { t.exports = Math.min; }, }), f7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"( e, t, ) { t.exports = Math.pow; }, }), g7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"( e, t, ) { t.exports = Math.round; }, }), m7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"( e, t, ) { t.exports = Number.isNaN || function (r) { return r !== r; }; }, }), h7 = oe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"( e, t, ) { var r = m7(); t.exports = function (n) { return r(n) || n === 0 ? n : n < 0 ? -1 : 1; }; }, }), y7 = oe({ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) { t.exports = Object.getOwnPropertyDescriptor; }, }), vp = oe({ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) { var r = y7(); if (r) try { r([], "length"); } catch { r = null; } t.exports = r; }, }), b7 = oe({ "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"( e, t, ) { var r = Object.defineProperty || !1; if (r) try { r({}, "a", { value: 1 }); } catch { r = !1; } t.exports = r; }, }), s2 = oe({ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"( e, t, ) { t.exports = function () { if ( typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function" ) return !1; if (typeof Symbol.iterator == "symbol") return !0; var r = {}, n = Symbol("test"), o = Object(n); if ( typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(o) !== "[object Symbol]" ) return !1; var a = 42; r[n] = a; for (var i in r) return !1; if ( (typeof Object.keys == "function" && Object.keys(r).length !== 0) || (typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0) ) return !1; var l = Object.getOwnPropertySymbols(r); if ( l.length !== 1 || l[0] !== n || !Object.prototype.propertyIsEnumerable.call(r, n) ) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var s = Object.getOwnPropertyDescriptor(r, n); if (s.value !== a || s.enumerable !== !0) return !1; } return !0; }; }, }), u2 = oe({ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"( e, t, ) { var r = typeof Symbol < "u" && Symbol, n = s2(); t.exports = function () { return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n(); }; }, }), c2 = oe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"( e, t, ) { t.exports = (typeof Reflect < "u" && Reflect.getPrototypeOf) || null; }, }), d2 = oe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"( e, t, ) { var r = l2(); t.exports = r.getPrototypeOf || null; }, }), v7 = oe({ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"( e, t, ) { var r = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, o = Math.max, a = "[object Function]", i = function (u, d) { for (var p = [], c = 0; c < u.length; c += 1) p[c] = u[c]; for (var f = 0; f < d.length; f += 1) p[f + u.length] = d[f]; return p; }, l = function (u, d) { for (var p = [], c = d, f = 0; c < u.length; c += 1, f += 1) p[f] = u[c]; return p; }, s = function (u, d) { for (var p = "", c = 0; c < u.length; c += 1) ((p += u[c]), c + 1 < u.length && (p += d)); return p; }; t.exports = function (u) { var d = this; if (typeof d != "function" || n.apply(d) !== a) throw new TypeError(r + d); for ( var p = l(arguments, 1), c, f = function () { if (this instanceof c) { var C = d.apply(this, i(p, arguments)); return Object(C) === C ? C : this; } return d.apply(u, i(p, arguments)); }, g = o(0, d.length - p.length), y = [], x = 0; x < g; x++ ) y[x] = "$" + x; if ( ((c = Function( "binder", "return function (" + s(y, ",") + "){ return binder.apply(this,arguments); }", )(f)), d.prototype) ) { var v = function () {}; ((v.prototype = d.prototype), (c.prototype = new v()), (v.prototype = null)); } return c; }; }, }), Dl = oe({ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"( e, t, ) { var r = v7(); t.exports = Function.prototype.bind || r; }, }), xp = oe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"( e, t, ) { t.exports = Function.prototype.call; }, }), p2 = oe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"( e, t, ) { t.exports = Function.prototype.apply; }, }), x7 = oe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"( e, t, ) { t.exports = typeof Reflect < "u" && Reflect && Reflect.apply; }, }), E7 = oe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"( e, t, ) { var r = Dl(), n = p2(), o = xp(), a = x7(); t.exports = a || r.call(o, n); }, }), f2 = oe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"( e, t, ) { var r = Dl(), n = bp(), o = xp(), a = E7(); t.exports = function (i) { if (i.length < 1 || typeof i[0] != "function") throw new n("a function is required"); return a(r, o, i); }; }, }), w7 = oe({ "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"( e, t, ) { var r = f2(), n = vp(), o; try { o = [].__proto__ === Array.prototype; } catch (s) { if ( !s || typeof s != "object" || !("code" in s) || s.code !== "ERR_PROTO_ACCESS" ) throw s; } var a = !!o && n && n(Object.prototype, "__proto__"), i = Object, l = i.getPrototypeOf; t.exports = a && typeof a.get == "function" ? r([a.get]) : typeof l == "function" ? function (s) { return l(s == null ? s : i(s)); } : !1; }, }), S7 = oe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) { var r = c2(), n = d2(), o = w7(); t.exports = r ? function (a) { return r(a); } : n ? function (a) { if (!a || (typeof a != "object" && typeof a != "function")) throw new TypeError("getProto: not an object"); return n(a); } : o ? function (a) { return o(a); } : null; }, }), g2 = oe({ "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) { var r = Function.prototype.call, n = Object.prototype.hasOwnProperty, o = Dl(); t.exports = o.call(r, n); }, }), C7 = oe({ "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"( e, t, ) { var r, n = l2(), o = n7(), a = o7(), i = a7(), l = i7(), s = l7(), u = bp(), d = s7(), p = u7(), c = c7(), f = d7(), g = p7(), y = f7(), x = g7(), v = h7(), C = Function, w = function (ne) { try { return C('"use strict"; return (' + ne + ").constructor;")(); } catch {} }, E = vp(), $ = b7(), A = function () { throw new u(); }, S = E ? (function () { try { return (arguments.callee, A); } catch { try { return E(arguments, "callee").get; } catch { return A; } } })() : A, D = u2()(), F = S7(), k = d2(), _ = c2(), I = p2(), L = xp(), j = {}, B = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), z = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer, "%ArrayIteratorPrototype%": D && F ? F([][Symbol.iterator]()) : r, "%AsyncFromSyncIteratorPrototype%": r, "%AsyncFunction%": j, "%AsyncGenerator%": j, "%AsyncGeneratorFunction%": j, "%AsyncIteratorPrototype%": j, "%Atomics%": typeof Atomics > "u" ? r : Atomics, "%BigInt%": typeof BigInt > "u" ? r : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? r : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": o, "%eval%": eval, "%EvalError%": a, "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry, "%Function%": C, "%GeneratorFunction%": j, "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": D && F ? F(F([][Symbol.iterator]())) : r, "%JSON%": typeof JSON == "object" ? JSON : r, "%Map%": typeof Map > "u" ? r : Map, "%MapIteratorPrototype%": typeof Map > "u" || !D || !F ? r : F(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": n, "%Object.getOwnPropertyDescriptor%": E, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? r : Promise, "%Proxy%": typeof Proxy > "u" ? r : Proxy, "%RangeError%": i, "%ReferenceError%": l, "%Reflect%": typeof Reflect > "u" ? r : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? r : Set, "%SetIteratorPrototype%": typeof Set > "u" || !D || !F ? r : F(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": D && F ? F(""[Symbol.iterator]()) : r, "%Symbol%": D ? Symbol : r, "%SyntaxError%": s, "%ThrowTypeError%": S, "%TypedArray%": B, "%TypeError%": u, "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array, "%URIError%": d, "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet, "%Function.prototype.call%": L, "%Function.prototype.apply%": I, "%Object.defineProperty%": $, "%Object.getPrototypeOf%": k, "%Math.abs%": p, "%Math.floor%": c, "%Math.max%": f, "%Math.min%": g, "%Math.pow%": y, "%Math.round%": x, "%Math.sign%": v, "%Reflect.getPrototypeOf%": _, }; if (F) try { null.error; } catch (ne) { ((V = F(F(ne))), (z["%Error.prototype%"] = V)); } var V, Y = function ne(de) { var M; if (de === "%AsyncFunction%") M = w("async function () {}"); else if (de === "%GeneratorFunction%") M = w("function* () {}"); else if (de === "%AsyncGeneratorFunction%") M = w("async function* () {}"); else if (de === "%AsyncGenerator%") { var U = ne("%AsyncGeneratorFunction%"); U && (M = U.prototype); } else if (de === "%AsyncIteratorPrototype%") { var fe = ne("%AsyncGenerator%"); fe && F && (M = F(fe.prototype)); } return ((z[de] = M), M); }, W = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype", ], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype", ], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"], }, G = Dl(), J = g2(), Q = G.call(L, Array.prototype.concat), re = G.call(I, Array.prototype.splice), ie = G.call(L, String.prototype.replace), H = G.call(L, String.prototype.slice), X = G.call(L, RegExp.prototype.exec), Z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, le = /\\(\\)?/g, me = function (ne) { var de = H(ne, 0, 1), M = H(ne, -1); if (de === "%" && M !== "%") throw new s("invalid intrinsic syntax, expected closing `%`"); if (M === "%" && de !== "%") throw new s("invalid intrinsic syntax, expected opening `%`"); var U = []; return ( ie(ne, Z, function (fe, ke, be, We) { U[U.length] = be ? ie(We, le, "$1") : ke || fe; }), U ); }, Re = function (ne, de) { var M = ne, U; if ((J(W, M) && ((U = W[M]), (M = "%" + U[0] + "%")), J(z, M))) { var fe = z[M]; if ((fe === j && (fe = Y(M)), typeof fe > "u" && !de)) throw new u( "intrinsic " + ne + " exists, but is not available. Please file an issue!", ); return { alias: U, name: M, value: fe }; } throw new s("intrinsic " + ne + " does not exist!"); }; t.exports = function (ne, de) { if (typeof ne != "string" || ne.length === 0) throw new u("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof de != "boolean") throw new u('"allowMissing" argument must be a boolean'); if (X(/^%?[^%]*%?$/, ne) === null) throw new s( "`%` may not be present anywhere but at the beginning and end of the intrinsic name", ); var M = me(ne), U = M.length > 0 ? M[0] : "", fe = Re("%" + U + "%", de), ke = fe.name, be = fe.value, We = !1, pr = fe.alias; pr && ((U = pr[0]), re(M, Q([0, 1], pr))); for (var Ce = 1, nt = !0; Ce < M.length; Ce += 1) { var $e = M[Ce], ht = H($e, 0, 1), Ve = H($e, -1); if ( (ht === '"' || ht === "'" || ht === "`" || Ve === '"' || Ve === "'" || Ve === "`") && ht !== Ve ) throw new s("property names with quotes must have matching quotes"); if ( (($e === "constructor" || !nt) && (We = !0), (U += "." + $e), (ke = "%" + U + "%"), J(z, ke)) ) be = z[ke]; else if (be != null) { if (!($e in be)) { if (!de) throw new u( "base intrinsic for " + ne + " exists, but the property is not available.", ); return; } if (E && Ce + 1 >= M.length) { var yt = E(be, $e); ((nt = !!yt), nt && "get" in yt && !("originalValue" in yt.get) ? (be = yt.get) : (be = be[$e])); } else ((nt = J(be, $e)), (be = be[$e])); nt && !We && (z[ke] = be); } } return be; }; }, }), Ep = oe({ "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"( e, t, ) { var r = C7(), n = f2(), o = n([r("%String.prototype.indexOf%")]); t.exports = function (a, i) { var l = r(a, !!i); return typeof l == "function" && o(a, ".prototype.") > -1 ? n([l]) : l; }; }, }), $7 = oe({ "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"( e, t, ) { var r = s2(); t.exports = function () { return r() && !!Symbol.toStringTag; }; }, }), m2 = oe({ "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) { var r = Ep(), n = $7()(), o = g2(), a = vp(), i; n ? ((l = r("RegExp.prototype.exec")), (s = {}), (u = function () { throw s; }), (d = { toString: u, valueOf: u }), typeof Symbol.toPrimitive == "symbol" && (d[Symbol.toPrimitive] = u), (i = function (f) { if (!f || typeof f != "object") return !1; var g = a(f, "lastIndex"), y = g && o(g, "value"); if (!y) return !1; try { l(f, d); } catch (x) { return x === s; } })) : ((p = r("Object.prototype.toString")), (c = "[object RegExp]"), (i = function (f) { return !f || (typeof f != "object" && typeof f != "function") ? !1 : p(f) === c; })); var l, s, u, d, p, c; t.exports = i; }, }), A7 = oe({ "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"( e, t, ) { t.exports = n; var r = Object.prototype.toString; function n(o) { if (!o) return !1; var a = r.call(o); return ( a === "[object Function]" || (typeof o == "function" && a !== "[object RegExp]") || (typeof window < "u" && (o === window.setTimeout || o === window.alert || o === window.confirm || o === window.prompt)) ); } }, }), D7 = oe({ "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"( e, t, ) { var r = Ep(), n = m2(), o = r("RegExp.prototype.exec"), a = bp(); t.exports = function (i) { if (!n(i)) throw new a("`regex` must be a RegExp"); return function (l) { return o(i, l) !== null; }; }; }, }), k7 = oe({ "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) { var r = Ep(), n = r("Object.prototype.toString"), o = u2()(), a = D7(); o ? ((i = r("Symbol.prototype.toString")), (l = a(/^Symbol\(.*\)$/)), (s = function (u) { return typeof u.valueOf() != "symbol" ? !1 : l(i(u)); }), (t.exports = function (u) { if (typeof u == "symbol") return !0; if (!u || typeof u != "object" || n(u) !== "[object Symbol]") return !1; try { return s(u); } catch { return !1; } })) : (t.exports = function (u) { return !1; }); var i, l, s; }, }), O7 = yp(m2()), F7 = yp(A7()), _7 = yp(k7()); function T7(e) { return e != null && typeof e == "object" && Array.isArray(e) === !1; } var R7 = typeof global == "object" && global && global.Object === Object && global, P7 = R7, I7 = typeof self == "object" && self && self.Object === Object && self, L7 = P7 || I7 || Function("return this")(), wp = L7, B7 = wp.Symbol, no = B7, h2 = Object.prototype, N7 = h2.hasOwnProperty, j7 = h2.toString, Ao = no ? no.toStringTag : void 0; function M7(e) { var t = N7.call(e, Ao), r = e[Ao]; try { e[Ao] = void 0; var n = !0; } catch {} var o = j7.call(e); return (n && (t ? (e[Ao] = r) : delete e[Ao]), o); } var z7 = M7, H7 = Object.prototype, U7 = H7.toString; function W7(e) { return U7.call(e); } var V7 = W7, q7 = "[object Null]", G7 = "[object Undefined]", eh = no ? no.toStringTag : void 0; function Y7(e) { return e == null ? e === void 0 ? G7 : q7 : eh && eh in Object(e) ? z7(e) : V7(e); } var K7 = Y7, th = no ? no.prototype : void 0; th && th.toString; function X7(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } var y2 = X7, Z7 = "[object AsyncFunction]", J7 = "[object Function]", Q7 = "[object GeneratorFunction]", eL = "[object Proxy]"; function tL(e) { if (!y2(e)) return !1; var t = K7(e); return t == J7 || t == Q7 || t == Z7 || t == eL; } var rL = tL, nL = wp["__core-js_shared__"], Os = nL, rh = (function () { var e = /[^.]+$/.exec((Os && Os.keys && Os.keys.IE_PROTO) || ""); return e ? "Symbol(src)_1." + e : ""; })(); function oL(e) { return !!rh && rh in e; } var aL = oL, iL = Function.prototype, lL = iL.toString; function sL(e) { if (e != null) { try { return lL.call(e); } catch {} try { return e + ""; } catch {} } return ""; } var uL = sL, cL = /[\\^$.*+?()[\]{}|]/g, dL = /^\[object .+?Constructor\]$/, pL = Function.prototype, fL = Object.prototype, gL = pL.toString, mL = fL.hasOwnProperty, hL = RegExp( "^" + gL .call(mL) .replace(cL, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?", ) + "$", ); function yL(e) { if (!y2(e) || aL(e)) return !1; var t = rL(e) ? hL : dL; return t.test(uL(e)); } var bL = yL; function vL(e, t) { return e?.[t]; } var xL = vL; function EL(e, t) { var r = xL(e, t); return bL(r) ? r : void 0; } var b2 = EL; function wL(e, t) { return e === t || (e !== e && t !== t); } var SL = wL, CL = b2(Object, "create"), ea = CL; function $L() { ((this.__data__ = ea ? ea(null) : {}), (this.size = 0)); } var AL = $L; function DL(e) { var t = this.has(e) && delete this.__data__[e]; return ((this.size -= t ? 1 : 0), t); } var kL = DL, OL = "__lodash_hash_undefined__", FL = Object.prototype, _L = FL.hasOwnProperty; function TL(e) { var t = this.__data__; if (ea) { var r = t[e]; return r === OL ? void 0 : r; } return _L.call(t, e) ? t[e] : void 0; } var RL = TL, PL = Object.prototype, IL = PL.hasOwnProperty; function LL(e) { var t = this.__data__; return ea ? t[e] !== void 0 : IL.call(t, e); } var BL = LL, NL = "__lodash_hash_undefined__"; function jL(e, t) { var r = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), (r[e] = ea && t === void 0 ? NL : t), this ); } var ML = jL; function po(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } po.prototype.clear = AL; po.prototype.delete = kL; po.prototype.get = RL; po.prototype.has = BL; po.prototype.set = ML; var nh = po; function zL() { ((this.__data__ = []), (this.size = 0)); } var HL = zL; function UL(e, t) { for (var r = e.length; r--; ) if (SL(e[r][0], t)) return r; return -1; } var kl = UL, WL = Array.prototype, VL = WL.splice; function qL(e) { var t = this.__data__, r = kl(t, e); if (r < 0) return !1; var n = t.length - 1; return (r == n ? t.pop() : VL.call(t, r, 1), --this.size, !0); } var GL = qL; function YL(e) { var t = this.__data__, r = kl(t, e); return r < 0 ? void 0 : t[r][1]; } var KL = YL; function XL(e) { return kl(this.__data__, e) > -1; } var ZL = XL; function JL(e, t) { var r = this.__data__, n = kl(r, e); return (n < 0 ? (++this.size, r.push([e, t])) : (r[n][1] = t), this); } var QL = JL; function fo(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } fo.prototype.clear = HL; fo.prototype.delete = GL; fo.prototype.get = KL; fo.prototype.has = ZL; fo.prototype.set = QL; var eB = fo, tB = b2(wp, "Map"), rB = tB; function nB() { ((this.size = 0), (this.__data__ = { hash: new nh(), map: new (rB || eB)(), string: new nh(), })); } var oB = nB; function aB(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } var iB = aB; function lB(e, t) { var r = e.__data__; return iB(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; } var Ol = lB; function sB(e) { var t = Ol(this, e).delete(e); return ((this.size -= t ? 1 : 0), t); } var uB = sB; function cB(e) { return Ol(this, e).get(e); } var dB = cB; function pB(e) { return Ol(this, e).has(e); } var fB = pB; function gB(e, t) { var r = Ol(this, e), n = r.size; return (r.set(e, t), (this.size += r.size == n ? 0 : 1), this); } var mB = gB; function go(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } go.prototype.clear = oB; go.prototype.delete = uB; go.prototype.get = dB; go.prototype.has = fB; go.prototype.set = mB; var v2 = go, hB = "Expected a function"; function Sp(e, t) { if (typeof e != "function" || (t != null && typeof t != "function")) throw new TypeError(hB); var r = function () { var n = arguments, o = t ? t.apply(this, n) : n[0], a = r.cache; if (a.has(o)) return a.get(o); var i = e.apply(this, n); return ((r.cache = a.set(o, i) || a), i); }; return ((r.cache = new (Sp.Cache || v2)()), r); } Sp.Cache = v2; var yB = Sp, bB = 500; function vB(e) { var t = yB(e, function (n) { return (r.size === bB && r.clear(), n); }), r = t.cache; return t; } var xB = vB, EB = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, wB = /\\(\\)?/g; xB(function (e) { var t = []; return ( e.charCodeAt(0) === 46 && t.push(""), e.replace(EB, function (r, n, o, a) { t.push(o ? a.replace(wB, "$1") : n || r); }), t ); }); var SB = T7, CB = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/; function x2(e) { if (!SB(e)) return e; let t = e, r = !1; return ( typeof Event < "u" && e instanceof Event && ((t = r7(t)), (r = !0)), (t = Object.keys(t).reduce((n, o) => { try { (t[o] && t[o].toJSON, (n[o] = t[o])); } catch { r = !0; } return n; }, {})), r ? t : e ); } var $B = function (e) { let t, r, n, o; return function (a, i) { try { if (a === "") return ( (o = []), (t = new Map([[i, "[]"]])), (r = new Map()), (n = []), i ); let l = r.get(this) || this; for (; n.length && l !== n[0]; ) (n.shift(), o.pop()); if (typeof i == "boolean") return i; if (i === void 0) return e.allowUndefined ? "_undefined_" : void 0; if (i === null) return null; if (typeof i == "number") return i === Number.NEGATIVE_INFINITY ? "_-Infinity_" : i === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(i) ? "_NaN_" : i; if (typeof i == "bigint") return `_bigint_${i.toString()}`; if (typeof i == "string") return CB.test(i) ? (e.allowDate ? `_date_${i}` : void 0) : i; if ((0, O7.default)(i)) return e.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0; if ((0, F7.default)(i)) return; if ((0, _7.default)(i)) { if (!e.allowSymbol) return; let u = Symbol.keyFor(i); return u !== void 0 ? `_gsymbol_${u}` : `_symbol_${i.toString().slice(7, -1)}`; } if (n.length >= e.maxDepth) return Array.isArray(i) ? `[Array(${i.length})]` : "[Object]"; if (i === this) return `_duplicate_${JSON.stringify(o)}`; if (i instanceof Error && e.allowError) return { __isConvertedError__: !0, errorProperties: { ...(i.cause ? { cause: i.cause } : {}), ...i, name: i.name, message: i.message, stack: i.stack, "_constructor-name_": i.constructor.name, }, }; if ( i?.constructor?.name && i.constructor.name !== "Object" && !Array.isArray(i) ) { let u = t.get(i); if (!u) { let d = { __isClassInstance__: !0, __className__: i.constructor.name, ...Object.getOwnPropertyNames(i).reduce((p, c) => { try { p[c] = i[c]; } catch {} return p; }, {}), }; return ( o.push(a), n.unshift(d), t.set(i, JSON.stringify(o)), i !== d && r.set(i, d), d ); } return `_duplicate_${u}`; } let s = t.get(i); if (!s) { let u = Array.isArray(i) ? i : x2(i); return ( o.push(a), n.unshift(u), t.set(i, JSON.stringify(o)), i !== u && r.set(i, u), u ); } return `_duplicate_${s}`; } catch { return; } }; }, AB = { maxDepth: 10, space: void 0, allowRegExp: !0, allowDate: !0, allowError: !0, allowUndefined: !0, allowSymbol: !0, }, DB = (e, t = {}) => { let r = { ...AB, ...t }; return JSON.stringify(x2(e), $B(r), t.space); }; function E2(e) { return DB(e, { maxDepth: 50 }); } var w2 = b.createContext({ sources: {} }), S2 = "--unknown--", kB = ({ children: e, channel: t }) => { let [r, n] = b.useState({}); return ( b.useEffect(() => { let o = (a, i = null, l = !1) => { let { id: s, args: u = void 0, source: d, format: p, } = typeof a == "string" ? { id: a, source: i, format: l } : a, c = u ? E2(u) : S2; n((f) => ({ ...f, [s]: { ...f[s], [c]: { code: d || "", format: p } }, })); }; return (t.on(Fp, o), () => t.off(Fp, o)); }, []), h.createElement(w2.Provider, { value: { sources: r } }, e) ); }; function OB(e, t, r) { let [n, o] = b.useState("Transforming..."), a = t ? t?.(e, r) : e; return ( b.useEffect(() => { async function i() { let l = await a; l !== n && o(l); } i(); }), typeof a == "object" && typeof a.then == "function" ? n : a ); } var FB = (e, t, r) => { let { sources: n } = r, o = n?.[e]; return o?.[E2(t)] || o?.[S2] || { code: "" }; }, _B = ({ snippet: e, storyContext: t, typeFromProps: r, transformFromProps: n, }) => { let o = t.parameters ?? {}, { __isArgsStory: a } = o, i = o.docs?.source || {}, l = r || i.type || Tl.AUTO, s = l === Tl.DYNAMIC || (l === Tl.AUTO && e && a) ? e : i.originalSource || "", u = n ?? i.transform, d = u ? OB(s, u, t) : s; return i.code !== void 0 ? i.code : d; }, TB = (e, t, r) => { let { of: n } = e, o = b.useMemo(() => { if (n) return t.resolveOf(n, ["story"]).story; try { return t.storyById(); } catch {} }, [t, n]), a = o ? t.getStoryContext(o) : {}, i = e.__forceInitialArgs ? a.initialArgs : a.unmappedArgs, l = o ? FB(o.id, i, r) : null, s = _B({ snippet: l ? l.code : "", storyContext: { ...a, args: i }, typeFromProps: e.type, transformFromProps: e.transform, }); if ("of" in e && n === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let u = o?.parameters?.docs?.source || {}, d = e.format, p = e.language ?? u.language ?? "jsx", c = e.dark ?? u.dark ?? !1; return !e.code && !o ? { error: "Oh no! The source is not available." } : e.code ? { code: e.code, format: d, language: p, dark: c } : ((d = l?.format ?? !0), { code: s, format: d, language: p, dark: c }); }; function RB(e, t) { let r = PB([e], t); return r && r[0]; } function PB(e, t) { let [r, n] = b.useState({}); return ( b.useEffect(() => { Promise.all( e.map(async (o) => { let a = await t.loadStory(o); n((i) => (i[o] === a ? i : { ...i, [o]: a })); }), ); }), e.map((o) => { if (r[o]) return r[o]; try { return t.storyById(o); } catch { return; } }) ); } var IB = (e, t) => { let { of: r, meta: n } = e; if ("of" in e && r === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); return ( n && t.referenceMeta(n, !1), t.resolveOf(r || "story", ["story"]).story.id ); }, LB = (e, t, r) => { let { parameters: n = {} } = t || {}, { docs: o = {} } = n, a = o.story || {}; if (o.disable) return null; if (e.inline ?? a.inline ?? !1) { let l = e.height ?? a.height, s = e.autoplay ?? a.autoplay ?? !1; return { story: t, inline: !0, height: l, autoplay: s, forceInitialArgs: !!e.__forceInitialArgs, primary: !!e.__primary, renderStoryToElement: r.renderStoryToElement, }; } let i = e.height ?? a.height ?? a.iframeHeight ?? "100px"; return { story: t, inline: !1, height: i, primary: !!e.__primary }; }, BB = (e = { __forceInitialArgs: !1, __primary: !1 }) => { let t = b.useContext(Vt), r = IB(e, t), n = RB(r, t); if (!n) return h.createElement(SS, null); let o = LB(e, n, t); return o ? h.createElement(f6, { ...o }) : null; }, NB = (e) => { let t = b.useContext(Vt), r = b.useContext(w2), { of: n, source: o } = e; if ("of" in e && n === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let { story: a } = pn(n || "story", ["story"]), i = TB({ ...o, ...(n && { of: n }) }, t, r), l = e.layout ?? a.parameters.layout ?? a.parameters.docs?.canvas?.layout ?? "padded", s = e.withToolbar ?? a.parameters.docs?.canvas?.withToolbar ?? !1, u = e.additionalActions ?? a.parameters.docs?.canvas?.additionalActions, d = e.sourceState ?? a.parameters.docs?.canvas?.sourceState ?? "hidden", p = e.className ?? a.parameters.docs?.canvas?.className, c = e.story?.inline ?? a.parameters?.docs?.story?.inline ?? !1; return h.createElement( CS, { withSource: d === "none" ? void 0 : i, isExpanded: d === "shown", withToolbar: s, additionalActions: u, className: p, layout: l, inline: c, }, h.createElement(BB, { of: n || a.moduleExport, meta: e.meta, ...e.story, }), ); }, jB = (e, t) => { let r = MB(e, t); if (!r) throw new Error("No result when story was defined"); return r; }, MB = (e, t) => { let r = e ? t.getStoryContext(e) : { args: {} }, { id: n } = e || { id: "none" }, [o, a] = b.useState(r.args); b.useEffect(() => { let s = (u) => { u.storyId === n && a(u.args); }; return (t.channel.on(Am, s), () => t.channel.off(Am, s)); }, [n, t.channel]); let i = b.useCallback( (s) => t.channel.emit(iR, { storyId: n, updatedArgs: s }), [n, t.channel], ), l = b.useCallback( (s) => t.channel.emit(lR, { storyId: n, argNames: s }), [n, t.channel], ); return e && [o, i, l]; }, zB = (e, t) => { let r = t.getStoryContext(e), [n, o] = b.useState(r.globals); return ( b.useEffect(() => { let a = (i) => { o(i.globals); }; return (t.channel.on(Dm, a), () => t.channel.off(Dm, a)); }, [t.channel]), [n] ); }; function HB(e, t) { let { extractArgTypes: r } = t.docs || {}; if (!r) throw new Error( "Args unsupported. See Args documentation for your framework.", ); return r(e); } var UB = (e) => { let { of: t } = e; if ("of" in e && t === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let r = b.useContext(Vt), { story: n } = r.resolveOf(t || "story", ["story"]), { parameters: o, argTypes: a, component: i, subcomponents: l } = n, s = o.docs?.controls || {}, u = e.include ?? s.include, d = e.exclude ?? s.exclude, p = e.sort ?? s.sort, [c, f, g] = jB(n, r), [y] = zB(n, r), x = km(a, u, d); if (!(l && Object.keys(l || {}).length > 0)) return Object.keys(x).length > 0 || Object.keys(c).length > 0 ? h.createElement(lc, { rows: x, sort: p, args: c, globals: y, updateArgs: f, resetArgs: g, }) : null; let v = GI(i) || "Story", C = Object.fromEntries( Object.entries(l || {}).map(([E, $]) => [ E, { rows: km(HB($, o), u, d), sort: p }, ]), ), w = { [v]: { rows: x, sort: p }, ...C }; return h.createElement(C6, { tabs: w, sort: p, args: c, globals: y, updateArgs: f, resetArgs: g, }); }, { document: C2 } = globalThis, $2 = ({ className: e, children: t, ...r }) => { if (typeof e != "string" && (typeof t != "string" || !t.match(/[\n\r]/g))) return h.createElement(zd, null, t); let n = e && e.split("-"); return h.createElement(ES, { language: (n && n[1]) || "text", format: !1, code: t, ...r, }); }; function Cp(e, t) { e.channel.emit(gS, t); } var sc = dS.a, WB = ({ hash: e, children: t }) => { let r = b.useContext(Vt); return h.createElement( sc, { href: e, target: "_self", onClick: (n) => { let o = e.substring(1); C2.getElementById(o) && Cp(r, e); }, }, t, ); }, A2 = (e) => { let { href: t, target: r, children: n, ...o } = e, a = b.useContext(Vt); return !t || r === "_blank" || /^https?:\/\//.test(t) ? h.createElement(sc, { ...e }) : t.startsWith("#") ? h.createElement(WB, { hash: t }, n) : h.createElement( sc, { href: t, onClick: (i) => { i.button === 0 && !i.altKey && !i.ctrlKey && !i.metaKey && !i.shiftKey && (i.preventDefault(), Cp(a, i.currentTarget.getAttribute("href") || "")); }, target: r, ...o, }, n, ); }, D2 = ["h1", "h2", "h3", "h4", "h5", "h6"], VB = D2.reduce( (e, t) => ({ ...e, [t]: T(t)({ "& svg": { position: "relative", top: "-0.1em", visibility: "hidden" }, "&:hover svg": { visibility: "visible" }, }), }), {}, ), qB = T.a(() => ({ float: "left", lineHeight: "inherit", paddingRight: "10px", marginLeft: "-24px", color: "inherit", })), GB = ({ as: e, id: t, children: r, ...n }) => { let o = b.useContext(Vt), a = VB[e], i = `#${t}`; return h.createElement( a, { id: t, ...n }, h.createElement( qB, { "aria-hidden": "true", href: i, tabIndex: -1, target: "_self", onClick: (l) => { C2.getElementById(t) && Cp(o, i); }, }, h.createElement(JT, null), ), r, ); }, $p = (e) => { let { as: t, id: r, children: n, ...o } = e; if (r) return h.createElement(GB, { as: t, id: r, ...o }, n); let a = t, { as: i, ...l } = e; return h.createElement(a, { ...ve(l, t) }); }, k2 = D2.reduce( (e, t) => ({ ...e, [t]: (r) => h.createElement($p, { as: t, ...r }) }), {}, ), YB = (e) => { if (!e.children) return null; if (typeof e.children != "string") throw new Error(nR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: # Some heading A paragraph Instead do: {\` # Some heading A paragraph \`} `); return h.createElement(WS, { ...e, options: { forceBlock: !0, overrides: { code: $2, a: A2, ...k2, ...e?.options?.overrides }, ...e?.options, }, }); }, KB = ((e) => ( (e.INFO = "info"), (e.NOTES = "notes"), (e.DOCGEN = "docgen"), (e.AUTO = "auto"), e ))(KB || {}), XB = (e) => { switch (e.type) { case "story": return e.story.parameters.docs?.description?.story || null; case "meta": { let { parameters: t, component: r } = e.preparedMeta; return ( t.docs?.description?.component || t.docs?.extractComponentDescription?.(r, { component: r, parameters: t, }) || null ); } case "component": { let { component: t, projectAnnotations: { parameters: r }, } = e; return ( r?.docs?.extractComponentDescription?.(t, { component: t, parameters: r, }) || null ); } default: throw new Error( `Unrecognized module type resolved from 'useOf', got: ${e.type}`, ); } }, uc = (e) => { let { of: t } = e; if ("of" in e && t === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let r = pn(t || "meta"), n = XB(r); return n ? h.createElement(YB, null, n) : null; }, { document: ZB, window: JB } = globalThis, QB = ({ context: e, theme: t, children: r }) => { let n; try { n = e.resolveOf("meta", ["meta"]).preparedMeta.parameters?.docs?.toc; } catch { n = e?.projectAnnotations?.parameters?.docs?.toc; } return ( b.useEffect(() => { let o; try { if (((o = new URL(JB.parent.location.toString())), o.hash)) { let a = ZB.getElementById(decodeURIComponent(o.hash.substring(1))); a && setTimeout(() => { YI(a); }, 200); } } catch {} }), h.createElement( Vt.Provider, { value: e }, h.createElement( kB, { channel: e.channel }, h.createElement( zb, { theme: Z5(t) }, h.createElement( a6, { toc: n ? h.createElement(z6, { className: "sbdocs sbdocs-toc--custom", channel: e.channel, ...n, }) : null, }, r, ), ), ), ) ); }, eN = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, tN = Object.hasOwnProperty, rN = class { constructor() { (this.occurrences, this.reset()); } slug(e, t) { let r = this, n = nN(e, t === !0), o = n; for (; tN.call(r.occurrences, n); ) (r.occurrences[o]++, (n = o + "-" + r.occurrences[o])); return ((r.occurrences[n] = 0), n); } reset() { this.occurrences = Object.create(null); } }; function nN(e, t) { return typeof e != "string" ? "" : (t || (e = e.toLowerCase()), e.replace(eN, "").replace(/ /g, "-")); } var O2 = new rN(), oN = ({ children: e, disableAnchor: t, ...r }) => { if (t || typeof e != "string") return h.createElement(Hd, null, e); let n = O2.slug(e.toLowerCase()); return h.createElement($p, { as: "h2", id: n, ...r }, e); }, aN = ({ children: e, disableAnchor: t }) => { if (t || typeof e != "string") return h.createElement(Ud, null, e); let r = O2.slug(e.toLowerCase()); return h.createElement($p, { as: "h3", id: r }, e); }, F2 = ({ of: e, expanded: t = !0, withToolbar: r = !1, __forceInitialArgs: n = !1, __primary: o = !1, }) => { let { story: a } = pn(e || "story", ["story"]), i = a.parameters.docs?.canvas?.withToolbar ?? r; return h.createElement( VI, { storyId: a.id }, t && h.createElement( h.Fragment, null, h.createElement(aN, null, a.name), h.createElement(uc, { of: e }), ), h.createElement(NB, { of: e, withToolbar: i, story: { __forceInitialArgs: n, __primary: o }, source: { __forceInitialArgs: n }, }), ); }, iN = (e) => { let { of: t } = e; if ("of" in e && t === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let { csfFile: r } = pn(t || "meta", ["meta"]), n = b.useContext(Vt).componentStoriesFromCSFFile(r)[0]; return n ? h.createElement(F2, { of: n.moduleExport, expanded: !1, __primary: !0, withToolbar: !0, }) : null; }, lN = T(oN)(({ theme: e }) => ({ fontSize: `${e.typography.size.s2 - 1}px`, fontWeight: e.typography.weight.bold, lineHeight: "16px", letterSpacing: "0.35em", textTransform: "uppercase", color: e.textMutedColor, border: 0, marginBottom: "12px", "&:first-of-type": { marginTop: "56px" }, })), sN = ({ title: e = "Stories", includePrimary: t = !0 }) => { let { componentStories: r, projectAnnotations: n, getStoryContext: o, } = b.useContext(Vt), a = r(), { stories: { filter: i } = { filter: void 0 } } = n.parameters?.docs || {}; return ( i && (a = a.filter((l) => i(l, o(l)))), a.some((l) => l.tags?.includes("autodocs")) && (a = a.filter((l) => l.tags?.includes("autodocs") && !l.usesMount)), t || (a = a.slice(1)), !a || a.length === 0 ? null : h.createElement( h.Fragment, null, typeof e == "string" ? h.createElement(lN, null, e) : e, a.map( (l) => l && h.createElement(F2, { key: l.id, of: l.moduleExport, expanded: !0, __forceInitialArgs: !0, }), ), ) ); }, uN = "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle", cN = (e) => { let { of: t, children: r } = e; if ("of" in e && t === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let n; try { n = pn(t || "meta", ["meta"]).preparedMeta; } catch (l) { if (r && !l.message.includes("did you forget to use ?")) throw l; } let { componentSubtitle: o, docs: a } = n?.parameters || {}; o && oR( `Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${uN}`, ); let i = r || a?.subtitle || o; return i ? h.createElement(r6, { className: "sbdocs-subtitle sb-unstyled" }, i) : null; }, dN = /\s*\/\s*/, pN = (e) => { let t = e.trim().split(dN); return t?.[t?.length - 1] || e; }, fN = (e) => { let { children: t, of: r } = e; if ("of" in e && r === void 0) throw new Error( "Unexpected `of={undefined}`, did you mistype a CSF file reference?", ); let n; try { n = pn(r || "meta", ["meta"]).preparedMeta; } catch (a) { if ( t && a instanceof Error && !a.message.includes("did you forget to use ?") ) throw a; } let o = t || pN(n?.title || ""); return o ? h.createElement(t6, { className: "sbdocs-title sb-unstyled" }, o) : null; }, gN = () => { let e = pn("meta", ["meta"]), { stories: t } = e.csfFile, r = Object.keys(t).length === 1; return h.createElement( h.Fragment, null, h.createElement(fN, null), h.createElement(cN, null), h.createElement(uc, { of: "meta" }), r ? h.createElement(uc, { of: "story" }) : null, h.createElement(iN, null), h.createElement(UB, null), r ? null : h.createElement(sN, null), ); }; function mN({ context: e, docsParameter: t }) { let r = t.container || QB, n = t.page || gN; return h.createElement( r, { context: e, theme: t.theme }, h.createElement(n, null), ); } var _2 = { code: $2, a: A2, ...k2 }, hN = class extends b.Component { constructor() { (super(...arguments), (this.state = { hasError: !1 })); } static getDerivedStateFromError() { return { hasError: !0 }; } componentDidCatch(e) { let { showException: t } = this.props; t(e); } render() { let { hasError: e } = this.state, { children: t } = this.props; return e ? null : h.createElement(h.Fragment, null, t); } }, yN = class { constructor() { ((this.render = async (e, t, r) => { let n = { ..._2, ...t?.components }, o = mN; return new Promise((a, i) => { cc( async () => { const { MDXProvider: l } = await import("./index-O1jB17X4.js"); return { MDXProvider: l }; }, __vite__mapDeps([6, 1, 2, 3]), ) .then(({ MDXProvider: l }) => I2( h.createElement( hN, { showException: i, key: Math.random() }, h.createElement( l, { components: n }, h.createElement(o, { context: e, docsParameter: t }), ), ), r, ), ) .then(() => a()); }); }), (this.unmount = (e) => { L2(e); })); } }; const VN = Object.freeze( Object.defineProperty( { __proto__: null, DocsRenderer: yN, defaultComponents: _2 }, Symbol.toStringTag, { value: "Module" }, ), ); export { VN as D, MN as M, U4 as Y, uo as Z, lD as _, aD as a, LN as d, Ft as g, J4 as i, T as x, };