@wethegit/react-marquee
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -1,59 +0,8 @@ | ||
import ur, { useState as Pe, useRef as Se, useCallback as Cr, useMemo as xr, useEffect as wr } from "react"; | ||
function Ar(n) { | ||
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n; | ||
import fr, { useState as Ce, useRef as we, useCallback as Ir, useMemo as kr, useEffect as $r } from "react"; | ||
function Dr(i) { | ||
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i; | ||
} | ||
var De = { exports: {} }, ve = {}; | ||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
var Ce, He; | ||
function Ye() { | ||
if (He) | ||
return Ce; | ||
He = 1; | ||
var n = Object.getOwnPropertySymbols, W = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable; | ||
function v(d) { | ||
if (d == null) | ||
throw new TypeError("Object.assign cannot be called with null or undefined"); | ||
return Object(d); | ||
} | ||
function S() { | ||
try { | ||
if (!Object.assign) | ||
return !1; | ||
var d = new String("abc"); | ||
if (d[5] = "de", Object.getOwnPropertyNames(d)[0] === "5") | ||
return !1; | ||
for (var C = {}, f = 0; f < 10; f++) | ||
C["_" + String.fromCharCode(f)] = f; | ||
var E = Object.getOwnPropertyNames(C).map(function(c) { | ||
return C[c]; | ||
}); | ||
if (E.join("") !== "0123456789") | ||
return !1; | ||
var T = {}; | ||
return "abcdefghijklmnopqrst".split("").forEach(function(c) { | ||
T[c] = c; | ||
}), Object.keys(Object.assign({}, T)).join("") === "abcdefghijklmnopqrst"; | ||
} catch { | ||
return !1; | ||
} | ||
} | ||
return Ce = S() ? Object.assign : function(d, C) { | ||
for (var f, E = v(d), T, c = 1; c < arguments.length; c++) { | ||
f = Object(arguments[c]); | ||
for (var h in f) | ||
W.call(f, h) && (E[h] = f[h]); | ||
if (n) { | ||
T = n(f); | ||
for (var j = 0; j < T.length; j++) | ||
g.call(f, T[j]) && (E[T[j]] = f[T[j]]); | ||
} | ||
} | ||
return E; | ||
}, Ce; | ||
} | ||
/** @license React v17.0.2 | ||
var Me = { exports: {} }, be = {}; | ||
/** | ||
* @license React | ||
* react-jsx-runtime.production.min.js | ||
@@ -66,27 +15,23 @@ * | ||
*/ | ||
var Xe; | ||
function jr() { | ||
if (Xe) | ||
return ve; | ||
Xe = 1, Ye(); | ||
var n = ur, W = 60103; | ||
if (ve.Fragment = 60107, typeof Symbol == "function" && Symbol.for) { | ||
var g = Symbol.for; | ||
W = g("react.element"), ve.Fragment = g("react.fragment"); | ||
var Ze; | ||
function Mr() { | ||
if (Ze) | ||
return be; | ||
Ze = 1; | ||
var i = fr, M = Symbol.for("react.element"), I = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, O = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function C(c, p, R) { | ||
var s, m = {}, D = null, F = null; | ||
R !== void 0 && (D = "" + R), p.key !== void 0 && (D = "" + p.key), p.ref !== void 0 && (F = p.ref); | ||
for (s in p) | ||
d.call(p, s) && !l.hasOwnProperty(s) && (m[s] = p[s]); | ||
if (c && c.defaultProps) | ||
for (s in p = c.defaultProps, p) | ||
m[s] === void 0 && (m[s] = p[s]); | ||
return { $$typeof: M, type: c, key: D, ref: F, props: m, _owner: O.current }; | ||
} | ||
var v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = Object.prototype.hasOwnProperty, d = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function C(f, E, T) { | ||
var c, h = {}, j = null, I = null; | ||
T !== void 0 && (j = "" + T), E.key !== void 0 && (j = "" + E.key), E.ref !== void 0 && (I = E.ref); | ||
for (c in E) | ||
S.call(E, c) && !d.hasOwnProperty(c) && (h[c] = E[c]); | ||
if (f && f.defaultProps) | ||
for (c in E = f.defaultProps, E) | ||
h[c] === void 0 && (h[c] = E[c]); | ||
return { $$typeof: W, type: f, key: j, ref: I, props: h, _owner: v.current }; | ||
} | ||
return ve.jsx = C, ve.jsxs = C, ve; | ||
return be.Fragment = I, be.jsx = C, be.jsxs = C, be; | ||
} | ||
var xe = {}; | ||
/** @license React v17.0.2 | ||
var he = {}; | ||
/** | ||
* @license React | ||
* react-jsx-runtime.development.js | ||
@@ -99,571 +44,591 @@ * | ||
*/ | ||
var Ze; | ||
function Ir() { | ||
return Ze || (Ze = 1, function(n) { | ||
process.env.NODE_ENV !== "production" && function() { | ||
var W = ur, g = Ye(), v = 60103, S = 60106; | ||
n.Fragment = 60107; | ||
var d = 60108, C = 60114, f = 60109, E = 60110, T = 60112, c = 60113, h = 60120, j = 60115, I = 60116, F = 60121, D = 60122, L = 60117, B = 60129, V = 60131; | ||
if (typeof Symbol == "function" && Symbol.for) { | ||
var s = Symbol.for; | ||
v = s("react.element"), S = s("react.portal"), n.Fragment = s("react.fragment"), d = s("react.strict_mode"), C = s("react.profiler"), f = s("react.provider"), E = s("react.context"), T = s("react.forward_ref"), c = s("react.suspense"), h = s("react.suspense_list"), j = s("react.memo"), I = s("react.lazy"), F = s("react.block"), D = s("react.server.block"), L = s("react.fundamental"), s("react.scope"), s("react.opaque.id"), B = s("react.debug_trace_mode"), s("react.offscreen"), V = s("react.legacy_hidden"); | ||
var Qe; | ||
function Fr() { | ||
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() { | ||
var i = fr, M = Symbol.for("react.element"), I = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), z = Symbol.iterator, W = "@@iterator"; | ||
function L(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = z && e[z] || e[W]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var N = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function x(e) { | ||
{ | ||
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++) | ||
n[f - 1] = arguments[f]; | ||
j("error", e, n); | ||
} | ||
var q = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator"; | ||
function ee(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = q && e[q] || e[a]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
function j(e, r, n) { | ||
{ | ||
var f = N.ReactDebugCurrentFrame, A = f.getStackAddendum(); | ||
A !== "" && (r += "%s", n = n.concat([A])); | ||
var Y = n.map(function(P) { | ||
return String(P); | ||
}); | ||
Y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, Y); | ||
} | ||
var Z = W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function z(e) { | ||
{ | ||
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++) | ||
i[l - 1] = arguments[l]; | ||
pe("error", e, i); | ||
} | ||
} | ||
var q = !1, a = !1, ee = !1, ve = !1, pe = !1, ie; | ||
ie = Symbol.for("react.module.reference"); | ||
function ye(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === d || e === l || pe || e === O || e === R || e === s || ve || e === F || q || a || ee || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === m || e.$$typeof === C || e.$$typeof === c || e.$$typeof === p || // 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 === ie || e.getModuleId !== void 0)); | ||
} | ||
function ue(e, r, n) { | ||
var f = e.displayName; | ||
if (f) | ||
return f; | ||
var A = r.displayName || r.name || ""; | ||
return A !== "" ? n + "(" + A + ")" : n; | ||
} | ||
function se(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function H(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && x("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 d: | ||
return "Fragment"; | ||
case I: | ||
return "Portal"; | ||
case l: | ||
return "Profiler"; | ||
case O: | ||
return "StrictMode"; | ||
case R: | ||
return "Suspense"; | ||
case s: | ||
return "SuspenseList"; | ||
} | ||
function pe(e, r, i) { | ||
{ | ||
var l = Z.ReactDebugCurrentFrame, M = l.getStackAddendum(); | ||
M !== "" && (r += "%s", i = i.concat([M])); | ||
var Y = i.map(function(A) { | ||
return "" + A; | ||
}); | ||
Y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, Y); | ||
} | ||
} | ||
var ye = !1; | ||
function ue(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === n.Fragment || e === C || e === B || e === d || e === c || e === h || e === V || ye || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === j || e.$$typeof === f || e.$$typeof === E || e.$$typeof === T || e.$$typeof === L || e.$$typeof === F || e[0] === D)); | ||
} | ||
function Ee(e, r, i) { | ||
var l = r.displayName || r.name || ""; | ||
return e.displayName || (l !== "" ? i + "(" + l + ")" : i); | ||
} | ||
function se(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function J(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && z("Received an unexpected object in getComponentName(). 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 n.Fragment: | ||
return "Fragment"; | ||
case S: | ||
return "Portal"; | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case c: | ||
var r = e; | ||
return se(r) + ".Consumer"; | ||
case C: | ||
return "Profiler"; | ||
case d: | ||
return "StrictMode"; | ||
case c: | ||
return "Suspense"; | ||
case h: | ||
return "SuspenseList"; | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case E: | ||
var r = e; | ||
return se(r) + ".Consumer"; | ||
case f: | ||
var i = e; | ||
return se(i._context) + ".Provider"; | ||
case T: | ||
return Ee(e, e.render, "ForwardRef"); | ||
case j: | ||
return J(e.type); | ||
case F: | ||
return J(e._render); | ||
case I: { | ||
var l = e, M = l._payload, Y = l._init; | ||
try { | ||
return J(Y(M)); | ||
} catch { | ||
return null; | ||
} | ||
var n = e; | ||
return se(n._context) + ".Provider"; | ||
case p: | ||
return ue(e, e.render, "ForwardRef"); | ||
case m: | ||
var f = e.displayName || null; | ||
return f !== null ? f : H(e.type) || "Memo"; | ||
case D: { | ||
var A = e, Y = A._payload, P = A._init; | ||
try { | ||
return H(P(Y)); | ||
} catch { | ||
return null; | ||
} | ||
} | ||
return null; | ||
} | ||
var re = 0, H, Q, oe, ce, t, u, b; | ||
function _() { | ||
} | ||
_.__reactDisabledLog = !0; | ||
function p() { | ||
{ | ||
if (re === 0) { | ||
H = console.log, Q = console.info, oe = console.warn, ce = console.error, t = console.group, u = console.groupCollapsed, b = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: _, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: e, | ||
log: e, | ||
warn: e, | ||
error: e, | ||
group: e, | ||
groupCollapsed: e, | ||
groupEnd: e | ||
}); | ||
} | ||
re++; | ||
} | ||
} | ||
function x() { | ||
{ | ||
if (re--, re === 0) { | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
log: g({}, e, { | ||
value: H | ||
}), | ||
info: g({}, e, { | ||
value: Q | ||
}), | ||
warn: g({}, e, { | ||
value: oe | ||
}), | ||
error: g({}, e, { | ||
value: ce | ||
}), | ||
group: g({}, e, { | ||
value: t | ||
}), | ||
groupCollapsed: g({}, e, { | ||
value: u | ||
}), | ||
groupEnd: g({}, e, { | ||
value: b | ||
}) | ||
}); | ||
} | ||
re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
return null; | ||
} | ||
var G = Object.assign, re = 0, K, Q, ae, fe, t, u, E; | ||
function h() { | ||
} | ||
h.__reactDisabledLog = !0; | ||
function v() { | ||
{ | ||
if (re === 0) { | ||
K = console.log, Q = console.info, ae = console.warn, fe = console.error, t = console.group, u = console.groupCollapsed, E = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: h, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: e, | ||
log: e, | ||
warn: e, | ||
error: e, | ||
group: e, | ||
groupCollapsed: e, | ||
groupEnd: e | ||
}); | ||
} | ||
re++; | ||
} | ||
var y = Z.ReactCurrentDispatcher, m; | ||
function R(e, r, i) { | ||
{ | ||
if (m === void 0) | ||
try { | ||
throw Error(); | ||
} catch (M) { | ||
var l = M.stack.trim().match(/\n( *(at )?)/); | ||
m = l && l[1] || ""; | ||
} | ||
return ` | ||
` + m + e; | ||
} | ||
function S() { | ||
{ | ||
if (re--, re === 0) { | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
log: G({}, e, { | ||
value: K | ||
}), | ||
info: G({}, e, { | ||
value: Q | ||
}), | ||
warn: G({}, e, { | ||
value: ae | ||
}), | ||
error: G({}, e, { | ||
value: fe | ||
}), | ||
group: G({}, e, { | ||
value: t | ||
}), | ||
groupCollapsed: G({}, e, { | ||
value: u | ||
}), | ||
groupEnd: G({}, e, { | ||
value: E | ||
}) | ||
}); | ||
} | ||
re < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
var w = !1, O; | ||
} | ||
var y = N.ReactCurrentDispatcher, b; | ||
function g(e, r, n) { | ||
{ | ||
var G = typeof WeakMap == "function" ? WeakMap : Map; | ||
O = new G(); | ||
if (b === void 0) | ||
try { | ||
throw Error(); | ||
} catch (A) { | ||
var f = A.stack.trim().match(/\n( *(at )?)/); | ||
b = f && f[1] || ""; | ||
} | ||
return ` | ||
` + b + e; | ||
} | ||
function o(e, r) { | ||
if (!e || w) | ||
return ""; | ||
{ | ||
var i = O.get(e); | ||
if (i !== void 0) | ||
return i; | ||
} | ||
var l; | ||
w = !0; | ||
var M = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var Y; | ||
Y = y.current, y.current = null, p(); | ||
try { | ||
if (r) { | ||
var A = function() { | ||
} | ||
var w = !1, T; | ||
{ | ||
var B = typeof WeakMap == "function" ? WeakMap : Map; | ||
T = new B(); | ||
} | ||
function o(e, r) { | ||
if (!e || w) | ||
return ""; | ||
{ | ||
var n = T.get(e); | ||
if (n !== void 0) | ||
return n; | ||
} | ||
var f; | ||
w = !0; | ||
var A = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var Y; | ||
Y = y.current, y.current = null, v(); | ||
try { | ||
if (r) { | ||
var P = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(P.prototype, "props", { | ||
set: function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(A.prototype, "props", { | ||
set: function() { | ||
throw Error(); | ||
} | ||
}), typeof Reflect == "object" && Reflect.construct) { | ||
try { | ||
Reflect.construct(A, []); | ||
} catch (ne) { | ||
l = ne; | ||
} | ||
Reflect.construct(e, [], A); | ||
} else { | ||
try { | ||
A.call(); | ||
} catch (ne) { | ||
l = ne; | ||
} | ||
e.call(A.prototype); | ||
} | ||
}), typeof Reflect == "object" && Reflect.construct) { | ||
try { | ||
Reflect.construct(P, []); | ||
} catch (te) { | ||
f = te; | ||
} | ||
Reflect.construct(e, [], P); | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (ne) { | ||
l = ne; | ||
P.call(); | ||
} catch (te) { | ||
f = te; | ||
} | ||
e(); | ||
e.call(P.prototype); | ||
} | ||
} catch (ne) { | ||
if (ne && l && typeof ne.stack == "string") { | ||
for (var P = ne.stack.split(` | ||
`), K = l.stack.split(` | ||
`), U = P.length - 1, N = K.length - 1; U >= 1 && N >= 0 && P[U] !== K[N]; ) | ||
N--; | ||
for (; U >= 1 && N >= 0; U--, N--) | ||
if (P[U] !== K[N]) { | ||
if (U !== 1 || N !== 1) | ||
do | ||
if (U--, N--, N < 0 || P[U] !== K[N]) { | ||
var te = ` | ||
` + P[U].replace(" at new ", " at "); | ||
return typeof e == "function" && O.set(e, te), te; | ||
} | ||
while (U >= 1 && N >= 0); | ||
break; | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (te) { | ||
f = te; | ||
} | ||
} finally { | ||
w = !1, y.current = Y, x(), Error.prepareStackTrace = M; | ||
e(); | ||
} | ||
var de = e ? e.displayName || e.name : "", Ke = de ? R(de) : ""; | ||
return typeof e == "function" && O.set(e, Ke), Ke; | ||
} catch (te) { | ||
if (te && f && typeof te.stack == "string") { | ||
for (var _ = te.stack.split(` | ||
`), J = f.stack.split(` | ||
`), U = _.length - 1, V = J.length - 1; U >= 1 && V >= 0 && _[U] !== J[V]; ) | ||
V--; | ||
for (; U >= 1 && V >= 0; U--, V--) | ||
if (_[U] !== J[V]) { | ||
if (U !== 1 || V !== 1) | ||
do | ||
if (U--, V--, V < 0 || _[U] !== J[V]) { | ||
var Z = ` | ||
` + _[U].replace(" at new ", " at "); | ||
return e.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", e.displayName)), typeof e == "function" && T.set(e, Z), Z; | ||
} | ||
while (U >= 1 && V >= 0); | ||
break; | ||
} | ||
} | ||
} finally { | ||
w = !1, y.current = Y, S(), Error.prepareStackTrace = A; | ||
} | ||
function X(e, r, i) { | ||
return o(e, !1); | ||
var de = e ? e.displayName || e.name : "", Xe = de ? g(de) : ""; | ||
return typeof e == "function" && T.set(e, Xe), Xe; | ||
} | ||
function X(e, r, n) { | ||
return o(e, !1); | ||
} | ||
function ce(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
} | ||
function oe(e, r, n) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return o(e, ce(e)); | ||
if (typeof e == "string") | ||
return g(e); | ||
switch (e) { | ||
case R: | ||
return g("Suspense"); | ||
case s: | ||
return g("SuspenseList"); | ||
} | ||
function fe(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
} | ||
function ie(e, r, i) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return o(e, fe(e)); | ||
if (typeof e == "string") | ||
return R(e); | ||
switch (e) { | ||
case c: | ||
return R("Suspense"); | ||
case h: | ||
return R("SuspenseList"); | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case p: | ||
return X(e.render); | ||
case m: | ||
return oe(e.type, r, n); | ||
case D: { | ||
var f = e, A = f._payload, Y = f._init; | ||
try { | ||
return oe(Y(A), r, n); | ||
} catch { | ||
} | ||
} | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case T: | ||
return X(e.render); | ||
case j: | ||
return ie(e.type, r, i); | ||
case F: | ||
return X(e._render); | ||
case I: { | ||
var l = e, M = l._payload, Y = l._init; | ||
try { | ||
return ie(Y(M), r, i); | ||
} catch { | ||
return ""; | ||
} | ||
var Ee = Object.prototype.hasOwnProperty, We = {}, qe = N.ReactDebugCurrentFrame; | ||
function ge(e) { | ||
if (e) { | ||
var r = e._owner, n = oe(e.type, e._source, r ? r.type : null); | ||
qe.setExtraStackFrame(n); | ||
} else | ||
qe.setExtraStackFrame(null); | ||
} | ||
function dr(e, r, n, f, A) { | ||
{ | ||
var Y = Function.call.bind(Ee); | ||
for (var P in e) | ||
if (Y(e, P)) { | ||
var _ = void 0; | ||
try { | ||
if (typeof e[P] != "function") { | ||
var J = Error((f || "React class") + ": " + n + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw J.name = "Invariant Violation", J; | ||
} | ||
_ = e[P](r, P, f, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (U) { | ||
_ = U; | ||
} | ||
_ && !(_ instanceof Error) && (ge(A), x("%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).", f || "React class", n, P, typeof _), ge(null)), _ instanceof Error && !(_.message in We) && (We[_.message] = !0, ge(A), x("Failed %s type: %s", n, _.message), ge(null)); | ||
} | ||
return ""; | ||
} | ||
var qe = {}, Le = Z.ReactDebugCurrentFrame; | ||
function me(e) { | ||
if (e) { | ||
var r = e._owner, i = ie(e.type, e._source, r ? r.type : null); | ||
Le.setExtraStackFrame(i); | ||
} else | ||
Le.setExtraStackFrame(null); | ||
} | ||
var vr = Array.isArray; | ||
function _e(e) { | ||
return vr(e); | ||
} | ||
function pr(e) { | ||
{ | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return n; | ||
} | ||
function fr(e, r, i, l, M) { | ||
{ | ||
var Y = Function.call.bind(Object.prototype.hasOwnProperty); | ||
for (var A in e) | ||
if (Y(e, A)) { | ||
var P = void 0; | ||
try { | ||
if (typeof e[A] != "function") { | ||
var K = Error((l || "React class") + ": " + i + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw K.name = "Invariant Violation", K; | ||
} | ||
P = e[A](r, A, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (U) { | ||
P = U; | ||
} | ||
P && !(P instanceof Error) && (me(M), z("%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).", l || "React class", i, A, typeof P), me(null)), P instanceof Error && !(P.message in qe) && (qe[P.message] = !0, me(M), z("Failed %s type: %s", i, P.message), me(null)); | ||
} | ||
} | ||
} | ||
function yr(e) { | ||
try { | ||
return Le(e), !1; | ||
} catch { | ||
return !0; | ||
} | ||
var he = Z.ReactCurrentOwner, be = Object.prototype.hasOwnProperty, lr = { | ||
key: !0, | ||
ref: !0, | ||
__self: !0, | ||
__source: !0 | ||
}, Fe, Ue, ge; | ||
ge = {}; | ||
function dr(e) { | ||
if (be.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
return e.ref !== void 0; | ||
} | ||
function Le(e) { | ||
return "" + e; | ||
} | ||
function Ne(e) { | ||
if (yr(e)) | ||
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pr(e)), Le(e); | ||
} | ||
var me = N.ReactCurrentOwner, mr = { | ||
key: !0, | ||
ref: !0, | ||
__self: !0, | ||
__source: !0 | ||
}, Ue, Ve, Re; | ||
Re = {}; | ||
function br(e) { | ||
if (Ee.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
function vr(e) { | ||
if (be.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
return e.key !== void 0; | ||
return e.ref !== void 0; | ||
} | ||
function hr(e) { | ||
if (Ee.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
function pr(e, r) { | ||
if (typeof e.ref == "string" && he.current && r && he.current.stateNode !== r) { | ||
var i = J(he.current.type); | ||
ge[i] || (z('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', J(he.current.type), e.ref), ge[i] = !0); | ||
} | ||
return e.key !== void 0; | ||
} | ||
function Er(e, r) { | ||
if (typeof e.ref == "string" && me.current && r && me.current.stateNode !== r) { | ||
var n = H(me.current.type); | ||
Re[n] || (x('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', H(me.current.type), e.ref), Re[n] = !0); | ||
} | ||
function yr(e, r) { | ||
{ | ||
var i = function() { | ||
Fe || (Fe = !0, z("%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)); | ||
}; | ||
i.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: i, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
function gr(e, r) { | ||
{ | ||
var n = function() { | ||
Ue || (Ue = !0, x("%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)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: n, | ||
configurable: !0 | ||
}); | ||
} | ||
function Er(e, r) { | ||
{ | ||
var i = function() { | ||
Ue || (Ue = !0, z("%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)); | ||
}; | ||
i.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: i, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
function Tr(e, r) { | ||
{ | ||
var n = function() { | ||
Ve || (Ve = !0, x("%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)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: n, | ||
configurable: !0 | ||
}); | ||
} | ||
var hr = function(e, r, i, l, M, Y, A) { | ||
var P = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: v, | ||
// Built-in properties that belong on the element | ||
type: e, | ||
key: r, | ||
ref: i, | ||
props: A, | ||
// Record the component responsible for creating this element. | ||
_owner: Y | ||
}; | ||
return P._store = {}, Object.defineProperty(P._store, "validated", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !0, | ||
value: !1 | ||
}), Object.defineProperty(P, "_self", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: l | ||
}), Object.defineProperty(P, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: M | ||
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P; | ||
} | ||
var _r = function(e, r, n, f, A, Y, P) { | ||
var _ = { | ||
// 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: n, | ||
props: P, | ||
// Record the component responsible for creating this element. | ||
_owner: Y | ||
}; | ||
function mr(e, r, i, l, M) { | ||
{ | ||
var Y, A = {}, P = null, K = null; | ||
i !== void 0 && (P = "" + i), vr(r) && (P = "" + r.key), dr(r) && (K = r.ref, pr(r, M)); | ||
for (Y in r) | ||
be.call(r, Y) && !lr.hasOwnProperty(Y) && (A[Y] = r[Y]); | ||
if (e && e.defaultProps) { | ||
var U = e.defaultProps; | ||
for (Y in U) | ||
A[Y] === void 0 && (A[Y] = U[Y]); | ||
} | ||
if (P || K) { | ||
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
P && yr(A, N), K && Er(A, N); | ||
} | ||
return hr(e, P, K, M, l, he.current, A); | ||
return _._store = {}, Object.defineProperty(_._store, "validated", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !0, | ||
value: !1 | ||
}), Object.defineProperty(_, "_self", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: f | ||
}), Object.defineProperty(_, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: A | ||
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _; | ||
}; | ||
function Rr(e, r, n, f, A) { | ||
{ | ||
var Y, P = {}, _ = null, J = null; | ||
n !== void 0 && (Ne(n), _ = "" + n), hr(r) && (Ne(r.key), _ = "" + r.key), br(r) && (J = r.ref, Er(r, A)); | ||
for (Y in r) | ||
Ee.call(r, Y) && !mr.hasOwnProperty(Y) && (P[Y] = r[Y]); | ||
if (e && e.defaultProps) { | ||
var U = e.defaultProps; | ||
for (Y in U) | ||
P[Y] === void 0 && (P[Y] = U[Y]); | ||
} | ||
if (_ || J) { | ||
var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
_ && gr(P, V), J && Tr(P, V); | ||
} | ||
return _r(e, _, J, A, f, me.current, P); | ||
} | ||
var Te = Z.ReactCurrentOwner, Ne = Z.ReactDebugCurrentFrame; | ||
function le(e) { | ||
if (e) { | ||
var r = e._owner, i = ie(e.type, e._source, r ? r.type : null); | ||
Ne.setExtraStackFrame(i); | ||
} else | ||
Ne.setExtraStackFrame(null); | ||
} | ||
var Re; | ||
Re = !1; | ||
function Oe(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === v; | ||
} | ||
function Ve() { | ||
{ | ||
if (Te.current) { | ||
var e = J(Te.current.type); | ||
if (e) | ||
return ` | ||
} | ||
var Oe = N.ReactCurrentOwner, ze = N.ReactDebugCurrentFrame; | ||
function le(e) { | ||
if (e) { | ||
var r = e._owner, n = oe(e.type, e._source, r ? r.type : null); | ||
ze.setExtraStackFrame(n); | ||
} else | ||
ze.setExtraStackFrame(null); | ||
} | ||
var Se; | ||
Se = !1; | ||
function Pe(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === M; | ||
} | ||
function Be() { | ||
{ | ||
if (Oe.current) { | ||
var e = H(Oe.current.type); | ||
if (e) | ||
return ` | ||
Check the render method of \`` + e + "`."; | ||
} | ||
return ""; | ||
} | ||
return ""; | ||
} | ||
function _r(e) { | ||
{ | ||
if (e !== void 0) { | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber; | ||
return ` | ||
} | ||
function Or(e) { | ||
{ | ||
if (e !== void 0) { | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber; | ||
return ` | ||
Check your code at ` + r + ":" + i + "."; | ||
} | ||
return ""; | ||
Check your code at ` + r + ":" + n + "."; | ||
} | ||
return ""; | ||
} | ||
var ze = {}; | ||
function br(e) { | ||
{ | ||
var r = Ve(); | ||
if (!r) { | ||
var i = typeof e == "string" ? e : e.displayName || e.name; | ||
i && (r = ` | ||
} | ||
var Je = {}; | ||
function Sr(e) { | ||
{ | ||
var r = Be(); | ||
if (!r) { | ||
var n = typeof e == "string" ? e : e.displayName || e.name; | ||
n && (r = ` | ||
Check the top-level render call using <` + i + ">."); | ||
} | ||
return r; | ||
Check the top-level render call using <` + n + ">."); | ||
} | ||
return r; | ||
} | ||
function Be(e, r) { | ||
{ | ||
if (!e._store || e._store.validated || e.key != null) | ||
return; | ||
e._store.validated = !0; | ||
var i = br(r); | ||
if (ze[i]) | ||
return; | ||
ze[i] = !0; | ||
var l = ""; | ||
e && e._owner && e._owner !== Te.current && (l = " It was passed a child from " + J(e._owner.type) + "."), le(e), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), le(null); | ||
} | ||
} | ||
function Ge(e, r) { | ||
{ | ||
if (!e._store || e._store.validated || e.key != null) | ||
return; | ||
e._store.validated = !0; | ||
var n = Sr(r); | ||
if (Je[n]) | ||
return; | ||
Je[n] = !0; | ||
var f = ""; | ||
e && e._owner && e._owner !== Oe.current && (f = " It was passed a child from " + H(e._owner.type) + "."), le(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, f), le(null); | ||
} | ||
function Je(e, r) { | ||
{ | ||
if (typeof e != "object") | ||
return; | ||
if (Array.isArray(e)) | ||
for (var i = 0; i < e.length; i++) { | ||
var l = e[i]; | ||
Oe(l) && Be(l, r); | ||
} | ||
else if (Oe(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var M = ee(e); | ||
if (typeof M == "function" && M !== e.entries) | ||
for (var Y = M.call(e), A; !(A = Y.next()).done; ) | ||
Oe(A.value) && Be(A.value, r); | ||
} | ||
function He(e, r) { | ||
{ | ||
if (typeof e != "object") | ||
return; | ||
if (_e(e)) | ||
for (var n = 0; n < e.length; n++) { | ||
var f = e[n]; | ||
Pe(f) && Ge(f, r); | ||
} | ||
else if (Pe(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var A = L(e); | ||
if (typeof A == "function" && A !== e.entries) | ||
for (var Y = A.call(e), P; !(P = Y.next()).done; ) | ||
Pe(P.value) && Ge(P.value, r); | ||
} | ||
} | ||
function gr(e) { | ||
{ | ||
var r = e.type; | ||
if (r == null || typeof r == "string") | ||
return; | ||
var i; | ||
if (typeof r == "function") | ||
i = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === T || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === j)) | ||
i = r.propTypes; | ||
else | ||
return; | ||
if (i) { | ||
var l = J(r); | ||
fr(i, e.props, "prop", l, e); | ||
} else if (r.PropTypes !== void 0 && !Re) { | ||
Re = !0; | ||
var M = J(r); | ||
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
function Pr(e) { | ||
{ | ||
var r = e.type; | ||
if (r == null || typeof r == "string") | ||
return; | ||
var n; | ||
if (typeof r == "function") | ||
n = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === m)) | ||
n = r.propTypes; | ||
else | ||
return; | ||
if (n) { | ||
var f = H(r); | ||
dr(n, e.props, "prop", f, e); | ||
} else if (r.PropTypes !== void 0 && !Se) { | ||
Se = !0; | ||
var A = H(r); | ||
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
function Tr(e) { | ||
{ | ||
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) { | ||
var l = r[i]; | ||
if (l !== "children" && l !== "key") { | ||
le(e), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), le(null); | ||
break; | ||
} | ||
} | ||
function Cr(e) { | ||
{ | ||
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) { | ||
var f = r[n]; | ||
if (f !== "children" && f !== "key") { | ||
le(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), le(null); | ||
break; | ||
} | ||
e.ref !== null && (le(e), z("Invalid attribute `ref` supplied to `React.Fragment`."), le(null)); | ||
} | ||
e.ref !== null && (le(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), le(null)); | ||
} | ||
function Ge(e, r, i, l, M, Y) { | ||
{ | ||
var A = ue(e); | ||
if (!A) { | ||
var P = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (P += " 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 K = _r(M); | ||
K ? P += K : P += Ve(); | ||
var U; | ||
e === null ? U = "null" : Array.isArray(e) ? U = "array" : e !== void 0 && e.$$typeof === v ? (U = "<" + (J(e.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : U = typeof e, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, P); | ||
} | ||
var N = mr(e, r, i, M, Y); | ||
if (N == null) | ||
return N; | ||
if (A) { | ||
var te = r.children; | ||
if (te !== void 0) | ||
if (l) | ||
if (Array.isArray(te)) { | ||
for (var de = 0; de < te.length; de++) | ||
Je(te[de], e); | ||
Object.freeze && Object.freeze(te); | ||
} else | ||
z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
Je(te, e); | ||
} | ||
return e === n.Fragment ? Tr(N) : gr(N), N; | ||
} | ||
function Ke(e, r, n, f, A, Y) { | ||
{ | ||
var P = ye(e); | ||
if (!P) { | ||
var _ = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " 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 J = Or(A); | ||
J ? _ += J : _ += Be(); | ||
var U; | ||
e === null ? U = "null" : _e(e) ? U = "array" : e !== void 0 && e.$$typeof === M ? (U = "<" + (H(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : U = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, _); | ||
} | ||
var V = Rr(e, r, n, A, Y); | ||
if (V == null) | ||
return V; | ||
if (P) { | ||
var Z = r.children; | ||
if (Z !== void 0) | ||
if (f) | ||
if (_e(Z)) { | ||
for (var de = 0; de < Z.length; de++) | ||
He(Z[de], e); | ||
Object.freeze && Object.freeze(Z); | ||
} else | ||
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
He(Z, e); | ||
} | ||
return e === d ? Cr(V) : Pr(V), V; | ||
} | ||
function Rr(e, r, i) { | ||
return Ge(e, r, i, !0); | ||
} | ||
function Or(e, r, i) { | ||
return Ge(e, r, i, !1); | ||
} | ||
var Pr = Or, Sr = Rr; | ||
n.jsx = Pr, n.jsxs = Sr; | ||
}(); | ||
}(xe)), xe; | ||
} | ||
function wr(e, r, n) { | ||
return Ke(e, r, n, !0); | ||
} | ||
function xr(e, r, n) { | ||
return Ke(e, r, n, !1); | ||
} | ||
var jr = xr, Ar = wr; | ||
he.Fragment = d, he.jsx = jr, he.jsxs = Ar; | ||
}()), he; | ||
} | ||
process.env.NODE_ENV === "production" ? De.exports = jr() : De.exports = Ir(); | ||
var we = De.exports, Me = { exports: {} }, _e = { exports: {} }, $ = {}; | ||
process.env.NODE_ENV === "production" ? Me.exports = Mr() : Me.exports = Fr(); | ||
var xe = Me.exports, Fe = { exports: {} }, Te = { exports: {} }, k = {}; | ||
/** @license React v16.13.1 | ||
@@ -677,27 +642,27 @@ * react-is.production.min.js | ||
*/ | ||
var Qe; | ||
function $r() { | ||
if (Qe) | ||
return $; | ||
Qe = 1; | ||
var n = typeof Symbol == "function" && Symbol.for, W = n ? Symbol.for("react.element") : 60103, g = n ? Symbol.for("react.portal") : 60106, v = n ? Symbol.for("react.fragment") : 60107, S = n ? Symbol.for("react.strict_mode") : 60108, d = n ? Symbol.for("react.profiler") : 60114, C = n ? Symbol.for("react.provider") : 60109, f = n ? Symbol.for("react.context") : 60110, E = n ? Symbol.for("react.async_mode") : 60111, T = n ? Symbol.for("react.concurrent_mode") : 60111, c = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, j = n ? Symbol.for("react.suspense_list") : 60120, I = n ? Symbol.for("react.memo") : 60115, F = n ? Symbol.for("react.lazy") : 60116, D = n ? Symbol.for("react.block") : 60121, L = n ? Symbol.for("react.fundamental") : 60117, B = n ? Symbol.for("react.responder") : 60118, V = n ? Symbol.for("react.scope") : 60119; | ||
function s(a) { | ||
var er; | ||
function Yr() { | ||
if (er) | ||
return k; | ||
er = 1; | ||
var i = typeof Symbol == "function" && Symbol.for, M = i ? Symbol.for("react.element") : 60103, I = i ? Symbol.for("react.portal") : 60106, d = i ? Symbol.for("react.fragment") : 60107, O = i ? Symbol.for("react.strict_mode") : 60108, l = i ? Symbol.for("react.profiler") : 60114, C = i ? Symbol.for("react.provider") : 60109, c = i ? Symbol.for("react.context") : 60110, p = i ? Symbol.for("react.async_mode") : 60111, R = i ? Symbol.for("react.concurrent_mode") : 60111, s = i ? Symbol.for("react.forward_ref") : 60112, m = i ? Symbol.for("react.suspense") : 60113, D = i ? Symbol.for("react.suspense_list") : 60120, F = i ? Symbol.for("react.memo") : 60115, z = i ? Symbol.for("react.lazy") : 60116, W = i ? Symbol.for("react.block") : 60121, L = i ? Symbol.for("react.fundamental") : 60117, N = i ? Symbol.for("react.responder") : 60118, x = i ? Symbol.for("react.scope") : 60119; | ||
function j(a) { | ||
if (typeof a == "object" && a !== null) { | ||
var ee = a.$$typeof; | ||
switch (ee) { | ||
case W: | ||
case M: | ||
switch (a = a.type, a) { | ||
case E: | ||
case T: | ||
case v: | ||
case p: | ||
case R: | ||
case d: | ||
case S: | ||
case h: | ||
case l: | ||
case O: | ||
case m: | ||
return a; | ||
default: | ||
switch (a = a && a.$$typeof, a) { | ||
case f: | ||
case c: | ||
case s: | ||
case z: | ||
case F: | ||
case I: | ||
case C: | ||
@@ -709,3 +674,3 @@ return a; | ||
} | ||
case g: | ||
case I: | ||
return ee; | ||
@@ -716,33 +681,33 @@ } | ||
function q(a) { | ||
return s(a) === T; | ||
return j(a) === R; | ||
} | ||
return $.AsyncMode = E, $.ConcurrentMode = T, $.ContextConsumer = f, $.ContextProvider = C, $.Element = W, $.ForwardRef = c, $.Fragment = v, $.Lazy = F, $.Memo = I, $.Portal = g, $.Profiler = d, $.StrictMode = S, $.Suspense = h, $.isAsyncMode = function(a) { | ||
return q(a) || s(a) === E; | ||
}, $.isConcurrentMode = q, $.isContextConsumer = function(a) { | ||
return s(a) === f; | ||
}, $.isContextProvider = function(a) { | ||
return s(a) === C; | ||
}, $.isElement = function(a) { | ||
return typeof a == "object" && a !== null && a.$$typeof === W; | ||
}, $.isForwardRef = function(a) { | ||
return s(a) === c; | ||
}, $.isFragment = function(a) { | ||
return s(a) === v; | ||
}, $.isLazy = function(a) { | ||
return s(a) === F; | ||
}, $.isMemo = function(a) { | ||
return s(a) === I; | ||
}, $.isPortal = function(a) { | ||
return s(a) === g; | ||
}, $.isProfiler = function(a) { | ||
return s(a) === d; | ||
}, $.isStrictMode = function(a) { | ||
return s(a) === S; | ||
}, $.isSuspense = function(a) { | ||
return s(a) === h; | ||
}, $.isValidElementType = function(a) { | ||
return typeof a == "string" || typeof a == "function" || a === v || a === T || a === d || a === S || a === h || a === j || typeof a == "object" && a !== null && (a.$$typeof === F || a.$$typeof === I || a.$$typeof === C || a.$$typeof === f || a.$$typeof === c || a.$$typeof === L || a.$$typeof === B || a.$$typeof === V || a.$$typeof === D); | ||
}, $.typeOf = s, $; | ||
return k.AsyncMode = p, k.ConcurrentMode = R, k.ContextConsumer = c, k.ContextProvider = C, k.Element = M, k.ForwardRef = s, k.Fragment = d, k.Lazy = z, k.Memo = F, k.Portal = I, k.Profiler = l, k.StrictMode = O, k.Suspense = m, k.isAsyncMode = function(a) { | ||
return q(a) || j(a) === p; | ||
}, k.isConcurrentMode = q, k.isContextConsumer = function(a) { | ||
return j(a) === c; | ||
}, k.isContextProvider = function(a) { | ||
return j(a) === C; | ||
}, k.isElement = function(a) { | ||
return typeof a == "object" && a !== null && a.$$typeof === M; | ||
}, k.isForwardRef = function(a) { | ||
return j(a) === s; | ||
}, k.isFragment = function(a) { | ||
return j(a) === d; | ||
}, k.isLazy = function(a) { | ||
return j(a) === z; | ||
}, k.isMemo = function(a) { | ||
return j(a) === F; | ||
}, k.isPortal = function(a) { | ||
return j(a) === I; | ||
}, k.isProfiler = function(a) { | ||
return j(a) === l; | ||
}, k.isStrictMode = function(a) { | ||
return j(a) === O; | ||
}, k.isSuspense = function(a) { | ||
return j(a) === m; | ||
}, k.isValidElementType = function(a) { | ||
return typeof a == "string" || typeof a == "function" || a === d || a === R || a === l || a === O || a === m || a === D || typeof a == "object" && a !== null && (a.$$typeof === z || a.$$typeof === F || a.$$typeof === C || a.$$typeof === c || a.$$typeof === s || a.$$typeof === L || a.$$typeof === N || a.$$typeof === x || a.$$typeof === W); | ||
}, k.typeOf = j, k; | ||
} | ||
var k = {}; | ||
var $ = {}; | ||
/** @license React v16.13.1 | ||
@@ -756,9 +721,9 @@ * react-is.development.js | ||
*/ | ||
var er; | ||
function kr() { | ||
return er || (er = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = typeof Symbol == "function" && Symbol.for, W = n ? Symbol.for("react.element") : 60103, g = n ? Symbol.for("react.portal") : 60106, v = n ? Symbol.for("react.fragment") : 60107, S = n ? Symbol.for("react.strict_mode") : 60108, d = n ? Symbol.for("react.profiler") : 60114, C = n ? Symbol.for("react.provider") : 60109, f = n ? Symbol.for("react.context") : 60110, E = n ? Symbol.for("react.async_mode") : 60111, T = n ? Symbol.for("react.concurrent_mode") : 60111, c = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, j = n ? Symbol.for("react.suspense_list") : 60120, I = n ? Symbol.for("react.memo") : 60115, F = n ? Symbol.for("react.lazy") : 60116, D = n ? Symbol.for("react.block") : 60121, L = n ? Symbol.for("react.fundamental") : 60117, B = n ? Symbol.for("react.responder") : 60118, V = n ? Symbol.for("react.scope") : 60119; | ||
function s(o) { | ||
var rr; | ||
function Wr() { | ||
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var i = typeof Symbol == "function" && Symbol.for, M = i ? Symbol.for("react.element") : 60103, I = i ? Symbol.for("react.portal") : 60106, d = i ? Symbol.for("react.fragment") : 60107, O = i ? Symbol.for("react.strict_mode") : 60108, l = i ? Symbol.for("react.profiler") : 60114, C = i ? Symbol.for("react.provider") : 60109, c = i ? Symbol.for("react.context") : 60110, p = i ? Symbol.for("react.async_mode") : 60111, R = i ? Symbol.for("react.concurrent_mode") : 60111, s = i ? Symbol.for("react.forward_ref") : 60112, m = i ? Symbol.for("react.suspense") : 60113, D = i ? Symbol.for("react.suspense_list") : 60120, F = i ? Symbol.for("react.memo") : 60115, z = i ? Symbol.for("react.lazy") : 60116, W = i ? Symbol.for("react.block") : 60121, L = i ? Symbol.for("react.fundamental") : 60117, N = i ? Symbol.for("react.responder") : 60118, x = i ? Symbol.for("react.scope") : 60119; | ||
function j(o) { | ||
return typeof o == "string" || typeof o == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | ||
o === v || o === T || o === d || o === S || o === h || o === j || typeof o == "object" && o !== null && (o.$$typeof === F || o.$$typeof === I || o.$$typeof === C || o.$$typeof === f || o.$$typeof === c || o.$$typeof === L || o.$$typeof === B || o.$$typeof === V || o.$$typeof === D); | ||
o === d || o === R || o === l || o === O || o === m || o === D || typeof o == "object" && o !== null && (o.$$typeof === z || o.$$typeof === F || o.$$typeof === C || o.$$typeof === c || o.$$typeof === s || o.$$typeof === L || o.$$typeof === N || o.$$typeof === x || o.$$typeof === W); | ||
} | ||
@@ -769,21 +734,21 @@ function q(o) { | ||
switch (X) { | ||
case W: | ||
var fe = o.type; | ||
switch (fe) { | ||
case E: | ||
case T: | ||
case v: | ||
case M: | ||
var ce = o.type; | ||
switch (ce) { | ||
case p: | ||
case R: | ||
case d: | ||
case S: | ||
case h: | ||
return fe; | ||
case l: | ||
case O: | ||
case m: | ||
return ce; | ||
default: | ||
var ie = fe && fe.$$typeof; | ||
switch (ie) { | ||
case f: | ||
var oe = ce && ce.$$typeof; | ||
switch (oe) { | ||
case c: | ||
case s: | ||
case z: | ||
case F: | ||
case I: | ||
case C: | ||
return ie; | ||
return oe; | ||
default: | ||
@@ -793,3 +758,3 @@ return X; | ||
} | ||
case g: | ||
case I: | ||
return X; | ||
@@ -799,72 +764,124 @@ } | ||
} | ||
var a = E, ee = T, Z = f, z = C, pe = W, ye = c, ue = v, Ee = F, se = I, J = g, re = d, H = S, Q = h, oe = !1; | ||
function ce(o) { | ||
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(o) || q(o) === E; | ||
var a = p, ee = R, ve = c, pe = C, ie = M, ye = s, ue = d, se = z, H = F, G = I, re = l, K = O, Q = m, ae = !1; | ||
function fe(o) { | ||
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(o) || q(o) === p; | ||
} | ||
function t(o) { | ||
return q(o) === T; | ||
return q(o) === R; | ||
} | ||
function u(o) { | ||
return q(o) === f; | ||
return q(o) === c; | ||
} | ||
function b(o) { | ||
function E(o) { | ||
return q(o) === C; | ||
} | ||
function _(o) { | ||
return typeof o == "object" && o !== null && o.$$typeof === W; | ||
function h(o) { | ||
return typeof o == "object" && o !== null && o.$$typeof === M; | ||
} | ||
function p(o) { | ||
return q(o) === c; | ||
function v(o) { | ||
return q(o) === s; | ||
} | ||
function x(o) { | ||
return q(o) === v; | ||
function S(o) { | ||
return q(o) === d; | ||
} | ||
function y(o) { | ||
return q(o) === z; | ||
} | ||
function b(o) { | ||
return q(o) === F; | ||
} | ||
function m(o) { | ||
function g(o) { | ||
return q(o) === I; | ||
} | ||
function R(o) { | ||
return q(o) === g; | ||
} | ||
function w(o) { | ||
return q(o) === d; | ||
return q(o) === l; | ||
} | ||
function O(o) { | ||
return q(o) === S; | ||
function T(o) { | ||
return q(o) === O; | ||
} | ||
function G(o) { | ||
return q(o) === h; | ||
function B(o) { | ||
return q(o) === m; | ||
} | ||
k.AsyncMode = a, k.ConcurrentMode = ee, k.ContextConsumer = Z, k.ContextProvider = z, k.Element = pe, k.ForwardRef = ye, k.Fragment = ue, k.Lazy = Ee, k.Memo = se, k.Portal = J, k.Profiler = re, k.StrictMode = H, k.Suspense = Q, k.isAsyncMode = ce, k.isConcurrentMode = t, k.isContextConsumer = u, k.isContextProvider = b, k.isElement = _, k.isForwardRef = p, k.isFragment = x, k.isLazy = y, k.isMemo = m, k.isPortal = R, k.isProfiler = w, k.isStrictMode = O, k.isSuspense = G, k.isValidElementType = s, k.typeOf = q; | ||
}()), k; | ||
$.AsyncMode = a, $.ConcurrentMode = ee, $.ContextConsumer = ve, $.ContextProvider = pe, $.Element = ie, $.ForwardRef = ye, $.Fragment = ue, $.Lazy = se, $.Memo = H, $.Portal = G, $.Profiler = re, $.StrictMode = K, $.Suspense = Q, $.isAsyncMode = fe, $.isConcurrentMode = t, $.isContextConsumer = u, $.isContextProvider = E, $.isElement = h, $.isForwardRef = v, $.isFragment = S, $.isLazy = y, $.isMemo = b, $.isPortal = g, $.isProfiler = w, $.isStrictMode = T, $.isSuspense = B, $.isValidElementType = j, $.typeOf = q; | ||
}()), $; | ||
} | ||
var rr; | ||
function sr() { | ||
return rr || (rr = 1, process.env.NODE_ENV === "production" ? _e.exports = $r() : _e.exports = kr()), _e.exports; | ||
var tr; | ||
function cr() { | ||
return tr || (tr = 1, process.env.NODE_ENV === "production" ? Te.exports = Yr() : Te.exports = Wr()), Te.exports; | ||
} | ||
var Ae, tr; | ||
function We() { | ||
if (tr) | ||
return Ae; | ||
tr = 1; | ||
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | ||
return Ae = n, Ae; | ||
} | ||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
var je, nr; | ||
function cr() { | ||
return nr || (nr = 1, je = Function.call.bind(Object.prototype.hasOwnProperty)), je; | ||
function qr() { | ||
if (nr) | ||
return je; | ||
nr = 1; | ||
var i = Object.getOwnPropertySymbols, M = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable; | ||
function d(l) { | ||
if (l == null) | ||
throw new TypeError("Object.assign cannot be called with null or undefined"); | ||
return Object(l); | ||
} | ||
function O() { | ||
try { | ||
if (!Object.assign) | ||
return !1; | ||
var l = new String("abc"); | ||
if (l[5] = "de", Object.getOwnPropertyNames(l)[0] === "5") | ||
return !1; | ||
for (var C = {}, c = 0; c < 10; c++) | ||
C["_" + String.fromCharCode(c)] = c; | ||
var p = Object.getOwnPropertyNames(C).map(function(s) { | ||
return C[s]; | ||
}); | ||
if (p.join("") !== "0123456789") | ||
return !1; | ||
var R = {}; | ||
return "abcdefghijklmnopqrst".split("").forEach(function(s) { | ||
R[s] = s; | ||
}), Object.keys(Object.assign({}, R)).join("") === "abcdefghijklmnopqrst"; | ||
} catch { | ||
return !1; | ||
} | ||
} | ||
return je = O() ? Object.assign : function(l, C) { | ||
for (var c, p = d(l), R, s = 1; s < arguments.length; s++) { | ||
c = Object(arguments[s]); | ||
for (var m in c) | ||
M.call(c, m) && (p[m] = c[m]); | ||
if (i) { | ||
R = i(c); | ||
for (var D = 0; D < R.length; D++) | ||
I.call(c, R[D]) && (p[R[D]] = c[R[D]]); | ||
} | ||
} | ||
return p; | ||
}, je; | ||
} | ||
var Ie, ar; | ||
function Dr() { | ||
var Ae, ar; | ||
function Ye() { | ||
if (ar) | ||
return Ie; | ||
return Ae; | ||
ar = 1; | ||
var n = function() { | ||
var i = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | ||
return Ae = i, Ae; | ||
} | ||
var Ie, or; | ||
function lr() { | ||
return or || (or = 1, Ie = Function.call.bind(Object.prototype.hasOwnProperty)), Ie; | ||
} | ||
var ke, ir; | ||
function Lr() { | ||
if (ir) | ||
return ke; | ||
ir = 1; | ||
var i = function() { | ||
}; | ||
if (process.env.NODE_ENV !== "production") { | ||
var W = We(), g = {}, v = cr(); | ||
n = function(d) { | ||
var C = "Warning: " + d; | ||
var M = Ye(), I = {}, d = lr(); | ||
i = function(l) { | ||
var C = "Warning: " + l; | ||
typeof console < "u" && console.error(C); | ||
@@ -877,25 +894,25 @@ try { | ||
} | ||
function S(d, C, f, E, T) { | ||
function O(l, C, c, p, R) { | ||
if (process.env.NODE_ENV !== "production") { | ||
for (var c in d) | ||
if (v(d, c)) { | ||
var h; | ||
for (var s in l) | ||
if (d(l, s)) { | ||
var m; | ||
try { | ||
if (typeof d[c] != "function") { | ||
var j = Error( | ||
(E || "React class") + ": " + f + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." | ||
if (typeof l[s] != "function") { | ||
var D = Error( | ||
(p || "React class") + ": " + c + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." | ||
); | ||
throw j.name = "Invariant Violation", j; | ||
throw D.name = "Invariant Violation", D; | ||
} | ||
h = d[c](C, c, E, f, null, W); | ||
} catch (F) { | ||
h = F; | ||
m = l[s](C, s, p, c, null, M); | ||
} catch (z) { | ||
m = z; | ||
} | ||
if (h && !(h instanceof Error) && n( | ||
(E || "React class") + ": type specification of " + f + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." | ||
), h instanceof Error && !(h.message in g)) { | ||
g[h.message] = !0; | ||
var I = T ? T() : ""; | ||
n( | ||
"Failed " + f + " type: " + h.message + (I ?? "") | ||
if (m && !(m instanceof Error) && i( | ||
(p || "React class") + ": type specification of " + c + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." | ||
), m instanceof Error && !(m.message in I)) { | ||
I[m.message] = !0; | ||
var F = R ? R() : ""; | ||
i( | ||
"Failed " + c + " type: " + m.message + (F ?? "") | ||
); | ||
@@ -906,18 +923,18 @@ } | ||
} | ||
return S.resetWarningCache = function() { | ||
process.env.NODE_ENV !== "production" && (g = {}); | ||
}, Ie = S, Ie; | ||
return O.resetWarningCache = function() { | ||
process.env.NODE_ENV !== "production" && (I = {}); | ||
}, ke = O, ke; | ||
} | ||
var $e, or; | ||
function Mr() { | ||
if (or) | ||
var $e, ur; | ||
function Nr() { | ||
if (ur) | ||
return $e; | ||
or = 1; | ||
var n = sr(), W = Ye(), g = We(), v = cr(), S = Dr(), d = function() { | ||
ur = 1; | ||
var i = cr(), M = qr(), I = Ye(), d = lr(), O = Lr(), l = function() { | ||
}; | ||
process.env.NODE_ENV !== "production" && (d = function(f) { | ||
var E = "Warning: " + f; | ||
typeof console < "u" && console.error(E); | ||
process.env.NODE_ENV !== "production" && (l = function(c) { | ||
var p = "Warning: " + c; | ||
typeof console < "u" && console.error(p); | ||
try { | ||
throw new Error(E); | ||
throw new Error(p); | ||
} catch { | ||
@@ -929,20 +946,20 @@ } | ||
} | ||
return $e = function(f, E) { | ||
var T = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator"; | ||
function h(t) { | ||
var u = t && (T && t[T] || t[c]); | ||
return $e = function(c, p) { | ||
var R = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator"; | ||
function m(t) { | ||
var u = t && (R && t[R] || t[s]); | ||
if (typeof u == "function") | ||
return u; | ||
} | ||
var j = "<<anonymous>>", I = { | ||
array: B("array"), | ||
bigint: B("bigint"), | ||
bool: B("boolean"), | ||
func: B("function"), | ||
number: B("number"), | ||
object: B("object"), | ||
string: B("string"), | ||
symbol: B("symbol"), | ||
any: V(), | ||
arrayOf: s, | ||
var D = "<<anonymous>>", F = { | ||
array: N("array"), | ||
bigint: N("bigint"), | ||
bool: N("boolean"), | ||
func: N("function"), | ||
number: N("number"), | ||
object: N("object"), | ||
string: N("string"), | ||
symbol: N("symbol"), | ||
any: x(), | ||
arrayOf: j, | ||
element: q(), | ||
@@ -952,21 +969,21 @@ elementType: a(), | ||
node: ye(), | ||
objectOf: z, | ||
oneOf: Z, | ||
oneOfType: pe, | ||
shape: Ee, | ||
exact: se | ||
objectOf: pe, | ||
oneOf: ve, | ||
oneOfType: ie, | ||
shape: se, | ||
exact: H | ||
}; | ||
function F(t, u) { | ||
function z(t, u) { | ||
return t === u ? t !== 0 || 1 / t === 1 / u : t !== t && u !== u; | ||
} | ||
function D(t, u) { | ||
function W(t, u) { | ||
this.message = t, this.data = u && typeof u == "object" ? u : {}, this.stack = ""; | ||
} | ||
D.prototype = Error.prototype; | ||
W.prototype = Error.prototype; | ||
function L(t) { | ||
if (process.env.NODE_ENV !== "production") | ||
var u = {}, b = 0; | ||
function _(x, y, m, R, w, O, G) { | ||
if (R = R || j, O = O || m, G !== g) { | ||
if (E) { | ||
var u = {}, E = 0; | ||
function h(S, y, b, g, w, T, B) { | ||
if (g = g || D, T = T || b, B !== I) { | ||
if (p) { | ||
var o = new Error( | ||
@@ -977,21 +994,21 @@ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" | ||
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") { | ||
var X = R + ":" + m; | ||
var X = g + ":" + b; | ||
!u[X] && // Avoid spamming the console because they are often not actionable except for lib authors | ||
b < 3 && (d( | ||
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." | ||
), u[X] = !0, b++); | ||
E < 3 && (l( | ||
"You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + g + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." | ||
), u[X] = !0, E++); | ||
} | ||
} | ||
return y[m] == null ? x ? y[m] === null ? new D("The " + w + " `" + O + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new D("The " + w + " `" + O + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : t(y, m, R, w, O); | ||
return y[b] == null ? S ? y[b] === null ? new W("The " + w + " `" + T + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new W("The " + w + " `" + T + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : t(y, b, g, w, T); | ||
} | ||
var p = _.bind(null, !1); | ||
return p.isRequired = _.bind(null, !0), p; | ||
var v = h.bind(null, !1); | ||
return v.isRequired = h.bind(null, !0), v; | ||
} | ||
function B(t) { | ||
function u(b, _, p, x, y, m) { | ||
var R = b[_], w = H(R); | ||
function N(t) { | ||
function u(E, h, v, S, y, b) { | ||
var g = E[h], w = K(g); | ||
if (w !== t) { | ||
var O = Q(R); | ||
return new D( | ||
"Invalid " + x + " `" + y + "` of type " + ("`" + O + "` supplied to `" + p + "`, expected ") + ("`" + t + "`."), | ||
var T = Q(g); | ||
return new W( | ||
"Invalid " + S + " `" + y + "` of type " + ("`" + T + "` supplied to `" + v + "`, expected ") + ("`" + t + "`."), | ||
{ expectedType: t } | ||
@@ -1004,18 +1021,18 @@ ); | ||
} | ||
function V() { | ||
function x() { | ||
return L(C); | ||
} | ||
function s(t) { | ||
function u(b, _, p, x, y) { | ||
function j(t) { | ||
function u(E, h, v, S, y) { | ||
if (typeof t != "function") | ||
return new D("Property `" + y + "` of component `" + p + "` has invalid PropType notation inside arrayOf."); | ||
var m = b[_]; | ||
if (!Array.isArray(m)) { | ||
var R = H(m); | ||
return new D("Invalid " + x + " `" + y + "` of type " + ("`" + R + "` supplied to `" + p + "`, expected an array.")); | ||
return new W("Property `" + y + "` of component `" + v + "` has invalid PropType notation inside arrayOf."); | ||
var b = E[h]; | ||
if (!Array.isArray(b)) { | ||
var g = K(b); | ||
return new W("Invalid " + S + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an array.")); | ||
} | ||
for (var w = 0; w < m.length; w++) { | ||
var O = t(m, w, p, x, y + "[" + w + "]", g); | ||
if (O instanceof Error) | ||
return O; | ||
for (var w = 0; w < b.length; w++) { | ||
var T = t(b, w, v, S, y + "[" + w + "]", I); | ||
if (T instanceof Error) | ||
return T; | ||
} | ||
@@ -1027,7 +1044,7 @@ return null; | ||
function q() { | ||
function t(u, b, _, p, x) { | ||
var y = u[b]; | ||
if (!f(y)) { | ||
var m = H(y); | ||
return new D("Invalid " + p + " `" + x + "` of type " + ("`" + m + "` supplied to `" + _ + "`, expected a single ReactElement.")); | ||
function t(u, E, h, v, S) { | ||
var y = u[E]; | ||
if (!c(y)) { | ||
var b = K(y); | ||
return new W("Invalid " + v + " `" + S + "` of type " + ("`" + b + "` supplied to `" + h + "`, expected a single ReactElement.")); | ||
} | ||
@@ -1039,7 +1056,7 @@ return null; | ||
function a() { | ||
function t(u, b, _, p, x) { | ||
var y = u[b]; | ||
if (!n.isValidElementType(y)) { | ||
var m = H(y); | ||
return new D("Invalid " + p + " `" + x + "` of type " + ("`" + m + "` supplied to `" + _ + "`, expected a single ReactElement type.")); | ||
function t(u, E, h, v, S) { | ||
var y = u[E]; | ||
if (!i.isValidElementType(y)) { | ||
var b = K(y); | ||
return new W("Invalid " + v + " `" + S + "` of type " + ("`" + b + "` supplied to `" + h + "`, expected a single ReactElement type.")); | ||
} | ||
@@ -1051,6 +1068,6 @@ return null; | ||
function ee(t) { | ||
function u(b, _, p, x, y) { | ||
if (!(b[_] instanceof t)) { | ||
var m = t.name || j, R = ce(b[_]); | ||
return new D("Invalid " + x + " `" + y + "` of type " + ("`" + R + "` supplied to `" + p + "`, expected ") + ("instance of `" + m + "`.")); | ||
function u(E, h, v, S, y) { | ||
if (!(E[h] instanceof t)) { | ||
var b = t.name || D, g = fe(E[h]); | ||
return new W("Invalid " + S + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected ") + ("instance of `" + b + "`.")); | ||
} | ||
@@ -1061,31 +1078,31 @@ return null; | ||
} | ||
function Z(t) { | ||
function ve(t) { | ||
if (!Array.isArray(t)) | ||
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? d( | ||
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l( | ||
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." | ||
) : d("Invalid argument supplied to oneOf, expected an array.")), C; | ||
function u(b, _, p, x, y) { | ||
for (var m = b[_], R = 0; R < t.length; R++) | ||
if (F(m, t[R])) | ||
) : l("Invalid argument supplied to oneOf, expected an array.")), C; | ||
function u(E, h, v, S, y) { | ||
for (var b = E[h], g = 0; g < t.length; g++) | ||
if (z(b, t[g])) | ||
return null; | ||
var w = JSON.stringify(t, function(G, o) { | ||
var w = JSON.stringify(t, function(B, o) { | ||
var X = Q(o); | ||
return X === "symbol" ? String(o) : o; | ||
}); | ||
return new D("Invalid " + x + " `" + y + "` of value `" + String(m) + "` " + ("supplied to `" + p + "`, expected one of " + w + ".")); | ||
return new W("Invalid " + S + " `" + y + "` of value `" + String(b) + "` " + ("supplied to `" + v + "`, expected one of " + w + ".")); | ||
} | ||
return L(u); | ||
} | ||
function z(t) { | ||
function u(b, _, p, x, y) { | ||
function pe(t) { | ||
function u(E, h, v, S, y) { | ||
if (typeof t != "function") | ||
return new D("Property `" + y + "` of component `" + p + "` has invalid PropType notation inside objectOf."); | ||
var m = b[_], R = H(m); | ||
if (R !== "object") | ||
return new D("Invalid " + x + " `" + y + "` of type " + ("`" + R + "` supplied to `" + p + "`, expected an object.")); | ||
for (var w in m) | ||
if (v(m, w)) { | ||
var O = t(m, w, p, x, y + "." + w, g); | ||
if (O instanceof Error) | ||
return O; | ||
return new W("Property `" + y + "` of component `" + v + "` has invalid PropType notation inside objectOf."); | ||
var b = E[h], g = K(b); | ||
if (g !== "object") | ||
return new W("Invalid " + S + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an object.")); | ||
for (var w in b) | ||
if (d(b, w)) { | ||
var T = t(b, w, v, S, y + "." + w, I); | ||
if (T instanceof Error) | ||
return T; | ||
} | ||
@@ -1096,47 +1113,47 @@ return null; | ||
} | ||
function pe(t) { | ||
function ie(t) { | ||
if (!Array.isArray(t)) | ||
return process.env.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), C; | ||
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), C; | ||
for (var u = 0; u < t.length; u++) { | ||
var b = t[u]; | ||
if (typeof b != "function") | ||
return d( | ||
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(b) + " at index " + u + "." | ||
var E = t[u]; | ||
if (typeof E != "function") | ||
return l( | ||
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(E) + " at index " + u + "." | ||
), C; | ||
} | ||
function _(p, x, y, m, R) { | ||
for (var w = [], O = 0; O < t.length; O++) { | ||
var G = t[O], o = G(p, x, y, m, R, g); | ||
function h(v, S, y, b, g) { | ||
for (var w = [], T = 0; T < t.length; T++) { | ||
var B = t[T], o = B(v, S, y, b, g, I); | ||
if (o == null) | ||
return null; | ||
o.data && v(o.data, "expectedType") && w.push(o.data.expectedType); | ||
o.data && d(o.data, "expectedType") && w.push(o.data.expectedType); | ||
} | ||
var X = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : ""; | ||
return new D("Invalid " + m + " `" + R + "` supplied to " + ("`" + y + "`" + X + ".")); | ||
return new W("Invalid " + b + " `" + g + "` supplied to " + ("`" + y + "`" + X + ".")); | ||
} | ||
return L(_); | ||
return L(h); | ||
} | ||
function ye() { | ||
function t(u, b, _, p, x) { | ||
return J(u[b]) ? null : new D("Invalid " + p + " `" + x + "` supplied to " + ("`" + _ + "`, expected a ReactNode.")); | ||
function t(u, E, h, v, S) { | ||
return G(u[E]) ? null : new W("Invalid " + v + " `" + S + "` supplied to " + ("`" + h + "`, expected a ReactNode.")); | ||
} | ||
return L(t); | ||
} | ||
function ue(t, u, b, _, p) { | ||
return new D( | ||
(t || "React class") + ": " + u + " type `" + b + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`." | ||
function ue(t, u, E, h, v) { | ||
return new W( | ||
(t || "React class") + ": " + u + " type `" + E + "." + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`." | ||
); | ||
} | ||
function Ee(t) { | ||
function u(b, _, p, x, y) { | ||
var m = b[_], R = H(m); | ||
if (R !== "object") | ||
return new D("Invalid " + x + " `" + y + "` of type `" + R + "` " + ("supplied to `" + p + "`, expected `object`.")); | ||
function se(t) { | ||
function u(E, h, v, S, y) { | ||
var b = E[h], g = K(b); | ||
if (g !== "object") | ||
return new W("Invalid " + S + " `" + y + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`.")); | ||
for (var w in t) { | ||
var O = t[w]; | ||
if (typeof O != "function") | ||
return ue(p, x, y, w, Q(O)); | ||
var G = O(m, w, p, x, y + "." + w, g); | ||
if (G) | ||
return G; | ||
var T = t[w]; | ||
if (typeof T != "function") | ||
return ue(v, S, y, w, Q(T)); | ||
var B = T(b, w, v, S, y + "." + w, I); | ||
if (B) | ||
return B; | ||
} | ||
@@ -1147,18 +1164,18 @@ return null; | ||
} | ||
function se(t) { | ||
function u(b, _, p, x, y) { | ||
var m = b[_], R = H(m); | ||
if (R !== "object") | ||
return new D("Invalid " + x + " `" + y + "` of type `" + R + "` " + ("supplied to `" + p + "`, expected `object`.")); | ||
var w = W({}, b[_], t); | ||
for (var O in w) { | ||
var G = t[O]; | ||
if (v(t, O) && typeof G != "function") | ||
return ue(p, x, y, O, Q(G)); | ||
if (!G) | ||
return new D( | ||
"Invalid " + x + " `" + y + "` key `" + O + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(b[_], null, " ") + ` | ||
function H(t) { | ||
function u(E, h, v, S, y) { | ||
var b = E[h], g = K(b); | ||
if (g !== "object") | ||
return new W("Invalid " + S + " `" + y + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`.")); | ||
var w = M({}, E[h], t); | ||
for (var T in w) { | ||
var B = t[T]; | ||
if (d(t, T) && typeof B != "function") | ||
return ue(v, S, y, T, Q(B)); | ||
if (!B) | ||
return new W( | ||
"Invalid " + S + " `" + y + "` key `" + T + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(E[h], null, " ") + ` | ||
Valid keys: ` + JSON.stringify(Object.keys(t), null, " ") | ||
); | ||
var o = G(m, O, p, x, y + "." + O, g); | ||
var o = B(b, T, v, S, y + "." + T, I); | ||
if (o) | ||
@@ -1171,3 +1188,3 @@ return o; | ||
} | ||
function J(t) { | ||
function G(t) { | ||
switch (typeof t) { | ||
@@ -1182,16 +1199,16 @@ case "number": | ||
if (Array.isArray(t)) | ||
return t.every(J); | ||
if (t === null || f(t)) | ||
return t.every(G); | ||
if (t === null || c(t)) | ||
return !0; | ||
var u = h(t); | ||
var u = m(t); | ||
if (u) { | ||
var b = u.call(t), _; | ||
var E = u.call(t), h; | ||
if (u !== t.entries) { | ||
for (; !(_ = b.next()).done; ) | ||
if (!J(_.value)) | ||
for (; !(h = E.next()).done; ) | ||
if (!G(h.value)) | ||
return !1; | ||
} else | ||
for (; !(_ = b.next()).done; ) { | ||
var p = _.value; | ||
if (p && !J(p[1])) | ||
for (; !(h = E.next()).done; ) { | ||
var v = h.value; | ||
if (v && !G(v[1])) | ||
return !1; | ||
@@ -1209,3 +1226,3 @@ } | ||
} | ||
function H(t) { | ||
function K(t) { | ||
var u = typeof t; | ||
@@ -1217,3 +1234,3 @@ return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : re(u, t) ? "symbol" : u; | ||
return "" + t; | ||
var u = H(t); | ||
var u = K(t); | ||
if (u === "object") { | ||
@@ -1227,3 +1244,3 @@ if (t instanceof Date) | ||
} | ||
function oe(t) { | ||
function ae(t) { | ||
var u = Q(t); | ||
@@ -1242,112 +1259,112 @@ switch (u) { | ||
} | ||
function ce(t) { | ||
return !t.constructor || !t.constructor.name ? j : t.constructor.name; | ||
function fe(t) { | ||
return !t.constructor || !t.constructor.name ? D : t.constructor.name; | ||
} | ||
return I.checkPropTypes = S, I.resetWarningCache = S.resetWarningCache, I.PropTypes = I, I; | ||
return F.checkPropTypes = O, F.resetWarningCache = O.resetWarningCache, F.PropTypes = F, F; | ||
}, $e; | ||
} | ||
var ke, ir; | ||
function Yr() { | ||
if (ir) | ||
return ke; | ||
ir = 1; | ||
var n = We(); | ||
function W() { | ||
var De, sr; | ||
function Ur() { | ||
if (sr) | ||
return De; | ||
sr = 1; | ||
var i = Ye(); | ||
function M() { | ||
} | ||
function g() { | ||
function I() { | ||
} | ||
return g.resetWarningCache = W, ke = function() { | ||
function v(C, f, E, T, c, h) { | ||
if (h !== n) { | ||
var j = new Error( | ||
return I.resetWarningCache = M, De = function() { | ||
function d(C, c, p, R, s, m) { | ||
if (m !== i) { | ||
var D = new Error( | ||
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" | ||
); | ||
throw j.name = "Invariant Violation", j; | ||
throw D.name = "Invariant Violation", D; | ||
} | ||
} | ||
v.isRequired = v; | ||
function S() { | ||
return v; | ||
d.isRequired = d; | ||
function O() { | ||
return d; | ||
} | ||
var d = { | ||
array: v, | ||
bigint: v, | ||
bool: v, | ||
func: v, | ||
number: v, | ||
object: v, | ||
string: v, | ||
symbol: v, | ||
any: v, | ||
arrayOf: S, | ||
element: v, | ||
elementType: v, | ||
instanceOf: S, | ||
node: v, | ||
objectOf: S, | ||
oneOf: S, | ||
oneOfType: S, | ||
shape: S, | ||
exact: S, | ||
checkPropTypes: g, | ||
resetWarningCache: W | ||
var l = { | ||
array: d, | ||
bigint: d, | ||
bool: d, | ||
func: d, | ||
number: d, | ||
object: d, | ||
string: d, | ||
symbol: d, | ||
any: d, | ||
arrayOf: O, | ||
element: d, | ||
elementType: d, | ||
instanceOf: O, | ||
node: d, | ||
objectOf: O, | ||
oneOf: O, | ||
oneOfType: O, | ||
shape: O, | ||
exact: O, | ||
checkPropTypes: I, | ||
resetWarningCache: M | ||
}; | ||
return d.PropTypes = d, d; | ||
}, ke; | ||
return l.PropTypes = l, l; | ||
}, De; | ||
} | ||
if (process.env.NODE_ENV !== "production") { | ||
var Wr = sr(), qr = !0; | ||
Me.exports = Mr()(Wr.isElement, qr); | ||
var Vr = cr(), zr = !0; | ||
Fe.exports = Nr()(Vr.isElement, zr); | ||
} else | ||
Me.exports = Yr()(); | ||
var Lr = Me.exports; | ||
const ae = /* @__PURE__ */ Ar(Lr); | ||
function Fr(n) { | ||
return n ? typeof n == "string" ? n.trim() : Array.isArray(n) ? n.flat().filter((W) => typeof W == "string").join(" ") : null : null; | ||
Fe.exports = Ur()(); | ||
var Br = Fe.exports; | ||
const ne = /* @__PURE__ */ Dr(Br); | ||
function Jr(i) { | ||
return i ? typeof i == "string" ? i.trim() : Array.isArray(i) ? i.flat().filter((M) => typeof M == "string").join(" ") : null : null; | ||
} | ||
function Ur({ | ||
speed: n = 50, | ||
reducedMotionSpeed: W = 20, | ||
prefersReducedMotion: g = !1, | ||
playing: v = !0, | ||
children: S, | ||
className: d, | ||
function Gr({ | ||
speed: i = 50, | ||
reducedMotionSpeed: M = 20, | ||
prefersReducedMotion: I = !1, | ||
playing: d = !0, | ||
children: O, | ||
className: l, | ||
...C | ||
}) { | ||
const [f, E] = Pe(0), [T, c] = Pe(0), [h, j] = Pe(1), I = Se(), F = Se(), D = Se(), L = Cr(() => { | ||
const V = I.current.clientWidth, s = F.current.clientWidth, q = g ? W : n; | ||
let a = Math.ceil(V / s) * 2 - 1; | ||
(a < 1 || isNaN(a)) && (a = 1), j(a), E(s), s < V ? c(V / q) : c(s / q); | ||
}, [g, W, n]), B = xr(() => { | ||
let V = []; | ||
for (let s = 0; s < h; s++) | ||
V.push( | ||
/* @__PURE__ */ we.jsx("div", { className: "marquee__slide", children: S }, s) | ||
const [c, p] = Ce(0), [R, s] = Ce(0), [m, D] = Ce(1), F = we(), z = we(), W = we(), L = Ir(() => { | ||
const x = F.current.clientWidth, j = z.current.clientWidth, q = I ? M : i; | ||
let a = Math.ceil(x / j) * 2 - 1; | ||
(a < 1 || isNaN(a)) && (a = 1), D(a), p(j), j < x ? s(x / q) : s(j / q); | ||
}, [I, M, i]), N = kr(() => { | ||
let x = []; | ||
for (let j = 0; j < m; j++) | ||
x.push( | ||
/* @__PURE__ */ xe.jsx("div", { className: "marquee__slide", children: O }, j) | ||
); | ||
return V; | ||
}, [S, h]); | ||
return wr(() => { | ||
return x; | ||
}, [O, m]); | ||
return $r(() => { | ||
L(); | ||
const { current: V } = I, s = () => { | ||
V && clearTimeout(V), D.current = setTimeout(() => { | ||
const { current: x } = F, j = () => { | ||
x && clearTimeout(x), W.current = setTimeout(() => { | ||
L(); | ||
}, 200); | ||
}; | ||
return window.addEventListener("resize", s), () => { | ||
clearTimeout(V), window.removeEventListener("resize", s); | ||
return window.addEventListener("resize", j), () => { | ||
clearTimeout(x), window.removeEventListener("resize", j); | ||
}; | ||
}, [L]), /* @__PURE__ */ we.jsxs( | ||
}, [L]), /* @__PURE__ */ xe.jsxs( | ||
"div", | ||
{ | ||
...C, | ||
ref: I, | ||
className: Fr(["marquee", f > 0 && "marquee--ready", d]), | ||
ref: F, | ||
className: Jr(["marquee", c > 0 && "marquee--ready", l]), | ||
style: { | ||
"--marquee-width": f, | ||
"--duration": T + "s", | ||
"--animation-state": v ? "running" : "paused" | ||
"--marquee-width": c, | ||
"--duration": R + "s", | ||
"--animation-state": d ? "running" : "paused" | ||
}, | ||
children: [ | ||
/* @__PURE__ */ we.jsx("div", { ref: F, className: "marquee__slide", children: S }), | ||
B | ||
/* @__PURE__ */ xe.jsx("div", { ref: z, className: "marquee__slide", children: O }), | ||
N | ||
] | ||
@@ -1357,12 +1374,12 @@ } | ||
} | ||
Ur.propTypes = { | ||
prefersReducedMotion: ae.bool, | ||
playing: ae.bool, | ||
className: ae.string, | ||
speed: ae.number, | ||
reducedMotionSpeed: ae.number, | ||
children: ae.oneOfType([ae.node, ae.arrayOf(ae.node)]) | ||
Gr.propTypes = { | ||
prefersReducedMotion: ne.bool, | ||
playing: ne.bool, | ||
className: ne.string, | ||
speed: ne.number, | ||
reducedMotionSpeed: ne.number, | ||
children: ne.oneOfType([ne.node, ne.arrayOf(ne.node)]) | ||
}; | ||
export { | ||
Ur as Marquee | ||
Gr as Marquee | ||
}; |
{ | ||
"name": "@wethegit/react-marquee", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "files": [ | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"", | ||
"dev": "vite", | ||
"start": "vite", | ||
"build": "npm run lint:scripts && npm run lint:styles && vite build", | ||
@@ -58,4 +58,4 @@ "lint:scripts": "eslint --fix --ext .jsx,js --ignore-path .gitignore .", | ||
"devDependencies": { | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/react": "^18.2.48", | ||
"@types/react-dom": "^18.2.18", | ||
"@vitejs/plugin-react-swc": "^3.0.0", | ||
@@ -71,2 +71,4 @@ "eslint": "^8.38.0", | ||
"prettier": "^2.8.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"sass": "^1.62.1", | ||
@@ -82,10 +84,8 @@ "stylelint": "^15.6.2", | ||
"peerDependencies": { | ||
"react": "17.0.2", | ||
"react-dom": "^17.0.2" | ||
"react": "17 - 18", | ||
"react-dom": "17 - 18" | ||
}, | ||
"dependencies": { | ||
"prop-types": "~15.8.1", | ||
"react": "17.0.2", | ||
"react-dom": "^17.0.2" | ||
"prop-types": "~15.8.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
1517
84640
22
1
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removedreact@17.0.2
- Removedreact-dom@^17.0.2
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)