UNPKG

@gear-js/react-hooks

Version:
1,216 lines 295 kB
var di = Object.defineProperty; var pi = (e, o, f) => o in e ? di(e, o, { enumerable: !0, configurable: !0, writable: !0, value: f }) : e[o] = f; var W = (e, o, f) => pi(e, typeof o != "symbol" ? o + "" : o, f); import { jsx as le, jsxs as vi, Fragment as mi } from "react/jsx-runtime"; import se, { isValidElement as je, cloneElement as Je, Children as gi, useRef as Se, createContext as Lr, useContext as kr, useState as Ft, useCallback as ce, useMemo as ze, useEffect as ot } from "react"; import ke, { createPortal as wi } from "react-dom"; import { GearApi as yi, decodeAddress as Mi, getStateMetadata as xi } from "@gear-js/api"; import { ScProvider as Ei, WsProvider as bi, Keyring as Rn } from "@polkadot/api"; import { useQuery as Ai, useQueryClient as Gr, useMutation as In } from "@tanstack/react-query"; import { Sails as Ci } from "sails-js"; var Si = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, yr = Math.ceil, Kt = Math.floor, Xt = "[BigNumber Error] ", un = Xt + "Number primitive has more than 15 significant digits: ", $t = 1e14, K = 14, cn = 9007199254740991, Mr = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ue = 1e7, jt = 1e9; function Un(e) { var o, f, a, u = O.prototype = { constructor: O, toString: null, valueOf: null }, i = new O(1), p = 20, y = 4, A = -7, C = 21, S = -1e7, z = 1e7, N = !1, k = 1, B = 0, I = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", // non-breaking space suffix: "" }, L = "0123456789abcdefghijklmnopqrstuvwxyz", F = !0; function O(v, M) { var x, b, E, l, t, r, s, c, h = this; if (!(h instanceof O)) return new O(v, M); if (M == null) { if (v && v._isBigNumber === !0) { h.s = v.s, !v.c || v.e > z ? h.c = h.e = null : v.e < S ? h.c = [h.e = 0] : (h.e = v.e, h.c = v.c.slice()); return; } if ((r = typeof v == "number") && v * 0 == 0) { if (h.s = 1 / v < 0 ? (v = -v, -1) : 1, v === ~~v) { for (l = 0, t = v; t >= 10; t /= 10, l++) ; l > z ? h.c = h.e = null : (h.e = l, h.c = [v]); return; } c = String(v); } else { if (!Si.test(c = String(v))) return a(h, c, r); h.s = c.charCodeAt(0) == 45 ? (c = c.slice(1), -1) : 1; } (l = c.indexOf(".")) > -1 && (c = c.replace(".", "")), (t = c.search(/e/i)) > 0 ? (l < 0 && (l = t), l += +c.slice(t + 1), c = c.substring(0, t)) : l < 0 && (l = c.length); } else { if (st(M, 2, L.length, "Base"), M == 10 && F) return h = new O(v), V(h, p + h.e + 1, y); if (c = String(v), r = typeof v == "number") { if (v * 0 != 0) return a(h, c, r, M); if (h.s = 1 / v < 0 ? (c = c.slice(1), -1) : 1, O.DEBUG && c.replace(/^0\.0*|\./, "").length > 15) throw Error(un + v); } else h.s = c.charCodeAt(0) === 45 ? (c = c.slice(1), -1) : 1; for (x = L.slice(0, M), l = t = 0, s = c.length; t < s; t++) if (x.indexOf(b = c.charAt(t)) < 0) { if (b == ".") { if (t > l) { l = s; continue; } } else if (!E && (c == c.toUpperCase() && (c = c.toLowerCase()) || c == c.toLowerCase() && (c = c.toUpperCase()))) { E = !0, t = -1, l = 0; continue; } return a(h, String(v), r, M); } r = !1, c = f(c, M, 10, h.s), (l = c.indexOf(".")) > -1 ? c = c.replace(".", "") : l = c.length; } for (t = 0; c.charCodeAt(t) === 48; t++) ; for (s = c.length; c.charCodeAt(--s) === 48; ) ; if (c = c.slice(t, ++s)) { if (s -= t, r && O.DEBUG && s > 15 && (v > cn || v !== Kt(v))) throw Error(un + h.s * v); if ((l = l - t - 1) > z) h.c = h.e = null; else if (l < S) h.c = [h.e = 0]; else { if (h.e = l, h.c = [], t = (l + 1) % K, l < 0 && (t += K), t < s) { for (t && h.c.push(+c.slice(0, t)), s -= K; t < s; ) h.c.push(+c.slice(t, t += K)); t = K - (c = c.slice(t)).length; } else t -= s; for (; t--; c += "0") ; h.c.push(+c); } } else h.c = [h.e = 0]; } O.clone = Un, O.ROUND_UP = 0, O.ROUND_DOWN = 1, O.ROUND_CEIL = 2, O.ROUND_FLOOR = 3, O.ROUND_HALF_UP = 4, O.ROUND_HALF_DOWN = 5, O.ROUND_HALF_EVEN = 6, O.ROUND_HALF_CEIL = 7, O.ROUND_HALF_FLOOR = 8, O.EUCLID = 9, O.config = O.set = function(v) { var M, x; if (v != null) if (typeof v == "object") { if (v.hasOwnProperty(M = "DECIMAL_PLACES") && (x = v[M], st(x, 0, jt, M), p = x), v.hasOwnProperty(M = "ROUNDING_MODE") && (x = v[M], st(x, 0, 8, M), y = x), v.hasOwnProperty(M = "EXPONENTIAL_AT") && (x = v[M], x && x.pop ? (st(x[0], -1e9, 0, M), st(x[1], 0, jt, M), A = x[0], C = x[1]) : (st(x, -1e9, jt, M), A = -(C = x < 0 ? -x : x))), v.hasOwnProperty(M = "RANGE")) if (x = v[M], x && x.pop) st(x[0], -1e9, -1, M), st(x[1], 1, jt, M), S = x[0], z = x[1]; else if (st(x, -1e9, jt, M), x) S = -(z = x < 0 ? -x : x); else throw Error(Xt + M + " cannot be zero: " + x); if (v.hasOwnProperty(M = "CRYPTO")) if (x = v[M], x === !!x) if (x) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) N = x; else throw N = !x, Error(Xt + "crypto unavailable"); else N = x; else throw Error(Xt + M + " not true or false: " + x); if (v.hasOwnProperty(M = "MODULO_MODE") && (x = v[M], st(x, 0, 9, M), k = x), v.hasOwnProperty(M = "POW_PRECISION") && (x = v[M], st(x, 0, jt, M), B = x), v.hasOwnProperty(M = "FORMAT")) if (x = v[M], typeof x == "object") I = x; else throw Error(Xt + M + " not an object: " + x); if (v.hasOwnProperty(M = "ALPHABET")) if (x = v[M], typeof x == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(x)) F = x.slice(0, 10) == "0123456789", L = x; else throw Error(Xt + M + " invalid: " + x); } else throw Error(Xt + "Object expected: " + v); return { DECIMAL_PLACES: p, ROUNDING_MODE: y, EXPONENTIAL_AT: [A, C], RANGE: [S, z], CRYPTO: N, MODULO_MODE: k, POW_PRECISION: B, FORMAT: I, ALPHABET: L }; }, O.isBigNumber = function(v) { if (!v || v._isBigNumber !== !0) return !1; if (!O.DEBUG) return !0; var M, x, b = v.c, E = v.e, l = v.s; t: if ({}.toString.call(b) == "[object Array]") { if ((l === 1 || l === -1) && E >= -1e9 && E <= jt && E === Kt(E)) { if (b[0] === 0) { if (E === 0 && b.length === 1) return !0; break t; } if (M = (E + 1) % K, M < 1 && (M += K), String(b[0]).length == M) { for (M = 0; M < b.length; M++) if (x = b[M], x < 0 || x >= $t || x !== Kt(x)) break t; if (x !== 0) return !0; } } } else if (b === null && E === null && (l === null || l === 1 || l === -1)) return !0; throw Error(Xt + "Invalid BigNumber: " + v); }, O.maximum = O.max = function() { return q(arguments, -1); }, O.minimum = O.min = function() { return q(arguments, 1); }, O.random = function() { var v = 9007199254740992, M = Math.random() * v & 2097151 ? function() { return Kt(Math.random() * v); } : function() { return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0); }; return function(x) { var b, E, l, t, r, s = 0, c = [], h = new O(i); if (x == null ? x = p : st(x, 0, jt), t = yr(x / K), N) if (crypto.getRandomValues) { for (b = crypto.getRandomValues(new Uint32Array(t *= 2)); s < t; ) r = b[s] * 131072 + (b[s + 1] >>> 11), r >= 9e15 ? (E = crypto.getRandomValues(new Uint32Array(2)), b[s] = E[0], b[s + 1] = E[1]) : (c.push(r % 1e14), s += 2); s = t / 2; } else if (crypto.randomBytes) { for (b = crypto.randomBytes(t *= 7); s < t; ) r = (b[s] & 31) * 281474976710656 + b[s + 1] * 1099511627776 + b[s + 2] * 4294967296 + b[s + 3] * 16777216 + (b[s + 4] << 16) + (b[s + 5] << 8) + b[s + 6], r >= 9e15 ? crypto.randomBytes(7).copy(b, s) : (c.push(r % 1e14), s += 7); s = t / 7; } else throw N = !1, Error(Xt + "crypto unavailable"); if (!N) for (; s < t; ) r = M(), r < 9e15 && (c[s++] = r % 1e14); for (t = c[--s], x %= K, t && x && (r = Mr[K - x], c[s] = Kt(t / r) * r); c[s] === 0; c.pop(), s--) ; if (s < 0) c = [l = 0]; else { for (l = -1; c[0] === 0; c.splice(0, 1), l -= K) ; for (s = 1, r = c[0]; r >= 10; r /= 10, s++) ; s < K && (l -= K - s); } return h.e = l, h.c = c, h; }; }(), O.sum = function() { for (var v = 1, M = arguments, x = new O(M[0]); v < M.length; ) x = x.plus(M[v++]); return x; }, f = /* @__PURE__ */ function() { var v = "0123456789"; function M(x, b, E, l) { for (var t, r = [0], s, c = 0, h = x.length; c < h; ) { for (s = r.length; s--; r[s] *= b) ; for (r[0] += l.indexOf(x.charAt(c++)), t = 0; t < r.length; t++) r[t] > E - 1 && (r[t + 1] == null && (r[t + 1] = 0), r[t + 1] += r[t] / E | 0, r[t] %= E); } return r.reverse(); } return function(x, b, E, l, t) { var r, s, c, h, w, g, d, n, m = x.indexOf("."), R = p, P = y; for (m >= 0 && (h = B, B = 0, x = x.replace(".", ""), n = new O(b), g = n.pow(x.length - m), B = h, n.c = M( ne(Zt(g.c), g.e, "0"), 10, E, v ), n.e = n.c.length), d = M(x, b, E, t ? (r = L, v) : (r = v, L)), c = h = d.length; d[--h] == 0; d.pop()) ; if (!d[0]) return r.charAt(0); if (m < 0 ? --c : (g.c = d, g.e = c, g.s = l, g = o(g, n, R, P, E), d = g.c, w = g.r, c = g.e), s = c + R + 1, m = d[s], h = E / 2, w = w || s < 0 || d[s + 1] != null, w = P < 4 ? (m != null || w) && (P == 0 || P == (g.s < 0 ? 3 : 2)) : m > h || m == h && (P == 4 || w || P == 6 && d[s - 1] & 1 || P == (g.s < 0 ? 8 : 7)), s < 1 || !d[0]) x = w ? ne(r.charAt(1), -R, r.charAt(0)) : r.charAt(0); else { if (d.length = s, w) for (--E; ++d[--s] > E; ) d[s] = 0, s || (++c, d = [1].concat(d)); for (h = d.length; !d[--h]; ) ; for (m = 0, x = ""; m <= h; x += r.charAt(d[m++])) ; x = ne(x, c, r.charAt(0)); } return x; }; }(), o = /* @__PURE__ */ function() { function v(b, E, l) { var t, r, s, c, h = 0, w = b.length, g = E % ue, d = E / ue | 0; for (b = b.slice(); w--; ) s = b[w] % ue, c = b[w] / ue | 0, t = d * s + c * g, r = g * s + t % ue * ue + h, h = (r / l | 0) + (t / ue | 0) + d * c, b[w] = r % l; return h && (b = [h].concat(b)), b; } function M(b, E, l, t) { var r, s; if (l != t) s = l > t ? 1 : -1; else for (r = s = 0; r < l; r++) if (b[r] != E[r]) { s = b[r] > E[r] ? 1 : -1; break; } return s; } function x(b, E, l, t) { for (var r = 0; l--; ) b[l] -= r, r = b[l] < E[l] ? 1 : 0, b[l] = r * t + b[l] - E[l]; for (; !b[0] && b.length > 1; b.splice(0, 1)) ; } return function(b, E, l, t, r) { var s, c, h, w, g, d, n, m, R, P, T, G, H, Q, _, X, U, nt = b.s == E.s ? 1 : -1, Y = b.c, j = E.c; if (!Y || !Y[0] || !j || !j[0]) return new O( // Return NaN if either NaN, or both Infinity or 0. !b.s || !E.s || (Y ? j && Y[0] == j[0] : !j) ? NaN : ( // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. Y && Y[0] == 0 || !j ? nt * 0 : nt / 0 ) ); for (m = new O(nt), R = m.c = [], c = b.e - E.e, nt = l + c + 1, r || (r = $t, c = Yt(b.e / K) - Yt(E.e / K), nt = nt / K | 0), h = 0; j[h] == (Y[h] || 0); h++) ; if (j[h] > (Y[h] || 0) && c--, nt < 0) R.push(1), w = !0; else { for (Q = Y.length, X = j.length, h = 0, nt += 2, g = Kt(r / (j[0] + 1)), g > 1 && (j = v(j, g, r), Y = v(Y, g, r), X = j.length, Q = Y.length), H = X, P = Y.slice(0, X), T = P.length; T < X; P[T++] = 0) ; U = j.slice(), U = [0].concat(U), _ = j[0], j[1] >= r / 2 && _++; do { if (g = 0, s = M(j, P, X, T), s < 0) { if (G = P[0], X != T && (G = G * r + (P[1] || 0)), g = Kt(G / _), g > 1) for (g >= r && (g = r - 1), d = v(j, g, r), n = d.length, T = P.length; M(d, P, n, T) == 1; ) g--, x(d, X < n ? U : j, n, r), n = d.length, s = 1; else g == 0 && (s = g = 1), d = j.slice(), n = d.length; if (n < T && (d = [0].concat(d)), x(P, d, T, r), T = P.length, s == -1) for (; M(j, P, X, T) < 1; ) g++, x(P, X < T ? U : j, T, r), T = P.length; } else s === 0 && (g++, P = [0]); R[h++] = g, P[0] ? P[T++] = Y[H] || 0 : (P = [Y[H]], T = 1); } while ((H++ < Q || P[0] != null) && nt--); w = P[0] != null, R[0] || R.splice(0, 1); } if (r == $t) { for (h = 1, nt = R[0]; nt >= 10; nt /= 10, h++) ; V(m, l + (m.e = h + c * K - 1) + 1, t, w); } else m.e = c, m.r = +w; return m; }; }(); function J(v, M, x, b) { var E, l, t, r, s; if (x == null ? x = y : st(x, 0, 8), !v.c) return v.toString(); if (E = v.c[0], t = v.e, M == null) s = Zt(v.c), s = b == 1 || b == 2 && (t <= A || t >= C) ? He(s, t) : ne(s, t, "0"); else if (v = V(new O(v), M, x), l = v.e, s = Zt(v.c), r = s.length, b == 1 || b == 2 && (M <= l || l <= A)) { for (; r < M; s += "0", r++) ; s = He(s, l); } else if (M -= t, s = ne(s, l, "0"), l + 1 > r) { if (--M > 0) for (s += "."; M--; s += "0") ; } else if (M += l - r, M > 0) for (l + 1 == r && (s += "."); M--; s += "0") ; return v.s < 0 && E ? "-" + s : s; } function q(v, M) { for (var x, b, E = 1, l = new O(v[0]); E < v.length; E++) b = new O(v[E]), (!b.s || (x = he(l, b)) === M || x === 0 && l.s === M) && (l = b); return l; } function D(v, M, x) { for (var b = 1, E = M.length; !M[--E]; M.pop()) ; for (E = M[0]; E >= 10; E /= 10, b++) ; return (x = b + x * K - 1) > z ? v.c = v.e = null : x < S ? v.c = [v.e = 0] : (v.e = x, v.c = M), v; } a = /* @__PURE__ */ function() { var v = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/, x = /^\.([^.]+)$/, b = /^-?(Infinity|NaN)$/, E = /^\s*\+(?=[\w.])|^\s+|\s+$/g; return function(l, t, r, s) { var c, h = r ? t : t.replace(E, ""); if (b.test(h)) l.s = isNaN(h) ? null : h < 0 ? -1 : 1; else { if (!r && (h = h.replace(v, function(w, g, d) { return c = (d = d.toLowerCase()) == "x" ? 16 : d == "b" ? 2 : 8, !s || s == c ? g : w; }), s && (c = s, h = h.replace(M, "$1").replace(x, "0.$1")), t != h)) return new O(h, c); if (O.DEBUG) throw Error(Xt + "Not a" + (s ? " base " + s : "") + " number: " + t); l.s = null; } l.c = l.e = null; }; }(); function V(v, M, x, b) { var E, l, t, r, s, c, h, w = v.c, g = Mr; if (w) { t: { for (E = 1, r = w[0]; r >= 10; r /= 10, E++) ; if (l = M - E, l < 0) l += K, t = M, s = w[c = 0], h = Kt(s / g[E - t - 1] % 10); else if (c = yr((l + 1) / K), c >= w.length) if (b) { for (; w.length <= c; w.push(0)) ; s = h = 0, E = 1, l %= K, t = l - K + 1; } else break t; else { for (s = r = w[c], E = 1; r >= 10; r /= 10, E++) ; l %= K, t = l - K + E, h = t < 0 ? 0 : Kt(s / g[E - t - 1] % 10); } if (b = b || M < 0 || // Are there any non-zero digits after the rounding digit? // The expression n % pows10[d - j - 1] returns all digits of n to the right // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. w[c + 1] != null || (t < 0 ? s : s % g[E - t - 1]), b = x < 4 ? (h || b) && (x == 0 || x == (v.s < 0 ? 3 : 2)) : h > 5 || h == 5 && (x == 4 || b || x == 6 && // Check whether the digit to the left of the rounding digit is odd. (l > 0 ? t > 0 ? s / g[E - t] : 0 : w[c - 1]) % 10 & 1 || x == (v.s < 0 ? 8 : 7)), M < 1 || !w[0]) return w.length = 0, b ? (M -= v.e + 1, w[0] = g[(K - M % K) % K], v.e = -M || 0) : w[0] = v.e = 0, v; if (l == 0 ? (w.length = c, r = 1, c--) : (w.length = c + 1, r = g[K - l], w[c] = t > 0 ? Kt(s / g[E - t] % g[t]) * r : 0), b) for (; ; ) if (c == 0) { for (l = 1, t = w[0]; t >= 10; t /= 10, l++) ; for (t = w[0] += r, r = 1; t >= 10; t /= 10, r++) ; l != r && (v.e++, w[0] == $t && (w[0] = 1)); break; } else { if (w[c] += r, w[c] != $t) break; w[c--] = 0, r = 1; } for (l = w.length; w[--l] === 0; w.pop()) ; } v.e > z ? v.c = v.e = null : v.e < S && (v.c = [v.e = 0]); } return v; } function rt(v) { var M, x = v.e; return x === null ? v.toString() : (M = Zt(v.c), M = x <= A || x >= C ? He(M, x) : ne(M, x, "0"), v.s < 0 ? "-" + M : M); } return u.absoluteValue = u.abs = function() { var v = new O(this); return v.s < 0 && (v.s = 1), v; }, u.comparedTo = function(v, M) { return he(this, new O(v, M)); }, u.decimalPlaces = u.dp = function(v, M) { var x, b, E, l = this; if (v != null) return st(v, 0, jt), M == null ? M = y : st(M, 0, 8), V(new O(l), v + l.e + 1, M); if (!(x = l.c)) return null; if (b = ((E = x.length - 1) - Yt(this.e / K)) * K, E = x[E]) for (; E % 10 == 0; E /= 10, b--) ; return b < 0 && (b = 0), b; }, u.dividedBy = u.div = function(v, M) { return o(this, new O(v, M), p, y); }, u.dividedToIntegerBy = u.idiv = function(v, M) { return o(this, new O(v, M), 0, 1); }, u.exponentiatedBy = u.pow = function(v, M) { var x, b, E, l, t, r, s, c, h, w = this; if (v = new O(v), v.c && !v.isInteger()) throw Error(Xt + "Exponent not an integer: " + rt(v)); if (M != null && (M = new O(M)), r = v.e > 14, !w.c || !w.c[0] || w.c[0] == 1 && !w.e && w.c.length == 1 || !v.c || !v.c[0]) return h = new O(Math.pow(+rt(w), r ? v.s * (2 - Ge(v)) : +rt(v))), M ? h.mod(M) : h; if (s = v.s < 0, M) { if (M.c ? !M.c[0] : !M.s) return new O(NaN); b = !s && w.isInteger() && M.isInteger(), b && (w = w.mod(M)); } else { if (v.e > 9 && (w.e > 0 || w.e < -1 || (w.e == 0 ? w.c[0] > 1 || r && w.c[1] >= 24e7 : w.c[0] < 8e13 || r && w.c[0] <= 9999975e7))) return l = w.s < 0 && Ge(v) ? -0 : 0, w.e > -1 && (l = 1 / l), new O(s ? 1 / l : l); B && (l = yr(B / K + 2)); } for (r ? (x = new O(0.5), s && (v.s = 1), c = Ge(v)) : (E = Math.abs(+rt(v)), c = E % 2), h = new O(i); ; ) { if (c) { if (h = h.times(w), !h.c) break; l ? h.c.length > l && (h.c.length = l) : b && (h = h.mod(M)); } if (E) { if (E = Kt(E / 2), E === 0) break; c = E % 2; } else if (v = v.times(x), V(v, v.e + 1, 1), v.e > 14) c = Ge(v); else { if (E = +rt(v), E === 0) break; c = E % 2; } w = w.times(w), l ? w.c && w.c.length > l && (w.c.length = l) : b && (w = w.mod(M)); } return b ? h : (s && (h = i.div(h)), M ? h.mod(M) : l ? V(h, B, y, t) : h); }, u.integerValue = function(v) { var M = new O(this); return v == null ? v = y : st(v, 0, 8), V(M, M.e + 1, v); }, u.isEqualTo = u.eq = function(v, M) { return he(this, new O(v, M)) === 0; }, u.isFinite = function() { return !!this.c; }, u.isGreaterThan = u.gt = function(v, M) { return he(this, new O(v, M)) > 0; }, u.isGreaterThanOrEqualTo = u.gte = function(v, M) { return (M = he(this, new O(v, M))) === 1 || M === 0; }, u.isInteger = function() { return !!this.c && Yt(this.e / K) > this.c.length - 2; }, u.isLessThan = u.lt = function(v, M) { return he(this, new O(v, M)) < 0; }, u.isLessThanOrEqualTo = u.lte = function(v, M) { return (M = he(this, new O(v, M))) === -1 || M === 0; }, u.isNaN = function() { return !this.s; }, u.isNegative = function() { return this.s < 0; }, u.isPositive = function() { return this.s > 0; }, u.isZero = function() { return !!this.c && this.c[0] == 0; }, u.minus = function(v, M) { var x, b, E, l, t = this, r = t.s; if (v = new O(v, M), M = v.s, !r || !M) return new O(NaN); if (r != M) return v.s = -M, t.plus(v); var s = t.e / K, c = v.e / K, h = t.c, w = v.c; if (!s || !c) { if (!h || !w) return h ? (v.s = -M, v) : new O(w ? t : NaN); if (!h[0] || !w[0]) return w[0] ? (v.s = -M, v) : new O(h[0] ? t : ( // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity y == 3 ? -0 : 0 )); } if (s = Yt(s), c = Yt(c), h = h.slice(), r = s - c) { for ((l = r < 0) ? (r = -r, E = h) : (c = s, E = w), E.reverse(), M = r; M--; E.push(0)) ; E.reverse(); } else for (b = (l = (r = h.length) < (M = w.length)) ? r : M, r = M = 0; M < b; M++) if (h[M] != w[M]) { l = h[M] < w[M]; break; } if (l && (E = h, h = w, w = E, v.s = -v.s), M = (b = w.length) - (x = h.length), M > 0) for (; M--; h[x++] = 0) ; for (M = $t - 1; b > r; ) { if (h[--b] < w[b]) { for (x = b; x && !h[--x]; h[x] = M) ; --h[x], h[b] += $t; } h[b] -= w[b]; } for (; h[0] == 0; h.splice(0, 1), --c) ; return h[0] ? D(v, h, c) : (v.s = y == 3 ? -1 : 1, v.c = [v.e = 0], v); }, u.modulo = u.mod = function(v, M) { var x, b, E = this; return v = new O(v, M), !E.c || !v.s || v.c && !v.c[0] ? new O(NaN) : !v.c || E.c && !E.c[0] ? new O(E) : (k == 9 ? (b = v.s, v.s = 1, x = o(E, v, 0, 3), v.s = b, x.s *= b) : x = o(E, v, 0, k), v = E.minus(x.times(v)), !v.c[0] && k == 1 && (v.s = E.s), v); }, u.multipliedBy = u.times = function(v, M) { var x, b, E, l, t, r, s, c, h, w, g, d, n, m, R, P = this, T = P.c, G = (v = new O(v, M)).c; if (!T || !G || !T[0] || !G[0]) return !P.s || !v.s || T && !T[0] && !G || G && !G[0] && !T ? v.c = v.e = v.s = null : (v.s *= P.s, !T || !G ? v.c = v.e = null : (v.c = [0], v.e = 0)), v; for (b = Yt(P.e / K) + Yt(v.e / K), v.s *= P.s, s = T.length, w = G.length, s < w && (n = T, T = G, G = n, E = s, s = w, w = E), E = s + w, n = []; E--; n.push(0)) ; for (m = $t, R = ue, E = w; --E >= 0; ) { for (x = 0, g = G[E] % R, d = G[E] / R | 0, t = s, l = E + t; l > E; ) c = T[--t] % R, h = T[t] / R | 0, r = d * c + h * g, c = g * c + r % R * R + n[l] + x, x = (c / m | 0) + (r / R | 0) + d * h, n[l--] = c % m; n[l] = x; } return x ? ++b : n.splice(0, 1), D(v, n, b); }, u.negated = function() { var v = new O(this); return v.s = -v.s || null, v; }, u.plus = function(v, M) { var x, b = this, E = b.s; if (v = new O(v, M), M = v.s, !E || !M) return new O(NaN); if (E != M) return v.s = -M, b.minus(v); var l = b.e / K, t = v.e / K, r = b.c, s = v.c; if (!l || !t) { if (!r || !s) return new O(E / 0); if (!r[0] || !s[0]) return s[0] ? v : new O(r[0] ? b : E * 0); } if (l = Yt(l), t = Yt(t), r = r.slice(), E = l - t) { for (E > 0 ? (t = l, x = s) : (E = -E, x = r), x.reverse(); E--; x.push(0)) ; x.reverse(); } for (E = r.length, M = s.length, E - M < 0 && (x = s, s = r, r = x, M = E), E = 0; M; ) E = (r[--M] = r[M] + s[M] + E) / $t | 0, r[M] = $t === r[M] ? 0 : r[M] % $t; return E && (r = [E].concat(r), ++t), D(v, r, t); }, u.precision = u.sd = function(v, M) { var x, b, E, l = this; if (v != null && v !== !!v) return st(v, 1, jt), M == null ? M = y : st(M, 0, 8), V(new O(l), v, M); if (!(x = l.c)) return null; if (E = x.length - 1, b = E * K + 1, E = x[E]) { for (; E % 10 == 0; E /= 10, b--) ; for (E = x[0]; E >= 10; E /= 10, b++) ; } return v && l.e + 1 > b && (b = l.e + 1), b; }, u.shiftedBy = function(v) { return st(v, -9007199254740991, cn), this.times("1e" + v); }, u.squareRoot = u.sqrt = function() { var v, M, x, b, E, l = this, t = l.c, r = l.s, s = l.e, c = p + 4, h = new O("0.5"); if (r !== 1 || !t || !t[0]) return new O(!r || r < 0 && (!t || t[0]) ? NaN : t ? l : 1 / 0); if (r = Math.sqrt(+rt(l)), r == 0 || r == 1 / 0 ? (M = Zt(t), (M.length + s) % 2 == 0 && (M += "0"), r = Math.sqrt(+M), s = Yt((s + 1) / 2) - (s < 0 || s % 2), r == 1 / 0 ? M = "5e" + s : (M = r.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + s), x = new O(M)) : x = new O(r + ""), x.c[0]) { for (s = x.e, r = s + c, r < 3 && (r = 0); ; ) if (E = x, x = h.times(E.plus(o(l, E, c, 1))), Zt(E.c).slice(0, r) === (M = Zt(x.c)).slice(0, r)) if (x.e < s && --r, M = M.slice(r - 3, r + 1), M == "9999" || !b && M == "4999") { if (!b && (V(E, E.e + p + 2, 0), E.times(E).eq(l))) { x = E; break; } c += 4, r += 4, b = 1; } else { (!+M || !+M.slice(1) && M.charAt(0) == "5") && (V(x, x.e + p + 2, 1), v = !x.times(x).eq(l)); break; } } return V(x, x.e + p + 1, y, v); }, u.toExponential = function(v, M) { return v != null && (st(v, 0, jt), v++), J(this, v, M, 1); }, u.toFixed = function(v, M) { return v != null && (st(v, 0, jt), v = v + this.e + 1), J(this, v, M); }, u.toFormat = function(v, M, x) { var b, E = this; if (x == null) v != null && M && typeof M == "object" ? (x = M, M = null) : v && typeof v == "object" ? (x = v, v = M = null) : x = I; else if (typeof x != "object") throw Error(Xt + "Argument not an object: " + x); if (b = E.toFixed(v, M), E.c) { var l, t = b.split("."), r = +x.groupSize, s = +x.secondaryGroupSize, c = x.groupSeparator || "", h = t[0], w = t[1], g = E.s < 0, d = g ? h.slice(1) : h, n = d.length; if (s && (l = r, r = s, s = l, n -= l), r > 0 && n > 0) { for (l = n % r || r, h = d.substr(0, l); l < n; l += r) h += c + d.substr(l, r); s > 0 && (h += c + d.slice(l)), g && (h = "-" + h); } b = w ? h + (x.decimalSeparator || "") + ((s = +x.fractionGroupSize) ? w.replace( new RegExp("\\d{" + s + "}\\B", "g"), "$&" + (x.fractionGroupSeparator || "") ) : w) : h; } return (x.prefix || "") + b + (x.suffix || ""); }, u.toFraction = function(v) { var M, x, b, E, l, t, r, s, c, h, w, g, d = this, n = d.c; if (v != null && (r = new O(v), !r.isInteger() && (r.c || r.s !== 1) || r.lt(i))) throw Error(Xt + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + rt(r)); if (!n) return new O(d); for (M = new O(i), c = x = new O(i), b = s = new O(i), g = Zt(n), l = M.e = g.length - d.e - 1, M.c[0] = Mr[(t = l % K) < 0 ? K + t : t], v = !v || r.comparedTo(M) > 0 ? l > 0 ? M : c : r, t = z, z = 1 / 0, r = new O(g), s.c[0] = 0; h = o(r, M, 0, 1), E = x.plus(h.times(b)), E.comparedTo(v) != 1; ) x = b, b = E, c = s.plus(h.times(E = c)), s = E, M = r.minus(h.times(E = M)), r = E; return E = o(v.minus(x), b, 0, 1), s = s.plus(E.times(c)), x = x.plus(E.times(b)), s.s = c.s = d.s, l = l * 2, w = o(c, b, l, y).minus(d).abs().comparedTo( o(s, x, l, y).minus(d).abs() ) < 1 ? [c, b] : [s, x], z = t, w; }, u.toNumber = function() { return +rt(this); }, u.toPrecision = function(v, M) { return v != null && st(v, 1, jt), J(this, v, M, 2); }, u.toString = function(v) { var M, x = this, b = x.s, E = x.e; return E === null ? b ? (M = "Infinity", b < 0 && (M = "-" + M)) : M = "NaN" : (v == null ? M = E <= A || E >= C ? He(Zt(x.c), E) : ne(Zt(x.c), E, "0") : v === 10 && F ? (x = V(new O(x), p + E + 1, y), M = ne(Zt(x.c), x.e, "0")) : (st(v, 2, L.length, "Base"), M = f(ne(Zt(x.c), E, "0"), 10, v, b, !0)), b < 0 && x.c[0] && (M = "-" + M)), M; }, u.valueOf = u.toJSON = function() { return rt(this); }, u._isBigNumber = !0, u[Symbol.toStringTag] = "BigNumber", u[Symbol.for("nodejs.util.inspect.custom")] = u.valueOf, e != null && O.set(e), O; } function Yt(e) { var o = e | 0; return e > 0 || e === o ? o : o - 1; } function Zt(e) { for (var o, f, a = 1, u = e.length, i = e[0] + ""; a < u; ) { for (o = e[a++] + "", f = K - o.length; f--; o = "0" + o) ; i += o; } for (u = i.length; i.charCodeAt(--u) === 48; ) ; return i.slice(0, u + 1 || 1); } function he(e, o) { var f, a, u = e.c, i = o.c, p = e.s, y = o.s, A = e.e, C = o.e; if (!p || !y) return null; if (f = u && !u[0], a = i && !i[0], f || a) return f ? a ? 0 : -y : p; if (p != y) return p; if (f = p < 0, a = A == C, !u || !i) return a ? 0 : !u ^ f ? 1 : -1; if (!a) return A > C ^ f ? 1 : -1; for (y = (A = u.length) < (C = i.length) ? A : C, p = 0; p < y; p++) if (u[p] != i[p]) return u[p] > i[p] ^ f ? 1 : -1; return A == C ? 0 : A > C ^ f ? 1 : -1; } function st(e, o, f, a) { if (e < o || e > f || e !== Kt(e)) throw Error(Xt + (a || "Argument") + (typeof e == "number" ? e < o || e > f ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e)); } function Ge(e) { var o = e.c.length - 1; return Yt(e.e / K) == o && e.c[o] % 2 != 0; } function He(e, o) { return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (o < 0 ? "e" : "e+") + o; } function ne(e, o, f) { var a, u; if (o < 0) { for (u = f + "."; ++o; u += f) ; e = u + e; } else if (a = e.length, ++o > a) { for (u = f, o -= a; --o; u += f) ; e += u; } else o < a && (e = e.slice(0, o) + "." + e.slice(o)); return e; } var pe = Un(), De = /* @__PURE__ */ ((e) => (e.INFO = "info", e.ERROR = "error", e.LOADING = "loading", e.SUCCESS = "success", e))(De || {}); const $e = { style: { marginBottom: "10px" }, isClosed: !0, timeout: 5e3 }, Oi = { ...$e, type: De.INFO }, Ie = { ...$e, type: De.ERROR }, Hr = { ...$e, type: De.SUCCESS }, Pi = { ...$e, type: De.LOADING, isClosed: !1, timeout: 0 }, zn = 137; let Ti = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ri = (e = 21) => { let o = "", f = e; for (; f--; ) o += Ti[Math.random() * 64 | 0]; return o; }; function Ii(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Dn = { exports: {} }, at = Dn.exports = {}, ee, re; function Tr() { throw new Error("setTimeout has not been defined"); } function Rr() { throw new Error("clearTimeout has not been defined"); } (function() { try { typeof setTimeout == "function" ? ee = setTimeout : ee = Tr; } catch { ee = Tr; } try { typeof clearTimeout == "function" ? re = clearTimeout : re = Rr; } catch { re = Rr; } })(); function Bn(e) { if (ee === setTimeout) return setTimeout(e, 0); if ((ee === Tr || !ee) && setTimeout) return ee = setTimeout, setTimeout(e, 0); try { return ee(e, 0); } catch { try { return ee.call(null, e, 0); } catch { return ee.call(this, e, 0); } } } function Ui(e) { if (re === clearTimeout) return clearTimeout(e); if ((re === Rr || !re) && clearTimeout) return re = clearTimeout, clearTimeout(e); try { return re(e); } catch { try { return re.call(null, e); } catch { return re.call(this, e); } } } var oe = [], Ae = !1, we, Ze = -1; function zi() { !Ae || !we || (Ae = !1, we.length ? oe = we.concat(oe) : Ze = -1, oe.length && Nn()); } function Nn() { if (!Ae) { var e = Bn(zi); Ae = !0; for (var o = oe.length; o; ) { for (we = oe, oe = []; ++Ze < o; ) we && we[Ze].run(); Ze = -1, o = oe.length; } we = null, Ae = !1, Ui(e); } } at.nextTick = function(e) { var o = new Array(arguments.length - 1); if (arguments.length > 1) for (var f = 1; f < arguments.length; f++) o[f - 1] = arguments[f]; oe.push(new Ln(e, o)), oe.length === 1 && !Ae && Bn(Nn); }; function Ln(e, o) { this.fun = e, this.array = o; } Ln.prototype.run = function() { this.fun.apply(null, this.array); }; at.title = "browser"; at.browser = !0; at.env = {}; at.argv = []; at.version = ""; at.versions = {}; function ae() { } at.on = ae; at.addListener = ae; at.once = ae; at.off = ae; at.removeListener = ae; at.removeAllListeners = ae; at.emit = ae; at.prependListener = ae; at.prependOnceListener = ae; at.listeners = function(e) { return []; }; at.binding = function(e) { throw new Error("process.binding is not supported"); }; at.cwd = function() { return "/"; }; at.chdir = function(e) { throw new Error("process.chdir is not supported"); }; at.umask = function() { return 0; }; var Di = Dn.exports; const Wt = /* @__PURE__ */ Ii(Di); function Ir() { return Ir = Object.assign ? Object.assign.bind() : function(e) { for (var o = 1; o < arguments.length; o++) { var f = arguments[o]; for (var a in f) ({}).hasOwnProperty.call(f, a) && (e[a] = f[a]); } return e; }, Ir.apply(null, arguments); } function kn(e, o) { if (e == null) return {}; var f = {}; for (var a in e) if ({}.hasOwnProperty.call(e, a)) { if (o.indexOf(a) !== -1) continue; f[a] = e[a]; } return f; } function Ur(e, o) { return Ur = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(f, a) { return f.__proto__ = a, f; }, Ur(e, o); } function Gn(e, o) { e.prototype = Object.create(o.prototype), e.prototype.constructor = e, Ur(e, o); } function Hn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Fe = { exports: {} }, Qe = { exports: {} }, $ = {}; /** @license React v16.13.1 * react-is.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 ln; function Bi() { if (ln) return $; ln = 1; var e = typeof Symbol == "function" && Symbol.for, o = e ? Symbol.for("react.element") : 60103, f = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, C = e ? Symbol.for("react.concurrent_mode") : 60111, S = e ? Symbol.for("react.forward_ref") : 60112, z = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, F = e ? Symbol.for("react.responder") : 60118, O = e ? Symbol.for("react.scope") : 60119; function J(D) { if (typeof D == "object" && D !== null) { var V = D.$$typeof; switch (V) { case o: switch (D = D.type, D) { case A: case C: case a: case i: case u: case z: return D; default: switch (D = D && D.$$typeof, D) { case y: case S: case B: case k: case p: return D; default: return V; } } case f: return V; } } } function q(D) { return J(D) === C; } return $.AsyncMode = A, $.ConcurrentMode = C, $.ContextConsumer = y, $.ContextProvider = p, $.Element = o, $.ForwardRef = S, $.Fragment = a, $.Lazy = B, $.Memo = k, $.Portal = f, $.Profiler = i, $.StrictMode = u, $.Suspense = z, $.isAsyncMode = function(D) { return q(D) || J(D) === A; }, $.isConcurrentMode = q, $.isContextConsumer = function(D) { return J(D) === y; }, $.isContextProvider = function(D) { return J(D) === p; }, $.isElement = function(D) { return typeof D == "object" && D !== null && D.$$typeof === o; }, $.isForwardRef = function(D) { return J(D) === S; }, $.isFragment = function(D) { return J(D) === a; }, $.isLazy = function(D) { return J(D) === B; }, $.isMemo = function(D) { return J(D) === k; }, $.isPortal = function(D) { return J(D) === f; }, $.isProfiler = function(D) { return J(D) === i; }, $.isStrictMode = function(D) { return J(D) === u; }, $.isSuspense = function(D) { return J(D) === z; }, $.isValidElementType = function(D) { return typeof D == "string" || typeof D == "function" || D === a || D === C || D === i || D === u || D === z || D === N || typeof D == "object" && D !== null && (D.$$typeof === B || D.$$typeof === k || D.$$typeof === p || D.$$typeof === y || D.$$typeof === S || D.$$typeof === L || D.$$typeof === F || D.$$typeof === O || D.$$typeof === I); }, $.typeOf = J, $; } var tt = {}, hn; function Ni() { return hn || (hn = 1, Wt.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, o = e ? Symbol.for("react.element") : 60103, f = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, C = e ? Symbol.for("react.concurrent_mode") : 60111, S = e ? Symbol.for("react.forward_ref") : 60112, z = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, F = e ? Symbol.for("react.responder") : 60118, O = e ? Symbol.for("react.scope") : 60119; function J(U) { return typeof U == "string" || typeof U == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. U === a || U === C || U === i || U === u || U === z || U === N || typeof U == "object" && U !== null && (U.$$typeof === B || U.$$typeof === k || U.$$typeof === p || U.$$typeof === y || U.$$typeof === S || U.$$typeof === L || U.$$typeof === F || U.$$typeof === O || U.$$typeof === I); } function q(U) { if (typeof U == "object" && U !== null) { var nt = U.$$typeof; switch (nt) { case o: var Y = U.type; switch (Y) { case A: case C: case a: case i: case u: case z: return Y; default: var j = Y && Y.$$typeof; switch (j) { case y: case S: case B: case k: case p: return j; default: return nt; } } case f: return nt; } } } var D = A, V = C, rt = y, v = p, M = o, x = S, b = a, E = B, l = k, t = f, r = i, s = u, c = z, h = !1; function w(U) { return h || (h = !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.")), g(U) || q(U) === A; } function g(U) { return q(U) === C; } function d(U) { return q(U) === y; } function n(U) { return q(U) === p; } function m(U) { return typeof U == "object" && U !== null && U.$$typeof === o; } function R(U) { return q(U) === S; } function P(U) { return q(U) === a; } function T(U) { return q(U) === B; } function G(U) { return q(U) === k; } function H(U) { return q(U) === f; } function Q(U) { return q(U) === i; } function _(U) { return q(U) === u; } function X(U) { return q(U) === z; } tt.AsyncMode = D, tt.ConcurrentMode = V, tt.ContextConsumer = rt, tt.ContextProvider = v, tt.Element = M, tt.ForwardRef = x, tt.Fragment = b, tt.Lazy = E, tt.Memo = l, tt.Portal = t, tt.Profiler = r, tt.StrictMode = s, tt.Suspense = c, tt.isAsyncMode = w, tt.isConcurrentMode = g, tt.isContextConsumer = d, tt.isContextProvider = n, tt.isElement = m, tt.isForwardRef = R, tt.isFragment = P, tt.isLazy = T, tt.isMemo = G, tt.isPortal = H, tt.isProfiler = Q, tt.isStrictMode = _, tt.isSuspense = X, tt.isValidElementType = J, tt.typeOf = q; }()), tt; } var dn; function Fn() { return dn || (dn = 1, Wt.env.NODE_ENV === "production" ? Qe.exports = Bi() : Qe.exports = Ni()), Qe.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var xr, pn; function Li() { if (pn) return xr; pn = 1; var e = Object.getOwnPropertySymbols, o = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable; function a(i) { if (i == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(i); } function u() { try { if (!Object.assign) return !1; var i = new String("abc"); if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5") return !1; for (var p = {}, y = 0; y < 10; y++) p["_" + String.fromCharCode(y)] = y; var A = Object.getOwnPropertyNames(p).map(function(S) { return p[S]; }); if (A.join("") !== "0123456789") return !1; var C = {}; return "abcdefghijklmnopqrst".split("").forEach(function(S) { C[S] = S; }), Object.keys(Object.assign({}, C)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return xr = u() ? Object.assign : function(i, p) { for (var y, A = a(i), C, S = 1; S < arguments.length; S++) { y = Object(arguments[S]); for (var z in y) o.call(y, z) && (A[z] = y[z]); if (e) { C = e(y); for (var N = 0; N < C.length; N++) f.call(y, C[N]) && (A[C[N]] = y[C[N]]); } } return A; }, xr; } var Er, vn; function Fr() { if (vn) return Er; vn = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Er = e, Er; } var br, mn; function Qn() { return mn || (mn = 1, br = Function.call.bind(Object.prototype.hasOwnProperty)), br; } var Ar, gn; function ki() { if (gn) return Ar; gn = 1; var e = function() { }; if (Wt.env.NODE_ENV !== "production") { var o = /* @__PURE__ */ Fr(), f = {}, a = /* @__PURE__ */ Qn(); e = function(i) { var p = "Warning: " + i; typeof console < "u" && console.error(p); try { throw new Error(p); } catch { } }; } function u(i, p, y, A, C) { if (Wt.env.NODE_ENV !== "production") { for (var S in i) if (a(i, S)) { var z; try { if (typeof i[S] != "function") { var N = Error( (A || "React class") + ": " + y + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw N.name = "Invariant Violation", N; } z = i[S](p, S, A, y, null, o); } catch (B) { z = B; } if (z && !(z instanceof Error) && e( (A || "React class") + ": type specification of " + y + " `" + S + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof z + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), z instanceof Error && !(z.message in f)) { f[z.message] = !0; var k = C ? C() : ""; e( "Failed " + y + " type: " + z.message + (k ?? "") ); } } } } return u.resetWarningCache = function() { Wt.env.NODE_ENV !== "production" && (f = {}); }, Ar = u, Ar; } var Cr, wn; function Gi() { if (wn) return Cr; wn = 1; var e = Fn(), o = Li(), f = /* @__PURE__ */ Fr(), a = /* @__PURE__ */ Qn(), u = /* @__PURE__ */ ki(), i = function() { }; Wt.env.NODE_ENV !== "production" && (i = function(y) { var A = "Warning: " + y; typeof console < "u" && console.error(A); try { throw new Error(A); } catch { } }); function p() { return null; } return Cr = function(y, A) { var C = typeof Symbol == "function" && Symbol.iterator, S = "@@iterator"; function z(g) { var d = g && (C && g[C] || g[S]); if (typeof d == "function") return d; } var N = "<<anonymous>>", k = { array: F("array"), bigint: F("bigint"), bool: F("boolean"), func: F("function"), number: F("number"), object: F("object"), string: F("string"), symbol: F("symbol"), any: O(), arrayOf: J, element: q(), elementType: D(), instanceOf: V, node: x(), objectOf: v, oneOf: rt, oneOfType: M, shape: E, exact: l }; function B(g, d) { return g === d ? g !== 0 || 1 / g === 1 / d : g !== g && d !== d; } function I(g, d) { this.message = g, this.data = d && typeof d == "object" ? d : {}, this.stack = ""; } I.prototype = Error.prototype; function L(g) { if (Wt.env.NODE_ENV !== "production") var d = {}, n = 0; function m(P, T, G, H, Q, _, X) { if (H = H || N, _ = _ || G, X !== f) { if (A) { var U = 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 U.name = "Invariant Violation", U; } else if (Wt.env.NODE_ENV !== "production" && typeof console < "u") { var nt = H + ":" + G; !d[nt] && // Avoid spamming the console because they are often not actionable except for lib authors n < 3 && (i( "You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + H + "`. 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." ), d[nt] = !0, n++); } } return T[G] == null ? P ? T[G] === null ? new I("The " + Q + " `" + _ + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new I("The " + Q + " `" + _ + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : g(T, G, H, Q, _); } var R = m.bind(null, !1); return R.isRequired = m.bind(null, !0), R; } function F(g) { function d(n, m, R, P, T, G) { var H = n[m], Q = s(H); if (Q !== g) { var _ = c(H); return new I( "Invalid " + P + " `" + T + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected ") + ("`" + g + "`."), { expectedType: g } ); } return null; } return L(d); } function O() { return L(p); } function J(g) { function d(n, m, R, P, T) { if (typeof g != "function") return new I("Property `" + T + "` of component `" + R + "` has invalid PropType notation inside arrayOf."); var G = n[m]; if (!Array.isArray(G)) { var H = s(G); return new I("Invalid " + P + " `" + T + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected an array.")); } for (var Q = 0; Q < G.length; Q++) { var _ = g(G, Q, R, P, T + "[" + Q + "]", f); if (_ instanceof Error) return _; } return null; } return L(d); } function q() { function g(d, n, m, R, P) { var T = d[n]; if (!y(T)) { var G = s(T); return new I("Invalid " + R + " `" + P + "` of type " + ("`" + G + "` supplied to `" + m + "`, expected a single ReactElement.")); } return null; } return L(g); } function D() { function g(d, n, m, R, P) { var T = d[n]; if (!e.isValidElementType(T)) { var G = s(T); return new I("Invalid " + R + " `" + P + "` of type " + ("`" + G + "` supplied to `" + m + "`, expected a single ReactElement type.")); } return null; } return L(g); } function V(g) { function d(n, m, R, P, T) { if (!(n[m] instanceof g)) { var G = g.name || N, H = w(n[m]); return new I("Invalid " + P + " `" + T + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected ") + ("instance of `" + G + "`.")); } return null; } return L(d); } function rt(g) { if (!Array.isArray(g)) return Wt.env.NODE_ENV !== "production" && (arguments.length > 1 ? i( "Invalid arguments supplied to oneOf, e