UNPKG

@desivocal/agents-cdn

Version:

Free Text To speech and AI Voice generator

1,320 lines (1,314 loc) 2.02 MB
var fM = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function g3(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var ME = { exports: {} }, fy = {}, LE = { exports: {} }, wn = {}; /** * @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 hM; function nB() { if (hM) return wn; hM = 1; var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), b = Symbol.iterator; function C(Z) { return Z === null || typeof Z != "object" ? null : (Z = b && Z[b] || Z["@@iterator"], typeof Z == "function" ? Z : null); } var x = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, _ = Object.assign, R = {}; function M(Z, ke, H) { this.props = Z, this.context = ke, this.refs = R, this.updater = H || x; } M.prototype.isReactComponent = {}, M.prototype.setState = function(Z, ke) { if (typeof Z != "object" && typeof Z != "function" && Z != 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, Z, ke, "setState"); }, M.prototype.forceUpdate = function(Z) { this.updater.enqueueForceUpdate(this, Z, "forceUpdate"); }; function A() { } A.prototype = M.prototype; function V(Z, ke, H) { this.props = Z, this.context = ke, this.refs = R, this.updater = H || x; } var B = V.prototype = new A(); B.constructor = V, _(B, M.prototype), B.isPureReactComponent = !0; var z = Array.isArray, I = Object.prototype.hasOwnProperty, N = { current: null }, ee = { key: !0, ref: !0, __self: !0, __source: !0 }; function J(Z, ke, H) { var bt, Tt = {}, ft = null, St = null; if (ke != null) for (bt in ke.ref !== void 0 && (St = ke.ref), ke.key !== void 0 && (ft = "" + ke.key), ke) I.call(ke, bt) && !ee.hasOwnProperty(bt) && (Tt[bt] = ke[bt]); var ht = arguments.length - 2; if (ht === 1) Tt.children = H; else if (1 < ht) { for (var Ot = Array(ht), Ft = 0; Ft < ht; Ft++) Ot[Ft] = arguments[Ft + 2]; Tt.children = Ot; } if (Z && Z.defaultProps) for (bt in ht = Z.defaultProps, ht) Tt[bt] === void 0 && (Tt[bt] = ht[bt]); return { $$typeof: t, type: Z, key: ft, ref: St, props: Tt, _owner: N.current }; } function he(Z, ke) { return { $$typeof: t, type: Z.type, key: ke, ref: Z.ref, props: Z.props, _owner: Z._owner }; } function q(Z) { return typeof Z == "object" && Z !== null && Z.$$typeof === t; } function ae(Z) { var ke = { "=": "=0", ":": "=2" }; return "$" + Z.replace(/[=:]/g, function(H) { return ke[H]; }); } var X = /\/+/g; function Ee(Z, ke) { return typeof Z == "object" && Z !== null && Z.key != null ? ae("" + Z.key) : ke.toString(36); } function _e(Z, ke, H, bt, Tt) { var ft = typeof Z; (ft === "undefined" || ft === "boolean") && (Z = null); var St = !1; if (Z === null) St = !0; else switch (ft) { case "string": case "number": St = !0; break; case "object": switch (Z.$$typeof) { case t: case e: St = !0; } } if (St) return St = Z, Tt = Tt(St), Z = bt === "" ? "." + Ee(St, 0) : bt, z(Tt) ? (H = "", Z != null && (H = Z.replace(X, "$&/") + "/"), _e(Tt, ke, H, "", function(Ft) { return Ft; })) : Tt != null && (q(Tt) && (Tt = he(Tt, H + (!Tt.key || St && St.key === Tt.key ? "" : ("" + Tt.key).replace(X, "$&/") + "/") + Z)), ke.push(Tt)), 1; if (St = 0, bt = bt === "" ? "." : bt + ":", z(Z)) for (var ht = 0; ht < Z.length; ht++) { ft = Z[ht]; var Ot = bt + Ee(ft, ht); St += _e(ft, ke, H, Ot, Tt); } else if (Ot = C(Z), typeof Ot == "function") for (Z = Ot.call(Z), ht = 0; !(ft = Z.next()).done; ) ft = ft.value, Ot = bt + Ee(ft, ht++), St += _e(ft, ke, H, Ot, Tt); else if (ft === "object") throw ke = String(Z), Error("Objects are not valid as a React child (found: " + (ke === "[object Object]" ? "object with keys {" + Object.keys(Z).join(", ") + "}" : ke) + "). If you meant to render a collection of children, use an array instead."); return St; } function qe(Z, ke, H) { if (Z == null) return Z; var bt = [], Tt = 0; return _e(Z, bt, "", "", function(ft) { return ke.call(H, ft, Tt++); }), bt; } function Ze(Z) { if (Z._status === -1) { var ke = Z._result; ke = ke(), ke.then(function(H) { (Z._status === 0 || Z._status === -1) && (Z._status = 1, Z._result = H); }, function(H) { (Z._status === 0 || Z._status === -1) && (Z._status = 2, Z._result = H); }), Z._status === -1 && (Z._status = 0, Z._result = ke); } if (Z._status === 1) return Z._result.default; throw Z._result; } var Be = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: Be, ReactCurrentBatchConfig: me, ReactCurrentOwner: N }; function F() { throw Error("act(...) is not supported in production builds of React."); } return wn.Children = { map: qe, forEach: function(Z, ke, H) { qe(Z, function() { ke.apply(this, arguments); }, H); }, count: function(Z) { var ke = 0; return qe(Z, function() { ke++; }), ke; }, toArray: function(Z) { return qe(Z, function(ke) { return ke; }) || []; }, only: function(Z) { if (!q(Z)) throw Error("React.Children.only expected to receive a single React element child."); return Z; } }, wn.Component = M, wn.Fragment = n, wn.Profiler = a, wn.PureComponent = V, wn.StrictMode = r, wn.Suspense = h, wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = je, wn.act = F, wn.cloneElement = function(Z, ke, H) { if (Z == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + Z + "."); var bt = _({}, Z.props), Tt = Z.key, ft = Z.ref, St = Z._owner; if (ke != null) { if (ke.ref !== void 0 && (ft = ke.ref, St = N.current), ke.key !== void 0 && (Tt = "" + ke.key), Z.type && Z.type.defaultProps) var ht = Z.type.defaultProps; for (Ot in ke) I.call(ke, Ot) && !ee.hasOwnProperty(Ot) && (bt[Ot] = ke[Ot] === void 0 && ht !== void 0 ? ht[Ot] : ke[Ot]); } var Ot = arguments.length - 2; if (Ot === 1) bt.children = H; else if (1 < Ot) { ht = Array(Ot); for (var Ft = 0; Ft < Ot; Ft++) ht[Ft] = arguments[Ft + 2]; bt.children = ht; } return { $$typeof: t, type: Z.type, key: Tt, ref: ft, props: bt, _owner: St }; }, wn.createContext = function(Z) { return Z = { $$typeof: l, _currentValue: Z, _currentValue2: Z, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, Z.Provider = { $$typeof: s, _context: Z }, Z.Consumer = Z; }, wn.createElement = J, wn.createFactory = function(Z) { var ke = J.bind(null, Z); return ke.type = Z, ke; }, wn.createRef = function() { return { current: null }; }, wn.forwardRef = function(Z) { return { $$typeof: c, render: Z }; }, wn.isValidElement = q, wn.lazy = function(Z) { return { $$typeof: v, _payload: { _status: -1, _result: Z }, _init: Ze }; }, wn.memo = function(Z, ke) { return { $$typeof: p, type: Z, compare: ke === void 0 ? null : ke }; }, wn.startTransition = function(Z) { var ke = me.transition; me.transition = {}; try { Z(); } finally { me.transition = ke; } }, wn.unstable_act = F, wn.useCallback = function(Z, ke) { return Be.current.useCallback(Z, ke); }, wn.useContext = function(Z) { return Be.current.useContext(Z); }, wn.useDebugValue = function() { }, wn.useDeferredValue = function(Z) { return Be.current.useDeferredValue(Z); }, wn.useEffect = function(Z, ke) { return Be.current.useEffect(Z, ke); }, wn.useId = function() { return Be.current.useId(); }, wn.useImperativeHandle = function(Z, ke, H) { return Be.current.useImperativeHandle(Z, ke, H); }, wn.useInsertionEffect = function(Z, ke) { return Be.current.useInsertionEffect(Z, ke); }, wn.useLayoutEffect = function(Z, ke) { return Be.current.useLayoutEffect(Z, ke); }, wn.useMemo = function(Z, ke) { return Be.current.useMemo(Z, ke); }, wn.useReducer = function(Z, ke, H) { return Be.current.useReducer(Z, ke, H); }, wn.useRef = function(Z) { return Be.current.useRef(Z); }, wn.useState = function(Z) { return Be.current.useState(Z); }, wn.useSyncExternalStore = function(Z, ke, H) { return Be.current.useSyncExternalStore(Z, ke, H); }, wn.useTransition = function() { return Be.current.useTransition(); }, wn.version = "18.3.1", wn; } var _y = { exports: {} }; _y.exports; var pM; function rB() { return pM || (pM = 1, function(t, e) { var n = {}; /** * @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. */ n.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 r = "18.3.1", a = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), v = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), A = Symbol.iterator, V = "@@iterator"; function B(O) { if (O === null || typeof O != "object") return null; var W = A && O[A] || O[V]; return typeof W == "function" ? W : null; } var z = { /** * @internal * @type {ReactComponent} */ current: null }, I = { transition: null }, N = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, ee = { /** * @internal * @type {ReactComponent} */ current: null }, J = {}, he = null; function q(O) { he = O; } J.setExtraStackFrame = function(O) { he = O; }, J.getCurrentStack = null, J.getStackAddendum = function() { var O = ""; he && (O += he); var W = J.getCurrentStack; return W && (O += W() || ""), O; }; var ae = !1, X = !1, Ee = !1, _e = !1, qe = !1, Ze = { ReactCurrentDispatcher: z, ReactCurrentBatchConfig: I, ReactCurrentOwner: ee }; Ze.ReactDebugCurrentFrame = J, Ze.ReactCurrentActQueue = N; function Be(O) { { for (var W = arguments.length, pe = new Array(W > 1 ? W - 1 : 0), Ce = 1; Ce < W; Ce++) pe[Ce - 1] = arguments[Ce]; je("warn", O, pe); } } function me(O) { { for (var W = arguments.length, pe = new Array(W > 1 ? W - 1 : 0), Ce = 1; Ce < W; Ce++) pe[Ce - 1] = arguments[Ce]; je("error", O, pe); } } function je(O, W, pe) { { var Ce = Ze.ReactDebugCurrentFrame, Ke = Ce.getStackAddendum(); Ke !== "" && (W += "%s", pe = pe.concat([Ke])); var Ct = pe.map(function(ut) { return String(ut); }); Ct.unshift("Warning: " + W), Function.prototype.apply.call(console[O], console, Ct); } } var F = {}; function Z(O, W) { { var pe = O.constructor, Ce = pe && (pe.displayName || pe.name) || "ReactClass", Ke = Ce + "." + W; if (F[Ke]) return; me("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.", W, Ce), F[Ke] = !0; } } var ke = { /** * 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(O) { 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(O, W, pe) { Z(O, "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(O, W, pe, Ce) { Z(O, "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(O, W, pe, Ce) { Z(O, "setState"); } }, H = Object.assign, bt = {}; Object.freeze(bt); function Tt(O, W, pe) { this.props = O, this.context = W, this.refs = bt, this.updater = pe || ke; } Tt.prototype.isReactComponent = {}, Tt.prototype.setState = function(O, W) { if (typeof O != "object" && typeof O != "function" && O != 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, O, W, "setState"); }, Tt.prototype.forceUpdate = function(O) { this.updater.enqueueForceUpdate(this, O, "forceUpdate"); }; { var ft = { 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)."] }, St = function(O, W) { Object.defineProperty(Tt.prototype, O, { get: function() { Be("%s(...) is deprecated in plain JavaScript React classes. %s", W[0], W[1]); } }); }; for (var ht in ft) ft.hasOwnProperty(ht) && St(ht, ft[ht]); } function Ot() { } Ot.prototype = Tt.prototype; function Ft(O, W, pe) { this.props = O, this.context = W, this.refs = bt, this.updater = pe || ke; } var On = Ft.prototype = new Ot(); On.constructor = Ft, H(On, Tt.prototype), On.isPureReactComponent = !0; function kn() { var O = { current: null }; return Object.seal(O), O; } var Bn = Array.isArray; function Gn(O) { return Bn(O); } function gr(O) { { var W = typeof Symbol == "function" && Symbol.toStringTag, pe = W && O[Symbol.toStringTag] || O.constructor.name || "Object"; return pe; } } function br(O) { try { return fr(O), !1; } catch { return !0; } } function fr(O) { return "" + O; } function Y(O) { if (br(O)) return me("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gr(O)), fr(O); } function oe(O, W, pe) { var Ce = O.displayName; if (Ce) return Ce; var Ke = W.displayName || W.name || ""; return Ke !== "" ? pe + "(" + Ke + ")" : pe; } function be(O) { return O.displayName || "Context"; } function ze(O) { if (O == null) return null; if (typeof O.tag == "number" && me("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function") return O.displayName || O.name || null; if (typeof O == "string") return O; switch (O) { case l: return "Fragment"; case s: return "Portal"; case h: return "Profiler"; case c: return "StrictMode"; case C: return "Suspense"; case x: return "SuspenseList"; } if (typeof O == "object") switch (O.$$typeof) { case v: var W = O; return be(W) + ".Consumer"; case p: var pe = O; return be(pe._context) + ".Provider"; case b: return oe(O, O.render, "ForwardRef"); case _: var Ce = O.displayName || null; return Ce !== null ? Ce : ze(O.type) || "Memo"; case R: { var Ke = O, Ct = Ke._payload, ut = Ke._init; try { return ze(ut(Ct)); } catch { return null; } } } return null; } var Ve = Object.prototype.hasOwnProperty, Oe = { key: !0, ref: !0, __self: !0, __source: !0 }, nt, It, ce; ce = {}; function Re(O) { if (Ve.call(O, "ref")) { var W = Object.getOwnPropertyDescriptor(O, "ref").get; if (W && W.isReactWarning) return !1; } return O.ref !== void 0; } function pt(O) { if (Ve.call(O, "key")) { var W = Object.getOwnPropertyDescriptor(O, "key").get; if (W && W.isReactWarning) return !1; } return O.key !== void 0; } function zt(O, W) { var pe = function() { nt || (nt = !0, me("%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)", W)); }; pe.isReactWarning = !0, Object.defineProperty(O, "key", { get: pe, configurable: !0 }); } function qt(O, W) { var pe = function() { It || (It = !0, me("%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)", W)); }; pe.isReactWarning = !0, Object.defineProperty(O, "ref", { get: pe, configurable: !0 }); } function Ie(O) { if (typeof O.ref == "string" && ee.current && O.__self && ee.current.stateNode !== O.__self) { var W = ze(ee.current.type); ce[W] || (me('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', W, O.ref), ce[W] = !0); } } var vt = function(O, W, pe, Ce, Ke, Ct, ut) { var Bt = { // This tag allows us to uniquely identify this as a React Element $$typeof: a, // Built-in properties that belong on the element type: O, key: W, ref: pe, props: ut, // Record the component responsible for creating this element. _owner: Ct }; return Bt._store = {}, Object.defineProperty(Bt._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(Bt, "_self", { configurable: !1, enumerable: !1, writable: !1, value: Ce }), Object.defineProperty(Bt, "_source", { configurable: !1, enumerable: !1, writable: !1, value: Ke }), Object.freeze && (Object.freeze(Bt.props), Object.freeze(Bt)), Bt; }; function Rt(O, W, pe) { var Ce, Ke = {}, Ct = null, ut = null, Bt = null, sn = null; if (W != null) { Re(W) && (ut = W.ref, Ie(W)), pt(W) && (Y(W.key), Ct = "" + W.key), Bt = W.__self === void 0 ? null : W.__self, sn = W.__source === void 0 ? null : W.__source; for (Ce in W) Ve.call(W, Ce) && !Oe.hasOwnProperty(Ce) && (Ke[Ce] = W[Ce]); } var Kn = arguments.length - 2; if (Kn === 1) Ke.children = pe; else if (Kn > 1) { for (var ir = Array(Kn), ar = 0; ar < Kn; ar++) ir[ar] = arguments[ar + 2]; Object.freeze && Object.freeze(ir), Ke.children = ir; } if (O && O.defaultProps) { var tn = O.defaultProps; for (Ce in tn) Ke[Ce] === void 0 && (Ke[Ce] = tn[Ce]); } if (Ct || ut) { var hr = typeof O == "function" ? O.displayName || O.name || "Unknown" : O; Ct && zt(Ke, hr), ut && qt(Ke, hr); } return vt(O, Ct, ut, Bt, sn, ee.current, Ke); } function rn(O, W) { var pe = vt(O.type, W, O.ref, O._self, O._source, O._owner, O.props); return pe; } function bn(O, W, pe) { if (O == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + O + "."); var Ce, Ke = H({}, O.props), Ct = O.key, ut = O.ref, Bt = O._self, sn = O._source, Kn = O._owner; if (W != null) { Re(W) && (ut = W.ref, Kn = ee.current), pt(W) && (Y(W.key), Ct = "" + W.key); var ir; O.type && O.type.defaultProps && (ir = O.type.defaultProps); for (Ce in W) Ve.call(W, Ce) && !Oe.hasOwnProperty(Ce) && (W[Ce] === void 0 && ir !== void 0 ? Ke[Ce] = ir[Ce] : Ke[Ce] = W[Ce]); } var ar = arguments.length - 2; if (ar === 1) Ke.children = pe; else if (ar > 1) { for (var tn = Array(ar), hr = 0; hr < ar; hr++) tn[hr] = arguments[hr + 2]; Ke.children = tn; } return vt(O.type, Ct, ut, Bt, sn, Kn, Ke); } function an(O) { return typeof O == "object" && O !== null && O.$$typeof === a; } var En = ".", Hn = ":"; function Xn(O) { var W = /[=:]/g, pe = { "=": "=0", ":": "=2" }, Ce = O.replace(W, function(Ke) { return pe[Ke]; }); return "$" + Ce; } var $n = !1, Mn = /\/+/g; function $i(O) { return O.replace(Mn, "$&/"); } function gt(O, W) { return typeof O == "object" && O !== null && O.key != null ? (Y(O.key), Xn("" + O.key)) : W.toString(36); } function Mt(O, W, pe, Ce, Ke) { var Ct = typeof O; (Ct === "undefined" || Ct === "boolean") && (O = null); var ut = !1; if (O === null) ut = !0; else switch (Ct) { case "string": case "number": ut = !0; break; case "object": switch (O.$$typeof) { case a: case s: ut = !0; } } if (ut) { var Bt = O, sn = Ke(Bt), Kn = Ce === "" ? En + gt(Bt, 0) : Ce; if (Gn(sn)) { var ir = ""; Kn != null && (ir = $i(Kn) + "/"), Mt(sn, W, ir, "", function(hg) { return hg; }); } else sn != null && (an(sn) && (sn.key && (!Bt || Bt.key !== sn.key) && Y(sn.key), sn = rn( sn, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children pe + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key (sn.key && (!Bt || Bt.key !== sn.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion $i("" + sn.key) + "/" ) : "") + Kn )), W.push(sn)); return 1; } var ar, tn, hr = 0, Hr = Ce === "" ? En : Ce + Hn; if (Gn(O)) for (var du = 0; du < O.length; du++) ar = O[du], tn = Hr + gt(ar, du), hr += Mt(ar, W, pe, tn, Ke); else { var Kd = B(O); if (typeof Kd == "function") { var ws = O; Kd === ws.entries && ($n || Be("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), $n = !0); for (var fu = Kd.call(ws), Zd, fg = 0; !(Zd = fu.next()).done; ) ar = Zd.value, tn = Hr + gt(ar, fg++), hr += Mt(ar, W, pe, tn, Ke); } else if (Ct === "object") { var Ih = String(O); throw new Error("Objects are not valid as a React child (found: " + (Ih === "[object Object]" ? "object with keys {" + Object.keys(O).join(", ") + "}" : Ih) + "). If you meant to render a collection of children, use an array instead."); } } return hr; } function Yn(O, W, pe) { if (O == null) return O; var Ce = [], Ke = 0; return Mt(O, Ce, "", "", function(Ct) { return W.call(pe, Ct, Ke++); }), Ce; } function Cn(O) { var W = 0; return Yn(O, function() { W++; }), W; } function pn(O, W, pe) { Yn(O, function() { W.apply(this, arguments); }, pe); } function Tn(O) { return Yn(O, function(W) { return W; }) || []; } function Sr(O) { if (!an(O)) throw new Error("React.Children.only expected to receive a single React element child."); return O; } function Xr(O) { var W = { $$typeof: v, // 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: O, _currentValue2: O, // 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 }; W.Provider = { $$typeof: p, _context: W }; var pe = !1, Ce = !1, Ke = !1; { var Ct = { $$typeof: v, _context: W }; Object.defineProperties(Ct, { Provider: { get: function() { return Ce || (Ce = !0, me("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), W.Provider; }, set: function(ut) { W.Provider = ut; } }, _currentValue: { get: function() { return W._currentValue; }, set: function(ut) { W._currentValue = ut; } }, _currentValue2: { get: function() { return W._currentValue2; }, set: function(ut) { W._currentValue2 = ut; } }, _threadCount: { get: function() { return W._threadCount; }, set: function(ut) { W._threadCount = ut; } }, Consumer: { get: function() { return pe || (pe = !0, me("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), W.Consumer; } }, displayName: { get: function() { return W.displayName; }, set: function(ut) { Ke || (Be("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", ut), Ke = !0); } } }), W.Consumer = Ct; } return W._currentRenderer = null, W._currentRenderer2 = null, W; } var Ar = -1, nr = 0, Jr = 1, Or = 2; function ga(O) { if (O._status === Ar) { var W = O._result, pe = W(); if (pe.then(function(Ct) { if (O._status === nr || O._status === Ar) { var ut = O; ut._status = Jr, ut._result = Ct; } }, function(Ct) { if (O._status === nr || O._status === Ar) { var ut = O; ut._status = Or, ut._result = Ct; } }), O._status === Ar) { var Ce = O; Ce._status = nr, Ce._result = pe; } } if (O._status === Jr) { var Ke = O._result; return Ke === void 0 && me(`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?`, Ke), "default" in Ke || me(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, Ke), Ke.default; } else throw O._result; } function eo(O) { var W = { // We use these fields to store the result. _status: Ar, _result: O }, pe = { $$typeof: R, _payload: W, _init: ga }; { var Ce, Ke; Object.defineProperties(pe, { defaultProps: { configurable: !0, get: function() { return Ce; }, set: function(Ct) { me("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."), Ce = Ct, Object.defineProperty(pe, "defaultProps", { enumerable: !0 }); } }, propTypes: { configurable: !0, get: function() { return Ke; }, set: function(Ct) { me("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."), Ke = Ct, Object.defineProperty(pe, "propTypes", { enumerable: !0 }); } } }); } return pe; } function ys(O) { O != null && O.$$typeof === _ ? me("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof O != "function" ? me("forwardRef requires a render function but was given %s.", O === null ? "null" : typeof O) : O.length !== 0 && O.length !== 2 && me("forwardRef render functions accept exactly two parameters: props and ref. %s", O.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), O != null && (O.defaultProps != null || O.propTypes != null) && me("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); var W = { $$typeof: b, render: O }; { var pe; Object.defineProperty(W, "displayName", { enumerable: !1, configurable: !0, get: function() { return pe; }, set: function(Ce) { pe = Ce, !O.name && !O.displayName && (O.displayName = Ce); } }); } return W; } var G; G = Symbol.for("react.module.reference"); function Ne(O) { return !!(typeof O == "string" || typeof O == "function" || O === l || O === h || qe || O === c || O === C || O === x || _e || O === M || ae || X || Ee || typeof O == "object" && O !== null && (O.$$typeof === R || O.$$typeof === _ || O.$$typeof === p || O.$$typeof === v || O.$$typeof === b || // 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. O.$$typeof === G || O.getModuleId !== void 0)); } function rt(O, W) { Ne(O) || me("memo: The first argument must be a component. Instead received: %s", O === null ? "null" : typeof O); var pe = { $$typeof: _, type: O, compare: W === void 0 ? null : W }; { var Ce; Object.defineProperty(pe, "displayName", { enumerable: !1, configurable: !0, get: function() { return Ce; }, set: function(Ke) { Ce = Ke, !O.name && !O.displayName && (O.displayName = Ke); } }); } return pe; } function at() { var O = z.current; return O === null && me(`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.`), O; } function dn(O) { var W = at(); if (O._context !== void 0) { var pe = O._context; pe.Consumer === O ? me("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?") : pe.Provider === O && me("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } return W.useContext(O); } function Kt(O) { var W = at(); return W.useState(O); } function mn(O, W, pe) { var Ce = at(); return Ce.useReducer(O, W, pe); } function on(O) { var W = at(); return W.useRef(O); } function Br(O, W) { var pe = at(); return pe.useEffect(O, W); } function vr(O, W) { var pe = at(); return pe.useInsertionEffect(O, W); } function kr(O, W) { var pe = at(); return pe.useLayoutEffect(O, W); } function qi(O, W) { var pe = at(); return pe.useCallback(O, W); } function Po(O, W) { var pe = at(); return pe.useMemo(O, W); } function qn(O, W, pe) { var Ce = at(); return Ce.useImperativeHandle(O, W, pe); } function Er(O, W) { { var pe = at(); return pe.useDebugValue(O, W); } } function Jt() { var O = at(); return O.useTransition(); } function Go(O) { var W = at(); return W.useDeferredValue(O); } function bs() { var O = at(); return O.useId(); } function Ah(O, W, pe) { var Ce = at(); return Ce.useSyncExternalStore(O, W, pe); } var Ss = 0, ol, va, Hd, Ji, $d, Oh, Mh; function ks() { } ks.__reactDisabledLog = !0; function sl() { { if (Ss === 0) { ol = console.log, va = console.info, Hd = console.warn, Ji = console.error, $d = console.group, Oh = console.groupCollapsed, Mh = console.groupEnd; var O = { configurable: !0, enumerable: !0, value: ks, writable: !0 }; Object.defineProperties(console, { info: O, log: O, warn: O, error: O, group: O, groupCollapsed: O, groupEnd: O }); } Ss++; } } function ya() { { if (Ss--, Ss === 0) { var O = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: H({}, O, { value: ol }), info: H({}, O, { value: va }), warn: H({}, O, { value: Hd }), error: H({}, O, { value: Ji }), group: H({}, O, { value: $d }), groupCollapsed: H({}, O, { value: Oh }), groupEnd: H({}, O, { value: Mh }) }); } Ss < 0 && me("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Yo = Ze.ReactCurrentDispatcher, ll; function cc(O, W, pe) { { if (ll === void 0) try { throw Error(); } catch (Ke) { var Ce = Ke.stack.trim().match(/\n( *(at )?)/); ll = Ce && Ce[1] || ""; } return ` ` + ll + O; } } var Cs = !1, ou; { var su = typeof WeakMap == "function" ? WeakMap : Map; ou = new su(); } function ul(O, W) { if (!O || Cs) return ""; { var pe = ou.get(O); if (pe !== void 0) return pe; } var Ce; Cs = !0; var Ke = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var Ct; Ct = Yo.current, Yo.current = null, sl(); try { if (W) { var ut = function() { throw Error(); }; if (Object.defineProperty(ut.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(ut, []); } catch (Hr) { Ce = Hr; } Reflect.construct(O, [], ut); } else { try { ut.call(); } catch (Hr) { Ce = Hr; } O.call(ut.prototype); } } else { try { throw Error(); } catch (Hr) { Ce = Hr; } O(); } } catch (Hr) { if (Hr && Ce && typeof Hr.stack == "string") { for (var Bt = Hr.stack.split(` `), sn = Ce.stack.split(` `), Kn = Bt.length - 1, ir = sn.length - 1; Kn >= 1 && ir >= 0 && Bt[Kn] !== sn[ir]; ) ir--; for (; Kn >= 1 && ir >= 0; Kn--, ir--) if (Bt[Kn] !== sn[ir]) { if (Kn !== 1 || ir !== 1) do if (Kn--, ir--, ir < 0 || Bt[Kn] !== sn[ir]) { var ar = ` ` + Bt[Kn].replace(" at new ", " at "); return O.displayName && ar.includes("<anonymous>") && (ar = ar.replace("<anonymous>", O.displayName)), typeof O == "function" && ou.set(O, ar), ar; } while (Kn >= 1 && ir >= 0); break; } } } finally { Cs = !1, Yo.current = Ct, ya(), Error.prepareStackTrace = Ke; } var tn = O ? O.displayName || O.name : "", hr = tn ? cc(tn) : ""; return typeof O == "function" && ou.set(O, hr), hr; } function qd(O, W, pe) { return ul(O, !1); } function Wd(O) { var W = O.prototype; return !!(W && W.isReactComponent); } function _n(O, W, pe) { if (O == null) return ""; if (typeof O == "function") return ul(O, Wd(O)); if (typeof O == "string") return cc(O); switch (O) { case C: return cc("Suspense"); case x: return cc("SuspenseList"); } if (typeof O == "object") switch (O.$$typeof) { case b: return qd(O.render); case _: return _n(O.type, W, pe); case R: { var Ce = O, Ke = Ce._payload, Ct = Ce._init; try { return _n(Ct(Ke), W, pe); } catch { } } } return ""; } var Gd = {}, dc = Ze.ReactDebugCurrentFrame; function Rn(O) { if (O) { var W = O._owner, pe = _n(O.type, O._source, W ? W.type : null); dc.setExtraStackFrame(pe); } else dc.setExtraStackFrame(null); } function Lh(O, W, pe, Ce, Ke) { { var Ct = Function.call.bind(Ve); for (var ut in O) if (Ct(O, ut)) { var Bt = void 0; try { if (typeof O[ut] != "function") { var sn = Error((Ce || "React class") + ": " + pe + " type `" + ut + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof O[ut] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw sn.name = "Invariant Violation", sn; } Bt = O[ut](W, ut, Ce, pe, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (Kn) { Bt = Kn; } Bt && !(Bt instanceof Error) && (Rn(Ke), me("%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).", Ce || "React class", pe, ut, typeof Bt), Rn(null)), Bt instanceof Error && !(Bt.message in Gd) && (Gd[Bt.message] = !0, Rn(Ke), me("Failed %s type: %s", pe, Bt.message), Rn(null)); } } } function Ko(O) { if (O) { var W = O._owner, pe = _n(O.type, O._source, W ? W.type : null); q(pe); } else q(null); } var Wt; Wt = !1; function lu() { if (ee.current) { var O = ze(ee.current.type); if (O) return ` Check the render method of \`` + O + "`."; } return ""; } function bi(O) { if (O !== void 0) { var W = O.fileName.replace(/^.*[\\\/]/, ""), pe = O.lineNumber; return ` Check your code at ` + W + ":" + pe + "."; } return ""; } function ba(O) { return O != null ? bi(O.__source) : ""; } var ea = {}; function Zo(O) { var W = lu(); if (!W) { var pe = typeof O == "string" ? O : O.displayName || O.name; pe && (W = ` Check the top-level render call using <` + pe + ">."); } return W; } function Ur(O, W) { if (!(!O._store || O._store.validated || O.key != null)) { O._store.validated = !0; var pe = Zo(W); if (!ea[pe]) { ea[pe] = !0; var Ce = ""; O && O._owner && O._owner !== ee.current && (Ce = " It was passed a child from " + ze(O._owner.type) + "."), Ko(O), me('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', pe, Ce), Ko(null); } } } function rr(O, W) { if (typeof O == "object") { if (Gn(O)) for (var pe = 0; pe < O.length; pe++) { var Ce = O[pe]; an(Ce) && Ur(Ce, W); } else if (an(O)) O._store && (O._store.validated = !0); else if (O) { var Ke = B(O); if (typeof Ke == "function" && Ke !== O.entries) for (var Ct = Ke.call(O), ut; !(ut = Ct.next()).done; ) an(ut.value) && Ur(ut.value, W); } } } function Do(O) { { var W = O.type; if (W == null || typeof W == "string") return; var pe; if (typeof W == "function") pe = W.propTypes; else if (typeof W == "object" && (W.$$typeof === b || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. W.$$typeof === _)) pe = W.propTypes; else return; if (pe) { var Ce = ze(W); Lh(pe, O.props, "prop", Ce, O); } else if (W.PropTypes !== void 0 && !Wt) { Wt = !0; var Ke = ze(W); me("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ke || "Unknown"); } typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && me("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function to(O) { { for (var W = Object.keys(O.props), pe = 0; pe < W.length; pe++) { var Ce = W[pe]; if (Ce !== "children" && Ce !== "key") { Ko(O), me("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ce), Ko(null); break; } } O.ref !== null && (Ko(O), me("Invalid attribute `ref` supplied to `React.Fragment`."), Ko(null)); } } function Wi(O, W, pe) { var Ce = Ne(O); if (!Ce) { var Ke = ""; (O === voi