UNPKG

@playai/sdk

Version:
1,321 lines (1,315 loc) 896 kB
var RN = Object.defineProperty; var kN = (c, u, d) => u in c ? RN(c, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : c[u] = d; var eo = (c, u, d) => kN(c, typeof u != "symbol" ? u + "" : u, d); function DN(c) { return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c; } var wC = { exports: {} }, rh = {}, bC = { exports: {} }, Ut = {}; /** * @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 Tb; function ON() { if (Tb) return Ut; Tb = 1; var c = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), g = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), z = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), Q = Symbol.iterator; function ee(U) { return U === null || typeof U != "object" ? null : (U = Q && U[Q] || U["@@iterator"], typeof U == "function" ? U : null); } var K = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, Ce = Object.assign, Be = {}; function tt(U, W, Ye) { this.props = U, this.context = W, this.refs = Be, this.updater = Ye || K; } tt.prototype.isReactComponent = {}, tt.prototype.setState = function(U, W) { if (typeof U != "object" && typeof U != "function" && U != 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, U, W, "setState"); }, tt.prototype.forceUpdate = function(U) { this.updater.enqueueForceUpdate(this, U, "forceUpdate"); }; function mt() { } mt.prototype = tt.prototype; function Le(U, W, Ye) { this.props = U, this.context = W, this.refs = Be, this.updater = Ye || K; } var _e = Le.prototype = new mt(); _e.constructor = Le, Ce(_e, tt.prototype), _e.isPureReactComponent = !0; var ze = Array.isArray, ve = Object.prototype.hasOwnProperty, Se = { current: null }, ce = { key: !0, ref: !0, __self: !0, __source: !0 }; function Ht(U, W, Ye) { var qe, ct = {}, at = null, St = null; if (W != null) for (qe in W.ref !== void 0 && (St = W.ref), W.key !== void 0 && (at = "" + W.key), W) ve.call(W, qe) && !ce.hasOwnProperty(qe) && (ct[qe] = W[qe]); var ut = arguments.length - 2; if (ut === 1) ct.children = Ye; else if (1 < ut) { for (var it = Array(ut), Kt = 0; Kt < ut; Kt++) it[Kt] = arguments[Kt + 2]; ct.children = it; } if (U && U.defaultProps) for (qe in ut = U.defaultProps, ut) ct[qe] === void 0 && (ct[qe] = ut[qe]); return { $$typeof: c, type: U, key: at, ref: St, props: ct, _owner: Se.current }; } function sn(U, W) { return { $$typeof: c, type: U.type, key: W, ref: U.ref, props: U.props, _owner: U._owner }; } function Xt(U) { return typeof U == "object" && U !== null && U.$$typeof === c; } function Ft(U) { var W = { "=": "=0", ":": "=2" }; return "$" + U.replace(/[=:]/g, function(Ye) { return W[Ye]; }); } var bn = /\/+/g; function We(U, W) { return typeof U == "object" && U !== null && U.key != null ? Ft("" + U.key) : W.toString(36); } function vt(U, W, Ye, qe, ct) { var at = typeof U; (at === "undefined" || at === "boolean") && (U = null); var St = !1; if (U === null) St = !0; else switch (at) { case "string": case "number": St = !0; break; case "object": switch (U.$$typeof) { case c: case u: St = !0; } } if (St) return St = U, ct = ct(St), U = qe === "" ? "." + We(St, 0) : qe, ze(ct) ? (Ye = "", U != null && (Ye = U.replace(bn, "$&/") + "/"), vt(ct, W, Ye, "", function(Kt) { return Kt; })) : ct != null && (Xt(ct) && (ct = sn(ct, Ye + (!ct.key || St && St.key === ct.key ? "" : ("" + ct.key).replace(bn, "$&/") + "/") + U)), W.push(ct)), 1; if (St = 0, qe = qe === "" ? "." : qe + ":", ze(U)) for (var ut = 0; ut < U.length; ut++) { at = U[ut]; var it = qe + We(at, ut); St += vt(at, W, Ye, it, ct); } else if (it = ee(U), typeof it == "function") for (U = it.call(U), ut = 0; !(at = U.next()).done; ) at = at.value, it = qe + We(at, ut++), St += vt(at, W, Ye, it, ct); else if (at === "object") throw W = String(U), Error("Objects are not valid as a React child (found: " + (W === "[object Object]" ? "object with keys {" + Object.keys(U).join(", ") + "}" : W) + "). If you meant to render a collection of children, use an array instead."); return St; } function Vt(U, W, Ye) { if (U == null) return U; var qe = [], ct = 0; return vt(U, qe, "", "", function(at) { return W.call(Ye, at, ct++); }), qe; } function At(U) { if (U._status === -1) { var W = U._result; W = W(), W.then(function(Ye) { (U._status === 0 || U._status === -1) && (U._status = 1, U._result = Ye); }, function(Ye) { (U._status === 0 || U._status === -1) && (U._status = 2, U._result = Ye); }), U._status === -1 && (U._status = 0, U._result = W); } if (U._status === 1) return U._result.default; throw U._result; } var Re = { current: null }, le = { transition: null }, ke = { ReactCurrentDispatcher: Re, ReactCurrentBatchConfig: le, ReactCurrentOwner: Se }; function de() { throw Error("act(...) is not supported in production builds of React."); } return Ut.Children = { map: Vt, forEach: function(U, W, Ye) { Vt(U, function() { W.apply(this, arguments); }, Ye); }, count: function(U) { var W = 0; return Vt(U, function() { W++; }), W; }, toArray: function(U) { return Vt(U, function(W) { return W; }) || []; }, only: function(U) { if (!Xt(U)) throw Error("React.Children.only expected to receive a single React element child."); return U; } }, Ut.Component = tt, Ut.Fragment = d, Ut.Profiler = S, Ut.PureComponent = Le, Ut.StrictMode = m, Ut.Suspense = O, Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ke, Ut.act = de, Ut.cloneElement = function(U, W, Ye) { if (U == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + U + "."); var qe = Ce({}, U.props), ct = U.key, at = U.ref, St = U._owner; if (W != null) { if (W.ref !== void 0 && (at = W.ref, St = Se.current), W.key !== void 0 && (ct = "" + W.key), U.type && U.type.defaultProps) var ut = U.type.defaultProps; for (it in W) ve.call(W, it) && !ce.hasOwnProperty(it) && (qe[it] = W[it] === void 0 && ut !== void 0 ? ut[it] : W[it]); } var it = arguments.length - 2; if (it === 1) qe.children = Ye; else if (1 < it) { ut = Array(it); for (var Kt = 0; Kt < it; Kt++) ut[Kt] = arguments[Kt + 2]; qe.children = ut; } return { $$typeof: c, type: U.type, key: ct, ref: at, props: qe, _owner: St }; }, Ut.createContext = function(U) { return U = { $$typeof: g, _currentValue: U, _currentValue2: U, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, U.Provider = { $$typeof: _, _context: U }, U.Consumer = U; }, Ut.createElement = Ht, Ut.createFactory = function(U) { var W = Ht.bind(null, U); return W.type = U, W; }, Ut.createRef = function() { return { current: null }; }, Ut.forwardRef = function(U) { return { $$typeof: D, render: U }; }, Ut.isValidElement = Xt, Ut.lazy = function(U) { return { $$typeof: q, _payload: { _status: -1, _result: U }, _init: At }; }, Ut.memo = function(U, W) { return { $$typeof: z, type: U, compare: W === void 0 ? null : W }; }, Ut.startTransition = function(U) { var W = le.transition; le.transition = {}; try { U(); } finally { le.transition = W; } }, Ut.unstable_act = de, Ut.useCallback = function(U, W) { return Re.current.useCallback(U, W); }, Ut.useContext = function(U) { return Re.current.useContext(U); }, Ut.useDebugValue = function() { }, Ut.useDeferredValue = function(U) { return Re.current.useDeferredValue(U); }, Ut.useEffect = function(U, W) { return Re.current.useEffect(U, W); }, Ut.useId = function() { return Re.current.useId(); }, Ut.useImperativeHandle = function(U, W, Ye) { return Re.current.useImperativeHandle(U, W, Ye); }, Ut.useInsertionEffect = function(U, W) { return Re.current.useInsertionEffect(U, W); }, Ut.useLayoutEffect = function(U, W) { return Re.current.useLayoutEffect(U, W); }, Ut.useMemo = function(U, W) { return Re.current.useMemo(U, W); }, Ut.useReducer = function(U, W, Ye) { return Re.current.useReducer(U, W, Ye); }, Ut.useRef = function(U) { return Re.current.useRef(U); }, Ut.useState = function(U) { return Re.current.useState(U); }, Ut.useSyncExternalStore = function(U, W, Ye) { return Re.current.useSyncExternalStore(U, W, Ye); }, Ut.useTransition = function() { return Re.current.useTransition(); }, Ut.version = "18.3.1", Ut; } var oh = { 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. */ oh.exports; var Rb; function NN() { return Rb || (Rb = 1, function(c, u) { 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 d = "18.3.1", m = Symbol.for("react.element"), S = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), z = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), Ce = Symbol.for("react.lazy"), Be = Symbol.for("react.offscreen"), tt = Symbol.iterator, mt = "@@iterator"; function Le(E) { if (E === null || typeof E != "object") return null; var R = tt && E[tt] || E[mt]; return typeof R == "function" ? R : null; } var _e = { /** * @internal * @type {ReactComponent} */ current: null }, ze = { transition: null }, ve = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, Se = { /** * @internal * @type {ReactComponent} */ current: null }, ce = {}, Ht = null; function sn(E) { Ht = E; } ce.setExtraStackFrame = function(E) { Ht = E; }, ce.getCurrentStack = null, ce.getStackAddendum = function() { var E = ""; Ht && (E += Ht); var R = ce.getCurrentStack; return R && (E += R() || ""), E; }; var Xt = !1, Ft = !1, bn = !1, We = !1, vt = !1, Vt = { ReactCurrentDispatcher: _e, ReactCurrentBatchConfig: ze, ReactCurrentOwner: Se }; Vt.ReactDebugCurrentFrame = ce, Vt.ReactCurrentActQueue = ve; function At(E) { { for (var R = arguments.length, V = new Array(R > 1 ? R - 1 : 0), Y = 1; Y < R; Y++) V[Y - 1] = arguments[Y]; le("warn", E, V); } } function Re(E) { { for (var R = arguments.length, V = new Array(R > 1 ? R - 1 : 0), Y = 1; Y < R; Y++) V[Y - 1] = arguments[Y]; le("error", E, V); } } function le(E, R, V) { { var Y = Vt.ReactDebugCurrentFrame, ue = Y.getStackAddendum(); ue !== "" && (R += "%s", V = V.concat([ue])); var Je = V.map(function(ye) { return String(ye); }); Je.unshift("Warning: " + R), Function.prototype.apply.call(console[E], console, Je); } } var ke = {}; function de(E, R) { { var V = E.constructor, Y = V && (V.displayName || V.name) || "ReactClass", ue = Y + "." + R; if (ke[ue]) return; Re("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, Y), ke[ue] = !0; } } var U = { /** * 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, V) { de(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, V, Y) { de(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, V, Y) { de(E, "setState"); } }, W = Object.assign, Ye = {}; Object.freeze(Ye); function qe(E, R, V) { this.props = E, this.context = R, this.refs = Ye, this.updater = V || U; } qe.prototype.isReactComponent = {}, qe.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"); }, qe.prototype.forceUpdate = function(E) { this.updater.enqueueForceUpdate(this, E, "forceUpdate"); }; { var ct = { 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)."] }, at = function(E, R) { Object.defineProperty(qe.prototype, E, { get: function() { At("%s(...) is deprecated in plain JavaScript React classes. %s", R[0], R[1]); } }); }; for (var St in ct) ct.hasOwnProperty(St) && at(St, ct[St]); } function ut() { } ut.prototype = qe.prototype; function it(E, R, V) { this.props = E, this.context = R, this.refs = Ye, this.updater = V || U; } var Kt = it.prototype = new ut(); Kt.constructor = it, W(Kt, qe.prototype), Kt.isPureReactComponent = !0; function Vn() { var E = { current: null }; return Object.seal(E), E; } var kn = Array.isArray; function Dn(E) { return kn(E); } function sr(E) { { var R = typeof Symbol == "function" && Symbol.toStringTag, V = R && E[Symbol.toStringTag] || E.constructor.name || "Object"; return V; } } function nr(E) { try { return qn(E), !1; } catch { return !0; } } function qn(E) { return "" + E; } function $n(E) { if (nr(E)) return Re("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(E)), qn(E); } function ia(E, R, V) { var Y = E.displayName; if (Y) return Y; var ue = R.displayName || R.name || ""; return ue !== "" ? V + "(" + ue + ")" : V; } function oa(E) { return E.displayName || "Context"; } function cr(E) { if (E == null) return null; if (typeof E.tag == "number" && Re("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 _: return "Fragment"; case S: return "Portal"; case D: return "Profiler"; case g: return "StrictMode"; case Q: return "Suspense"; case ee: return "SuspenseList"; } if (typeof E == "object") switch (E.$$typeof) { case z: var R = E; return oa(R) + ".Consumer"; case O: var V = E; return oa(V._context) + ".Provider"; case q: return ia(E, E.render, "ForwardRef"); case K: var Y = E.displayName || null; return Y !== null ? Y : cr(E.type) || "Memo"; case Ce: { var ue = E, Je = ue._payload, ye = ue._init; try { return cr(ye(Je)); } catch { return null; } } } return null; } var Ar = Object.prototype.hasOwnProperty, la = { key: !0, ref: !0, __self: !0, __source: !0 }, Mr, Da, Cr; Cr = {}; function ua(E) { if (Ar.call(E, "ref")) { var R = Object.getOwnPropertyDescriptor(E, "ref").get; if (R && R.isReactWarning) return !1; } return E.ref !== void 0; } function On(E) { if (Ar.call(E, "key")) { var R = Object.getOwnPropertyDescriptor(E, "key").get; if (R && R.isReactWarning) return !1; } return E.key !== void 0; } function Vr(E, R) { var V = function() { Mr || (Mr = !0, Re("%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)); }; V.isReactWarning = !0, Object.defineProperty(E, "key", { get: V, configurable: !0 }); } function Mi(E, R) { var V = function() { Da || (Da = !0, Re("%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)); }; V.isReactWarning = !0, Object.defineProperty(E, "ref", { get: V, configurable: !0 }); } function Oa(E) { if (typeof E.ref == "string" && Se.current && E.__self && Se.current.stateNode !== E.__self) { var R = cr(Se.current.type); Cr[R] || (Re('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), Cr[R] = !0); } } var pe = function(E, R, V, Y, ue, Je, ye) { var Xe = { // This tag allows us to uniquely identify this as a React Element $$typeof: m, // Built-in properties that belong on the element type: E, key: R, ref: V, props: ye, // Record the component responsible for creating this element. _owner: Je }; return Xe._store = {}, Object.defineProperty(Xe._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(Xe, "_self", { configurable: !1, enumerable: !1, writable: !1, value: Y }), Object.defineProperty(Xe, "_source", { configurable: !1, enumerable: !1, writable: !1, value: ue }), Object.freeze && (Object.freeze(Xe.props), Object.freeze(Xe)), Xe; }; function Ve(E, R, V) { var Y, ue = {}, Je = null, ye = null, Xe = null, xt = null; if (R != null) { ua(R) && (ye = R.ref, Oa(R)), On(R) && ($n(R.key), Je = "" + R.key), Xe = R.__self === void 0 ? null : R.__self, xt = R.__source === void 0 ? null : R.__source; for (Y in R) Ar.call(R, Y) && !la.hasOwnProperty(Y) && (ue[Y] = R[Y]); } var It = arguments.length - 2; if (It === 1) ue.children = V; else if (It > 1) { for (var vn = Array(It), un = 0; un < It; un++) vn[un] = arguments[un + 2]; Object.freeze && Object.freeze(vn), ue.children = vn; } if (E && E.defaultProps) { var hn = E.defaultProps; for (Y in hn) ue[Y] === void 0 && (ue[Y] = hn[Y]); } if (Je || ye) { var yn = typeof E == "function" ? E.displayName || E.name || "Unknown" : E; Je && Vr(ue, yn), ye && Mi(ue, yn); } return pe(E, Je, ye, Xe, xt, Se.current, ue); } function Ct(E, R) { var V = pe(E.type, R, E.ref, E._self, E._source, E._owner, E.props); return V; } function Qt(E, R, V) { if (E == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + E + "."); var Y, ue = W({}, E.props), Je = E.key, ye = E.ref, Xe = E._self, xt = E._source, It = E._owner; if (R != null) { ua(R) && (ye = R.ref, It = Se.current), On(R) && ($n(R.key), Je = "" + R.key); var vn; E.type && E.type.defaultProps && (vn = E.type.defaultProps); for (Y in R) Ar.call(R, Y) && !la.hasOwnProperty(Y) && (R[Y] === void 0 && vn !== void 0 ? ue[Y] = vn[Y] : ue[Y] = R[Y]); } var un = arguments.length - 2; if (un === 1) ue.children = V; else if (un > 1) { for (var hn = Array(un), yn = 0; yn < un; yn++) hn[yn] = arguments[yn + 2]; ue.children = hn; } return pe(E.type, Je, ye, Xe, xt, It, ue); } function Jt(E) { return typeof E == "object" && E !== null && E.$$typeof === m; } var Bn = ".", Nn = ":"; function Lr(E) { var R = /[=:]/g, V = { "=": "=0", ":": "=2" }, Y = E.replace(R, function(ue) { return V[ue]; }); return "$" + Y; } var ln = !1, $r = /\/+/g; function en(E) { return E.replace($r, "$&/"); } function tn(E, R) { return typeof E == "object" && E !== null && E.key != null ? ($n(E.key), Lr("" + E.key)) : R.toString(36); } function Si(E, R, V, Y, ue) { var Je = typeof E; (Je === "undefined" || Je === "boolean") && (E = null); var ye = !1; if (E === null) ye = !0; else switch (Je) { case "string": case "number": ye = !0; break; case "object": switch (E.$$typeof) { case m: case S: ye = !0; } } if (ye) { var Xe = E, xt = ue(Xe), It = Y === "" ? Bn + tn(Xe, 0) : Y; if (Dn(xt)) { var vn = ""; It != null && (vn = en(It) + "/"), Si(xt, R, vn, "", function(np) { return np; }); } else xt != null && (Jt(xt) && (xt.key && (!Xe || Xe.key !== xt.key) && $n(xt.key), xt = Ct( xt, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children V + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key (xt.key && (!Xe || Xe.key !== xt.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion en("" + xt.key) + "/" ) : "") + It )), R.push(xt)); return 1; } var un, hn, yn = 0, zt = Y === "" ? Bn : Y + Nn; if (Dn(E)) for (var oo = 0; oo < E.length; oo++) un = E[oo], hn = zt + tn(un, oo), yn += Si(un, R, V, hn, ue); else { var Tu = Le(E); if (typeof Tu == "function") { var js = E; Tu === js.entries && (ln || At("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ln = !0); for (var tp = Tu.call(js), wi, Ps = 0; !(wi = tp.next()).done; ) un = wi.value, hn = zt + tn(un, Ps++), yn += Si(un, R, V, hn, ue); } else if (Je === "object") { var Fs = String(E); throw new Error("Objects are not valid as a React child (found: " + (Fs === "[object Object]" ? "object with keys {" + Object.keys(E).join(", ") + "}" : Fs) + "). If you meant to render a collection of children, use an array instead."); } } return yn; } function Za(E, R, V) { if (E == null) return E; var Y = [], ue = 0; return Si(E, Y, "", "", function(Je) { return R.call(V, Je, ue++); }), Y; } function Po(E) { var R = 0; return Za(E, function() { R++; }), R; } function Tl(E, R, V) { Za(E, function() { R.apply(this, arguments); }, V); } function hu(E) { return Za(E, function(R) { return R; }) || []; } function no(E) { if (!Jt(E)) throw new Error("React.Children.only expected to receive a single React element child."); return E; } function Fo(E) { var R = { $$typeof: z, // 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: O, _context: R }; var V = !1, Y = !1, ue = !1; { var Je = { $$typeof: z, _context: R }; Object.defineProperties(Je, { Provider: { get: function() { return Y || (Y = !0, Re("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(ye) { R.Provider = ye; } }, _currentValue: { get: function() { return R._currentValue; }, set: function(ye) { R._currentValue = ye; } }, _currentValue2: { get: function() { return R._currentValue2; }, set: function(ye) { R._currentValue2 = ye; } }, _threadCount: { get: function() { return R._threadCount; }, set: function(ye) { R._threadCount = ye; } }, Consumer: { get: function() { return V || (V = !0, Re("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(ye) { ue || (At("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", ye), ue = !0); } } }), R.Consumer = Je; } return R._currentRenderer = null, R._currentRenderer2 = null, R; } var Na = -1, Li = 0, Aa = 1, Ci = 2; function Br(E) { if (E._status === Na) { var R = E._result, V = R(); if (V.then(function(Je) { if (E._status === Li || E._status === Na) { var ye = E; ye._status = Aa, ye._result = Je; } }, function(Je) { if (E._status === Li || E._status === Na) { var ye = E; ye._status = Ci, ye._result = Je; } }), E._status === Na) { var Y = E; Y._status = Li, Y._result = V; } } if (E._status === Aa) { var ue = E._result; return ue === void 0 && Re(`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?`, ue), "default" in ue || Re(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, ue), ue.default; } else throw E._result; } function Ma(E) { var R = { // We use these fields to store the result. _status: Na, _result: E }, V = { $$typeof: Ce, _payload: R, _init: Br }; { var Y, ue; Object.defineProperties(V, { defaultProps: { configurable: !0, get: function() { return Y; }, set: function(Je) { Re("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."), Y = Je, Object.defineProperty(V, "defaultProps", { enumerable: !0 }); } }, propTypes: { configurable: !0, get: function() { return ue; }, set: function(Je) { Re("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."), ue = Je, Object.defineProperty(V, "propTypes", { enumerable: !0 }); } } }); } return V; } function zi(E) { E != null && E.$$typeof === K ? Re("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof E != "function" ? Re("forwardRef requires a render function but was given %s.", E === null ? "null" : typeof E) : E.length !== 0 && E.length !== 2 && Re("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) && Re("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); var R = { $$typeof: q, render: E }; { var V; Object.defineProperty(R, "displayName", { enumerable: !1, configurable: !0, get: function() { return V; }, set: function(Y) { V = Y, !E.name && !E.displayName && (E.displayName = Y); } }); } return R; } var Ui; Ui = Symbol.for("react.module.reference"); function k(E) { return !!(typeof E == "string" || typeof E == "function" || E === _ || E === D || vt || E === g || E === Q || E === ee || We || E === Be || Xt || Ft || bn || typeof E == "object" && E !== null && (E.$$typeof === Ce || E.$$typeof === K || E.$$typeof === O || E.$$typeof === z || E.$$typeof === q || // 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 === Ui || E.getModuleId !== void 0)); } function ne(E, R) { k(E) || Re("memo: The first argument must be a component. Instead received: %s", E === null ? "null" : typeof E); var V = { $$typeof: K, type: E, compare: R === void 0 ? null : R }; { var Y; Object.defineProperty(V, "displayName", { enumerable: !1, configurable: !0, get: function() { return Y; }, set: function(ue) { Y = ue, !E.name && !E.displayName && (E.displayName = ue); } }); } return V; } function oe() { var E = _e.current; return E === null && Re(`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 Fe(E) { var R = oe(); if (E._context !== void 0) { var V = E._context; V.Consumer === E ? Re("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?") : V.Provider === E && Re("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } return R.useContext(E); } function Rt(E) { var R = oe(); return R.useState(E); } function Mt(E, R, V) { var Y = oe(); return Y.useReducer(E, R, V); } function Ke(E) { var R = oe(); return R.useRef(E); } function Et(E, R) { var V = oe(); return V.useEffect(E, R); } function Xn(E, R) { var V = oe(); return V.useInsertionEffect(E, R); } function pn(E, R) { var V = oe(); return V.useLayoutEffect(E, R); } function Sn(E, R) { var V = oe(); return V.useCallback(E, R); } function zr(E, R) { var V = oe(); return V.useMemo(E, R); } function ji(E, R, V) { var Y = oe(); return Y.useImperativeHandle(E, R, V); } function $t(E, R) { { var V = oe(); return V.useDebugValue(E, R); } } function fr() { var E = oe(); return E.useTransition(); } function Yr(E) { var R = oe(); return R.useDeferredValue(E); } function _t() { var E = oe(); return E.useId(); } function Ga(E, R, V) { var Y = oe(); return Y.useSyncExternalStore(E, R, V); } var Io = 0, mu, Ho, sa, Ms, Wr, Ls, zs; function Zc() { } Zc.__reactDisabledLog = !0; function yu() { { if (Io === 0) { mu = console.log, Ho = console.info, sa = console.warn, Ms = console.error, Wr = console.group, Ls = console.groupCollapsed, zs = console.groupEnd; var E = { configurable: !0, enumerable: !0, value: Zc, writable: !0 }; Object.defineProperties(console, { info: E, log: E, warn: E, error: E, group: E, groupCollapsed: E, groupEnd: E }); } Io++; } } function Vo() { { if (Io--, Io === 0) { var E = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: W({}, E, { value: mu }), info: W({}, E, { value: Ho }), warn: W({}, E, { value: sa }), error: W({}, E, { value: Ms }), group: W({}, E, { value: Wr }), groupCollapsed: W({}, E, { value: Ls }), groupEnd: W({}, E, { value: zs }) }); } Io < 0 && Re("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Ei = Vt.ReactCurrentDispatcher, Zr; function $o(E, R, V) { { if (Zr === void 0) try { throw Error(); } catch (ue) { var Y = ue.stack.trim().match(/\n( *(at )?)/); Zr = Y && Y[1] || ""; } return ` ` + Zr + E; } } var Bo = !1, Yo; { var gu = typeof WeakMap == "function" ? WeakMap : Map; Yo = new gu(); } function Su(E, R) { if (!E || Bo) return ""; { var V = Yo.get(E); if (V !== void 0) return V; } var Y; Bo = !0; var ue = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var Je; Je = Ei.current, Ei.current = null, yu(); try { if (R) { var ye = function() { throw Error(); }; if (Object.defineProperty(ye.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(ye, []); } catch (zt) { Y = zt; } Reflect.construct(E, [], ye); } else { try { ye.call(); } catch (zt) { Y = zt; } E.call(ye.prototype); } } else { try { throw Error(); } catch (zt) { Y = zt; } E(); } } catch (zt) { if (zt && Y && typeof zt.stack == "string") { for (var Xe = zt.stack.split(` `), xt = Y.stack.split(` `), It = Xe.length - 1, vn = xt.length - 1; It >= 1 && vn >= 0 && Xe[It] !== xt[vn]; ) vn--; for (; It >= 1 && vn >= 0; It--, vn--) if (Xe[It] !== xt[vn]) { if (It !== 1 || vn !== 1) do if (It--, vn--, vn < 0 || Xe[It] !== xt[vn]) { var un = ` ` + Xe[It].replace(" at new ", " at "); return E.displayName && un.includes("<anonymous>") && (un = un.replace("<anonymous>", E.displayName)), typeof E == "function" && Yo.set(E, un), un; } while (It >= 1 && vn >= 0); break; } } } finally { Bo = !1, Ei.current = Je, Vo(), Error.prepareStackTrace = ue; } var hn = E ? E.displayName || E.name : "", yn = hn ? $o(hn) : ""; return typeof E == "function" && Yo.set(E, yn), yn; } function ro(E, R, V) { return Su(E, !1); } function ep(E) { var R = E.prototype; return !!(R && R.isReactComponent); } function Pi(E, R, V) { if (E == null) return ""; if (typeof E == "function") return Su(E, ep(E)); if (typeof E == "string") return $o(E); switch (E) { case Q: return $o("Suspense"); case ee: return $o("SuspenseList"); } if (typeof E == "object") switch (E.$$typeof) { case q: return ro(E.render); case K: return Pi(E.type, R, V); case Ce: { var Y = E, ue = Y._payload, Je = Y._init; try { return Pi(Je(ue), R, V); } catch { } } } return ""; } var Bt = {}, Cu = Vt.ReactDebugCurrentFrame; function Rl(E) { if (E) { var R = E._owner, V = Pi(E.type, E._source, R ? R.type : null); Cu.setExtraStackFrame(V); } else Cu.setExtraStackFrame(null); } function Eu(E, R, V, Y, ue) { { var Je = Function.call.bind(Ar); for (var ye in E) if (Je(E, ye)) { var Xe = void 0; try { if (typeof E[ye] != "function") { var xt = Error((Y || "React class") + ": " + V + " type `" + ye + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof E[ye] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw xt.name = "Invariant Violation", xt; } Xe = E[ye](R, ye, Y, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (It) { Xe = It; } Xe && !(Xe instanceof Error) && (Rl(ue), Re("%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).", Y || "React class", V, ye, typeof Xe), Rl(null)), Xe instanceof Error && !(Xe.message in Bt) && (Bt[Xe.message] = !0, Rl(ue), Re("Failed %s type: %s", V, Xe.message), Rl(null)); } } } function Lt(E) { if (E) { var R = E._owner, V = Pi(E.type, E._source, R ? R.type : null); sn(V); } else sn(null); } var _u; _u = !1; function wu() { if (Se.current) { var E = cr(Se.current.type); if (E) return ` Check the render method of \`` + E + "`."; } return ""; } function ft(E) { if (E !== void 0) { var R = E.fileName.replace(/^.*[\\\/]/, ""), V = E.lineNumber; return ` Check your code at ` + R + ":" + V + "."; } return ""; } function kl(E) { return E != null ? ft(E.__source) : ""; } var An = {}; function ca(E) { var R = wu(); if (!R) { var V = typeof E == "string" ? E : E.displayName || E.name; V && (R = ` Check the top-level render call using <` + V + ">."); } return R; } function Gr(E, R) { if (!(!E._store || E._store.validated || E.key != null)) { E._store.validated = !0; var V = ca(R); if (!An[V]) { An[V] = !0; var Y = ""; E && E._owner && E._owner !== Se.current && (Y = " It was passed a child from " + cr(E._owner.type) + "."), Lt(E), Re('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, Y), Lt(null); } } } function Wo(E, R) { if (typeof E == "object") { if (Dn(E)) for (var V = 0; V < E.length; V++) { var Y = E[V]; Jt(Y) && Gr(Y, R); } else if (Jt(E)) E._store && (E._store.validated = !0); else if (E) { var ue = Le(E); if (typeof ue == "function" && ue !== E.entries) for (var Je = ue.call(E), ye; !(ye = Je.next()).done; ) Jt(ye.value) && Gr(ye.value, R); } } } function jn(E) { { var R = E.type; if (R == null || typeof R == "string") return; var V; if (typeof R == "function") V = R.propTypes; else if (typeof R == "object" && (R.$$typeof === q || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. R.$$typeof === K)) V = R.propTypes; else return; if (V) { var Y = cr(R); Eu(V, E.props, "prop", Y, E); } else if (R.PropTypes !== void 0 && !_u) { _u = !0; var ue = cr(R); Re("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ue || "Unknown"); } typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && Re("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function nn(E) { { for (var R = Object.keys(E.props), V = 0; V < R.length; V++) { var Y = R[V]; if (Y !== "children" && Y !== "key") { Lt(E), Re("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), Lt(null); break; } } E.ref !== null && (Lt(E), Re("Invalid attribute `ref` supplied to `React.Fragment`."), Lt(null)); } } function Gc(E, R, V) { var Y = k(E); if (!Y) { var ue = ""; (E === void 0 || typeof E == "object" && E !== null && Object.keys(E).length === 0) && (ue += " You likely forgot to export your component from the file it's defined