UNPKG

@react-smufl/core

Version:

React component library for rendering sheet music with SMuFL-compliant music font

1,367 lines (1,360 loc) 80.4 kB
var br = {}, Ht = { get exports() { return br; }, set exports(v) { br = v; } }, Ke = {}, Ce = {}, Gt = { get exports() { return Ce; }, set exports(v) { Ce = v; } }, _ = {}; /** * @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 vt; function Kt() { if (vt) return _; vt = 1; var v = Symbol.for("react.element"), f = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), Y = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), ne = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), G = Symbol.iterator; function ae(n) { return n === null || typeof n != "object" ? null : (n = G && n[G] || n["@@iterator"], typeof n == "function" ? n : null); } var ee = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, fe = Object.assign, Fe = {}; function oe(n, s, m) { this.props = n, this.context = s, this.refs = Fe, this.updater = m || ee; } oe.prototype.isReactComponent = {}, oe.prototype.setState = function(n, s) { 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, s, "setState"); }, oe.prototype.forceUpdate = function(n) { this.updater.enqueueForceUpdate(this, n, "forceUpdate"); }; function ue() { } ue.prototype = oe.prototype; function M(n, s, m) { this.props = n, this.context = s, this.refs = Fe, this.updater = m || ee; } var me = M.prototype = new ue(); me.constructor = M, fe(me, oe.prototype), me.isPureReactComponent = !0; var ie = Array.isArray, B = Object.prototype.hasOwnProperty, Q = { current: null }, le = { key: !0, ref: !0, __self: !0, __source: !0 }; function ye(n, s, m) { var w, b = {}, A = null, $ = null; if (s != null) for (w in s.ref !== void 0 && ($ = s.ref), s.key !== void 0 && (A = "" + s.key), s) B.call(s, w) && !le.hasOwnProperty(w) && (b[w] = s[w]); var j = arguments.length - 2; if (j === 1) b.children = m; else if (1 < j) { for (var P = Array(j), q = 0; q < j; q++) P[q] = arguments[q + 2]; b.children = P; } if (n && n.defaultProps) for (w in j = n.defaultProps, j) b[w] === void 0 && (b[w] = j[w]); return { $$typeof: v, type: n, key: A, ref: $, props: b, _owner: Q.current }; } function we(n, s) { return { $$typeof: v, type: n.type, key: s, ref: n.ref, props: n.props, _owner: n._owner }; } function Se(n) { return typeof n == "object" && n !== null && n.$$typeof === v; } function Be(n) { var s = { "=": "=0", ":": "=2" }; return "$" + n.replace(/[=:]/g, function(m) { return s[m]; }); } var Te = /\/+/g; function Z(n, s) { return typeof n == "object" && n !== null && n.key != null ? Be("" + n.key) : s.toString(36); } function re(n, s, m, w, b) { var A = typeof n; (A === "undefined" || A === "boolean") && (n = null); var $ = !1; if (n === null) $ = !0; else switch (A) { case "string": case "number": $ = !0; break; case "object": switch (n.$$typeof) { case v: case f: $ = !0; } } if ($) return $ = n, b = b($), n = w === "" ? "." + Z($, 0) : w, ie(b) ? (m = "", n != null && (m = n.replace(Te, "$&/") + "/"), re(b, s, m, "", function(q) { return q; })) : b != null && (Se(b) && (b = we(b, m + (!b.key || $ && $.key === b.key ? "" : ("" + b.key).replace(Te, "$&/") + "/") + n)), s.push(b)), 1; if ($ = 0, w = w === "" ? "." : w + ":", ie(n)) for (var j = 0; j < n.length; j++) { A = n[j]; var P = w + Z(A, j); $ += re(A, s, m, P, b); } else if (P = ae(n), typeof P == "function") for (n = P.call(n), j = 0; !(A = n.next()).done; ) A = A.value, P = w + Z(A, j++), $ += re(A, s, m, P, b); else if (A === "object") throw s = String(n), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."); return $; } function K(n, s, m) { if (n == null) return n; var w = [], b = 0; return re(n, w, "", "", function(A) { return s.call(m, A, b++); }), w; } function se(n) { if (n._status === -1) { var s = n._result; s = s(), s.then(function(m) { (n._status === 0 || n._status === -1) && (n._status = 1, n._result = m); }, function(m) { (n._status === 0 || n._status === -1) && (n._status = 2, n._result = m); }), n._status === -1 && (n._status = 0, n._result = s); } if (n._status === 1) return n._result.default; throw n._result; } var p = { current: null }, de = { transition: null }, Oe = { ReactCurrentDispatcher: p, ReactCurrentBatchConfig: de, ReactCurrentOwner: Q }; return _.Children = { map: K, forEach: function(n, s, m) { K(n, function() { s.apply(this, arguments); }, m); }, count: function(n) { var s = 0; return K(n, function() { s++; }), s; }, toArray: function(n) { return K(n, function(s) { return s; }) || []; }, only: function(n) { if (!Se(n)) throw Error("React.Children.only expected to receive a single React element child."); return n; } }, _.Component = oe, _.Fragment = T, _.Profiler = D, _.PureComponent = M, _.StrictMode = O, _.Suspense = V, _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Oe, _.cloneElement = function(n, s, m) { if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + "."); var w = fe({}, n.props), b = n.key, A = n.ref, $ = n._owner; if (s != null) { if (s.ref !== void 0 && (A = s.ref, $ = Q.current), s.key !== void 0 && (b = "" + s.key), n.type && n.type.defaultProps) var j = n.type.defaultProps; for (P in s) B.call(s, P) && !le.hasOwnProperty(P) && (w[P] = s[P] === void 0 && j !== void 0 ? j[P] : s[P]); } var P = arguments.length - 2; if (P === 1) w.children = m; else if (1 < P) { j = Array(P); for (var q = 0; q < P; q++) j[q] = arguments[q + 2]; w.children = j; } return { $$typeof: v, type: n.type, key: b, ref: A, props: w, _owner: $ }; }, _.createContext = function(n) { return n = { $$typeof: Y, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: S, _context: n }, n.Consumer = n; }, _.createElement = ye, _.createFactory = function(n) { var s = ye.bind(null, n); return s.type = n, s; }, _.createRef = function() { return { current: null }; }, _.forwardRef = function(n) { return { $$typeof: H, render: n }; }, _.isValidElement = Se, _.lazy = function(n) { return { $$typeof: U, _payload: { _status: -1, _result: n }, _init: se }; }, _.memo = function(n, s) { return { $$typeof: ne, type: n, compare: s === void 0 ? null : s }; }, _.startTransition = function(n) { var s = de.transition; de.transition = {}; try { n(); } finally { de.transition = s; } }, _.unstable_act = function() { throw Error("act(...) is not supported in production builds of React."); }, _.useCallback = function(n, s) { return p.current.useCallback(n, s); }, _.useContext = function(n) { return p.current.useContext(n); }, _.useDebugValue = function() { }, _.useDeferredValue = function(n) { return p.current.useDeferredValue(n); }, _.useEffect = function(n, s) { return p.current.useEffect(n, s); }, _.useId = function() { return p.current.useId(); }, _.useImperativeHandle = function(n, s, m) { return p.current.useImperativeHandle(n, s, m); }, _.useInsertionEffect = function(n, s) { return p.current.useInsertionEffect(n, s); }, _.useLayoutEffect = function(n, s) { return p.current.useLayoutEffect(n, s); }, _.useMemo = function(n, s) { return p.current.useMemo(n, s); }, _.useReducer = function(n, s, m) { return p.current.useReducer(n, s, m); }, _.useRef = function(n) { return p.current.useRef(n); }, _.useState = function(n) { return p.current.useState(n); }, _.useSyncExternalStore = function(n, s, m) { return p.current.useSyncExternalStore(n, s, m); }, _.useTransition = function() { return p.current.useTransition(); }, _.version = "18.2.0", _; } var Xe = {}, Jt = { get exports() { return Xe; }, set exports(v) { Xe = v; } }; /** * @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. */ var pt; function Xt() { return pt || (pt = 1, function(v, f) { 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 T = "18.2.0", O = Symbol.for("react.element"), D = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), V = Symbol.for("react.provider"), ne = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), fe = Symbol.for("react.lazy"), Fe = Symbol.for("react.offscreen"), oe = Symbol.iterator, ue = "@@iterator"; function M(e) { if (e === null || typeof e != "object") return null; var r = oe && e[oe] || e[ue]; return typeof r == "function" ? r : null; } var me = { /** * @internal * @type {ReactComponent} */ current: null }, ie = { transition: null }, B = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, Q = { /** * @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 Se = !1, Be = !1, Te = !1, Z = !1, re = !1, K = { ReactCurrentDispatcher: me, ReactCurrentBatchConfig: ie, ReactCurrentOwner: Q }; K.ReactDebugCurrentFrame = le, K.ReactCurrentActQueue = B; 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 p(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, i = o.getStackAddendum(); i !== "" && (r += "%s", a = a.concat([i])); var y = a.map(function(d) { return String(d); }); y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y); } } var Oe = {}; function n(e, r) { { var a = e.constructor, o = a && (a.displayName || a.name) || "ReactClass", i = o + "." + r; if (Oe[i]) return; p("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), Oe[i] = !0; } } var s = { /** * 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) { n(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) { n(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) { n(e, "setState"); } }, m = Object.assign, w = {}; Object.freeze(w); function b(e, r, a) { this.props = e, this.context = r, this.refs = w, this.updater = a || s; } 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 A = { 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)."] }, $ = 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 j in A) A.hasOwnProperty(j) && $(j, A[j]); } function P() { } P.prototype = b.prototype; function q(e, r, a) { this.props = e, this.context = r, this.refs = w, this.updater = a || s; } var ge = q.prototype = new P(); ge.constructor = q, m(ge, b.prototype), ge.isPureReactComponent = !0; function Rr() { var e = { current: null }; return Object.seal(e), e; } var rr = Array.isArray; function Le(e) { return rr(e); } function Cr(e) { { var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; return a; } } function Ne(e) { try { return Pe(e), !1; } catch { return !0; } } function Pe(e) { return "" + e; } function ke(e) { if (Ne(e)) return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(e)), Pe(e); } function tr(e, r, a) { var o = e.displayName; if (o) return o; var i = r.displayName || r.name || ""; return i !== "" ? a + "(" + i + ")" : a; } function je(e) { return e.displayName || "Context"; } function ve(e) { if (e == null) return null; if (typeof e.tag == "number" && p("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 S: return "Fragment"; case D: return "Portal"; case H: return "Profiler"; case Y: return "StrictMode"; case G: return "Suspense"; case ae: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case ne: var r = e; return je(r) + ".Consumer"; case V: var a = e; return je(a._context) + ".Provider"; case U: return tr(e, e.render, "ForwardRef"); case ee: var o = e.displayName || null; return o !== null ? o : ve(e.type) || "Memo"; case fe: { var i = e, y = i._payload, d = i._init; try { return ve(d(y)); } catch { return null; } } } return null; } var xe = Object.prototype.hasOwnProperty, Me = { key: !0, ref: !0, __self: !0, __source: !0 }, nr, ar, We; We = {}; function ze(e) { if (xe.call(e, "ref")) { var r = Object.getOwnPropertyDescriptor(e, "ref").get; if (r && r.isReactWarning) return !1; } return e.ref !== void 0; } function _e(e) { if (xe.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1; } return e.key !== void 0; } function wr(e, r) { var a = function() { nr || (nr = !0, p("%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 or(e, r) { var a = function() { ar || (ar = !0, p("%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 ur(e) { if (typeof e.ref == "string" && Q.current && e.__self && Q.current.stateNode !== e.__self) { var r = ve(Q.current.type); We[r] || (p('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), We[r] = !0); } } var Ae = function(e, r, a, o, i, y, d) { var h = { // This tag allows us to uniquely identify this as a React Element $$typeof: O, // Built-in properties that belong on the element type: e, key: r, ref: a, props: d, // Record the component responsible for creating this element. _owner: y }; return h._store = {}, Object.defineProperty(h._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(h, "_self", { configurable: !1, enumerable: !1, writable: !1, value: o }), Object.defineProperty(h, "_source", { configurable: !1, enumerable: !1, writable: !1, value: i }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h; }; function Sr(e, r, a) { var o, i = {}, y = null, d = null, h = null, R = null; if (r != null) { ze(r) && (d = r.ref, ur(r)), _e(r) && (ke(r.key), y = "" + r.key), h = r.__self === void 0 ? null : r.__self, R = r.__source === void 0 ? null : r.__source; for (o in r) xe.call(r, o) && !Me.hasOwnProperty(o) && (i[o] = r[o]); } var x = arguments.length - 2; if (x === 1) i.children = a; else if (x > 1) { for (var I = Array(x), F = 0; F < x; F++) I[F] = arguments[F + 2]; Object.freeze && Object.freeze(I), i.children = I; } if (e && e.defaultProps) { var N = e.defaultProps; for (o in N) i[o] === void 0 && (i[o] = N[o]); } if (y || d) { var z = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; y && wr(i, z), d && or(i, z); } return Ae(e, y, d, h, R, Q.current, i); } function Tr(e, r) { var a = Ae(e.type, r, e.ref, e._self, e._source, e._owner, e.props); return a; } function Or(e, r, a) { if (e == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); var o, i = m({}, e.props), y = e.key, d = e.ref, h = e._self, R = e._source, x = e._owner; if (r != null) { ze(r) && (d = r.ref, x = Q.current), _e(r) && (ke(r.key), y = "" + r.key); var I; e.type && e.type.defaultProps && (I = e.type.defaultProps); for (o in r) xe.call(r, o) && !Me.hasOwnProperty(o) && (r[o] === void 0 && I !== void 0 ? i[o] = I[o] : i[o] = r[o]); } var F = arguments.length - 2; if (F === 1) i.children = a; else if (F > 1) { for (var N = Array(F), z = 0; z < F; z++) N[z] = arguments[z + 2]; i.children = N; } return Ae(e.type, y, d, h, R, x, i); } function be(e) { return typeof e == "object" && e !== null && e.$$typeof === O; } var ir = ".", Pr = ":"; function kr(e) { var r = /[=:]/g, a = { "=": "=0", ":": "=2" }, o = e.replace(r, function(i) { return a[i]; }); return "$" + o; } var Ve = !1, sr = /\/+/g; function he(e) { return e.replace(sr, "$&/"); } function De(e, r) { return typeof e == "object" && e !== null && e.key != null ? (ke(e.key), kr("" + e.key)) : r.toString(36); } function Ee(e, r, a, o, i) { var y = typeof e; (y === "undefined" || y === "boolean") && (e = null); var d = !1; if (e === null) d = !0; else switch (y) { case "string": case "number": d = !0; break; case "object": switch (e.$$typeof) { case O: case D: d = !0; } } if (d) { var h = e, R = i(h), x = o === "" ? ir + De(h, 0) : o; if (Le(R)) { var I = ""; x != null && (I = he(x) + "/"), Ee(R, r, I, "", function(qt) { return qt; }); } else R != null && (be(R) && (R.key && (!h || h.key !== R.key) && ke(R.key), R = Tr( R, // 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 (R.key && (!h || h.key !== R.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion he("" + R.key) + "/" ) : "") + x )), r.push(R)); return 1; } var F, N, z = 0, X = o === "" ? ir : o + Pr; if (Le(e)) for (var _r = 0; _r < e.length; _r++) F = e[_r], N = X + De(F, _r), z += Ee(F, r, a, N, i); else { var Yr = M(e); if (typeof Yr == "function") { var ft = e; Yr === ft.entries && (Ve || se("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ve = !0); for (var Bt = Yr.call(ft), lt, zt = 0; !(lt = Bt.next()).done; ) F = lt.value, N = X + De(F, zt++), z += Ee(F, r, a, N, i); } else if (y === "object") { var dt = String(e); throw new Error("Objects are not valid as a React child (found: " + (dt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : dt) + "). If you meant to render a collection of children, use an array instead."); } } return z; } function $e(e, r, a) { if (e == null) return e; var o = [], i = 0; return Ee(e, o, "", "", function(y) { return r.call(a, y, i++); }), o; } function jr(e) { var r = 0; return $e(e, function() { r++; }), r; } function cr(e, r, a) { $e(e, function() { r.apply(this, arguments); }, a); } function xr(e) { return $e(e, function(r) { return r; }) || []; } function fr(e) { if (!be(e)) throw new Error("React.Children.only expected to receive a single React element child."); return e; } function lr(e) { var r = { $$typeof: ne, // 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: V, _context: r }; var a = !1, o = !1, i = !1; { var y = { $$typeof: ne, _context: r }; Object.defineProperties(y, { Provider: { get: function() { return o || (o = !0, p("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(d) { r.Provider = d; } }, _currentValue: { get: function() { return r._currentValue; }, set: function(d) { r._currentValue = d; } }, _currentValue2: { get: function() { return r._currentValue2; }, set: function(d) { r._currentValue2 = d; } }, _threadCount: { get: function() { return r._threadCount; }, set: function(d) { r._threadCount = d; } }, Consumer: { get: function() { return a || (a = !0, p("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(d) { i || (se("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", d), i = !0); } } }), r.Consumer = y; } return r._currentRenderer = null, r._currentRenderer2 = null, r; } var Ie = -1, qe = 0, He = 1, Ar = 2; function Dr(e) { if (e._status === Ie) { var r = e._result, a = r(); if (a.then(function(y) { if (e._status === qe || e._status === Ie) { var d = e; d._status = He, d._result = y; } }, function(y) { if (e._status === qe || e._status === Ie) { var d = e; d._status = Ar, d._result = y; } }), e._status === Ie) { var o = e; o._status = qe, o._result = a; } } if (e._status === He) { var i = e._result; return i === void 0 && p(`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?`, i), "default" in i || p(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, i), i.default; } else throw e._result; } function $r(e) { var r = { // We use these fields to store the result. _status: Ie, _result: e }, a = { $$typeof: fe, _payload: r, _init: Dr }; { var o, i; Object.defineProperties(a, { defaultProps: { configurable: !0, get: function() { return o; }, set: function(y) { p("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 = y, Object.defineProperty(a, "defaultProps", { enumerable: !0 }); } }, propTypes: { configurable: !0, get: function() { return i; }, set: function(y) { p("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."), i = y, Object.defineProperty(a, "propTypes", { enumerable: !0 }); } } }); } return a; } function Ir(e) { e != null && e.$$typeof === ee ? p("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? p("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && p("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) && p("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); var r = { $$typeof: U, 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 t; t = Symbol.for("react.module.reference"); function u(e) { return !!(typeof e == "string" || typeof e == "function" || e === S || e === H || re || e === Y || e === G || e === ae || Z || e === Fe || Se || Be || Te || typeof e == "object" && e !== null && (e.$$typeof === fe || e.$$typeof === ee || e.$$typeof === V || e.$$typeof === ne || e.$$typeof === U || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. e.$$typeof === t || e.getModuleId !== void 0)); } function c(e, r) { u(e) || p("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e); var a = { $$typeof: ee, type: e, compare: r === void 0 ? null : r }; { var o; Object.defineProperty(a, "displayName", { enumerable: !1, configurable: !0, get: function() { return o; }, set: function(i) { o = i, !e.name && !e.displayName && (e.displayName = i); } }); } return a; } function l() { var e = me.current; return e === null && p(`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 C(e) { var r = l(); if (e._context !== void 0) { var a = e._context; a.Consumer === e ? p("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 && p("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } return r.useContext(e); } function k(e) { var r = l(); return r.useState(e); } function E(e, r, a) { var o = l(); return o.useReducer(e, r, a); } function g(e) { var r = l(); return r.useRef(e); } function J(e, r) { var a = l(); return a.useEffect(e, r); } function L(e, r) { var a = l(); return a.useInsertionEffect(e, r); } function W(e, r) { var a = l(); return a.useLayoutEffect(e, r); } function te(e, r) { var a = l(); return a.useCallback(e, r); } function Re(e, r) { var a = l(); return a.useMemo(e, r); } function dr(e, r, a) { var o = l(); return o.useImperativeHandle(e, r, a); } function ce(e, r) { { var a = l(); return a.useDebugValue(e, r); } } function Et() { var e = l(); return e.useTransition(); } function Rt(e) { var r = l(); return r.useDeferredValue(e); } function Ct() { var e = l(); return e.useId(); } function wt(e, r, a) { var o = l(); return o.useSyncExternalStore(e, r, a); } var Ge = 0, Br, zr, qr, Hr, Gr, Kr, Jr; function Xr() { } Xr.__reactDisabledLog = !0; function St() { { if (Ge === 0) { Br = console.log, zr = console.info, qr = console.warn, Hr = console.error, Gr = console.group, Kr = 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 Tt() { { if (Ge--, Ge === 0) { var e = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: m({}, e, { value: Br }), info: m({}, e, { value: zr }), warn: m({}, e, { value: qr }), error: m({}, e, { value: Hr }), group: m({}, e, { value: Gr }), groupCollapsed: m({}, e, { value: Kr }), groupEnd: m({}, e, { value: Jr }) }); } Ge < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Fr = K.ReactCurrentDispatcher, Lr; function vr(e, r, a) { { if (Lr === void 0) try { throw Error(); } catch (i) { var o = i.stack.trim().match(/\n( *(at )?)/); Lr = o && o[1] || ""; } return ` ` + Lr + e; } } var Nr = !1, pr; { var Ot = typeof WeakMap == "function" ? WeakMap : Map; pr = new Ot(); } function Qr(e, r) { if (!e || Nr) return ""; { var a = pr.get(e); if (a !== void 0) return a; } var o; Nr = !0; var i = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var y; y = Fr.current, Fr.current = null, St(); try { if (r) { var d = function() { throw Error(); }; if (Object.defineProperty(d.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(d, []); } catch (X) { o = X; } Reflect.construct(e, [], d); } else { try { d.call(); } catch (X) { o = X; } e.call(d.prototype); } } else { try { throw Error(); } catch (X) { o = X; } e(); } } catch (X) { if (X && o && typeof X.stack == "string") { for (var h = X.stack.split(` `), R = o.stack.split(` `), x = h.length - 1, I = R.length - 1; x >= 1 && I >= 0 && h[x] !== R[I]; ) I--; for (; x >= 1 && I >= 0; x--, I--) if (h[x] !== R[I]) { if (x !== 1 || I !== 1) do if (x--, I--, I < 0 || h[x] !== R[I]) { var F = ` ` + h[x].replace(" at new ", " at "); return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && pr.set(e, F), F; } while (x >= 1 && I >= 0); break; } } } finally { Nr = !1, Fr.current = y, Tt(), Error.prepareStackTrace = i; } var N = e ? e.displayName || e.name : "", z = N ? vr(N) : ""; return typeof e == "function" && pr.set(e, z), z; } function Pt(e, r, a) { return Qr(e, !1); } function kt(e) { var r = e.prototype; return !!(r && r.isReactComponent); } function yr(e, r, a) { if (e == null) return ""; if (typeof e == "function") return Qr(e, kt(e)); if (typeof e == "string") return vr(e); switch (e) { case G: return vr("Suspense"); case ae: return vr("SuspenseList"); } if (typeof e == "object") switch (e.$$typeof) { case U: return Pt(e.render); case ee: return yr(e.type, r, a); case fe: { var o = e, i = o._payload, y = o._init; try { return yr(y(i), r, a); } catch { } } } return ""; } var Zr = {}, et = K.ReactDebugCurrentFrame; function hr(e) { if (e) { var r = e._owner, a = yr(e.type, e._source, r ? r.type : null); et.setExtraStackFrame(a); } else et.setExtraStackFrame(null); } function jt(e, r, a, o, i) { { var y = Function.call.bind(xe); for (var d in e) if (y(e, d)) { var h = void 0; try { if (typeof e[d] != "function") { var R = Error((o || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw R.name = "Invariant Violation", R; } h = e[d](r, d, o, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (x) { h = x; } h && !(h instanceof Error) && (hr(i), p("%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, d, typeof h), hr(null)), h instanceof Error && !(h.message in Zr) && (Zr[h.message] = !0, hr(i), p("Failed %s type: %s", a, h.message), hr(null)); } } } function Ue(e) { if (e) { var r = e._owner, a = yr(e.type, e._source, r ? r.type : null); we(a); } else we(null); } var Mr; Mr = !1; function rt() { if (Q.current) { var e = ve(Q.current.type); if (e) return ` Check the render method of \`` + e + "`."; } return ""; } function xt(e) { if (e !== void 0) { var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber; return ` Check your code at ` + r + ":" + a + "."; } return ""; } function At(e) { return e != null ? xt(e.__source) : ""; } var tt = {}; function Dt(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 = Dt(r); if (!tt[a]) { tt[a] = !0; var o = ""; e && e._owner && e._owner !== Q.current && (o = " It was passed a child from " + ve(e._owner.type) + "."), Ue(e), p('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]; be(o) && nt(o, r); } else if (be(e)) e._store && (e._store.validated = !0); else if (e) { var i = M(e); if (typeof i == "function" && i !== e.entries) for (var y = i.call(e), d; !(d = y.next()).done; ) be(d.value) && nt(d.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 === U || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. r.$$typeof === ee)) a = r.propTypes; else return; if (a) { var o = ve(r); jt(a, e.props, "prop", o, e); } else if (r.PropTypes !== void 0 && !Mr) { Mr = !0; var i = ve(r); p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); } typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function $t(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), p("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), p("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null)); } } function ut(e, r, a) { var o = u(e); if (!o) { var i = ""; (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 y = At(r); y ? i += y : i += rt(); var d; e === null ? d = "null" : Le(e) ? d = "array" : e !== void 0 && e.$$typeof === O ? (d = "<" + (ve(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, p("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i); } var h = Sr.apply(this, arguments); if (h == null) return h;