UNPKG

clado

Version:

A React state machine based on Context API.

1,332 lines (1,326 loc) 78.7 kB
var Ur = { exports: {} }, Je = {}, Yr = { exports: {} }, m = {}; /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var pt; function Nt() { if (pt) return m; pt = 1; var A = Symbol.for("react.element"), p = Symbol.for("react.portal"), ce = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), ae = Symbol.for("react.provider"), q = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), ee = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), B = Symbol.iterator; function W(n) { return n === null || typeof n != "object" ? null : (n = B && n[B] || n["@@iterator"], typeof n == "function" ? n : null); } var N = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, fe = Object.assign, $e = {}; function oe(n, i, g) { this.props = n, this.context = i, this.refs = $e, this.updater = g || N; } oe.prototype.isReactComponent = {}, oe.prototype.setState = function(n, i) { if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, n, i, "setState"); }, oe.prototype.forceUpdate = function(n) { this.updater.enqueueForceUpdate(this, n, "forceUpdate"); }; function ue() { } ue.prototype = oe.prototype; function F(n, i, g) { this.props = n, this.context = i, this.refs = $e, this.updater = g || N; } var _e = F.prototype = new ue(); _e.constructor = F, fe(_e, oe.prototype), _e.isPureReactComponent = !0; var ie = Array.isArray, V = Object.prototype.hasOwnProperty, re = { current: null }, le = { key: !0, ref: !0, __self: !0, __source: !0 }; function ye(n, i, g) { var b, R = {}, j = null, P = null; if (i != null) for (b in i.ref !== void 0 && (P = i.ref), i.key !== void 0 && (j = "" + i.key), i) V.call(i, b) && !le.hasOwnProperty(b) && (R[b] = i[b]); var O = arguments.length - 2; if (O === 1) R.children = g; else if (1 < O) { for (var w = Array(O), U = 0; U < O; U++) w[U] = arguments[U + 2]; R.children = w; } if (n && n.defaultProps) for (b in O = n.defaultProps, O) R[b] === void 0 && (R[b] = O[b]); return { $$typeof: A, type: n, key: j, ref: P, props: R, _owner: re.current }; } function we(n, i) { return { $$typeof: A, type: n.type, key: i, ref: n.ref, props: n.props, _owner: n._owner }; } function Te(n) { return typeof n == "object" && n !== null && n.$$typeof === A; } function Be(n) { var i = { "=": "=0", ":": "=2" }; return "$" + n.replace(/[=:]/g, function(g) { return i[g]; }); } var Oe = /\/+/g; function J(n, i) { return typeof n == "object" && n !== null && n.key != null ? Be("" + n.key) : i.toString(36); } function te(n, i, g, b, R) { var j = typeof n; (j === "undefined" || j === "boolean") && (n = null); var P = !1; if (n === null) P = !0; else switch (j) { case "string": case "number": P = !0; break; case "object": switch (n.$$typeof) { case A: case p: P = !0; } } if (P) return P = n, R = R(P), n = b === "" ? "." + J(P, 0) : b, ie(R) ? (g = "", n != null && (g = n.replace(Oe, "$&/") + "/"), te(R, i, g, "", function(U) { return U; })) : R != null && (Te(R) && (R = we(R, g + (!R.key || P && P.key === R.key ? "" : ("" + R.key).replace(Oe, "$&/") + "/") + n)), i.push(R)), 1; if (P = 0, b = b === "" ? "." : b + ":", ie(n)) for (var O = 0; O < n.length; O++) { j = n[O]; var w = b + J(j, O); P += te(j, i, g, w, R); } else if (w = W(n), typeof w == "function") for (n = w.call(n), O = 0; !(j = n.next()).done; ) j = j.value, w = b + J(j, O++), P += te(j, i, g, w, R); else if (j === "object") throw i = String(n), Error("Objects are not valid as a React child (found: " + (i === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : i) + "). If you meant to render a collection of children, use an array instead."); return P; } function K(n, i, g) { if (n == null) return n; var b = [], R = 0; return te(n, b, "", "", function(j) { return i.call(g, j, R++); }), b; } function se(n) { if (n._status === -1) { var i = n._result; i = i(), i.then(function(g) { (n._status === 0 || n._status === -1) && (n._status = 1, n._result = g); }, function(g) { (n._status === 0 || n._status === -1) && (n._status = 2, n._result = g); }), n._status === -1 && (n._status = 0, n._result = i); } if (n._status === 1) return n._result.default; throw n._result; } var l = { current: null }, de = { transition: null }, Pe = { ReactCurrentDispatcher: l, ReactCurrentBatchConfig: de, ReactCurrentOwner: re }; function he() { throw Error("act(...) is not supported in production builds of React."); } return m.Children = { map: K, forEach: function(n, i, g) { K(n, function() { i.apply(this, arguments); }, g); }, count: function(n) { var i = 0; return K(n, function() { i++; }), i; }, toArray: function(n) { return K(n, function(i) { return i; }) || []; }, only: function(n) { if (!Te(n)) throw Error("React.Children.only expected to receive a single React element child."); return n; } }, m.Component = oe, m.Fragment = ce, m.Profiler = Q, m.PureComponent = F, m.StrictMode = z, m.Suspense = S, m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Pe, m.act = he, m.cloneElement = function(n, i, g) { if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + "."); var b = fe({}, n.props), R = n.key, j = n.ref, P = n._owner; if (i != null) { if (i.ref !== void 0 && (j = i.ref, P = re.current), i.key !== void 0 && (R = "" + i.key), n.type && n.type.defaultProps) var O = n.type.defaultProps; for (w in i) V.call(i, w) && !le.hasOwnProperty(w) && (b[w] = i[w] === void 0 && O !== void 0 ? O[w] : i[w]); } var w = arguments.length - 2; if (w === 1) b.children = g; else if (1 < w) { O = Array(w); for (var U = 0; U < w; U++) O[U] = arguments[U + 2]; b.children = O; } return { $$typeof: A, type: n.type, key: R, ref: j, props: b, _owner: P }; }, m.createContext = function(n) { return n = { $$typeof: q, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: ae, _context: n }, n.Consumer = n; }, m.createElement = ye, m.createFactory = function(n) { var i = ye.bind(null, n); return i.type = n, i; }, m.createRef = function() { return { current: null }; }, m.forwardRef = function(n) { return { $$typeof: Z, render: n }; }, m.isValidElement = Te, m.lazy = function(n) { return { $$typeof: I, _payload: { _status: -1, _result: n }, _init: se }; }, m.memo = function(n, i) { return { $$typeof: ee, type: n, compare: i === void 0 ? null : i }; }, m.startTransition = function(n) { var i = de.transition; de.transition = {}; try { n(); } finally { de.transition = i; } }, m.unstable_act = he, m.useCallback = function(n, i) { return l.current.useCallback(n, i); }, m.useContext = function(n) { return l.current.useContext(n); }, m.useDebugValue = function() { }, m.useDeferredValue = function(n) { return l.current.useDeferredValue(n); }, m.useEffect = function(n, i) { return l.current.useEffect(n, i); }, m.useId = function() { return l.current.useId(); }, m.useImperativeHandle = function(n, i, g) { return l.current.useImperativeHandle(n, i, g); }, m.useInsertionEffect = function(n, i) { return l.current.useInsertionEffect(n, i); }, m.useLayoutEffect = function(n, i) { return l.current.useLayoutEffect(n, i); }, m.useMemo = function(n, i) { return l.current.useMemo(n, i); }, m.useReducer = function(n, i, g) { return l.current.useReducer(n, i, g); }, m.useRef = function(n) { return l.current.useRef(n); }, m.useState = function(n) { return l.current.useState(n); }, m.useSyncExternalStore = function(n, i, g) { return l.current.useSyncExternalStore(n, i, g); }, m.useTransition = function() { return l.current.useTransition(); }, m.version = "18.3.1", m; } var Qe = { exports: {} }; /** * @license React * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Qe.exports; var yt; function Vt() { return yt || (yt = 1, function(A, p) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var ce = "18.3.1", z = Symbol.for("react.element"), Q = Symbol.for("react.portal"), ae = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), ee = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), fe = Symbol.for("react.lazy"), $e = Symbol.for("react.offscreen"), oe = Symbol.iterator, ue = "@@iterator"; function F(e) { if (e === null || typeof e != "object") return null; var r = oe && e[oe] || e[ue]; return typeof r == "function" ? r : null; } var _e = { /** * @internal * @type {ReactComponent} */ current: null }, ie = { transition: null }, V = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, re = { /** * @internal * @type {ReactComponent} */ current: null }, le = {}, ye = null; function we(e) { ye = e; } le.setExtraStackFrame = function(e) { ye = e; }, le.getCurrentStack = null, le.getStackAddendum = function() { var e = ""; ye && (e += ye); var r = le.getCurrentStack; return r && (e += r() || ""), e; }; var Te = !1, Be = !1, Oe = !1, J = !1, te = !1, K = { ReactCurrentDispatcher: _e, ReactCurrentBatchConfig: ie, ReactCurrentOwner: re }; K.ReactDebugCurrentFrame = le, K.ReactCurrentActQueue = V; function se(e) { { for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) a[o - 1] = arguments[o]; de("warn", e, a); } } function l(e) { { for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) a[o - 1] = arguments[o]; de("error", e, a); } } function de(e, r, a) { { var o = K.ReactDebugCurrentFrame, c = o.getStackAddendum(); c !== "" && (r += "%s", a = a.concat([c])); var d = a.map(function(f) { return String(f); }); d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d); } } var Pe = {}; function he(e, r) { { var a = e.constructor, o = a && (a.displayName || a.name) || "ReactClass", c = o + "." + r; if (Pe[c]) return; l("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, o), Pe[c] = !0; } } var n = { /** * Checks whether or not this composite component is mounted. * @param {ReactClass} publicInstance The instance we want to test. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function(e) { return !1; }, /** * Forces an update. This should only be invoked when it is known with * certainty that we are **not** in a DOM transaction. * * You may want to call this when you know that some deeper aspect of the * component's state has changed but `setState` was not called. * * This will not invoke `shouldComponentUpdate`, but it will invoke * `componentWillUpdate` and `componentDidUpdate`. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {?function} callback Called after component is updated. * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueForceUpdate: function(e, r, a) { he(e, "forceUpdate"); }, /** * Replaces all of the state. Always use this or `setState` to mutate state. * You should treat `this.state` as immutable. * * There is no guarantee that `this.state` will be immediately updated, so * accessing `this.state` after calling this method may return the old value. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} completeState Next state. * @param {?function} callback Called after component is updated. * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueReplaceState: function(e, r, a, o) { he(e, "replaceState"); }, /** * Sets a subset of the state. This only exists because _pendingState is * internal. This provides a merging strategy that is not available to deep * properties which is confusing. TODO: Expose pendingState or don't use it * during the merge. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialState Next partial state to be merged with state. * @param {?function} callback Called after component is updated. * @param {?string} Name of the calling function in the public API. * @internal */ enqueueSetState: function(e, r, a, o) { he(e, "setState"); } }, i = Object.assign, g = {}; Object.freeze(g); function b(e, r, a) { this.props = e, this.context = r, this.refs = g, this.updater = a || n; } b.prototype.isReactComponent = {}, b.prototype.setState = function(e, r) { if (typeof e != "object" && typeof e != "function" && e != null) throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, e, r, "setState"); }, b.prototype.forceUpdate = function(e) { this.updater.enqueueForceUpdate(this, e, "forceUpdate"); }; { var R = { isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] }, j = function(e, r) { Object.defineProperty(b.prototype, e, { get: function() { se("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]); } }); }; for (var P in R) R.hasOwnProperty(P) && j(P, R[P]); } function O() { } O.prototype = b.prototype; function w(e, r, a) { this.props = e, this.context = r, this.refs = g, this.updater = a || n; } var U = w.prototype = new O(); U.constructor = w, i(U, b.prototype), U.isPureReactComponent = !0; function _r() { var e = { current: null }; return Object.seal(e), e; } var Ze = Array.isArray; function Le(e) { return Ze(e); } function br(e) { { var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; return a; } } function Me(e) { try { return be(e), !1; } catch { return !0; } } function be(e) { return "" + e; } function ke(e) { if (Me(e)) return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", br(e)), be(e); } function er(e, r, a) { var o = e.displayName; if (o) return o; var c = r.displayName || r.name || ""; return c !== "" ? a + "(" + c + ")" : a; } function je(e) { return e.displayName || "Context"; } function ve(e) { if (e == null) return null; if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case ae: return "Fragment"; case Q: return "Portal"; case Z: return "Profiler"; case q: return "StrictMode"; case B: return "Suspense"; case W: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case ee: var r = e; return je(r) + ".Consumer"; case S: var a = e; return je(a._context) + ".Provider"; case I: return er(e, e.render, "ForwardRef"); case N: var o = e.displayName || null; return o !== null ? o : ve(e.type) || "Memo"; case fe: { var c = e, d = c._payload, f = c._init; try { return ve(f(d)); } catch { return null; } } } return null; } var Ae = Object.prototype.hasOwnProperty, We = { key: !0, ref: !0, __self: !0, __source: !0 }, rr, tr, Ne; Ne = {}; function ze(e) { if (Ae.call(e, "ref")) { var r = Object.getOwnPropertyDescriptor(e, "ref").get; if (r && r.isReactWarning) return !1; } return e.ref !== void 0; } function Ee(e) { if (Ae.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1; } return e.key !== void 0; } function Er(e, r) { var a = function() { rr || (rr = !0, l("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; a.isReactWarning = !0, Object.defineProperty(e, "key", { get: a, configurable: !0 }); } function nr(e, r) { var a = function() { tr || (tr = !0, l("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; a.isReactWarning = !0, Object.defineProperty(e, "ref", { get: a, configurable: !0 }); } function ar(e) { if (typeof e.ref == "string" && re.current && e.__self && re.current.stateNode !== e.__self) { var r = ve(re.current.type); Ne[r] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), Ne[r] = !0); } } var xe = function(e, r, a, o, c, d, f) { var y = { // This tag allows us to uniquely identify this as a React Element $$typeof: z, // Built-in properties that belong on the element type: e, key: r, ref: a, props: f, // Record the component responsible for creating this element. _owner: d }; return y._store = {}, Object.defineProperty(y._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(y, "_self", { configurable: !1, enumerable: !1, writable: !1, value: o }), Object.defineProperty(y, "_source", { configurable: !1, enumerable: !1, writable: !1, value: c }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y; }; function Rr(e, r, a) { var o, c = {}, d = null, f = null, y = null, E = null; if (r != null) { ze(r) && (f = r.ref, ar(r)), Ee(r) && (ke(r.key), d = "" + r.key), y = r.__self === void 0 ? null : r.__self, E = r.__source === void 0 ? null : r.__source; for (o in r) Ae.call(r, o) && !We.hasOwnProperty(o) && (c[o] = r[o]); } var k = arguments.length - 2; if (k === 1) c.children = a; else if (k > 1) { for (var x = Array(k), D = 0; D < k; D++) x[D] = arguments[D + 2]; Object.freeze && Object.freeze(x), c.children = x; } if (e && e.defaultProps) { var L = e.defaultProps; for (o in L) c[o] === void 0 && (c[o] = L[o]); } if (d || f) { var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; d && Er(c, Y), f && nr(c, Y); } return xe(e, d, f, y, E, re.current, c); } function Cr(e, r) { var a = xe(e.type, r, e.ref, e._self, e._source, e._owner, e.props); return a; } function Sr(e, r, a) { if (e == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); var o, c = i({}, e.props), d = e.key, f = e.ref, y = e._self, E = e._source, k = e._owner; if (r != null) { ze(r) && (f = r.ref, k = re.current), Ee(r) && (ke(r.key), d = "" + r.key); var x; e.type && e.type.defaultProps && (x = e.type.defaultProps); for (o in r) Ae.call(r, o) && !We.hasOwnProperty(o) && (r[o] === void 0 && x !== void 0 ? c[o] = x[o] : c[o] = r[o]); } var D = arguments.length - 2; if (D === 1) c.children = a; else if (D > 1) { for (var L = Array(D), Y = 0; Y < D; Y++) L[Y] = arguments[Y + 2]; c.children = L; } return xe(e.type, d, f, y, E, k, c); } function Re(e) { return typeof e == "object" && e !== null && e.$$typeof === z; } var or = ".", wr = ":"; function Tr(e) { var r = /[=:]/g, a = { "=": "=0", ":": "=2" }, o = e.replace(r, function(c) { return a[c]; }); return "$" + o; } var Ve = !1, ur = /\/+/g; function me(e) { return e.replace(ur, "$&/"); } function De(e, r) { return typeof e == "object" && e !== null && e.key != null ? (ke(e.key), Tr("" + e.key)) : r.toString(36); } function Ce(e, r, a, o, c) { var d = typeof e; (d === "undefined" || d === "boolean") && (e = null); var f = !1; if (e === null) f = !0; else switch (d) { case "string": case "number": f = !0; break; case "object": switch (e.$$typeof) { case z: case Q: f = !0; } } if (f) { var y = e, E = c(y), k = o === "" ? or + De(y, 0) : o; if (Le(E)) { var x = ""; k != null && (x = me(k) + "/"), Ce(E, r, x, "", function(Wt) { return Wt; }); } else E != null && (Re(E) && (E.key && (!y || y.key !== E.key) && ke(E.key), E = Cr( E, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children a + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key (E.key && (!y || y.key !== E.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion me("" + E.key) + "/" ) : "") + k )), r.push(E)); return 1; } var D, L, Y = 0, G = o === "" ? or : o + wr; if (Le(e)) for (var gr = 0; gr < e.length; gr++) D = e[gr], L = G + De(D, gr), Y += Ce(D, r, a, L, c); else { var Vr = F(e); if (typeof Vr == "function") { var lt = e; Vr === lt.entries && (Ve || se("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ve = !0); for (var Lt = Vr.call(lt), dt, Mt = 0; !(dt = Lt.next()).done; ) D = dt.value, L = G + De(D, Mt++), Y += Ce(D, r, a, L, c); } else if (d === "object") { var vt = String(e); throw new Error("Objects are not valid as a React child (found: " + (vt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : vt) + "). If you meant to render a collection of children, use an array instead."); } } return Y; } function Ie(e, r, a) { if (e == null) return e; var o = [], c = 0; return Ce(e, o, "", "", function(d) { return r.call(a, d, c++); }), o; } function Or(e) { var r = 0; return Ie(e, function() { r++; }), r; } function ir(e, r, a) { Ie(e, function() { r.apply(this, arguments); }, a); } function Pr(e) { return Ie(e, function(r) { return r; }) || []; } function sr(e) { if (!Re(e)) throw new Error("React.Children.only expected to receive a single React element child."); return e; } function cr(e) { var r = { $$typeof: ee, // As a workaround to support multiple concurrent renderers, we categorize // some renderers as primary and others as secondary. We only expect // there to be two concurrent renderers at most: React Native (primary) and // Fabric (secondary); React DOM (primary) and React ART (secondary). // Secondary renderers store their context values on separate fields. _currentValue: e, _currentValue2: e, // Used to track how many concurrent renderers this context currently // supports within in a single renderer. Such as parallel server rendering. _threadCount: 0, // These are circular Provider: null, Consumer: null, // Add these to use same hidden class in VM as ServerContext _defaultValue: null, _globalName: null }; r.Provider = { $$typeof: S, _context: r }; var a = !1, o = !1, c = !1; { var d = { $$typeof: ee, _context: r }; Object.defineProperties(d, { Provider: { get: function() { return o || (o = !0, l("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider; }, set: function(f) { r.Provider = f; } }, _currentValue: { get: function() { return r._currentValue; }, set: function(f) { r._currentValue = f; } }, _currentValue2: { get: function() { return r._currentValue2; }, set: function(f) { r._currentValue2 = f; } }, _threadCount: { get: function() { return r._threadCount; }, set: function(f) { r._threadCount = f; } }, Consumer: { get: function() { return a || (a = !0, l("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer; } }, displayName: { get: function() { return r.displayName; }, set: function(f) { c || (se("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", f), c = !0); } } }), r.Consumer = d; } return r._currentRenderer = null, r._currentRenderer2 = null, r; } var Fe = -1, qe = 0, Ke = 1, fr = 2; function kr(e) { if (e._status === Fe) { var r = e._result, a = r(); if (a.then(function(d) { if (e._status === qe || e._status === Fe) { var f = e; f._status = Ke, f._result = d; } }, function(d) { if (e._status === qe || e._status === Fe) { var f = e; f._status = fr, f._result = d; } }), e._status === Fe) { var o = e; o._status = qe, o._result = a; } } if (e._status === Ke) { var c = e._result; return c === void 0 && l(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) Did you accidentally put curly braces around the import?`, c), "default" in c || l(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, c), c.default; } else throw e._result; } function jr(e) { var r = { // We use these fields to store the result. _status: Fe, _result: e }, a = { $$typeof: fe, _payload: r, _init: kr }; { var o, c; Object.defineProperties(a, { defaultProps: { configurable: !0, get: function() { return o; }, set: function(d) { l("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = d, Object.defineProperty(a, "defaultProps", { enumerable: !0 }); } }, propTypes: { configurable: !0, get: function() { return c; }, set: function(d) { l("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), c = d, Object.defineProperty(a, "propTypes", { enumerable: !0 }); } } }); } return a; } function Ar(e) { e != null && e.$$typeof === N ? l("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? l("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && l("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && l("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); var r = { $$typeof: I, render: e }; { var a; Object.defineProperty(r, "displayName", { enumerable: !1, configurable: !0, get: function() { return a; }, set: function(o) { a = o, !e.name && !e.displayName && (e.displayName = o); } }); } return r; } var lr; lr = Symbol.for("react.module.reference"); function t(e) { return !!(typeof e == "string" || typeof e == "function" || e === ae || e === Z || te || e === q || e === B || e === W || J || e === $e || Te || Be || Oe || typeof e == "object" && e !== null && (e.$$typeof === fe || e.$$typeof === N || e.$$typeof === S || e.$$typeof === ee || e.$$typeof === I || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. e.$$typeof === lr || e.getModuleId !== void 0)); } function u(e, r) { t(e) || l("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e); var a = { $$typeof: N, type: e, compare: r === void 0 ? null : r }; { var o; Object.defineProperty(a, "displayName", { enumerable: !1, configurable: !0, get: function() { return o; }, set: function(c) { o = c, !e.name && !e.displayName && (e.displayName = c); } }); } return a; } function s() { var e = _e.current; return e === null && l(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e; } function v(e) { var r = s(); if (e._context !== void 0) { var a = e._context; a.Consumer === e ? l("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : a.Provider === e && l("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } return r.useContext(e); } function C(e) { var r = s(); return r.useState(e); } function T(e, r, a) { var o = s(); return o.useReducer(e, r, a); } function _(e) { var r = s(); return r.useRef(e); } function h(e, r) { var a = s(); return a.useEffect(e, r); } function H(e, r) { var a = s(); return a.useInsertionEffect(e, r); } function $(e, r) { var a = s(); return a.useLayoutEffect(e, r); } function M(e, r) { var a = s(); return a.useCallback(e, r); } function ne(e, r) { var a = s(); return a.useMemo(e, r); } function Se(e, r, a) { var o = s(); return o.useImperativeHandle(e, r, a); } function ge(e, r) { { var a = s(); return a.useDebugValue(e, r); } } function X() { var e = s(); return e.useTransition(); } function He(e) { var r = s(); return r.useDeferredValue(e); } function xr() { var e = s(); return e.useId(); } function Dr(e, r, a) { var o = s(); return o.useSyncExternalStore(e, r, a); } var Ge = 0, Br, zr, qr, Kr, Hr, Gr, Jr; function Xr() { } Xr.__reactDisabledLog = !0; function _t() { { if (Ge === 0) { Br = console.log, zr = console.info, qr = console.warn, Kr = console.error, Hr = console.group, Gr = console.groupCollapsed, Jr = console.groupEnd; var e = { configurable: !0, enumerable: !0, value: Xr, writable: !0 }; Object.defineProperties(console, { info: e, log: e, warn: e, error: e, group: e, groupCollapsed: e, groupEnd: e }); } Ge++; } } function bt() { { if (Ge--, Ge === 0) { var e = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: i({}, e, { value: Br }), info: i({}, e, { value: zr }), warn: i({}, e, { value: qr }), error: i({}, e, { value: Kr }), group: i({}, e, { value: Hr }), groupCollapsed: i({}, e, { value: Gr }), groupEnd: i({}, e, { value: Jr }) }); } Ge < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Ir = K.ReactCurrentDispatcher, Fr; function dr(e, r, a) { { if (Fr === void 0) try { throw Error(); } catch (c) { var o = c.stack.trim().match(/\n( *(at )?)/); Fr = o && o[1] || ""; } return ` ` + Fr + e; } } var $r = !1, vr; { var Et = typeof WeakMap == "function" ? WeakMap : Map; vr = new Et(); } function Qr(e, r) { if (!e || $r) return ""; { var a = vr.get(e); if (a !== void 0) return a; } var o; $r = !0; var c = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var d; d = Ir.current, Ir.current = null, _t(); try { if (r) { var f = function() { throw Error(); }; if (Object.defineProperty(f.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(f, []); } catch (G) { o = G; } Reflect.construct(e, [], f); } else { try { f.call(); } catch (G) { o = G; } e.call(f.prototype); } } else { try { throw Error(); } catch (G) { o = G; } e(); } } catch (G) { if (G && o && typeof G.stack == "string") { for (var y = G.stack.split(` `), E = o.stack.split(` `), k = y.length - 1, x = E.length - 1; k >= 1 && x >= 0 && y[k] !== E[x]; ) x--; for (; k >= 1 && x >= 0; k--, x--) if (y[k] !== E[x]) { if (k !== 1 || x !== 1) do if (k--, x--, x < 0 || y[k] !== E[x]) { var D = ` ` + y[k].replace(" at new ", " at "); return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && vr.set(e, D), D; } while (k >= 1 && x >= 0); break; } } } finally { $r = !1, Ir.current = d, bt(), Error.prepareStackTrace = c; } var L = e ? e.displayName || e.name : "", Y = L ? dr(L) : ""; return typeof e == "function" && vr.set(e, Y), Y; } function Rt(e, r, a) { return Qr(e, !1); } function Ct(e) { var r = e.prototype; return !!(r && r.isReactComponent); } function pr(e, r, a) { if (e == null) return ""; if (typeof e == "function") return Qr(e, Ct(e)); if (typeof e == "string") return dr(e); switch (e) { case B: return dr("Suspense"); case W: return dr("SuspenseList"); } if (typeof e == "object") switch (e.$$typeof) { case I: return Rt(e.render); case N: return pr(e.type, r, a); case fe: { var o = e, c = o._payload, d = o._init; try { return pr(d(c), r, a); } catch { } } } return ""; } var Zr = {}, et = K.ReactDebugCurrentFrame; function yr(e) { if (e) { var r = e._owner, a = pr(e.type, e._source, r ? r.type : null); et.setExtraStackFrame(a); } else et.setExtraStackFrame(null); } function St(e, r, a, o, c) { { var d = Function.call.bind(Ae); for (var f in e) if (d(e, f)) { var y = void 0; try { if (typeof e[f] != "function") { var E = Error((o || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw E.name = "Invariant Violation", E; } y = e[f](r, f, o, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (k) { y = k; } y && !(y instanceof Error) && (yr(c), l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", a, f, typeof y), yr(null)), y instanceof Error && !(y.message in Zr) && (Zr[y.message] = !0, yr(c), l("Failed %s type: %s", a, y.message), yr(null)); } } } function Ue(e) { if (e) { var r = e._owner, a = pr(e.type, e._source, r ? r.type : null); we(a); } else we(null); } var Lr; Lr = !1; function rt() { if (re.current) { var e = ve(re.current.type); if (e) return ` Check the render method of \`` + e + "`."; } return ""; } function wt(e) { if (e !== void 0) { var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber; return ` Check your code at ` + r + ":" + a + "."; } return ""; } function Tt(e) { return e != null ? wt(e.__source) : ""; } var tt = {}; function Ot(e) { var r = rt(); if (!r) { var a = typeof e == "string" ? e : e.displayName || e.name; a && (r = ` Check the top-level render call using <` + a + ">."); } return r; } function nt(e, r) { if (!(!e._store || e._store.validated || e.key != null)) { e._store.validated = !0; var a = Ot(r); if (!tt[a]) { tt[a] = !0; var o = ""; e && e._owner && e._owner !== re.current && (o = " It was passed a child from " + ve(e._owner.type) + "."), Ue(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, o), Ue(null); } } } function at(e, r) { if (typeof e == "object") { if (Le(e)) for (var a = 0; a < e.length; a++) { var o = e[a]; Re(o) && nt(o, r); } else if (Re(e)) e._store && (e._store.validated = !0); else if (e) { var c = F(e); if (typeof c == "function" && c !== e.entries) for (var d = c.call(e), f; !(f = d.next()).done; ) Re(f.value) && nt(f.value, r); } } } function ot(e) { { var r = e.type; if (r == null || typeof r == "string") return; var a; if (typeof r == "function") a = r.propTypes; else if (typeof r == "object" && (r.$$typeof === I || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. r.$$typeof === N)) a = r.propTypes; else return; if (a) { var o = ve(r); St(a, e.props, "prop", o, e); } else if (r.PropTypes !== void 0 && !Lr) { Lr = !0; var c = ve(r); l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown"); } typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Pt(e) { { for (var r = Object.keys(e.props), a = 0; a < r.length; a++) { var o = r[a]; if (o !== "children" && o !== "key") { Ue(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), Ue(null); break; } } e.ref !== null && (Ue(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null)); } } function ut(e, r, a) { var o = t(e); if (!o) { var c = ""; (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var d = Tt(r); d ? c += d : c += rt(); var f; e === null ? f = "null" : Le(e) ? f = "array" : e !== void 0 && e.$$typeof === z ? (f = "<" + (ve(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, l("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, c); } var y = Rr.apply(this, arguments); if (y == null) return y; if (o) for (var E = 2; E < arguments.length; E++) at(arguments[E], e); return e === ae ? Pt(y) : ot(y), y; } var it = !1; function kt(e) { var r = ut.bind(null, e); return r.type = e, it || (it = !0, se("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.