@fchh/fcos-suite-map
Version:
This project contains a Map component that can be used to display relevant locations of a Fab City. It is a npm package that contains a React component, which can be embedded into other web projects. It uses Mapbox GL as an interactive mapping framework a
1,515 lines • 337 kB
JavaScript
import { jsxs as oe, jsx as y, Fragment as Ue } from "react/jsx-runtime";
import * as te from "react";
import K, { forwardRef as a, createElement as i, useState as Fe, useCallback as E0, useContext as we, useMemo as ke, useLayoutEffect as y1, useEffect as le, useRef as me, useImperativeHandle as qe, memo as Me, createContext as $1, Fragment as U1 } from "react";
import { createPortal as C1 } from "react-dom";
import F1, { components as w0 } from "react-select";
function u0(e, n) {
return u0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, t) {
return r.__proto__ = t, r;
}, u0(e, n);
}
function fe(e, n) {
e.prototype = Object.create(n.prototype), e.prototype.constructor = e, u0(e, n);
}
var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function k0(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Te = { exports: {} }, Se = { exports: {} }, Q = {};
/** @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 j0;
function q1() {
if (j0) return Q;
j0 = 1;
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, d = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
function L(m) {
if (typeof m == "object" && m !== null) {
var B = m.$$typeof;
switch (B) {
case n:
switch (m = m.type, m) {
case v:
case f:
case t:
case d:
case o:
case p:
return m;
default:
switch (m = m && m.$$typeof, m) {
case u:
case h:
case b:
case C:
case c:
return m;
default:
return B;
}
}
case r:
return B;
}
}
}
function T(m) {
return L(m) === f;
}
return Q.AsyncMode = v, Q.ConcurrentMode = f, Q.ContextConsumer = u, Q.ContextProvider = c, Q.Element = n, Q.ForwardRef = h, Q.Fragment = t, Q.Lazy = b, Q.Memo = C, Q.Portal = r, Q.Profiler = d, Q.StrictMode = o, Q.Suspense = p, Q.isAsyncMode = function(m) {
return T(m) || L(m) === v;
}, Q.isConcurrentMode = T, Q.isContextConsumer = function(m) {
return L(m) === u;
}, Q.isContextProvider = function(m) {
return L(m) === c;
}, Q.isElement = function(m) {
return typeof m == "object" && m !== null && m.$$typeof === n;
}, Q.isForwardRef = function(m) {
return L(m) === h;
}, Q.isFragment = function(m) {
return L(m) === t;
}, Q.isLazy = function(m) {
return L(m) === b;
}, Q.isMemo = function(m) {
return L(m) === C;
}, Q.isPortal = function(m) {
return L(m) === r;
}, Q.isProfiler = function(m) {
return L(m) === d;
}, Q.isStrictMode = function(m) {
return L(m) === o;
}, Q.isSuspense = function(m) {
return L(m) === p;
}, Q.isValidElementType = function(m) {
return typeof m == "string" || typeof m == "function" || m === t || m === f || m === d || m === o || m === p || m === k || typeof m == "object" && m !== null && (m.$$typeof === b || m.$$typeof === C || m.$$typeof === c || m.$$typeof === u || m.$$typeof === h || m.$$typeof === O || m.$$typeof === g || m.$$typeof === M || m.$$typeof === R);
}, Q.typeOf = L, Q;
}
var ee = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var A0;
function Y1() {
return A0 || (A0 = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, d = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
function L(_) {
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
_ === t || _ === f || _ === d || _ === o || _ === p || _ === k || typeof _ == "object" && _ !== null && (_.$$typeof === b || _.$$typeof === C || _.$$typeof === c || _.$$typeof === u || _.$$typeof === h || _.$$typeof === O || _.$$typeof === g || _.$$typeof === M || _.$$typeof === R);
}
function T(_) {
if (typeof _ == "object" && _ !== null) {
var ve = _.$$typeof;
switch (ve) {
case n:
var je = _.type;
switch (je) {
case v:
case f:
case t:
case d:
case o:
case p:
return je;
default:
var B0 = je && je.$$typeof;
switch (B0) {
case u:
case h:
case b:
case C:
case c:
return B0;
default:
return ve;
}
}
case r:
return ve;
}
}
}
var m = v, B = f, x = u, V = c, U = n, I = h, $ = t, N = b, J = C, G = r, X = d, ne = o, ae = p, ie = !1;
function F(_) {
return ie || (ie = !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.")), z(_) || T(_) === v;
}
function z(_) {
return T(_) === f;
}
function w(_) {
return T(_) === u;
}
function H(_) {
return T(_) === c;
}
function A(_) {
return typeof _ == "object" && _ !== null && _.$$typeof === n;
}
function S(_) {
return T(_) === h;
}
function D(_) {
return T(_) === t;
}
function W(_) {
return T(_) === b;
}
function E(_) {
return T(_) === C;
}
function P(_) {
return T(_) === r;
}
function q(_) {
return T(_) === d;
}
function Y(_) {
return T(_) === o;
}
function ce(_) {
return T(_) === p;
}
ee.AsyncMode = m, ee.ConcurrentMode = B, ee.ContextConsumer = x, ee.ContextProvider = V, ee.Element = U, ee.ForwardRef = I, ee.Fragment = $, ee.Lazy = N, ee.Memo = J, ee.Portal = G, ee.Profiler = X, ee.StrictMode = ne, ee.Suspense = ae, ee.isAsyncMode = F, ee.isConcurrentMode = z, ee.isContextConsumer = w, ee.isContextProvider = H, ee.isElement = A, ee.isForwardRef = S, ee.isFragment = D, ee.isLazy = W, ee.isMemo = E, ee.isPortal = P, ee.isProfiler = q, ee.isStrictMode = Y, ee.isSuspense = ce, ee.isValidElementType = L, ee.typeOf = T;
}()), ee;
}
var T0;
function Ye() {
return T0 || (T0 = 1, process.env.NODE_ENV === "production" ? Se.exports = q1() : Se.exports = Y1()), Se.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Ze, S0;
function G1() {
if (S0) return Ze;
S0 = 1;
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
function t(d) {
if (d == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(d);
}
function o() {
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 = {}, u = 0; u < 10; u++)
c["_" + String.fromCharCode(u)] = u;
var v = Object.getOwnPropertyNames(c).map(function(h) {
return c[h];
});
if (v.join("") !== "0123456789")
return !1;
var f = {};
return "abcdefghijklmnopqrst".split("").forEach(function(h) {
f[h] = h;
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Ze = o() ? Object.assign : function(d, c) {
for (var u, v = t(d), f, h = 1; h < arguments.length; h++) {
u = Object(arguments[h]);
for (var p in u)
n.call(u, p) && (v[p] = u[p]);
if (e) {
f = e(u);
for (var k = 0; k < f.length; k++)
r.call(u, f[k]) && (v[f[k]] = u[f[k]]);
}
}
return v;
}, Ze;
}
var Ke, _0;
function M0() {
if (_0) return Ke;
_0 = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Ke = e, Ke;
}
var Xe, O0;
function R1() {
return O0 || (O0 = 1, Xe = Function.call.bind(Object.prototype.hasOwnProperty)), Xe;
}
var Qe, W0;
function J1() {
if (W0) return Qe;
W0 = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var n = /* @__PURE__ */ M0(), r = {}, t = /* @__PURE__ */ R1();
e = function(d) {
var c = "Warning: " + d;
typeof console < "u" && console.error(c);
try {
throw new Error(c);
} catch {
}
};
}
function o(d, c, u, v, f) {
if (process.env.NODE_ENV !== "production") {
for (var h in d)
if (t(d, h)) {
var p;
try {
if (typeof d[h] != "function") {
var k = Error(
(v || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw k.name = "Invariant Violation", k;
}
p = d[h](c, h, v, u, null, n);
} catch (b) {
p = b;
}
if (p && !(p instanceof Error) && e(
(v || "React class") + ": type specification of " + u + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), p instanceof Error && !(p.message in r)) {
r[p.message] = !0;
var C = f ? f() : "";
e(
"Failed " + u + " type: " + p.message + (C ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
}, Qe = o, Qe;
}
var e0, N0;
function Z1() {
if (N0) return e0;
N0 = 1;
var e = Ye(), n = G1(), r = /* @__PURE__ */ M0(), t = /* @__PURE__ */ R1(), o = /* @__PURE__ */ J1(), d = function() {
};
process.env.NODE_ENV !== "production" && (d = function(u) {
var v = "Warning: " + u;
typeof console < "u" && console.error(v);
try {
throw new Error(v);
} catch {
}
});
function c() {
return null;
}
return e0 = function(u, v) {
var f = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
function p(z) {
var w = z && (f && z[f] || z[h]);
if (typeof w == "function")
return w;
}
var k = "<<anonymous>>", C = {
array: g("array"),
bigint: g("bigint"),
bool: g("boolean"),
func: g("function"),
number: g("number"),
object: g("object"),
string: g("string"),
symbol: g("symbol"),
any: M(),
arrayOf: L,
element: T(),
elementType: m(),
instanceOf: B,
node: I(),
objectOf: V,
oneOf: x,
oneOfType: U,
shape: N,
exact: J
};
function b(z, w) {
return z === w ? z !== 0 || 1 / z === 1 / w : z !== z && w !== w;
}
function R(z, w) {
this.message = z, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
}
R.prototype = Error.prototype;
function O(z) {
if (process.env.NODE_ENV !== "production")
var w = {}, H = 0;
function A(D, W, E, P, q, Y, ce) {
if (P = P || k, Y = Y || E, ce !== r) {
if (v) {
var _ = 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 _.name = "Invariant Violation", _;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var ve = P + ":" + E;
!w[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
H < 3 && (d(
"You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + P + "`. 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."
), w[ve] = !0, H++);
}
}
return W[E] == null ? D ? W[E] === null ? new R("The " + q + " `" + Y + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new R("The " + q + " `" + Y + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : z(W, E, P, q, Y);
}
var S = A.bind(null, !1);
return S.isRequired = A.bind(null, !0), S;
}
function g(z) {
function w(H, A, S, D, W, E) {
var P = H[A], q = ne(P);
if (q !== z) {
var Y = ae(P);
return new R(
"Invalid " + D + " `" + W + "` of type " + ("`" + Y + "` supplied to `" + S + "`, expected ") + ("`" + z + "`."),
{ expectedType: z }
);
}
return null;
}
return O(w);
}
function M() {
return O(c);
}
function L(z) {
function w(H, A, S, D, W) {
if (typeof z != "function")
return new R("Property `" + W + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
var E = H[A];
if (!Array.isArray(E)) {
var P = ne(E);
return new R("Invalid " + D + " `" + W + "` of type " + ("`" + P + "` supplied to `" + S + "`, expected an array."));
}
for (var q = 0; q < E.length; q++) {
var Y = z(E, q, S, D, W + "[" + q + "]", r);
if (Y instanceof Error)
return Y;
}
return null;
}
return O(w);
}
function T() {
function z(w, H, A, S, D) {
var W = w[H];
if (!u(W)) {
var E = ne(W);
return new R("Invalid " + S + " `" + D + "` of type " + ("`" + E + "` supplied to `" + A + "`, expected a single ReactElement."));
}
return null;
}
return O(z);
}
function m() {
function z(w, H, A, S, D) {
var W = w[H];
if (!e.isValidElementType(W)) {
var E = ne(W);
return new R("Invalid " + S + " `" + D + "` of type " + ("`" + E + "` supplied to `" + A + "`, expected a single ReactElement type."));
}
return null;
}
return O(z);
}
function B(z) {
function w(H, A, S, D, W) {
if (!(H[A] instanceof z)) {
var E = z.name || k, P = F(H[A]);
return new R("Invalid " + D + " `" + W + "` of type " + ("`" + P + "` supplied to `" + S + "`, expected ") + ("instance of `" + E + "`."));
}
return null;
}
return O(w);
}
function x(z) {
if (!Array.isArray(z))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? d(
"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 w(H, A, S, D, W) {
for (var E = H[A], P = 0; P < z.length; P++)
if (b(E, z[P]))
return null;
var q = JSON.stringify(z, function(ce, _) {
var ve = ae(_);
return ve === "symbol" ? String(_) : _;
});
return new R("Invalid " + D + " `" + W + "` of value `" + String(E) + "` " + ("supplied to `" + S + "`, expected one of " + q + "."));
}
return O(w);
}
function V(z) {
function w(H, A, S, D, W) {
if (typeof z != "function")
return new R("Property `" + W + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
var E = H[A], P = ne(E);
if (P !== "object")
return new R("Invalid " + D + " `" + W + "` of type " + ("`" + P + "` supplied to `" + S + "`, expected an object."));
for (var q in E)
if (t(E, q)) {
var Y = z(E, q, S, D, W + "." + q, r);
if (Y instanceof Error)
return Y;
}
return null;
}
return O(w);
}
function U(z) {
if (!Array.isArray(z))
return process.env.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), c;
for (var w = 0; w < z.length; w++) {
var H = z[w];
if (typeof H != "function")
return d(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(H) + " at index " + w + "."
), c;
}
function A(S, D, W, E, P) {
for (var q = [], Y = 0; Y < z.length; Y++) {
var ce = z[Y], _ = ce(S, D, W, E, P, r);
if (_ == null)
return null;
_.data && t(_.data, "expectedType") && q.push(_.data.expectedType);
}
var ve = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
return new R("Invalid " + E + " `" + P + "` supplied to " + ("`" + W + "`" + ve + "."));
}
return O(A);
}
function I() {
function z(w, H, A, S, D) {
return G(w[H]) ? null : new R("Invalid " + S + " `" + D + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
}
return O(z);
}
function $(z, w, H, A, S) {
return new R(
(z || "React class") + ": " + w + " type `" + H + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
);
}
function N(z) {
function w(H, A, S, D, W) {
var E = H[A], P = ne(E);
if (P !== "object")
return new R("Invalid " + D + " `" + W + "` of type `" + P + "` " + ("supplied to `" + S + "`, expected `object`."));
for (var q in z) {
var Y = z[q];
if (typeof Y != "function")
return $(S, D, W, q, ae(Y));
var ce = Y(E, q, S, D, W + "." + q, r);
if (ce)
return ce;
}
return null;
}
return O(w);
}
function J(z) {
function w(H, A, S, D, W) {
var E = H[A], P = ne(E);
if (P !== "object")
return new R("Invalid " + D + " `" + W + "` of type `" + P + "` " + ("supplied to `" + S + "`, expected `object`."));
var q = n({}, H[A], z);
for (var Y in q) {
var ce = z[Y];
if (t(z, Y) && typeof ce != "function")
return $(S, D, W, Y, ae(ce));
if (!ce)
return new R(
"Invalid " + D + " `" + W + "` key `" + Y + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(H[A], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
);
var _ = ce(E, Y, S, D, W + "." + Y, r);
if (_)
return _;
}
return null;
}
return O(w);
}
function G(z) {
switch (typeof z) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !z;
case "object":
if (Array.isArray(z))
return z.every(G);
if (z === null || u(z))
return !0;
var w = p(z);
if (w) {
var H = w.call(z), A;
if (w !== z.entries) {
for (; !(A = H.next()).done; )
if (!G(A.value))
return !1;
} else
for (; !(A = H.next()).done; ) {
var S = A.value;
if (S && !G(S[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function X(z, w) {
return z === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
}
function ne(z) {
var w = typeof z;
return Array.isArray(z) ? "array" : z instanceof RegExp ? "object" : X(w, z) ? "symbol" : w;
}
function ae(z) {
if (typeof z > "u" || z === null)
return "" + z;
var w = ne(z);
if (w === "object") {
if (z instanceof Date)
return "date";
if (z instanceof RegExp)
return "regexp";
}
return w;
}
function ie(z) {
var w = ae(z);
switch (w) {
case "array":
case "object":
return "an " + w;
case "boolean":
case "date":
case "regexp":
return "a " + w;
default:
return w;
}
}
function F(z) {
return !z.constructor || !z.constructor.name ? k : z.constructor.name;
}
return C.checkPropTypes = o, C.resetWarningCache = o.resetWarningCache, C.PropTypes = C, C;
}, e0;
}
var t0, P0;
function K1() {
if (P0) return t0;
P0 = 1;
var e = /* @__PURE__ */ M0();
function n() {
}
function r() {
}
return r.resetWarningCache = n, t0 = function() {
function t(c, u, v, f, h, p) {
if (p !== e) {
var k = 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 k.name = "Invariant Violation", k;
}
}
t.isRequired = t;
function o() {
return t;
}
var d = {
array: t,
bigint: t,
bool: t,
func: t,
number: t,
object: t,
string: t,
symbol: t,
any: t,
arrayOf: o,
element: t,
elementType: t,
instanceOf: o,
node: t,
objectOf: o,
oneOf: o,
oneOfType: o,
shape: o,
exact: o,
checkPropTypes: r,
resetWarningCache: n
};
return d.PropTypes = d, d;
}, t0;
}
var D0;
function X1() {
if (D0) return Te.exports;
if (D0 = 1, process.env.NODE_ENV !== "production") {
var e = Ye(), n = !0;
Te.exports = /* @__PURE__ */ Z1()(e.isElement, n);
} else
Te.exports = /* @__PURE__ */ K1()();
return Te.exports;
}
var Q1 = /* @__PURE__ */ X1();
const j = /* @__PURE__ */ k0(Q1);
function se() {
return se = Object.assign ? Object.assign.bind() : function(e) {
for (var n = 1; n < arguments.length; n++) {
var r = arguments[n];
for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
}
return e;
}, se.apply(null, arguments);
}
function _e(e) {
return e.charAt(0) === "/";
}
function r0(e, n) {
for (var r = n, t = r + 1, o = e.length; t < o; r += 1, t += 1)
e[r] = e[t];
e.pop();
}
function et(e, n) {
n === void 0 && (n = "");
var r = e && e.split("/") || [], t = n && n.split("/") || [], o = e && _e(e), d = n && _e(n), c = o || d;
if (e && _e(e) ? t = r : r.length && (t.pop(), t = t.concat(r)), !t.length) return "/";
var u;
if (t.length) {
var v = t[t.length - 1];
u = v === "." || v === ".." || v === "";
} else
u = !1;
for (var f = 0, h = t.length; h >= 0; h--) {
var p = t[h];
p === "." ? r0(t, h) : p === ".." ? (r0(t, h), f++) : f && (r0(t, h), f--);
}
if (!c) for (; f--; f) t.unshift("..");
c && t[0] !== "" && (!t[0] || !_e(t[0])) && t.unshift("");
var k = t.join("/");
return u && k.substr(-1) !== "/" && (k += "/"), k;
}
var tt = process.env.NODE_ENV === "production";
function re(e, n) {
if (!tt) {
if (e)
return;
var r = "Warning: " + n;
typeof console < "u" && console.warn(r);
try {
throw Error(r);
} catch {
}
}
}
var rt = process.env.NODE_ENV === "production", n0 = "Invariant failed";
function de(e, n) {
if (rt)
throw new Error(n0);
var r = typeof n == "function" ? n() : n, t = r ? "".concat(n0, ": ").concat(r) : n0;
throw new Error(t);
}
function be(e) {
return e.charAt(0) === "/" ? e : "/" + e;
}
function I0(e) {
return e.charAt(0) === "/" ? e.substr(1) : e;
}
function L0(e, n) {
return e.toLowerCase().indexOf(n.toLowerCase()) === 0 && "/?#".indexOf(e.charAt(n.length)) !== -1;
}
function H1(e, n) {
return L0(e, n) ? e.substr(n.length) : e;
}
function b1(e) {
return e.charAt(e.length - 1) === "/" ? e.slice(0, -1) : e;
}
function nt(e) {
var n = e || "/", r = "", t = "", o = n.indexOf("#");
o !== -1 && (t = n.substr(o), n = n.substr(0, o));
var d = n.indexOf("?");
return d !== -1 && (r = n.substr(d), n = n.substr(0, d)), {
pathname: n,
search: r === "?" ? "" : r,
hash: t === "#" ? "" : t
};
}
function ue(e) {
var n = e.pathname, r = e.search, t = e.hash, o = n || "/";
return r && r !== "?" && (o += r.charAt(0) === "?" ? r : "?" + r), t && t !== "#" && (o += t.charAt(0) === "#" ? t : "#" + t), o;
}
function he(e, n, r, t) {
var o;
typeof e == "string" ? (o = nt(e), o.state = n) : (o = se({}, e), o.pathname === void 0 && (o.pathname = ""), o.search ? o.search.charAt(0) !== "?" && (o.search = "?" + o.search) : o.search = "", o.hash ? o.hash.charAt(0) !== "#" && (o.hash = "#" + o.hash) : o.hash = "", n !== void 0 && o.state === void 0 && (o.state = n));
try {
o.pathname = decodeURI(o.pathname);
} catch (d) {
throw d instanceof URIError ? new URIError('Pathname "' + o.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : d;
}
return r && (o.key = r), t ? o.pathname ? o.pathname.charAt(0) !== "/" && (o.pathname = et(o.pathname, t.pathname)) : o.pathname = t.pathname : o.pathname || (o.pathname = "/"), o;
}
function x0() {
var e = null;
function n(c) {
return process.env.NODE_ENV !== "production" && re(e == null, "A history supports only one prompt at a time"), e = c, function() {
e === c && (e = null);
};
}
function r(c, u, v, f) {
if (e != null) {
var h = typeof e == "function" ? e(c, u) : e;
typeof h == "string" ? typeof v == "function" ? v(h, f) : (process.env.NODE_ENV !== "production" && re(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), f(!0)) : f(h !== !1);
} else
f(!0);
}
var t = [];
function o(c) {
var u = !0;
function v() {
u && c.apply(void 0, arguments);
}
return t.push(v), function() {
u = !1, t = t.filter(function(f) {
return f !== v;
});
};
}
function d() {
for (var c = arguments.length, u = new Array(c), v = 0; v < c; v++)
u[v] = arguments[v];
t.forEach(function(f) {
return f.apply(void 0, u);
});
}
return {
setPrompt: n,
confirmTransitionTo: r,
appendListener: o,
notifyListeners: d
};
}
var V1 = !!(typeof window < "u" && window.document && window.document.createElement);
function B1(e, n) {
n(window.confirm(e));
}
function ot() {
var e = window.navigator.userAgent;
return (e.indexOf("Android 2.") !== -1 || e.indexOf("Android 4.0") !== -1) && e.indexOf("Mobile Safari") !== -1 && e.indexOf("Chrome") === -1 && e.indexOf("Windows Phone") === -1 ? !1 : window.history && "pushState" in window.history;
}
function it() {
return window.navigator.userAgent.indexOf("Trident") === -1;
}
function at() {
return window.navigator.userAgent.indexOf("Firefox") === -1;
}
function lt(e) {
return e.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
}
var $0 = "popstate", U0 = "hashchange";
function F0() {
try {
return window.history.state || {};
} catch {
return {};
}
}
function st(e) {
e === void 0 && (e = {}), V1 || (process.env.NODE_ENV !== "production" ? de(!1, "Browser history needs a DOM") : de());
var n = window.history, r = ot(), t = !it(), o = e, d = o.forceRefresh, c = d === void 0 ? !1 : d, u = o.getUserConfirmation, v = u === void 0 ? B1 : u, f = o.keyLength, h = f === void 0 ? 6 : f, p = e.basename ? b1(be(e.basename)) : "";
function k(F) {
var z = F || {}, w = z.key, H = z.state, A = window.location, S = A.pathname, D = A.search, W = A.hash, E = S + D + W;
return process.env.NODE_ENV !== "production" && re(!p || L0(E, p), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + E + '" to begin with "' + p + '".'), p && (E = H1(E, p)), he(E, H, w);
}
function C() {
return Math.random().toString(36).substr(2, h);
}
var b = x0();
function R(F) {
se(ie, F), ie.length = n.length, b.notifyListeners(ie.location, ie.action);
}
function O(F) {
lt(F) || L(k(F.state));
}
function g() {
L(k(F0()));
}
var M = !1;
function L(F) {
if (M)
M = !1, R();
else {
var z = "POP";
b.confirmTransitionTo(F, z, v, function(w) {
w ? R({
action: z,
location: F
}) : T(F);
});
}
}
function T(F) {
var z = ie.location, w = B.indexOf(z.key);
w === -1 && (w = 0);
var H = B.indexOf(F.key);
H === -1 && (H = 0);
var A = w - H;
A && (M = !0, I(A));
}
var m = k(F0()), B = [m.key];
function x(F) {
return p + ue(F);
}
function V(F, z) {
process.env.NODE_ENV !== "production" && re(!(typeof F == "object" && F.state !== void 0 && z !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
var w = "PUSH", H = he(F, z, C(), ie.location);
b.confirmTransitionTo(H, w, v, function(A) {
if (A) {
var S = x(H), D = H.key, W = H.state;
if (r)
if (n.pushState({
key: D,
state: W
}, null, S), c)
window.location.href = S;
else {
var E = B.indexOf(ie.location.key), P = B.slice(0, E + 1);
P.push(H.key), B = P, R({
action: w,
location: H
});
}
else
process.env.NODE_ENV !== "production" && re(W === void 0, "Browser history cannot push state in browsers that do not support HTML5 history"), window.location.href = S;
}
});
}
function U(F, z) {
process.env.NODE_ENV !== "production" && re(!(typeof F == "object" && F.state !== void 0 && z !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
var w = "REPLACE", H = he(F, z, C(), ie.location);
b.confirmTransitionTo(H, w, v, function(A) {
if (A) {
var S = x(H), D = H.key, W = H.state;
if (r)
if (n.replaceState({
key: D,
state: W
}, null, S), c)
window.location.replace(S);
else {
var E = B.indexOf(ie.location.key);
E !== -1 && (B[E] = H.key), R({
action: w,
location: H
});
}
else
process.env.NODE_ENV !== "production" && re(W === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history"), window.location.replace(S);
}
});
}
function I(F) {
n.go(F);
}
function $() {
I(-1);
}
function N() {
I(1);
}
var J = 0;
function G(F) {
J += F, J === 1 && F === 1 ? (window.addEventListener($0, O), t && window.addEventListener(U0, g)) : J === 0 && (window.removeEventListener($0, O), t && window.removeEventListener(U0, g));
}
var X = !1;
function ne(F) {
F === void 0 && (F = !1);
var z = b.setPrompt(F);
return X || (G(1), X = !0), function() {
return X && (X = !1, G(-1)), z();
};
}
function ae(F) {
var z = b.appendListener(F);
return G(1), function() {
G(-1), z();
};
}
var ie = {
length: n.length,
action: "POP",
location: m,
createHref: x,
push: V,
replace: U,
go: I,
goBack: $,
goForward: N,
block: ne,
listen: ae
};
return ie;
}
var q0 = "hashchange", dt = {
hashbang: {
encodePath: function(n) {
return n.charAt(0) === "!" ? n : "!/" + I0(n);
},
decodePath: function(n) {
return n.charAt(0) === "!" ? n.substr(1) : n;
}
},
noslash: {
encodePath: I0,
decodePath: be
},
slash: {
encodePath: be,
decodePath: be
}
};
function E1(e) {
var n = e.indexOf("#");
return n === -1 ? e : e.slice(0, n);
}
function He() {
var e = window.location.href, n = e.indexOf("#");
return n === -1 ? "" : e.substring(n + 1);
}
function ct(e) {
window.location.hash = e;
}
function o0(e) {
window.location.replace(E1(window.location.href) + "#" + e);
}
function ut(e) {
e === void 0 && (e = {}), V1 || (process.env.NODE_ENV !== "production" ? de(!1, "Hash history needs a DOM") : de());
var n = window.history, r = at(), t = e, o = t.getUserConfirmation, d = o === void 0 ? B1 : o, c = t.hashType, u = c === void 0 ? "slash" : c, v = e.basename ? b1(be(e.basename)) : "", f = dt[u], h = f.encodePath, p = f.decodePath;
function k() {
var w = p(He());
return process.env.NODE_ENV !== "production" && re(!v || L0(w, v), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + w + '" to begin with "' + v + '".'), v && (w = H1(w, v)), he(w);
}
var C = x0();
function b(w) {
se(z, w), z.length = n.length, C.notifyListeners(z.location, z.action);
}
var R = !1, O = null;
function g(w, H) {
return w.pathname === H.pathname && w.search === H.search && w.hash === H.hash;
}
function M() {
var w = He(), H = h(w);
if (w !== H)
o0(H);
else {
var A = k(), S = z.location;
if (!R && g(S, A) || O === ue(A)) return;
O = null, L(A);
}
}
function L(w) {
if (R)
R = !1, b();
else {
var H = "POP";
C.confirmTransitionTo(w, H, d, function(A) {
A ? b({
action: H,
location: w
}) : T(w);
});
}
}
function T(w) {
var H = z.location, A = V.lastIndexOf(ue(H));
A === -1 && (A = 0);
var S = V.lastIndexOf(ue(w));
S === -1 && (S = 0);
var D = A - S;
D && (R = !0, N(D));
}
var m = He(), B = h(m);
m !== B && o0(B);
var x = k(), V = [ue(x)];
function U(w) {
var H = document.querySelector("base"), A = "";
return H && H.getAttribute("href") && (A = E1(window.location.href)), A + "#" + h(v + ue(w));
}
function I(w, H) {
process.env.NODE_ENV !== "production" && re(H === void 0, "Hash history cannot push state; it is ignored");
var A = "PUSH", S = he(w, void 0, void 0, z.location);
C.confirmTransitionTo(S, A, d, function(D) {
if (D) {
var W = ue(S), E = h(v + W), P = He() !== E;
if (P) {
O = W, ct(E);
var q = V.lastIndexOf(ue(z.location)), Y = V.slice(0, q + 1);
Y.push(W), V = Y, b({
action: A,
location: S
});
} else
process.env.NODE_ENV !== "production" && re(!1, "Hash history cannot PUSH the same path; a new entry will not be added to the history stack"), b();
}
});
}
function $(w, H) {
process.env.NODE_ENV !== "production" && re(H === void 0, "Hash history cannot replace state; it is ignored");
var A = "REPLACE", S = he(w, void 0, void 0, z.location);
C.confirmTransitionTo(S, A, d, function(D) {
if (D) {
var W = ue(S), E = h(v + W), P = He() !== E;
P && (O = W, o0(E));
var q = V.indexOf(ue(z.location));
q !== -1 && (V[q] = W), b({
action: A,
location: S
});
}
});
}
function N(w) {
process.env.NODE_ENV !== "production" && re(r, "Hash history go(n) causes a full page reload in this browser"), n.go(w);
}
function J() {
N(-1);
}
function G() {
N(1);
}
var X = 0;
function ne(w) {
X += w, X === 1 && w === 1 ? window.addEventListener(q0, M) : X === 0 && window.removeEventListener(q0, M);
}
var ae = !1;
function ie(w) {
w === void 0 && (w = !1);
var H = C.setPrompt(w);
return ae || (ne(1), ae = !0), function() {
return ae && (ae = !1, ne(-1)), H();
};
}
function F(w) {
var H = C.appendListener(w);
return ne(1), function() {
ne(-1), H();
};
}
var z = {
length: n.length,
action: "POP",
location: x,
createHref: U,
push: I,
replace: $,
go: N,
goBack: J,
goForward: G,
block: ie,
listen: F
};
return z;
}
function Y0(e, n, r) {
return Math.min(Math.max(e, n), r);
}
function ht(e) {
e === void 0 && (e = {});
var n = e, r = n.getUserConfirmation, t = n.initialEntries, o = t === void 0 ? ["/"] : t, d = n.initialIndex, c = d === void 0 ? 0 : d, u = n.keyLength, v = u === void 0 ? 6 : u, f = x0();
function h(V) {
se(x, V), x.length = x.entries.length, f.notifyListeners(x.location, x.action);
}
function p() {
return Math.random().toString(36).substr(2, v);
}
var k = Y0(c, 0, o.length - 1), C = o.map(function(V) {
return typeof V == "string" ? he(V, void 0, p()) : he(V, void 0, V.key || p());
}), b = ue;
function R(V, U) {
process.env.NODE_ENV !== "production" && re(!(typeof V == "object" && V.state !== void 0 && U !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
var I = "PUSH", $ = he(V, U, p(), x.location);
f.confirmTransitionTo($, I, r, function(N) {
if (N) {
var J = x.index, G = J + 1, X = x.entries.slice(0);
X.length > G ? X.splice(G, X.length - G, $) : X.push($), h({
action: I,
location: $,
index: G,
entries: X
});
}
});
}
function O(V, U) {
process.env.NODE_ENV !== "production" && re(!(typeof V == "object" && V.state !== void 0 && U !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
var I = "REPLACE", $ = he(V, U, p(), x.location);
f.confirmTransitionTo($, I, r, function(N) {
N && (x.entries[x.index] = $, h({
action: I,
location: $
}));
});
}
function g(V) {
var U = Y0(x.index + V, 0, x.entries.length - 1), I = "POP", $ = x.entries[U];
f.confirmTransitionTo($, I, r, function(N) {
N ? h({
action: I,
location: $,
index: U
}) : h();
});
}
function M() {
g(-1);
}
function L() {
g(1);
}
function T(V) {
var U = x.index + V;
return U >= 0 && U < x.entries.length;
}
function m(V) {
return V === void 0 && (V = !1), f.setPrompt(V);
}
function B(V) {
return f.appendListener(V);
}
var x = {
length: C.length,
action: "POP",
location: C[k],
index: k,
entries: C,
createHref: b,
push: R,
replace: O,
go: g,
goBack: M,
goForward: L,
canGo: T,
block: m,
listen: B
};
return x;
}
var ze = { exports: {} }, i0, G0;
function vt() {
return G0 || (G0 = 1, i0 = Array.isArray || function(e) {
return Object.prototype.toString.call(e) == "[object Array]";
}), i0;
}
var J0;
function ft() {
if (J0) return ze.exports;
J0 = 1;
var e = vt();
ze.exports = O, ze.exports.parse = r, ze.exports.compile = o, ze.exports.tokensToFunction = u, ze.exports.tokensToRegExp = R;
var n = new RegExp([
// Match escaped characters that would otherwise appear in future matches.
// This allows the user to escape special characters that won't transform.
"(\\\\.)",
// Match Express-style parameters and un-named parameters with a prefix
// and optional suffixes. Matches appear as:
//
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
"([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
].join("|"), "g");
function r(g, M) {
for (var L = [], T = 0, m = 0, B = "", x = M && M.delimiter || "/", V; (V = n.exec(g)) != null; ) {
var U = V[0], I = V[1], $ = V.index;
if (B += g.slice(m, $), m = $ + U.length, I) {
B += I[1];
continue;
}
var N = g[m], J = V[2], G = V[3], X = V[4], ne = V[5], ae = V[6], ie = V[7];
B && (L.push(B), B = "");
var F = J != null && N != null && N !== J, z = ae === "+" || ae === "*", w = ae === "?" || ae === "*", H = J || x, A = X || ne, S = J || (typeof L[L.length - 1] == "string" ? L[L.length - 1] : "");
L.push({
name: G || T++,
prefix: J || "",
delimiter: H,
optional: w,
repeat: z,
partial: F,
asterisk: !!ie,
pattern: A ? f(A) : ie ? ".*" : t(H, S)
});
}
return m < g.length && (B += g.substr(m)), B && L.push(B), L;
}
function t(g, M) {
return !M || M.indexOf(g) > -1 ? "[^" + v(g) + "]+?" : v(M) + "|(?:(?!" + v(M) + ")[^" + v(g) + "])+?";
}
function o(g, M) {
return u(r(g, M), M);
}
function d(g) {
return encodeURI(g).replace(/[\/?#]/g, function(M) {
return "%" + M.charCodeAt(0).toString(16).toUpperCase();
});
}
function c(g) {
return encodeURI(g).replace(/[?#]/g, function(M) {
return "%" + M.charCodeAt(0).toString(16).toUpperCase();
});
}
function u(g, M) {
for (var L = new Array(g.length), T = 0; T < g.length; T++)
typeof g[T] == "object" && (L[T] = new RegExp("^(?:" + g[T].pattern + ")$", p(M)));
return function(m, B) {
for (var x = "", V = m || {}, U = B || {}, I = U.pretty ? d : encodeURIComponent, $ = 0; $ < g.length; $++) {
var N = g[$];
if (typeof N == "string") {
x += N;
continue;
}
var J = V[N.name], G;
if (J == null)
if (N.optional) {
N.partial && (x += N.prefix);
continue;
} else
throw new TypeError('Expected "' + N.name + '" to be defined');
if (e(J)) {
if (!N.repeat)
throw new TypeError('Expected "' + N.name + '" to not repeat, but received `' + JSON.stringify(J) + "`");
if (J.length === 0) {
if (N.optional)
continue;
throw new TypeError('Expected "' + N.name + '" to not be empty');
}
for (var X = 0; X < J.length; X++) {
if (G = I(J[X]), !L[$].test(G))
throw new TypeError('Expected all "' + N.name + '" to match "' + N.pattern + '", but received `' + JSON.stringify(G) + "`");
x += (X === 0 ? N.prefix : N.delimiter) + G;
}
continue;
}
if (G = N.asterisk ? c(J) : I(J), !L[$].test(G))
throw new TypeError('Expected "' + N.name + '" to match "' + N.pattern + '", but received "' + G + '"');
x += N.prefix + G;
}
return x;
};
}
function v(g) {
return g.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
}
function f(g) {
return g.replace(/([=!:$\/()])/g, "\\$1");
}
function h(g, M) {
return g.keys = M, g;
}
function p(g) {
return g && g.sensitive ? "" : "i";
}
function k(g, M) {
var L = g.source.match(/\((?!\?)/g);
if (L)
for (var T = 0; T < L.length; T++)
M.push({
name: T,
prefix: null,
delimiter: null,
optional: !1,
repeat: !1,
partial: !1,
asterisk: !1,
pattern: null
});
return h(g, M);
}
function C(g, M, L) {
for (var T = [], m = 0; m < g.length; m++)
T.push(O(g[m], M, L).source);
var B = new RegExp("(?:" + T.join("|") + ")", p(L));
return h(B, M);
}
function b(g, M, L) {
return R(r(g, L), M, L);
}
function R(g, M, L) {
e(M) || (L = /** @type {!Object} */
M || L, M = []), L = L || {};
for (var T = L.strict, m = L.end !== !1, B = "", x = 0; x < g.length; x++) {
var V = g[x];
if (typeof V == "string")
B += v(V);
else {
var U = v(V.prefix), I = "(?:" + V.pattern + ")";
M.push(V), V.repeat && (I += "(?:" + U + I + ")*"), V.optional ? V.partial ? I = U + "(" + I + ")?" : I = "(?:" + U + "(" + I + "))?" : I = U + "(" + I + ")", B += I;
}
}
var $ = v(L.delimiter || "/"), N = B.slice(-$.length) === $;
return T || (B = (N ? B.slice(0, -$.length) : B) + "(?:" + $ + "(?=$))?"), m ? B += "$" : B += T && N ? "" : "(?=" + $ + "|$)", h(new RegExp("^" + B, p(L)), M);
}
function O(g, M, L) {
return e(M) || (L = /** @type {!Object} */
M || L, M = []), L = L || {}, g instanceof RegExp ? k(
g,
/** @type {!Array} */
M
) : e(g) ? C(
/** @type {!Array} */
g,
/** @type {!Array} */
M,
L
) : b(
/** @type {string} */
g,
/** @type {!Array} */
M,
L
);
}
return ze.exports;
}
var pt = ft();
const mt = /* @__PURE__ */ k0(pt);
var gt = Ye();
function Ge(e, n) {
if (e == null) return {};
var r = {};
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
if (n.indexOf(t) !== -1) continue;
r[t] = e[t];
}
return r;
}
var a0, Z0;
function zt() {
if (Z0) return a0;
Z0 = 1;
var e = Ye(), n = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, r = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, t = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, o = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, d = {};
d[e.ForwardRef] = t, d[e.Memo] = o;
function c(b) {
return e.isMemo(b) ? o : d[b.$$typeof] || n;
}
var u = Object.defineProperty, v = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, h = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, k = Object.prototype;
function C(b, R, O) {
if (typeof R != "string") {
if (k) {
var g = p(R);
g && g !== k && C(b, g, O);
}
var M = v(R);
f && (M = M.concat(f(R)));
for (var L = c(b), T = c(R), m = 0; m < M.length; ++m) {
var B = M[m];
if (!r[B] && !(O && O[B]) && !(T && T[B]) && !(L && L[B])) {
var x = h(R, B);
try {
u(b, B, x);
} catch {
}
}
}
}
return b;
}
return a0 = C, a0;
}
zt();
var Oe = 1073741823, K0 = typeof globalThis < "u" ? (
// eslint-disable-next-line no-undef
globalThis
) : typeof window < "u" ? window : typeof global < "u" ? global : {};
function wt() {
var e = "__global_unique_id__";
return K0[e] = (K0[e] || 0) + 1;
}
function kt(e, n) {
return e === n ? e !== 0 || 1 / e === 1 / n : e !== e && n !== n;
}
function Mt(e) {
var n = [];
return {
on: function(t) {
n.push(t);
},
off: function(t) {
n = n.filter(function(o) {
return o !== t;
});
},
get: function() {
return e;
},
set: function(t, o) {
e = t, n.forEach(function(d) {
return d(e, o);
});
}
};
}
function Lt(e) {
return Array.isArray(e) ? e[0] : e;
}
function xt(e, n) {
var r, t, o = "__create-react-context-" + wt() + "__", d = /* @__PURE__ */ function(u) {
fe(v, u);
function v() {
for (var h, p