"use strict";
(self["webpackChunkclimb_onyx_gui_extension"] = self["webpackChunkclimb_onyx_gui_extension"] || []).push([["vendors-node_modules_climb-onyx-gui_dist_climb-onyx-gui_js"],{

/***/ "./node_modules/climb-onyx-gui/dist/climb-onyx-gui.js":
/*!************************************************************!*\
  !*** ./node_modules/climb-onyx-gui/dist/climb-onyx-gui.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ hG)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);



function hh(a) {
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
}
var IA = { exports: {} };
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
(function(a) {
  (function() {
    var r = {}.hasOwnProperty;
    function u() {
      for (var p = "", h = 0; h < arguments.length; h++) {
        var C = arguments[h];
        C && (p = c(p, f(C)));
      }
      return p;
    }
    function f(p) {
      if (typeof p == "string" || typeof p == "number")
        return p;
      if (typeof p != "object")
        return "";
      if (Array.isArray(p))
        return u.apply(null, p);
      if (p.toString !== Object.prototype.toString && !p.toString.toString().includes("[native code]"))
        return p.toString();
      var h = "";
      for (var C in p)
        r.call(p, C) && p[C] && (h = c(h, C));
      return h;
    }
    function c(p, h) {
      return h ? p ? p + " " + h : p + h : p;
    }
    a.exports ? (u.default = u, a.exports = u) : window.classNames = u;
  })();
})(IA);
var tB = IA.exports;
const Qe = /* @__PURE__ */ hh(tB);
var US = { exports: {} }, My = { exports: {} }, Xt = {};
/** @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 jT;
function nB() {
  if (jT)
    return Xt;
  jT = 1;
  var a = typeof Symbol == "function" && Symbol.for, r = a ? Symbol.for("react.element") : 60103, u = a ? Symbol.for("react.portal") : 60106, f = a ? Symbol.for("react.fragment") : 60107, c = a ? Symbol.for("react.strict_mode") : 60108, p = a ? Symbol.for("react.profiler") : 60114, h = a ? Symbol.for("react.provider") : 60109, C = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, E = a ? Symbol.for("react.concurrent_mode") : 60111, w = a ? Symbol.for("react.forward_ref") : 60112, T = a ? Symbol.for("react.suspense") : 60113, A = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, N = a ? Symbol.for("react.fundamental") : 60117, P = a ? Symbol.for("react.responder") : 60118, $ = a ? Symbol.for("react.scope") : 60119;
  function H(V) {
    if (typeof V == "object" && V !== null) {
      var j = V.$$typeof;
      switch (j) {
        case r:
          switch (V = V.type, V) {
            case y:
            case E:
            case f:
            case p:
            case c:
            case T:
              return V;
            default:
              switch (V = V && V.$$typeof, V) {
                case C:
                case w:
                case L:
                case O:
                case h:
                  return V;
                default:
                  return j;
              }
          }
        case u:
          return j;
      }
    }
  }
  function z(V) {
    return H(V) === E;
  }
  return Xt.AsyncMode = y, Xt.ConcurrentMode = E, Xt.ContextConsumer = C, Xt.ContextProvider = h, Xt.Element = r, Xt.ForwardRef = w, Xt.Fragment = f, Xt.Lazy = L, Xt.Memo = O, Xt.Portal = u, Xt.Profiler = p, Xt.StrictMode = c, Xt.Suspense = T, Xt.isAsyncMode = function(V) {
    return z(V) || H(V) === y;
  }, Xt.isConcurrentMode = z, Xt.isContextConsumer = function(V) {
    return H(V) === C;
  }, Xt.isContextProvider = function(V) {
    return H(V) === h;
  }, Xt.isElement = function(V) {
    return typeof V == "object" && V !== null && V.$$typeof === r;
  }, Xt.isForwardRef = function(V) {
    return H(V) === w;
  }, Xt.isFragment = function(V) {
    return H(V) === f;
  }, Xt.isLazy = function(V) {
    return H(V) === L;
  }, Xt.isMemo = function(V) {
    return H(V) === O;
  }, Xt.isPortal = function(V) {
    return H(V) === u;
  }, Xt.isProfiler = function(V) {
    return H(V) === p;
  }, Xt.isStrictMode = function(V) {
    return H(V) === c;
  }, Xt.isSuspense = function(V) {
    return H(V) === T;
  }, Xt.isValidElementType = function(V) {
    return typeof V == "string" || typeof V == "function" || V === f || V === E || V === p || V === c || V === T || V === A || typeof V == "object" && V !== null && (V.$$typeof === L || V.$$typeof === O || V.$$typeof === h || V.$$typeof === C || V.$$typeof === w || V.$$typeof === N || V.$$typeof === P || V.$$typeof === $ || V.$$typeof === M);
  }, Xt.typeOf = H, Xt;
}
var Zt = {};
/** @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 UT;
function rB() {
  return UT || (UT = 1,  true && function() {
    var a = typeof Symbol == "function" && Symbol.for, r = a ? Symbol.for("react.element") : 60103, u = a ? Symbol.for("react.portal") : 60106, f = a ? Symbol.for("react.fragment") : 60107, c = a ? Symbol.for("react.strict_mode") : 60108, p = a ? Symbol.for("react.profiler") : 60114, h = a ? Symbol.for("react.provider") : 60109, C = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, E = a ? Symbol.for("react.concurrent_mode") : 60111, w = a ? Symbol.for("react.forward_ref") : 60112, T = a ? Symbol.for("react.suspense") : 60113, A = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, N = a ? Symbol.for("react.fundamental") : 60117, P = a ? Symbol.for("react.responder") : 60118, $ = a ? Symbol.for("react.scope") : 60119;
    function H(Ce) {
      return typeof Ce == "string" || typeof Ce == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
      Ce === f || Ce === E || Ce === p || Ce === c || Ce === T || Ce === A || typeof Ce == "object" && Ce !== null && (Ce.$$typeof === L || Ce.$$typeof === O || Ce.$$typeof === h || Ce.$$typeof === C || Ce.$$typeof === w || Ce.$$typeof === N || Ce.$$typeof === P || Ce.$$typeof === $ || Ce.$$typeof === M);
    }
    function z(Ce) {
      if (typeof Ce == "object" && Ce !== null) {
        var Tt = Ce.$$typeof;
        switch (Tt) {
          case r:
            var Pt = Ce.type;
            switch (Pt) {
              case y:
              case E:
              case f:
              case p:
              case c:
              case T:
                return Pt;
              default:
                var bt = Pt && Pt.$$typeof;
                switch (bt) {
                  case C:
                  case w:
                  case L:
                  case O:
                  case h:
                    return bt;
                  default:
                    return Tt;
                }
            }
          case u:
            return Tt;
        }
      }
    }
    var V = y, j = E, B = C, G = h, ae = r, ge = w, de = f, Ee = L, ye = O, ke = u, Ue = p, Se = c, Ke = T, ue = !1;
    function xe(Ce) {
      return ue || (ue = !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(Ce) || z(Ce) === y;
    }
    function Z(Ce) {
      return z(Ce) === E;
    }
    function se(Ce) {
      return z(Ce) === C;
    }
    function me(Ce) {
      return z(Ce) === h;
    }
    function Te(Ce) {
      return typeof Ce == "object" && Ce !== null && Ce.$$typeof === r;
    }
    function Ie(Ce) {
      return z(Ce) === w;
    }
    function Oe(Ce) {
      return z(Ce) === f;
    }
    function Ae(Ce) {
      return z(Ce) === L;
    }
    function je(Ce) {
      return z(Ce) === O;
    }
    function Pe(Ce) {
      return z(Ce) === u;
    }
    function et(Ce) {
      return z(Ce) === p;
    }
    function ft(Ce) {
      return z(Ce) === c;
    }
    function Rt(Ce) {
      return z(Ce) === T;
    }
    Zt.AsyncMode = V, Zt.ConcurrentMode = j, Zt.ContextConsumer = B, Zt.ContextProvider = G, Zt.Element = ae, Zt.ForwardRef = ge, Zt.Fragment = de, Zt.Lazy = Ee, Zt.Memo = ye, Zt.Portal = ke, Zt.Profiler = Ue, Zt.StrictMode = Se, Zt.Suspense = Ke, Zt.isAsyncMode = xe, Zt.isConcurrentMode = Z, Zt.isContextConsumer = se, Zt.isContextProvider = me, Zt.isElement = Te, Zt.isForwardRef = Ie, Zt.isFragment = Oe, Zt.isLazy = Ae, Zt.isMemo = je, Zt.isPortal = Pe, Zt.isProfiler = et, Zt.isStrictMode = ft, Zt.isSuspense = Rt, Zt.isValidElementType = H, Zt.typeOf = z;
  }()), Zt;
}
var WT;
function fE() {
  return WT || (WT = 1,  false ? 0 : My.exports = rB()), My.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var hS, XT;
function aB() {
  if (XT)
    return hS;
  XT = 1;
  var a = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
  function f(p) {
    if (p == null)
      throw new TypeError("Object.assign cannot be called with null or undefined");
    return Object(p);
  }
  function c() {
    try {
      if (!Object.assign)
        return !1;
      var p = new String("abc");
      if (p[5] = "de", Object.getOwnPropertyNames(p)[0] === "5")
        return !1;
      for (var h = {}, C = 0; C < 10; C++)
        h["_" + String.fromCharCode(C)] = C;
      var y = Object.getOwnPropertyNames(h).map(function(w) {
        return h[w];
      });
      if (y.join("") !== "0123456789")
        return !1;
      var E = {};
      return "abcdefghijklmnopqrst".split("").forEach(function(w) {
        E[w] = w;
      }), Object.keys(Object.assign({}, E)).join("") === "abcdefghijklmnopqrst";
    } catch {
      return !1;
    }
  }
  return hS = c() ? Object.assign : function(p, h) {
    for (var C, y = f(p), E, w = 1; w < arguments.length; w++) {
      C = Object(arguments[w]);
      for (var T in C)
        r.call(C, T) && (y[T] = C[T]);
      if (a) {
        E = a(C);
        for (var A = 0; A < E.length; A++)
          u.call(C, E[A]) && (y[E[A]] = C[E[A]]);
      }
    }
    return y;
  }, hS;
}
var mS, ZT;
function dE() {
  if (ZT)
    return mS;
  ZT = 1;
  var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
  return mS = a, mS;
}
var gS, YT;
function AA() {
  return YT || (YT = 1, gS = Function.call.bind(Object.prototype.hasOwnProperty)), gS;
}
var yS, $T;
function iB() {
  if ($T)
    return yS;
  $T = 1;
  var a = function() {
  };
  if (true) {
    var r = dE(), u = {}, f = AA();
    a = function(p) {
      var h = "Warning: " + p;
      typeof console < "u" && console.error(h);
      try {
        throw new Error(h);
      } catch {
      }
    };
  }
  function c(p, h, C, y, E) {
    if (true) {
      for (var w in p)
        if (f(p, w)) {
          var T;
          try {
            if (typeof p[w] != "function") {
              var A = Error(
                (y || "React class") + ": " + C + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
              );
              throw A.name = "Invariant Violation", A;
            }
            T = p[w](h, w, y, C, null, r);
          } catch (L) {
            T = L;
          }
          if (T && !(T instanceof Error) && a(
            (y || "React class") + ": type specification of " + C + " `" + w + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof T + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
          ), T instanceof Error && !(T.message in u)) {
            u[T.message] = !0;
            var O = E ? E() : "";
            a(
              "Failed " + C + " type: " + T.message + (O ?? "")
            );
          }
        }
    }
  }
  return c.resetWarningCache = function() {
     true && (u = {});
  }, yS = c, yS;
}
var bS, QT;
function oB() {
  if (QT)
    return bS;
  QT = 1;
  var a = fE(), r = aB(), u = dE(), f = AA(), c = iB(), p = function() {
  };
   true && (p = function(C) {
    var y = "Warning: " + C;
    typeof console < "u" && console.error(y);
    try {
      throw new Error(y);
    } catch {
    }
  });
  function h() {
    return null;
  }
  return bS = function(C, y) {
    var E = typeof Symbol == "function" && Symbol.iterator, w = "@@iterator";
    function T(Z) {
      var se = Z && (E && Z[E] || Z[w]);
      if (typeof se == "function")
        return se;
    }
    var A = "<<anonymous>>", O = {
      array: P("array"),
      bigint: P("bigint"),
      bool: P("boolean"),
      func: P("function"),
      number: P("number"),
      object: P("object"),
      string: P("string"),
      symbol: P("symbol"),
      any: $(),
      arrayOf: H,
      element: z(),
      elementType: V(),
      instanceOf: j,
      node: ge(),
      objectOf: G,
      oneOf: B,
      oneOfType: ae,
      shape: Ee,
      exact: ye
    };
    function L(Z, se) {
      return Z === se ? Z !== 0 || 1 / Z === 1 / se : Z !== Z && se !== se;
    }
    function M(Z, se) {
      this.message = Z, this.data = se && typeof se == "object" ? se : {}, this.stack = "";
    }
    M.prototype = Error.prototype;
    function N(Z) {
      if (true)
        var se = {}, me = 0;
      function Te(Oe, Ae, je, Pe, et, ft, Rt) {
        if (Pe = Pe || A, ft = ft || je, Rt !== u) {
          if (y) {
            var Ce = 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 Ce.name = "Invariant Violation", Ce;
          } else if ( true && typeof console < "u") {
            var Tt = Pe + ":" + je;
            !se[Tt] && // Avoid spamming the console because they are often not actionable except for lib authors
            me < 3 && (p(
              "You are manually calling a React.PropTypes validation function for the `" + ft + "` prop on `" + Pe + "`. 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."
            ), se[Tt] = !0, me++);
          }
        }
        return Ae[je] == null ? Oe ? Ae[je] === null ? new M("The " + et + " `" + ft + "` is marked as required " + ("in `" + Pe + "`, but its value is `null`.")) : new M("The " + et + " `" + ft + "` is marked as required in " + ("`" + Pe + "`, but its value is `undefined`.")) : null : Z(Ae, je, Pe, et, ft);
      }
      var Ie = Te.bind(null, !1);
      return Ie.isRequired = Te.bind(null, !0), Ie;
    }
    function P(Z) {
      function se(me, Te, Ie, Oe, Ae, je) {
        var Pe = me[Te], et = Se(Pe);
        if (et !== Z) {
          var ft = Ke(Pe);
          return new M(
            "Invalid " + Oe + " `" + Ae + "` of type " + ("`" + ft + "` supplied to `" + Ie + "`, expected ") + ("`" + Z + "`."),
            { expectedType: Z }
          );
        }
        return null;
      }
      return N(se);
    }
    function $() {
      return N(h);
    }
    function H(Z) {
      function se(me, Te, Ie, Oe, Ae) {
        if (typeof Z != "function")
          return new M("Property `" + Ae + "` of component `" + Ie + "` has invalid PropType notation inside arrayOf.");
        var je = me[Te];
        if (!Array.isArray(je)) {
          var Pe = Se(je);
          return new M("Invalid " + Oe + " `" + Ae + "` of type " + ("`" + Pe + "` supplied to `" + Ie + "`, expected an array."));
        }
        for (var et = 0; et < je.length; et++) {
          var ft = Z(je, et, Ie, Oe, Ae + "[" + et + "]", u);
          if (ft instanceof Error)
            return ft;
        }
        return null;
      }
      return N(se);
    }
    function z() {
      function Z(se, me, Te, Ie, Oe) {
        var Ae = se[me];
        if (!C(Ae)) {
          var je = Se(Ae);
          return new M("Invalid " + Ie + " `" + Oe + "` of type " + ("`" + je + "` supplied to `" + Te + "`, expected a single ReactElement."));
        }
        return null;
      }
      return N(Z);
    }
    function V() {
      function Z(se, me, Te, Ie, Oe) {
        var Ae = se[me];
        if (!a.isValidElementType(Ae)) {
          var je = Se(Ae);
          return new M("Invalid " + Ie + " `" + Oe + "` of type " + ("`" + je + "` supplied to `" + Te + "`, expected a single ReactElement type."));
        }
        return null;
      }
      return N(Z);
    }
    function j(Z) {
      function se(me, Te, Ie, Oe, Ae) {
        if (!(me[Te] instanceof Z)) {
          var je = Z.name || A, Pe = xe(me[Te]);
          return new M("Invalid " + Oe + " `" + Ae + "` of type " + ("`" + Pe + "` supplied to `" + Ie + "`, expected ") + ("instance of `" + je + "`."));
        }
        return null;
      }
      return N(se);
    }
    function B(Z) {
      if (!Array.isArray(Z))
        return  true && (arguments.length > 1 ? p(
          "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])."
        ) : p("Invalid argument supplied to oneOf, expected an array.")), h;
      function se(me, Te, Ie, Oe, Ae) {
        for (var je = me[Te], Pe = 0; Pe < Z.length; Pe++)
          if (L(je, Z[Pe]))
            return null;
        var et = JSON.stringify(Z, function(Rt, Ce) {
          var Tt = Ke(Ce);
          return Tt === "symbol" ? String(Ce) : Ce;
        });
        return new M("Invalid " + Oe + " `" + Ae + "` of value `" + String(je) + "` " + ("supplied to `" + Ie + "`, expected one of " + et + "."));
      }
      return N(se);
    }
    function G(Z) {
      function se(me, Te, Ie, Oe, Ae) {
        if (typeof Z != "function")
          return new M("Property `" + Ae + "` of component `" + Ie + "` has invalid PropType notation inside objectOf.");
        var je = me[Te], Pe = Se(je);
        if (Pe !== "object")
          return new M("Invalid " + Oe + " `" + Ae + "` of type " + ("`" + Pe + "` supplied to `" + Ie + "`, expected an object."));
        for (var et in je)
          if (f(je, et)) {
            var ft = Z(je, et, Ie, Oe, Ae + "." + et, u);
            if (ft instanceof Error)
              return ft;
          }
        return null;
      }
      return N(se);
    }
    function ae(Z) {
      if (!Array.isArray(Z))
        return  true && p("Invalid argument supplied to oneOfType, expected an instance of array."), h;
      for (var se = 0; se < Z.length; se++) {
        var me = Z[se];
        if (typeof me != "function")
          return p(
            "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(me) + " at index " + se + "."
          ), h;
      }
      function Te(Ie, Oe, Ae, je, Pe) {
        for (var et = [], ft = 0; ft < Z.length; ft++) {
          var Rt = Z[ft], Ce = Rt(Ie, Oe, Ae, je, Pe, u);
          if (Ce == null)
            return null;
          Ce.data && f(Ce.data, "expectedType") && et.push(Ce.data.expectedType);
        }
        var Tt = et.length > 0 ? ", expected one of type [" + et.join(", ") + "]" : "";
        return new M("Invalid " + je + " `" + Pe + "` supplied to " + ("`" + Ae + "`" + Tt + "."));
      }
      return N(Te);
    }
    function ge() {
      function Z(se, me, Te, Ie, Oe) {
        return ke(se[me]) ? null : new M("Invalid " + Ie + " `" + Oe + "` supplied to " + ("`" + Te + "`, expected a ReactNode."));
      }
      return N(Z);
    }
    function de(Z, se, me, Te, Ie) {
      return new M(
        (Z || "React class") + ": " + se + " type `" + me + "." + Te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Ie + "`."
      );
    }
    function Ee(Z) {
      function se(me, Te, Ie, Oe, Ae) {
        var je = me[Te], Pe = Se(je);
        if (Pe !== "object")
          return new M("Invalid " + Oe + " `" + Ae + "` of type `" + Pe + "` " + ("supplied to `" + Ie + "`, expected `object`."));
        for (var et in Z) {
          var ft = Z[et];
          if (typeof ft != "function")
            return de(Ie, Oe, Ae, et, Ke(ft));
          var Rt = ft(je, et, Ie, Oe, Ae + "." + et, u);
          if (Rt)
            return Rt;
        }
        return null;
      }
      return N(se);
    }
    function ye(Z) {
      function se(me, Te, Ie, Oe, Ae) {
        var je = me[Te], Pe = Se(je);
        if (Pe !== "object")
          return new M("Invalid " + Oe + " `" + Ae + "` of type `" + Pe + "` " + ("supplied to `" + Ie + "`, expected `object`."));
        var et = r({}, me[Te], Z);
        for (var ft in et) {
          var Rt = Z[ft];
          if (f(Z, ft) && typeof Rt != "function")
            return de(Ie, Oe, Ae, ft, Ke(Rt));
          if (!Rt)
            return new M(
              "Invalid " + Oe + " `" + Ae + "` key `" + ft + "` supplied to `" + Ie + "`.\nBad object: " + JSON.stringify(me[Te], null, "  ") + `
Valid keys: ` + JSON.stringify(Object.keys(Z), null, "  ")
            );
          var Ce = Rt(je, ft, Ie, Oe, Ae + "." + ft, u);
          if (Ce)
            return Ce;
        }
        return null;
      }
      return N(se);
    }
    function ke(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(ke);
          if (Z === null || C(Z))
            return !0;
          var se = T(Z);
          if (se) {
            var me = se.call(Z), Te;
            if (se !== Z.entries) {
              for (; !(Te = me.next()).done; )
                if (!ke(Te.value))
                  return !1;
            } else
              for (; !(Te = me.next()).done; ) {
                var Ie = Te.value;
                if (Ie && !ke(Ie[1]))
                  return !1;
              }
          } else
            return !1;
          return !0;
        default:
          return !1;
      }
    }
    function Ue(Z, se) {
      return Z === "symbol" ? !0 : se ? se["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && se instanceof Symbol : !1;
    }
    function Se(Z) {
      var se = typeof Z;
      return Array.isArray(Z) ? "array" : Z instanceof RegExp ? "object" : Ue(se, Z) ? "symbol" : se;
    }
    function Ke(Z) {
      if (typeof Z > "u" || Z === null)
        return "" + Z;
      var se = Se(Z);
      if (se === "object") {
        if (Z instanceof Date)
          return "date";
        if (Z instanceof RegExp)
          return "regexp";
      }
      return se;
    }
    function ue(Z) {
      var se = Ke(Z);
      switch (se) {
        case "array":
        case "object":
          return "an " + se;
        case "boolean":
        case "date":
        case "regexp":
          return "a " + se;
        default:
          return se;
      }
    }
    function xe(Z) {
      return !Z.constructor || !Z.constructor.name ? A : Z.constructor.name;
    }
    return O.checkPropTypes = c, O.resetWarningCache = c.resetWarningCache, O.PropTypes = O, O;
  }, bS;
}
var CS, JT;
function uB() {
  if (JT)
    return CS;
  JT = 1;
  var a = dE();
  function r() {
  }
  function u() {
  }
  return u.resetWarningCache = r, CS = function() {
    function f(h, C, y, E, w, T) {
      if (T !== a) {
        var A = 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 A.name = "Invariant Violation", A;
      }
    }
    f.isRequired = f;
    function c() {
      return f;
    }
    var p = {
      array: f,
      bigint: f,
      bool: f,
      func: f,
      number: f,
      object: f,
      string: f,
      symbol: f,
      any: f,
      arrayOf: c,
      element: f,
      elementType: f,
      instanceOf: c,
      node: f,
      objectOf: c,
      oneOf: c,
      oneOfType: c,
      shape: c,
      exact: c,
      checkPropTypes: u,
      resetWarningCache: r
    };
    return p.PropTypes = p, p;
  }, CS;
}
if (true) {
  var lB = fE(), sB = !0;
  US.exports = oB()(lB.isElement, sB);
} else
  {}
var cB = US.exports;
const vt = /* @__PURE__ */ hh(cB), fB = {
  /**
   * Specify whether the feedback is for valid or invalid fields
   *
   * @type {('valid'|'invalid')}
   */
  type: vt.string,
  /** Display feedback as a tooltip. */
  tooltip: vt.bool,
  as: vt.elementType
}, b0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  ({
    as: a = "div",
    className: r,
    type: u = "valid",
    tooltip: f = !1,
    ...c
  }, p) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(a, {
    ...c,
    ref: p,
    className: Qe(r, `${u}-${f ? "tooltip" : "feedback"}`)
  })
);
b0.displayName = "Feedback";
b0.propTypes = fB;
const wu = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext({}), OA = ["xxl", "xl", "lg", "md", "sm", "xs"], DA = "xs", C0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext({
  prefixes: {},
  breakpoints: OA,
  minBreakpoint: DA
});
function lt(a, r) {
  const {
    prefixes: u
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(C0);
  return a || u[r] || r;
}
function pE() {
  const {
    breakpoints: a
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(C0);
  return a;
}
function vE() {
  const {
    minBreakpoint: a
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(C0);
  return a;
}
function dB() {
  const {
    dir: a
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(C0);
  return a === "rtl";
}
const hE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  id: a,
  bsPrefix: r,
  className: u,
  type: f = "checkbox",
  isValid: c = !1,
  isInvalid: p = !1,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: h = "input",
  ...C
}, y) => {
  const {
    controlId: E
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  return r = lt(r, "form-check-input"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(h, {
    ...C,
    ref: y,
    type: f,
    id: a || E,
    className: Qe(u, r, c && "is-valid", p && "is-invalid")
  });
});
hE.displayName = "FormCheckInput";
const Qy = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  htmlFor: u,
  ...f
}, c) => {
  const {
    controlId: p
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  return a = lt(a, "form-check-label"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label", {
    ...f,
    ref: c,
    htmlFor: u || p,
    className: Qe(r, a)
  });
});
Qy.displayName = "FormCheckLabel";
function pB(a, r) {
  return react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(a).some((u) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(u) && u.type === r);
}
const NA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  id: a,
  bsPrefix: r,
  bsSwitchPrefix: u,
  inline: f = !1,
  reverse: c = !1,
  disabled: p = !1,
  isValid: h = !1,
  isInvalid: C = !1,
  feedbackTooltip: y = !1,
  feedback: E,
  feedbackType: w,
  className: T,
  style: A,
  title: O = "",
  type: L = "checkbox",
  label: M,
  children: N,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: P = "input",
  ...$
}, H) => {
  r = lt(r, "form-check"), u = lt(u, "form-switch");
  const {
    controlId: z
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    controlId: a || z
  }), [z, a]), j = !N && M != null && M !== !1 || pB(N, Qy), B = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(hE, {
    ...$,
    type: L === "switch" ? "checkbox" : L,
    ref: H,
    isValid: h,
    isInvalid: C,
    disabled: p,
    as: P
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wu.Provider, {
    value: V,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
      style: A,
      className: Qe(T, j && r, f && `${r}-inline`, c && `${r}-reverse`, L === "switch" && u),
      children: N || /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
        children: [B, j && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Qy, {
          title: O,
          children: M
        }), E && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(b0, {
          type: w,
          tooltip: y,
          children: E
        })]
      })
    })
  });
});
NA.displayName = "FormCheck";
const Jy = Object.assign(NA, {
  Input: hE,
  Label: Qy
});
var vB = "development" !== "production", kA = function() {
};
if (vB) {
  var hB = function(r, u) {
    var f = arguments.length;
    u = new Array(f > 1 ? f - 1 : 0);
    for (var c = 1; c < f; c++)
      u[c - 1] = arguments[c];
    var p = 0, h = "Warning: " + r.replace(/%s/g, function() {
      return u[p++];
    });
    typeof console < "u" && console.error(h);
    try {
      throw new Error(h);
    } catch {
    }
  };
  kA = function(a, r, u) {
    var f = arguments.length;
    u = new Array(f > 2 ? f - 2 : 0);
    for (var c = 2; c < f; c++)
      u[c - 2] = arguments[c];
    if (r === void 0)
      throw new Error(
        "`warning(condition, format, ...args)` requires a warning message argument"
      );
    a || hB.apply(null, [r].concat(u));
  };
}
var mB = kA;
const S0 = /* @__PURE__ */ hh(mB), MA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  type: r,
  size: u,
  htmlSize: f,
  id: c,
  className: p,
  isValid: h = !1,
  isInvalid: C = !1,
  plaintext: y,
  readOnly: E,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: w = "input",
  ...T
}, A) => {
  const {
    controlId: O
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  return a = lt(a, "form-control"),  true && S0(O == null || !c, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(w, {
    ...T,
    type: r,
    size: f,
    ref: A,
    readOnly: E,
    id: c || O,
    className: Qe(p, y ? `${a}-plaintext` : a, u && `${a}-${u}`, r === "color" && `${a}-color`, h && "is-valid", C && "is-invalid")
  });
});
MA.displayName = "FormControl";
const gB = Object.assign(MA, {
  Feedback: b0
}), LA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  ...f
}, c) => (r = lt(r, "form-floating"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
LA.displayName = "FormFloating";
const mE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  controlId: a,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: r = "div",
  ...u
}, f) => {
  const c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    controlId: a
  }), [a]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wu.Provider, {
    value: c,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(r, {
      ...u,
      ref: f
    })
  });
});
mE.displayName = "FormGroup";
function yB({
  as: a,
  bsPrefix: r,
  className: u,
  ...f
}) {
  r = lt(r, "col");
  const c = pE(), p = vE(), h = [], C = [];
  return c.forEach((y) => {
    const E = f[y];
    delete f[y];
    let w, T, A;
    typeof E == "object" && E != null ? {
      span: w,
      offset: T,
      order: A
    } = E : w = E;
    const O = y !== p ? `-${y}` : "";
    w && h.push(w === !0 ? `${r}${O}` : `${r}${O}-${w}`), A != null && C.push(`order${O}-${A}`), T != null && C.push(`offset${O}-${T}`);
  }), [{
    ...f,
    className: Qe(u, ...h, ...C)
  }, {
    as: a,
    bsPrefix: r,
    spans: h
  }];
}
const oc = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  (a, r) => {
    const [{
      className: u,
      ...f
    }, {
      as: c = "div",
      bsPrefix: p,
      spans: h
    }] = yB(a);
    return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(c, {
      ...f,
      ref: r,
      className: Qe(u, !h.length && p)
    });
  }
);
oc.displayName = "Col";
const FA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: a = "label",
  bsPrefix: r,
  column: u = !1,
  visuallyHidden: f = !1,
  className: c,
  htmlFor: p,
  ...h
}, C) => {
  const {
    controlId: y
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  r = lt(r, "form-label");
  let E = "col-form-label";
  typeof u == "string" && (E = `${E} ${E}-${u}`);
  const w = Qe(c, r, f && "visually-hidden", u && E);
  return  true && S0(y == null || !p, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), p = p || y, u ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, {
    ref: C,
    as: "label",
    className: w,
    htmlFor: p,
    ...h
  }) : (
    // eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(a, {
      ref: C,
      className: w,
      htmlFor: p,
      ...h
    })
  );
});
FA.displayName = "FormLabel";
const BA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  id: u,
  ...f
}, c) => {
  const {
    controlId: p
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  return a = lt(a, "form-range"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", {
    ...f,
    type: "range",
    ref: c,
    className: Qe(r, a),
    id: u || p
  });
});
BA.displayName = "FormRange";
const VA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  size: r,
  htmlSize: u,
  className: f,
  isValid: c = !1,
  isInvalid: p = !1,
  id: h,
  ...C
}, y) => {
  const {
    controlId: E
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wu);
  return a = lt(a, "form-select"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("select", {
    ...C,
    size: u,
    ref: y,
    className: Qe(f, a, r && `${a}-${r}`, c && "is-valid", p && "is-invalid"),
    id: h || E
  });
});
VA.displayName = "FormSelect";
const PA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  ({
    bsPrefix: a,
    className: r,
    as: u = "small",
    muted: f,
    ...c
  }, p) => (a = lt(a, "form-text"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
    ...c,
    ref: p,
    className: Qe(r, a, f && "text-muted")
  }))
);
PA.displayName = "FormText";
const HA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Jy, {
  ...a,
  ref: r,
  type: "switch"
}));
HA.displayName = "Switch";
const bB = Object.assign(HA, {
  Input: Jy.Input,
  Label: Jy.Label
}), _A = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  children: u,
  controlId: f,
  label: c,
  ...p
}, h) => (a = lt(a, "form-floating"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(mE, {
  ref: h,
  className: Qe(r, a),
  controlId: f,
  ...p,
  children: [u, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label", {
    htmlFor: f,
    children: c
  })]
})));
_A.displayName = "FloatingLabel";
const CB = {
  /**
   * The Form `ref` will be forwarded to the underlying element,
   * which means, unless it's rendered `as` a composite component,
   * it will be a DOM node, when resolved.
   *
   * @type {ReactRef}
   * @alias ref
   */
  _ref: vt.any,
  /**
   * Mark a form as having been validated. Setting it to `true` will
   * toggle any validation styles on the forms elements.
   */
  validated: vt.bool,
  as: vt.elementType
}, gE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  validated: r,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: u = "form",
  ...f
}, c) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ...f,
  ref: c,
  className: Qe(a, r && "was-validated")
}));
gE.displayName = "Form";
gE.propTypes = CB;
const yE = Object.assign(gE, {
  Group: mE,
  Control: gB,
  Floating: LA,
  Check: Jy,
  Switch: bB,
  Label: FA,
  Text: PA,
  Range: BA,
  Select: VA,
  FloatingLabel: _A
});
function ot() {
  return ot = Object.assign ? Object.assign.bind() : function(a) {
    for (var r = 1; r < arguments.length; r++) {
      var u = arguments[r];
      for (var f in u)
        Object.prototype.hasOwnProperty.call(u, f) && (a[f] = u[f]);
    }
    return a;
  }, ot.apply(this, arguments);
}
function bE(a, r) {
  if (a == null)
    return {};
  var u = {};
  for (var f in a)
    if (Object.prototype.hasOwnProperty.call(a, f)) {
      if (r.indexOf(f) >= 0)
        continue;
      u[f] = a[f];
    }
  return u;
}
var SB = function(a, r, u, f, c, p, h, C) {
  if ( true && r === void 0)
    throw new Error("invariant requires an error message argument");
  if (!a) {
    var y;
    if (r === void 0)
      y = new Error(
        "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
      );
    else {
      var E = [u, f, c, p, h, C], w = 0;
      y = new Error(
        r.replace(/%s/g, function() {
          return E[w++];
        })
      ), y.name = "Invariant Violation";
    }
    throw y.framesToPop = 1, y;
  }
}, EB = SB;
const qT = /* @__PURE__ */ hh(EB);
function KT(a) {
  return "default" + a.charAt(0).toUpperCase() + a.substr(1);
}
function xB(a) {
  var r = wB(a, "string");
  return typeof r == "symbol" ? r : String(r);
}
function wB(a, r) {
  if (typeof a != "object" || a === null)
    return a;
  var u = a[Symbol.toPrimitive];
  if (u !== void 0) {
    var f = u.call(a, r);
    if (typeof f != "object")
      return f;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return String(a);
}
function RB(a, r, u) {
  var f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(a !== void 0), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r), p = c[0], h = c[1], C = a !== void 0, y = f.current;
  return f.current = C, !C && y && p !== r && h(r), [C ? a : p, (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(E) {
    for (var w = arguments.length, T = new Array(w > 1 ? w - 1 : 0), A = 1; A < w; A++)
      T[A - 1] = arguments[A];
    u && u.apply(void 0, [E].concat(T)), h(E);
  }, [u])];
}
function CE(a, r) {
  return Object.keys(r).reduce(function(u, f) {
    var c, p = u, h = p[KT(f)], C = p[f], y = bE(p, [KT(f), f].map(xB)), E = r[f], w = RB(C, h, a[E]), T = w[0], A = w[1];
    return ot({}, y, (c = {}, c[f] = T, c[E] = A, c));
  }, a);
}
function qy(a, r) {
  return qy = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(f, c) {
    return f.__proto__ = c, f;
  }, qy(a, r);
}
function TB(a, r) {
  a.prototype = Object.create(r.prototype), a.prototype.constructor = a, qy(a, r);
}
function IB(a) {
  const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(a);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    r.current = a;
  }, [a]), r;
}
function Pn(a) {
  const r = IB(a);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(...u) {
    return r.current && r.current(...u);
  }, [r]);
}
const E0 = (a) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((r, u) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
  ...r,
  ref: u,
  className: Qe(r.className, a)
})), zA = E0("h4");
zA.displayName = "DivStyledAsH4";
const GA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = zA,
  ...f
}, c) => (r = lt(r, "alert-heading"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
GA.displayName = "AlertHeading";
function AB() {
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);
}
function OB(a, r, u, f = !1) {
  const c = Pn(u);
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    const p = typeof a == "function" ? a() : a;
    return p.addEventListener(r, c, f), () => p.removeEventListener(r, c, f);
  }, [a]);
}
function jA() {
  const a = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!0), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(() => a.current);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => (a.current = !0, () => {
    a.current = !1;
  }), []), r.current;
}
function UA(a) {
  const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    r.current = a;
  }), r.current;
}
const DB = typeof __webpack_require__.g < "u" && // @ts-ignore
__webpack_require__.g.navigator && // @ts-ignore
__webpack_require__.g.navigator.product === "ReactNative", NB = typeof document < "u", Ky = NB || DB ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect, kB = ["as", "disabled"];
function MB(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
function LB(a) {
  return !a || a.trim() === "#";
}
function SE({
  tagName: a,
  disabled: r,
  href: u,
  target: f,
  rel: c,
  role: p,
  onClick: h,
  tabIndex: C = 0,
  type: y
}) {
  a || (u != null || f != null || c != null ? a = "a" : a = "button");
  const E = {
    tagName: a
  };
  if (a === "button")
    return [{
      type: y || "button",
      disabled: r
    }, E];
  const w = (A) => {
    if ((r || a === "a" && LB(u)) && A.preventDefault(), r) {
      A.stopPropagation();
      return;
    }
    h == null || h(A);
  }, T = (A) => {
    A.key === " " && (A.preventDefault(), w(A));
  };
  return a === "a" && (u || (u = "#"), r && (u = void 0)), [{
    role: p ?? "button",
    // explicitly undefined so that it overrides the props disabled in a spread
    // e.g. <Tag {...props} {...hookProps} />
    disabled: void 0,
    tabIndex: r ? void 0 : C,
    href: u,
    target: a === "a" ? f : void 0,
    "aria-disabled": r || void 0,
    rel: a === "a" ? c : void 0,
    onClick: w,
    onKeyDown: T
  }, E];
}
const EE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  let {
    as: u,
    disabled: f
  } = a, c = MB(a, kB);
  const [p, {
    tagName: h
  }] = SE(Object.assign({
    tagName: u,
    disabled: f
  }, c));
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(h, Object.assign({}, c, p, {
    ref: r
  }));
});
EE.displayName = "Button";
const FB = ["onKeyDown"];
function BB(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
function VB(a) {
  return !a || a.trim() === "#";
}
const mh = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  let {
    onKeyDown: u
  } = a, f = BB(a, FB);
  const [c] = SE(Object.assign({
    tagName: "a"
  }, f)), p = Pn((h) => {
    c.onKeyDown(h), u == null || u(h);
  });
  return VB(f.href) || f.role === "button" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("a", Object.assign({
    ref: r
  }, f, c, {
    onKeyDown: p
  })) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("a", Object.assign({
    ref: r
  }, f, {
    onKeyDown: u
  }));
});
mh.displayName = "Anchor";
const WA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = mh,
  ...f
}, c) => (r = lt(r, "alert-link"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
WA.displayName = "AlertLink";
var WS = { exports: {} }, ka = {}, Ly = { exports: {} }, SS = {};
/**
 * @license React
 * scheduler.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 eI;
function PB() {
  return eI || (eI = 1, function(a) {
    function r(ue, xe) {
      var Z = ue.length;
      ue.push(xe);
      e:
        for (; 0 < Z; ) {
          var se = Z - 1 >>> 1, me = ue[se];
          if (0 < c(me, xe))
            ue[se] = xe, ue[Z] = me, Z = se;
          else
            break e;
        }
    }
    function u(ue) {
      return ue.length === 0 ? null : ue[0];
    }
    function f(ue) {
      if (ue.length === 0)
        return null;
      var xe = ue[0], Z = ue.pop();
      if (Z !== xe) {
        ue[0] = Z;
        e:
          for (var se = 0, me = ue.length, Te = me >>> 1; se < Te; ) {
            var Ie = 2 * (se + 1) - 1, Oe = ue[Ie], Ae = Ie + 1, je = ue[Ae];
            if (0 > c(Oe, Z))
              Ae < me && 0 > c(je, Oe) ? (ue[se] = je, ue[Ae] = Z, se = Ae) : (ue[se] = Oe, ue[Ie] = Z, se = Ie);
            else if (Ae < me && 0 > c(je, Z))
              ue[se] = je, ue[Ae] = Z, se = Ae;
            else
              break e;
          }
      }
      return xe;
    }
    function c(ue, xe) {
      var Z = ue.sortIndex - xe.sortIndex;
      return Z !== 0 ? Z : ue.id - xe.id;
    }
    if (typeof performance == "object" && typeof performance.now == "function") {
      var p = performance;
      a.unstable_now = function() {
        return p.now();
      };
    } else {
      var h = Date, C = h.now();
      a.unstable_now = function() {
        return h.now() - C;
      };
    }
    var y = [], E = [], w = 1, T = null, A = 3, O = !1, L = !1, M = !1, N = typeof setTimeout == "function" ? setTimeout : null, P = typeof clearTimeout == "function" ? clearTimeout : null, $ = typeof setImmediate < "u" ? setImmediate : null;
    typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
    function H(ue) {
      for (var xe = u(E); xe !== null; ) {
        if (xe.callback === null)
          f(E);
        else if (xe.startTime <= ue)
          f(E), xe.sortIndex = xe.expirationTime, r(y, xe);
        else
          break;
        xe = u(E);
      }
    }
    function z(ue) {
      if (M = !1, H(ue), !L)
        if (u(y) !== null)
          L = !0, Se(V);
        else {
          var xe = u(E);
          xe !== null && Ke(z, xe.startTime - ue);
        }
    }
    function V(ue, xe) {
      L = !1, M && (M = !1, P(G), G = -1), O = !0;
      var Z = A;
      try {
        for (H(xe), T = u(y); T !== null && (!(T.expirationTime > xe) || ue && !de()); ) {
          var se = T.callback;
          if (typeof se == "function") {
            T.callback = null, A = T.priorityLevel;
            var me = se(T.expirationTime <= xe);
            xe = a.unstable_now(), typeof me == "function" ? T.callback = me : T === u(y) && f(y), H(xe);
          } else
            f(y);
          T = u(y);
        }
        if (T !== null)
          var Te = !0;
        else {
          var Ie = u(E);
          Ie !== null && Ke(z, Ie.startTime - xe), Te = !1;
        }
        return Te;
      } finally {
        T = null, A = Z, O = !1;
      }
    }
    var j = !1, B = null, G = -1, ae = 5, ge = -1;
    function de() {
      return !(a.unstable_now() - ge < ae);
    }
    function Ee() {
      if (B !== null) {
        var ue = a.unstable_now();
        ge = ue;
        var xe = !0;
        try {
          xe = B(!0, ue);
        } finally {
          xe ? ye() : (j = !1, B = null);
        }
      } else
        j = !1;
    }
    var ye;
    if (typeof $ == "function")
      ye = function() {
        $(Ee);
      };
    else if (typeof MessageChannel < "u") {
      var ke = new MessageChannel(), Ue = ke.port2;
      ke.port1.onmessage = Ee, ye = function() {
        Ue.postMessage(null);
      };
    } else
      ye = function() {
        N(Ee, 0);
      };
    function Se(ue) {
      B = ue, j || (j = !0, ye());
    }
    function Ke(ue, xe) {
      G = N(function() {
        ue(a.unstable_now());
      }, xe);
    }
    a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(ue) {
      ue.callback = null;
    }, a.unstable_continueExecution = function() {
      L || O || (L = !0, Se(V));
    }, a.unstable_forceFrameRate = function(ue) {
      0 > ue || 125 < ue ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : ae = 0 < ue ? Math.floor(1e3 / ue) : 5;
    }, a.unstable_getCurrentPriorityLevel = function() {
      return A;
    }, a.unstable_getFirstCallbackNode = function() {
      return u(y);
    }, a.unstable_next = function(ue) {
      switch (A) {
        case 1:
        case 2:
        case 3:
          var xe = 3;
          break;
        default:
          xe = A;
      }
      var Z = A;
      A = xe;
      try {
        return ue();
      } finally {
        A = Z;
      }
    }, a.unstable_pauseExecution = function() {
    }, a.unstable_requestPaint = function() {
    }, a.unstable_runWithPriority = function(ue, xe) {
      switch (ue) {
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
          break;
        default:
          ue = 3;
      }
      var Z = A;
      A = ue;
      try {
        return xe();
      } finally {
        A = Z;
      }
    }, a.unstable_scheduleCallback = function(ue, xe, Z) {
      var se = a.unstable_now();
      switch (typeof Z == "object" && Z !== null ? (Z = Z.delay, Z = typeof Z == "number" && 0 < Z ? se + Z : se) : Z = se, ue) {
        case 1:
          var me = -1;
          break;
        case 2:
          me = 250;
          break;
        case 5:
          me = 1073741823;
          break;
        case 4:
          me = 1e4;
          break;
        default:
          me = 5e3;
      }
      return me = Z + me, ue = { id: w++, callback: xe, priorityLevel: ue, startTime: Z, expirationTime: me, sortIndex: -1 }, Z > se ? (ue.sortIndex = Z, r(E, ue), u(y) === null && ue === u(E) && (M ? (P(G), G = -1) : M = !0, Ke(z, Z - se))) : (ue.sortIndex = me, r(y, ue), L || O || (L = !0, Se(V))), ue;
    }, a.unstable_shouldYield = de, a.unstable_wrapCallback = function(ue) {
      var xe = A;
      return function() {
        var Z = A;
        A = xe;
        try {
          return ue.apply(this, arguments);
        } finally {
          A = Z;
        }
      };
    };
  }(SS)), SS;
}
var ES = {};
/**
 * @license React
 * scheduler.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 tI;
function HB() {
  return tI || (tI = 1, function(a) {
     true && function() {
      typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
      var r = !1, u = !1, f = 5;
      function c(Ne, tt) {
        var St = Ne.length;
        Ne.push(tt), C(Ne, tt, St);
      }
      function p(Ne) {
        return Ne.length === 0 ? null : Ne[0];
      }
      function h(Ne) {
        if (Ne.length === 0)
          return null;
        var tt = Ne[0], St = Ne.pop();
        return St !== tt && (Ne[0] = St, y(Ne, St, 0)), tt;
      }
      function C(Ne, tt, St) {
        for (var Yt = St; Yt > 0; ) {
          var gn = Yt - 1 >>> 1, sr = Ne[gn];
          if (E(sr, tt) > 0)
            Ne[gn] = tt, Ne[Yt] = sr, Yt = gn;
          else
            return;
        }
      }
      function y(Ne, tt, St) {
        for (var Yt = St, gn = Ne.length, sr = gn >>> 1; Yt < sr; ) {
          var Dn = (Yt + 1) * 2 - 1, sa = Ne[Dn], sn = Dn + 1, ei = Ne[sn];
          if (E(sa, tt) < 0)
            sn < gn && E(ei, sa) < 0 ? (Ne[Yt] = ei, Ne[sn] = tt, Yt = sn) : (Ne[Yt] = sa, Ne[Dn] = tt, Yt = Dn);
          else if (sn < gn && E(ei, tt) < 0)
            Ne[Yt] = ei, Ne[sn] = tt, Yt = sn;
          else
            return;
        }
      }
      function E(Ne, tt) {
        var St = Ne.sortIndex - tt.sortIndex;
        return St !== 0 ? St : Ne.id - tt.id;
      }
      var w = 1, T = 2, A = 3, O = 4, L = 5;
      function M(Ne, tt) {
      }
      var N = typeof performance == "object" && typeof performance.now == "function";
      if (N) {
        var P = performance;
        a.unstable_now = function() {
          return P.now();
        };
      } else {
        var $ = Date, H = $.now();
        a.unstable_now = function() {
          return $.now() - H;
        };
      }
      var z = 1073741823, V = -1, j = 250, B = 5e3, G = 1e4, ae = z, ge = [], de = [], Ee = 1, ye = null, ke = A, Ue = !1, Se = !1, Ke = !1, ue = typeof setTimeout == "function" ? setTimeout : null, xe = typeof clearTimeout == "function" ? clearTimeout : null, Z = typeof setImmediate < "u" ? setImmediate : null;
      typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
      function se(Ne) {
        for (var tt = p(de); tt !== null; ) {
          if (tt.callback === null)
            h(de);
          else if (tt.startTime <= Ne)
            h(de), tt.sortIndex = tt.expirationTime, c(ge, tt);
          else
            return;
          tt = p(de);
        }
      }
      function me(Ne) {
        if (Ke = !1, se(Ne), !Se)
          if (p(ge) !== null)
            Se = !0, Ha(Te);
          else {
            var tt = p(de);
            tt !== null && Jn(me, tt.startTime - Ne);
          }
      }
      function Te(Ne, tt) {
        Se = !1, Ke && (Ke = !1, Dr()), Ue = !0;
        var St = ke;
        try {
          var Yt;
          if (!u)
            return Ie(Ne, tt);
        } finally {
          ye = null, ke = St, Ue = !1;
        }
      }
      function Ie(Ne, tt) {
        var St = tt;
        for (se(St), ye = p(ge); ye !== null && !r && !(ye.expirationTime > St && (!Ne || Qi())); ) {
          var Yt = ye.callback;
          if (typeof Yt == "function") {
            ye.callback = null, ke = ye.priorityLevel;
            var gn = ye.expirationTime <= St, sr = Yt(gn);
            St = a.unstable_now(), typeof sr == "function" ? ye.callback = sr : ye === p(ge) && h(ge), se(St);
          } else
            h(ge);
          ye = p(ge);
        }
        if (ye !== null)
          return !0;
        var Dn = p(de);
        return Dn !== null && Jn(me, Dn.startTime - St), !1;
      }
      function Oe(Ne, tt) {
        switch (Ne) {
          case w:
          case T:
          case A:
          case O:
          case L:
            break;
          default:
            Ne = A;
        }
        var St = ke;
        ke = Ne;
        try {
          return tt();
        } finally {
          ke = St;
        }
      }
      function Ae(Ne) {
        var tt;
        switch (ke) {
          case w:
          case T:
          case A:
            tt = A;
            break;
          default:
            tt = ke;
            break;
        }
        var St = ke;
        ke = tt;
        try {
          return Ne();
        } finally {
          ke = St;
        }
      }
      function je(Ne) {
        var tt = ke;
        return function() {
          var St = ke;
          ke = tt;
          try {
            return Ne.apply(this, arguments);
          } finally {
            ke = St;
          }
        };
      }
      function Pe(Ne, tt, St) {
        var Yt = a.unstable_now(), gn;
        if (typeof St == "object" && St !== null) {
          var sr = St.delay;
          typeof sr == "number" && sr > 0 ? gn = Yt + sr : gn = Yt;
        } else
          gn = Yt;
        var Dn;
        switch (Ne) {
          case w:
            Dn = V;
            break;
          case T:
            Dn = j;
            break;
          case L:
            Dn = ae;
            break;
          case O:
            Dn = G;
            break;
          case A:
          default:
            Dn = B;
            break;
        }
        var sa = gn + Dn, sn = {
          id: Ee++,
          callback: tt,
          priorityLevel: Ne,
          startTime: gn,
          expirationTime: sa,
          sortIndex: -1
        };
        return gn > Yt ? (sn.sortIndex = gn, c(de, sn), p(ge) === null && sn === p(de) && (Ke ? Dr() : Ke = !0, Jn(me, gn - Yt))) : (sn.sortIndex = sa, c(ge, sn), !Se && !Ue && (Se = !0, Ha(Te))), sn;
      }
      function et() {
      }
      function ft() {
        !Se && !Ue && (Se = !0, Ha(Te));
      }
      function Rt() {
        return p(ge);
      }
      function Ce(Ne) {
        Ne.callback = null;
      }
      function Tt() {
        return ke;
      }
      var Pt = !1, bt = null, Qn = -1, En = f, Pa = -1;
      function Qi() {
        var Ne = a.unstable_now() - Pa;
        return !(Ne < En);
      }
      function mr() {
      }
      function Yr(Ne) {
        if (Ne < 0 || Ne > 125) {
          console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
          return;
        }
        Ne > 0 ? En = Math.floor(1e3 / Ne) : En = f;
      }
      var Ka = function() {
        if (bt !== null) {
          var Ne = a.unstable_now();
          Pa = Ne;
          var tt = !0, St = !0;
          try {
            St = bt(tt, Ne);
          } finally {
            St ? Or() : (Pt = !1, bt = null);
          }
        } else
          Pt = !1;
      }, Or;
      if (typeof Z == "function")
        Or = function() {
          Z(Ka);
        };
      else if (typeof MessageChannel < "u") {
        var la = new MessageChannel(), $r = la.port2;
        la.port1.onmessage = Ka, Or = function() {
          $r.postMessage(null);
        };
      } else
        Or = function() {
          ue(Ka, 0);
        };
      function Ha(Ne) {
        bt = Ne, Pt || (Pt = !0, Or());
      }
      function Jn(Ne, tt) {
        Qn = ue(function() {
          Ne(a.unstable_now());
        }, tt);
      }
      function Dr() {
        xe(Qn), Qn = -1;
      }
      var jl = mr, Ji = null;
      a.unstable_IdlePriority = L, a.unstable_ImmediatePriority = w, a.unstable_LowPriority = O, a.unstable_NormalPriority = A, a.unstable_Profiling = Ji, a.unstable_UserBlockingPriority = T, a.unstable_cancelCallback = Ce, a.unstable_continueExecution = ft, a.unstable_forceFrameRate = Yr, a.unstable_getCurrentPriorityLevel = Tt, a.unstable_getFirstCallbackNode = Rt, a.unstable_next = Ae, a.unstable_pauseExecution = et, a.unstable_requestPaint = jl, a.unstable_runWithPriority = Oe, a.unstable_scheduleCallback = Pe, a.unstable_shouldYield = Qi, a.unstable_wrapCallback = je, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
    }();
  }(ES)), ES;
}
var nI;
function XA() {
  return nI || (nI = 1,  false ? 0 : Ly.exports = HB()), Ly.exports;
}
/**
 * @license React
 * react-dom.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 rI;
function _B() {
  if (rI)
    return ka;
  rI = 1;
  var a = (react__WEBPACK_IMPORTED_MODULE_1___default()), r = XA();
  function u(n) {
    for (var i = "https://reactjs.org/docs/error-decoder.html?invariant=" + n, s = 1; s < arguments.length; s++)
      i += "&args[]=" + encodeURIComponent(arguments[s]);
    return "Minified React error #" + n + "; visit " + i + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  }
  var f = /* @__PURE__ */ new Set(), c = {};
  function p(n, i) {
    h(n, i), h(n + "Capture", i);
  }
  function h(n, i) {
    for (c[n] = i, n = 0; n < i.length; n++)
      f.add(i[n]);
  }
  var C = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), y = Object.prototype.hasOwnProperty, E = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, w = {}, T = {};
  function A(n) {
    return y.call(T, n) ? !0 : y.call(w, n) ? !1 : E.test(n) ? T[n] = !0 : (w[n] = !0, !1);
  }
  function O(n, i, s, v) {
    if (s !== null && s.type === 0)
      return !1;
    switch (typeof i) {
      case "function":
      case "symbol":
        return !0;
      case "boolean":
        return v ? !1 : s !== null ? !s.acceptsBooleans : (n = n.toLowerCase().slice(0, 5), n !== "data-" && n !== "aria-");
      default:
        return !1;
    }
  }
  function L(n, i, s, v) {
    if (i === null || typeof i > "u" || O(n, i, s, v))
      return !0;
    if (v)
      return !1;
    if (s !== null)
      switch (s.type) {
        case 3:
          return !i;
        case 4:
          return i === !1;
        case 5:
          return isNaN(i);
        case 6:
          return isNaN(i) || 1 > i;
      }
    return !1;
  }
  function M(n, i, s, v, g, S, I) {
    this.acceptsBooleans = i === 2 || i === 3 || i === 4, this.attributeName = v, this.attributeNamespace = g, this.mustUseProperty = s, this.propertyName = n, this.type = i, this.sanitizeURL = S, this.removeEmptyString = I;
  }
  var N = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n) {
    N[n] = new M(n, 0, !1, n, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(n) {
    var i = n[0];
    N[i] = new M(i, 1, !1, n[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(n) {
    N[n] = new M(n, 2, !1, n.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(n) {
    N[n] = new M(n, 2, !1, n, null, !1, !1);
  }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n) {
    N[n] = new M(n, 3, !1, n.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(n) {
    N[n] = new M(n, 3, !0, n, null, !1, !1);
  }), ["capture", "download"].forEach(function(n) {
    N[n] = new M(n, 4, !1, n, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(n) {
    N[n] = new M(n, 6, !1, n, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(n) {
    N[n] = new M(n, 5, !1, n.toLowerCase(), null, !1, !1);
  });
  var P = /[\-:]([a-z])/g;
  function $(n) {
    return n[1].toUpperCase();
  }
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n) {
    var i = n.replace(
      P,
      $
    );
    N[i] = new M(i, 1, !1, n, null, !1, !1);
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n) {
    var i = n.replace(P, $);
    N[i] = new M(i, 1, !1, n, "http://www.w3.org/1999/xlink", !1, !1);
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(n) {
    var i = n.replace(P, $);
    N[i] = new M(i, 1, !1, n, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(n) {
    N[n] = new M(n, 1, !1, n.toLowerCase(), null, !1, !1);
  }), N.xlinkHref = new M("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(n) {
    N[n] = new M(n, 1, !1, n.toLowerCase(), null, !0, !0);
  });
  function H(n, i, s, v) {
    var g = N.hasOwnProperty(i) ? N[i] : null;
    (g !== null ? g.type !== 0 : v || !(2 < i.length) || i[0] !== "o" && i[0] !== "O" || i[1] !== "n" && i[1] !== "N") && (L(i, s, g, v) && (s = null), v || g === null ? A(i) && (s === null ? n.removeAttribute(i) : n.setAttribute(i, "" + s)) : g.mustUseProperty ? n[g.propertyName] = s === null ? g.type === 3 ? !1 : "" : s : (i = g.attributeName, v = g.attributeNamespace, s === null ? n.removeAttribute(i) : (g = g.type, s = g === 3 || g === 4 && s === !0 ? "" : "" + s, v ? n.setAttributeNS(v, i, s) : n.setAttribute(i, s))));
  }
  var z = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, V = Symbol.for("react.element"), j = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), G = Symbol.for("react.strict_mode"), ae = Symbol.for("react.profiler"), ge = Symbol.for("react.provider"), de = Symbol.for("react.context"), Ee = Symbol.for("react.forward_ref"), ye = Symbol.for("react.suspense"), ke = Symbol.for("react.suspense_list"), Ue = Symbol.for("react.memo"), Se = Symbol.for("react.lazy"), Ke = Symbol.for("react.offscreen"), ue = Symbol.iterator;
  function xe(n) {
    return n === null || typeof n != "object" ? null : (n = ue && n[ue] || n["@@iterator"], typeof n == "function" ? n : null);
  }
  var Z = Object.assign, se;
  function me(n) {
    if (se === void 0)
      try {
        throw Error();
      } catch (s) {
        var i = s.stack.trim().match(/\n( *(at )?)/);
        se = i && i[1] || "";
      }
    return `
` + se + n;
  }
  var Te = !1;
  function Ie(n, i) {
    if (!n || Te)
      return "";
    Te = !0;
    var s = Error.prepareStackTrace;
    Error.prepareStackTrace = void 0;
    try {
      if (i)
        if (i = function() {
          throw Error();
        }, Object.defineProperty(i.prototype, "props", { set: function() {
          throw Error();
        } }), typeof Reflect == "object" && Reflect.construct) {
          try {
            Reflect.construct(i, []);
          } catch (te) {
            var v = te;
          }
          Reflect.construct(n, [], i);
        } else {
          try {
            i.call();
          } catch (te) {
            v = te;
          }
          n.call(i.prototype);
        }
      else {
        try {
          throw Error();
        } catch (te) {
          v = te;
        }
        n();
      }
    } catch (te) {
      if (te && v && typeof te.stack == "string") {
        for (var g = te.stack.split(`
`), S = v.stack.split(`
`), I = g.length - 1, F = S.length - 1; 1 <= I && 0 <= F && g[I] !== S[F]; )
          F--;
        for (; 1 <= I && 0 <= F; I--, F--)
          if (g[I] !== S[F]) {
            if (I !== 1 || F !== 1)
              do
                if (I--, F--, 0 > F || g[I] !== S[F]) {
                  var _ = `
` + g[I].replace(" at new ", " at ");
                  return n.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", n.displayName)), _;
                }
              while (1 <= I && 0 <= F);
            break;
          }
      }
    } finally {
      Te = !1, Error.prepareStackTrace = s;
    }
    return (n = n ? n.displayName || n.name : "") ? me(n) : "";
  }
  function Oe(n) {
    switch (n.tag) {
      case 5:
        return me(n.type);
      case 16:
        return me("Lazy");
      case 13:
        return me("Suspense");
      case 19:
        return me("SuspenseList");
      case 0:
      case 2:
      case 15:
        return n = Ie(n.type, !1), n;
      case 11:
        return n = Ie(n.type.render, !1), n;
      case 1:
        return n = Ie(n.type, !0), n;
      default:
        return "";
    }
  }
  function Ae(n) {
    if (n == null)
      return null;
    if (typeof n == "function")
      return n.displayName || n.name || null;
    if (typeof n == "string")
      return n;
    switch (n) {
      case B:
        return "Fragment";
      case j:
        return "Portal";
      case ae:
        return "Profiler";
      case G:
        return "StrictMode";
      case ye:
        return "Suspense";
      case ke:
        return "SuspenseList";
    }
    if (typeof n == "object")
      switch (n.$$typeof) {
        case de:
          return (n.displayName || "Context") + ".Consumer";
        case ge:
          return (n._context.displayName || "Context") + ".Provider";
        case Ee:
          var i = n.render;
          return n = n.displayName, n || (n = i.displayName || i.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
        case Ue:
          return i = n.displayName || null, i !== null ? i : Ae(n.type) || "Memo";
        case Se:
          i = n._payload, n = n._init;
          try {
            return Ae(n(i));
          } catch {
          }
      }
    return null;
  }
  function je(n) {
    var i = n.type;
    switch (n.tag) {
      case 24:
        return "Cache";
      case 9:
        return (i.displayName || "Context") + ".Consumer";
      case 10:
        return (i._context.displayName || "Context") + ".Provider";
      case 18:
        return "DehydratedFragment";
      case 11:
        return n = i.render, n = n.displayName || n.name || "", i.displayName || (n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef");
      case 7:
        return "Fragment";
      case 5:
        return i;
      case 4:
        return "Portal";
      case 3:
        return "Root";
      case 6:
        return "Text";
      case 16:
        return Ae(i);
      case 8:
        return i === G ? "StrictMode" : "Mode";
      case 22:
        return "Offscreen";
      case 12:
        return "Profiler";
      case 21:
        return "Scope";
      case 13:
        return "Suspense";
      case 19:
        return "SuspenseList";
      case 25:
        return "TracingMarker";
      case 1:
      case 0:
      case 17:
      case 2:
      case 14:
      case 15:
        if (typeof i == "function")
          return i.displayName || i.name || null;
        if (typeof i == "string")
          return i;
    }
    return null;
  }
  function Pe(n) {
    switch (typeof n) {
      case "boolean":
      case "number":
      case "string":
      case "undefined":
        return n;
      case "object":
        return n;
      default:
        return "";
    }
  }
  function et(n) {
    var i = n.type;
    return (n = n.nodeName) && n.toLowerCase() === "input" && (i === "checkbox" || i === "radio");
  }
  function ft(n) {
    var i = et(n) ? "checked" : "value", s = Object.getOwnPropertyDescriptor(n.constructor.prototype, i), v = "" + n[i];
    if (!n.hasOwnProperty(i) && typeof s < "u" && typeof s.get == "function" && typeof s.set == "function") {
      var g = s.get, S = s.set;
      return Object.defineProperty(n, i, { configurable: !0, get: function() {
        return g.call(this);
      }, set: function(I) {
        v = "" + I, S.call(this, I);
      } }), Object.defineProperty(n, i, { enumerable: s.enumerable }), { getValue: function() {
        return v;
      }, setValue: function(I) {
        v = "" + I;
      }, stopTracking: function() {
        n._valueTracker = null, delete n[i];
      } };
    }
  }
  function Rt(n) {
    n._valueTracker || (n._valueTracker = ft(n));
  }
  function Ce(n) {
    if (!n)
      return !1;
    var i = n._valueTracker;
    if (!i)
      return !0;
    var s = i.getValue(), v = "";
    return n && (v = et(n) ? n.checked ? "true" : "false" : n.value), n = v, n !== s ? (i.setValue(n), !0) : !1;
  }
  function Tt(n) {
    if (n = n || (typeof document < "u" ? document : void 0), typeof n > "u")
      return null;
    try {
      return n.activeElement || n.body;
    } catch {
      return n.body;
    }
  }
  function Pt(n, i) {
    var s = i.checked;
    return Z({}, i, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: s ?? n._wrapperState.initialChecked });
  }
  function bt(n, i) {
    var s = i.defaultValue == null ? "" : i.defaultValue, v = i.checked != null ? i.checked : i.defaultChecked;
    s = Pe(i.value != null ? i.value : s), n._wrapperState = { initialChecked: v, initialValue: s, controlled: i.type === "checkbox" || i.type === "radio" ? i.checked != null : i.value != null };
  }
  function Qn(n, i) {
    i = i.checked, i != null && H(n, "checked", i, !1);
  }
  function En(n, i) {
    Qn(n, i);
    var s = Pe(i.value), v = i.type;
    if (s != null)
      v === "number" ? (s === 0 && n.value === "" || n.value != s) && (n.value = "" + s) : n.value !== "" + s && (n.value = "" + s);
    else if (v === "submit" || v === "reset") {
      n.removeAttribute("value");
      return;
    }
    i.hasOwnProperty("value") ? Qi(n, i.type, s) : i.hasOwnProperty("defaultValue") && Qi(n, i.type, Pe(i.defaultValue)), i.checked == null && i.defaultChecked != null && (n.defaultChecked = !!i.defaultChecked);
  }
  function Pa(n, i, s) {
    if (i.hasOwnProperty("value") || i.hasOwnProperty("defaultValue")) {
      var v = i.type;
      if (!(v !== "submit" && v !== "reset" || i.value !== void 0 && i.value !== null))
        return;
      i = "" + n._wrapperState.initialValue, s || i === n.value || (n.value = i), n.defaultValue = i;
    }
    s = n.name, s !== "" && (n.name = ""), n.defaultChecked = !!n._wrapperState.initialChecked, s !== "" && (n.name = s);
  }
  function Qi(n, i, s) {
    (i !== "number" || Tt(n.ownerDocument) !== n) && (s == null ? n.defaultValue = "" + n._wrapperState.initialValue : n.defaultValue !== "" + s && (n.defaultValue = "" + s));
  }
  var mr = Array.isArray;
  function Yr(n, i, s, v) {
    if (n = n.options, i) {
      i = {};
      for (var g = 0; g < s.length; g++)
        i["$" + s[g]] = !0;
      for (s = 0; s < n.length; s++)
        g = i.hasOwnProperty("$" + n[s].value), n[s].selected !== g && (n[s].selected = g), g && v && (n[s].defaultSelected = !0);
    } else {
      for (s = "" + Pe(s), i = null, g = 0; g < n.length; g++) {
        if (n[g].value === s) {
          n[g].selected = !0, v && (n[g].defaultSelected = !0);
          return;
        }
        i !== null || n[g].disabled || (i = n[g]);
      }
      i !== null && (i.selected = !0);
    }
  }
  function Ka(n, i) {
    if (i.dangerouslySetInnerHTML != null)
      throw Error(u(91));
    return Z({}, i, { value: void 0, defaultValue: void 0, children: "" + n._wrapperState.initialValue });
  }
  function Or(n, i) {
    var s = i.value;
    if (s == null) {
      if (s = i.children, i = i.defaultValue, s != null) {
        if (i != null)
          throw Error(u(92));
        if (mr(s)) {
          if (1 < s.length)
            throw Error(u(93));
          s = s[0];
        }
        i = s;
      }
      i == null && (i = ""), s = i;
    }
    n._wrapperState = { initialValue: Pe(s) };
  }
  function la(n, i) {
    var s = Pe(i.value), v = Pe(i.defaultValue);
    s != null && (s = "" + s, s !== n.value && (n.value = s), i.defaultValue == null && n.defaultValue !== s && (n.defaultValue = s)), v != null && (n.defaultValue = "" + v);
  }
  function $r(n) {
    var i = n.textContent;
    i === n._wrapperState.initialValue && i !== "" && i !== null && (n.value = i);
  }
  function Ha(n) {
    switch (n) {
      case "svg":
        return "http://www.w3.org/2000/svg";
      case "math":
        return "http://www.w3.org/1998/Math/MathML";
      default:
        return "http://www.w3.org/1999/xhtml";
    }
  }
  function Jn(n, i) {
    return n == null || n === "http://www.w3.org/1999/xhtml" ? Ha(i) : n === "http://www.w3.org/2000/svg" && i === "foreignObject" ? "http://www.w3.org/1999/xhtml" : n;
  }
  var Dr, jl = function(n) {
    return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(i, s, v, g) {
      MSApp.execUnsafeLocalFunction(function() {
        return n(i, s, v, g);
      });
    } : n;
  }(function(n, i) {
    if (n.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in n)
      n.innerHTML = i;
    else {
      for (Dr = Dr || document.createElement("div"), Dr.innerHTML = "<svg>" + i.valueOf().toString() + "</svg>", i = Dr.firstChild; n.firstChild; )
        n.removeChild(n.firstChild);
      for (; i.firstChild; )
        n.appendChild(i.firstChild);
    }
  });
  function Ji(n, i) {
    if (i) {
      var s = n.firstChild;
      if (s && s === n.lastChild && s.nodeType === 3) {
        s.nodeValue = i;
        return;
      }
    }
    n.textContent = i;
  }
  var Ne = {
    animationIterationCount: !0,
    aspectRatio: !0,
    borderImageOutset: !0,
    borderImageSlice: !0,
    borderImageWidth: !0,
    boxFlex: !0,
    boxFlexGroup: !0,
    boxOrdinalGroup: !0,
    columnCount: !0,
    columns: !0,
    flex: !0,
    flexGrow: !0,
    flexPositive: !0,
    flexShrink: !0,
    flexNegative: !0,
    flexOrder: !0,
    gridArea: !0,
    gridRow: !0,
    gridRowEnd: !0,
    gridRowSpan: !0,
    gridRowStart: !0,
    gridColumn: !0,
    gridColumnEnd: !0,
    gridColumnSpan: !0,
    gridColumnStart: !0,
    fontWeight: !0,
    lineClamp: !0,
    lineHeight: !0,
    opacity: !0,
    order: !0,
    orphans: !0,
    tabSize: !0,
    widows: !0,
    zIndex: !0,
    zoom: !0,
    fillOpacity: !0,
    floodOpacity: !0,
    stopOpacity: !0,
    strokeDasharray: !0,
    strokeDashoffset: !0,
    strokeMiterlimit: !0,
    strokeOpacity: !0,
    strokeWidth: !0
  }, tt = ["Webkit", "ms", "Moz", "O"];
  Object.keys(Ne).forEach(function(n) {
    tt.forEach(function(i) {
      i = i + n.charAt(0).toUpperCase() + n.substring(1), Ne[i] = Ne[n];
    });
  });
  function St(n, i, s) {
    return i == null || typeof i == "boolean" || i === "" ? "" : s || typeof i != "number" || i === 0 || Ne.hasOwnProperty(n) && Ne[n] ? ("" + i).trim() : i + "px";
  }
  function Yt(n, i) {
    n = n.style;
    for (var s in i)
      if (i.hasOwnProperty(s)) {
        var v = s.indexOf("--") === 0, g = St(s, i[s], v);
        s === "float" && (s = "cssFloat"), v ? n.setProperty(s, g) : n[s] = g;
      }
  }
  var gn = Z({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
  function sr(n, i) {
    if (i) {
      if (gn[n] && (i.children != null || i.dangerouslySetInnerHTML != null))
        throw Error(u(137, n));
      if (i.dangerouslySetInnerHTML != null) {
        if (i.children != null)
          throw Error(u(60));
        if (typeof i.dangerouslySetInnerHTML != "object" || !("__html" in i.dangerouslySetInnerHTML))
          throw Error(u(61));
      }
      if (i.style != null && typeof i.style != "object")
        throw Error(u(62));
    }
  }
  function Dn(n, i) {
    if (n.indexOf("-") === -1)
      return typeof i.is == "string";
    switch (n) {
      case "annotation-xml":
      case "color-profile":
      case "font-face":
      case "font-face-src":
      case "font-face-uri":
      case "font-face-format":
      case "font-face-name":
      case "missing-glyph":
        return !1;
      default:
        return !0;
    }
  }
  var sa = null;
  function sn(n) {
    return n = n.target || n.srcElement || window, n.correspondingUseElement && (n = n.correspondingUseElement), n.nodeType === 3 ? n.parentNode : n;
  }
  var ei = null, xn = null, cn = null;
  function wh(n) {
    if (n = vs(n)) {
      if (typeof ei != "function")
        throw Error(u(280));
      var i = n.stateNode;
      i && (i = Je(i), ei(n.stateNode, n.type, i));
    }
  }
  function vc(n) {
    xn ? cn ? cn.push(n) : cn = [n] : xn = n;
  }
  function hc() {
    if (xn) {
      var n = xn, i = cn;
      if (cn = xn = null, wh(n), i)
        for (n = 0; n < i.length; n++)
          wh(i[n]);
    }
  }
  function Rh(n, i) {
    return n(i);
  }
  function Th() {
  }
  var mc = !1;
  function kd(n, i, s) {
    if (mc)
      return n(i, s);
    mc = !0;
    try {
      return Rh(n, i, s);
    } finally {
      mc = !1, (xn !== null || cn !== null) && (Th(), hc());
    }
  }
  function Ul(n, i) {
    var s = n.stateNode;
    if (s === null)
      return null;
    var v = Je(s);
    if (v === null)
      return null;
    s = v[i];
    e:
      switch (i) {
        case "onClick":
        case "onClickCapture":
        case "onDoubleClick":
        case "onDoubleClickCapture":
        case "onMouseDown":
        case "onMouseDownCapture":
        case "onMouseMove":
        case "onMouseMoveCapture":
        case "onMouseUp":
        case "onMouseUpCapture":
        case "onMouseEnter":
          (v = !v.disabled) || (n = n.type, v = !(n === "button" || n === "input" || n === "select" || n === "textarea")), n = !v;
          break e;
        default:
          n = !1;
      }
    if (n)
      return null;
    if (s && typeof s != "function")
      throw Error(u(231, i, typeof s));
    return s;
  }
  var gc = !1;
  if (C)
    try {
      var Mo = {};
      Object.defineProperty(Mo, "passive", { get: function() {
        gc = !0;
      } }), window.addEventListener("test", Mo, Mo), window.removeEventListener("test", Mo, Mo);
    } catch {
      gc = !1;
    }
  function Au(n, i, s, v, g, S, I, F, _) {
    var te = Array.prototype.slice.call(arguments, 3);
    try {
      i.apply(s, te);
    } catch (pe) {
      this.onError(pe);
    }
  }
  var _a = !1, Ci = null, Ou = !1, Wl = null, Md = { onError: function(n) {
    _a = !0, Ci = n;
  } };
  function Ld(n, i, s, v, g, S, I, F, _) {
    _a = !1, Ci = null, Au.apply(Md, arguments);
  }
  function Du(n, i, s, v, g, S, I, F, _) {
    if (Ld.apply(this, arguments), _a) {
      if (_a) {
        var te = Ci;
        _a = !1, Ci = null;
      } else
        throw Error(u(198));
      Ou || (Ou = !0, Wl = te);
    }
  }
  function ti(n) {
    var i = n, s = n;
    if (n.alternate)
      for (; i.return; )
        i = i.return;
    else {
      n = i;
      do
        i = n, i.flags & 4098 && (s = i.return), n = i.return;
      while (n);
    }
    return i.tag === 3 ? s : null;
  }
  function Xl(n) {
    if (n.tag === 13) {
      var i = n.memoizedState;
      if (i === null && (n = n.alternate, n !== null && (i = n.memoizedState)), i !== null)
        return i.dehydrated;
    }
    return null;
  }
  function Nu(n) {
    if (ti(n) !== n)
      throw Error(u(188));
  }
  function gr(n) {
    var i = n.alternate;
    if (!i) {
      if (i = ti(n), i === null)
        throw Error(u(188));
      return i !== n ? null : n;
    }
    for (var s = n, v = i; ; ) {
      var g = s.return;
      if (g === null)
        break;
      var S = g.alternate;
      if (S === null) {
        if (v = g.return, v !== null) {
          s = v;
          continue;
        }
        break;
      }
      if (g.child === S.child) {
        for (S = g.child; S; ) {
          if (S === s)
            return Nu(g), n;
          if (S === v)
            return Nu(g), i;
          S = S.sibling;
        }
        throw Error(u(188));
      }
      if (s.return !== v.return)
        s = g, v = S;
      else {
        for (var I = !1, F = g.child; F; ) {
          if (F === s) {
            I = !0, s = g, v = S;
            break;
          }
          if (F === v) {
            I = !0, v = g, s = S;
            break;
          }
          F = F.sibling;
        }
        if (!I) {
          for (F = S.child; F; ) {
            if (F === s) {
              I = !0, s = S, v = g;
              break;
            }
            if (F === v) {
              I = !0, v = S, s = g;
              break;
            }
            F = F.sibling;
          }
          if (!I)
            throw Error(u(189));
        }
      }
      if (s.alternate !== v)
        throw Error(u(190));
    }
    if (s.tag !== 3)
      throw Error(u(188));
    return s.stateNode.current === s ? n : i;
  }
  function Ih(n) {
    return n = gr(n), n !== null ? Ah(n) : null;
  }
  function Ah(n) {
    if (n.tag === 5 || n.tag === 6)
      return n;
    for (n = n.child; n !== null; ) {
      var i = Ah(n);
      if (i !== null)
        return i;
      n = n.sibling;
    }
    return null;
  }
  var Fd = r.unstable_scheduleCallback, Oh = r.unstable_cancelCallback, P0 = r.unstable_shouldYield, H0 = r.unstable_requestPaint, fn = r.unstable_now, _0 = r.unstable_getCurrentPriorityLevel, Si = r.unstable_ImmediatePriority, Et = r.unstable_UserBlockingPriority, qi = r.unstable_NormalPriority, Dh = r.unstable_LowPriority, Bd = r.unstable_IdlePriority, Zl = null, za = null;
  function Nh(n) {
    if (za && typeof za.onCommitFiberRoot == "function")
      try {
        za.onCommitFiberRoot(Zl, n, void 0, (n.current.flags & 128) === 128);
      } catch {
      }
  }
  var ca = Math.clz32 ? Math.clz32 : z0, kh = Math.log, Mh = Math.LN2;
  function z0(n) {
    return n >>>= 0, n === 0 ? 32 : 31 - (kh(n) / Mh | 0) | 0;
  }
  var yc = 64, ku = 4194304;
  function Lo(n) {
    switch (n & -n) {
      case 1:
        return 1;
      case 2:
        return 2;
      case 4:
        return 4;
      case 8:
        return 8;
      case 16:
        return 16;
      case 32:
        return 32;
      case 64:
      case 128:
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
        return n & 4194240;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
      case 67108864:
        return n & 130023424;
      case 134217728:
        return 134217728;
      case 268435456:
        return 268435456;
      case 536870912:
        return 536870912;
      case 1073741824:
        return 1073741824;
      default:
        return n;
    }
  }
  function Ga(n, i) {
    var s = n.pendingLanes;
    if (s === 0)
      return 0;
    var v = 0, g = n.suspendedLanes, S = n.pingedLanes, I = s & 268435455;
    if (I !== 0) {
      var F = I & ~g;
      F !== 0 ? v = Lo(F) : (S &= I, S !== 0 && (v = Lo(S)));
    } else
      I = s & ~g, I !== 0 ? v = Lo(I) : S !== 0 && (v = Lo(S));
    if (v === 0)
      return 0;
    if (i !== 0 && i !== v && !(i & g) && (g = v & -v, S = i & -i, g >= S || g === 16 && (S & 4194240) !== 0))
      return i;
    if (v & 4 && (v |= s & 16), i = n.entangledLanes, i !== 0)
      for (n = n.entanglements, i &= v; 0 < i; )
        s = 31 - ca(i), g = 1 << s, v |= n[s], i &= ~g;
    return v;
  }
  function Vd(n, i) {
    switch (n) {
      case 1:
      case 2:
      case 4:
        return i + 250;
      case 8:
      case 16:
      case 32:
      case 64:
      case 128:
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
        return i + 5e3;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
      case 67108864:
        return -1;
      case 134217728:
      case 268435456:
      case 536870912:
      case 1073741824:
        return -1;
      default:
        return -1;
    }
  }
  function bc(n, i) {
    for (var s = n.suspendedLanes, v = n.pingedLanes, g = n.expirationTimes, S = n.pendingLanes; 0 < S; ) {
      var I = 31 - ca(S), F = 1 << I, _ = g[I];
      _ === -1 ? (!(F & s) || F & v) && (g[I] = Vd(F, i)) : _ <= i && (n.expiredLanes |= F), S &= ~F;
    }
  }
  function Pd(n) {
    return n = n.pendingLanes & -1073741825, n !== 0 ? n : n & 1073741824 ? 1073741824 : 0;
  }
  function Cc() {
    var n = yc;
    return yc <<= 1, !(yc & 4194240) && (yc = 64), n;
  }
  function Hd(n) {
    for (var i = [], s = 0; 31 > s; s++)
      i.push(n);
    return i;
  }
  function Fo(n, i, s) {
    n.pendingLanes |= i, i !== 536870912 && (n.suspendedLanes = 0, n.pingedLanes = 0), n = n.eventTimes, i = 31 - ca(i), n[i] = s;
  }
  function G0(n, i) {
    var s = n.pendingLanes & ~i;
    n.pendingLanes = i, n.suspendedLanes = 0, n.pingedLanes = 0, n.expiredLanes &= i, n.mutableReadLanes &= i, n.entangledLanes &= i, i = n.entanglements;
    var v = n.eventTimes;
    for (n = n.expirationTimes; 0 < s; ) {
      var g = 31 - ca(s), S = 1 << g;
      i[g] = 0, v[g] = -1, n[g] = -1, s &= ~S;
    }
  }
  function Yl(n, i) {
    var s = n.entangledLanes |= i;
    for (n = n.entanglements; s; ) {
      var v = 31 - ca(s), g = 1 << v;
      g & i | n[v] & i && (n[v] |= i), s &= ~g;
    }
  }
  var Ht = 0;
  function _d(n) {
    return n &= -n, 1 < n ? 4 < n ? n & 268435455 ? 16 : 536870912 : 4 : 1;
  }
  var Lh, Sc, _t, Fh, zd, mt = !1, $l = [], wn = null, fa = null, da = null, Ql = /* @__PURE__ */ new Map(), Nn = /* @__PURE__ */ new Map(), jt = [], j0 = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
  function ja(n, i) {
    switch (n) {
      case "focusin":
      case "focusout":
        wn = null;
        break;
      case "dragenter":
      case "dragleave":
        fa = null;
        break;
      case "mouseover":
      case "mouseout":
        da = null;
        break;
      case "pointerover":
      case "pointerout":
        Ql.delete(i.pointerId);
        break;
      case "gotpointercapture":
      case "lostpointercapture":
        Nn.delete(i.pointerId);
    }
  }
  function cr(n, i, s, v, g, S) {
    return n === null || n.nativeEvent !== S ? (n = { blockedOn: i, domEventName: s, eventSystemFlags: v, nativeEvent: S, targetContainers: [g] }, i !== null && (i = vs(i), i !== null && Sc(i)), n) : (n.eventSystemFlags |= v, i = n.targetContainers, g !== null && i.indexOf(g) === -1 && i.push(g), n);
  }
  function Ki(n, i, s, v, g) {
    switch (i) {
      case "focusin":
        return wn = cr(wn, n, i, s, v, g), !0;
      case "dragenter":
        return fa = cr(fa, n, i, s, v, g), !0;
      case "mouseover":
        return da = cr(da, n, i, s, v, g), !0;
      case "pointerover":
        var S = g.pointerId;
        return Ql.set(S, cr(Ql.get(S) || null, n, i, s, v, g)), !0;
      case "gotpointercapture":
        return S = g.pointerId, Nn.set(S, cr(Nn.get(S) || null, n, i, s, v, g)), !0;
    }
    return !1;
  }
  function Bh(n) {
    var i = va(n.target);
    if (i !== null) {
      var s = ti(i);
      if (s !== null) {
        if (i = s.tag, i === 13) {
          if (i = Xl(s), i !== null) {
            n.blockedOn = i, zd(n.priority, function() {
              _t(s);
            });
            return;
          }
        } else if (i === 3 && s.stateNode.current.memoizedState.isDehydrated) {
          n.blockedOn = s.tag === 3 ? s.stateNode.containerInfo : null;
          return;
        }
      }
    }
    n.blockedOn = null;
  }
  function Mu(n) {
    if (n.blockedOn !== null)
      return !1;
    for (var i = n.targetContainers; 0 < i.length; ) {
      var s = wc(n.domEventName, n.eventSystemFlags, i[0], n.nativeEvent);
      if (s === null) {
        s = n.nativeEvent;
        var v = new s.constructor(s.type, s);
        sa = v, s.target.dispatchEvent(v), sa = null;
      } else
        return i = vs(s), i !== null && Sc(i), n.blockedOn = s, !1;
      i.shift();
    }
    return !0;
  }
  function Gd(n, i, s) {
    Mu(n) && s.delete(i);
  }
  function Vh() {
    mt = !1, wn !== null && Mu(wn) && (wn = null), fa !== null && Mu(fa) && (fa = null), da !== null && Mu(da) && (da = null), Ql.forEach(Gd), Nn.forEach(Gd);
  }
  function Jl(n, i) {
    n.blockedOn === i && (n.blockedOn = null, mt || (mt = !0, r.unstable_scheduleCallback(r.unstable_NormalPriority, Vh)));
  }
  function ql(n) {
    function i(g) {
      return Jl(g, n);
    }
    if (0 < $l.length) {
      Jl($l[0], n);
      for (var s = 1; s < $l.length; s++) {
        var v = $l[s];
        v.blockedOn === n && (v.blockedOn = null);
      }
    }
    for (wn !== null && Jl(wn, n), fa !== null && Jl(fa, n), da !== null && Jl(da, n), Ql.forEach(i), Nn.forEach(i), s = 0; s < jt.length; s++)
      v = jt[s], v.blockedOn === n && (v.blockedOn = null);
    for (; 0 < jt.length && (s = jt[0], s.blockedOn === null); )
      Bh(s), s.blockedOn === null && jt.shift();
  }
  var Lu = z.ReactCurrentBatchConfig, Bo = !0;
  function Ph(n, i, s, v) {
    var g = Ht, S = Lu.transition;
    Lu.transition = null;
    try {
      Ht = 1, xc(n, i, s, v);
    } finally {
      Ht = g, Lu.transition = S;
    }
  }
  function Ec(n, i, s, v) {
    var g = Ht, S = Lu.transition;
    Lu.transition = null;
    try {
      Ht = 4, xc(n, i, s, v);
    } finally {
      Ht = g, Lu.transition = S;
    }
  }
  function xc(n, i, s, v) {
    if (Bo) {
      var g = wc(n, i, s, v);
      if (g === null)
        Bc(n, i, v, Kl, s), ja(n, v);
      else if (Ki(g, n, i, s, v))
        v.stopPropagation();
      else if (ja(n, v), i & 4 && -1 < j0.indexOf(n)) {
        for (; g !== null; ) {
          var S = vs(g);
          if (S !== null && Lh(S), S = wc(n, i, s, v), S === null && Bc(n, i, v, Kl, s), S === g)
            break;
          g = S;
        }
        g !== null && v.stopPropagation();
      } else
        Bc(n, i, v, null, s);
    }
  }
  var Kl = null;
  function wc(n, i, s, v) {
    if (Kl = null, n = sn(v), n = va(n), n !== null)
      if (i = ti(n), i === null)
        n = null;
      else if (s = i.tag, s === 13) {
        if (n = Xl(i), n !== null)
          return n;
        n = null;
      } else if (s === 3) {
        if (i.stateNode.current.memoizedState.isDehydrated)
          return i.tag === 3 ? i.stateNode.containerInfo : null;
        n = null;
      } else
        i !== n && (n = null);
    return Kl = n, null;
  }
  function jd(n) {
    switch (n) {
      case "cancel":
      case "click":
      case "close":
      case "contextmenu":
      case "copy":
      case "cut":
      case "auxclick":
      case "dblclick":
      case "dragend":
      case "dragstart":
      case "drop":
      case "focusin":
      case "focusout":
      case "input":
      case "invalid":
      case "keydown":
      case "keypress":
      case "keyup":
      case "mousedown":
      case "mouseup":
      case "paste":
      case "pause":
      case "play":
      case "pointercancel":
      case "pointerdown":
      case "pointerup":
      case "ratechange":
      case "reset":
      case "resize":
      case "seeked":
      case "submit":
      case "touchcancel":
      case "touchend":
      case "touchstart":
      case "volumechange":
      case "change":
      case "selectionchange":
      case "textInput":
      case "compositionstart":
      case "compositionend":
      case "compositionupdate":
      case "beforeblur":
      case "afterblur":
      case "beforeinput":
      case "blur":
      case "fullscreenchange":
      case "focus":
      case "hashchange":
      case "popstate":
      case "select":
      case "selectstart":
        return 1;
      case "drag":
      case "dragenter":
      case "dragexit":
      case "dragleave":
      case "dragover":
      case "mousemove":
      case "mouseout":
      case "mouseover":
      case "pointermove":
      case "pointerout":
      case "pointerover":
      case "scroll":
      case "toggle":
      case "touchmove":
      case "wheel":
      case "mouseenter":
      case "mouseleave":
      case "pointerenter":
      case "pointerleave":
        return 4;
      case "message":
        switch (_0()) {
          case Si:
            return 1;
          case Et:
            return 4;
          case qi:
          case Dh:
            return 16;
          case Bd:
            return 536870912;
          default:
            return 16;
        }
      default:
        return 16;
    }
  }
  var Ei = null, es = null, ts = null;
  function Ud() {
    if (ts)
      return ts;
    var n, i = es, s = i.length, v, g = "value" in Ei ? Ei.value : Ei.textContent, S = g.length;
    for (n = 0; n < s && i[n] === g[n]; n++)
      ;
    var I = s - n;
    for (v = 1; v <= I && i[s - v] === g[S - v]; v++)
      ;
    return ts = g.slice(n, 1 < v ? 1 - v : void 0);
  }
  function Fu(n) {
    var i = n.keyCode;
    return "charCode" in n ? (n = n.charCode, n === 0 && i === 13 && (n = 13)) : n = i, n === 10 && (n = 13), 32 <= n || n === 13 ? n : 0;
  }
  function ns() {
    return !0;
  }
  function Hh() {
    return !1;
  }
  function Qr(n) {
    function i(s, v, g, S, I) {
      this._reactName = s, this._targetInst = g, this.type = v, this.nativeEvent = S, this.target = I, this.currentTarget = null;
      for (var F in n)
        n.hasOwnProperty(F) && (s = n[F], this[F] = s ? s(S) : S[F]);
      return this.isDefaultPrevented = (S.defaultPrevented != null ? S.defaultPrevented : S.returnValue === !1) ? ns : Hh, this.isPropagationStopped = Hh, this;
    }
    return Z(i.prototype, { preventDefault: function() {
      this.defaultPrevented = !0;
      var s = this.nativeEvent;
      s && (s.preventDefault ? s.preventDefault() : typeof s.returnValue != "unknown" && (s.returnValue = !1), this.isDefaultPrevented = ns);
    }, stopPropagation: function() {
      var s = this.nativeEvent;
      s && (s.stopPropagation ? s.stopPropagation() : typeof s.cancelBubble != "unknown" && (s.cancelBubble = !0), this.isPropagationStopped = ns);
    }, persist: function() {
    }, isPersistent: ns }), i;
  }
  var eo = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(n) {
    return n.timeStamp || Date.now();
  }, defaultPrevented: 0, isTrusted: 0 }, Rc = Qr(eo), Bu = Z({}, eo, { view: 0, detail: 0 }), _h = Qr(Bu), Tc, Wd, rs, Hn = Z({}, Bu, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: $d, button: 0, buttons: 0, relatedTarget: function(n) {
    return n.relatedTarget === void 0 ? n.fromElement === n.srcElement ? n.toElement : n.fromElement : n.relatedTarget;
  }, movementX: function(n) {
    return "movementX" in n ? n.movementX : (n !== rs && (rs && n.type === "mousemove" ? (Tc = n.screenX - rs.screenX, Wd = n.screenY - rs.screenY) : Wd = Tc = 0, rs = n), Tc);
  }, movementY: function(n) {
    return "movementY" in n ? n.movementY : Wd;
  } }), Ic = Qr(Hn), zh = Z({}, Hn, { dataTransfer: 0 }), Gh = Qr(zh), U0 = Z({}, Bu, { relatedTarget: 0 }), to = Qr(U0), Xd = Z({}, eo, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), jh = Qr(Xd), W0 = Z({}, eo, { clipboardData: function(n) {
    return "clipboardData" in n ? n.clipboardData : window.clipboardData;
  } }), X0 = Qr(W0), Z0 = Z({}, eo, { data: 0 }), Zd = Qr(Z0), Yd = {
    Esc: "Escape",
    Spacebar: " ",
    Left: "ArrowLeft",
    Up: "ArrowUp",
    Right: "ArrowRight",
    Down: "ArrowDown",
    Del: "Delete",
    Win: "OS",
    Menu: "ContextMenu",
    Apps: "ContextMenu",
    Scroll: "ScrollLock",
    MozPrintableKey: "Unidentified"
  }, Uh = {
    8: "Backspace",
    9: "Tab",
    12: "Clear",
    13: "Enter",
    16: "Shift",
    17: "Control",
    18: "Alt",
    19: "Pause",
    20: "CapsLock",
    27: "Escape",
    32: " ",
    33: "PageUp",
    34: "PageDown",
    35: "End",
    36: "Home",
    37: "ArrowLeft",
    38: "ArrowUp",
    39: "ArrowRight",
    40: "ArrowDown",
    45: "Insert",
    46: "Delete",
    112: "F1",
    113: "F2",
    114: "F3",
    115: "F4",
    116: "F5",
    117: "F6",
    118: "F7",
    119: "F8",
    120: "F9",
    121: "F10",
    122: "F11",
    123: "F12",
    144: "NumLock",
    145: "ScrollLock",
    224: "Meta"
  }, Wh = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
  function Xh(n) {
    var i = this.nativeEvent;
    return i.getModifierState ? i.getModifierState(n) : (n = Wh[n]) ? !!i[n] : !1;
  }
  function $d() {
    return Xh;
  }
  var xi = Z({}, Bu, { key: function(n) {
    if (n.key) {
      var i = Yd[n.key] || n.key;
      if (i !== "Unidentified")
        return i;
    }
    return n.type === "keypress" ? (n = Fu(n), n === 13 ? "Enter" : String.fromCharCode(n)) : n.type === "keydown" || n.type === "keyup" ? Uh[n.keyCode] || "Unidentified" : "";
  }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: $d, charCode: function(n) {
    return n.type === "keypress" ? Fu(n) : 0;
  }, keyCode: function(n) {
    return n.type === "keydown" || n.type === "keyup" ? n.keyCode : 0;
  }, which: function(n) {
    return n.type === "keypress" ? Fu(n) : n.type === "keydown" || n.type === "keyup" ? n.keyCode : 0;
  } }), Y0 = Qr(xi), Qd = Z({}, Hn, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Ac = Qr(Qd), Jd = Z({}, Bu, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: $d }), $0 = Qr(Jd), Oc = Z({}, eo, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Zh = Qr(Oc), Nr = Z({}, Hn, {
    deltaX: function(n) {
      return "deltaX" in n ? n.deltaX : "wheelDeltaX" in n ? -n.wheelDeltaX : 0;
    },
    deltaY: function(n) {
      return "deltaY" in n ? n.deltaY : "wheelDeltaY" in n ? -n.wheelDeltaY : "wheelDelta" in n ? -n.wheelDelta : 0;
    },
    deltaZ: 0,
    deltaMode: 0
  }), wi = Qr(Nr), Rn = [9, 13, 27, 32], Ua = C && "CompositionEvent" in window, Vo = null;
  C && "documentMode" in document && (Vo = document.documentMode);
  var Dc = C && "TextEvent" in window && !Vo, Yh = C && (!Ua || Vo && 8 < Vo && 11 >= Vo), Vu = " ", $h = !1;
  function Qh(n, i) {
    switch (n) {
      case "keyup":
        return Rn.indexOf(i.keyCode) !== -1;
      case "keydown":
        return i.keyCode !== 229;
      case "keypress":
      case "mousedown":
      case "focusout":
        return !0;
      default:
        return !1;
    }
  }
  function Nc(n) {
    return n = n.detail, typeof n == "object" && "data" in n ? n.data : null;
  }
  var Pu = !1;
  function Q0(n, i) {
    switch (n) {
      case "compositionend":
        return Nc(i);
      case "keypress":
        return i.which !== 32 ? null : ($h = !0, Vu);
      case "textInput":
        return n = i.data, n === Vu && $h ? null : n;
      default:
        return null;
    }
  }
  function J0(n, i) {
    if (Pu)
      return n === "compositionend" || !Ua && Qh(n, i) ? (n = Ud(), ts = es = Ei = null, Pu = !1, n) : null;
    switch (n) {
      case "paste":
        return null;
      case "keypress":
        if (!(i.ctrlKey || i.altKey || i.metaKey) || i.ctrlKey && i.altKey) {
          if (i.char && 1 < i.char.length)
            return i.char;
          if (i.which)
            return String.fromCharCode(i.which);
        }
        return null;
      case "compositionend":
        return Yh && i.locale !== "ko" ? null : i.data;
      default:
        return null;
    }
  }
  var Jh = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 };
  function qh(n) {
    var i = n && n.nodeName && n.nodeName.toLowerCase();
    return i === "input" ? !!Jh[n.type] : i === "textarea";
  }
  function Kh(n, i, s, v) {
    vc(v), i = fs(i, "onChange"), 0 < i.length && (s = new Rc("onChange", "change", null, s, v), n.push({ event: s, listeners: i }));
  }
  var as = null, Hu = null;
  function _u(n) {
    Fc(n, 0);
  }
  function zu(n) {
    var i = ju(n);
    if (Ce(i))
      return n;
  }
  function em(n, i) {
    if (n === "change")
      return i;
  }
  var qd = !1;
  if (C) {
    var Kd;
    if (C) {
      var ep = "oninput" in document;
      if (!ep) {
        var tm = document.createElement("div");
        tm.setAttribute("oninput", "return;"), ep = typeof tm.oninput == "function";
      }
      Kd = ep;
    } else
      Kd = !1;
    qd = Kd && (!document.documentMode || 9 < document.documentMode);
  }
  function nm() {
    as && (as.detachEvent("onpropertychange", rm), Hu = as = null);
  }
  function rm(n) {
    if (n.propertyName === "value" && zu(Hu)) {
      var i = [];
      Kh(i, Hu, n, sn(n)), kd(_u, i);
    }
  }
  function q0(n, i, s) {
    n === "focusin" ? (nm(), as = i, Hu = s, as.attachEvent("onpropertychange", rm)) : n === "focusout" && nm();
  }
  function K0(n) {
    if (n === "selectionchange" || n === "keyup" || n === "keydown")
      return zu(Hu);
  }
  function eb(n, i) {
    if (n === "click")
      return zu(i);
  }
  function am(n, i) {
    if (n === "input" || n === "change")
      return zu(i);
  }
  function tb(n, i) {
    return n === i && (n !== 0 || 1 / n === 1 / i) || n !== n && i !== i;
  }
  var pa = typeof Object.is == "function" ? Object.is : tb;
  function is(n, i) {
    if (pa(n, i))
      return !0;
    if (typeof n != "object" || n === null || typeof i != "object" || i === null)
      return !1;
    var s = Object.keys(n), v = Object.keys(i);
    if (s.length !== v.length)
      return !1;
    for (v = 0; v < s.length; v++) {
      var g = s[v];
      if (!y.call(i, g) || !pa(n[g], i[g]))
        return !1;
    }
    return !0;
  }
  function im(n) {
    for (; n && n.firstChild; )
      n = n.firstChild;
    return n;
  }
  function om(n, i) {
    var s = im(n);
    n = 0;
    for (var v; s; ) {
      if (s.nodeType === 3) {
        if (v = n + s.textContent.length, n <= i && v >= i)
          return { node: s, offset: i - n };
        n = v;
      }
      e: {
        for (; s; ) {
          if (s.nextSibling) {
            s = s.nextSibling;
            break e;
          }
          s = s.parentNode;
        }
        s = void 0;
      }
      s = im(s);
    }
  }
  function um(n, i) {
    return n && i ? n === i ? !0 : n && n.nodeType === 3 ? !1 : i && i.nodeType === 3 ? um(n, i.parentNode) : "contains" in n ? n.contains(i) : n.compareDocumentPosition ? !!(n.compareDocumentPosition(i) & 16) : !1 : !1;
  }
  function kc() {
    for (var n = window, i = Tt(); i instanceof n.HTMLIFrameElement; ) {
      try {
        var s = typeof i.contentWindow.location.href == "string";
      } catch {
        s = !1;
      }
      if (s)
        n = i.contentWindow;
      else
        break;
      i = Tt(n.document);
    }
    return i;
  }
  function Ri(n) {
    var i = n && n.nodeName && n.nodeName.toLowerCase();
    return i && (i === "input" && (n.type === "text" || n.type === "search" || n.type === "tel" || n.type === "url" || n.type === "password") || i === "textarea" || n.contentEditable === "true");
  }
  function Mc(n) {
    var i = kc(), s = n.focusedElem, v = n.selectionRange;
    if (i !== s && s && s.ownerDocument && um(s.ownerDocument.documentElement, s)) {
      if (v !== null && Ri(s)) {
        if (i = v.start, n = v.end, n === void 0 && (n = i), "selectionStart" in s)
          s.selectionStart = i, s.selectionEnd = Math.min(n, s.value.length);
        else if (n = (i = s.ownerDocument || document) && i.defaultView || window, n.getSelection) {
          n = n.getSelection();
          var g = s.textContent.length, S = Math.min(v.start, g);
          v = v.end === void 0 ? S : Math.min(v.end, g), !n.extend && S > v && (g = v, v = S, S = g), g = om(s, S);
          var I = om(
            s,
            v
          );
          g && I && (n.rangeCount !== 1 || n.anchorNode !== g.node || n.anchorOffset !== g.offset || n.focusNode !== I.node || n.focusOffset !== I.offset) && (i = i.createRange(), i.setStart(g.node, g.offset), n.removeAllRanges(), S > v ? (n.addRange(i), n.extend(I.node, I.offset)) : (i.setEnd(I.node, I.offset), n.addRange(i)));
        }
      }
      for (i = [], n = s; n = n.parentNode; )
        n.nodeType === 1 && i.push({ element: n, left: n.scrollLeft, top: n.scrollTop });
      for (typeof s.focus == "function" && s.focus(), s = 0; s < i.length; s++)
        n = i[s], n.element.scrollLeft = n.left, n.element.scrollTop = n.top;
    }
  }
  var lm = C && "documentMode" in document && 11 >= document.documentMode, Wa = null, tp = null, os = null, np = !1;
  function sm(n, i, s) {
    var v = s.window === s ? s.document : s.nodeType === 9 ? s : s.ownerDocument;
    np || Wa == null || Wa !== Tt(v) || (v = Wa, "selectionStart" in v && Ri(v) ? v = { start: v.selectionStart, end: v.selectionEnd } : (v = (v.ownerDocument && v.ownerDocument.defaultView || window).getSelection(), v = { anchorNode: v.anchorNode, anchorOffset: v.anchorOffset, focusNode: v.focusNode, focusOffset: v.focusOffset }), os && is(os, v) || (os = v, v = fs(tp, "onSelect"), 0 < v.length && (i = new Rc("onSelect", "select", null, i, s), n.push({ event: i, listeners: v }), i.target = Wa)));
  }
  function Lc(n, i) {
    var s = {};
    return s[n.toLowerCase()] = i.toLowerCase(), s["Webkit" + n] = "webkit" + i, s["Moz" + n] = "moz" + i, s;
  }
  var Po = { animationend: Lc("Animation", "AnimationEnd"), animationiteration: Lc("Animation", "AnimationIteration"), animationstart: Lc("Animation", "AnimationStart"), transitionend: Lc("Transition", "TransitionEnd") }, rp = {}, ap = {};
  C && (ap = document.createElement("div").style, "AnimationEvent" in window || (delete Po.animationend.animation, delete Po.animationiteration.animation, delete Po.animationstart.animation), "TransitionEvent" in window || delete Po.transitionend.transition);
  function _n(n) {
    if (rp[n])
      return rp[n];
    if (!Po[n])
      return n;
    var i = Po[n], s;
    for (s in i)
      if (i.hasOwnProperty(s) && s in ap)
        return rp[n] = i[s];
    return n;
  }
  var ip = _n("animationend"), cm = _n("animationiteration"), fm = _n("animationstart"), dm = _n("transitionend"), pm = /* @__PURE__ */ new Map(), vm = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
  function Ti(n, i) {
    pm.set(n, i), p(i, [n]);
  }
  for (var us = 0; us < vm.length; us++) {
    var Ho = vm[us], nb = Ho.toLowerCase(), ls = Ho[0].toUpperCase() + Ho.slice(1);
    Ti(nb, "on" + ls);
  }
  Ti(ip, "onAnimationEnd"), Ti(cm, "onAnimationIteration"), Ti(fm, "onAnimationStart"), Ti("dblclick", "onDoubleClick"), Ti("focusin", "onFocus"), Ti("focusout", "onBlur"), Ti(dm, "onTransitionEnd"), h("onMouseEnter", ["mouseout", "mouseover"]), h("onMouseLeave", ["mouseout", "mouseover"]), h("onPointerEnter", ["pointerout", "pointerover"]), h("onPointerLeave", ["pointerout", "pointerover"]), p("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), p("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), p("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), p("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), p("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), p("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
  var ss = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), rb = new Set("cancel close invalid load scroll toggle".split(" ").concat(ss));
  function hm(n, i, s) {
    var v = n.type || "unknown-event";
    n.currentTarget = s, Du(v, i, void 0, n), n.currentTarget = null;
  }
  function Fc(n, i) {
    i = (i & 4) !== 0;
    for (var s = 0; s < n.length; s++) {
      var v = n[s], g = v.event;
      v = v.listeners;
      e: {
        var S = void 0;
        if (i)
          for (var I = v.length - 1; 0 <= I; I--) {
            var F = v[I], _ = F.instance, te = F.currentTarget;
            if (F = F.listener, _ !== S && g.isPropagationStopped())
              break e;
            hm(g, F, te), S = _;
          }
        else
          for (I = 0; I < v.length; I++) {
            if (F = v[I], _ = F.instance, te = F.currentTarget, F = F.listener, _ !== S && g.isPropagationStopped())
              break e;
            hm(g, F, te), S = _;
          }
      }
    }
    if (Ou)
      throw n = Wl, Ou = !1, Wl = null, n;
  }
  function $t(n, i) {
    var s = i[dp];
    s === void 0 && (s = i[dp] = /* @__PURE__ */ new Set());
    var v = n + "__bubble";
    s.has(v) || (mm(i, n, 2, !1), s.add(v));
  }
  function no(n, i, s) {
    var v = 0;
    i && (v |= 4), mm(s, n, v, i);
  }
  var Ii = "_reactListening" + Math.random().toString(36).slice(2);
  function Gu(n) {
    if (!n[Ii]) {
      n[Ii] = !0, f.forEach(function(s) {
        s !== "selectionchange" && (rb.has(s) || no(s, !1, n), no(s, !0, n));
      });
      var i = n.nodeType === 9 ? n : n.ownerDocument;
      i === null || i[Ii] || (i[Ii] = !0, no("selectionchange", !1, i));
    }
  }
  function mm(n, i, s, v) {
    switch (jd(i)) {
      case 1:
        var g = Ph;
        break;
      case 4:
        g = Ec;
        break;
      default:
        g = xc;
    }
    s = g.bind(null, i, s, n), g = void 0, !gc || i !== "touchstart" && i !== "touchmove" && i !== "wheel" || (g = !0), v ? g !== void 0 ? n.addEventListener(i, s, { capture: !0, passive: g }) : n.addEventListener(i, s, !0) : g !== void 0 ? n.addEventListener(i, s, { passive: g }) : n.addEventListener(i, s, !1);
  }
  function Bc(n, i, s, v, g) {
    var S = v;
    if (!(i & 1) && !(i & 2) && v !== null)
      e:
        for (; ; ) {
          if (v === null)
            return;
          var I = v.tag;
          if (I === 3 || I === 4) {
            var F = v.stateNode.containerInfo;
            if (F === g || F.nodeType === 8 && F.parentNode === g)
              break;
            if (I === 4)
              for (I = v.return; I !== null; ) {
                var _ = I.tag;
                if ((_ === 3 || _ === 4) && (_ = I.stateNode.containerInfo, _ === g || _.nodeType === 8 && _.parentNode === g))
                  return;
                I = I.return;
              }
            for (; F !== null; ) {
              if (I = va(F), I === null)
                return;
              if (_ = I.tag, _ === 5 || _ === 6) {
                v = S = I;
                continue e;
              }
              F = F.parentNode;
            }
          }
          v = v.return;
        }
    kd(function() {
      var te = S, pe = sn(s), ve = [];
      e: {
        var fe = pm.get(n);
        if (fe !== void 0) {
          var Le = Rc, He = n;
          switch (n) {
            case "keypress":
              if (Fu(s) === 0)
                break e;
            case "keydown":
            case "keyup":
              Le = Y0;
              break;
            case "focusin":
              He = "focus", Le = to;
              break;
            case "focusout":
              He = "blur", Le = to;
              break;
            case "beforeblur":
            case "afterblur":
              Le = to;
              break;
            case "click":
              if (s.button === 2)
                break e;
            case "auxclick":
            case "dblclick":
            case "mousedown":
            case "mousemove":
            case "mouseup":
            case "mouseout":
            case "mouseover":
            case "contextmenu":
              Le = Ic;
              break;
            case "drag":
            case "dragend":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "dragstart":
            case "drop":
              Le = Gh;
              break;
            case "touchcancel":
            case "touchend":
            case "touchmove":
            case "touchstart":
              Le = $0;
              break;
            case ip:
            case cm:
            case fm:
              Le = jh;
              break;
            case dm:
              Le = Zh;
              break;
            case "scroll":
              Le = _h;
              break;
            case "wheel":
              Le = wi;
              break;
            case "copy":
            case "cut":
            case "paste":
              Le = X0;
              break;
            case "gotpointercapture":
            case "lostpointercapture":
            case "pointercancel":
            case "pointerdown":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "pointerup":
              Le = Ac;
          }
          var Ge = (i & 4) !== 0, Cn = !Ge && n === "scroll", Q = Ge ? fe !== null ? fe + "Capture" : null : fe;
          Ge = [];
          for (var W = te, K; W !== null; ) {
            K = W;
            var be = K.stateNode;
            if (K.tag === 5 && be !== null && (K = be, Q !== null && (be = Ul(W, Q), be != null && Ge.push(cs(W, be, K)))), Cn)
              break;
            W = W.return;
          }
          0 < Ge.length && (fe = new Le(fe, He, null, s, pe), ve.push({ event: fe, listeners: Ge }));
        }
      }
      if (!(i & 7)) {
        e: {
          if (fe = n === "mouseover" || n === "pointerover", Le = n === "mouseout" || n === "pointerout", fe && s !== sa && (He = s.relatedTarget || s.fromElement) && (va(He) || He[Ai]))
            break e;
          if ((Le || fe) && (fe = pe.window === pe ? pe : (fe = pe.ownerDocument) ? fe.defaultView || fe.parentWindow : window, Le ? (He = s.relatedTarget || s.toElement, Le = te, He = He ? va(He) : null, He !== null && (Cn = ti(He), He !== Cn || He.tag !== 5 && He.tag !== 6) && (He = null)) : (Le = null, He = te), Le !== He)) {
            if (Ge = Ic, be = "onMouseLeave", Q = "onMouseEnter", W = "mouse", (n === "pointerout" || n === "pointerover") && (Ge = Ac, be = "onPointerLeave", Q = "onPointerEnter", W = "pointer"), Cn = Le == null ? fe : ju(Le), K = He == null ? fe : ju(He), fe = new Ge(be, W + "leave", Le, s, pe), fe.target = Cn, fe.relatedTarget = K, be = null, va(pe) === te && (Ge = new Ge(Q, W + "enter", He, s, pe), Ge.target = K, Ge.relatedTarget = Cn, be = Ge), Cn = be, Le && He)
              t: {
                for (Ge = Le, Q = He, W = 0, K = Ge; K; K = _o(K))
                  W++;
                for (K = 0, be = Q; be; be = _o(be))
                  K++;
                for (; 0 < W - K; )
                  Ge = _o(Ge), W--;
                for (; 0 < K - W; )
                  Q = _o(Q), K--;
                for (; W--; ) {
                  if (Ge === Q || Q !== null && Ge === Q.alternate)
                    break t;
                  Ge = _o(Ge), Q = _o(Q);
                }
                Ge = null;
              }
            else
              Ge = null;
            Le !== null && op(ve, fe, Le, Ge, !1), He !== null && Cn !== null && op(ve, Cn, He, Ge, !0);
          }
        }
        e: {
          if (fe = te ? ju(te) : window, Le = fe.nodeName && fe.nodeName.toLowerCase(), Le === "select" || Le === "input" && fe.type === "file")
            var Xe = em;
          else if (qh(fe))
            if (qd)
              Xe = am;
            else {
              Xe = K0;
              var nt = q0;
            }
          else
            (Le = fe.nodeName) && Le.toLowerCase() === "input" && (fe.type === "checkbox" || fe.type === "radio") && (Xe = eb);
          if (Xe && (Xe = Xe(n, te))) {
            Kh(ve, Xe, s, pe);
            break e;
          }
          nt && nt(n, fe, te), n === "focusout" && (nt = fe._wrapperState) && nt.controlled && fe.type === "number" && Qi(fe, "number", fe.value);
        }
        switch (nt = te ? ju(te) : window, n) {
          case "focusin":
            (qh(nt) || nt.contentEditable === "true") && (Wa = nt, tp = te, os = null);
            break;
          case "focusout":
            os = tp = Wa = null;
            break;
          case "mousedown":
            np = !0;
            break;
          case "contextmenu":
          case "mouseup":
          case "dragend":
            np = !1, sm(ve, s, pe);
            break;
          case "selectionchange":
            if (lm)
              break;
          case "keydown":
          case "keyup":
            sm(ve, s, pe);
        }
        var _e;
        if (Ua)
          e: {
            switch (n) {
              case "compositionstart":
                var at = "onCompositionStart";
                break e;
              case "compositionend":
                at = "onCompositionEnd";
                break e;
              case "compositionupdate":
                at = "onCompositionUpdate";
                break e;
            }
            at = void 0;
          }
        else
          Pu ? Qh(n, s) && (at = "onCompositionEnd") : n === "keydown" && s.keyCode === 229 && (at = "onCompositionStart");
        at && (Yh && s.locale !== "ko" && (Pu || at !== "onCompositionStart" ? at === "onCompositionEnd" && Pu && (_e = Ud()) : (Ei = pe, es = "value" in Ei ? Ei.value : Ei.textContent, Pu = !0)), nt = fs(te, at), 0 < nt.length && (at = new Zd(at, n, null, s, pe), ve.push({ event: at, listeners: nt }), _e ? at.data = _e : (_e = Nc(s), _e !== null && (at.data = _e)))), (_e = Dc ? Q0(n, s) : J0(n, s)) && (te = fs(te, "onBeforeInput"), 0 < te.length && (pe = new Zd("onBeforeInput", "beforeinput", null, s, pe), ve.push({ event: pe, listeners: te }), pe.data = _e));
      }
      Fc(ve, i);
    });
  }
  function cs(n, i, s) {
    return { instance: n, listener: i, currentTarget: s };
  }
  function fs(n, i) {
    for (var s = i + "Capture", v = []; n !== null; ) {
      var g = n, S = g.stateNode;
      g.tag === 5 && S !== null && (g = S, S = Ul(n, s), S != null && v.unshift(cs(n, S, g)), S = Ul(n, i), S != null && v.push(cs(n, S, g))), n = n.return;
    }
    return v;
  }
  function _o(n) {
    if (n === null)
      return null;
    do
      n = n.return;
    while (n && n.tag !== 5);
    return n || null;
  }
  function op(n, i, s, v, g) {
    for (var S = i._reactName, I = []; s !== null && s !== v; ) {
      var F = s, _ = F.alternate, te = F.stateNode;
      if (_ !== null && _ === v)
        break;
      F.tag === 5 && te !== null && (F = te, g ? (_ = Ul(s, S), _ != null && I.unshift(cs(s, _, F))) : g || (_ = Ul(s, S), _ != null && I.push(cs(s, _, F)))), s = s.return;
    }
    I.length !== 0 && n.push({ event: i, listeners: I });
  }
  var up = /\r\n?/g, ab = /\u0000|\uFFFD/g;
  function lp(n) {
    return (typeof n == "string" ? n : "" + n).replace(up, `
`).replace(ab, "");
  }
  function Vc(n, i, s) {
    if (i = lp(i), lp(n) !== i && s)
      throw Error(u(425));
  }
  function Pc() {
  }
  var sp = null, zo = null;
  function ds(n, i) {
    return n === "textarea" || n === "noscript" || typeof i.children == "string" || typeof i.children == "number" || typeof i.dangerouslySetInnerHTML == "object" && i.dangerouslySetInnerHTML !== null && i.dangerouslySetInnerHTML.__html != null;
  }
  var Go = typeof setTimeout == "function" ? setTimeout : void 0, gm = typeof clearTimeout == "function" ? clearTimeout : void 0, cp = typeof Promise == "function" ? Promise : void 0, fp = typeof queueMicrotask == "function" ? queueMicrotask : typeof cp < "u" ? function(n) {
    return cp.resolve(null).then(n).catch(ib);
  } : Go;
  function ib(n) {
    setTimeout(function() {
      throw n;
    });
  }
  function ro(n, i) {
    var s = i, v = 0;
    do {
      var g = s.nextSibling;
      if (n.removeChild(s), g && g.nodeType === 8)
        if (s = g.data, s === "/$") {
          if (v === 0) {
            n.removeChild(g), ql(i);
            return;
          }
          v--;
        } else
          s !== "$" && s !== "$?" && s !== "$!" || v++;
      s = g;
    } while (s);
    ql(i);
  }
  function Xa(n) {
    for (; n != null; n = n.nextSibling) {
      var i = n.nodeType;
      if (i === 1 || i === 3)
        break;
      if (i === 8) {
        if (i = n.data, i === "$" || i === "$!" || i === "$?")
          break;
        if (i === "/$")
          return null;
      }
    }
    return n;
  }
  function ps(n) {
    n = n.previousSibling;
    for (var i = 0; n; ) {
      if (n.nodeType === 8) {
        var s = n.data;
        if (s === "$" || s === "$!" || s === "$?") {
          if (i === 0)
            return n;
          i--;
        } else
          s === "/$" && i++;
      }
      n = n.previousSibling;
    }
    return null;
  }
  var ao = Math.random().toString(36).slice(2), ni = "__reactFiber$" + ao, jo = "__reactProps$" + ao, Ai = "__reactContainer$" + ao, dp = "__reactEvents$" + ao, ob = "__reactListeners$" + ao, pp = "__reactHandles$" + ao;
  function va(n) {
    var i = n[ni];
    if (i)
      return i;
    for (var s = n.parentNode; s; ) {
      if (i = s[Ai] || s[ni]) {
        if (s = i.alternate, i.child !== null || s !== null && s.child !== null)
          for (n = ps(n); n !== null; ) {
            if (s = n[ni])
              return s;
            n = ps(n);
          }
        return i;
      }
      n = s, s = n.parentNode;
    }
    return null;
  }
  function vs(n) {
    return n = n[ni] || n[Ai], !n || n.tag !== 5 && n.tag !== 6 && n.tag !== 13 && n.tag !== 3 ? null : n;
  }
  function ju(n) {
    if (n.tag === 5 || n.tag === 6)
      return n.stateNode;
    throw Error(u(33));
  }
  function Je(n) {
    return n[jo] || null;
  }
  var io = [], Jt = -1;
  function yt(n) {
    return { current: n };
  }
  function Lt(n) {
    0 > Jt || (n.current = io[Jt], io[Jt] = null, Jt--);
  }
  function Ft(n, i) {
    Jt++, io[Jt] = n.current, n.current = i;
  }
  var ri = {}, st = yt(ri), dn = yt(!1), kr = ri;
  function ha(n, i) {
    var s = n.type.contextTypes;
    if (!s)
      return ri;
    var v = n.stateNode;
    if (v && v.__reactInternalMemoizedUnmaskedChildContext === i)
      return v.__reactInternalMemoizedMaskedChildContext;
    var g = {}, S;
    for (S in s)
      g[S] = i[S];
    return v && (n = n.stateNode, n.__reactInternalMemoizedUnmaskedChildContext = i, n.__reactInternalMemoizedMaskedChildContext = g), g;
  }
  function tn(n) {
    return n = n.childContextTypes, n != null;
  }
  function ma() {
    Lt(dn), Lt(st);
  }
  function oo(n, i, s) {
    if (st.current !== ri)
      throw Error(u(168));
    Ft(st, i), Ft(dn, s);
  }
  function hs(n, i, s) {
    var v = n.stateNode;
    if (i = i.childContextTypes, typeof v.getChildContext != "function")
      return s;
    v = v.getChildContext();
    for (var g in v)
      if (!(g in i))
        throw Error(u(108, je(n) || "Unknown", g));
    return Z({}, s, v);
  }
  function Hc(n) {
    return n = (n = n.stateNode) && n.__reactInternalMemoizedMergedChildContext || ri, kr = st.current, Ft(st, n), Ft(dn, dn.current), !0;
  }
  function ym(n, i, s) {
    var v = n.stateNode;
    if (!v)
      throw Error(u(169));
    s ? (n = hs(n, i, kr), v.__reactInternalMemoizedMergedChildContext = n, Lt(dn), Lt(st), Ft(st, n)) : Lt(dn), Ft(dn, s);
  }
  var Jr = null, zn = !1, ms = !1;
  function vp(n) {
    Jr === null ? Jr = [n] : Jr.push(n);
  }
  function hp(n) {
    zn = !0, vp(n);
  }
  function Mr() {
    if (!ms && Jr !== null) {
      ms = !0;
      var n = 0, i = Ht;
      try {
        var s = Jr;
        for (Ht = 1; n < s.length; n++) {
          var v = s[n];
          do
            v = v(!0);
          while (v !== null);
        }
        Jr = null, zn = !1;
      } catch (g) {
        throw Jr !== null && (Jr = Jr.slice(n + 1)), Fd(Si, Mr), g;
      } finally {
        Ht = i, ms = !1;
      }
    }
    return null;
  }
  var uo = [], Lr = 0, Uo = null, Uu = 0, Fr = [], fr = 0, ga = null, qn = 1, Oi = "";
  function qr(n, i) {
    uo[Lr++] = Uu, uo[Lr++] = Uo, Uo = n, Uu = i;
  }
  function mp(n, i, s) {
    Fr[fr++] = qn, Fr[fr++] = Oi, Fr[fr++] = ga, ga = n;
    var v = qn;
    n = Oi;
    var g = 32 - ca(v) - 1;
    v &= ~(1 << g), s += 1;
    var S = 32 - ca(i) + g;
    if (30 < S) {
      var I = g - g % 5;
      S = (v & (1 << I) - 1).toString(32), v >>= I, g -= I, qn = 1 << 32 - ca(i) + g | s << g | v, Oi = S + n;
    } else
      qn = 1 << S | s << g | v, Oi = n;
  }
  function _c(n) {
    n.return !== null && (qr(n, 1), mp(n, 1, 0));
  }
  function gp(n) {
    for (; n === Uo; )
      Uo = uo[--Lr], uo[Lr] = null, Uu = uo[--Lr], uo[Lr] = null;
    for (; n === ga; )
      ga = Fr[--fr], Fr[fr] = null, Oi = Fr[--fr], Fr[fr] = null, qn = Fr[--fr], Fr[fr] = null;
  }
  var Kr = null, Br = null, qt = !1, ya = null;
  function yp(n, i) {
    var s = Ta(5, null, null, 0);
    s.elementType = "DELETED", s.stateNode = i, s.return = n, i = n.deletions, i === null ? (n.deletions = [s], n.flags |= 16) : i.push(s);
  }
  function bm(n, i) {
    switch (n.tag) {
      case 5:
        var s = n.type;
        return i = i.nodeType !== 1 || s.toLowerCase() !== i.nodeName.toLowerCase() ? null : i, i !== null ? (n.stateNode = i, Kr = n, Br = Xa(i.firstChild), !0) : !1;
      case 6:
        return i = n.pendingProps === "" || i.nodeType !== 3 ? null : i, i !== null ? (n.stateNode = i, Kr = n, Br = null, !0) : !1;
      case 13:
        return i = i.nodeType !== 8 ? null : i, i !== null ? (s = ga !== null ? { id: qn, overflow: Oi } : null, n.memoizedState = { dehydrated: i, treeContext: s, retryLane: 1073741824 }, s = Ta(18, null, null, 0), s.stateNode = i, s.return = n, n.child = s, Kr = n, Br = null, !0) : !1;
      default:
        return !1;
    }
  }
  function zc(n) {
    return (n.mode & 1) !== 0 && (n.flags & 128) === 0;
  }
  function Gc(n) {
    if (qt) {
      var i = Br;
      if (i) {
        var s = i;
        if (!bm(n, i)) {
          if (zc(n))
            throw Error(u(418));
          i = Xa(s.nextSibling);
          var v = Kr;
          i && bm(n, i) ? yp(v, s) : (n.flags = n.flags & -4097 | 2, qt = !1, Kr = n);
        }
      } else {
        if (zc(n))
          throw Error(u(418));
        n.flags = n.flags & -4097 | 2, qt = !1, Kr = n;
      }
    }
  }
  function Cm(n) {
    for (n = n.return; n !== null && n.tag !== 5 && n.tag !== 3 && n.tag !== 13; )
      n = n.return;
    Kr = n;
  }
  function jc(n) {
    if (n !== Kr)
      return !1;
    if (!qt)
      return Cm(n), qt = !0, !1;
    var i;
    if ((i = n.tag !== 3) && !(i = n.tag !== 5) && (i = n.type, i = i !== "head" && i !== "body" && !ds(n.type, n.memoizedProps)), i && (i = Br)) {
      if (zc(n))
        throw Sm(), Error(u(418));
      for (; i; )
        yp(n, i), i = Xa(i.nextSibling);
    }
    if (Cm(n), n.tag === 13) {
      if (n = n.memoizedState, n = n !== null ? n.dehydrated : null, !n)
        throw Error(u(317));
      e: {
        for (n = n.nextSibling, i = 0; n; ) {
          if (n.nodeType === 8) {
            var s = n.data;
            if (s === "/$") {
              if (i === 0) {
                Br = Xa(n.nextSibling);
                break e;
              }
              i--;
            } else
              s !== "$" && s !== "$!" && s !== "$?" || i++;
          }
          n = n.nextSibling;
        }
        Br = null;
      }
    } else
      Br = Kr ? Xa(n.stateNode.nextSibling) : null;
    return !0;
  }
  function Sm() {
    for (var n = Br; n; )
      n = Xa(n.nextSibling);
  }
  function an() {
    Br = Kr = null, qt = !1;
  }
  function bp(n) {
    ya === null ? ya = [n] : ya.push(n);
  }
  var Uc = z.ReactCurrentBatchConfig;
  function Wo(n, i, s) {
    if (n = s.ref, n !== null && typeof n != "function" && typeof n != "object") {
      if (s._owner) {
        if (s = s._owner, s) {
          if (s.tag !== 1)
            throw Error(u(309));
          var v = s.stateNode;
        }
        if (!v)
          throw Error(u(147, n));
        var g = v, S = "" + n;
        return i !== null && i.ref !== null && typeof i.ref == "function" && i.ref._stringRef === S ? i.ref : (i = function(I) {
          var F = g.refs;
          I === null ? delete F[S] : F[S] = I;
        }, i._stringRef = S, i);
      }
      if (typeof n != "string")
        throw Error(u(284));
      if (!s._owner)
        throw Error(u(290, n));
    }
    return n;
  }
  function ai(n, i) {
    throw n = Object.prototype.toString.call(i), Error(u(31, n === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : n));
  }
  function Em(n) {
    var i = n._init;
    return i(n._payload);
  }
  function Wc(n) {
    function i(Q, W) {
      if (n) {
        var K = Q.deletions;
        K === null ? (Q.deletions = [W], Q.flags |= 16) : K.push(W);
      }
    }
    function s(Q, W) {
      if (!n)
        return null;
      for (; W !== null; )
        i(Q, W), W = W.sibling;
      return null;
    }
    function v(Q, W) {
      for (Q = /* @__PURE__ */ new Map(); W !== null; )
        W.key !== null ? Q.set(W.key, W) : Q.set(W.index, W), W = W.sibling;
      return Q;
    }
    function g(Q, W) {
      return Q = mo(Q, W), Q.index = 0, Q.sibling = null, Q;
    }
    function S(Q, W, K) {
      return Q.index = K, n ? (K = Q.alternate, K !== null ? (K = K.index, K < W ? (Q.flags |= 2, W) : K) : (Q.flags |= 2, W)) : (Q.flags |= 1048576, W);
    }
    function I(Q) {
      return n && Q.alternate === null && (Q.flags |= 2), Q;
    }
    function F(Q, W, K, be) {
      return W === null || W.tag !== 6 ? (W = Mf(K, Q.mode, be), W.return = Q, W) : (W = g(W, K), W.return = Q, W);
    }
    function _(Q, W, K, be) {
      var Xe = K.type;
      return Xe === B ? pe(Q, W, K.props.children, be, K.key) : W !== null && (W.elementType === Xe || typeof Xe == "object" && Xe !== null && Xe.$$typeof === Se && Em(Xe) === W.type) ? (be = g(W, K.props), be.ref = Wo(Q, W, K), be.return = Q, be) : (be = Nf(K.type, K.key, K.props, null, Q.mode, be), be.ref = Wo(Q, W, K), be.return = Q, be);
    }
    function te(Q, W, K, be) {
      return W === null || W.tag !== 4 || W.stateNode.containerInfo !== K.containerInfo || W.stateNode.implementation !== K.implementation ? (W = Ls(K, Q.mode, be), W.return = Q, W) : (W = g(W, K.children || []), W.return = Q, W);
    }
    function pe(Q, W, K, be, Xe) {
      return W === null || W.tag !== 7 ? (W = ou(K, Q.mode, be, Xe), W.return = Q, W) : (W = g(W, K), W.return = Q, W);
    }
    function ve(Q, W, K) {
      if (typeof W == "string" && W !== "" || typeof W == "number")
        return W = Mf("" + W, Q.mode, K), W.return = Q, W;
      if (typeof W == "object" && W !== null) {
        switch (W.$$typeof) {
          case V:
            return K = Nf(W.type, W.key, W.props, null, Q.mode, K), K.ref = Wo(Q, null, W), K.return = Q, K;
          case j:
            return W = Ls(W, Q.mode, K), W.return = Q, W;
          case Se:
            var be = W._init;
            return ve(Q, be(W._payload), K);
        }
        if (mr(W) || xe(W))
          return W = ou(W, Q.mode, K, null), W.return = Q, W;
        ai(Q, W);
      }
      return null;
    }
    function fe(Q, W, K, be) {
      var Xe = W !== null ? W.key : null;
      if (typeof K == "string" && K !== "" || typeof K == "number")
        return Xe !== null ? null : F(Q, W, "" + K, be);
      if (typeof K == "object" && K !== null) {
        switch (K.$$typeof) {
          case V:
            return K.key === Xe ? _(Q, W, K, be) : null;
          case j:
            return K.key === Xe ? te(Q, W, K, be) : null;
          case Se:
            return Xe = K._init, fe(
              Q,
              W,
              Xe(K._payload),
              be
            );
        }
        if (mr(K) || xe(K))
          return Xe !== null ? null : pe(Q, W, K, be, null);
        ai(Q, K);
      }
      return null;
    }
    function Le(Q, W, K, be, Xe) {
      if (typeof be == "string" && be !== "" || typeof be == "number")
        return Q = Q.get(K) || null, F(W, Q, "" + be, Xe);
      if (typeof be == "object" && be !== null) {
        switch (be.$$typeof) {
          case V:
            return Q = Q.get(be.key === null ? K : be.key) || null, _(W, Q, be, Xe);
          case j:
            return Q = Q.get(be.key === null ? K : be.key) || null, te(W, Q, be, Xe);
          case Se:
            var nt = be._init;
            return Le(Q, W, K, nt(be._payload), Xe);
        }
        if (mr(be) || xe(be))
          return Q = Q.get(K) || null, pe(W, Q, be, Xe, null);
        ai(W, be);
      }
      return null;
    }
    function He(Q, W, K, be) {
      for (var Xe = null, nt = null, _e = W, at = W = 0, Bn = null; _e !== null && at < K.length; at++) {
        _e.index > at ? (Bn = _e, _e = null) : Bn = _e.sibling;
        var Nt = fe(Q, _e, K[at], be);
        if (Nt === null) {
          _e === null && (_e = Bn);
          break;
        }
        n && _e && Nt.alternate === null && i(Q, _e), W = S(Nt, W, at), nt === null ? Xe = Nt : nt.sibling = Nt, nt = Nt, _e = Bn;
      }
      if (at === K.length)
        return s(Q, _e), qt && qr(Q, at), Xe;
      if (_e === null) {
        for (; at < K.length; at++)
          _e = ve(Q, K[at], be), _e !== null && (W = S(_e, W, at), nt === null ? Xe = _e : nt.sibling = _e, nt = _e);
        return qt && qr(Q, at), Xe;
      }
      for (_e = v(Q, _e); at < K.length; at++)
        Bn = Le(_e, Q, at, K[at], be), Bn !== null && (n && Bn.alternate !== null && _e.delete(Bn.key === null ? at : Bn.key), W = S(Bn, W, at), nt === null ? Xe = Bn : nt.sibling = Bn, nt = Bn);
      return n && _e.forEach(function(Bi) {
        return i(Q, Bi);
      }), qt && qr(Q, at), Xe;
    }
    function Ge(Q, W, K, be) {
      var Xe = xe(K);
      if (typeof Xe != "function")
        throw Error(u(150));
      if (K = Xe.call(K), K == null)
        throw Error(u(151));
      for (var nt = Xe = null, _e = W, at = W = 0, Bn = null, Nt = K.next(); _e !== null && !Nt.done; at++, Nt = K.next()) {
        _e.index > at ? (Bn = _e, _e = null) : Bn = _e.sibling;
        var Bi = fe(Q, _e, Nt.value, be);
        if (Bi === null) {
          _e === null && (_e = Bn);
          break;
        }
        n && _e && Bi.alternate === null && i(Q, _e), W = S(Bi, W, at), nt === null ? Xe = Bi : nt.sibling = Bi, nt = Bi, _e = Bn;
      }
      if (Nt.done)
        return s(
          Q,
          _e
        ), qt && qr(Q, at), Xe;
      if (_e === null) {
        for (; !Nt.done; at++, Nt = K.next())
          Nt = ve(Q, Nt.value, be), Nt !== null && (W = S(Nt, W, at), nt === null ? Xe = Nt : nt.sibling = Nt, nt = Nt);
        return qt && qr(Q, at), Xe;
      }
      for (_e = v(Q, _e); !Nt.done; at++, Nt = K.next())
        Nt = Le(_e, Q, at, Nt.value, be), Nt !== null && (n && Nt.alternate !== null && _e.delete(Nt.key === null ? at : Nt.key), W = S(Nt, W, at), nt === null ? Xe = Nt : nt.sibling = Nt, nt = Nt);
      return n && _e.forEach(function(wb) {
        return i(Q, wb);
      }), qt && qr(Q, at), Xe;
    }
    function Cn(Q, W, K, be) {
      if (typeof K == "object" && K !== null && K.type === B && K.key === null && (K = K.props.children), typeof K == "object" && K !== null) {
        switch (K.$$typeof) {
          case V:
            e: {
              for (var Xe = K.key, nt = W; nt !== null; ) {
                if (nt.key === Xe) {
                  if (Xe = K.type, Xe === B) {
                    if (nt.tag === 7) {
                      s(Q, nt.sibling), W = g(nt, K.props.children), W.return = Q, Q = W;
                      break e;
                    }
                  } else if (nt.elementType === Xe || typeof Xe == "object" && Xe !== null && Xe.$$typeof === Se && Em(Xe) === nt.type) {
                    s(Q, nt.sibling), W = g(nt, K.props), W.ref = Wo(Q, nt, K), W.return = Q, Q = W;
                    break e;
                  }
                  s(Q, nt);
                  break;
                } else
                  i(Q, nt);
                nt = nt.sibling;
              }
              K.type === B ? (W = ou(K.props.children, Q.mode, be, K.key), W.return = Q, Q = W) : (be = Nf(K.type, K.key, K.props, null, Q.mode, be), be.ref = Wo(Q, W, K), be.return = Q, Q = be);
            }
            return I(Q);
          case j:
            e: {
              for (nt = K.key; W !== null; ) {
                if (W.key === nt)
                  if (W.tag === 4 && W.stateNode.containerInfo === K.containerInfo && W.stateNode.implementation === K.implementation) {
                    s(Q, W.sibling), W = g(W, K.children || []), W.return = Q, Q = W;
                    break e;
                  } else {
                    s(Q, W);
                    break;
                  }
                else
                  i(Q, W);
                W = W.sibling;
              }
              W = Ls(K, Q.mode, be), W.return = Q, Q = W;
            }
            return I(Q);
          case Se:
            return nt = K._init, Cn(Q, W, nt(K._payload), be);
        }
        if (mr(K))
          return He(Q, W, K, be);
        if (xe(K))
          return Ge(Q, W, K, be);
        ai(Q, K);
      }
      return typeof K == "string" && K !== "" || typeof K == "number" ? (K = "" + K, W !== null && W.tag === 6 ? (s(Q, W.sibling), W = g(W, K), W.return = Q, Q = W) : (s(Q, W), W = Mf(K, Q.mode, be), W.return = Q, Q = W), I(Q)) : s(Q, W);
    }
    return Cn;
  }
  var Wu = Wc(!0), xm = Wc(!1), Di = yt(null), kn = null, we = null, ba = null;
  function ea() {
    ba = we = kn = null;
  }
  function Cp(n) {
    var i = Di.current;
    Lt(Di), n._currentValue = i;
  }
  function Sp(n, i, s) {
    for (; n !== null; ) {
      var v = n.alternate;
      if ((n.childLanes & i) !== i ? (n.childLanes |= i, v !== null && (v.childLanes |= i)) : v !== null && (v.childLanes & i) !== i && (v.childLanes |= i), n === s)
        break;
      n = n.return;
    }
  }
  function Xu(n, i) {
    kn = n, ba = we = null, n = n.dependencies, n !== null && n.firstContext !== null && (n.lanes & i && (Hr = !0), n.firstContext = null);
  }
  function Ca(n) {
    var i = n._currentValue;
    if (ba !== n)
      if (n = { context: n, memoizedValue: i, next: null }, we === null) {
        if (kn === null)
          throw Error(u(308));
        we = n, kn.dependencies = { lanes: 0, firstContext: n };
      } else
        we = we.next = n;
    return i;
  }
  var Xo = null;
  function Tn(n) {
    Xo === null ? Xo = [n] : Xo.push(n);
  }
  function wm(n, i, s, v) {
    var g = i.interleaved;
    return g === null ? (s.next = s, Tn(i)) : (s.next = g.next, g.next = s), i.interleaved = s, Ni(n, v);
  }
  function Ni(n, i) {
    n.lanes |= i;
    var s = n.alternate;
    for (s !== null && (s.lanes |= i), s = n, n = n.return; n !== null; )
      n.childLanes |= i, s = n.alternate, s !== null && (s.childLanes |= i), s = n, n = n.return;
    return s.tag === 3 ? s.stateNode : null;
  }
  var lo = !1;
  function Xc(n) {
    n.updateQueue = { baseState: n.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
  }
  function Zu(n, i) {
    n = n.updateQueue, i.updateQueue === n && (i.updateQueue = { baseState: n.baseState, firstBaseUpdate: n.firstBaseUpdate, lastBaseUpdate: n.lastBaseUpdate, shared: n.shared, effects: n.effects });
  }
  function Vr(n, i) {
    return { eventTime: n, lane: i, tag: 0, payload: null, callback: null, next: null };
  }
  function so(n, i, s) {
    var v = n.updateQueue;
    if (v === null)
      return null;
    if (v = v.shared, xt & 2) {
      var g = v.pending;
      return g === null ? i.next = i : (i.next = g.next, g.next = i), v.pending = i, Ni(n, s);
    }
    return g = v.interleaved, g === null ? (i.next = i, Tn(v)) : (i.next = g.next, g.next = i), v.interleaved = i, Ni(n, s);
  }
  function Zc(n, i, s) {
    if (i = i.updateQueue, i !== null && (i = i.shared, (s & 4194240) !== 0)) {
      var v = i.lanes;
      v &= n.pendingLanes, s |= v, i.lanes = s, Yl(n, s);
    }
  }
  function Rm(n, i) {
    var s = n.updateQueue, v = n.alternate;
    if (v !== null && (v = v.updateQueue, s === v)) {
      var g = null, S = null;
      if (s = s.firstBaseUpdate, s !== null) {
        do {
          var I = { eventTime: s.eventTime, lane: s.lane, tag: s.tag, payload: s.payload, callback: s.callback, next: null };
          S === null ? g = S = I : S = S.next = I, s = s.next;
        } while (s !== null);
        S === null ? g = S = i : S = S.next = i;
      } else
        g = S = i;
      s = { baseState: v.baseState, firstBaseUpdate: g, lastBaseUpdate: S, shared: v.shared, effects: v.effects }, n.updateQueue = s;
      return;
    }
    n = s.lastBaseUpdate, n === null ? s.firstBaseUpdate = i : n.next = i, s.lastBaseUpdate = i;
  }
  function Yc(n, i, s, v) {
    var g = n.updateQueue;
    lo = !1;
    var S = g.firstBaseUpdate, I = g.lastBaseUpdate, F = g.shared.pending;
    if (F !== null) {
      g.shared.pending = null;
      var _ = F, te = _.next;
      _.next = null, I === null ? S = te : I.next = te, I = _;
      var pe = n.alternate;
      pe !== null && (pe = pe.updateQueue, F = pe.lastBaseUpdate, F !== I && (F === null ? pe.firstBaseUpdate = te : F.next = te, pe.lastBaseUpdate = _));
    }
    if (S !== null) {
      var ve = g.baseState;
      I = 0, pe = te = _ = null, F = S;
      do {
        var fe = F.lane, Le = F.eventTime;
        if ((v & fe) === fe) {
          pe !== null && (pe = pe.next = {
            eventTime: Le,
            lane: 0,
            tag: F.tag,
            payload: F.payload,
            callback: F.callback,
            next: null
          });
          e: {
            var He = n, Ge = F;
            switch (fe = i, Le = s, Ge.tag) {
              case 1:
                if (He = Ge.payload, typeof He == "function") {
                  ve = He.call(Le, ve, fe);
                  break e;
                }
                ve = He;
                break e;
              case 3:
                He.flags = He.flags & -65537 | 128;
              case 0:
                if (He = Ge.payload, fe = typeof He == "function" ? He.call(Le, ve, fe) : He, fe == null)
                  break e;
                ve = Z({}, ve, fe);
                break e;
              case 2:
                lo = !0;
            }
          }
          F.callback !== null && F.lane !== 0 && (n.flags |= 64, fe = g.effects, fe === null ? g.effects = [F] : fe.push(F));
        } else
          Le = { eventTime: Le, lane: fe, tag: F.tag, payload: F.payload, callback: F.callback, next: null }, pe === null ? (te = pe = Le, _ = ve) : pe = pe.next = Le, I |= fe;
        if (F = F.next, F === null) {
          if (F = g.shared.pending, F === null)
            break;
          fe = F, F = fe.next, fe.next = null, g.lastBaseUpdate = fe, g.shared.pending = null;
        }
      } while (!0);
      if (pe === null && (_ = ve), g.baseState = _, g.firstBaseUpdate = te, g.lastBaseUpdate = pe, i = g.shared.interleaved, i !== null) {
        g = i;
        do
          I |= g.lane, g = g.next;
        while (g !== i);
      } else
        S === null && (g.shared.lanes = 0);
      nu |= I, n.lanes = I, n.memoizedState = ve;
    }
  }
  function Tm(n, i, s) {
    if (n = i.effects, i.effects = null, n !== null)
      for (i = 0; i < n.length; i++) {
        var v = n[i], g = v.callback;
        if (g !== null) {
          if (v.callback = null, v = s, typeof g != "function")
            throw Error(u(191, g));
          g.call(v);
        }
      }
  }
  var gs = {}, Za = yt(gs), Yu = yt(gs), ys = yt(gs);
  function Zo(n) {
    if (n === gs)
      throw Error(u(174));
    return n;
  }
  function Ep(n, i) {
    switch (Ft(ys, i), Ft(Yu, n), Ft(Za, gs), n = i.nodeType, n) {
      case 9:
      case 11:
        i = (i = i.documentElement) ? i.namespaceURI : Jn(null, "");
        break;
      default:
        n = n === 8 ? i.parentNode : i, i = n.namespaceURI || null, n = n.tagName, i = Jn(i, n);
    }
    Lt(Za), Ft(Za, i);
  }
  function $u() {
    Lt(Za), Lt(Yu), Lt(ys);
  }
  function Im(n) {
    Zo(ys.current);
    var i = Zo(Za.current), s = Jn(i, n.type);
    i !== s && (Ft(Yu, n), Ft(Za, s));
  }
  function xp(n) {
    Yu.current === n && (Lt(Za), Lt(Yu));
  }
  var nn = yt(0);
  function $c(n) {
    for (var i = n; i !== null; ) {
      if (i.tag === 13) {
        var s = i.memoizedState;
        if (s !== null && (s = s.dehydrated, s === null || s.data === "$?" || s.data === "$!"))
          return i;
      } else if (i.tag === 19 && i.memoizedProps.revealOrder !== void 0) {
        if (i.flags & 128)
          return i;
      } else if (i.child !== null) {
        i.child.return = i, i = i.child;
        continue;
      }
      if (i === n)
        break;
      for (; i.sibling === null; ) {
        if (i.return === null || i.return === n)
          return null;
        i = i.return;
      }
      i.sibling.return = i.return, i = i.sibling;
    }
    return null;
  }
  var Qc = [];
  function wp() {
    for (var n = 0; n < Qc.length; n++)
      Qc[n]._workInProgressVersionPrimary = null;
    Qc.length = 0;
  }
  var Jc = z.ReactCurrentDispatcher, bs = z.ReactCurrentBatchConfig, We = 0, Ze = null, ct = null, Ct = null, ta = !1, Qu = !1, Cs = 0, ub = 0;
  function dr() {
    throw Error(u(321));
  }
  function Ss(n, i) {
    if (i === null)
      return !1;
    for (var s = 0; s < i.length && s < n.length; s++)
      if (!pa(n[s], i[s]))
        return !1;
    return !0;
  }
  function ce(n, i, s, v, g, S) {
    if (We = S, Ze = i, i.memoizedState = null, i.updateQueue = null, i.lanes = 0, Jc.current = n === null || n.memoizedState === null ? lb : Qt, n = s(v, g), Qu) {
      S = 0;
      do {
        if (Qu = !1, Cs = 0, 25 <= S)
          throw Error(u(301));
        S += 1, Ct = ct = null, i.updateQueue = null, Jc.current = pf, n = s(v, g);
      } while (Qu);
    }
    if (Jc.current = pr, i = ct !== null && ct.next !== null, We = 0, Ct = ct = Ze = null, ta = !1, i)
      throw Error(u(300));
    return n;
  }
  function In() {
    var n = Cs !== 0;
    return Cs = 0, n;
  }
  function $e() {
    var n = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
    return Ct === null ? Ze.memoizedState = Ct = n : Ct = Ct.next = n, Ct;
  }
  function Kn() {
    if (ct === null) {
      var n = Ze.alternate;
      n = n !== null ? n.memoizedState : null;
    } else
      n = ct.next;
    var i = Ct === null ? Ze.memoizedState : Ct.next;
    if (i !== null)
      Ct = i, ct = n;
    else {
      if (n === null)
        throw Error(u(310));
      ct = n, n = { memoizedState: ct.memoizedState, baseState: ct.baseState, baseQueue: ct.baseQueue, queue: ct.queue, next: null }, Ct === null ? Ze.memoizedState = Ct = n : Ct = Ct.next = n;
    }
    return Ct;
  }
  function na(n, i) {
    return typeof i == "function" ? i(n) : i;
  }
  function ki(n) {
    var i = Kn(), s = i.queue;
    if (s === null)
      throw Error(u(311));
    s.lastRenderedReducer = n;
    var v = ct, g = v.baseQueue, S = s.pending;
    if (S !== null) {
      if (g !== null) {
        var I = g.next;
        g.next = S.next, S.next = I;
      }
      v.baseQueue = g = S, s.pending = null;
    }
    if (g !== null) {
      S = g.next, v = v.baseState;
      var F = I = null, _ = null, te = S;
      do {
        var pe = te.lane;
        if ((We & pe) === pe)
          _ !== null && (_ = _.next = { lane: 0, action: te.action, hasEagerState: te.hasEagerState, eagerState: te.eagerState, next: null }), v = te.hasEagerState ? te.eagerState : n(v, te.action);
        else {
          var ve = {
            lane: pe,
            action: te.action,
            hasEagerState: te.hasEagerState,
            eagerState: te.eagerState,
            next: null
          };
          _ === null ? (F = _ = ve, I = v) : _ = _.next = ve, Ze.lanes |= pe, nu |= pe;
        }
        te = te.next;
      } while (te !== null && te !== S);
      _ === null ? I = v : _.next = F, pa(v, i.memoizedState) || (Hr = !0), i.memoizedState = v, i.baseState = I, i.baseQueue = _, s.lastRenderedState = v;
    }
    if (n = s.interleaved, n !== null) {
      g = n;
      do
        S = g.lane, Ze.lanes |= S, nu |= S, g = g.next;
      while (g !== n);
    } else
      g === null && (s.lanes = 0);
    return [i.memoizedState, s.dispatch];
  }
  function Sa(n) {
    var i = Kn(), s = i.queue;
    if (s === null)
      throw Error(u(311));
    s.lastRenderedReducer = n;
    var v = s.dispatch, g = s.pending, S = i.memoizedState;
    if (g !== null) {
      s.pending = null;
      var I = g = g.next;
      do
        S = n(S, I.action), I = I.next;
      while (I !== g);
      pa(S, i.memoizedState) || (Hr = !0), i.memoizedState = S, i.baseQueue === null && (i.baseState = S), s.lastRenderedState = S;
    }
    return [S, v];
  }
  function Ju() {
  }
  function Yo(n, i) {
    var s = Ze, v = Kn(), g = i(), S = !pa(v.memoizedState, g);
    if (S && (v.memoizedState = g, Hr = !0), v = v.queue, Es(Kc.bind(null, s, v, n), [n]), v.getSnapshot !== i || S || Ct !== null && Ct.memoizedState.tag & 1) {
      if (s.flags |= 2048, $o(9, qc.bind(null, s, v, g, i), void 0, null), vn === null)
        throw Error(u(349));
      We & 30 || qu(s, i, g);
    }
    return g;
  }
  function qu(n, i, s) {
    n.flags |= 16384, n = { getSnapshot: i, value: s }, i = Ze.updateQueue, i === null ? (i = { lastEffect: null, stores: null }, Ze.updateQueue = i, i.stores = [n]) : (s = i.stores, s === null ? i.stores = [n] : s.push(n));
  }
  function qc(n, i, s, v) {
    i.value = s, i.getSnapshot = v, ef(i) && tf(n);
  }
  function Kc(n, i, s) {
    return s(function() {
      ef(i) && tf(n);
    });
  }
  function ef(n) {
    var i = n.getSnapshot;
    n = n.value;
    try {
      var s = i();
      return !pa(n, s);
    } catch {
      return !0;
    }
  }
  function tf(n) {
    var i = Ni(n, 1);
    i !== null && on(i, n, 1, -1);
  }
  function nf(n) {
    var i = $e();
    return typeof n == "function" && (n = n()), i.memoizedState = i.baseState = n, n = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: na, lastRenderedState: n }, i.queue = n, n = n.dispatch = xs.bind(null, Ze, n), [i.memoizedState, n];
  }
  function $o(n, i, s, v) {
    return n = { tag: n, create: i, destroy: s, deps: v, next: null }, i = Ze.updateQueue, i === null ? (i = { lastEffect: null, stores: null }, Ze.updateQueue = i, i.lastEffect = n.next = n) : (s = i.lastEffect, s === null ? i.lastEffect = n.next = n : (v = s.next, s.next = n, n.next = v, i.lastEffect = n)), n;
  }
  function rf() {
    return Kn().memoizedState;
  }
  function Ku(n, i, s, v) {
    var g = $e();
    Ze.flags |= n, g.memoizedState = $o(1 | i, s, void 0, v === void 0 ? null : v);
  }
  function el(n, i, s, v) {
    var g = Kn();
    v = v === void 0 ? null : v;
    var S = void 0;
    if (ct !== null) {
      var I = ct.memoizedState;
      if (S = I.destroy, v !== null && Ss(v, I.deps)) {
        g.memoizedState = $o(i, s, S, v);
        return;
      }
    }
    Ze.flags |= n, g.memoizedState = $o(1 | i, s, S, v);
  }
  function af(n, i) {
    return Ku(8390656, 8, n, i);
  }
  function Es(n, i) {
    return el(2048, 8, n, i);
  }
  function of(n, i) {
    return el(4, 2, n, i);
  }
  function uf(n, i) {
    return el(4, 4, n, i);
  }
  function lf(n, i) {
    if (typeof i == "function")
      return n = n(), i(n), function() {
        i(null);
      };
    if (i != null)
      return n = n(), i.current = n, function() {
        i.current = null;
      };
  }
  function sf(n, i, s) {
    return s = s != null ? s.concat([n]) : null, el(4, 4, lf.bind(null, i, n), s);
  }
  function tl() {
  }
  function Qo(n, i) {
    var s = Kn();
    i = i === void 0 ? null : i;
    var v = s.memoizedState;
    return v !== null && i !== null && Ss(i, v[1]) ? v[0] : (s.memoizedState = [n, i], n);
  }
  function cf(n, i) {
    var s = Kn();
    i = i === void 0 ? null : i;
    var v = s.memoizedState;
    return v !== null && i !== null && Ss(i, v[1]) ? v[0] : (n = n(), s.memoizedState = [n, i], n);
  }
  function ff(n, i, s) {
    return We & 21 ? (pa(s, i) || (s = Cc(), Ze.lanes |= s, nu |= s, n.baseState = !0), i) : (n.baseState && (n.baseState = !1, Hr = !0), n.memoizedState = s);
  }
  function Rp(n, i) {
    var s = Ht;
    Ht = s !== 0 && 4 > s ? s : 4, n(!0);
    var v = bs.transition;
    bs.transition = {};
    try {
      n(!1), i();
    } finally {
      Ht = s, bs.transition = v;
    }
  }
  function df() {
    return Kn().memoizedState;
  }
  function Am(n, i, s) {
    var v = Fi(n);
    if (s = { lane: v, action: s, hasEagerState: !1, eagerState: null, next: null }, Tp(n))
      nl(i, s);
    else if (s = wm(n, i, s, v), s !== null) {
      var g = Un();
      on(s, n, v, g), co(s, i, v);
    }
  }
  function xs(n, i, s) {
    var v = Fi(n), g = { lane: v, action: s, hasEagerState: !1, eagerState: null, next: null };
    if (Tp(n))
      nl(i, g);
    else {
      var S = n.alternate;
      if (n.lanes === 0 && (S === null || S.lanes === 0) && (S = i.lastRenderedReducer, S !== null))
        try {
          var I = i.lastRenderedState, F = S(I, s);
          if (g.hasEagerState = !0, g.eagerState = F, pa(F, I)) {
            var _ = i.interleaved;
            _ === null ? (g.next = g, Tn(i)) : (g.next = _.next, _.next = g), i.interleaved = g;
            return;
          }
        } catch {
        } finally {
        }
      s = wm(n, i, g, v), s !== null && (g = Un(), on(s, n, v, g), co(s, i, v));
    }
  }
  function Tp(n) {
    var i = n.alternate;
    return n === Ze || i !== null && i === Ze;
  }
  function nl(n, i) {
    Qu = ta = !0;
    var s = n.pending;
    s === null ? i.next = i : (i.next = s.next, s.next = i), n.pending = i;
  }
  function co(n, i, s) {
    if (s & 4194240) {
      var v = i.lanes;
      v &= n.pendingLanes, s |= v, i.lanes = s, Yl(n, s);
    }
  }
  var pr = { readContext: Ca, useCallback: dr, useContext: dr, useEffect: dr, useImperativeHandle: dr, useInsertionEffect: dr, useLayoutEffect: dr, useMemo: dr, useReducer: dr, useRef: dr, useState: dr, useDebugValue: dr, useDeferredValue: dr, useTransition: dr, useMutableSource: dr, useSyncExternalStore: dr, useId: dr, unstable_isNewReconciler: !1 }, lb = { readContext: Ca, useCallback: function(n, i) {
    return $e().memoizedState = [n, i === void 0 ? null : i], n;
  }, useContext: Ca, useEffect: af, useImperativeHandle: function(n, i, s) {
    return s = s != null ? s.concat([n]) : null, Ku(
      4194308,
      4,
      lf.bind(null, i, n),
      s
    );
  }, useLayoutEffect: function(n, i) {
    return Ku(4194308, 4, n, i);
  }, useInsertionEffect: function(n, i) {
    return Ku(4, 2, n, i);
  }, useMemo: function(n, i) {
    var s = $e();
    return i = i === void 0 ? null : i, n = n(), s.memoizedState = [n, i], n;
  }, useReducer: function(n, i, s) {
    var v = $e();
    return i = s !== void 0 ? s(i) : i, v.memoizedState = v.baseState = i, n = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: n, lastRenderedState: i }, v.queue = n, n = n.dispatch = Am.bind(null, Ze, n), [v.memoizedState, n];
  }, useRef: function(n) {
    var i = $e();
    return n = { current: n }, i.memoizedState = n;
  }, useState: nf, useDebugValue: tl, useDeferredValue: function(n) {
    return $e().memoizedState = n;
  }, useTransition: function() {
    var n = nf(!1), i = n[0];
    return n = Rp.bind(null, n[1]), $e().memoizedState = n, [i, n];
  }, useMutableSource: function() {
  }, useSyncExternalStore: function(n, i, s) {
    var v = Ze, g = $e();
    if (qt) {
      if (s === void 0)
        throw Error(u(407));
      s = s();
    } else {
      if (s = i(), vn === null)
        throw Error(u(349));
      We & 30 || qu(v, i, s);
    }
    g.memoizedState = s;
    var S = { value: s, getSnapshot: i };
    return g.queue = S, af(Kc.bind(
      null,
      v,
      S,
      n
    ), [n]), v.flags |= 2048, $o(9, qc.bind(null, v, S, s, i), void 0, null), s;
  }, useId: function() {
    var n = $e(), i = vn.identifierPrefix;
    if (qt) {
      var s = Oi, v = qn;
      s = (v & ~(1 << 32 - ca(v) - 1)).toString(32) + s, i = ":" + i + "R" + s, s = Cs++, 0 < s && (i += "H" + s.toString(32)), i += ":";
    } else
      s = ub++, i = ":" + i + "r" + s.toString(32) + ":";
    return n.memoizedState = i;
  }, unstable_isNewReconciler: !1 }, Qt = {
    readContext: Ca,
    useCallback: Qo,
    useContext: Ca,
    useEffect: Es,
    useImperativeHandle: sf,
    useInsertionEffect: of,
    useLayoutEffect: uf,
    useMemo: cf,
    useReducer: ki,
    useRef: rf,
    useState: function() {
      return ki(na);
    },
    useDebugValue: tl,
    useDeferredValue: function(n) {
      var i = Kn();
      return ff(i, ct.memoizedState, n);
    },
    useTransition: function() {
      var n = ki(na)[0], i = Kn().memoizedState;
      return [n, i];
    },
    useMutableSource: Ju,
    useSyncExternalStore: Yo,
    useId: df,
    unstable_isNewReconciler: !1
  }, pf = { readContext: Ca, useCallback: Qo, useContext: Ca, useEffect: Es, useImperativeHandle: sf, useInsertionEffect: of, useLayoutEffect: uf, useMemo: cf, useReducer: Sa, useRef: rf, useState: function() {
    return Sa(na);
  }, useDebugValue: tl, useDeferredValue: function(n) {
    var i = Kn();
    return ct === null ? i.memoizedState = n : ff(i, ct.memoizedState, n);
  }, useTransition: function() {
    var n = Sa(na)[0], i = Kn().memoizedState;
    return [n, i];
  }, useMutableSource: Ju, useSyncExternalStore: Yo, useId: df, unstable_isNewReconciler: !1 };
  function Pr(n, i) {
    if (n && n.defaultProps) {
      i = Z({}, i), n = n.defaultProps;
      for (var s in n)
        i[s] === void 0 && (i[s] = n[s]);
      return i;
    }
    return i;
  }
  function Jo(n, i, s, v) {
    i = n.memoizedState, s = s(v, i), s = s == null ? i : Z({}, i, s), n.memoizedState = s, n.lanes === 0 && (n.updateQueue.baseState = s);
  }
  var qo = { isMounted: function(n) {
    return (n = n._reactInternals) ? ti(n) === n : !1;
  }, enqueueSetState: function(n, i, s) {
    n = n._reactInternals;
    var v = Un(), g = Fi(n), S = Vr(v, g);
    S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (on(i, n, g, v), Zc(i, n, g));
  }, enqueueReplaceState: function(n, i, s) {
    n = n._reactInternals;
    var v = Un(), g = Fi(n), S = Vr(v, g);
    S.tag = 1, S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (on(i, n, g, v), Zc(i, n, g));
  }, enqueueForceUpdate: function(n, i) {
    n = n._reactInternals;
    var s = Un(), v = Fi(n), g = Vr(s, v);
    g.tag = 2, i != null && (g.callback = i), i = so(n, g, v), i !== null && (on(i, n, v, s), Zc(i, n, v));
  } };
  function Om(n, i, s, v, g, S, I) {
    return n = n.stateNode, typeof n.shouldComponentUpdate == "function" ? n.shouldComponentUpdate(v, S, I) : i.prototype && i.prototype.isPureReactComponent ? !is(s, v) || !is(g, S) : !0;
  }
  function Dm(n, i, s) {
    var v = !1, g = ri, S = i.contextType;
    return typeof S == "object" && S !== null ? S = Ca(S) : (g = tn(i) ? kr : st.current, v = i.contextTypes, S = (v = v != null) ? ha(n, g) : ri), i = new i(s, S), n.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, i.updater = qo, n.stateNode = i, i._reactInternals = n, v && (n = n.stateNode, n.__reactInternalMemoizedUnmaskedChildContext = g, n.__reactInternalMemoizedMaskedChildContext = S), i;
  }
  function Nm(n, i, s, v) {
    n = i.state, typeof i.componentWillReceiveProps == "function" && i.componentWillReceiveProps(s, v), typeof i.UNSAFE_componentWillReceiveProps == "function" && i.UNSAFE_componentWillReceiveProps(s, v), i.state !== n && qo.enqueueReplaceState(i, i.state, null);
  }
  function Ip(n, i, s, v) {
    var g = n.stateNode;
    g.props = s, g.state = n.memoizedState, g.refs = {}, Xc(n);
    var S = i.contextType;
    typeof S == "object" && S !== null ? g.context = Ca(S) : (S = tn(i) ? kr : st.current, g.context = ha(n, S)), g.state = n.memoizedState, S = i.getDerivedStateFromProps, typeof S == "function" && (Jo(n, i, S, s), g.state = n.memoizedState), typeof i.getDerivedStateFromProps == "function" || typeof g.getSnapshotBeforeUpdate == "function" || typeof g.UNSAFE_componentWillMount != "function" && typeof g.componentWillMount != "function" || (i = g.state, typeof g.componentWillMount == "function" && g.componentWillMount(), typeof g.UNSAFE_componentWillMount == "function" && g.UNSAFE_componentWillMount(), i !== g.state && qo.enqueueReplaceState(g, g.state, null), Yc(n, s, g, v), g.state = n.memoizedState), typeof g.componentDidMount == "function" && (n.flags |= 4194308);
  }
  function fo(n, i) {
    try {
      var s = "", v = i;
      do
        s += Oe(v), v = v.return;
      while (v);
      var g = s;
    } catch (S) {
      g = `
Error generating stack: ` + S.message + `
` + S.stack;
    }
    return { value: n, source: i, stack: g, digest: null };
  }
  function Ap(n, i, s) {
    return { value: n, source: null, stack: s ?? null, digest: i ?? null };
  }
  function ws(n, i) {
    try {
      console.error(i.value);
    } catch (s) {
      setTimeout(function() {
        throw s;
      });
    }
  }
  var km = typeof WeakMap == "function" ? WeakMap : Map;
  function Mm(n, i, s) {
    s = Vr(-1, s), s.tag = 3, s.payload = { element: null };
    var v = i.value;
    return s.callback = function() {
      Rf || (Rf = !0, Vp = v), ws(n, i);
    }, s;
  }
  function Lm(n, i, s) {
    s = Vr(-1, s), s.tag = 3;
    var v = n.type.getDerivedStateFromError;
    if (typeof v == "function") {
      var g = i.value;
      s.payload = function() {
        return v(g);
      }, s.callback = function() {
        ws(n, i);
      };
    }
    var S = n.stateNode;
    return S !== null && typeof S.componentDidCatch == "function" && (s.callback = function() {
      ws(n, i), typeof v != "function" && (wa === null ? wa = /* @__PURE__ */ new Set([this]) : wa.add(this));
      var I = i.stack;
      this.componentDidCatch(i.value, { componentStack: I !== null ? I : "" });
    }), s;
  }
  function Rs(n, i, s) {
    var v = n.pingCache;
    if (v === null) {
      v = n.pingCache = new km();
      var g = /* @__PURE__ */ new Set();
      v.set(i, g);
    } else
      g = v.get(i), g === void 0 && (g = /* @__PURE__ */ new Set(), v.set(i, g));
    g.has(s) || (g.add(s), n = yb.bind(null, n, i, s), i.then(n, n));
  }
  function Fm(n) {
    do {
      var i;
      if ((i = n.tag === 13) && (i = n.memoizedState, i = i !== null ? i.dehydrated !== null : !0), i)
        return n;
      n = n.return;
    } while (n !== null);
    return null;
  }
  function Op(n, i, s, v, g) {
    return n.mode & 1 ? (n.flags |= 65536, n.lanes = g, n) : (n === i ? n.flags |= 65536 : (n.flags |= 128, s.flags |= 131072, s.flags &= -52805, s.tag === 1 && (s.alternate === null ? s.tag = 17 : (i = Vr(-1, 1), i.tag = 2, so(s, i, 1))), s.lanes |= 1), n);
  }
  var Bm = z.ReactCurrentOwner, Hr = !1;
  function yn(n, i, s, v) {
    i.child = n === null ? xm(i, null, s, v) : Wu(i, n.child, s, v);
  }
  function rl(n, i, s, v, g) {
    s = s.render;
    var S = i.ref;
    return Xu(i, g), v = ce(n, i, s, v, S, g), s = In(), n !== null && !Hr ? (i.updateQueue = n.updateQueue, i.flags &= -2053, n.lanes &= ~g, bn(n, i, g)) : (qt && s && _c(i), i.flags |= 1, yn(n, i, v, g), i.child);
  }
  function po(n, i, s, v, g) {
    if (n === null) {
      var S = s.type;
      return typeof S == "function" && !Gp(S) && S.defaultProps === void 0 && s.compare === null && s.defaultProps === void 0 ? (i.tag = 15, i.type = S, vf(n, i, S, v, g)) : (n = Nf(s.type, null, v, i, i.mode, g), n.ref = i.ref, n.return = i, i.child = n);
    }
    if (S = n.child, !(n.lanes & g)) {
      var I = S.memoizedProps;
      if (s = s.compare, s = s !== null ? s : is, s(I, v) && n.ref === i.ref)
        return bn(n, i, g);
    }
    return i.flags |= 1, n = mo(S, v), n.ref = i.ref, n.return = i, i.child = n;
  }
  function vf(n, i, s, v, g) {
    if (n !== null) {
      var S = n.memoizedProps;
      if (is(S, v) && n.ref === i.ref)
        if (Hr = !1, i.pendingProps = v = S, (n.lanes & g) !== 0)
          n.flags & 131072 && (Hr = !0);
        else
          return i.lanes = n.lanes, bn(n, i, g);
    }
    return gt(n, i, s, v, g);
  }
  function _r(n, i, s) {
    var v = i.pendingProps, g = v.children, S = n !== null ? n.memoizedState : null;
    if (v.mode === "hidden")
      if (!(i.mode & 1))
        i.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, Ft(pl, zr), zr |= s;
      else {
        if (!(s & 1073741824))
          return n = S !== null ? S.baseLanes | s : s, i.lanes = i.childLanes = 1073741824, i.memoizedState = { baseLanes: n, cachePool: null, transitions: null }, i.updateQueue = null, Ft(pl, zr), zr |= n, null;
        i.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, v = S !== null ? S.baseLanes : s, Ft(pl, zr), zr |= v;
      }
    else
      S !== null ? (v = S.baseLanes | s, i.memoizedState = null) : v = s, Ft(pl, zr), zr |= v;
    return yn(n, i, g, s), i.child;
  }
  function Ko(n, i) {
    var s = i.ref;
    (n === null && s !== null || n !== null && n.ref !== s) && (i.flags |= 512, i.flags |= 2097152);
  }
  function gt(n, i, s, v, g) {
    var S = tn(s) ? kr : st.current;
    return S = ha(i, S), Xu(i, g), s = ce(n, i, s, v, S, g), v = In(), n !== null && !Hr ? (i.updateQueue = n.updateQueue, i.flags &= -2053, n.lanes &= ~g, bn(n, i, g)) : (qt && v && _c(i), i.flags |= 1, yn(n, i, s, g), i.child);
  }
  function Ts(n, i, s, v, g) {
    if (tn(s)) {
      var S = !0;
      Hc(i);
    } else
      S = !1;
    if (Xu(i, g), i.stateNode === null)
      As(n, i), Dm(i, s, v), Ip(i, s, v, g), v = !0;
    else if (n === null) {
      var I = i.stateNode, F = i.memoizedProps;
      I.props = F;
      var _ = I.context, te = s.contextType;
      typeof te == "object" && te !== null ? te = Ca(te) : (te = tn(s) ? kr : st.current, te = ha(i, te));
      var pe = s.getDerivedStateFromProps, ve = typeof pe == "function" || typeof I.getSnapshotBeforeUpdate == "function";
      ve || typeof I.UNSAFE_componentWillReceiveProps != "function" && typeof I.componentWillReceiveProps != "function" || (F !== v || _ !== te) && Nm(i, I, v, te), lo = !1;
      var fe = i.memoizedState;
      I.state = fe, Yc(i, v, I, g), _ = i.memoizedState, F !== v || fe !== _ || dn.current || lo ? (typeof pe == "function" && (Jo(i, s, pe, v), _ = i.memoizedState), (F = lo || Om(i, s, F, v, fe, _, te)) ? (ve || typeof I.UNSAFE_componentWillMount != "function" && typeof I.componentWillMount != "function" || (typeof I.componentWillMount == "function" && I.componentWillMount(), typeof I.UNSAFE_componentWillMount == "function" && I.UNSAFE_componentWillMount()), typeof I.componentDidMount == "function" && (i.flags |= 4194308)) : (typeof I.componentDidMount == "function" && (i.flags |= 4194308), i.memoizedProps = v, i.memoizedState = _), I.props = v, I.state = _, I.context = te, v = F) : (typeof I.componentDidMount == "function" && (i.flags |= 4194308), v = !1);
    } else {
      I = i.stateNode, Zu(n, i), F = i.memoizedProps, te = i.type === i.elementType ? F : Pr(i.type, F), I.props = te, ve = i.pendingProps, fe = I.context, _ = s.contextType, typeof _ == "object" && _ !== null ? _ = Ca(_) : (_ = tn(s) ? kr : st.current, _ = ha(i, _));
      var Le = s.getDerivedStateFromProps;
      (pe = typeof Le == "function" || typeof I.getSnapshotBeforeUpdate == "function") || typeof I.UNSAFE_componentWillReceiveProps != "function" && typeof I.componentWillReceiveProps != "function" || (F !== ve || fe !== _) && Nm(i, I, v, _), lo = !1, fe = i.memoizedState, I.state = fe, Yc(i, v, I, g);
      var He = i.memoizedState;
      F !== ve || fe !== He || dn.current || lo ? (typeof Le == "function" && (Jo(i, s, Le, v), He = i.memoizedState), (te = lo || Om(i, s, te, v, fe, He, _) || !1) ? (pe || typeof I.UNSAFE_componentWillUpdate != "function" && typeof I.componentWillUpdate != "function" || (typeof I.componentWillUpdate == "function" && I.componentWillUpdate(v, He, _), typeof I.UNSAFE_componentWillUpdate == "function" && I.UNSAFE_componentWillUpdate(v, He, _)), typeof I.componentDidUpdate == "function" && (i.flags |= 4), typeof I.getSnapshotBeforeUpdate == "function" && (i.flags |= 1024)) : (typeof I.componentDidUpdate != "function" || F === n.memoizedProps && fe === n.memoizedState || (i.flags |= 4), typeof I.getSnapshotBeforeUpdate != "function" || F === n.memoizedProps && fe === n.memoizedState || (i.flags |= 1024), i.memoizedProps = v, i.memoizedState = He), I.props = v, I.state = He, I.context = _, v = te) : (typeof I.componentDidUpdate != "function" || F === n.memoizedProps && fe === n.memoizedState || (i.flags |= 4), typeof I.getSnapshotBeforeUpdate != "function" || F === n.memoizedProps && fe === n.memoizedState || (i.flags |= 1024), v = !1);
    }
    return hf(n, i, s, v, S, g);
  }
  function hf(n, i, s, v, g, S) {
    Ko(n, i);
    var I = (i.flags & 128) !== 0;
    if (!v && !I)
      return g && ym(i, s, !1), bn(n, i, S);
    v = i.stateNode, Bm.current = i;
    var F = I && typeof s.getDerivedStateFromError != "function" ? null : v.render();
    return i.flags |= 1, n !== null && I ? (i.child = Wu(i, n.child, null, S), i.child = Wu(i, null, F, S)) : yn(n, i, F, S), i.memoizedState = v.state, g && ym(i, s, !0), i.child;
  }
  function sb(n) {
    var i = n.stateNode;
    i.pendingContext ? oo(n, i.pendingContext, i.pendingContext !== i.context) : i.context && oo(n, i.context, !1), Ep(n, i.containerInfo);
  }
  function Vm(n, i, s, v, g) {
    return an(), bp(g), i.flags |= 256, yn(n, i, s, v), i.child;
  }
  var Is = { dehydrated: null, treeContext: null, retryLane: 0 };
  function eu(n) {
    return { baseLanes: n, cachePool: null, transitions: null };
  }
  function Pm(n, i, s) {
    var v = i.pendingProps, g = nn.current, S = !1, I = (i.flags & 128) !== 0, F;
    if ((F = I) || (F = n !== null && n.memoizedState === null ? !1 : (g & 2) !== 0), F ? (S = !0, i.flags &= -129) : (n === null || n.memoizedState !== null) && (g |= 1), Ft(nn, g & 1), n === null)
      return Gc(i), n = i.memoizedState, n !== null && (n = n.dehydrated, n !== null) ? (i.mode & 1 ? n.data === "$!" ? i.lanes = 8 : i.lanes = 1073741824 : i.lanes = 1, null) : (I = v.children, n = v.fallback, S ? (v = i.mode, S = i.child, I = { mode: "hidden", children: I }, !(v & 1) && S !== null ? (S.childLanes = 0, S.pendingProps = I) : S = kf(I, v, 0, null), n = ou(n, v, s, null), S.return = i, n.return = i, S.sibling = n, i.child = S, i.child.memoizedState = eu(s), i.memoizedState = Is, n) : mf(i, I));
    if (g = n.memoizedState, g !== null && (F = g.dehydrated, F !== null))
      return Dp(n, i, I, v, F, g, s);
    if (S) {
      S = v.fallback, I = i.mode, g = n.child, F = g.sibling;
      var _ = { mode: "hidden", children: v.children };
      return !(I & 1) && i.child !== g ? (v = i.child, v.childLanes = 0, v.pendingProps = _, i.deletions = null) : (v = mo(g, _), v.subtreeFlags = g.subtreeFlags & 14680064), F !== null ? S = mo(F, S) : (S = ou(S, I, s, null), S.flags |= 2), S.return = i, v.return = i, v.sibling = S, i.child = v, v = S, S = i.child, I = n.child.memoizedState, I = I === null ? eu(s) : { baseLanes: I.baseLanes | s, cachePool: null, transitions: I.transitions }, S.memoizedState = I, S.childLanes = n.childLanes & ~s, i.memoizedState = Is, v;
    }
    return S = n.child, n = S.sibling, v = mo(S, { mode: "visible", children: v.children }), !(i.mode & 1) && (v.lanes = s), v.return = i, v.sibling = null, n !== null && (s = i.deletions, s === null ? (i.deletions = [n], i.flags |= 16) : s.push(n)), i.child = v, i.memoizedState = null, v;
  }
  function mf(n, i) {
    return i = kf({ mode: "visible", children: i }, n.mode, 0, null), i.return = n, n.child = i;
  }
  function gf(n, i, s, v) {
    return v !== null && bp(v), Wu(i, n.child, null, s), n = mf(i, i.pendingProps.children), n.flags |= 2, i.memoizedState = null, n;
  }
  function Dp(n, i, s, v, g, S, I) {
    if (s)
      return i.flags & 256 ? (i.flags &= -257, v = Ap(Error(u(422))), gf(n, i, I, v)) : i.memoizedState !== null ? (i.child = n.child, i.flags |= 128, null) : (S = v.fallback, g = i.mode, v = kf({ mode: "visible", children: v.children }, g, 0, null), S = ou(S, g, I, null), S.flags |= 2, v.return = i, S.return = i, v.sibling = S, i.child = v, i.mode & 1 && Wu(i, n.child, null, I), i.child.memoizedState = eu(I), i.memoizedState = Is, S);
    if (!(i.mode & 1))
      return gf(n, i, I, null);
    if (g.data === "$!") {
      if (v = g.nextSibling && g.nextSibling.dataset, v)
        var F = v.dgst;
      return v = F, S = Error(u(419)), v = Ap(S, v, void 0), gf(n, i, I, v);
    }
    if (F = (I & n.childLanes) !== 0, Hr || F) {
      if (v = vn, v !== null) {
        switch (I & -I) {
          case 4:
            g = 2;
            break;
          case 16:
            g = 8;
            break;
          case 64:
          case 128:
          case 256:
          case 512:
          case 1024:
          case 2048:
          case 4096:
          case 8192:
          case 16384:
          case 32768:
          case 65536:
          case 131072:
          case 262144:
          case 524288:
          case 1048576:
          case 2097152:
          case 4194304:
          case 8388608:
          case 16777216:
          case 33554432:
          case 67108864:
            g = 32;
            break;
          case 536870912:
            g = 268435456;
            break;
          default:
            g = 0;
        }
        g = g & (v.suspendedLanes | I) ? 0 : g, g !== 0 && g !== S.retryLane && (S.retryLane = g, Ni(n, g), on(v, n, g, -1));
      }
      return Ms(), v = Ap(Error(u(421))), gf(n, i, I, v);
    }
    return g.data === "$?" ? (i.flags |= 128, i.child = n.child, i = zp.bind(null, n), g._reactRetry = i, null) : (n = S.treeContext, Br = Xa(g.nextSibling), Kr = i, qt = !0, ya = null, n !== null && (Fr[fr++] = qn, Fr[fr++] = Oi, Fr[fr++] = ga, qn = n.id, Oi = n.overflow, ga = i), i = mf(i, v.children), i.flags |= 4096, i);
  }
  function Hm(n, i, s) {
    n.lanes |= i;
    var v = n.alternate;
    v !== null && (v.lanes |= i), Sp(n.return, i, s);
  }
  function yf(n, i, s, v, g) {
    var S = n.memoizedState;
    S === null ? n.memoizedState = { isBackwards: i, rendering: null, renderingStartTime: 0, last: v, tail: s, tailMode: g } : (S.isBackwards = i, S.rendering = null, S.renderingStartTime = 0, S.last = v, S.tail = s, S.tailMode = g);
  }
  function Np(n, i, s) {
    var v = i.pendingProps, g = v.revealOrder, S = v.tail;
    if (yn(n, i, v.children, s), v = nn.current, v & 2)
      v = v & 1 | 2, i.flags |= 128;
    else {
      if (n !== null && n.flags & 128)
        e:
          for (n = i.child; n !== null; ) {
            if (n.tag === 13)
              n.memoizedState !== null && Hm(n, s, i);
            else if (n.tag === 19)
              Hm(n, s, i);
            else if (n.child !== null) {
              n.child.return = n, n = n.child;
              continue;
            }
            if (n === i)
              break e;
            for (; n.sibling === null; ) {
              if (n.return === null || n.return === i)
                break e;
              n = n.return;
            }
            n.sibling.return = n.return, n = n.sibling;
          }
      v &= 1;
    }
    if (Ft(nn, v), !(i.mode & 1))
      i.memoizedState = null;
    else
      switch (g) {
        case "forwards":
          for (s = i.child, g = null; s !== null; )
            n = s.alternate, n !== null && $c(n) === null && (g = s), s = s.sibling;
          s = g, s === null ? (g = i.child, i.child = null) : (g = s.sibling, s.sibling = null), yf(i, !1, g, s, S);
          break;
        case "backwards":
          for (s = null, g = i.child, i.child = null; g !== null; ) {
            if (n = g.alternate, n !== null && $c(n) === null) {
              i.child = g;
              break;
            }
            n = g.sibling, g.sibling = s, s = g, g = n;
          }
          yf(i, !0, s, null, S);
          break;
        case "together":
          yf(i, !1, null, null, void 0);
          break;
        default:
          i.memoizedState = null;
      }
    return i.child;
  }
  function As(n, i) {
    !(i.mode & 1) && n !== null && (n.alternate = null, i.alternate = null, i.flags |= 2);
  }
  function bn(n, i, s) {
    if (n !== null && (i.dependencies = n.dependencies), nu |= i.lanes, !(s & i.childLanes))
      return null;
    if (n !== null && i.child !== n.child)
      throw Error(u(153));
    if (i.child !== null) {
      for (n = i.child, s = mo(n, n.pendingProps), i.child = s, s.return = i; n.sibling !== null; )
        n = n.sibling, s = s.sibling = mo(n, n.pendingProps), s.return = i;
      s.sibling = null;
    }
    return i.child;
  }
  function Mi(n, i, s) {
    switch (i.tag) {
      case 3:
        sb(i), an();
        break;
      case 5:
        Im(i);
        break;
      case 1:
        tn(i.type) && Hc(i);
        break;
      case 4:
        Ep(i, i.stateNode.containerInfo);
        break;
      case 10:
        var v = i.type._context, g = i.memoizedProps.value;
        Ft(Di, v._currentValue), v._currentValue = g;
        break;
      case 13:
        if (v = i.memoizedState, v !== null)
          return v.dehydrated !== null ? (Ft(nn, nn.current & 1), i.flags |= 128, null) : s & i.child.childLanes ? Pm(n, i, s) : (Ft(nn, nn.current & 1), n = bn(n, i, s), n !== null ? n.sibling : null);
        Ft(nn, nn.current & 1);
        break;
      case 19:
        if (v = (s & i.childLanes) !== 0, n.flags & 128) {
          if (v)
            return Np(n, i, s);
          i.flags |= 128;
        }
        if (g = i.memoizedState, g !== null && (g.rendering = null, g.tail = null, g.lastEffect = null), Ft(nn, nn.current), v)
          break;
        return null;
      case 22:
      case 23:
        return i.lanes = 0, _r(n, i, s);
    }
    return bn(n, i, s);
  }
  var ii, al, il, Ea;
  ii = function(n, i) {
    for (var s = i.child; s !== null; ) {
      if (s.tag === 5 || s.tag === 6)
        n.appendChild(s.stateNode);
      else if (s.tag !== 4 && s.child !== null) {
        s.child.return = s, s = s.child;
        continue;
      }
      if (s === i)
        break;
      for (; s.sibling === null; ) {
        if (s.return === null || s.return === i)
          return;
        s = s.return;
      }
      s.sibling.return = s.return, s = s.sibling;
    }
  }, al = function() {
  }, il = function(n, i, s, v) {
    var g = n.memoizedProps;
    if (g !== v) {
      n = i.stateNode, Zo(Za.current);
      var S = null;
      switch (s) {
        case "input":
          g = Pt(n, g), v = Pt(n, v), S = [];
          break;
        case "select":
          g = Z({}, g, { value: void 0 }), v = Z({}, v, { value: void 0 }), S = [];
          break;
        case "textarea":
          g = Ka(n, g), v = Ka(n, v), S = [];
          break;
        default:
          typeof g.onClick != "function" && typeof v.onClick == "function" && (n.onclick = Pc);
      }
      sr(s, v);
      var I;
      s = null;
      for (te in g)
        if (!v.hasOwnProperty(te) && g.hasOwnProperty(te) && g[te] != null)
          if (te === "style") {
            var F = g[te];
            for (I in F)
              F.hasOwnProperty(I) && (s || (s = {}), s[I] = "");
          } else
            te !== "dangerouslySetInnerHTML" && te !== "children" && te !== "suppressContentEditableWarning" && te !== "suppressHydrationWarning" && te !== "autoFocus" && (c.hasOwnProperty(te) ? S || (S = []) : (S = S || []).push(te, null));
      for (te in v) {
        var _ = v[te];
        if (F = g != null ? g[te] : void 0, v.hasOwnProperty(te) && _ !== F && (_ != null || F != null))
          if (te === "style")
            if (F) {
              for (I in F)
                !F.hasOwnProperty(I) || _ && _.hasOwnProperty(I) || (s || (s = {}), s[I] = "");
              for (I in _)
                _.hasOwnProperty(I) && F[I] !== _[I] && (s || (s = {}), s[I] = _[I]);
            } else
              s || (S || (S = []), S.push(
                te,
                s
              )), s = _;
          else
            te === "dangerouslySetInnerHTML" ? (_ = _ ? _.__html : void 0, F = F ? F.__html : void 0, _ != null && F !== _ && (S = S || []).push(te, _)) : te === "children" ? typeof _ != "string" && typeof _ != "number" || (S = S || []).push(te, "" + _) : te !== "suppressContentEditableWarning" && te !== "suppressHydrationWarning" && (c.hasOwnProperty(te) ? (_ != null && te === "onScroll" && $t("scroll", n), S || F === _ || (S = [])) : (S = S || []).push(te, _));
      }
      s && (S = S || []).push("style", s);
      var te = S;
      (i.updateQueue = te) && (i.flags |= 4);
    }
  }, Ea = function(n, i, s, v) {
    s !== v && (i.flags |= 4);
  };
  function pn(n, i) {
    if (!qt)
      switch (n.tailMode) {
        case "hidden":
          i = n.tail;
          for (var s = null; i !== null; )
            i.alternate !== null && (s = i), i = i.sibling;
          s === null ? n.tail = null : s.sibling = null;
          break;
        case "collapsed":
          s = n.tail;
          for (var v = null; s !== null; )
            s.alternate !== null && (v = s), s = s.sibling;
          v === null ? i || n.tail === null ? n.tail = null : n.tail.sibling = null : v.sibling = null;
      }
  }
  function vr(n) {
    var i = n.alternate !== null && n.alternate.child === n.child, s = 0, v = 0;
    if (i)
      for (var g = n.child; g !== null; )
        s |= g.lanes | g.childLanes, v |= g.subtreeFlags & 14680064, v |= g.flags & 14680064, g.return = n, g = g.sibling;
    else
      for (g = n.child; g !== null; )
        s |= g.lanes | g.childLanes, v |= g.subtreeFlags, v |= g.flags, g.return = n, g = g.sibling;
    return n.subtreeFlags |= v, n.childLanes = s, i;
  }
  function cb(n, i, s) {
    var v = i.pendingProps;
    switch (gp(i), i.tag) {
      case 2:
      case 16:
      case 15:
      case 0:
      case 11:
      case 7:
      case 8:
      case 12:
      case 9:
      case 14:
        return vr(i), null;
      case 1:
        return tn(i.type) && ma(), vr(i), null;
      case 3:
        return v = i.stateNode, $u(), Lt(dn), Lt(st), wp(), v.pendingContext && (v.context = v.pendingContext, v.pendingContext = null), (n === null || n.child === null) && (jc(i) ? i.flags |= 4 : n === null || n.memoizedState.isDehydrated && !(i.flags & 256) || (i.flags |= 1024, ya !== null && (Pp(ya), ya = null))), al(n, i), vr(i), null;
      case 5:
        xp(i);
        var g = Zo(ys.current);
        if (s = i.type, n !== null && i.stateNode != null)
          il(n, i, s, v, g), n.ref !== i.ref && (i.flags |= 512, i.flags |= 2097152);
        else {
          if (!v) {
            if (i.stateNode === null)
              throw Error(u(166));
            return vr(i), null;
          }
          if (n = Zo(Za.current), jc(i)) {
            v = i.stateNode, s = i.type;
            var S = i.memoizedProps;
            switch (v[ni] = i, v[jo] = S, n = (i.mode & 1) !== 0, s) {
              case "dialog":
                $t("cancel", v), $t("close", v);
                break;
              case "iframe":
              case "object":
              case "embed":
                $t("load", v);
                break;
              case "video":
              case "audio":
                for (g = 0; g < ss.length; g++)
                  $t(ss[g], v);
                break;
              case "source":
                $t("error", v);
                break;
              case "img":
              case "image":
              case "link":
                $t(
                  "error",
                  v
                ), $t("load", v);
                break;
              case "details":
                $t("toggle", v);
                break;
              case "input":
                bt(v, S), $t("invalid", v);
                break;
              case "select":
                v._wrapperState = { wasMultiple: !!S.multiple }, $t("invalid", v);
                break;
              case "textarea":
                Or(v, S), $t("invalid", v);
            }
            sr(s, S), g = null;
            for (var I in S)
              if (S.hasOwnProperty(I)) {
                var F = S[I];
                I === "children" ? typeof F == "string" ? v.textContent !== F && (S.suppressHydrationWarning !== !0 && Vc(v.textContent, F, n), g = ["children", F]) : typeof F == "number" && v.textContent !== "" + F && (S.suppressHydrationWarning !== !0 && Vc(
                  v.textContent,
                  F,
                  n
                ), g = ["children", "" + F]) : c.hasOwnProperty(I) && F != null && I === "onScroll" && $t("scroll", v);
              }
            switch (s) {
              case "input":
                Rt(v), Pa(v, S, !0);
                break;
              case "textarea":
                Rt(v), $r(v);
                break;
              case "select":
              case "option":
                break;
              default:
                typeof S.onClick == "function" && (v.onclick = Pc);
            }
            v = g, i.updateQueue = v, v !== null && (i.flags |= 4);
          } else {
            I = g.nodeType === 9 ? g : g.ownerDocument, n === "http://www.w3.org/1999/xhtml" && (n = Ha(s)), n === "http://www.w3.org/1999/xhtml" ? s === "script" ? (n = I.createElement("div"), n.innerHTML = "<script><\/script>", n = n.removeChild(n.firstChild)) : typeof v.is == "string" ? n = I.createElement(s, { is: v.is }) : (n = I.createElement(s), s === "select" && (I = n, v.multiple ? I.multiple = !0 : v.size && (I.size = v.size))) : n = I.createElementNS(n, s), n[ni] = i, n[jo] = v, ii(n, i, !1, !1), i.stateNode = n;
            e: {
              switch (I = Dn(s, v), s) {
                case "dialog":
                  $t("cancel", n), $t("close", n), g = v;
                  break;
                case "iframe":
                case "object":
                case "embed":
                  $t("load", n), g = v;
                  break;
                case "video":
                case "audio":
                  for (g = 0; g < ss.length; g++)
                    $t(ss[g], n);
                  g = v;
                  break;
                case "source":
                  $t("error", n), g = v;
                  break;
                case "img":
                case "image":
                case "link":
                  $t(
                    "error",
                    n
                  ), $t("load", n), g = v;
                  break;
                case "details":
                  $t("toggle", n), g = v;
                  break;
                case "input":
                  bt(n, v), g = Pt(n, v), $t("invalid", n);
                  break;
                case "option":
                  g = v;
                  break;
                case "select":
                  n._wrapperState = { wasMultiple: !!v.multiple }, g = Z({}, v, { value: void 0 }), $t("invalid", n);
                  break;
                case "textarea":
                  Or(n, v), g = Ka(n, v), $t("invalid", n);
                  break;
                default:
                  g = v;
              }
              sr(s, g), F = g;
              for (S in F)
                if (F.hasOwnProperty(S)) {
                  var _ = F[S];
                  S === "style" ? Yt(n, _) : S === "dangerouslySetInnerHTML" ? (_ = _ ? _.__html : void 0, _ != null && jl(n, _)) : S === "children" ? typeof _ == "string" ? (s !== "textarea" || _ !== "") && Ji(n, _) : typeof _ == "number" && Ji(n, "" + _) : S !== "suppressContentEditableWarning" && S !== "suppressHydrationWarning" && S !== "autoFocus" && (c.hasOwnProperty(S) ? _ != null && S === "onScroll" && $t("scroll", n) : _ != null && H(n, S, _, I));
                }
              switch (s) {
                case "input":
                  Rt(n), Pa(n, v, !1);
                  break;
                case "textarea":
                  Rt(n), $r(n);
                  break;
                case "option":
                  v.value != null && n.setAttribute("value", "" + Pe(v.value));
                  break;
                case "select":
                  n.multiple = !!v.multiple, S = v.value, S != null ? Yr(n, !!v.multiple, S, !1) : v.defaultValue != null && Yr(
                    n,
                    !!v.multiple,
                    v.defaultValue,
                    !0
                  );
                  break;
                default:
                  typeof g.onClick == "function" && (n.onclick = Pc);
              }
              switch (s) {
                case "button":
                case "input":
                case "select":
                case "textarea":
                  v = !!v.autoFocus;
                  break e;
                case "img":
                  v = !0;
                  break e;
                default:
                  v = !1;
              }
            }
            v && (i.flags |= 4);
          }
          i.ref !== null && (i.flags |= 512, i.flags |= 2097152);
        }
        return vr(i), null;
      case 6:
        if (n && i.stateNode != null)
          Ea(n, i, n.memoizedProps, v);
        else {
          if (typeof v != "string" && i.stateNode === null)
            throw Error(u(166));
          if (s = Zo(ys.current), Zo(Za.current), jc(i)) {
            if (v = i.stateNode, s = i.memoizedProps, v[ni] = i, (S = v.nodeValue !== s) && (n = Kr, n !== null))
              switch (n.tag) {
                case 3:
                  Vc(v.nodeValue, s, (n.mode & 1) !== 0);
                  break;
                case 5:
                  n.memoizedProps.suppressHydrationWarning !== !0 && Vc(v.nodeValue, s, (n.mode & 1) !== 0);
              }
            S && (i.flags |= 4);
          } else
            v = (s.nodeType === 9 ? s : s.ownerDocument).createTextNode(v), v[ni] = i, i.stateNode = v;
        }
        return vr(i), null;
      case 13:
        if (Lt(nn), v = i.memoizedState, n === null || n.memoizedState !== null && n.memoizedState.dehydrated !== null) {
          if (qt && Br !== null && i.mode & 1 && !(i.flags & 128))
            Sm(), an(), i.flags |= 98560, S = !1;
          else if (S = jc(i), v !== null && v.dehydrated !== null) {
            if (n === null) {
              if (!S)
                throw Error(u(318));
              if (S = i.memoizedState, S = S !== null ? S.dehydrated : null, !S)
                throw Error(u(317));
              S[ni] = i;
            } else
              an(), !(i.flags & 128) && (i.memoizedState = null), i.flags |= 4;
            vr(i), S = !1;
          } else
            ya !== null && (Pp(ya), ya = null), S = !0;
          if (!S)
            return i.flags & 65536 ? i : null;
        }
        return i.flags & 128 ? (i.lanes = s, i) : (v = v !== null, v !== (n !== null && n.memoizedState !== null) && v && (i.child.flags |= 8192, i.mode & 1 && (n === null || nn.current & 1 ? Ln === 0 && (Ln = 3) : Ms())), i.updateQueue !== null && (i.flags |= 4), vr(i), null);
      case 4:
        return $u(), al(n, i), n === null && Gu(i.stateNode.containerInfo), vr(i), null;
      case 10:
        return Cp(i.type._context), vr(i), null;
      case 17:
        return tn(i.type) && ma(), vr(i), null;
      case 19:
        if (Lt(nn), S = i.memoizedState, S === null)
          return vr(i), null;
        if (v = (i.flags & 128) !== 0, I = S.rendering, I === null)
          if (v)
            pn(S, !1);
          else {
            if (Ln !== 0 || n !== null && n.flags & 128)
              for (n = i.child; n !== null; ) {
                if (I = $c(n), I !== null) {
                  for (i.flags |= 128, pn(S, !1), v = I.updateQueue, v !== null && (i.updateQueue = v, i.flags |= 4), i.subtreeFlags = 0, v = s, s = i.child; s !== null; )
                    S = s, n = v, S.flags &= 14680066, I = S.alternate, I === null ? (S.childLanes = 0, S.lanes = n, S.child = null, S.subtreeFlags = 0, S.memoizedProps = null, S.memoizedState = null, S.updateQueue = null, S.dependencies = null, S.stateNode = null) : (S.childLanes = I.childLanes, S.lanes = I.lanes, S.child = I.child, S.subtreeFlags = 0, S.deletions = null, S.memoizedProps = I.memoizedProps, S.memoizedState = I.memoizedState, S.updateQueue = I.updateQueue, S.type = I.type, n = I.dependencies, S.dependencies = n === null ? null : { lanes: n.lanes, firstContext: n.firstContext }), s = s.sibling;
                  return Ft(nn, nn.current & 1 | 2), i.child;
                }
                n = n.sibling;
              }
            S.tail !== null && fn() > hl && (i.flags |= 128, v = !0, pn(S, !1), i.lanes = 4194304);
          }
        else {
          if (!v)
            if (n = $c(I), n !== null) {
              if (i.flags |= 128, v = !0, s = n.updateQueue, s !== null && (i.updateQueue = s, i.flags |= 4), pn(S, !0), S.tail === null && S.tailMode === "hidden" && !I.alternate && !qt)
                return vr(i), null;
            } else
              2 * fn() - S.renderingStartTime > hl && s !== 1073741824 && (i.flags |= 128, v = !0, pn(S, !1), i.lanes = 4194304);
          S.isBackwards ? (I.sibling = i.child, i.child = I) : (s = S.last, s !== null ? s.sibling = I : i.child = I, S.last = I);
        }
        return S.tail !== null ? (i = S.tail, S.rendering = i, S.tail = i.sibling, S.renderingStartTime = fn(), i.sibling = null, s = nn.current, Ft(nn, v ? s & 1 | 2 : s & 1), i) : (vr(i), null);
      case 22:
      case 23:
        return Of(), v = i.memoizedState !== null, n !== null && n.memoizedState !== null !== v && (i.flags |= 8192), v && i.mode & 1 ? zr & 1073741824 && (vr(i), i.subtreeFlags & 6 && (i.flags |= 8192)) : vr(i), null;
      case 24:
        return null;
      case 25:
        return null;
    }
    throw Error(u(156, i.tag));
  }
  function fb(n, i) {
    switch (gp(i), i.tag) {
      case 1:
        return tn(i.type) && ma(), n = i.flags, n & 65536 ? (i.flags = n & -65537 | 128, i) : null;
      case 3:
        return $u(), Lt(dn), Lt(st), wp(), n = i.flags, n & 65536 && !(n & 128) ? (i.flags = n & -65537 | 128, i) : null;
      case 5:
        return xp(i), null;
      case 13:
        if (Lt(nn), n = i.memoizedState, n !== null && n.dehydrated !== null) {
          if (i.alternate === null)
            throw Error(u(340));
          an();
        }
        return n = i.flags, n & 65536 ? (i.flags = n & -65537 | 128, i) : null;
      case 19:
        return Lt(nn), null;
      case 4:
        return $u(), null;
      case 10:
        return Cp(i.type._context), null;
      case 22:
      case 23:
        return Of(), null;
      case 24:
        return null;
      default:
        return null;
    }
  }
  var ol = !1, er = !1, bf = typeof WeakSet == "function" ? WeakSet : Set, Ve = null;
  function ul(n, i) {
    var s = n.ref;
    if (s !== null)
      if (typeof s == "function")
        try {
          s(null);
        } catch (v) {
          hn(n, i, v);
        }
      else
        s.current = null;
  }
  function kp(n, i, s) {
    try {
      s();
    } catch (v) {
      hn(n, i, v);
    }
  }
  var Cf = !1;
  function db(n, i) {
    if (sp = Bo, n = kc(), Ri(n)) {
      if ("selectionStart" in n)
        var s = { start: n.selectionStart, end: n.selectionEnd };
      else
        e: {
          s = (s = n.ownerDocument) && s.defaultView || window;
          var v = s.getSelection && s.getSelection();
          if (v && v.rangeCount !== 0) {
            s = v.anchorNode;
            var g = v.anchorOffset, S = v.focusNode;
            v = v.focusOffset;
            try {
              s.nodeType, S.nodeType;
            } catch {
              s = null;
              break e;
            }
            var I = 0, F = -1, _ = -1, te = 0, pe = 0, ve = n, fe = null;
            t:
              for (; ; ) {
                for (var Le; ve !== s || g !== 0 && ve.nodeType !== 3 || (F = I + g), ve !== S || v !== 0 && ve.nodeType !== 3 || (_ = I + v), ve.nodeType === 3 && (I += ve.nodeValue.length), (Le = ve.firstChild) !== null; )
                  fe = ve, ve = Le;
                for (; ; ) {
                  if (ve === n)
                    break t;
                  if (fe === s && ++te === g && (F = I), fe === S && ++pe === v && (_ = I), (Le = ve.nextSibling) !== null)
                    break;
                  ve = fe, fe = ve.parentNode;
                }
                ve = Le;
              }
            s = F === -1 || _ === -1 ? null : { start: F, end: _ };
          } else
            s = null;
        }
      s = s || { start: 0, end: 0 };
    } else
      s = null;
    for (zo = { focusedElem: n, selectionRange: s }, Bo = !1, Ve = i; Ve !== null; )
      if (i = Ve, n = i.child, (i.subtreeFlags & 1028) !== 0 && n !== null)
        n.return = i, Ve = n;
      else
        for (; Ve !== null; ) {
          i = Ve;
          try {
            var He = i.alternate;
            if (i.flags & 1024)
              switch (i.tag) {
                case 0:
                case 11:
                case 15:
                  break;
                case 1:
                  if (He !== null) {
                    var Ge = He.memoizedProps, Cn = He.memoizedState, Q = i.stateNode, W = Q.getSnapshotBeforeUpdate(i.elementType === i.type ? Ge : Pr(i.type, Ge), Cn);
                    Q.__reactInternalSnapshotBeforeUpdate = W;
                  }
                  break;
                case 3:
                  var K = i.stateNode.containerInfo;
                  K.nodeType === 1 ? K.textContent = "" : K.nodeType === 9 && K.documentElement && K.removeChild(K.documentElement);
                  break;
                case 5:
                case 6:
                case 4:
                case 17:
                  break;
                default:
                  throw Error(u(163));
              }
          } catch (be) {
            hn(i, i.return, be);
          }
          if (n = i.sibling, n !== null) {
            n.return = i.return, Ve = n;
            break;
          }
          Ve = i.return;
        }
    return He = Cf, Cf = !1, He;
  }
  function ll(n, i, s) {
    var v = i.updateQueue;
    if (v = v !== null ? v.lastEffect : null, v !== null) {
      var g = v = v.next;
      do {
        if ((g.tag & n) === n) {
          var S = g.destroy;
          g.destroy = void 0, S !== void 0 && kp(i, s, S);
        }
        g = g.next;
      } while (g !== v);
    }
  }
  function Sf(n, i) {
    if (i = i.updateQueue, i = i !== null ? i.lastEffect : null, i !== null) {
      var s = i = i.next;
      do {
        if ((s.tag & n) === n) {
          var v = s.create;
          s.destroy = v();
        }
        s = s.next;
      } while (s !== i);
    }
  }
  function Ef(n) {
    var i = n.ref;
    if (i !== null) {
      var s = n.stateNode;
      switch (n.tag) {
        case 5:
          n = s;
          break;
        default:
          n = s;
      }
      typeof i == "function" ? i(n) : i.current = n;
    }
  }
  function _m(n) {
    var i = n.alternate;
    i !== null && (n.alternate = null, _m(i)), n.child = null, n.deletions = null, n.sibling = null, n.tag === 5 && (i = n.stateNode, i !== null && (delete i[ni], delete i[jo], delete i[dp], delete i[ob], delete i[pp])), n.stateNode = null, n.return = null, n.dependencies = null, n.memoizedProps = null, n.memoizedState = null, n.pendingProps = null, n.stateNode = null, n.updateQueue = null;
  }
  function Mp(n) {
    return n.tag === 5 || n.tag === 3 || n.tag === 4;
  }
  function zm(n) {
    e:
      for (; ; ) {
        for (; n.sibling === null; ) {
          if (n.return === null || Mp(n.return))
            return null;
          n = n.return;
        }
        for (n.sibling.return = n.return, n = n.sibling; n.tag !== 5 && n.tag !== 6 && n.tag !== 18; ) {
          if (n.flags & 2 || n.child === null || n.tag === 4)
            continue e;
          n.child.return = n, n = n.child;
        }
        if (!(n.flags & 2))
          return n.stateNode;
      }
  }
  function Os(n, i, s) {
    var v = n.tag;
    if (v === 5 || v === 6)
      n = n.stateNode, i ? s.nodeType === 8 ? s.parentNode.insertBefore(n, i) : s.insertBefore(n, i) : (s.nodeType === 8 ? (i = s.parentNode, i.insertBefore(n, s)) : (i = s, i.appendChild(n)), s = s._reactRootContainer, s != null || i.onclick !== null || (i.onclick = Pc));
    else if (v !== 4 && (n = n.child, n !== null))
      for (Os(n, i, s), n = n.sibling; n !== null; )
        Os(n, i, s), n = n.sibling;
  }
  function sl(n, i, s) {
    var v = n.tag;
    if (v === 5 || v === 6)
      n = n.stateNode, i ? s.insertBefore(n, i) : s.appendChild(n);
    else if (v !== 4 && (n = n.child, n !== null))
      for (sl(n, i, s), n = n.sibling; n !== null; )
        sl(n, i, s), n = n.sibling;
  }
  var rn = null, Gn = !1;
  function yr(n, i, s) {
    for (s = s.child; s !== null; )
      cl(n, i, s), s = s.sibling;
  }
  function cl(n, i, s) {
    if (za && typeof za.onCommitFiberUnmount == "function")
      try {
        za.onCommitFiberUnmount(Zl, s);
      } catch {
      }
    switch (s.tag) {
      case 5:
        er || ul(s, i);
      case 6:
        var v = rn, g = Gn;
        rn = null, yr(n, i, s), rn = v, Gn = g, rn !== null && (Gn ? (n = rn, s = s.stateNode, n.nodeType === 8 ? n.parentNode.removeChild(s) : n.removeChild(s)) : rn.removeChild(s.stateNode));
        break;
      case 18:
        rn !== null && (Gn ? (n = rn, s = s.stateNode, n.nodeType === 8 ? ro(n.parentNode, s) : n.nodeType === 1 && ro(n, s), ql(n)) : ro(rn, s.stateNode));
        break;
      case 4:
        v = rn, g = Gn, rn = s.stateNode.containerInfo, Gn = !0, yr(n, i, s), rn = v, Gn = g;
        break;
      case 0:
      case 11:
      case 14:
      case 15:
        if (!er && (v = s.updateQueue, v !== null && (v = v.lastEffect, v !== null))) {
          g = v = v.next;
          do {
            var S = g, I = S.destroy;
            S = S.tag, I !== void 0 && (S & 2 || S & 4) && kp(s, i, I), g = g.next;
          } while (g !== v);
        }
        yr(n, i, s);
        break;
      case 1:
        if (!er && (ul(s, i), v = s.stateNode, typeof v.componentWillUnmount == "function"))
          try {
            v.props = s.memoizedProps, v.state = s.memoizedState, v.componentWillUnmount();
          } catch (F) {
            hn(s, i, F);
          }
        yr(n, i, s);
        break;
      case 21:
        yr(n, i, s);
        break;
      case 22:
        s.mode & 1 ? (er = (v = er) || s.memoizedState !== null, yr(n, i, s), er = v) : yr(n, i, s);
        break;
      default:
        yr(n, i, s);
    }
  }
  function fl(n) {
    var i = n.updateQueue;
    if (i !== null) {
      n.updateQueue = null;
      var s = n.stateNode;
      s === null && (s = n.stateNode = new bf()), i.forEach(function(v) {
        var g = bb.bind(null, n, v);
        s.has(v) || (s.add(v), v.then(g, g));
      });
    }
  }
  function jn(n, i) {
    var s = i.deletions;
    if (s !== null)
      for (var v = 0; v < s.length; v++) {
        var g = s[v];
        try {
          var S = n, I = i, F = I;
          e:
            for (; F !== null; ) {
              switch (F.tag) {
                case 5:
                  rn = F.stateNode, Gn = !1;
                  break e;
                case 3:
                  rn = F.stateNode.containerInfo, Gn = !0;
                  break e;
                case 4:
                  rn = F.stateNode.containerInfo, Gn = !0;
                  break e;
              }
              F = F.return;
            }
          if (rn === null)
            throw Error(u(160));
          cl(S, I, g), rn = null, Gn = !1;
          var _ = g.alternate;
          _ !== null && (_.return = null), g.return = null;
        } catch (te) {
          hn(g, i, te);
        }
      }
    if (i.subtreeFlags & 12854)
      for (i = i.child; i !== null; )
        Gm(i, n), i = i.sibling;
  }
  function Gm(n, i) {
    var s = n.alternate, v = n.flags;
    switch (n.tag) {
      case 0:
      case 11:
      case 14:
      case 15:
        if (jn(i, n), oi(n), v & 4) {
          try {
            ll(3, n, n.return), Sf(3, n);
          } catch (Ge) {
            hn(n, n.return, Ge);
          }
          try {
            ll(5, n, n.return);
          } catch (Ge) {
            hn(n, n.return, Ge);
          }
        }
        break;
      case 1:
        jn(i, n), oi(n), v & 512 && s !== null && ul(s, s.return);
        break;
      case 5:
        if (jn(i, n), oi(n), v & 512 && s !== null && ul(s, s.return), n.flags & 32) {
          var g = n.stateNode;
          try {
            Ji(g, "");
          } catch (Ge) {
            hn(n, n.return, Ge);
          }
        }
        if (v & 4 && (g = n.stateNode, g != null)) {
          var S = n.memoizedProps, I = s !== null ? s.memoizedProps : S, F = n.type, _ = n.updateQueue;
          if (n.updateQueue = null, _ !== null)
            try {
              F === "input" && S.type === "radio" && S.name != null && Qn(g, S), Dn(F, I);
              var te = Dn(F, S);
              for (I = 0; I < _.length; I += 2) {
                var pe = _[I], ve = _[I + 1];
                pe === "style" ? Yt(g, ve) : pe === "dangerouslySetInnerHTML" ? jl(g, ve) : pe === "children" ? Ji(g, ve) : H(g, pe, ve, te);
              }
              switch (F) {
                case "input":
                  En(g, S);
                  break;
                case "textarea":
                  la(g, S);
                  break;
                case "select":
                  var fe = g._wrapperState.wasMultiple;
                  g._wrapperState.wasMultiple = !!S.multiple;
                  var Le = S.value;
                  Le != null ? Yr(g, !!S.multiple, Le, !1) : fe !== !!S.multiple && (S.defaultValue != null ? Yr(
                    g,
                    !!S.multiple,
                    S.defaultValue,
                    !0
                  ) : Yr(g, !!S.multiple, S.multiple ? [] : "", !1));
              }
              g[jo] = S;
            } catch (Ge) {
              hn(n, n.return, Ge);
            }
        }
        break;
      case 6:
        if (jn(i, n), oi(n), v & 4) {
          if (n.stateNode === null)
            throw Error(u(162));
          g = n.stateNode, S = n.memoizedProps;
          try {
            g.nodeValue = S;
          } catch (Ge) {
            hn(n, n.return, Ge);
          }
        }
        break;
      case 3:
        if (jn(i, n), oi(n), v & 4 && s !== null && s.memoizedState.isDehydrated)
          try {
            ql(i.containerInfo);
          } catch (Ge) {
            hn(n, n.return, Ge);
          }
        break;
      case 4:
        jn(i, n), oi(n);
        break;
      case 13:
        jn(i, n), oi(n), g = n.child, g.flags & 8192 && (S = g.memoizedState !== null, g.stateNode.isHidden = S, !S || g.alternate !== null && g.alternate.memoizedState !== null || (wf = fn())), v & 4 && fl(n);
        break;
      case 22:
        if (pe = s !== null && s.memoizedState !== null, n.mode & 1 ? (er = (te = er) || pe, jn(i, n), er = te) : jn(i, n), oi(n), v & 8192) {
          if (te = n.memoizedState !== null, (n.stateNode.isHidden = te) && !pe && n.mode & 1)
            for (Ve = n, pe = n.child; pe !== null; ) {
              for (ve = Ve = pe; Ve !== null; ) {
                switch (fe = Ve, Le = fe.child, fe.tag) {
                  case 0:
                  case 11:
                  case 14:
                  case 15:
                    ll(4, fe, fe.return);
                    break;
                  case 1:
                    ul(fe, fe.return);
                    var He = fe.stateNode;
                    if (typeof He.componentWillUnmount == "function") {
                      v = fe, s = fe.return;
                      try {
                        i = v, He.props = i.memoizedProps, He.state = i.memoizedState, He.componentWillUnmount();
                      } catch (Ge) {
                        hn(v, s, Ge);
                      }
                    }
                    break;
                  case 5:
                    ul(fe, fe.return);
                    break;
                  case 22:
                    if (fe.memoizedState !== null) {
                      jm(ve);
                      continue;
                    }
                }
                Le !== null ? (Le.return = fe, Ve = Le) : jm(ve);
              }
              pe = pe.sibling;
            }
          e:
            for (pe = null, ve = n; ; ) {
              if (ve.tag === 5) {
                if (pe === null) {
                  pe = ve;
                  try {
                    g = ve.stateNode, te ? (S = g.style, typeof S.setProperty == "function" ? S.setProperty("display", "none", "important") : S.display = "none") : (F = ve.stateNode, _ = ve.memoizedProps.style, I = _ != null && _.hasOwnProperty("display") ? _.display : null, F.style.display = St("display", I));
                  } catch (Ge) {
                    hn(n, n.return, Ge);
                  }
                }
              } else if (ve.tag === 6) {
                if (pe === null)
                  try {
                    ve.stateNode.nodeValue = te ? "" : ve.memoizedProps;
                  } catch (Ge) {
                    hn(n, n.return, Ge);
                  }
              } else if ((ve.tag !== 22 && ve.tag !== 23 || ve.memoizedState === null || ve === n) && ve.child !== null) {
                ve.child.return = ve, ve = ve.child;
                continue;
              }
              if (ve === n)
                break e;
              for (; ve.sibling === null; ) {
                if (ve.return === null || ve.return === n)
                  break e;
                pe === ve && (pe = null), ve = ve.return;
              }
              pe === ve && (pe = null), ve.sibling.return = ve.return, ve = ve.sibling;
            }
        }
        break;
      case 19:
        jn(i, n), oi(n), v & 4 && fl(n);
        break;
      case 21:
        break;
      default:
        jn(
          i,
          n
        ), oi(n);
    }
  }
  function oi(n) {
    var i = n.flags;
    if (i & 2) {
      try {
        e: {
          for (var s = n.return; s !== null; ) {
            if (Mp(s)) {
              var v = s;
              break e;
            }
            s = s.return;
          }
          throw Error(u(160));
        }
        switch (v.tag) {
          case 5:
            var g = v.stateNode;
            v.flags & 32 && (Ji(g, ""), v.flags &= -33);
            var S = zm(n);
            sl(n, S, g);
            break;
          case 3:
          case 4:
            var I = v.stateNode.containerInfo, F = zm(n);
            Os(n, F, I);
            break;
          default:
            throw Error(u(161));
        }
      } catch (_) {
        hn(n, n.return, _);
      }
      n.flags &= -3;
    }
    i & 4096 && (n.flags &= -4097);
  }
  function pb(n, i, s) {
    Ve = n, Lp(n);
  }
  function Lp(n, i, s) {
    for (var v = (n.mode & 1) !== 0; Ve !== null; ) {
      var g = Ve, S = g.child;
      if (g.tag === 22 && v) {
        var I = g.memoizedState !== null || ol;
        if (!I) {
          var F = g.alternate, _ = F !== null && F.memoizedState !== null || er;
          F = ol;
          var te = er;
          if (ol = I, (er = _) && !te)
            for (Ve = g; Ve !== null; )
              I = Ve, _ = I.child, I.tag === 22 && I.memoizedState !== null ? Fp(g) : _ !== null ? (_.return = I, Ve = _) : Fp(g);
          for (; S !== null; )
            Ve = S, Lp(S), S = S.sibling;
          Ve = g, ol = F, er = te;
        }
        dl(n);
      } else
        g.subtreeFlags & 8772 && S !== null ? (S.return = g, Ve = S) : dl(n);
    }
  }
  function dl(n) {
    for (; Ve !== null; ) {
      var i = Ve;
      if (i.flags & 8772) {
        var s = i.alternate;
        try {
          if (i.flags & 8772)
            switch (i.tag) {
              case 0:
              case 11:
              case 15:
                er || Sf(5, i);
                break;
              case 1:
                var v = i.stateNode;
                if (i.flags & 4 && !er)
                  if (s === null)
                    v.componentDidMount();
                  else {
                    var g = i.elementType === i.type ? s.memoizedProps : Pr(i.type, s.memoizedProps);
                    v.componentDidUpdate(g, s.memoizedState, v.__reactInternalSnapshotBeforeUpdate);
                  }
                var S = i.updateQueue;
                S !== null && Tm(i, S, v);
                break;
              case 3:
                var I = i.updateQueue;
                if (I !== null) {
                  if (s = null, i.child !== null)
                    switch (i.child.tag) {
                      case 5:
                        s = i.child.stateNode;
                        break;
                      case 1:
                        s = i.child.stateNode;
                    }
                  Tm(i, I, s);
                }
                break;
              case 5:
                var F = i.stateNode;
                if (s === null && i.flags & 4) {
                  s = F;
                  var _ = i.memoizedProps;
                  switch (i.type) {
                    case "button":
                    case "input":
                    case "select":
                    case "textarea":
                      _.autoFocus && s.focus();
                      break;
                    case "img":
                      _.src && (s.src = _.src);
                  }
                }
                break;
              case 6:
                break;
              case 4:
                break;
              case 12:
                break;
              case 13:
                if (i.memoizedState === null) {
                  var te = i.alternate;
                  if (te !== null) {
                    var pe = te.memoizedState;
                    if (pe !== null) {
                      var ve = pe.dehydrated;
                      ve !== null && ql(ve);
                    }
                  }
                }
                break;
              case 19:
              case 17:
              case 21:
              case 22:
              case 23:
              case 25:
                break;
              default:
                throw Error(u(163));
            }
          er || i.flags & 512 && Ef(i);
        } catch (fe) {
          hn(i, i.return, fe);
        }
      }
      if (i === n) {
        Ve = null;
        break;
      }
      if (s = i.sibling, s !== null) {
        s.return = i.return, Ve = s;
        break;
      }
      Ve = i.return;
    }
  }
  function jm(n) {
    for (; Ve !== null; ) {
      var i = Ve;
      if (i === n) {
        Ve = null;
        break;
      }
      var s = i.sibling;
      if (s !== null) {
        s.return = i.return, Ve = s;
        break;
      }
      Ve = i.return;
    }
  }
  function Fp(n) {
    for (; Ve !== null; ) {
      var i = Ve;
      try {
        switch (i.tag) {
          case 0:
          case 11:
          case 15:
            var s = i.return;
            try {
              Sf(4, i);
            } catch (_) {
              hn(i, s, _);
            }
            break;
          case 1:
            var v = i.stateNode;
            if (typeof v.componentDidMount == "function") {
              var g = i.return;
              try {
                v.componentDidMount();
              } catch (_) {
                hn(i, g, _);
              }
            }
            var S = i.return;
            try {
              Ef(i);
            } catch (_) {
              hn(i, S, _);
            }
            break;
          case 5:
            var I = i.return;
            try {
              Ef(i);
            } catch (_) {
              hn(i, I, _);
            }
        }
      } catch (_) {
        hn(i, i.return, _);
      }
      if (i === n) {
        Ve = null;
        break;
      }
      var F = i.sibling;
      if (F !== null) {
        F.return = i.return, Ve = F;
        break;
      }
      Ve = i.return;
    }
  }
  var vb = Math.ceil, tu = z.ReactCurrentDispatcher, xf = z.ReactCurrentOwner, xa = z.ReactCurrentBatchConfig, xt = 0, vn = null, Kt = null, Mn = 0, zr = 0, pl = yt(0), Ln = 0, Ds = null, nu = 0, vl = 0, Bp = 0, vo = null, hr = null, wf = 0, hl = 1 / 0, Li = null, Rf = !1, Vp = null, wa = null, ml = !1, Ra = null, Tf = 0, Ns = 0, If = null, ks = -1, ru = 0;
  function Un() {
    return xt & 6 ? fn() : ks !== -1 ? ks : ks = fn();
  }
  function Fi(n) {
    return n.mode & 1 ? xt & 2 && Mn !== 0 ? Mn & -Mn : Uc.transition !== null ? (ru === 0 && (ru = Cc()), ru) : (n = Ht, n !== 0 || (n = window.event, n = n === void 0 ? 16 : jd(n.type)), n) : 1;
  }
  function on(n, i, s, v) {
    if (50 < Ns)
      throw Ns = 0, If = null, Error(u(185));
    Fo(n, s, v), (!(xt & 2) || n !== vn) && (n === vn && (!(xt & 2) && (vl |= s), Ln === 4 && ui(n, Mn)), Fn(n, v), s === 1 && xt === 0 && !(i.mode & 1) && (hl = fn() + 500, zn && Mr()));
  }
  function Fn(n, i) {
    var s = n.callbackNode;
    bc(n, i);
    var v = Ga(n, n === vn ? Mn : 0);
    if (v === 0)
      s !== null && Oh(s), n.callbackNode = null, n.callbackPriority = 0;
    else if (i = v & -v, n.callbackPriority !== i) {
      if (s != null && Oh(s), i === 1)
        n.tag === 0 ? hp(gl.bind(null, n)) : vp(gl.bind(null, n)), fp(function() {
          !(xt & 6) && Mr();
        }), s = null;
      else {
        switch (_d(v)) {
          case 1:
            s = Si;
            break;
          case 4:
            s = Et;
            break;
          case 16:
            s = qi;
            break;
          case 536870912:
            s = Bd;
            break;
          default:
            s = qi;
        }
        s = Jm(s, Af.bind(null, n));
      }
      n.callbackPriority = i, n.callbackNode = s;
    }
  }
  function Af(n, i) {
    if (ks = -1, ru = 0, xt & 6)
      throw Error(u(327));
    var s = n.callbackNode;
    if (yl() && n.callbackNode !== s)
      return null;
    var v = Ga(n, n === vn ? Mn : 0);
    if (v === 0)
      return null;
    if (v & 30 || v & n.expiredLanes || i)
      i = Df(n, v);
    else {
      i = v;
      var g = xt;
      xt |= 2;
      var S = Wm();
      (vn !== n || Mn !== i) && (Li = null, hl = fn() + 500, iu(n, i));
      do
        try {
          mb();
          break;
        } catch (F) {
          Um(n, F);
        }
      while (!0);
      ea(), tu.current = S, xt = g, Kt !== null ? i = 0 : (vn = null, Mn = 0, i = Ln);
    }
    if (i !== 0) {
      if (i === 2 && (g = Pd(n), g !== 0 && (v = g, i = au(n, g))), i === 1)
        throw s = Ds, iu(n, 0), ui(n, v), Fn(n, fn()), s;
      if (i === 6)
        ui(n, v);
      else {
        if (g = n.current.alternate, !(v & 30) && !Hp(g) && (i = Df(n, v), i === 2 && (S = Pd(n), S !== 0 && (v = S, i = au(n, S))), i === 1))
          throw s = Ds, iu(n, 0), ui(n, v), Fn(n, fn()), s;
        switch (n.finishedWork = g, n.finishedLanes = v, i) {
          case 0:
          case 1:
            throw Error(u(345));
          case 2:
            ho(n, hr, Li);
            break;
          case 3:
            if (ui(n, v), (v & 130023424) === v && (i = wf + 500 - fn(), 10 < i)) {
              if (Ga(n, 0) !== 0)
                break;
              if (g = n.suspendedLanes, (g & v) !== v) {
                Un(), n.pingedLanes |= n.suspendedLanes & g;
                break;
              }
              n.timeoutHandle = Go(ho.bind(null, n, hr, Li), i);
              break;
            }
            ho(n, hr, Li);
            break;
          case 4:
            if (ui(n, v), (v & 4194240) === v)
              break;
            for (i = n.eventTimes, g = -1; 0 < v; ) {
              var I = 31 - ca(v);
              S = 1 << I, I = i[I], I > g && (g = I), v &= ~S;
            }
            if (v = g, v = fn() - v, v = (120 > v ? 120 : 480 > v ? 480 : 1080 > v ? 1080 : 1920 > v ? 1920 : 3e3 > v ? 3e3 : 4320 > v ? 4320 : 1960 * vb(v / 1960)) - v, 10 < v) {
              n.timeoutHandle = Go(ho.bind(null, n, hr, Li), v);
              break;
            }
            ho(n, hr, Li);
            break;
          case 5:
            ho(n, hr, Li);
            break;
          default:
            throw Error(u(329));
        }
      }
    }
    return Fn(n, fn()), n.callbackNode === s ? Af.bind(null, n) : null;
  }
  function au(n, i) {
    var s = vo;
    return n.current.memoizedState.isDehydrated && (iu(n, i).flags |= 256), n = Df(n, i), n !== 2 && (i = hr, hr = s, i !== null && Pp(i)), n;
  }
  function Pp(n) {
    hr === null ? hr = n : hr.push.apply(hr, n);
  }
  function Hp(n) {
    for (var i = n; ; ) {
      if (i.flags & 16384) {
        var s = i.updateQueue;
        if (s !== null && (s = s.stores, s !== null))
          for (var v = 0; v < s.length; v++) {
            var g = s[v], S = g.getSnapshot;
            g = g.value;
            try {
              if (!pa(S(), g))
                return !1;
            } catch {
              return !1;
            }
          }
      }
      if (s = i.child, i.subtreeFlags & 16384 && s !== null)
        s.return = i, i = s;
      else {
        if (i === n)
          break;
        for (; i.sibling === null; ) {
          if (i.return === null || i.return === n)
            return !0;
          i = i.return;
        }
        i.sibling.return = i.return, i = i.sibling;
      }
    }
    return !0;
  }
  function ui(n, i) {
    for (i &= ~Bp, i &= ~vl, n.suspendedLanes |= i, n.pingedLanes &= ~i, n = n.expirationTimes; 0 < i; ) {
      var s = 31 - ca(i), v = 1 << s;
      n[s] = -1, i &= ~v;
    }
  }
  function gl(n) {
    if (xt & 6)
      throw Error(u(327));
    yl();
    var i = Ga(n, 0);
    if (!(i & 1))
      return Fn(n, fn()), null;
    var s = Df(n, i);
    if (n.tag !== 0 && s === 2) {
      var v = Pd(n);
      v !== 0 && (i = v, s = au(n, v));
    }
    if (s === 1)
      throw s = Ds, iu(n, 0), ui(n, i), Fn(n, fn()), s;
    if (s === 6)
      throw Error(u(345));
    return n.finishedWork = n.current.alternate, n.finishedLanes = i, ho(n, hr, Li), Fn(n, fn()), null;
  }
  function _p(n, i) {
    var s = xt;
    xt |= 1;
    try {
      return n(i);
    } finally {
      xt = s, xt === 0 && (hl = fn() + 500, zn && Mr());
    }
  }
  function li(n) {
    Ra !== null && Ra.tag === 0 && !(xt & 6) && yl();
    var i = xt;
    xt |= 1;
    var s = xa.transition, v = Ht;
    try {
      if (xa.transition = null, Ht = 1, n)
        return n();
    } finally {
      Ht = v, xa.transition = s, xt = i, !(xt & 6) && Mr();
    }
  }
  function Of() {
    zr = pl.current, Lt(pl);
  }
  function iu(n, i) {
    n.finishedWork = null, n.finishedLanes = 0;
    var s = n.timeoutHandle;
    if (s !== -1 && (n.timeoutHandle = -1, gm(s)), Kt !== null)
      for (s = Kt.return; s !== null; ) {
        var v = s;
        switch (gp(v), v.tag) {
          case 1:
            v = v.type.childContextTypes, v != null && ma();
            break;
          case 3:
            $u(), Lt(dn), Lt(st), wp();
            break;
          case 5:
            xp(v);
            break;
          case 4:
            $u();
            break;
          case 13:
            Lt(nn);
            break;
          case 19:
            Lt(nn);
            break;
          case 10:
            Cp(v.type._context);
            break;
          case 22:
          case 23:
            Of();
        }
        s = s.return;
      }
    if (vn = n, Kt = n = mo(n.current, null), Mn = zr = i, Ln = 0, Ds = null, Bp = vl = nu = 0, hr = vo = null, Xo !== null) {
      for (i = 0; i < Xo.length; i++)
        if (s = Xo[i], v = s.interleaved, v !== null) {
          s.interleaved = null;
          var g = v.next, S = s.pending;
          if (S !== null) {
            var I = S.next;
            S.next = g, v.next = I;
          }
          s.pending = v;
        }
      Xo = null;
    }
    return n;
  }
  function Um(n, i) {
    do {
      var s = Kt;
      try {
        if (ea(), Jc.current = pr, ta) {
          for (var v = Ze.memoizedState; v !== null; ) {
            var g = v.queue;
            g !== null && (g.pending = null), v = v.next;
          }
          ta = !1;
        }
        if (We = 0, Ct = ct = Ze = null, Qu = !1, Cs = 0, xf.current = null, s === null || s.return === null) {
          Ln = 1, Ds = i, Kt = null;
          break;
        }
        e: {
          var S = n, I = s.return, F = s, _ = i;
          if (i = Mn, F.flags |= 32768, _ !== null && typeof _ == "object" && typeof _.then == "function") {
            var te = _, pe = F, ve = pe.tag;
            if (!(pe.mode & 1) && (ve === 0 || ve === 11 || ve === 15)) {
              var fe = pe.alternate;
              fe ? (pe.updateQueue = fe.updateQueue, pe.memoizedState = fe.memoizedState, pe.lanes = fe.lanes) : (pe.updateQueue = null, pe.memoizedState = null);
            }
            var Le = Fm(I);
            if (Le !== null) {
              Le.flags &= -257, Op(Le, I, F, S, i), Le.mode & 1 && Rs(S, te, i), i = Le, _ = te;
              var He = i.updateQueue;
              if (He === null) {
                var Ge = /* @__PURE__ */ new Set();
                Ge.add(_), i.updateQueue = Ge;
              } else
                He.add(_);
              break e;
            } else {
              if (!(i & 1)) {
                Rs(S, te, i), Ms();
                break e;
              }
              _ = Error(u(426));
            }
          } else if (qt && F.mode & 1) {
            var Cn = Fm(I);
            if (Cn !== null) {
              !(Cn.flags & 65536) && (Cn.flags |= 256), Op(Cn, I, F, S, i), bp(fo(_, F));
              break e;
            }
          }
          S = _ = fo(_, F), Ln !== 4 && (Ln = 2), vo === null ? vo = [S] : vo.push(S), S = I;
          do {
            switch (S.tag) {
              case 3:
                S.flags |= 65536, i &= -i, S.lanes |= i;
                var Q = Mm(S, _, i);
                Rm(S, Q);
                break e;
              case 1:
                F = _;
                var W = S.type, K = S.stateNode;
                if (!(S.flags & 128) && (typeof W.getDerivedStateFromError == "function" || K !== null && typeof K.componentDidCatch == "function" && (wa === null || !wa.has(K)))) {
                  S.flags |= 65536, i &= -i, S.lanes |= i;
                  var be = Lm(S, F, i);
                  Rm(S, be);
                  break e;
                }
            }
            S = S.return;
          } while (S !== null);
        }
        Zm(s);
      } catch (Xe) {
        i = Xe, Kt === s && s !== null && (Kt = s = s.return);
        continue;
      }
      break;
    } while (!0);
  }
  function Wm() {
    var n = tu.current;
    return tu.current = pr, n === null ? pr : n;
  }
  function Ms() {
    (Ln === 0 || Ln === 3 || Ln === 2) && (Ln = 4), vn === null || !(nu & 268435455) && !(vl & 268435455) || ui(vn, Mn);
  }
  function Df(n, i) {
    var s = xt;
    xt |= 2;
    var v = Wm();
    (vn !== n || Mn !== i) && (Li = null, iu(n, i));
    do
      try {
        hb();
        break;
      } catch (g) {
        Um(n, g);
      }
    while (!0);
    if (ea(), xt = s, tu.current = v, Kt !== null)
      throw Error(u(261));
    return vn = null, Mn = 0, Ln;
  }
  function hb() {
    for (; Kt !== null; )
      Xm(Kt);
  }
  function mb() {
    for (; Kt !== null && !P0(); )
      Xm(Kt);
  }
  function Xm(n) {
    var i = Qm(n.alternate, n, zr);
    n.memoizedProps = n.pendingProps, i === null ? Zm(n) : Kt = i, xf.current = null;
  }
  function Zm(n) {
    var i = n;
    do {
      var s = i.alternate;
      if (n = i.return, i.flags & 32768) {
        if (s = fb(s, i), s !== null) {
          s.flags &= 32767, Kt = s;
          return;
        }
        if (n !== null)
          n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null;
        else {
          Ln = 6, Kt = null;
          return;
        }
      } else if (s = cb(s, i, zr), s !== null) {
        Kt = s;
        return;
      }
      if (i = i.sibling, i !== null) {
        Kt = i;
        return;
      }
      Kt = i = n;
    } while (i !== null);
    Ln === 0 && (Ln = 5);
  }
  function ho(n, i, s) {
    var v = Ht, g = xa.transition;
    try {
      xa.transition = null, Ht = 1, gb(n, i, s, v);
    } finally {
      xa.transition = g, Ht = v;
    }
    return null;
  }
  function gb(n, i, s, v) {
    do
      yl();
    while (Ra !== null);
    if (xt & 6)
      throw Error(u(327));
    s = n.finishedWork;
    var g = n.finishedLanes;
    if (s === null)
      return null;
    if (n.finishedWork = null, n.finishedLanes = 0, s === n.current)
      throw Error(u(177));
    n.callbackNode = null, n.callbackPriority = 0;
    var S = s.lanes | s.childLanes;
    if (G0(n, S), n === vn && (Kt = vn = null, Mn = 0), !(s.subtreeFlags & 2064) && !(s.flags & 2064) || ml || (ml = !0, Jm(qi, function() {
      return yl(), null;
    })), S = (s.flags & 15990) !== 0, s.subtreeFlags & 15990 || S) {
      S = xa.transition, xa.transition = null;
      var I = Ht;
      Ht = 1;
      var F = xt;
      xt |= 4, xf.current = null, db(n, s), Gm(s, n), Mc(zo), Bo = !!sp, zo = sp = null, n.current = s, pb(s), H0(), xt = F, Ht = I, xa.transition = S;
    } else
      n.current = s;
    if (ml && (ml = !1, Ra = n, Tf = g), S = n.pendingLanes, S === 0 && (wa = null), Nh(s.stateNode), Fn(n, fn()), i !== null)
      for (v = n.onRecoverableError, s = 0; s < i.length; s++)
        g = i[s], v(g.value, { componentStack: g.stack, digest: g.digest });
    if (Rf)
      throw Rf = !1, n = Vp, Vp = null, n;
    return Tf & 1 && n.tag !== 0 && yl(), S = n.pendingLanes, S & 1 ? n === If ? Ns++ : (Ns = 0, If = n) : Ns = 0, Mr(), null;
  }
  function yl() {
    if (Ra !== null) {
      var n = _d(Tf), i = xa.transition, s = Ht;
      try {
        if (xa.transition = null, Ht = 16 > n ? 16 : n, Ra === null)
          var v = !1;
        else {
          if (n = Ra, Ra = null, Tf = 0, xt & 6)
            throw Error(u(331));
          var g = xt;
          for (xt |= 4, Ve = n.current; Ve !== null; ) {
            var S = Ve, I = S.child;
            if (Ve.flags & 16) {
              var F = S.deletions;
              if (F !== null) {
                for (var _ = 0; _ < F.length; _++) {
                  var te = F[_];
                  for (Ve = te; Ve !== null; ) {
                    var pe = Ve;
                    switch (pe.tag) {
                      case 0:
                      case 11:
                      case 15:
                        ll(8, pe, S);
                    }
                    var ve = pe.child;
                    if (ve !== null)
                      ve.return = pe, Ve = ve;
                    else
                      for (; Ve !== null; ) {
                        pe = Ve;
                        var fe = pe.sibling, Le = pe.return;
                        if (_m(pe), pe === te) {
                          Ve = null;
                          break;
                        }
                        if (fe !== null) {
                          fe.return = Le, Ve = fe;
                          break;
                        }
                        Ve = Le;
                      }
                  }
                }
                var He = S.alternate;
                if (He !== null) {
                  var Ge = He.child;
                  if (Ge !== null) {
                    He.child = null;
                    do {
                      var Cn = Ge.sibling;
                      Ge.sibling = null, Ge = Cn;
                    } while (Ge !== null);
                  }
                }
                Ve = S;
              }
            }
            if (S.subtreeFlags & 2064 && I !== null)
              I.return = S, Ve = I;
            else
              e:
                for (; Ve !== null; ) {
                  if (S = Ve, S.flags & 2048)
                    switch (S.tag) {
                      case 0:
                      case 11:
                      case 15:
                        ll(9, S, S.return);
                    }
                  var Q = S.sibling;
                  if (Q !== null) {
                    Q.return = S.return, Ve = Q;
                    break e;
                  }
                  Ve = S.return;
                }
          }
          var W = n.current;
          for (Ve = W; Ve !== null; ) {
            I = Ve;
            var K = I.child;
            if (I.subtreeFlags & 2064 && K !== null)
              K.return = I, Ve = K;
            else
              e:
                for (I = W; Ve !== null; ) {
                  if (F = Ve, F.flags & 2048)
                    try {
                      switch (F.tag) {
                        case 0:
                        case 11:
                        case 15:
                          Sf(9, F);
                      }
                    } catch (Xe) {
                      hn(F, F.return, Xe);
                    }
                  if (F === I) {
                    Ve = null;
                    break e;
                  }
                  var be = F.sibling;
                  if (be !== null) {
                    be.return = F.return, Ve = be;
                    break e;
                  }
                  Ve = F.return;
                }
          }
          if (xt = g, Mr(), za && typeof za.onPostCommitFiberRoot == "function")
            try {
              za.onPostCommitFiberRoot(Zl, n);
            } catch {
            }
          v = !0;
        }
        return v;
      } finally {
        Ht = s, xa.transition = i;
      }
    }
    return !1;
  }
  function Ym(n, i, s) {
    i = fo(s, i), i = Mm(n, i, 1), n = so(n, i, 1), i = Un(), n !== null && (Fo(n, 1, i), Fn(n, i));
  }
  function hn(n, i, s) {
    if (n.tag === 3)
      Ym(n, n, s);
    else
      for (; i !== null; ) {
        if (i.tag === 3) {
          Ym(i, n, s);
          break;
        } else if (i.tag === 1) {
          var v = i.stateNode;
          if (typeof i.type.getDerivedStateFromError == "function" || typeof v.componentDidCatch == "function" && (wa === null || !wa.has(v))) {
            n = fo(s, n), n = Lm(i, n, 1), i = so(i, n, 1), n = Un(), i !== null && (Fo(i, 1, n), Fn(i, n));
            break;
          }
        }
        i = i.return;
      }
  }
  function yb(n, i, s) {
    var v = n.pingCache;
    v !== null && v.delete(i), i = Un(), n.pingedLanes |= n.suspendedLanes & s, vn === n && (Mn & s) === s && (Ln === 4 || Ln === 3 && (Mn & 130023424) === Mn && 500 > fn() - wf ? iu(n, 0) : Bp |= s), Fn(n, i);
  }
  function $m(n, i) {
    i === 0 && (n.mode & 1 ? (i = ku, ku <<= 1, !(ku & 130023424) && (ku = 4194304)) : i = 1);
    var s = Un();
    n = Ni(n, i), n !== null && (Fo(n, i, s), Fn(n, s));
  }
  function zp(n) {
    var i = n.memoizedState, s = 0;
    i !== null && (s = i.retryLane), $m(n, s);
  }
  function bb(n, i) {
    var s = 0;
    switch (n.tag) {
      case 13:
        var v = n.stateNode, g = n.memoizedState;
        g !== null && (s = g.retryLane);
        break;
      case 19:
        v = n.stateNode;
        break;
      default:
        throw Error(u(314));
    }
    v !== null && v.delete(i), $m(n, s);
  }
  var Qm;
  Qm = function(n, i, s) {
    if (n !== null)
      if (n.memoizedProps !== i.pendingProps || dn.current)
        Hr = !0;
      else {
        if (!(n.lanes & s) && !(i.flags & 128))
          return Hr = !1, Mi(n, i, s);
        Hr = !!(n.flags & 131072);
      }
    else
      Hr = !1, qt && i.flags & 1048576 && mp(i, Uu, i.index);
    switch (i.lanes = 0, i.tag) {
      case 2:
        var v = i.type;
        As(n, i), n = i.pendingProps;
        var g = ha(i, st.current);
        Xu(i, s), g = ce(null, i, v, n, g, s);
        var S = In();
        return i.flags |= 1, typeof g == "object" && g !== null && typeof g.render == "function" && g.$$typeof === void 0 ? (i.tag = 1, i.memoizedState = null, i.updateQueue = null, tn(v) ? (S = !0, Hc(i)) : S = !1, i.memoizedState = g.state !== null && g.state !== void 0 ? g.state : null, Xc(i), g.updater = qo, i.stateNode = g, g._reactInternals = i, Ip(i, v, n, s), i = hf(null, i, v, !0, S, s)) : (i.tag = 0, qt && S && _c(i), yn(null, i, g, s), i = i.child), i;
      case 16:
        v = i.elementType;
        e: {
          switch (As(n, i), n = i.pendingProps, g = v._init, v = g(v._payload), i.type = v, g = i.tag = Cb(v), n = Pr(v, n), g) {
            case 0:
              i = gt(null, i, v, n, s);
              break e;
            case 1:
              i = Ts(null, i, v, n, s);
              break e;
            case 11:
              i = rl(null, i, v, n, s);
              break e;
            case 14:
              i = po(null, i, v, Pr(v.type, n), s);
              break e;
          }
          throw Error(u(
            306,
            v,
            ""
          ));
        }
        return i;
      case 0:
        return v = i.type, g = i.pendingProps, g = i.elementType === v ? g : Pr(v, g), gt(n, i, v, g, s);
      case 1:
        return v = i.type, g = i.pendingProps, g = i.elementType === v ? g : Pr(v, g), Ts(n, i, v, g, s);
      case 3:
        e: {
          if (sb(i), n === null)
            throw Error(u(387));
          v = i.pendingProps, S = i.memoizedState, g = S.element, Zu(n, i), Yc(i, v, null, s);
          var I = i.memoizedState;
          if (v = I.element, S.isDehydrated)
            if (S = { element: v, isDehydrated: !1, cache: I.cache, pendingSuspenseBoundaries: I.pendingSuspenseBoundaries, transitions: I.transitions }, i.updateQueue.baseState = S, i.memoizedState = S, i.flags & 256) {
              g = fo(Error(u(423)), i), i = Vm(n, i, v, s, g);
              break e;
            } else if (v !== g) {
              g = fo(Error(u(424)), i), i = Vm(n, i, v, s, g);
              break e;
            } else
              for (Br = Xa(i.stateNode.containerInfo.firstChild), Kr = i, qt = !0, ya = null, s = xm(i, null, v, s), i.child = s; s; )
                s.flags = s.flags & -3 | 4096, s = s.sibling;
          else {
            if (an(), v === g) {
              i = bn(n, i, s);
              break e;
            }
            yn(n, i, v, s);
          }
          i = i.child;
        }
        return i;
      case 5:
        return Im(i), n === null && Gc(i), v = i.type, g = i.pendingProps, S = n !== null ? n.memoizedProps : null, I = g.children, ds(v, g) ? I = null : S !== null && ds(v, S) && (i.flags |= 32), Ko(n, i), yn(n, i, I, s), i.child;
      case 6:
        return n === null && Gc(i), null;
      case 13:
        return Pm(n, i, s);
      case 4:
        return Ep(i, i.stateNode.containerInfo), v = i.pendingProps, n === null ? i.child = Wu(i, null, v, s) : yn(n, i, v, s), i.child;
      case 11:
        return v = i.type, g = i.pendingProps, g = i.elementType === v ? g : Pr(v, g), rl(n, i, v, g, s);
      case 7:
        return yn(n, i, i.pendingProps, s), i.child;
      case 8:
        return yn(n, i, i.pendingProps.children, s), i.child;
      case 12:
        return yn(n, i, i.pendingProps.children, s), i.child;
      case 10:
        e: {
          if (v = i.type._context, g = i.pendingProps, S = i.memoizedProps, I = g.value, Ft(Di, v._currentValue), v._currentValue = I, S !== null)
            if (pa(S.value, I)) {
              if (S.children === g.children && !dn.current) {
                i = bn(n, i, s);
                break e;
              }
            } else
              for (S = i.child, S !== null && (S.return = i); S !== null; ) {
                var F = S.dependencies;
                if (F !== null) {
                  I = S.child;
                  for (var _ = F.firstContext; _ !== null; ) {
                    if (_.context === v) {
                      if (S.tag === 1) {
                        _ = Vr(-1, s & -s), _.tag = 2;
                        var te = S.updateQueue;
                        if (te !== null) {
                          te = te.shared;
                          var pe = te.pending;
                          pe === null ? _.next = _ : (_.next = pe.next, pe.next = _), te.pending = _;
                        }
                      }
                      S.lanes |= s, _ = S.alternate, _ !== null && (_.lanes |= s), Sp(
                        S.return,
                        s,
                        i
                      ), F.lanes |= s;
                      break;
                    }
                    _ = _.next;
                  }
                } else if (S.tag === 10)
                  I = S.type === i.type ? null : S.child;
                else if (S.tag === 18) {
                  if (I = S.return, I === null)
                    throw Error(u(341));
                  I.lanes |= s, F = I.alternate, F !== null && (F.lanes |= s), Sp(I, s, i), I = S.sibling;
                } else
                  I = S.child;
                if (I !== null)
                  I.return = S;
                else
                  for (I = S; I !== null; ) {
                    if (I === i) {
                      I = null;
                      break;
                    }
                    if (S = I.sibling, S !== null) {
                      S.return = I.return, I = S;
                      break;
                    }
                    I = I.return;
                  }
                S = I;
              }
          yn(n, i, g.children, s), i = i.child;
        }
        return i;
      case 9:
        return g = i.type, v = i.pendingProps.children, Xu(i, s), g = Ca(g), v = v(g), i.flags |= 1, yn(n, i, v, s), i.child;
      case 14:
        return v = i.type, g = Pr(v, i.pendingProps), g = Pr(v.type, g), po(n, i, v, g, s);
      case 15:
        return vf(n, i, i.type, i.pendingProps, s);
      case 17:
        return v = i.type, g = i.pendingProps, g = i.elementType === v ? g : Pr(v, g), As(n, i), i.tag = 1, tn(v) ? (n = !0, Hc(i)) : n = !1, Xu(i, s), Dm(i, v, g), Ip(i, v, g, s), hf(null, i, v, !0, n, s);
      case 19:
        return Np(n, i, s);
      case 22:
        return _r(n, i, s);
    }
    throw Error(u(156, i.tag));
  };
  function Jm(n, i) {
    return Fd(n, i);
  }
  function qm(n, i, s, v) {
    this.tag = n, this.key = s, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = i, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = v, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
  }
  function Ta(n, i, s, v) {
    return new qm(n, i, s, v);
  }
  function Gp(n) {
    return n = n.prototype, !(!n || !n.isReactComponent);
  }
  function Cb(n) {
    if (typeof n == "function")
      return Gp(n) ? 1 : 0;
    if (n != null) {
      if (n = n.$$typeof, n === Ee)
        return 11;
      if (n === Ue)
        return 14;
    }
    return 2;
  }
  function mo(n, i) {
    var s = n.alternate;
    return s === null ? (s = Ta(n.tag, i, n.key, n.mode), s.elementType = n.elementType, s.type = n.type, s.stateNode = n.stateNode, s.alternate = n, n.alternate = s) : (s.pendingProps = i, s.type = n.type, s.flags = 0, s.subtreeFlags = 0, s.deletions = null), s.flags = n.flags & 14680064, s.childLanes = n.childLanes, s.lanes = n.lanes, s.child = n.child, s.memoizedProps = n.memoizedProps, s.memoizedState = n.memoizedState, s.updateQueue = n.updateQueue, i = n.dependencies, s.dependencies = i === null ? null : { lanes: i.lanes, firstContext: i.firstContext }, s.sibling = n.sibling, s.index = n.index, s.ref = n.ref, s;
  }
  function Nf(n, i, s, v, g, S) {
    var I = 2;
    if (v = n, typeof n == "function")
      Gp(n) && (I = 1);
    else if (typeof n == "string")
      I = 5;
    else
      e:
        switch (n) {
          case B:
            return ou(s.children, g, S, i);
          case G:
            I = 8, g |= 8;
            break;
          case ae:
            return n = Ta(12, s, i, g | 2), n.elementType = ae, n.lanes = S, n;
          case ye:
            return n = Ta(13, s, i, g), n.elementType = ye, n.lanes = S, n;
          case ke:
            return n = Ta(19, s, i, g), n.elementType = ke, n.lanes = S, n;
          case Ke:
            return kf(s, g, S, i);
          default:
            if (typeof n == "object" && n !== null)
              switch (n.$$typeof) {
                case ge:
                  I = 10;
                  break e;
                case de:
                  I = 9;
                  break e;
                case Ee:
                  I = 11;
                  break e;
                case Ue:
                  I = 14;
                  break e;
                case Se:
                  I = 16, v = null;
                  break e;
              }
            throw Error(u(130, n == null ? n : typeof n, ""));
        }
    return i = Ta(I, s, i, g), i.elementType = n, i.type = v, i.lanes = S, i;
  }
  function ou(n, i, s, v) {
    return n = Ta(7, n, v, i), n.lanes = s, n;
  }
  function kf(n, i, s, v) {
    return n = Ta(22, n, v, i), n.elementType = Ke, n.lanes = s, n.stateNode = { isHidden: !1 }, n;
  }
  function Mf(n, i, s) {
    return n = Ta(6, n, null, i), n.lanes = s, n;
  }
  function Ls(n, i, s) {
    return i = Ta(4, n.children !== null ? n.children : [], n.key, i), i.lanes = s, i.stateNode = { containerInfo: n.containerInfo, pendingChildren: null, implementation: n.implementation }, i;
  }
  function Fs(n, i, s, v, g) {
    this.tag = i, this.containerInfo = n, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Hd(0), this.expirationTimes = Hd(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Hd(0), this.identifierPrefix = v, this.onRecoverableError = g, this.mutableSourceEagerHydrationData = null;
  }
  function jp(n, i, s, v, g, S, I, F, _) {
    return n = new Fs(n, i, s, F, _), i === 1 ? (i = 1, S === !0 && (i |= 8)) : i = 0, S = Ta(3, null, null, i), n.current = S, S.stateNode = n, S.memoizedState = { element: v, isDehydrated: s, cache: null, transitions: null, pendingSuspenseBoundaries: null }, Xc(S), n;
  }
  function Km(n, i, s) {
    var v = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
    return { $$typeof: j, key: v == null ? null : "" + v, children: n, containerInfo: i, implementation: s };
  }
  function Up(n) {
    if (!n)
      return ri;
    n = n._reactInternals;
    e: {
      if (ti(n) !== n || n.tag !== 1)
        throw Error(u(170));
      var i = n;
      do {
        switch (i.tag) {
          case 3:
            i = i.stateNode.context;
            break e;
          case 1:
            if (tn(i.type)) {
              i = i.stateNode.__reactInternalMemoizedMergedChildContext;
              break e;
            }
        }
        i = i.return;
      } while (i !== null);
      throw Error(u(171));
    }
    if (n.tag === 1) {
      var s = n.type;
      if (tn(s))
        return hs(n, s, i);
    }
    return i;
  }
  function Wp(n, i, s, v, g, S, I, F, _) {
    return n = jp(s, v, !0, n, g, S, I, F, _), n.context = Up(null), s = n.current, v = Un(), g = Fi(s), S = Vr(v, g), S.callback = i ?? null, so(s, S, g), n.current.lanes = g, Fo(n, g, v), Fn(n, v), n;
  }
  function Lf(n, i, s, v) {
    var g = i.current, S = Un(), I = Fi(g);
    return s = Up(s), i.context === null ? i.context = s : i.pendingContext = s, i = Vr(S, I), i.payload = { element: n }, v = v === void 0 ? null : v, v !== null && (i.callback = v), n = so(g, i, I), n !== null && (on(n, g, I, S), Zc(n, g, I)), I;
  }
  function Bs(n) {
    if (n = n.current, !n.child)
      return null;
    switch (n.child.tag) {
      case 5:
        return n.child.stateNode;
      default:
        return n.child.stateNode;
    }
  }
  function eg(n, i) {
    if (n = n.memoizedState, n !== null && n.dehydrated !== null) {
      var s = n.retryLane;
      n.retryLane = s !== 0 && s < i ? s : i;
    }
  }
  function Xp(n, i) {
    eg(n, i), (n = n.alternate) && eg(n, i);
  }
  function Sb() {
    return null;
  }
  var Zp = typeof reportError == "function" ? reportError : function(n) {
    console.error(n);
  };
  function Ff(n) {
    this._internalRoot = n;
  }
  Vs.prototype.render = Ff.prototype.render = function(n) {
    var i = this._internalRoot;
    if (i === null)
      throw Error(u(409));
    Lf(n, i, null, null);
  }, Vs.prototype.unmount = Ff.prototype.unmount = function() {
    var n = this._internalRoot;
    if (n !== null) {
      this._internalRoot = null;
      var i = n.containerInfo;
      li(function() {
        Lf(null, n, null, null);
      }), i[Ai] = null;
    }
  };
  function Vs(n) {
    this._internalRoot = n;
  }
  Vs.prototype.unstable_scheduleHydration = function(n) {
    if (n) {
      var i = Fh();
      n = { blockedOn: null, target: n, priority: i };
      for (var s = 0; s < jt.length && i !== 0 && i < jt[s].priority; s++)
        ;
      jt.splice(s, 0, n), s === 0 && Bh(n);
    }
  };
  function go(n) {
    return !(!n || n.nodeType !== 1 && n.nodeType !== 9 && n.nodeType !== 11);
  }
  function Bf(n) {
    return !(!n || n.nodeType !== 1 && n.nodeType !== 9 && n.nodeType !== 11 && (n.nodeType !== 8 || n.nodeValue !== " react-mount-point-unstable "));
  }
  function tg() {
  }
  function Eb(n, i, s, v, g) {
    if (g) {
      if (typeof v == "function") {
        var S = v;
        v = function() {
          var te = Bs(I);
          S.call(te);
        };
      }
      var I = Wp(i, v, n, 0, null, !1, !1, "", tg);
      return n._reactRootContainer = I, n[Ai] = I.current, Gu(n.nodeType === 8 ? n.parentNode : n), li(), I;
    }
    for (; g = n.lastChild; )
      n.removeChild(g);
    if (typeof v == "function") {
      var F = v;
      v = function() {
        var te = Bs(_);
        F.call(te);
      };
    }
    var _ = jp(n, 0, !1, null, null, !1, !1, "", tg);
    return n._reactRootContainer = _, n[Ai] = _.current, Gu(n.nodeType === 8 ? n.parentNode : n), li(function() {
      Lf(i, _, s, v);
    }), _;
  }
  function Vf(n, i, s, v, g) {
    var S = s._reactRootContainer;
    if (S) {
      var I = S;
      if (typeof g == "function") {
        var F = g;
        g = function() {
          var _ = Bs(I);
          F.call(_);
        };
      }
      Lf(i, I, n, g);
    } else
      I = Eb(s, i, n, g, v);
    return Bs(I);
  }
  Lh = function(n) {
    switch (n.tag) {
      case 3:
        var i = n.stateNode;
        if (i.current.memoizedState.isDehydrated) {
          var s = Lo(i.pendingLanes);
          s !== 0 && (Yl(i, s | 1), Fn(i, fn()), !(xt & 6) && (hl = fn() + 500, Mr()));
        }
        break;
      case 13:
        li(function() {
          var v = Ni(n, 1);
          if (v !== null) {
            var g = Un();
            on(v, n, 1, g);
          }
        }), Xp(n, 1);
    }
  }, Sc = function(n) {
    if (n.tag === 13) {
      var i = Ni(n, 134217728);
      if (i !== null) {
        var s = Un();
        on(i, n, 134217728, s);
      }
      Xp(n, 134217728);
    }
  }, _t = function(n) {
    if (n.tag === 13) {
      var i = Fi(n), s = Ni(n, i);
      if (s !== null) {
        var v = Un();
        on(s, n, i, v);
      }
      Xp(n, i);
    }
  }, Fh = function() {
    return Ht;
  }, zd = function(n, i) {
    var s = Ht;
    try {
      return Ht = n, i();
    } finally {
      Ht = s;
    }
  }, ei = function(n, i, s) {
    switch (i) {
      case "input":
        if (En(n, s), i = s.name, s.type === "radio" && i != null) {
          for (s = n; s.parentNode; )
            s = s.parentNode;
          for (s = s.querySelectorAll("input[name=" + JSON.stringify("" + i) + '][type="radio"]'), i = 0; i < s.length; i++) {
            var v = s[i];
            if (v !== n && v.form === n.form) {
              var g = Je(v);
              if (!g)
                throw Error(u(90));
              Ce(v), En(v, g);
            }
          }
        }
        break;
      case "textarea":
        la(n, s);
        break;
      case "select":
        i = s.value, i != null && Yr(n, !!s.multiple, i, !1);
    }
  }, Rh = _p, Th = li;
  var xb = { usingClientEntryPoint: !1, Events: [vs, ju, Je, vc, hc, _p] }, Ps = { findFiberByHostInstance: va, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, ng = { bundleType: Ps.bundleType, version: Ps.version, rendererPackageName: Ps.rendererPackageName, rendererConfig: Ps.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: z.ReactCurrentDispatcher, findHostInstanceByFiber: function(n) {
    return n = Ih(n), n === null ? null : n.stateNode;
  }, findFiberByHostInstance: Ps.findFiberByHostInstance || Sb, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
    var Pf = __REACT_DEVTOOLS_GLOBAL_HOOK__;
    if (!Pf.isDisabled && Pf.supportsFiber)
      try {
        Zl = Pf.inject(ng), za = Pf;
      } catch {
      }
  }
  return ka.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = xb, ka.createPortal = function(n, i) {
    var s = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
    if (!go(i))
      throw Error(u(200));
    return Km(n, i, null, s);
  }, ka.createRoot = function(n, i) {
    if (!go(n))
      throw Error(u(299));
    var s = !1, v = "", g = Zp;
    return i != null && (i.unstable_strictMode === !0 && (s = !0), i.identifierPrefix !== void 0 && (v = i.identifierPrefix), i.onRecoverableError !== void 0 && (g = i.onRecoverableError)), i = jp(n, 1, !1, null, null, s, !1, v, g), n[Ai] = i.current, Gu(n.nodeType === 8 ? n.parentNode : n), new Ff(i);
  }, ka.findDOMNode = function(n) {
    if (n == null)
      return null;
    if (n.nodeType === 1)
      return n;
    var i = n._reactInternals;
    if (i === void 0)
      throw typeof n.render == "function" ? Error(u(188)) : (n = Object.keys(n).join(","), Error(u(268, n)));
    return n = Ih(i), n = n === null ? null : n.stateNode, n;
  }, ka.flushSync = function(n) {
    return li(n);
  }, ka.hydrate = function(n, i, s) {
    if (!Bf(i))
      throw Error(u(200));
    return Vf(null, n, i, !0, s);
  }, ka.hydrateRoot = function(n, i, s) {
    if (!go(n))
      throw Error(u(405));
    var v = s != null && s.hydratedSources || null, g = !1, S = "", I = Zp;
    if (s != null && (s.unstable_strictMode === !0 && (g = !0), s.identifierPrefix !== void 0 && (S = s.identifierPrefix), s.onRecoverableError !== void 0 && (I = s.onRecoverableError)), i = Wp(i, null, n, 1, s ?? null, g, !1, S, I), n[Ai] = i.current, Gu(n), v)
      for (n = 0; n < v.length; n++)
        s = v[n], g = s._getVersion, g = g(s._source), i.mutableSourceEagerHydrationData == null ? i.mutableSourceEagerHydrationData = [s, g] : i.mutableSourceEagerHydrationData.push(
          s,
          g
        );
    return new Vs(i);
  }, ka.render = function(n, i, s) {
    if (!Bf(i))
      throw Error(u(200));
    return Vf(null, n, i, !1, s);
  }, ka.unmountComponentAtNode = function(n) {
    if (!Bf(n))
      throw Error(u(40));
    return n._reactRootContainer ? (li(function() {
      Vf(null, null, n, !1, function() {
        n._reactRootContainer = null, n[Ai] = null;
      });
    }), !0) : !1;
  }, ka.unstable_batchedUpdates = _p, ka.unstable_renderSubtreeIntoContainer = function(n, i, s, v) {
    if (!Bf(s))
      throw Error(u(200));
    if (n == null || n._reactInternals === void 0)
      throw Error(u(38));
    return Vf(n, i, s, !1, v);
  }, ka.version = "18.3.1-next-f1338f8080-20240426", ka;
}
var Ma = {};
/**
 * @license React
 * react-dom.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 aI;
function zB() {
  return aI || (aI = 1,  true && function() {
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
    var a = (react__WEBPACK_IMPORTED_MODULE_1___default()), r = XA(), u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, f = !1;
    function c(e) {
      f = e;
    }
    function p(e) {
      if (!f) {
        for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), l = 1; l < t; l++)
          o[l - 1] = arguments[l];
        C("warn", e, o);
      }
    }
    function h(e) {
      if (!f) {
        for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), l = 1; l < t; l++)
          o[l - 1] = arguments[l];
        C("error", e, o);
      }
    }
    function C(e, t, o) {
      {
        var l = u.ReactDebugCurrentFrame, d = l.getStackAddendum();
        d !== "" && (t += "%s", o = o.concat([d]));
        var m = o.map(function(b) {
          return String(b);
        });
        m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
      }
    }
    var y = 0, E = 1, w = 2, T = 3, A = 4, O = 5, L = 6, M = 7, N = 8, P = 9, $ = 10, H = 11, z = 12, V = 13, j = 14, B = 15, G = 16, ae = 17, ge = 18, de = 19, Ee = 21, ye = 22, ke = 23, Ue = 24, Se = 25, Ke = !0, ue = !1, xe = !1, Z = !1, se = !1, me = !0, Te = !1, Ie = !0, Oe = !0, Ae = !0, je = !0, Pe = /* @__PURE__ */ new Set(), et = {}, ft = {};
    function Rt(e, t) {
      Ce(e, t), Ce(e + "Capture", t);
    }
    function Ce(e, t) {
      et[e] && h("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", e), et[e] = t;
      {
        var o = e.toLowerCase();
        ft[o] = e, e === "onDoubleClick" && (ft.ondblclick = e);
      }
      for (var l = 0; l < t.length; l++)
        Pe.add(t[l]);
    }
    var Tt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Pt = Object.prototype.hasOwnProperty;
    function bt(e) {
      {
        var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
        return o;
      }
    }
    function Qn(e) {
      try {
        return En(e), !1;
      } catch {
        return !0;
      }
    }
    function En(e) {
      return "" + e;
    }
    function Pa(e, t) {
      if (Qn(e))
        return h("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bt(e)), En(e);
    }
    function Qi(e) {
      if (Qn(e))
        return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(e)), En(e);
    }
    function mr(e, t) {
      if (Qn(e))
        return h("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bt(e)), En(e);
    }
    function Yr(e, t) {
      if (Qn(e))
        return h("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bt(e)), En(e);
    }
    function Ka(e) {
      if (Qn(e))
        return h("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", bt(e)), En(e);
    }
    function Or(e) {
      if (Qn(e))
        return h("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", bt(e)), En(e);
    }
    var la = 0, $r = 1, Ha = 2, Jn = 3, Dr = 4, jl = 5, Ji = 6, Ne = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", tt = Ne + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", St = new RegExp("^[" + Ne + "][" + tt + "]*$"), Yt = {}, gn = {};
    function sr(e) {
      return Pt.call(gn, e) ? !0 : Pt.call(Yt, e) ? !1 : St.test(e) ? (gn[e] = !0, !0) : (Yt[e] = !0, h("Invalid attribute name: `%s`", e), !1);
    }
    function Dn(e, t, o) {
      return t !== null ? t.type === la : o ? !1 : e.length > 2 && (e[0] === "o" || e[0] === "O") && (e[1] === "n" || e[1] === "N");
    }
    function sa(e, t, o, l) {
      if (o !== null && o.type === la)
        return !1;
      switch (typeof t) {
        case "function":
        case "symbol":
          return !0;
        case "boolean": {
          if (l)
            return !1;
          if (o !== null)
            return !o.acceptsBooleans;
          var d = e.toLowerCase().slice(0, 5);
          return d !== "data-" && d !== "aria-";
        }
        default:
          return !1;
      }
    }
    function sn(e, t, o, l) {
      if (t === null || typeof t > "u" || sa(e, t, o, l))
        return !0;
      if (l)
        return !1;
      if (o !== null)
        switch (o.type) {
          case Jn:
            return !t;
          case Dr:
            return t === !1;
          case jl:
            return isNaN(t);
          case Ji:
            return isNaN(t) || t < 1;
        }
      return !1;
    }
    function ei(e) {
      return cn.hasOwnProperty(e) ? cn[e] : null;
    }
    function xn(e, t, o, l, d, m, b) {
      this.acceptsBooleans = t === Ha || t === Jn || t === Dr, this.attributeName = l, this.attributeNamespace = d, this.mustUseProperty = o, this.propertyName = e, this.type = t, this.sanitizeURL = m, this.removeEmptyString = b;
    }
    var cn = {}, wh = [
      "children",
      "dangerouslySetInnerHTML",
      // TODO: This prevents the assignment of defaultValue to regular
      // elements (not just inputs). Now that ReactDOMInput assigns to the
      // defaultValue property -- do we need this?
      "defaultValue",
      "defaultChecked",
      "innerHTML",
      "suppressContentEditableWarning",
      "suppressHydrationWarning",
      "style"
    ];
    wh.forEach(function(e) {
      cn[e] = new xn(
        e,
        la,
        !1,
        // mustUseProperty
        e,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
      var t = e[0], o = e[1];
      cn[t] = new xn(
        t,
        $r,
        !1,
        // mustUseProperty
        o,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
      cn[e] = new xn(
        e,
        Ha,
        !1,
        // mustUseProperty
        e.toLowerCase(),
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
      cn[e] = new xn(
        e,
        Ha,
        !1,
        // mustUseProperty
        e,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "allowFullScreen",
      "async",
      // Note: there is a special case that prevents it from being written to the DOM
      // on the client side because the browsers are inconsistent. Instead we call focus().
      "autoFocus",
      "autoPlay",
      "controls",
      "default",
      "defer",
      "disabled",
      "disablePictureInPicture",
      "disableRemotePlayback",
      "formNoValidate",
      "hidden",
      "loop",
      "noModule",
      "noValidate",
      "open",
      "playsInline",
      "readOnly",
      "required",
      "reversed",
      "scoped",
      "seamless",
      // Microdata
      "itemScope"
    ].forEach(function(e) {
      cn[e] = new xn(
        e,
        Jn,
        !1,
        // mustUseProperty
        e.toLowerCase(),
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "checked",
      // Note: `option.selected` is not updated if `select.multiple` is
      // disabled with `removeAttribute`. We have special logic for handling this.
      "multiple",
      "muted",
      "selected"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      cn[e] = new xn(
        e,
        Jn,
        !0,
        // mustUseProperty
        e,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "capture",
      "download"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      cn[e] = new xn(
        e,
        Dr,
        !1,
        // mustUseProperty
        e,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "cols",
      "rows",
      "size",
      "span"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      cn[e] = new xn(
        e,
        Ji,
        !1,
        // mustUseProperty
        e,
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), ["rowSpan", "start"].forEach(function(e) {
      cn[e] = new xn(
        e,
        jl,
        !1,
        // mustUseProperty
        e.toLowerCase(),
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    });
    var vc = /[\-\:]([a-z])/g, hc = function(e) {
      return e[1].toUpperCase();
    };
    [
      "accent-height",
      "alignment-baseline",
      "arabic-form",
      "baseline-shift",
      "cap-height",
      "clip-path",
      "clip-rule",
      "color-interpolation",
      "color-interpolation-filters",
      "color-profile",
      "color-rendering",
      "dominant-baseline",
      "enable-background",
      "fill-opacity",
      "fill-rule",
      "flood-color",
      "flood-opacity",
      "font-family",
      "font-size",
      "font-size-adjust",
      "font-stretch",
      "font-style",
      "font-variant",
      "font-weight",
      "glyph-name",
      "glyph-orientation-horizontal",
      "glyph-orientation-vertical",
      "horiz-adv-x",
      "horiz-origin-x",
      "image-rendering",
      "letter-spacing",
      "lighting-color",
      "marker-end",
      "marker-mid",
      "marker-start",
      "overline-position",
      "overline-thickness",
      "paint-order",
      "panose-1",
      "pointer-events",
      "rendering-intent",
      "shape-rendering",
      "stop-color",
      "stop-opacity",
      "strikethrough-position",
      "strikethrough-thickness",
      "stroke-dasharray",
      "stroke-dashoffset",
      "stroke-linecap",
      "stroke-linejoin",
      "stroke-miterlimit",
      "stroke-opacity",
      "stroke-width",
      "text-anchor",
      "text-decoration",
      "text-rendering",
      "underline-position",
      "underline-thickness",
      "unicode-bidi",
      "unicode-range",
      "units-per-em",
      "v-alphabetic",
      "v-hanging",
      "v-ideographic",
      "v-mathematical",
      "vector-effect",
      "vert-adv-y",
      "vert-origin-x",
      "vert-origin-y",
      "word-spacing",
      "writing-mode",
      "xmlns:xlink",
      "x-height"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      var t = e.replace(vc, hc);
      cn[t] = new xn(
        t,
        $r,
        !1,
        // mustUseProperty
        e,
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "xlink:actuate",
      "xlink:arcrole",
      "xlink:role",
      "xlink:show",
      "xlink:title",
      "xlink:type"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      var t = e.replace(vc, hc);
      cn[t] = new xn(
        t,
        $r,
        !1,
        // mustUseProperty
        e,
        "http://www.w3.org/1999/xlink",
        !1,
        // sanitizeURL
        !1
      );
    }), [
      "xml:base",
      "xml:lang",
      "xml:space"
      // NOTE: if you add a camelCased prop to this list,
      // you'll need to set attributeName to name.toLowerCase()
      // instead in the assignment below.
    ].forEach(function(e) {
      var t = e.replace(vc, hc);
      cn[t] = new xn(
        t,
        $r,
        !1,
        // mustUseProperty
        e,
        "http://www.w3.org/XML/1998/namespace",
        !1,
        // sanitizeURL
        !1
      );
    }), ["tabIndex", "crossOrigin"].forEach(function(e) {
      cn[e] = new xn(
        e,
        $r,
        !1,
        // mustUseProperty
        e.toLowerCase(),
        // attributeName
        null,
        // attributeNamespace
        !1,
        // sanitizeURL
        !1
      );
    });
    var Rh = "xlinkHref";
    cn[Rh] = new xn(
      "xlinkHref",
      $r,
      !1,
      // mustUseProperty
      "xlink:href",
      "http://www.w3.org/1999/xlink",
      !0,
      // sanitizeURL
      !1
    ), ["src", "href", "action", "formAction"].forEach(function(e) {
      cn[e] = new xn(
        e,
        $r,
        !1,
        // mustUseProperty
        e.toLowerCase(),
        // attributeName
        null,
        // attributeNamespace
        !0,
        // sanitizeURL
        !0
      );
    });
    var Th = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i, mc = !1;
    function kd(e) {
      !mc && Th.test(e) && (mc = !0, h("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(e)));
    }
    function Ul(e, t, o, l) {
      if (l.mustUseProperty) {
        var d = l.propertyName;
        return e[d];
      } else {
        Pa(o, t), l.sanitizeURL && kd("" + o);
        var m = l.attributeName, b = null;
        if (l.type === Dr) {
          if (e.hasAttribute(m)) {
            var x = e.getAttribute(m);
            return x === "" ? !0 : sn(t, o, l, !1) ? x : x === "" + o ? o : x;
          }
        } else if (e.hasAttribute(m)) {
          if (sn(t, o, l, !1))
            return e.getAttribute(m);
          if (l.type === Jn)
            return o;
          b = e.getAttribute(m);
        }
        return sn(t, o, l, !1) ? b === null ? o : b : b === "" + o ? o : b;
      }
    }
    function gc(e, t, o, l) {
      {
        if (!sr(t))
          return;
        if (!e.hasAttribute(t))
          return o === void 0 ? void 0 : null;
        var d = e.getAttribute(t);
        return Pa(o, t), d === "" + o ? o : d;
      }
    }
    function Mo(e, t, o, l) {
      var d = ei(t);
      if (!Dn(t, d, l)) {
        if (sn(t, o, d, l) && (o = null), l || d === null) {
          if (sr(t)) {
            var m = t;
            o === null ? e.removeAttribute(m) : (Pa(o, t), e.setAttribute(m, "" + o));
          }
          return;
        }
        var b = d.mustUseProperty;
        if (b) {
          var x = d.propertyName;
          if (o === null) {
            var R = d.type;
            e[x] = R === Jn ? !1 : "";
          } else
            e[x] = o;
          return;
        }
        var D = d.attributeName, k = d.attributeNamespace;
        if (o === null)
          e.removeAttribute(D);
        else {
          var X = d.type, U;
          X === Jn || X === Dr && o === !0 ? U = "" : (Pa(o, D), U = "" + o, d.sanitizeURL && kd(U.toString())), k ? e.setAttributeNS(k, D, U) : e.setAttribute(D, U);
        }
      }
    }
    var Au = Symbol.for("react.element"), _a = Symbol.for("react.portal"), Ci = Symbol.for("react.fragment"), Ou = Symbol.for("react.strict_mode"), Wl = Symbol.for("react.profiler"), Md = Symbol.for("react.provider"), Ld = Symbol.for("react.context"), Du = Symbol.for("react.forward_ref"), ti = Symbol.for("react.suspense"), Xl = Symbol.for("react.suspense_list"), Nu = Symbol.for("react.memo"), gr = Symbol.for("react.lazy"), Ih = Symbol.for("react.scope"), Ah = Symbol.for("react.debug_trace_mode"), Fd = Symbol.for("react.offscreen"), Oh = Symbol.for("react.legacy_hidden"), P0 = Symbol.for("react.cache"), H0 = Symbol.for("react.tracing_marker"), fn = Symbol.iterator, _0 = "@@iterator";
    function Si(e) {
      if (e === null || typeof e != "object")
        return null;
      var t = fn && e[fn] || e[_0];
      return typeof t == "function" ? t : null;
    }
    var Et = Object.assign, qi = 0, Dh, Bd, Zl, za, Nh, ca, kh;
    function Mh() {
    }
    Mh.__reactDisabledLog = !0;
    function z0() {
      {
        if (qi === 0) {
          Dh = console.log, Bd = console.info, Zl = console.warn, za = console.error, Nh = console.group, ca = console.groupCollapsed, kh = console.groupEnd;
          var e = {
            configurable: !0,
            enumerable: !0,
            value: Mh,
            writable: !0
          };
          Object.defineProperties(console, {
            info: e,
            log: e,
            warn: e,
            error: e,
            group: e,
            groupCollapsed: e,
            groupEnd: e
          });
        }
        qi++;
      }
    }
    function yc() {
      {
        if (qi--, qi === 0) {
          var e = {
            configurable: !0,
            enumerable: !0,
            writable: !0
          };
          Object.defineProperties(console, {
            log: Et({}, e, {
              value: Dh
            }),
            info: Et({}, e, {
              value: Bd
            }),
            warn: Et({}, e, {
              value: Zl
            }),
            error: Et({}, e, {
              value: za
            }),
            group: Et({}, e, {
              value: Nh
            }),
            groupCollapsed: Et({}, e, {
              value: ca
            }),
            groupEnd: Et({}, e, {
              value: kh
            })
          });
        }
        qi < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
      }
    }
    var ku = u.ReactCurrentDispatcher, Lo;
    function Ga(e, t, o) {
      {
        if (Lo === void 0)
          try {
            throw Error();
          } catch (d) {
            var l = d.stack.trim().match(/\n( *(at )?)/);
            Lo = l && l[1] || "";
          }
        return `
` + Lo + e;
      }
    }
    var Vd = !1, bc;
    {
      var Pd = typeof WeakMap == "function" ? WeakMap : Map;
      bc = new Pd();
    }
    function Cc(e, t) {
      if (!e || Vd)
        return "";
      {
        var o = bc.get(e);
        if (o !== void 0)
          return o;
      }
      var l;
      Vd = !0;
      var d = Error.prepareStackTrace;
      Error.prepareStackTrace = void 0;
      var m;
      m = ku.current, ku.current = null, z0();
      try {
        if (t) {
          var b = function() {
            throw Error();
          };
          if (Object.defineProperty(b.prototype, "props", {
            set: function() {
              throw Error();
            }
          }), typeof Reflect == "object" && Reflect.construct) {
            try {
              Reflect.construct(b, []);
            } catch (ne) {
              l = ne;
            }
            Reflect.construct(e, [], b);
          } else {
            try {
              b.call();
            } catch (ne) {
              l = ne;
            }
            e.call(b.prototype);
          }
        } else {
          try {
            throw Error();
          } catch (ne) {
            l = ne;
          }
          e();
        }
      } catch (ne) {
        if (ne && l && typeof ne.stack == "string") {
          for (var x = ne.stack.split(`
`), R = l.stack.split(`
`), D = x.length - 1, k = R.length - 1; D >= 1 && k >= 0 && x[D] !== R[k]; )
            k--;
          for (; D >= 1 && k >= 0; D--, k--)
            if (x[D] !== R[k]) {
              if (D !== 1 || k !== 1)
                do
                  if (D--, k--, k < 0 || x[D] !== R[k]) {
                    var X = `
` + x[D].replace(" at new ", " at ");
                    return e.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", e.displayName)), typeof e == "function" && bc.set(e, X), X;
                  }
                while (D >= 1 && k >= 0);
              break;
            }
        }
      } finally {
        Vd = !1, ku.current = m, yc(), Error.prepareStackTrace = d;
      }
      var U = e ? e.displayName || e.name : "", ee = U ? Ga(U) : "";
      return typeof e == "function" && bc.set(e, ee), ee;
    }
    function Hd(e, t, o) {
      return Cc(e, !0);
    }
    function Fo(e, t, o) {
      return Cc(e, !1);
    }
    function G0(e) {
      var t = e.prototype;
      return !!(t && t.isReactComponent);
    }
    function Yl(e, t, o) {
      if (e == null)
        return "";
      if (typeof e == "function")
        return Cc(e, G0(e));
      if (typeof e == "string")
        return Ga(e);
      switch (e) {
        case ti:
          return Ga("Suspense");
        case Xl:
          return Ga("SuspenseList");
      }
      if (typeof e == "object")
        switch (e.$$typeof) {
          case Du:
            return Fo(e.render);
          case Nu:
            return Yl(e.type, t, o);
          case gr: {
            var l = e, d = l._payload, m = l._init;
            try {
              return Yl(m(d), t, o);
            } catch {
            }
          }
        }
      return "";
    }
    function Ht(e) {
      switch (e._debugOwner && e._debugOwner.type, e._debugSource, e.tag) {
        case O:
          return Ga(e.type);
        case G:
          return Ga("Lazy");
        case V:
          return Ga("Suspense");
        case de:
          return Ga("SuspenseList");
        case y:
        case w:
        case B:
          return Fo(e.type);
        case H:
          return Fo(e.type.render);
        case E:
          return Hd(e.type);
        default:
          return "";
      }
    }
    function _d(e) {
      try {
        var t = "", o = e;
        do
          t += Ht(o), o = o.return;
        while (o);
        return t;
      } catch (l) {
        return `
Error generating stack: ` + l.message + `
` + l.stack;
      }
    }
    function Lh(e, t, o) {
      var l = e.displayName;
      if (l)
        return l;
      var d = t.displayName || t.name || "";
      return d !== "" ? o + "(" + d + ")" : o;
    }
    function Sc(e) {
      return e.displayName || "Context";
    }
    function _t(e) {
      if (e == null)
        return null;
      if (typeof e.tag == "number" && h("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 Ci:
          return "Fragment";
        case _a:
          return "Portal";
        case Wl:
          return "Profiler";
        case Ou:
          return "StrictMode";
        case ti:
          return "Suspense";
        case Xl:
          return "SuspenseList";
      }
      if (typeof e == "object")
        switch (e.$$typeof) {
          case Ld:
            var t = e;
            return Sc(t) + ".Consumer";
          case Md:
            var o = e;
            return Sc(o._context) + ".Provider";
          case Du:
            return Lh(e, e.render, "ForwardRef");
          case Nu:
            var l = e.displayName || null;
            return l !== null ? l : _t(e.type) || "Memo";
          case gr: {
            var d = e, m = d._payload, b = d._init;
            try {
              return _t(b(m));
            } catch {
              return null;
            }
          }
        }
      return null;
    }
    function Fh(e, t, o) {
      var l = t.displayName || t.name || "";
      return e.displayName || (l !== "" ? o + "(" + l + ")" : o);
    }
    function zd(e) {
      return e.displayName || "Context";
    }
    function mt(e) {
      var t = e.tag, o = e.type;
      switch (t) {
        case Ue:
          return "Cache";
        case P:
          var l = o;
          return zd(l) + ".Consumer";
        case $:
          var d = o;
          return zd(d._context) + ".Provider";
        case ge:
          return "DehydratedFragment";
        case H:
          return Fh(o, o.render, "ForwardRef");
        case M:
          return "Fragment";
        case O:
          return o;
        case A:
          return "Portal";
        case T:
          return "Root";
        case L:
          return "Text";
        case G:
          return _t(o);
        case N:
          return o === Ou ? "StrictMode" : "Mode";
        case ye:
          return "Offscreen";
        case z:
          return "Profiler";
        case Ee:
          return "Scope";
        case V:
          return "Suspense";
        case de:
          return "SuspenseList";
        case Se:
          return "TracingMarker";
        case E:
        case y:
        case ae:
        case w:
        case j:
        case B:
          if (typeof o == "function")
            return o.displayName || o.name || null;
          if (typeof o == "string")
            return o;
          break;
      }
      return null;
    }
    var $l = u.ReactDebugCurrentFrame, wn = null, fa = !1;
    function da() {
      {
        if (wn === null)
          return null;
        var e = wn._debugOwner;
        if (e !== null && typeof e < "u")
          return mt(e);
      }
      return null;
    }
    function Ql() {
      return wn === null ? "" : _d(wn);
    }
    function Nn() {
      $l.getCurrentStack = null, wn = null, fa = !1;
    }
    function jt(e) {
      $l.getCurrentStack = e === null ? null : Ql, wn = e, fa = !1;
    }
    function j0() {
      return wn;
    }
    function ja(e) {
      fa = e;
    }
    function cr(e) {
      return "" + e;
    }
    function Ki(e) {
      switch (typeof e) {
        case "boolean":
        case "number":
        case "string":
        case "undefined":
          return e;
        case "object":
          return Or(e), e;
        default:
          return "";
      }
    }
    var Bh = {
      button: !0,
      checkbox: !0,
      image: !0,
      hidden: !0,
      radio: !0,
      reset: !0,
      submit: !0
    };
    function Mu(e, t) {
      Bh[t.type] || t.onChange || t.onInput || t.readOnly || t.disabled || t.value == null || h("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."), t.onChange || t.readOnly || t.disabled || t.checked == null || h("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.");
    }
    function Gd(e) {
      var t = e.type, o = e.nodeName;
      return o && o.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
    }
    function Vh(e) {
      return e._valueTracker;
    }
    function Jl(e) {
      e._valueTracker = null;
    }
    function ql(e) {
      var t = "";
      return e && (Gd(e) ? t = e.checked ? "true" : "false" : t = e.value), t;
    }
    function Lu(e) {
      var t = Gd(e) ? "checked" : "value", o = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
      Or(e[t]);
      var l = "" + e[t];
      if (!(e.hasOwnProperty(t) || typeof o > "u" || typeof o.get != "function" || typeof o.set != "function")) {
        var d = o.get, m = o.set;
        Object.defineProperty(e, t, {
          configurable: !0,
          get: function() {
            return d.call(this);
          },
          set: function(x) {
            Or(x), l = "" + x, m.call(this, x);
          }
        }), Object.defineProperty(e, t, {
          enumerable: o.enumerable
        });
        var b = {
          getValue: function() {
            return l;
          },
          setValue: function(x) {
            Or(x), l = "" + x;
          },
          stopTracking: function() {
            Jl(e), delete e[t];
          }
        };
        return b;
      }
    }
    function Bo(e) {
      Vh(e) || (e._valueTracker = Lu(e));
    }
    function Ph(e) {
      if (!e)
        return !1;
      var t = Vh(e);
      if (!t)
        return !0;
      var o = t.getValue(), l = ql(e);
      return l !== o ? (t.setValue(l), !0) : !1;
    }
    function Ec(e) {
      if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u")
        return null;
      try {
        return e.activeElement || e.body;
      } catch {
        return e.body;
      }
    }
    var xc = !1, Kl = !1, wc = !1, jd = !1;
    function Ei(e) {
      var t = e.type === "checkbox" || e.type === "radio";
      return t ? e.checked != null : e.value != null;
    }
    function es(e, t) {
      var o = e, l = t.checked, d = Et({}, t, {
        defaultChecked: void 0,
        defaultValue: void 0,
        value: void 0,
        checked: l ?? o._wrapperState.initialChecked
      });
      return d;
    }
    function ts(e, t) {
      Mu("input", t), t.checked !== void 0 && t.defaultChecked !== void 0 && !Kl && (h("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", da() || "A component", t.type), Kl = !0), t.value !== void 0 && t.defaultValue !== void 0 && !xc && (h("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", da() || "A component", t.type), xc = !0);
      var o = e, l = t.defaultValue == null ? "" : t.defaultValue;
      o._wrapperState = {
        initialChecked: t.checked != null ? t.checked : t.defaultChecked,
        initialValue: Ki(t.value != null ? t.value : l),
        controlled: Ei(t)
      };
    }
    function Ud(e, t) {
      var o = e, l = t.checked;
      l != null && Mo(o, "checked", l, !1);
    }
    function Fu(e, t) {
      var o = e;
      {
        var l = Ei(t);
        !o._wrapperState.controlled && l && !jd && (h("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), jd = !0), o._wrapperState.controlled && !l && !wc && (h("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), wc = !0);
      }
      Ud(e, t);
      var d = Ki(t.value), m = t.type;
      if (d != null)
        m === "number" ? (d === 0 && o.value === "" || // We explicitly want to coerce to number here if possible.
        // eslint-disable-next-line
        o.value != d) && (o.value = cr(d)) : o.value !== cr(d) && (o.value = cr(d));
      else if (m === "submit" || m === "reset") {
        o.removeAttribute("value");
        return;
      }
      t.hasOwnProperty("value") ? eo(o, t.type, d) : t.hasOwnProperty("defaultValue") && eo(o, t.type, Ki(t.defaultValue)), t.checked == null && t.defaultChecked != null && (o.defaultChecked = !!t.defaultChecked);
    }
    function ns(e, t, o) {
      var l = e;
      if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
        var d = t.type, m = d === "submit" || d === "reset";
        if (m && (t.value === void 0 || t.value === null))
          return;
        var b = cr(l._wrapperState.initialValue);
        o || b !== l.value && (l.value = b), l.defaultValue = b;
      }
      var x = l.name;
      x !== "" && (l.name = ""), l.defaultChecked = !l.defaultChecked, l.defaultChecked = !!l._wrapperState.initialChecked, x !== "" && (l.name = x);
    }
    function Hh(e, t) {
      var o = e;
      Fu(o, t), Qr(o, t);
    }
    function Qr(e, t) {
      var o = t.name;
      if (t.type === "radio" && o != null) {
        for (var l = e; l.parentNode; )
          l = l.parentNode;
        Pa(o, "name");
        for (var d = l.querySelectorAll("input[name=" + JSON.stringify("" + o) + '][type="radio"]'), m = 0; m < d.length; m++) {
          var b = d[m];
          if (!(b === e || b.form !== e.form)) {
            var x = bg(b);
            if (!x)
              throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");
            Ph(b), Fu(b, x);
          }
        }
      }
    }
    function eo(e, t, o) {
      // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
      (t !== "number" || Ec(e.ownerDocument) !== e) && (o == null ? e.defaultValue = cr(e._wrapperState.initialValue) : e.defaultValue !== cr(o) && (e.defaultValue = cr(o)));
    }
    var Rc = !1, Bu = !1, _h = !1;
    function Tc(e, t) {
      t.value == null && (typeof t.children == "object" && t.children !== null ? a.Children.forEach(t.children, function(o) {
        o != null && (typeof o == "string" || typeof o == "number" || Bu || (Bu = !0, h("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")));
      }) : t.dangerouslySetInnerHTML != null && (_h || (_h = !0, h("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))), t.selected != null && !Rc && (h("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), Rc = !0);
    }
    function Wd(e, t) {
      t.value != null && e.setAttribute("value", cr(Ki(t.value)));
    }
    var rs = Array.isArray;
    function Hn(e) {
      return rs(e);
    }
    var Ic;
    Ic = !1;
    function zh() {
      var e = da();
      return e ? `

Check the render method of \`` + e + "`." : "";
    }
    var Gh = ["value", "defaultValue"];
    function U0(e) {
      {
        Mu("select", e);
        for (var t = 0; t < Gh.length; t++) {
          var o = Gh[t];
          if (e[o] != null) {
            var l = Hn(e[o]);
            e.multiple && !l ? h("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", o, zh()) : !e.multiple && l && h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", o, zh());
          }
        }
      }
    }
    function to(e, t, o, l) {
      var d = e.options;
      if (t) {
        for (var m = o, b = {}, x = 0; x < m.length; x++)
          b["$" + m[x]] = !0;
        for (var R = 0; R < d.length; R++) {
          var D = b.hasOwnProperty("$" + d[R].value);
          d[R].selected !== D && (d[R].selected = D), D && l && (d[R].defaultSelected = !0);
        }
      } else {
        for (var k = cr(Ki(o)), X = null, U = 0; U < d.length; U++) {
          if (d[U].value === k) {
            d[U].selected = !0, l && (d[U].defaultSelected = !0);
            return;
          }
          X === null && !d[U].disabled && (X = d[U]);
        }
        X !== null && (X.selected = !0);
      }
    }
    function Xd(e, t) {
      return Et({}, t, {
        value: void 0
      });
    }
    function jh(e, t) {
      var o = e;
      U0(t), o._wrapperState = {
        wasMultiple: !!t.multiple
      }, t.value !== void 0 && t.defaultValue !== void 0 && !Ic && (h("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"), Ic = !0);
    }
    function W0(e, t) {
      var o = e;
      o.multiple = !!t.multiple;
      var l = t.value;
      l != null ? to(o, !!t.multiple, l, !1) : t.defaultValue != null && to(o, !!t.multiple, t.defaultValue, !0);
    }
    function X0(e, t) {
      var o = e, l = o._wrapperState.wasMultiple;
      o._wrapperState.wasMultiple = !!t.multiple;
      var d = t.value;
      d != null ? to(o, !!t.multiple, d, !1) : l !== !!t.multiple && (t.defaultValue != null ? to(o, !!t.multiple, t.defaultValue, !0) : to(o, !!t.multiple, t.multiple ? [] : "", !1));
    }
    function Z0(e, t) {
      var o = e, l = t.value;
      l != null && to(o, !!t.multiple, l, !1);
    }
    var Zd = !1;
    function Yd(e, t) {
      var o = e;
      if (t.dangerouslySetInnerHTML != null)
        throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
      var l = Et({}, t, {
        value: void 0,
        defaultValue: void 0,
        children: cr(o._wrapperState.initialValue)
      });
      return l;
    }
    function Uh(e, t) {
      var o = e;
      Mu("textarea", t), t.value !== void 0 && t.defaultValue !== void 0 && !Zd && (h("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components", da() || "A component"), Zd = !0);
      var l = t.value;
      if (l == null) {
        var d = t.children, m = t.defaultValue;
        if (d != null) {
          h("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");
          {
            if (m != null)
              throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
            if (Hn(d)) {
              if (d.length > 1)
                throw new Error("<textarea> can only have at most one child.");
              d = d[0];
            }
            m = d;
          }
        }
        m == null && (m = ""), l = m;
      }
      o._wrapperState = {
        initialValue: Ki(l)
      };
    }
    function Wh(e, t) {
      var o = e, l = Ki(t.value), d = Ki(t.defaultValue);
      if (l != null) {
        var m = cr(l);
        m !== o.value && (o.value = m), t.defaultValue == null && o.defaultValue !== m && (o.defaultValue = m);
      }
      d != null && (o.defaultValue = cr(d));
    }
    function Xh(e, t) {
      var o = e, l = o.textContent;
      l === o._wrapperState.initialValue && l !== "" && l !== null && (o.value = l);
    }
    function $d(e, t) {
      Wh(e, t);
    }
    var xi = "http://www.w3.org/1999/xhtml", Y0 = "http://www.w3.org/1998/Math/MathML", Qd = "http://www.w3.org/2000/svg";
    function Ac(e) {
      switch (e) {
        case "svg":
          return Qd;
        case "math":
          return Y0;
        default:
          return xi;
      }
    }
    function Jd(e, t) {
      return e == null || e === xi ? Ac(t) : e === Qd && t === "foreignObject" ? xi : e;
    }
    var $0 = function(e) {
      return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, o, l, d) {
        MSApp.execUnsafeLocalFunction(function() {
          return e(t, o, l, d);
        });
      } : e;
    }, Oc, Zh = $0(function(e, t) {
      if (e.namespaceURI === Qd && !("innerHTML" in e)) {
        Oc = Oc || document.createElement("div"), Oc.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>";
        for (var o = Oc.firstChild; e.firstChild; )
          e.removeChild(e.firstChild);
        for (; o.firstChild; )
          e.appendChild(o.firstChild);
        return;
      }
      e.innerHTML = t;
    }), Nr = 1, wi = 3, Rn = 8, Ua = 9, Vo = 11, Dc = function(e, t) {
      if (t) {
        var o = e.firstChild;
        if (o && o === e.lastChild && o.nodeType === wi) {
          o.nodeValue = t;
          return;
        }
      }
      e.textContent = t;
    }, Yh = {
      animation: ["animationDelay", "animationDirection", "animationDuration", "animationFillMode", "animationIterationCount", "animationName", "animationPlayState", "animationTimingFunction"],
      background: ["backgroundAttachment", "backgroundClip", "backgroundColor", "backgroundImage", "backgroundOrigin", "backgroundPositionX", "backgroundPositionY", "backgroundRepeat", "backgroundSize"],
      backgroundPosition: ["backgroundPositionX", "backgroundPositionY"],
      border: ["borderBottomColor", "borderBottomStyle", "borderBottomWidth", "borderImageOutset", "borderImageRepeat", "borderImageSlice", "borderImageSource", "borderImageWidth", "borderLeftColor", "borderLeftStyle", "borderLeftWidth", "borderRightColor", "borderRightStyle", "borderRightWidth", "borderTopColor", "borderTopStyle", "borderTopWidth"],
      borderBlockEnd: ["borderBlockEndColor", "borderBlockEndStyle", "borderBlockEndWidth"],
      borderBlockStart: ["borderBlockStartColor", "borderBlockStartStyle", "borderBlockStartWidth"],
      borderBottom: ["borderBottomColor", "borderBottomStyle", "borderBottomWidth"],
      borderColor: ["borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor"],
      borderImage: ["borderImageOutset", "borderImageRepeat", "borderImageSlice", "borderImageSource", "borderImageWidth"],
      borderInlineEnd: ["borderInlineEndColor", "borderInlineEndStyle", "borderInlineEndWidth"],
      borderInlineStart: ["borderInlineStartColor", "borderInlineStartStyle", "borderInlineStartWidth"],
      borderLeft: ["borderLeftColor", "borderLeftStyle", "borderLeftWidth"],
      borderRadius: ["borderBottomLeftRadius", "borderBottomRightRadius", "borderTopLeftRadius", "borderTopRightRadius"],
      borderRight: ["borderRightColor", "borderRightStyle", "borderRightWidth"],
      borderStyle: ["borderBottomStyle", "borderLeftStyle", "borderRightStyle", "borderTopStyle"],
      borderTop: ["borderTopColor", "borderTopStyle", "borderTopWidth"],
      borderWidth: ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth"],
      columnRule: ["columnRuleColor", "columnRuleStyle", "columnRuleWidth"],
      columns: ["columnCount", "columnWidth"],
      flex: ["flexBasis", "flexGrow", "flexShrink"],
      flexFlow: ["flexDirection", "flexWrap"],
      font: ["fontFamily", "fontFeatureSettings", "fontKerning", "fontLanguageOverride", "fontSize", "fontSizeAdjust", "fontStretch", "fontStyle", "fontVariant", "fontVariantAlternates", "fontVariantCaps", "fontVariantEastAsian", "fontVariantLigatures", "fontVariantNumeric", "fontVariantPosition", "fontWeight", "lineHeight"],
      fontVariant: ["fontVariantAlternates", "fontVariantCaps", "fontVariantEastAsian", "fontVariantLigatures", "fontVariantNumeric", "fontVariantPosition"],
      gap: ["columnGap", "rowGap"],
      grid: ["gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows"],
      gridArea: ["gridColumnEnd", "gridColumnStart", "gridRowEnd", "gridRowStart"],
      gridColumn: ["gridColumnEnd", "gridColumnStart"],
      gridColumnGap: ["columnGap"],
      gridGap: ["columnGap", "rowGap"],
      gridRow: ["gridRowEnd", "gridRowStart"],
      gridRowGap: ["rowGap"],
      gridTemplate: ["gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows"],
      listStyle: ["listStyleImage", "listStylePosition", "listStyleType"],
      margin: ["marginBottom", "marginLeft", "marginRight", "marginTop"],
      marker: ["markerEnd", "markerMid", "markerStart"],
      mask: ["maskClip", "maskComposite", "maskImage", "maskMode", "maskOrigin", "maskPositionX", "maskPositionY", "maskRepeat", "maskSize"],
      maskPosition: ["maskPositionX", "maskPositionY"],
      outline: ["outlineColor", "outlineStyle", "outlineWidth"],
      overflow: ["overflowX", "overflowY"],
      padding: ["paddingBottom", "paddingLeft", "paddingRight", "paddingTop"],
      placeContent: ["alignContent", "justifyContent"],
      placeItems: ["alignItems", "justifyItems"],
      placeSelf: ["alignSelf", "justifySelf"],
      textDecoration: ["textDecorationColor", "textDecorationLine", "textDecorationStyle"],
      textEmphasis: ["textEmphasisColor", "textEmphasisStyle"],
      transition: ["transitionDelay", "transitionDuration", "transitionProperty", "transitionTimingFunction"],
      wordWrap: ["overflowWrap"]
    }, Vu = {
      animationIterationCount: !0,
      aspectRatio: !0,
      borderImageOutset: !0,
      borderImageSlice: !0,
      borderImageWidth: !0,
      boxFlex: !0,
      boxFlexGroup: !0,
      boxOrdinalGroup: !0,
      columnCount: !0,
      columns: !0,
      flex: !0,
      flexGrow: !0,
      flexPositive: !0,
      flexShrink: !0,
      flexNegative: !0,
      flexOrder: !0,
      gridArea: !0,
      gridRow: !0,
      gridRowEnd: !0,
      gridRowSpan: !0,
      gridRowStart: !0,
      gridColumn: !0,
      gridColumnEnd: !0,
      gridColumnSpan: !0,
      gridColumnStart: !0,
      fontWeight: !0,
      lineClamp: !0,
      lineHeight: !0,
      opacity: !0,
      order: !0,
      orphans: !0,
      tabSize: !0,
      widows: !0,
      zIndex: !0,
      zoom: !0,
      // SVG-related properties
      fillOpacity: !0,
      floodOpacity: !0,
      stopOpacity: !0,
      strokeDasharray: !0,
      strokeDashoffset: !0,
      strokeMiterlimit: !0,
      strokeOpacity: !0,
      strokeWidth: !0
    };
    function $h(e, t) {
      return e + t.charAt(0).toUpperCase() + t.substring(1);
    }
    var Qh = ["Webkit", "ms", "Moz", "O"];
    Object.keys(Vu).forEach(function(e) {
      Qh.forEach(function(t) {
        Vu[$h(t, e)] = Vu[e];
      });
    });
    function Nc(e, t, o) {
      var l = t == null || typeof t == "boolean" || t === "";
      return l ? "" : !o && typeof t == "number" && t !== 0 && !(Vu.hasOwnProperty(e) && Vu[e]) ? t + "px" : (Yr(t, e), ("" + t).trim());
    }
    var Pu = /([A-Z])/g, Q0 = /^ms-/;
    function J0(e) {
      return e.replace(Pu, "-$1").toLowerCase().replace(Q0, "-ms-");
    }
    var Jh = function() {
    };
    {
      var qh = /^(?:webkit|moz|o)[A-Z]/, Kh = /^-ms-/, as = /-(.)/g, Hu = /;\s*$/, _u = {}, zu = {}, em = !1, qd = !1, Kd = function(e) {
        return e.replace(as, function(t, o) {
          return o.toUpperCase();
        });
      }, ep = function(e) {
        _u.hasOwnProperty(e) && _u[e] || (_u[e] = !0, h(
          "Unsupported style property %s. Did you mean %s?",
          e,
          // As Andi Smith suggests
          // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
          // is converted to lowercase `ms`.
          Kd(e.replace(Kh, "ms-"))
        ));
      }, tm = function(e) {
        _u.hasOwnProperty(e) && _u[e] || (_u[e] = !0, h("Unsupported vendor-prefixed style property %s. Did you mean %s?", e, e.charAt(0).toUpperCase() + e.slice(1)));
      }, nm = function(e, t) {
        zu.hasOwnProperty(t) && zu[t] || (zu[t] = !0, h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, e, t.replace(Hu, "")));
      }, rm = function(e, t) {
        em || (em = !0, h("`NaN` is an invalid value for the `%s` css style property.", e));
      }, q0 = function(e, t) {
        qd || (qd = !0, h("`Infinity` is an invalid value for the `%s` css style property.", e));
      };
      Jh = function(e, t) {
        e.indexOf("-") > -1 ? ep(e) : qh.test(e) ? tm(e) : Hu.test(t) && nm(e, t), typeof t == "number" && (isNaN(t) ? rm(e, t) : isFinite(t) || q0(e, t));
      };
    }
    var K0 = Jh;
    function eb(e) {
      {
        var t = "", o = "";
        for (var l in e)
          if (e.hasOwnProperty(l)) {
            var d = e[l];
            if (d != null) {
              var m = l.indexOf("--") === 0;
              t += o + (m ? l : J0(l)) + ":", t += Nc(l, d, m), o = ";";
            }
          }
        return t || null;
      }
    }
    function am(e, t) {
      var o = e.style;
      for (var l in t)
        if (t.hasOwnProperty(l)) {
          var d = l.indexOf("--") === 0;
          d || K0(l, t[l]);
          var m = Nc(l, t[l], d);
          l === "float" && (l = "cssFloat"), d ? o.setProperty(l, m) : o[l] = m;
        }
    }
    function tb(e) {
      return e == null || typeof e == "boolean" || e === "";
    }
    function pa(e) {
      var t = {};
      for (var o in e)
        for (var l = Yh[o] || [o], d = 0; d < l.length; d++)
          t[l[d]] = o;
      return t;
    }
    function is(e, t) {
      {
        if (!t)
          return;
        var o = pa(e), l = pa(t), d = {};
        for (var m in o) {
          var b = o[m], x = l[m];
          if (x && b !== x) {
            var R = b + "," + x;
            if (d[R])
              continue;
            d[R] = !0, h("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", tb(e[b]) ? "Removing" : "Updating", b, x);
          }
        }
      }
    }
    var im = {
      area: !0,
      base: !0,
      br: !0,
      col: !0,
      embed: !0,
      hr: !0,
      img: !0,
      input: !0,
      keygen: !0,
      link: !0,
      meta: !0,
      param: !0,
      source: !0,
      track: !0,
      wbr: !0
      // NOTE: menuitem's close tag should be omitted, but that causes problems.
    }, om = Et({
      menuitem: !0
    }, im), um = "__html";
    function kc(e, t) {
      if (t) {
        if (om[e] && (t.children != null || t.dangerouslySetInnerHTML != null))
          throw new Error(e + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
        if (t.dangerouslySetInnerHTML != null) {
          if (t.children != null)
            throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
          if (typeof t.dangerouslySetInnerHTML != "object" || !(um in t.dangerouslySetInnerHTML))
            throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
        }
        if (!t.suppressContentEditableWarning && t.contentEditable && t.children != null && h("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."), t.style != null && typeof t.style != "object")
          throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
      }
    }
    function Ri(e, t) {
      if (e.indexOf("-") === -1)
        return typeof t.is == "string";
      switch (e) {
        case "annotation-xml":
        case "color-profile":
        case "font-face":
        case "font-face-src":
        case "font-face-uri":
        case "font-face-format":
        case "font-face-name":
        case "missing-glyph":
          return !1;
        default:
          return !0;
      }
    }
    var Mc = {
      // HTML
      accept: "accept",
      acceptcharset: "acceptCharset",
      "accept-charset": "acceptCharset",
      accesskey: "accessKey",
      action: "action",
      allowfullscreen: "allowFullScreen",
      alt: "alt",
      as: "as",
      async: "async",
      autocapitalize: "autoCapitalize",
      autocomplete: "autoComplete",
      autocorrect: "autoCorrect",
      autofocus: "autoFocus",
      autoplay: "autoPlay",
      autosave: "autoSave",
      capture: "capture",
      cellpadding: "cellPadding",
      cellspacing: "cellSpacing",
      challenge: "challenge",
      charset: "charSet",
      checked: "checked",
      children: "children",
      cite: "cite",
      class: "className",
      classid: "classID",
      classname: "className",
      cols: "cols",
      colspan: "colSpan",
      content: "content",
      contenteditable: "contentEditable",
      contextmenu: "contextMenu",
      controls: "controls",
      controlslist: "controlsList",
      coords: "coords",
      crossorigin: "crossOrigin",
      dangerouslysetinnerhtml: "dangerouslySetInnerHTML",
      data: "data",
      datetime: "dateTime",
      default: "default",
      defaultchecked: "defaultChecked",
      defaultvalue: "defaultValue",
      defer: "defer",
      dir: "dir",
      disabled: "disabled",
      disablepictureinpicture: "disablePictureInPicture",
      disableremoteplayback: "disableRemotePlayback",
      download: "download",
      draggable: "draggable",
      enctype: "encType",
      enterkeyhint: "enterKeyHint",
      for: "htmlFor",
      form: "form",
      formmethod: "formMethod",
      formaction: "formAction",
      formenctype: "formEncType",
      formnovalidate: "formNoValidate",
      formtarget: "formTarget",
      frameborder: "frameBorder",
      headers: "headers",
      height: "height",
      hidden: "hidden",
      high: "high",
      href: "href",
      hreflang: "hrefLang",
      htmlfor: "htmlFor",
      httpequiv: "httpEquiv",
      "http-equiv": "httpEquiv",
      icon: "icon",
      id: "id",
      imagesizes: "imageSizes",
      imagesrcset: "imageSrcSet",
      innerhtml: "innerHTML",
      inputmode: "inputMode",
      integrity: "integrity",
      is: "is",
      itemid: "itemID",
      itemprop: "itemProp",
      itemref: "itemRef",
      itemscope: "itemScope",
      itemtype: "itemType",
      keyparams: "keyParams",
      keytype: "keyType",
      kind: "kind",
      label: "label",
      lang: "lang",
      list: "list",
      loop: "loop",
      low: "low",
      manifest: "manifest",
      marginwidth: "marginWidth",
      marginheight: "marginHeight",
      max: "max",
      maxlength: "maxLength",
      media: "media",
      mediagroup: "mediaGroup",
      method: "method",
      min: "min",
      minlength: "minLength",
      multiple: "multiple",
      muted: "muted",
      name: "name",
      nomodule: "noModule",
      nonce: "nonce",
      novalidate: "noValidate",
      open: "open",
      optimum: "optimum",
      pattern: "pattern",
      placeholder: "placeholder",
      playsinline: "playsInline",
      poster: "poster",
      preload: "preload",
      profile: "profile",
      radiogroup: "radioGroup",
      readonly: "readOnly",
      referrerpolicy: "referrerPolicy",
      rel: "rel",
      required: "required",
      reversed: "reversed",
      role: "role",
      rows: "rows",
      rowspan: "rowSpan",
      sandbox: "sandbox",
      scope: "scope",
      scoped: "scoped",
      scrolling: "scrolling",
      seamless: "seamless",
      selected: "selected",
      shape: "shape",
      size: "size",
      sizes: "sizes",
      span: "span",
      spellcheck: "spellCheck",
      src: "src",
      srcdoc: "srcDoc",
      srclang: "srcLang",
      srcset: "srcSet",
      start: "start",
      step: "step",
      style: "style",
      summary: "summary",
      tabindex: "tabIndex",
      target: "target",
      title: "title",
      type: "type",
      usemap: "useMap",
      value: "value",
      width: "width",
      wmode: "wmode",
      wrap: "wrap",
      // SVG
      about: "about",
      accentheight: "accentHeight",
      "accent-height": "accentHeight",
      accumulate: "accumulate",
      additive: "additive",
      alignmentbaseline: "alignmentBaseline",
      "alignment-baseline": "alignmentBaseline",
      allowreorder: "allowReorder",
      alphabetic: "alphabetic",
      amplitude: "amplitude",
      arabicform: "arabicForm",
      "arabic-form": "arabicForm",
      ascent: "ascent",
      attributename: "attributeName",
      attributetype: "attributeType",
      autoreverse: "autoReverse",
      azimuth: "azimuth",
      basefrequency: "baseFrequency",
      baselineshift: "baselineShift",
      "baseline-shift": "baselineShift",
      baseprofile: "baseProfile",
      bbox: "bbox",
      begin: "begin",
      bias: "bias",
      by: "by",
      calcmode: "calcMode",
      capheight: "capHeight",
      "cap-height": "capHeight",
      clip: "clip",
      clippath: "clipPath",
      "clip-path": "clipPath",
      clippathunits: "clipPathUnits",
      cliprule: "clipRule",
      "clip-rule": "clipRule",
      color: "color",
      colorinterpolation: "colorInterpolation",
      "color-interpolation": "colorInterpolation",
      colorinterpolationfilters: "colorInterpolationFilters",
      "color-interpolation-filters": "colorInterpolationFilters",
      colorprofile: "colorProfile",
      "color-profile": "colorProfile",
      colorrendering: "colorRendering",
      "color-rendering": "colorRendering",
      contentscripttype: "contentScriptType",
      contentstyletype: "contentStyleType",
      cursor: "cursor",
      cx: "cx",
      cy: "cy",
      d: "d",
      datatype: "datatype",
      decelerate: "decelerate",
      descent: "descent",
      diffuseconstant: "diffuseConstant",
      direction: "direction",
      display: "display",
      divisor: "divisor",
      dominantbaseline: "dominantBaseline",
      "dominant-baseline": "dominantBaseline",
      dur: "dur",
      dx: "dx",
      dy: "dy",
      edgemode: "edgeMode",
      elevation: "elevation",
      enablebackground: "enableBackground",
      "enable-background": "enableBackground",
      end: "end",
      exponent: "exponent",
      externalresourcesrequired: "externalResourcesRequired",
      fill: "fill",
      fillopacity: "fillOpacity",
      "fill-opacity": "fillOpacity",
      fillrule: "fillRule",
      "fill-rule": "fillRule",
      filter: "filter",
      filterres: "filterRes",
      filterunits: "filterUnits",
      floodopacity: "floodOpacity",
      "flood-opacity": "floodOpacity",
      floodcolor: "floodColor",
      "flood-color": "floodColor",
      focusable: "focusable",
      fontfamily: "fontFamily",
      "font-family": "fontFamily",
      fontsize: "fontSize",
      "font-size": "fontSize",
      fontsizeadjust: "fontSizeAdjust",
      "font-size-adjust": "fontSizeAdjust",
      fontstretch: "fontStretch",
      "font-stretch": "fontStretch",
      fontstyle: "fontStyle",
      "font-style": "fontStyle",
      fontvariant: "fontVariant",
      "font-variant": "fontVariant",
      fontweight: "fontWeight",
      "font-weight": "fontWeight",
      format: "format",
      from: "from",
      fx: "fx",
      fy: "fy",
      g1: "g1",
      g2: "g2",
      glyphname: "glyphName",
      "glyph-name": "glyphName",
      glyphorientationhorizontal: "glyphOrientationHorizontal",
      "glyph-orientation-horizontal": "glyphOrientationHorizontal",
      glyphorientationvertical: "glyphOrientationVertical",
      "glyph-orientation-vertical": "glyphOrientationVertical",
      glyphref: "glyphRef",
      gradienttransform: "gradientTransform",
      gradientunits: "gradientUnits",
      hanging: "hanging",
      horizadvx: "horizAdvX",
      "horiz-adv-x": "horizAdvX",
      horizoriginx: "horizOriginX",
      "horiz-origin-x": "horizOriginX",
      ideographic: "ideographic",
      imagerendering: "imageRendering",
      "image-rendering": "imageRendering",
      in2: "in2",
      in: "in",
      inlist: "inlist",
      intercept: "intercept",
      k1: "k1",
      k2: "k2",
      k3: "k3",
      k4: "k4",
      k: "k",
      kernelmatrix: "kernelMatrix",
      kernelunitlength: "kernelUnitLength",
      kerning: "kerning",
      keypoints: "keyPoints",
      keysplines: "keySplines",
      keytimes: "keyTimes",
      lengthadjust: "lengthAdjust",
      letterspacing: "letterSpacing",
      "letter-spacing": "letterSpacing",
      lightingcolor: "lightingColor",
      "lighting-color": "lightingColor",
      limitingconeangle: "limitingConeAngle",
      local: "local",
      markerend: "markerEnd",
      "marker-end": "markerEnd",
      markerheight: "markerHeight",
      markermid: "markerMid",
      "marker-mid": "markerMid",
      markerstart: "markerStart",
      "marker-start": "markerStart",
      markerunits: "markerUnits",
      markerwidth: "markerWidth",
      mask: "mask",
      maskcontentunits: "maskContentUnits",
      maskunits: "maskUnits",
      mathematical: "mathematical",
      mode: "mode",
      numoctaves: "numOctaves",
      offset: "offset",
      opacity: "opacity",
      operator: "operator",
      order: "order",
      orient: "orient",
      orientation: "orientation",
      origin: "origin",
      overflow: "overflow",
      overlineposition: "overlinePosition",
      "overline-position": "overlinePosition",
      overlinethickness: "overlineThickness",
      "overline-thickness": "overlineThickness",
      paintorder: "paintOrder",
      "paint-order": "paintOrder",
      panose1: "panose1",
      "panose-1": "panose1",
      pathlength: "pathLength",
      patterncontentunits: "patternContentUnits",
      patterntransform: "patternTransform",
      patternunits: "patternUnits",
      pointerevents: "pointerEvents",
      "pointer-events": "pointerEvents",
      points: "points",
      pointsatx: "pointsAtX",
      pointsaty: "pointsAtY",
      pointsatz: "pointsAtZ",
      prefix: "prefix",
      preservealpha: "preserveAlpha",
      preserveaspectratio: "preserveAspectRatio",
      primitiveunits: "primitiveUnits",
      property: "property",
      r: "r",
      radius: "radius",
      refx: "refX",
      refy: "refY",
      renderingintent: "renderingIntent",
      "rendering-intent": "renderingIntent",
      repeatcount: "repeatCount",
      repeatdur: "repeatDur",
      requiredextensions: "requiredExtensions",
      requiredfeatures: "requiredFeatures",
      resource: "resource",
      restart: "restart",
      result: "result",
      results: "results",
      rotate: "rotate",
      rx: "rx",
      ry: "ry",
      scale: "scale",
      security: "security",
      seed: "seed",
      shaperendering: "shapeRendering",
      "shape-rendering": "shapeRendering",
      slope: "slope",
      spacing: "spacing",
      specularconstant: "specularConstant",
      specularexponent: "specularExponent",
      speed: "speed",
      spreadmethod: "spreadMethod",
      startoffset: "startOffset",
      stddeviation: "stdDeviation",
      stemh: "stemh",
      stemv: "stemv",
      stitchtiles: "stitchTiles",
      stopcolor: "stopColor",
      "stop-color": "stopColor",
      stopopacity: "stopOpacity",
      "stop-opacity": "stopOpacity",
      strikethroughposition: "strikethroughPosition",
      "strikethrough-position": "strikethroughPosition",
      strikethroughthickness: "strikethroughThickness",
      "strikethrough-thickness": "strikethroughThickness",
      string: "string",
      stroke: "stroke",
      strokedasharray: "strokeDasharray",
      "stroke-dasharray": "strokeDasharray",
      strokedashoffset: "strokeDashoffset",
      "stroke-dashoffset": "strokeDashoffset",
      strokelinecap: "strokeLinecap",
      "stroke-linecap": "strokeLinecap",
      strokelinejoin: "strokeLinejoin",
      "stroke-linejoin": "strokeLinejoin",
      strokemiterlimit: "strokeMiterlimit",
      "stroke-miterlimit": "strokeMiterlimit",
      strokewidth: "strokeWidth",
      "stroke-width": "strokeWidth",
      strokeopacity: "strokeOpacity",
      "stroke-opacity": "strokeOpacity",
      suppresscontenteditablewarning: "suppressContentEditableWarning",
      suppresshydrationwarning: "suppressHydrationWarning",
      surfacescale: "surfaceScale",
      systemlanguage: "systemLanguage",
      tablevalues: "tableValues",
      targetx: "targetX",
      targety: "targetY",
      textanchor: "textAnchor",
      "text-anchor": "textAnchor",
      textdecoration: "textDecoration",
      "text-decoration": "textDecoration",
      textlength: "textLength",
      textrendering: "textRendering",
      "text-rendering": "textRendering",
      to: "to",
      transform: "transform",
      typeof: "typeof",
      u1: "u1",
      u2: "u2",
      underlineposition: "underlinePosition",
      "underline-position": "underlinePosition",
      underlinethickness: "underlineThickness",
      "underline-thickness": "underlineThickness",
      unicode: "unicode",
      unicodebidi: "unicodeBidi",
      "unicode-bidi": "unicodeBidi",
      unicoderange: "unicodeRange",
      "unicode-range": "unicodeRange",
      unitsperem: "unitsPerEm",
      "units-per-em": "unitsPerEm",
      unselectable: "unselectable",
      valphabetic: "vAlphabetic",
      "v-alphabetic": "vAlphabetic",
      values: "values",
      vectoreffect: "vectorEffect",
      "vector-effect": "vectorEffect",
      version: "version",
      vertadvy: "vertAdvY",
      "vert-adv-y": "vertAdvY",
      vertoriginx: "vertOriginX",
      "vert-origin-x": "vertOriginX",
      vertoriginy: "vertOriginY",
      "vert-origin-y": "vertOriginY",
      vhanging: "vHanging",
      "v-hanging": "vHanging",
      videographic: "vIdeographic",
      "v-ideographic": "vIdeographic",
      viewbox: "viewBox",
      viewtarget: "viewTarget",
      visibility: "visibility",
      vmathematical: "vMathematical",
      "v-mathematical": "vMathematical",
      vocab: "vocab",
      widths: "widths",
      wordspacing: "wordSpacing",
      "word-spacing": "wordSpacing",
      writingmode: "writingMode",
      "writing-mode": "writingMode",
      x1: "x1",
      x2: "x2",
      x: "x",
      xchannelselector: "xChannelSelector",
      xheight: "xHeight",
      "x-height": "xHeight",
      xlinkactuate: "xlinkActuate",
      "xlink:actuate": "xlinkActuate",
      xlinkarcrole: "xlinkArcrole",
      "xlink:arcrole": "xlinkArcrole",
      xlinkhref: "xlinkHref",
      "xlink:href": "xlinkHref",
      xlinkrole: "xlinkRole",
      "xlink:role": "xlinkRole",
      xlinkshow: "xlinkShow",
      "xlink:show": "xlinkShow",
      xlinktitle: "xlinkTitle",
      "xlink:title": "xlinkTitle",
      xlinktype: "xlinkType",
      "xlink:type": "xlinkType",
      xmlbase: "xmlBase",
      "xml:base": "xmlBase",
      xmllang: "xmlLang",
      "xml:lang": "xmlLang",
      xmlns: "xmlns",
      "xml:space": "xmlSpace",
      xmlnsxlink: "xmlnsXlink",
      "xmlns:xlink": "xmlnsXlink",
      xmlspace: "xmlSpace",
      y1: "y1",
      y2: "y2",
      y: "y",
      ychannelselector: "yChannelSelector",
      z: "z",
      zoomandpan: "zoomAndPan"
    }, lm = {
      "aria-current": 0,
      // state
      "aria-description": 0,
      "aria-details": 0,
      "aria-disabled": 0,
      // state
      "aria-hidden": 0,
      // state
      "aria-invalid": 0,
      // state
      "aria-keyshortcuts": 0,
      "aria-label": 0,
      "aria-roledescription": 0,
      // Widget Attributes
      "aria-autocomplete": 0,
      "aria-checked": 0,
      "aria-expanded": 0,
      "aria-haspopup": 0,
      "aria-level": 0,
      "aria-modal": 0,
      "aria-multiline": 0,
      "aria-multiselectable": 0,
      "aria-orientation": 0,
      "aria-placeholder": 0,
      "aria-pressed": 0,
      "aria-readonly": 0,
      "aria-required": 0,
      "aria-selected": 0,
      "aria-sort": 0,
      "aria-valuemax": 0,
      "aria-valuemin": 0,
      "aria-valuenow": 0,
      "aria-valuetext": 0,
      // Live Region Attributes
      "aria-atomic": 0,
      "aria-busy": 0,
      "aria-live": 0,
      "aria-relevant": 0,
      // Drag-and-Drop Attributes
      "aria-dropeffect": 0,
      "aria-grabbed": 0,
      // Relationship Attributes
      "aria-activedescendant": 0,
      "aria-colcount": 0,
      "aria-colindex": 0,
      "aria-colspan": 0,
      "aria-controls": 0,
      "aria-describedby": 0,
      "aria-errormessage": 0,
      "aria-flowto": 0,
      "aria-labelledby": 0,
      "aria-owns": 0,
      "aria-posinset": 0,
      "aria-rowcount": 0,
      "aria-rowindex": 0,
      "aria-rowspan": 0,
      "aria-setsize": 0
    }, Wa = {}, tp = new RegExp("^(aria)-[" + tt + "]*$"), os = new RegExp("^(aria)[A-Z][" + tt + "]*$");
    function np(e, t) {
      {
        if (Pt.call(Wa, t) && Wa[t])
          return !0;
        if (os.test(t)) {
          var o = "aria-" + t.slice(4).toLowerCase(), l = lm.hasOwnProperty(o) ? o : null;
          if (l == null)
            return h("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", t), Wa[t] = !0, !0;
          if (t !== l)
            return h("Invalid ARIA attribute `%s`. Did you mean `%s`?", t, l), Wa[t] = !0, !0;
        }
        if (tp.test(t)) {
          var d = t.toLowerCase(), m = lm.hasOwnProperty(d) ? d : null;
          if (m == null)
            return Wa[t] = !0, !1;
          if (t !== m)
            return h("Unknown ARIA attribute `%s`. Did you mean `%s`?", t, m), Wa[t] = !0, !0;
        }
      }
      return !0;
    }
    function sm(e, t) {
      {
        var o = [];
        for (var l in t) {
          var d = np(e, l);
          d || o.push(l);
        }
        var m = o.map(function(b) {
          return "`" + b + "`";
        }).join(", ");
        o.length === 1 ? h("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", m, e) : o.length > 1 && h("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", m, e);
      }
    }
    function Lc(e, t) {
      Ri(e, t) || sm(e, t);
    }
    var Po = !1;
    function rp(e, t) {
      {
        if (e !== "input" && e !== "textarea" && e !== "select")
          return;
        t != null && t.value === null && !Po && (Po = !0, e === "select" && t.multiple ? h("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", e) : h("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", e));
      }
    }
    var ap = function() {
    };
    {
      var _n = {}, ip = /^on./, cm = /^on[^A-Z]/, fm = new RegExp("^(aria)-[" + tt + "]*$"), dm = new RegExp("^(aria)[A-Z][" + tt + "]*$");
      ap = function(e, t, o, l) {
        if (Pt.call(_n, t) && _n[t])
          return !0;
        var d = t.toLowerCase();
        if (d === "onfocusin" || d === "onfocusout")
          return h("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."), _n[t] = !0, !0;
        if (l != null) {
          var m = l.registrationNameDependencies, b = l.possibleRegistrationNames;
          if (m.hasOwnProperty(t))
            return !0;
          var x = b.hasOwnProperty(d) ? b[d] : null;
          if (x != null)
            return h("Invalid event handler property `%s`. Did you mean `%s`?", t, x), _n[t] = !0, !0;
          if (ip.test(t))
            return h("Unknown event handler property `%s`. It will be ignored.", t), _n[t] = !0, !0;
        } else if (ip.test(t))
          return cm.test(t) && h("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", t), _n[t] = !0, !0;
        if (fm.test(t) || dm.test(t))
          return !0;
        if (d === "innerhtml")
          return h("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."), _n[t] = !0, !0;
        if (d === "aria")
          return h("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."), _n[t] = !0, !0;
        if (d === "is" && o !== null && o !== void 0 && typeof o != "string")
          return h("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof o), _n[t] = !0, !0;
        if (typeof o == "number" && isNaN(o))
          return h("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", t), _n[t] = !0, !0;
        var R = ei(t), D = R !== null && R.type === la;
        if (Mc.hasOwnProperty(d)) {
          var k = Mc[d];
          if (k !== t)
            return h("Invalid DOM property `%s`. Did you mean `%s`?", t, k), _n[t] = !0, !0;
        } else if (!D && t !== d)
          return h("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", t, d), _n[t] = !0, !0;
        return typeof o == "boolean" && sa(t, o, R, !1) ? (o ? h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', o, t, t, o, t) : h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', o, t, t, o, t, t, t), _n[t] = !0, !0) : D ? !0 : sa(t, o, R, !1) ? (_n[t] = !0, !1) : ((o === "false" || o === "true") && R !== null && R.type === Jn && (h("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", o, t, o === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', t, o), _n[t] = !0), !0);
      };
    }
    var pm = function(e, t, o) {
      {
        var l = [];
        for (var d in t) {
          var m = ap(e, d, t[d], o);
          m || l.push(d);
        }
        var b = l.map(function(x) {
          return "`" + x + "`";
        }).join(", ");
        l.length === 1 ? h("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", b, e) : l.length > 1 && h("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", b, e);
      }
    };
    function vm(e, t, o) {
      Ri(e, t) || pm(e, t, o);
    }
    var Ti = 1, us = 2, Ho = 4, nb = Ti | us | Ho, ls = null;
    function ss(e) {
      ls !== null && h("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."), ls = e;
    }
    function rb() {
      ls === null && h("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."), ls = null;
    }
    function hm(e) {
      return e === ls;
    }
    function Fc(e) {
      var t = e.target || e.srcElement || window;
      return t.correspondingUseElement && (t = t.correspondingUseElement), t.nodeType === wi ? t.parentNode : t;
    }
    var $t = null, no = null, Ii = null;
    function Gu(e) {
      var t = Sl(e);
      if (t) {
        if (typeof $t != "function")
          throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");
        var o = t.stateNode;
        if (o) {
          var l = bg(o);
          $t(t.stateNode, t.type, l);
        }
      }
    }
    function mm(e) {
      $t = e;
    }
    function Bc(e) {
      no ? Ii ? Ii.push(e) : Ii = [e] : no = e;
    }
    function cs() {
      return no !== null || Ii !== null;
    }
    function fs() {
      if (no) {
        var e = no, t = Ii;
        if (no = null, Ii = null, Gu(e), t)
          for (var o = 0; o < t.length; o++)
            Gu(t[o]);
      }
    }
    var _o = function(e, t) {
      return e(t);
    }, op = function() {
    }, up = !1;
    function ab() {
      var e = cs();
      e && (op(), fs());
    }
    function lp(e, t, o) {
      if (up)
        return e(t, o);
      up = !0;
      try {
        return _o(e, t, o);
      } finally {
        up = !1, ab();
      }
    }
    function Vc(e, t, o) {
      _o = e, op = o;
    }
    function Pc(e) {
      return e === "button" || e === "input" || e === "select" || e === "textarea";
    }
    function sp(e, t, o) {
      switch (e) {
        case "onClick":
        case "onClickCapture":
        case "onDoubleClick":
        case "onDoubleClickCapture":
        case "onMouseDown":
        case "onMouseDownCapture":
        case "onMouseMove":
        case "onMouseMoveCapture":
        case "onMouseUp":
        case "onMouseUpCapture":
        case "onMouseEnter":
          return !!(o.disabled && Pc(t));
        default:
          return !1;
      }
    }
    function zo(e, t) {
      var o = e.stateNode;
      if (o === null)
        return null;
      var l = bg(o);
      if (l === null)
        return null;
      var d = l[t];
      if (sp(t, e.type, l))
        return null;
      if (d && typeof d != "function")
        throw new Error("Expected `" + t + "` listener to be a function, instead got a value of `" + typeof d + "` type.");
      return d;
    }
    var ds = !1;
    if (Tt)
      try {
        var Go = {};
        Object.defineProperty(Go, "passive", {
          get: function() {
            ds = !0;
          }
        }), window.addEventListener("test", Go, Go), window.removeEventListener("test", Go, Go);
      } catch {
        ds = !1;
      }
    function gm(e, t, o, l, d, m, b, x, R) {
      var D = Array.prototype.slice.call(arguments, 3);
      try {
        t.apply(o, D);
      } catch (k) {
        this.onError(k);
      }
    }
    var cp = gm;
    if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
      var fp = document.createElement("react");
      cp = function(t, o, l, d, m, b, x, R, D) {
        if (typeof document > "u" || document === null)
          throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
        var k = document.createEvent("Event"), X = !1, U = !0, ee = window.event, ne = Object.getOwnPropertyDescriptor(window, "event");
        function ie() {
          fp.removeEventListener(oe, qe, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = ee);
        }
        var De = Array.prototype.slice.call(arguments, 3);
        function qe() {
          X = !0, ie(), o.apply(l, De), U = !1;
        }
        var Ye, At = !1, wt = !1;
        function J(q) {
          if (Ye = q.error, At = !0, Ye === null && q.colno === 0 && q.lineno === 0 && (wt = !0), q.defaultPrevented && Ye != null && typeof Ye == "object")
            try {
              Ye._suppressLogging = !0;
            } catch {
            }
        }
        var oe = "react-" + (t || "invokeguardedcallback");
        if (window.addEventListener("error", J), fp.addEventListener(oe, qe, !1), k.initEvent(oe, !1, !1), fp.dispatchEvent(k), ne && Object.defineProperty(window, "event", ne), X && U && (At ? wt && (Ye = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Ye = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Ye)), window.removeEventListener("error", J), !X)
          return ie(), gm.apply(this, arguments);
      };
    }
    var ib = cp, ro = !1, Xa = null, ps = !1, ao = null, ni = {
      onError: function(e) {
        ro = !0, Xa = e;
      }
    };
    function jo(e, t, o, l, d, m, b, x, R) {
      ro = !1, Xa = null, ib.apply(ni, arguments);
    }
    function Ai(e, t, o, l, d, m, b, x, R) {
      if (jo.apply(this, arguments), ro) {
        var D = pp();
        ps || (ps = !0, ao = D);
      }
    }
    function dp() {
      if (ps) {
        var e = ao;
        throw ps = !1, ao = null, e;
      }
    }
    function ob() {
      return ro;
    }
    function pp() {
      if (ro) {
        var e = Xa;
        return ro = !1, Xa = null, e;
      } else
        throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
    }
    function va(e) {
      return e._reactInternals;
    }
    function vs(e) {
      return e._reactInternals !== void 0;
    }
    function ju(e, t) {
      e._reactInternals = t;
    }
    var Je = (
      /*                      */
      0
    ), io = (
      /*                */
      1
    ), Jt = (
      /*                    */
      2
    ), yt = (
      /*                       */
      4
    ), Lt = (
      /*                */
      16
    ), Ft = (
      /*                 */
      32
    ), ri = (
      /*                     */
      64
    ), st = (
      /*                   */
      128
    ), dn = (
      /*            */
      256
    ), kr = (
      /*                          */
      512
    ), ha = (
      /*                     */
      1024
    ), tn = (
      /*                      */
      2048
    ), ma = (
      /*                    */
      4096
    ), oo = (
      /*                   */
      8192
    ), hs = (
      /*             */
      16384
    ), Hc = tn | yt | ri | kr | ha | hs, ym = (
      /*               */
      32767
    ), Jr = (
      /*                   */
      32768
    ), zn = (
      /*                */
      65536
    ), ms = (
      /* */
      131072
    ), vp = (
      /*                       */
      1048576
    ), hp = (
      /*                    */
      2097152
    ), Mr = (
      /*                 */
      4194304
    ), uo = (
      /*                */
      8388608
    ), Lr = (
      /*               */
      16777216
    ), Uo = (
      /*              */
      33554432
    ), Uu = (
      // TODO: Remove Update flag from before mutation phase by re-landing Visibility
      // flag logic (see #20043)
      yt | ha | 0
    ), Fr = Jt | yt | Lt | Ft | kr | ma | oo, fr = yt | ri | kr | oo, ga = tn | Lt, qn = Mr | uo | hp, Oi = u.ReactCurrentOwner;
    function qr(e) {
      var t = e, o = e;
      if (e.alternate)
        for (; t.return; )
          t = t.return;
      else {
        var l = t;
        do
          t = l, (t.flags & (Jt | ma)) !== Je && (o = t.return), l = t.return;
        while (l);
      }
      return t.tag === T ? o : null;
    }
    function mp(e) {
      if (e.tag === V) {
        var t = e.memoizedState;
        if (t === null) {
          var o = e.alternate;
          o !== null && (t = o.memoizedState);
        }
        if (t !== null)
          return t.dehydrated;
      }
      return null;
    }
    function _c(e) {
      return e.tag === T ? e.stateNode.containerInfo : null;
    }
    function gp(e) {
      return qr(e) === e;
    }
    function Kr(e) {
      {
        var t = Oi.current;
        if (t !== null && t.tag === E) {
          var o = t, l = o.stateNode;
          l._warnedAboutRefsInRender || h("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", mt(o) || "A component"), l._warnedAboutRefsInRender = !0;
        }
      }
      var d = va(e);
      return d ? qr(d) === d : !1;
    }
    function Br(e) {
      if (qr(e) !== e)
        throw new Error("Unable to find node on an unmounted component.");
    }
    function qt(e) {
      var t = e.alternate;
      if (!t) {
        var o = qr(e);
        if (o === null)
          throw new Error("Unable to find node on an unmounted component.");
        return o !== e ? null : e;
      }
      for (var l = e, d = t; ; ) {
        var m = l.return;
        if (m === null)
          break;
        var b = m.alternate;
        if (b === null) {
          var x = m.return;
          if (x !== null) {
            l = d = x;
            continue;
          }
          break;
        }
        if (m.child === b.child) {
          for (var R = m.child; R; ) {
            if (R === l)
              return Br(m), e;
            if (R === d)
              return Br(m), t;
            R = R.sibling;
          }
          throw new Error("Unable to find node on an unmounted component.");
        }
        if (l.return !== d.return)
          l = m, d = b;
        else {
          for (var D = !1, k = m.child; k; ) {
            if (k === l) {
              D = !0, l = m, d = b;
              break;
            }
            if (k === d) {
              D = !0, d = m, l = b;
              break;
            }
            k = k.sibling;
          }
          if (!D) {
            for (k = b.child; k; ) {
              if (k === l) {
                D = !0, l = b, d = m;
                break;
              }
              if (k === d) {
                D = !0, d = b, l = m;
                break;
              }
              k = k.sibling;
            }
            if (!D)
              throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
          }
        }
        if (l.alternate !== d)
          throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
      }
      if (l.tag !== T)
        throw new Error("Unable to find node on an unmounted component.");
      return l.stateNode.current === l ? e : t;
    }
    function ya(e) {
      var t = qt(e);
      return t !== null ? yp(t) : null;
    }
    function yp(e) {
      if (e.tag === O || e.tag === L)
        return e;
      for (var t = e.child; t !== null; ) {
        var o = yp(t);
        if (o !== null)
          return o;
        t = t.sibling;
      }
      return null;
    }
    function bm(e) {
      var t = qt(e);
      return t !== null ? zc(t) : null;
    }
    function zc(e) {
      if (e.tag === O || e.tag === L)
        return e;
      for (var t = e.child; t !== null; ) {
        if (t.tag !== A) {
          var o = zc(t);
          if (o !== null)
            return o;
        }
        t = t.sibling;
      }
      return null;
    }
    var Gc = r.unstable_scheduleCallback, Cm = r.unstable_cancelCallback, jc = r.unstable_shouldYield, Sm = r.unstable_requestPaint, an = r.unstable_now, bp = r.unstable_getCurrentPriorityLevel, Uc = r.unstable_ImmediatePriority, Wo = r.unstable_UserBlockingPriority, ai = r.unstable_NormalPriority, Em = r.unstable_LowPriority, Wc = r.unstable_IdlePriority, Wu = r.unstable_yieldValue, xm = r.unstable_setDisableYieldValue, Di = null, kn = null, we = null, ba = !1, ea = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u";
    function Cp(e) {
      if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u")
        return !1;
      var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
      if (t.isDisabled)
        return !0;
      if (!t.supportsFiber)
        return h("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"), !0;
      try {
        Oe && (e = Et({}, e, {
          getLaneLabelMap: Ni,
          injectProfilingHooks: wm
        })), Di = t.inject(e), kn = t;
      } catch (o) {
        h("React instrumentation encountered an error: %s.", o);
      }
      return !!t.checkDCE;
    }
    function Sp(e, t) {
      if (kn && typeof kn.onScheduleFiberRoot == "function")
        try {
          kn.onScheduleFiberRoot(Di, e, t);
        } catch (o) {
          ba || (ba = !0, h("React instrumentation encountered an error: %s", o));
        }
    }
    function Xu(e, t) {
      if (kn && typeof kn.onCommitFiberRoot == "function")
        try {
          var o = (e.current.flags & st) === st;
          if (Ae) {
            var l;
            switch (t) {
              case bn:
                l = Uc;
                break;
              case Mi:
                l = Wo;
                break;
              case ii:
                l = ai;
                break;
              case al:
                l = Wc;
                break;
              default:
                l = ai;
                break;
            }
            kn.onCommitFiberRoot(Di, e, l, o);
          }
        } catch (d) {
          ba || (ba = !0, h("React instrumentation encountered an error: %s", d));
        }
    }
    function Ca(e) {
      if (kn && typeof kn.onPostCommitFiberRoot == "function")
        try {
          kn.onPostCommitFiberRoot(Di, e);
        } catch (t) {
          ba || (ba = !0, h("React instrumentation encountered an error: %s", t));
        }
    }
    function Xo(e) {
      if (kn && typeof kn.onCommitFiberUnmount == "function")
        try {
          kn.onCommitFiberUnmount(Di, e);
        } catch (t) {
          ba || (ba = !0, h("React instrumentation encountered an error: %s", t));
        }
    }
    function Tn(e) {
      if (typeof Wu == "function" && (xm(e), c(e)), kn && typeof kn.setStrictMode == "function")
        try {
          kn.setStrictMode(Di, e);
        } catch (t) {
          ba || (ba = !0, h("React instrumentation encountered an error: %s", t));
        }
    }
    function wm(e) {
      we = e;
    }
    function Ni() {
      {
        for (var e = /* @__PURE__ */ new Map(), t = 1, o = 0; o < Ss; o++) {
          var l = lb(t);
          e.set(t, l), t *= 2;
        }
        return e;
      }
    }
    function lo(e) {
      we !== null && typeof we.markCommitStarted == "function" && we.markCommitStarted(e);
    }
    function Xc() {
      we !== null && typeof we.markCommitStopped == "function" && we.markCommitStopped();
    }
    function Zu(e) {
      we !== null && typeof we.markComponentRenderStarted == "function" && we.markComponentRenderStarted(e);
    }
    function Vr() {
      we !== null && typeof we.markComponentRenderStopped == "function" && we.markComponentRenderStopped();
    }
    function so(e) {
      we !== null && typeof we.markComponentPassiveEffectMountStarted == "function" && we.markComponentPassiveEffectMountStarted(e);
    }
    function Zc() {
      we !== null && typeof we.markComponentPassiveEffectMountStopped == "function" && we.markComponentPassiveEffectMountStopped();
    }
    function Rm(e) {
      we !== null && typeof we.markComponentPassiveEffectUnmountStarted == "function" && we.markComponentPassiveEffectUnmountStarted(e);
    }
    function Yc() {
      we !== null && typeof we.markComponentPassiveEffectUnmountStopped == "function" && we.markComponentPassiveEffectUnmountStopped();
    }
    function Tm(e) {
      we !== null && typeof we.markComponentLayoutEffectMountStarted == "function" && we.markComponentLayoutEffectMountStarted(e);
    }
    function gs() {
      we !== null && typeof we.markComponentLayoutEffectMountStopped == "function" && we.markComponentLayoutEffectMountStopped();
    }
    function Za(e) {
      we !== null && typeof we.markComponentLayoutEffectUnmountStarted == "function" && we.markComponentLayoutEffectUnmountStarted(e);
    }
    function Yu() {
      we !== null && typeof we.markComponentLayoutEffectUnmountStopped == "function" && we.markComponentLayoutEffectUnmountStopped();
    }
    function ys(e, t, o) {
      we !== null && typeof we.markComponentErrored == "function" && we.markComponentErrored(e, t, o);
    }
    function Zo(e, t, o) {
      we !== null && typeof we.markComponentSuspended == "function" && we.markComponentSuspended(e, t, o);
    }
    function Ep(e) {
      we !== null && typeof we.markLayoutEffectsStarted == "function" && we.markLayoutEffectsStarted(e);
    }
    function $u() {
      we !== null && typeof we.markLayoutEffectsStopped == "function" && we.markLayoutEffectsStopped();
    }
    function Im(e) {
      we !== null && typeof we.markPassiveEffectsStarted == "function" && we.markPassiveEffectsStarted(e);
    }
    function xp() {
      we !== null && typeof we.markPassiveEffectsStopped == "function" && we.markPassiveEffectsStopped();
    }
    function nn(e) {
      we !== null && typeof we.markRenderStarted == "function" && we.markRenderStarted(e);
    }
    function $c() {
      we !== null && typeof we.markRenderYielded == "function" && we.markRenderYielded();
    }
    function Qc() {
      we !== null && typeof we.markRenderStopped == "function" && we.markRenderStopped();
    }
    function wp(e) {
      we !== null && typeof we.markRenderScheduled == "function" && we.markRenderScheduled(e);
    }
    function Jc(e, t) {
      we !== null && typeof we.markForceUpdateScheduled == "function" && we.markForceUpdateScheduled(e, t);
    }
    function bs(e, t) {
      we !== null && typeof we.markStateUpdateScheduled == "function" && we.markStateUpdateScheduled(e, t);
    }
    var We = (
      /*                         */
      0
    ), Ze = (
      /*                 */
      1
    ), ct = (
      /*                    */
      2
    ), Ct = (
      /*               */
      8
    ), ta = (
      /*              */
      16
    ), Qu = Math.clz32 ? Math.clz32 : dr, Cs = Math.log, ub = Math.LN2;
    function dr(e) {
      var t = e >>> 0;
      return t === 0 ? 32 : 31 - (Cs(t) / ub | 0) | 0;
    }
    var Ss = 31, ce = (
      /*                        */
      0
    ), In = (
      /*                          */
      0
    ), $e = (
      /*                        */
      1
    ), Kn = (
      /*    */
      2
    ), na = (
      /*             */
      4
    ), ki = (
      /*            */
      8
    ), Sa = (
      /*                     */
      16
    ), Ju = (
      /*                */
      32
    ), Yo = (
      /*                       */
      4194240
    ), qu = (
      /*                        */
      64
    ), qc = (
      /*                        */
      128
    ), Kc = (
      /*                        */
      256
    ), ef = (
      /*                        */
      512
    ), tf = (
      /*                        */
      1024
    ), nf = (
      /*                        */
      2048
    ), $o = (
      /*                        */
      4096
    ), rf = (
      /*                        */
      8192
    ), Ku = (
      /*                        */
      16384
    ), el = (
      /*                       */
      32768
    ), af = (
      /*                       */
      65536
    ), Es = (
      /*                       */
      131072
    ), of = (
      /*                       */
      262144
    ), uf = (
      /*                       */
      524288
    ), lf = (
      /*                       */
      1048576
    ), sf = (
      /*                       */
      2097152
    ), tl = (
      /*                            */
      130023424
    ), Qo = (
      /*                             */
      4194304
    ), cf = (
      /*                             */
      8388608
    ), ff = (
      /*                             */
      16777216
    ), Rp = (
      /*                             */
      33554432
    ), df = (
      /*                             */
      67108864
    ), Am = Qo, xs = (
      /*          */
      134217728
    ), Tp = (
      /*                          */
      268435455
    ), nl = (
      /*               */
      268435456
    ), co = (
      /*                        */
      536870912
    ), pr = (
      /*                   */
      1073741824
    );
    function lb(e) {
      {
        if (e & $e)
          return "Sync";
        if (e & Kn)
          return "InputContinuousHydration";
        if (e & na)
          return "InputContinuous";
        if (e & ki)
          return "DefaultHydration";
        if (e & Sa)
          return "Default";
        if (e & Ju)
          return "TransitionHydration";
        if (e & Yo)
          return "Transition";
        if (e & tl)
          return "Retry";
        if (e & xs)
          return "SelectiveHydration";
        if (e & nl)
          return "IdleHydration";
        if (e & co)
          return "Idle";
        if (e & pr)
          return "Offscreen";
      }
    }
    var Qt = -1, pf = qu, Pr = Qo;
    function Jo(e) {
      switch (yn(e)) {
        case $e:
          return $e;
        case Kn:
          return Kn;
        case na:
          return na;
        case ki:
          return ki;
        case Sa:
          return Sa;
        case Ju:
          return Ju;
        case qu:
        case qc:
        case Kc:
        case ef:
        case tf:
        case nf:
        case $o:
        case rf:
        case Ku:
        case el:
        case af:
        case Es:
        case of:
        case uf:
        case lf:
        case sf:
          return e & Yo;
        case Qo:
        case cf:
        case ff:
        case Rp:
        case df:
          return e & tl;
        case xs:
          return xs;
        case nl:
          return nl;
        case co:
          return co;
        case pr:
          return pr;
        default:
          return h("Should have found matching lanes. This is a bug in React."), e;
      }
    }
    function qo(e, t) {
      var o = e.pendingLanes;
      if (o === ce)
        return ce;
      var l = ce, d = e.suspendedLanes, m = e.pingedLanes, b = o & Tp;
      if (b !== ce) {
        var x = b & ~d;
        if (x !== ce)
          l = Jo(x);
        else {
          var R = b & m;
          R !== ce && (l = Jo(R));
        }
      } else {
        var D = o & ~d;
        D !== ce ? l = Jo(D) : m !== ce && (l = Jo(m));
      }
      if (l === ce)
        return ce;
      if (t !== ce && t !== l && // If we already suspended with a delay, then interrupting is fine. Don't
      // bother waiting until the root is complete.
      (t & d) === ce) {
        var k = yn(l), X = yn(t);
        if (
          // Tests whether the next lane is equal or lower priority than the wip
          // one. This works because the bits decrease in priority as you go left.
          k >= X || // Default priority updates should not interrupt transition updates. The
          // only difference between default updates and transition updates is that
          // default updates do not support refresh transitions.
          k === Sa && (X & Yo) !== ce
        )
          return t;
      }
      (l & na) !== ce && (l |= o & Sa);
      var U = e.entangledLanes;
      if (U !== ce)
        for (var ee = e.entanglements, ne = l & U; ne > 0; ) {
          var ie = po(ne), De = 1 << ie;
          l |= ee[ie], ne &= ~De;
        }
      return l;
    }
    function Om(e, t) {
      for (var o = e.eventTimes, l = Qt; t > 0; ) {
        var d = po(t), m = 1 << d, b = o[d];
        b > l && (l = b), t &= ~m;
      }
      return l;
    }
    function Dm(e, t) {
      switch (e) {
        case $e:
        case Kn:
        case na:
          return t + 250;
        case ki:
        case Sa:
        case Ju:
        case qu:
        case qc:
        case Kc:
        case ef:
        case tf:
        case nf:
        case $o:
        case rf:
        case Ku:
        case el:
        case af:
        case Es:
        case of:
        case uf:
        case lf:
        case sf:
          return t + 5e3;
        case Qo:
        case cf:
        case ff:
        case Rp:
        case df:
          return Qt;
        case xs:
        case nl:
        case co:
        case pr:
          return Qt;
        default:
          return h("Should have found matching lanes. This is a bug in React."), Qt;
      }
    }
    function Nm(e, t) {
      for (var o = e.pendingLanes, l = e.suspendedLanes, d = e.pingedLanes, m = e.expirationTimes, b = o; b > 0; ) {
        var x = po(b), R = 1 << x, D = m[x];
        D === Qt ? ((R & l) === ce || (R & d) !== ce) && (m[x] = Dm(R, t)) : D <= t && (e.expiredLanes |= R), b &= ~R;
      }
    }
    function Ip(e) {
      return Jo(e.pendingLanes);
    }
    function fo(e) {
      var t = e.pendingLanes & ~pr;
      return t !== ce ? t : t & pr ? pr : ce;
    }
    function Ap(e) {
      return (e & $e) !== ce;
    }
    function ws(e) {
      return (e & Tp) !== ce;
    }
    function km(e) {
      return (e & tl) === e;
    }
    function Mm(e) {
      var t = $e | na | Sa;
      return (e & t) === ce;
    }
    function Lm(e) {
      return (e & Yo) === e;
    }
    function Rs(e, t) {
      var o = Kn | na | ki | Sa;
      return (t & o) !== ce;
    }
    function Fm(e, t) {
      return (t & e.expiredLanes) !== ce;
    }
    function Op(e) {
      return (e & Yo) !== ce;
    }
    function Bm() {
      var e = pf;
      return pf <<= 1, (pf & Yo) === ce && (pf = qu), e;
    }
    function Hr() {
      var e = Pr;
      return Pr <<= 1, (Pr & tl) === ce && (Pr = Qo), e;
    }
    function yn(e) {
      return e & -e;
    }
    function rl(e) {
      return yn(e);
    }
    function po(e) {
      return 31 - Qu(e);
    }
    function vf(e) {
      return po(e);
    }
    function _r(e, t) {
      return (e & t) !== ce;
    }
    function Ko(e, t) {
      return (e & t) === t;
    }
    function gt(e, t) {
      return e | t;
    }
    function Ts(e, t) {
      return e & ~t;
    }
    function hf(e, t) {
      return e & t;
    }
    function sb(e) {
      return e;
    }
    function Vm(e, t) {
      return e !== In && e < t ? e : t;
    }
    function Is(e) {
      for (var t = [], o = 0; o < Ss; o++)
        t.push(e);
      return t;
    }
    function eu(e, t, o) {
      e.pendingLanes |= t, t !== co && (e.suspendedLanes = ce, e.pingedLanes = ce);
      var l = e.eventTimes, d = vf(t);
      l[d] = o;
    }
    function Pm(e, t) {
      e.suspendedLanes |= t, e.pingedLanes &= ~t;
      for (var o = e.expirationTimes, l = t; l > 0; ) {
        var d = po(l), m = 1 << d;
        o[d] = Qt, l &= ~m;
      }
    }
    function mf(e, t, o) {
      e.pingedLanes |= e.suspendedLanes & t;
    }
    function gf(e, t) {
      var o = e.pendingLanes & ~t;
      e.pendingLanes = t, e.suspendedLanes = ce, e.pingedLanes = ce, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t;
      for (var l = e.entanglements, d = e.eventTimes, m = e.expirationTimes, b = o; b > 0; ) {
        var x = po(b), R = 1 << x;
        l[x] = ce, d[x] = Qt, m[x] = Qt, b &= ~R;
      }
    }
    function Dp(e, t) {
      for (var o = e.entangledLanes |= t, l = e.entanglements, d = o; d; ) {
        var m = po(d), b = 1 << m;
        // Is this one of the newly entangled lanes?
        b & t | // Is this lane transitively entangled with the newly entangled lanes?
        l[m] & t && (l[m] |= t), d &= ~b;
      }
    }
    function Hm(e, t) {
      var o = yn(t), l;
      switch (o) {
        case na:
          l = Kn;
          break;
        case Sa:
          l = ki;
          break;
        case qu:
        case qc:
        case Kc:
        case ef:
        case tf:
        case nf:
        case $o:
        case rf:
        case Ku:
        case el:
        case af:
        case Es:
        case of:
        case uf:
        case lf:
        case sf:
        case Qo:
        case cf:
        case ff:
        case Rp:
        case df:
          l = Ju;
          break;
        case co:
          l = nl;
          break;
        default:
          l = In;
          break;
      }
      return (l & (e.suspendedLanes | t)) !== In ? In : l;
    }
    function yf(e, t, o) {
      if (ea)
        for (var l = e.pendingUpdatersLaneMap; o > 0; ) {
          var d = vf(o), m = 1 << d, b = l[d];
          b.add(t), o &= ~m;
        }
    }
    function Np(e, t) {
      if (ea)
        for (var o = e.pendingUpdatersLaneMap, l = e.memoizedUpdaters; t > 0; ) {
          var d = vf(t), m = 1 << d, b = o[d];
          b.size > 0 && (b.forEach(function(x) {
            var R = x.alternate;
            (R === null || !l.has(R)) && l.add(x);
          }), b.clear()), t &= ~m;
        }
    }
    function As(e, t) {
      return null;
    }
    var bn = $e, Mi = na, ii = Sa, al = co, il = In;
    function Ea() {
      return il;
    }
    function pn(e) {
      il = e;
    }
    function vr(e, t) {
      var o = il;
      try {
        return il = e, t();
      } finally {
        il = o;
      }
    }
    function cb(e, t) {
      return e !== 0 && e < t ? e : t;
    }
    function fb(e, t) {
      return e > t ? e : t;
    }
    function ol(e, t) {
      return e !== 0 && e < t;
    }
    function er(e) {
      var t = yn(e);
      return ol(bn, t) ? ol(Mi, t) ? ws(t) ? ii : al : Mi : bn;
    }
    function bf(e) {
      var t = e.current.memoizedState;
      return t.isDehydrated;
    }
    var Ve;
    function ul(e) {
      Ve = e;
    }
    function kp(e) {
      Ve(e);
    }
    var Cf;
    function db(e) {
      Cf = e;
    }
    var ll;
    function Sf(e) {
      ll = e;
    }
    var Ef;
    function _m(e) {
      Ef = e;
    }
    var Mp;
    function zm(e) {
      Mp = e;
    }
    var Os = !1, sl = [], rn = null, Gn = null, yr = null, cl = /* @__PURE__ */ new Map(), fl = /* @__PURE__ */ new Map(), jn = [], Gm = [
      "mousedown",
      "mouseup",
      "touchcancel",
      "touchend",
      "touchstart",
      "auxclick",
      "dblclick",
      "pointercancel",
      "pointerdown",
      "pointerup",
      "dragend",
      "dragstart",
      "drop",
      "compositionend",
      "compositionstart",
      "keydown",
      "keypress",
      "keyup",
      "input",
      "textInput",
      // Intentionally camelCase
      "copy",
      "cut",
      "paste",
      "click",
      "change",
      "contextmenu",
      "reset",
      "submit"
    ];
    function oi(e) {
      return Gm.indexOf(e) > -1;
    }
    function pb(e, t, o, l, d) {
      return {
        blockedOn: e,
        domEventName: t,
        eventSystemFlags: o,
        nativeEvent: d,
        targetContainers: [l]
      };
    }
    function Lp(e, t) {
      switch (e) {
        case "focusin":
        case "focusout":
          rn = null;
          break;
        case "dragenter":
        case "dragleave":
          Gn = null;
          break;
        case "mouseover":
        case "mouseout":
          yr = null;
          break;
        case "pointerover":
        case "pointerout": {
          var o = t.pointerId;
          cl.delete(o);
          break;
        }
        case "gotpointercapture":
        case "lostpointercapture": {
          var l = t.pointerId;
          fl.delete(l);
          break;
        }
      }
    }
    function dl(e, t, o, l, d, m) {
      if (e === null || e.nativeEvent !== m) {
        var b = pb(t, o, l, d, m);
        if (t !== null) {
          var x = Sl(t);
          x !== null && Cf(x);
        }
        return b;
      }
      e.eventSystemFlags |= l;
      var R = e.targetContainers;
      return d !== null && R.indexOf(d) === -1 && R.push(d), e;
    }
    function jm(e, t, o, l, d) {
      switch (t) {
        case "focusin": {
          var m = d;
          return rn = dl(rn, e, t, o, l, m), !0;
        }
        case "dragenter": {
          var b = d;
          return Gn = dl(Gn, e, t, o, l, b), !0;
        }
        case "mouseover": {
          var x = d;
          return yr = dl(yr, e, t, o, l, x), !0;
        }
        case "pointerover": {
          var R = d, D = R.pointerId;
          return cl.set(D, dl(cl.get(D) || null, e, t, o, l, R)), !0;
        }
        case "gotpointercapture": {
          var k = d, X = k.pointerId;
          return fl.set(X, dl(fl.get(X) || null, e, t, o, l, k)), !0;
        }
      }
      return !1;
    }
    function Fp(e) {
      var t = zs(e.target);
      if (t !== null) {
        var o = qr(t);
        if (o !== null) {
          var l = o.tag;
          if (l === V) {
            var d = mp(o);
            if (d !== null) {
              e.blockedOn = d, Mp(e.priority, function() {
                ll(o);
              });
              return;
            }
          } else if (l === T) {
            var m = o.stateNode;
            if (bf(m)) {
              e.blockedOn = _c(o);
              return;
            }
          }
        }
      }
      e.blockedOn = null;
    }
    function vb(e) {
      for (var t = Ef(), o = {
        blockedOn: null,
        target: e,
        priority: t
      }, l = 0; l < jn.length && ol(t, jn[l].priority); l++)
        ;
      jn.splice(l, 0, o), l === 0 && Fp(o);
    }
    function tu(e) {
      if (e.blockedOn !== null)
        return !1;
      for (var t = e.targetContainers; t.length > 0; ) {
        var o = t[0], l = hr(e.domEventName, e.eventSystemFlags, o, e.nativeEvent);
        if (l === null) {
          var d = e.nativeEvent, m = new d.constructor(d.type, d);
          ss(m), d.target.dispatchEvent(m), rb();
        } else {
          var b = Sl(l);
          return b !== null && Cf(b), e.blockedOn = l, !1;
        }
        t.shift();
      }
      return !0;
    }
    function xf(e, t, o) {
      tu(e) && o.delete(t);
    }
    function xa() {
      Os = !1, rn !== null && tu(rn) && (rn = null), Gn !== null && tu(Gn) && (Gn = null), yr !== null && tu(yr) && (yr = null), cl.forEach(xf), fl.forEach(xf);
    }
    function xt(e, t) {
      e.blockedOn === t && (e.blockedOn = null, Os || (Os = !0, r.unstable_scheduleCallback(r.unstable_NormalPriority, xa)));
    }
    function vn(e) {
      if (sl.length > 0) {
        xt(sl[0], e);
        for (var t = 1; t < sl.length; t++) {
          var o = sl[t];
          o.blockedOn === e && (o.blockedOn = null);
        }
      }
      rn !== null && xt(rn, e), Gn !== null && xt(Gn, e), yr !== null && xt(yr, e);
      var l = function(x) {
        return xt(x, e);
      };
      cl.forEach(l), fl.forEach(l);
      for (var d = 0; d < jn.length; d++) {
        var m = jn[d];
        m.blockedOn === e && (m.blockedOn = null);
      }
      for (; jn.length > 0; ) {
        var b = jn[0];
        if (b.blockedOn !== null)
          break;
        Fp(b), b.blockedOn === null && jn.shift();
      }
    }
    var Kt = u.ReactCurrentBatchConfig, Mn = !0;
    function zr(e) {
      Mn = !!e;
    }
    function pl() {
      return Mn;
    }
    function Ln(e, t, o) {
      var l = wf(t), d;
      switch (l) {
        case bn:
          d = Ds;
          break;
        case Mi:
          d = nu;
          break;
        case ii:
        default:
          d = vl;
          break;
      }
      return d.bind(null, t, o, e);
    }
    function Ds(e, t, o, l) {
      var d = Ea(), m = Kt.transition;
      Kt.transition = null;
      try {
        pn(bn), vl(e, t, o, l);
      } finally {
        pn(d), Kt.transition = m;
      }
    }
    function nu(e, t, o, l) {
      var d = Ea(), m = Kt.transition;
      Kt.transition = null;
      try {
        pn(Mi), vl(e, t, o, l);
      } finally {
        pn(d), Kt.transition = m;
      }
    }
    function vl(e, t, o, l) {
      Mn && Bp(e, t, o, l);
    }
    function Bp(e, t, o, l) {
      var d = hr(e, t, o, l);
      if (d === null) {
        Nb(e, t, l, vo, o), Lp(e, l);
        return;
      }
      if (jm(d, e, t, o, l)) {
        l.stopPropagation();
        return;
      }
      if (Lp(e, l), t & Ho && oi(e)) {
        for (; d !== null; ) {
          var m = Sl(d);
          m !== null && kp(m);
          var b = hr(e, t, o, l);
          if (b === null && Nb(e, t, l, vo, o), b === d)
            break;
          d = b;
        }
        d !== null && l.stopPropagation();
        return;
      }
      Nb(e, t, l, null, o);
    }
    var vo = null;
    function hr(e, t, o, l) {
      vo = null;
      var d = Fc(l), m = zs(d);
      if (m !== null) {
        var b = qr(m);
        if (b === null)
          m = null;
        else {
          var x = b.tag;
          if (x === V) {
            var R = mp(b);
            if (R !== null)
              return R;
            m = null;
          } else if (x === T) {
            var D = b.stateNode;
            if (bf(D))
              return _c(b);
            m = null;
          } else
            b !== m && (m = null);
        }
      }
      return vo = m, null;
    }
    function wf(e) {
      switch (e) {
        case "cancel":
        case "click":
        case "close":
        case "contextmenu":
        case "copy":
        case "cut":
        case "auxclick":
        case "dblclick":
        case "dragend":
        case "dragstart":
        case "drop":
        case "focusin":
        case "focusout":
        case "input":
        case "invalid":
        case "keydown":
        case "keypress":
        case "keyup":
        case "mousedown":
        case "mouseup":
        case "paste":
        case "pause":
        case "play":
        case "pointercancel":
        case "pointerdown":
        case "pointerup":
        case "ratechange":
        case "reset":
        case "resize":
        case "seeked":
        case "submit":
        case "touchcancel":
        case "touchend":
        case "touchstart":
        case "volumechange":
        case "change":
        case "selectionchange":
        case "textInput":
        case "compositionstart":
        case "compositionend":
        case "compositionupdate":
        case "beforeblur":
        case "afterblur":
        case "beforeinput":
        case "blur":
        case "fullscreenchange":
        case "focus":
        case "hashchange":
        case "popstate":
        case "select":
        case "selectstart":
          return bn;
        case "drag":
        case "dragenter":
        case "dragexit":
        case "dragleave":
        case "dragover":
        case "mousemove":
        case "mouseout":
        case "mouseover":
        case "pointermove":
        case "pointerout":
        case "pointerover":
        case "scroll":
        case "toggle":
        case "touchmove":
        case "wheel":
        case "mouseenter":
        case "mouseleave":
        case "pointerenter":
        case "pointerleave":
          return Mi;
        case "message": {
          var t = bp();
          switch (t) {
            case Uc:
              return bn;
            case Wo:
              return Mi;
            case ai:
            case Em:
              return ii;
            case Wc:
              return al;
            default:
              return ii;
          }
        }
        default:
          return ii;
      }
    }
    function hl(e, t, o) {
      return e.addEventListener(t, o, !1), o;
    }
    function Li(e, t, o) {
      return e.addEventListener(t, o, !0), o;
    }
    function Rf(e, t, o, l) {
      return e.addEventListener(t, o, {
        capture: !0,
        passive: l
      }), o;
    }
    function Vp(e, t, o, l) {
      return e.addEventListener(t, o, {
        passive: l
      }), o;
    }
    var wa = null, ml = null, Ra = null;
    function Tf(e) {
      return wa = e, ml = ks(), !0;
    }
    function Ns() {
      wa = null, ml = null, Ra = null;
    }
    function If() {
      if (Ra)
        return Ra;
      var e, t = ml, o = t.length, l, d = ks(), m = d.length;
      for (e = 0; e < o && t[e] === d[e]; e++)
        ;
      var b = o - e;
      for (l = 1; l <= b && t[o - l] === d[m - l]; l++)
        ;
      var x = l > 1 ? 1 - l : void 0;
      return Ra = d.slice(e, x), Ra;
    }
    function ks() {
      return "value" in wa ? wa.value : wa.textContent;
    }
    function ru(e) {
      var t, o = e.keyCode;
      return "charCode" in e ? (t = e.charCode, t === 0 && o === 13 && (t = 13)) : t = o, t === 10 && (t = 13), t >= 32 || t === 13 ? t : 0;
    }
    function Un() {
      return !0;
    }
    function Fi() {
      return !1;
    }
    function on(e) {
      function t(o, l, d, m, b) {
        this._reactName = o, this._targetInst = d, this.type = l, this.nativeEvent = m, this.target = b, this.currentTarget = null;
        for (var x in e)
          if (e.hasOwnProperty(x)) {
            var R = e[x];
            R ? this[x] = R(m) : this[x] = m[x];
          }
        var D = m.defaultPrevented != null ? m.defaultPrevented : m.returnValue === !1;
        return D ? this.isDefaultPrevented = Un : this.isDefaultPrevented = Fi, this.isPropagationStopped = Fi, this;
      }
      return Et(t.prototype, {
        preventDefault: function() {
          this.defaultPrevented = !0;
          var o = this.nativeEvent;
          o && (o.preventDefault ? o.preventDefault() : typeof o.returnValue != "unknown" && (o.returnValue = !1), this.isDefaultPrevented = Un);
        },
        stopPropagation: function() {
          var o = this.nativeEvent;
          o && (o.stopPropagation ? o.stopPropagation() : typeof o.cancelBubble != "unknown" && (o.cancelBubble = !0), this.isPropagationStopped = Un);
        },
        /**
         * We release all dispatched `SyntheticEvent`s after each event loop, adding
         * them back into the pool. This allows a way to hold onto a reference that
         * won't be added back into the pool.
         */
        persist: function() {
        },
        /**
         * Checks if this event should be released back into the pool.
         *
         * @return {boolean} True if this should not be released, false otherwise.
         */
        isPersistent: Un
      }), t;
    }
    var Fn = {
      eventPhase: 0,
      bubbles: 0,
      cancelable: 0,
      timeStamp: function(e) {
        return e.timeStamp || Date.now();
      },
      defaultPrevented: 0,
      isTrusted: 0
    }, Af = on(Fn), au = Et({}, Fn, {
      view: 0,
      detail: 0
    }), Pp = on(au), Hp, ui, gl;
    function _p(e) {
      e !== gl && (gl && e.type === "mousemove" ? (Hp = e.screenX - gl.screenX, ui = e.screenY - gl.screenY) : (Hp = 0, ui = 0), gl = e);
    }
    var li = Et({}, au, {
      screenX: 0,
      screenY: 0,
      clientX: 0,
      clientY: 0,
      pageX: 0,
      pageY: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      getModifierState: zp,
      button: 0,
      buttons: 0,
      relatedTarget: function(e) {
        return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
      },
      movementX: function(e) {
        return "movementX" in e ? e.movementX : (_p(e), Hp);
      },
      movementY: function(e) {
        return "movementY" in e ? e.movementY : ui;
      }
    }), Of = on(li), iu = Et({}, li, {
      dataTransfer: 0
    }), Um = on(iu), Wm = Et({}, au, {
      relatedTarget: 0
    }), Ms = on(Wm), Df = Et({}, Fn, {
      animationName: 0,
      elapsedTime: 0,
      pseudoElement: 0
    }), hb = on(Df), mb = Et({}, Fn, {
      clipboardData: function(e) {
        return "clipboardData" in e ? e.clipboardData : window.clipboardData;
      }
    }), Xm = on(mb), Zm = Et({}, Fn, {
      data: 0
    }), ho = on(Zm), gb = ho, yl = {
      Esc: "Escape",
      Spacebar: " ",
      Left: "ArrowLeft",
      Up: "ArrowUp",
      Right: "ArrowRight",
      Down: "ArrowDown",
      Del: "Delete",
      Win: "OS",
      Menu: "ContextMenu",
      Apps: "ContextMenu",
      Scroll: "ScrollLock",
      MozPrintableKey: "Unidentified"
    }, Ym = {
      8: "Backspace",
      9: "Tab",
      12: "Clear",
      13: "Enter",
      16: "Shift",
      17: "Control",
      18: "Alt",
      19: "Pause",
      20: "CapsLock",
      27: "Escape",
      32: " ",
      33: "PageUp",
      34: "PageDown",
      35: "End",
      36: "Home",
      37: "ArrowLeft",
      38: "ArrowUp",
      39: "ArrowRight",
      40: "ArrowDown",
      45: "Insert",
      46: "Delete",
      112: "F1",
      113: "F2",
      114: "F3",
      115: "F4",
      116: "F5",
      117: "F6",
      118: "F7",
      119: "F8",
      120: "F9",
      121: "F10",
      122: "F11",
      123: "F12",
      144: "NumLock",
      145: "ScrollLock",
      224: "Meta"
    };
    function hn(e) {
      if (e.key) {
        var t = yl[e.key] || e.key;
        if (t !== "Unidentified")
          return t;
      }
      if (e.type === "keypress") {
        var o = ru(e);
        return o === 13 ? "Enter" : String.fromCharCode(o);
      }
      return e.type === "keydown" || e.type === "keyup" ? Ym[e.keyCode] || "Unidentified" : "";
    }
    var yb = {
      Alt: "altKey",
      Control: "ctrlKey",
      Meta: "metaKey",
      Shift: "shiftKey"
    };
    function $m(e) {
      var t = this, o = t.nativeEvent;
      if (o.getModifierState)
        return o.getModifierState(e);
      var l = yb[e];
      return l ? !!o[l] : !1;
    }
    function zp(e) {
      return $m;
    }
    var bb = Et({}, au, {
      key: hn,
      code: 0,
      location: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      repeat: 0,
      locale: 0,
      getModifierState: zp,
      // Legacy Interface
      charCode: function(e) {
        return e.type === "keypress" ? ru(e) : 0;
      },
      keyCode: function(e) {
        return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
      },
      which: function(e) {
        return e.type === "keypress" ? ru(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
      }
    }), Qm = on(bb), Jm = Et({}, li, {
      pointerId: 0,
      width: 0,
      height: 0,
      pressure: 0,
      tangentialPressure: 0,
      tiltX: 0,
      tiltY: 0,
      twist: 0,
      pointerType: 0,
      isPrimary: 0
    }), qm = on(Jm), Ta = Et({}, au, {
      touches: 0,
      targetTouches: 0,
      changedTouches: 0,
      altKey: 0,
      metaKey: 0,
      ctrlKey: 0,
      shiftKey: 0,
      getModifierState: zp
    }), Gp = on(Ta), Cb = Et({}, Fn, {
      propertyName: 0,
      elapsedTime: 0,
      pseudoElement: 0
    }), mo = on(Cb), Nf = Et({}, li, {
      deltaX: function(e) {
        return "deltaX" in e ? e.deltaX : (
          // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
          "wheelDeltaX" in e ? -e.wheelDeltaX : 0
        );
      },
      deltaY: function(e) {
        return "deltaY" in e ? e.deltaY : (
          // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
          "wheelDeltaY" in e ? -e.wheelDeltaY : (
            // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
            "wheelDelta" in e ? -e.wheelDelta : 0
          )
        );
      },
      deltaZ: 0,
      // Browsers without "deltaMode" is reporting in raw wheel delta where one
      // notch on the scroll is always +/- 120, roughly equivalent to pixels.
      // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
      // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
      deltaMode: 0
    }), ou = on(Nf), kf = [9, 13, 27, 32], Mf = 229, Ls = Tt && "CompositionEvent" in window, Fs = null;
    Tt && "documentMode" in document && (Fs = document.documentMode);
    var jp = Tt && "TextEvent" in window && !Fs, Km = Tt && (!Ls || Fs && Fs > 8 && Fs <= 11), Up = 32, Wp = String.fromCharCode(Up);
    function Lf() {
      Rt("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), Rt("onCompositionEnd", ["compositionend", "focusout", "keydown", "keypress", "keyup", "mousedown"]), Rt("onCompositionStart", ["compositionstart", "focusout", "keydown", "keypress", "keyup", "mousedown"]), Rt("onCompositionUpdate", ["compositionupdate", "focusout", "keydown", "keypress", "keyup", "mousedown"]);
    }
    var Bs = !1;
    function eg(e) {
      return (e.ctrlKey || e.altKey || e.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
      !(e.ctrlKey && e.altKey);
    }
    function Xp(e) {
      switch (e) {
        case "compositionstart":
          return "onCompositionStart";
        case "compositionend":
          return "onCompositionEnd";
        case "compositionupdate":
          return "onCompositionUpdate";
      }
    }
    function Sb(e, t) {
      return e === "keydown" && t.keyCode === Mf;
    }
    function Zp(e, t) {
      switch (e) {
        case "keyup":
          return kf.indexOf(t.keyCode) !== -1;
        case "keydown":
          return t.keyCode !== Mf;
        case "keypress":
        case "mousedown":
        case "focusout":
          return !0;
        default:
          return !1;
      }
    }
    function Ff(e) {
      var t = e.detail;
      return typeof t == "object" && "data" in t ? t.data : null;
    }
    function Vs(e) {
      return e.locale === "ko";
    }
    var go = !1;
    function Bf(e, t, o, l, d) {
      var m, b;
      if (Ls ? m = Xp(t) : go ? Zp(t, l) && (m = "onCompositionEnd") : Sb(t, l) && (m = "onCompositionStart"), !m)
        return null;
      Km && !Vs(l) && (!go && m === "onCompositionStart" ? go = Tf(d) : m === "onCompositionEnd" && go && (b = If()));
      var x = og(o, m);
      if (x.length > 0) {
        var R = new ho(m, t, null, l, d);
        if (e.push({
          event: R,
          listeners: x
        }), b)
          R.data = b;
        else {
          var D = Ff(l);
          D !== null && (R.data = D);
        }
      }
    }
    function tg(e, t) {
      switch (e) {
        case "compositionend":
          return Ff(t);
        case "keypress":
          var o = t.which;
          return o !== Up ? null : (Bs = !0, Wp);
        case "textInput":
          var l = t.data;
          return l === Wp && Bs ? null : l;
        default:
          return null;
      }
    }
    function Eb(e, t) {
      if (go) {
        if (e === "compositionend" || !Ls && Zp(e, t)) {
          var o = If();
          return Ns(), go = !1, o;
        }
        return null;
      }
      switch (e) {
        case "paste":
          return null;
        case "keypress":
          if (!eg(t)) {
            if (t.char && t.char.length > 1)
              return t.char;
            if (t.which)
              return String.fromCharCode(t.which);
          }
          return null;
        case "compositionend":
          return Km && !Vs(t) ? null : t.data;
        default:
          return null;
      }
    }
    function Vf(e, t, o, l, d) {
      var m;
      if (jp ? m = tg(t, l) : m = Eb(t, l), !m)
        return null;
      var b = og(o, "onBeforeInput");
      if (b.length > 0) {
        var x = new gb("onBeforeInput", "beforeinput", null, l, d);
        e.push({
          event: x,
          listeners: b
        }), x.data = m;
      }
    }
    function xb(e, t, o, l, d, m, b) {
      Bf(e, t, o, l, d), Vf(e, t, o, l, d);
    }
    var Ps = {
      color: !0,
      date: !0,
      datetime: !0,
      "datetime-local": !0,
      email: !0,
      month: !0,
      number: !0,
      password: !0,
      range: !0,
      search: !0,
      tel: !0,
      text: !0,
      time: !0,
      url: !0,
      week: !0
    };
    function ng(e) {
      var t = e && e.nodeName && e.nodeName.toLowerCase();
      return t === "input" ? !!Ps[e.type] : t === "textarea";
    }
    /**
     * Checks if an event is supported in the current execution environment.
     *
     * NOTE: This will not work correctly for non-generic events such as `change`,
     * `reset`, `load`, `error`, and `select`.
     *
     * Borrows from Modernizr.
     *
     * @param {string} eventNameSuffix Event name, e.g. "click".
     * @return {boolean} True if the event is supported.
     * @internal
     * @license Modernizr 3.0.0pre (Custom Build) | MIT
     */
    function Pf(e) {
      if (!Tt)
        return !1;
      var t = "on" + e, o = t in document;
      if (!o) {
        var l = document.createElement("div");
        l.setAttribute(t, "return;"), o = typeof l[t] == "function";
      }
      return o;
    }
    function n() {
      Rt("onChange", ["change", "click", "focusin", "focusout", "input", "keydown", "keyup", "selectionchange"]);
    }
    function i(e, t, o, l) {
      Bc(l);
      var d = og(t, "onChange");
      if (d.length > 0) {
        var m = new Af("onChange", "change", null, o, l);
        e.push({
          event: m,
          listeners: d
        });
      }
    }
    var s = null, v = null;
    function g(e) {
      var t = e.nodeName && e.nodeName.toLowerCase();
      return t === "select" || t === "input" && e.type === "file";
    }
    function S(e) {
      var t = [];
      i(t, v, e, Fc(e)), lp(I, t);
    }
    function I(e) {
      Cx(e, 0);
    }
    function F(e) {
      var t = Uf(e);
      if (Ph(t))
        return e;
    }
    function _(e, t) {
      if (e === "change")
        return t;
    }
    var te = !1;
    Tt && (te = Pf("input") && (!document.documentMode || document.documentMode > 9));
    function pe(e, t) {
      s = e, v = t, s.attachEvent("onpropertychange", fe);
    }
    function ve() {
      s && (s.detachEvent("onpropertychange", fe), s = null, v = null);
    }
    function fe(e) {
      e.propertyName === "value" && F(v) && S(e);
    }
    function Le(e, t, o) {
      e === "focusin" ? (ve(), pe(t, o)) : e === "focusout" && ve();
    }
    function He(e, t) {
      if (e === "selectionchange" || e === "keyup" || e === "keydown")
        return F(v);
    }
    function Ge(e) {
      var t = e.nodeName;
      return t && t.toLowerCase() === "input" && (e.type === "checkbox" || e.type === "radio");
    }
    function Cn(e, t) {
      if (e === "click")
        return F(t);
    }
    function Q(e, t) {
      if (e === "input" || e === "change")
        return F(t);
    }
    function W(e) {
      var t = e._wrapperState;
      !t || !t.controlled || e.type !== "number" || eo(e, "number", e.value);
    }
    function K(e, t, o, l, d, m, b) {
      var x = o ? Uf(o) : window, R, D;
      if (g(x) ? R = _ : ng(x) ? te ? R = Q : (R = He, D = Le) : Ge(x) && (R = Cn), R) {
        var k = R(t, o);
        if (k) {
          i(e, k, l, d);
          return;
        }
      }
      D && D(t, x, o), t === "focusout" && W(x);
    }
    function be() {
      Ce("onMouseEnter", ["mouseout", "mouseover"]), Ce("onMouseLeave", ["mouseout", "mouseover"]), Ce("onPointerEnter", ["pointerout", "pointerover"]), Ce("onPointerLeave", ["pointerout", "pointerover"]);
    }
    function Xe(e, t, o, l, d, m, b) {
      var x = t === "mouseover" || t === "pointerover", R = t === "mouseout" || t === "pointerout";
      if (x && !hm(l)) {
        var D = l.relatedTarget || l.fromElement;
        if (D && (zs(D) || uv(D)))
          return;
      }
      if (!(!R && !x)) {
        var k;
        if (d.window === d)
          k = d;
        else {
          var X = d.ownerDocument;
          X ? k = X.defaultView || X.parentWindow : k = window;
        }
        var U, ee;
        if (R) {
          var ne = l.relatedTarget || l.toElement;
          if (U = o, ee = ne ? zs(ne) : null, ee !== null) {
            var ie = qr(ee);
            (ee !== ie || ee.tag !== O && ee.tag !== L) && (ee = null);
          }
        } else
          U = null, ee = o;
        if (U !== ee) {
          var De = Of, qe = "onMouseLeave", Ye = "onMouseEnter", At = "mouse";
          (t === "pointerout" || t === "pointerover") && (De = qm, qe = "onPointerLeave", Ye = "onPointerEnter", At = "pointer");
          var wt = U == null ? k : Uf(U), J = ee == null ? k : Uf(ee), oe = new De(qe, At + "leave", U, l, d);
          oe.target = wt, oe.relatedTarget = J;
          var q = null, he = zs(d);
          if (he === o) {
            var Be = new De(Ye, At + "enter", ee, l, d);
            Be.target = J, Be.relatedTarget = wt, q = Be;
          }
          ON(e, oe, q, U, ee);
        }
      }
    }
    function nt(e, t) {
      return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
    }
    var _e = typeof Object.is == "function" ? Object.is : nt;
    function at(e, t) {
      if (_e(e, t))
        return !0;
      if (typeof e != "object" || e === null || typeof t != "object" || t === null)
        return !1;
      var o = Object.keys(e), l = Object.keys(t);
      if (o.length !== l.length)
        return !1;
      for (var d = 0; d < o.length; d++) {
        var m = o[d];
        if (!Pt.call(t, m) || !_e(e[m], t[m]))
          return !1;
      }
      return !0;
    }
    function Bn(e) {
      for (; e && e.firstChild; )
        e = e.firstChild;
      return e;
    }
    function Nt(e) {
      for (; e; ) {
        if (e.nextSibling)
          return e.nextSibling;
        e = e.parentNode;
      }
    }
    function Bi(e, t) {
      for (var o = Bn(e), l = 0, d = 0; o; ) {
        if (o.nodeType === wi) {
          if (d = l + o.textContent.length, l <= t && d >= t)
            return {
              node: o,
              offset: t - l
            };
          l = d;
        }
        o = Bn(Nt(o));
      }
    }
    function wb(e) {
      var t = e.ownerDocument, o = t && t.defaultView || window, l = o.getSelection && o.getSelection();
      if (!l || l.rangeCount === 0)
        return null;
      var d = l.anchorNode, m = l.anchorOffset, b = l.focusNode, x = l.focusOffset;
      try {
        d.nodeType, b.nodeType;
      } catch {
        return null;
      }
      return sN(e, d, m, b, x);
    }
    function sN(e, t, o, l, d) {
      var m = 0, b = -1, x = -1, R = 0, D = 0, k = e, X = null;
      e:
        for (; ; ) {
          for (var U = null; k === t && (o === 0 || k.nodeType === wi) && (b = m + o), k === l && (d === 0 || k.nodeType === wi) && (x = m + d), k.nodeType === wi && (m += k.nodeValue.length), (U = k.firstChild) !== null; )
            X = k, k = U;
          for (; ; ) {
            if (k === e)
              break e;
            if (X === t && ++R === o && (b = m), X === l && ++D === d && (x = m), (U = k.nextSibling) !== null)
              break;
            k = X, X = k.parentNode;
          }
          k = U;
        }
      return b === -1 || x === -1 ? null : {
        start: b,
        end: x
      };
    }
    function cN(e, t) {
      var o = e.ownerDocument || document, l = o && o.defaultView || window;
      if (l.getSelection) {
        var d = l.getSelection(), m = e.textContent.length, b = Math.min(t.start, m), x = t.end === void 0 ? b : Math.min(t.end, m);
        if (!d.extend && b > x) {
          var R = x;
          x = b, b = R;
        }
        var D = Bi(e, b), k = Bi(e, x);
        if (D && k) {
          if (d.rangeCount === 1 && d.anchorNode === D.node && d.anchorOffset === D.offset && d.focusNode === k.node && d.focusOffset === k.offset)
            return;
          var X = o.createRange();
          X.setStart(D.node, D.offset), d.removeAllRanges(), b > x ? (d.addRange(X), d.extend(k.node, k.offset)) : (X.setEnd(k.node, k.offset), d.addRange(X));
        }
      }
    }
    function lx(e) {
      return e && e.nodeType === wi;
    }
    function sx(e, t) {
      return !e || !t ? !1 : e === t ? !0 : lx(e) ? !1 : lx(t) ? sx(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1;
    }
    function fN(e) {
      return e && e.ownerDocument && sx(e.ownerDocument.documentElement, e);
    }
    function dN(e) {
      try {
        return typeof e.contentWindow.location.href == "string";
      } catch {
        return !1;
      }
    }
    function cx() {
      for (var e = window, t = Ec(); t instanceof e.HTMLIFrameElement; ) {
        if (dN(t))
          e = t.contentWindow;
        else
          return t;
        t = Ec(e.document);
      }
      return t;
    }
    function Rb(e) {
      var t = e && e.nodeName && e.nodeName.toLowerCase();
      return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
    }
    function pN() {
      var e = cx();
      return {
        focusedElem: e,
        selectionRange: Rb(e) ? hN(e) : null
      };
    }
    function vN(e) {
      var t = cx(), o = e.focusedElem, l = e.selectionRange;
      if (t !== o && fN(o)) {
        l !== null && Rb(o) && mN(o, l);
        for (var d = [], m = o; m = m.parentNode; )
          m.nodeType === Nr && d.push({
            element: m,
            left: m.scrollLeft,
            top: m.scrollTop
          });
        typeof o.focus == "function" && o.focus();
        for (var b = 0; b < d.length; b++) {
          var x = d[b];
          x.element.scrollLeft = x.left, x.element.scrollTop = x.top;
        }
      }
    }
    function hN(e) {
      var t;
      return "selectionStart" in e ? t = {
        start: e.selectionStart,
        end: e.selectionEnd
      } : t = wb(e), t || {
        start: 0,
        end: 0
      };
    }
    function mN(e, t) {
      var o = t.start, l = t.end;
      l === void 0 && (l = o), "selectionStart" in e ? (e.selectionStart = o, e.selectionEnd = Math.min(l, e.value.length)) : cN(e, t);
    }
    var gN = Tt && "documentMode" in document && document.documentMode <= 11;
    function yN() {
      Rt("onSelect", ["focusout", "contextmenu", "dragend", "focusin", "keydown", "keyup", "mousedown", "mouseup", "selectionchange"]);
    }
    var Hf = null, Tb = null, Yp = null, Ib = !1;
    function bN(e) {
      if ("selectionStart" in e && Rb(e))
        return {
          start: e.selectionStart,
          end: e.selectionEnd
        };
      var t = e.ownerDocument && e.ownerDocument.defaultView || window, o = t.getSelection();
      return {
        anchorNode: o.anchorNode,
        anchorOffset: o.anchorOffset,
        focusNode: o.focusNode,
        focusOffset: o.focusOffset
      };
    }
    function CN(e) {
      return e.window === e ? e.document : e.nodeType === Ua ? e : e.ownerDocument;
    }
    function fx(e, t, o) {
      var l = CN(o);
      if (!(Ib || Hf == null || Hf !== Ec(l))) {
        var d = bN(Hf);
        if (!Yp || !at(Yp, d)) {
          Yp = d;
          var m = og(Tb, "onSelect");
          if (m.length > 0) {
            var b = new Af("onSelect", "select", null, t, o);
            e.push({
              event: b,
              listeners: m
            }), b.target = Hf;
          }
        }
      }
    }
    function SN(e, t, o, l, d, m, b) {
      var x = o ? Uf(o) : window;
      switch (t) {
        case "focusin":
          (ng(x) || x.contentEditable === "true") && (Hf = x, Tb = o, Yp = null);
          break;
        case "focusout":
          Hf = null, Tb = null, Yp = null;
          break;
        case "mousedown":
          Ib = !0;
          break;
        case "contextmenu":
        case "mouseup":
        case "dragend":
          Ib = !1, fx(e, l, d);
          break;
        case "selectionchange":
          if (gN)
            break;
        case "keydown":
        case "keyup":
          fx(e, l, d);
      }
    }
    function rg(e, t) {
      var o = {};
      return o[e.toLowerCase()] = t.toLowerCase(), o["Webkit" + e] = "webkit" + t, o["Moz" + e] = "moz" + t, o;
    }
    var _f = {
      animationend: rg("Animation", "AnimationEnd"),
      animationiteration: rg("Animation", "AnimationIteration"),
      animationstart: rg("Animation", "AnimationStart"),
      transitionend: rg("Transition", "TransitionEnd")
    }, Ab = {}, dx = {};
    Tt && (dx = document.createElement("div").style, "AnimationEvent" in window || (delete _f.animationend.animation, delete _f.animationiteration.animation, delete _f.animationstart.animation), "TransitionEvent" in window || delete _f.transitionend.transition);
    function ag(e) {
      if (Ab[e])
        return Ab[e];
      if (!_f[e])
        return e;
      var t = _f[e];
      for (var o in t)
        if (t.hasOwnProperty(o) && o in dx)
          return Ab[e] = t[o];
      return e;
    }
    var px = ag("animationend"), vx = ag("animationiteration"), hx = ag("animationstart"), mx = ag("transitionend"), gx = /* @__PURE__ */ new Map(), yx = ["abort", "auxClick", "cancel", "canPlay", "canPlayThrough", "click", "close", "contextMenu", "copy", "cut", "drag", "dragEnd", "dragEnter", "dragExit", "dragLeave", "dragOver", "dragStart", "drop", "durationChange", "emptied", "encrypted", "ended", "error", "gotPointerCapture", "input", "invalid", "keyDown", "keyPress", "keyUp", "load", "loadedData", "loadedMetadata", "loadStart", "lostPointerCapture", "mouseDown", "mouseMove", "mouseOut", "mouseOver", "mouseUp", "paste", "pause", "play", "playing", "pointerCancel", "pointerDown", "pointerMove", "pointerOut", "pointerOver", "pointerUp", "progress", "rateChange", "reset", "resize", "seeked", "seeking", "stalled", "submit", "suspend", "timeUpdate", "touchCancel", "touchEnd", "touchStart", "volumeChange", "scroll", "toggle", "touchMove", "waiting", "wheel"];
    function bl(e, t) {
      gx.set(e, t), Rt(t, [e]);
    }
    function EN() {
      for (var e = 0; e < yx.length; e++) {
        var t = yx[e], o = t.toLowerCase(), l = t[0].toUpperCase() + t.slice(1);
        bl(o, "on" + l);
      }
      bl(px, "onAnimationEnd"), bl(vx, "onAnimationIteration"), bl(hx, "onAnimationStart"), bl("dblclick", "onDoubleClick"), bl("focusin", "onFocus"), bl("focusout", "onBlur"), bl(mx, "onTransitionEnd");
    }
    function xN(e, t, o, l, d, m, b) {
      var x = gx.get(t);
      if (x !== void 0) {
        var R = Af, D = t;
        switch (t) {
          case "keypress":
            if (ru(l) === 0)
              return;
          case "keydown":
          case "keyup":
            R = Qm;
            break;
          case "focusin":
            D = "focus", R = Ms;
            break;
          case "focusout":
            D = "blur", R = Ms;
            break;
          case "beforeblur":
          case "afterblur":
            R = Ms;
            break;
          case "click":
            if (l.button === 2)
              return;
          case "auxclick":
          case "dblclick":
          case "mousedown":
          case "mousemove":
          case "mouseup":
          case "mouseout":
          case "mouseover":
          case "contextmenu":
            R = Of;
            break;
          case "drag":
          case "dragend":
          case "dragenter":
          case "dragexit":
          case "dragleave":
          case "dragover":
          case "dragstart":
          case "drop":
            R = Um;
            break;
          case "touchcancel":
          case "touchend":
          case "touchmove":
          case "touchstart":
            R = Gp;
            break;
          case px:
          case vx:
          case hx:
            R = hb;
            break;
          case mx:
            R = mo;
            break;
          case "scroll":
            R = Pp;
            break;
          case "wheel":
            R = ou;
            break;
          case "copy":
          case "cut":
          case "paste":
            R = Xm;
            break;
          case "gotpointercapture":
          case "lostpointercapture":
          case "pointercancel":
          case "pointerdown":
          case "pointermove":
          case "pointerout":
          case "pointerover":
          case "pointerup":
            R = qm;
            break;
        }
        var k = (m & Ho) !== 0;
        {
          var X = !k && // TODO: ideally, we'd eventually add all events from
          // nonDelegatedEvents list in DOMPluginEventSystem.
          // Then we can remove this special list.
          // This is a breaking change that can wait until React 18.
          t === "scroll", U = IN(o, x, l.type, k, X);
          if (U.length > 0) {
            var ee = new R(x, D, null, l, d);
            e.push({
              event: ee,
              listeners: U
            });
          }
        }
      }
    }
    EN(), be(), n(), yN(), Lf();
    function wN(e, t, o, l, d, m, b) {
      xN(e, t, o, l, d, m);
      var x = (m & nb) === 0;
      x && (Xe(e, t, o, l, d), K(e, t, o, l, d), SN(e, t, o, l, d), xb(e, t, o, l, d));
    }
    var $p = ["abort", "canplay", "canplaythrough", "durationchange", "emptied", "encrypted", "ended", "error", "loadeddata", "loadedmetadata", "loadstart", "pause", "play", "playing", "progress", "ratechange", "resize", "seeked", "seeking", "stalled", "suspend", "timeupdate", "volumechange", "waiting"], Ob = new Set(["cancel", "close", "invalid", "load", "scroll", "toggle"].concat($p));
    function bx(e, t, o) {
      var l = e.type || "unknown-event";
      e.currentTarget = o, Ai(l, t, void 0, e), e.currentTarget = null;
    }
    function RN(e, t, o) {
      var l;
      if (o)
        for (var d = t.length - 1; d >= 0; d--) {
          var m = t[d], b = m.instance, x = m.currentTarget, R = m.listener;
          if (b !== l && e.isPropagationStopped())
            return;
          bx(e, R, x), l = b;
        }
      else
        for (var D = 0; D < t.length; D++) {
          var k = t[D], X = k.instance, U = k.currentTarget, ee = k.listener;
          if (X !== l && e.isPropagationStopped())
            return;
          bx(e, ee, U), l = X;
        }
    }
    function Cx(e, t) {
      for (var o = (t & Ho) !== 0, l = 0; l < e.length; l++) {
        var d = e[l], m = d.event, b = d.listeners;
        RN(m, b, o);
      }
      dp();
    }
    function TN(e, t, o, l, d) {
      var m = Fc(o), b = [];
      wN(b, e, l, o, m, t), Cx(b, t);
    }
    function un(e, t) {
      Ob.has(e) || h('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.', e);
      var o = !1, l = nk(t), d = DN(e);
      l.has(d) || (Sx(t, e, us, o), l.add(d));
    }
    function Db(e, t, o) {
      Ob.has(e) && !t && h('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.', e);
      var l = 0;
      t && (l |= Ho), Sx(o, e, l, t);
    }
    var ig = "_reactListening" + Math.random().toString(36).slice(2);
    function Qp(e) {
      if (!e[ig]) {
        e[ig] = !0, Pe.forEach(function(o) {
          o !== "selectionchange" && (Ob.has(o) || Db(o, !1, e), Db(o, !0, e));
        });
        var t = e.nodeType === Ua ? e : e.ownerDocument;
        t !== null && (t[ig] || (t[ig] = !0, Db("selectionchange", !1, t)));
      }
    }
    function Sx(e, t, o, l, d) {
      var m = Ln(e, t, o), b = void 0;
      ds && (t === "touchstart" || t === "touchmove" || t === "wheel") && (b = !0), e = e, l ? b !== void 0 ? Rf(e, t, m, b) : Li(e, t, m) : b !== void 0 ? Vp(e, t, m, b) : hl(e, t, m);
    }
    function Ex(e, t) {
      return e === t || e.nodeType === Rn && e.parentNode === t;
    }
    function Nb(e, t, o, l, d) {
      var m = l;
      if (!(t & Ti) && !(t & us)) {
        var b = d;
        if (l !== null) {
          var x = l;
          e:
            for (; ; ) {
              if (x === null)
                return;
              var R = x.tag;
              if (R === T || R === A) {
                var D = x.stateNode.containerInfo;
                if (Ex(D, b))
                  break;
                if (R === A)
                  for (var k = x.return; k !== null; ) {
                    var X = k.tag;
                    if (X === T || X === A) {
                      var U = k.stateNode.containerInfo;
                      if (Ex(U, b))
                        return;
                    }
                    k = k.return;
                  }
                for (; D !== null; ) {
                  var ee = zs(D);
                  if (ee === null)
                    return;
                  var ne = ee.tag;
                  if (ne === O || ne === L) {
                    x = m = ee;
                    continue e;
                  }
                  D = D.parentNode;
                }
              }
              x = x.return;
            }
        }
      }
      lp(function() {
        return TN(e, t, o, m);
      });
    }
    function Jp(e, t, o) {
      return {
        instance: e,
        listener: t,
        currentTarget: o
      };
    }
    function IN(e, t, o, l, d, m) {
      for (var b = t !== null ? t + "Capture" : null, x = l ? b : t, R = [], D = e, k = null; D !== null; ) {
        var X = D, U = X.stateNode, ee = X.tag;
        if (ee === O && U !== null && (k = U, x !== null)) {
          var ne = zo(D, x);
          ne != null && R.push(Jp(D, ne, k));
        }
        if (d)
          break;
        D = D.return;
      }
      return R;
    }
    function og(e, t) {
      for (var o = t + "Capture", l = [], d = e; d !== null; ) {
        var m = d, b = m.stateNode, x = m.tag;
        if (x === O && b !== null) {
          var R = b, D = zo(d, o);
          D != null && l.unshift(Jp(d, D, R));
          var k = zo(d, t);
          k != null && l.push(Jp(d, k, R));
        }
        d = d.return;
      }
      return l;
    }
    function zf(e) {
      if (e === null)
        return null;
      do
        e = e.return;
      while (e && e.tag !== O);
      return e || null;
    }
    function AN(e, t) {
      for (var o = e, l = t, d = 0, m = o; m; m = zf(m))
        d++;
      for (var b = 0, x = l; x; x = zf(x))
        b++;
      for (; d - b > 0; )
        o = zf(o), d--;
      for (; b - d > 0; )
        l = zf(l), b--;
      for (var R = d; R--; ) {
        if (o === l || l !== null && o === l.alternate)
          return o;
        o = zf(o), l = zf(l);
      }
      return null;
    }
    function xx(e, t, o, l, d) {
      for (var m = t._reactName, b = [], x = o; x !== null && x !== l; ) {
        var R = x, D = R.alternate, k = R.stateNode, X = R.tag;
        if (D !== null && D === l)
          break;
        if (X === O && k !== null) {
          var U = k;
          if (d) {
            var ee = zo(x, m);
            ee != null && b.unshift(Jp(x, ee, U));
          } else if (!d) {
            var ne = zo(x, m);
            ne != null && b.push(Jp(x, ne, U));
          }
        }
        x = x.return;
      }
      b.length !== 0 && e.push({
        event: t,
        listeners: b
      });
    }
    function ON(e, t, o, l, d) {
      var m = l && d ? AN(l, d) : null;
      l !== null && xx(e, t, l, m, !1), d !== null && o !== null && xx(e, o, d, m, !0);
    }
    function DN(e, t) {
      return e + "__bubble";
    }
    var Ia = !1, qp = "dangerouslySetInnerHTML", ug = "suppressContentEditableWarning", Cl = "suppressHydrationWarning", wx = "autoFocus", Hs = "children", _s = "style", lg = "__html", kb, sg, Kp, Rx, cg, Tx, Ix;
    kb = {
      // There are working polyfills for <dialog>. Let people use it.
      dialog: !0,
      // Electron ships a custom <webview> tag to display external web content in
      // an isolated frame and process.
      // This tag is not present in non Electron environments such as JSDom which
      // is often used for testing purposes.
      // @see https://electronjs.org/docs/api/webview-tag
      webview: !0
    }, sg = function(e, t) {
      Lc(e, t), rp(e, t), vm(e, t, {
        registrationNameDependencies: et,
        possibleRegistrationNames: ft
      });
    }, Tx = Tt && !document.documentMode, Kp = function(e, t, o) {
      if (!Ia) {
        var l = fg(o), d = fg(t);
        d !== l && (Ia = !0, h("Prop `%s` did not match. Server: %s Client: %s", e, JSON.stringify(d), JSON.stringify(l)));
      }
    }, Rx = function(e) {
      if (!Ia) {
        Ia = !0;
        var t = [];
        e.forEach(function(o) {
          t.push(o);
        }), h("Extra attributes from the server: %s", t);
      }
    }, cg = function(e, t) {
      t === !1 ? h("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", e, e, e) : h("Expected `%s` listener to be a function, instead got a value of `%s` type.", e, typeof t);
    }, Ix = function(e, t) {
      var o = e.namespaceURI === xi ? e.ownerDocument.createElement(e.tagName) : e.ownerDocument.createElementNS(e.namespaceURI, e.tagName);
      return o.innerHTML = t, o.innerHTML;
    };
    var NN = /\r\n?/g, kN = /\u0000|\uFFFD/g;
    function fg(e) {
      Ka(e);
      var t = typeof e == "string" ? e : "" + e;
      return t.replace(NN, `
`).replace(kN, "");
    }
    function dg(e, t, o, l) {
      var d = fg(t), m = fg(e);
      if (m !== d && (l && (Ia || (Ia = !0, h('Text content did not match. Server: "%s" Client: "%s"', m, d))), o && Ke))
        throw new Error("Text content does not match server-rendered HTML.");
    }
    function Ax(e) {
      return e.nodeType === Ua ? e : e.ownerDocument;
    }
    function MN() {
    }
    function pg(e) {
      e.onclick = MN;
    }
    function LN(e, t, o, l, d) {
      for (var m in l)
        if (l.hasOwnProperty(m)) {
          var b = l[m];
          if (m === _s)
            b && Object.freeze(b), am(t, b);
          else if (m === qp) {
            var x = b ? b[lg] : void 0;
            x != null && Zh(t, x);
          } else if (m === Hs)
            if (typeof b == "string") {
              var R = e !== "textarea" || b !== "";
              R && Dc(t, b);
            } else
              typeof b == "number" && Dc(t, "" + b);
          else
            m === ug || m === Cl || m === wx || (et.hasOwnProperty(m) ? b != null && (typeof b != "function" && cg(m, b), m === "onScroll" && un("scroll", t)) : b != null && Mo(t, m, b, d));
        }
    }
    function FN(e, t, o, l) {
      for (var d = 0; d < t.length; d += 2) {
        var m = t[d], b = t[d + 1];
        m === _s ? am(e, b) : m === qp ? Zh(e, b) : m === Hs ? Dc(e, b) : Mo(e, m, b, l);
      }
    }
    function BN(e, t, o, l) {
      var d, m = Ax(o), b, x = l;
      if (x === xi && (x = Ac(e)), x === xi) {
        if (d = Ri(e, t), !d && e !== e.toLowerCase() && h("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", e), e === "script") {
          var R = m.createElement("div");
          R.innerHTML = "<script><\/script>";
          var D = R.firstChild;
          b = R.removeChild(D);
        } else if (typeof t.is == "string")
          b = m.createElement(e, {
            is: t.is
          });
        else if (b = m.createElement(e), e === "select") {
          var k = b;
          t.multiple ? k.multiple = !0 : t.size && (k.size = t.size);
        }
      } else
        b = m.createElementNS(x, e);
      return x === xi && !d && Object.prototype.toString.call(b) === "[object HTMLUnknownElement]" && !Pt.call(kb, e) && (kb[e] = !0, h("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", e)), b;
    }
    function VN(e, t) {
      return Ax(t).createTextNode(e);
    }
    function PN(e, t, o, l) {
      var d = Ri(t, o);
      sg(t, o);
      var m;
      switch (t) {
        case "dialog":
          un("cancel", e), un("close", e), m = o;
          break;
        case "iframe":
        case "object":
        case "embed":
          un("load", e), m = o;
          break;
        case "video":
        case "audio":
          for (var b = 0; b < $p.length; b++)
            un($p[b], e);
          m = o;
          break;
        case "source":
          un("error", e), m = o;
          break;
        case "img":
        case "image":
        case "link":
          un("error", e), un("load", e), m = o;
          break;
        case "details":
          un("toggle", e), m = o;
          break;
        case "input":
          ts(e, o), m = es(e, o), un("invalid", e);
          break;
        case "option":
          Tc(e, o), m = o;
          break;
        case "select":
          jh(e, o), m = Xd(e, o), un("invalid", e);
          break;
        case "textarea":
          Uh(e, o), m = Yd(e, o), un("invalid", e);
          break;
        default:
          m = o;
      }
      switch (kc(t, m), LN(t, e, l, m, d), t) {
        case "input":
          Bo(e), ns(e, o, !1);
          break;
        case "textarea":
          Bo(e), Xh(e);
          break;
        case "option":
          Wd(e, o);
          break;
        case "select":
          W0(e, o);
          break;
        default:
          typeof m.onClick == "function" && pg(e);
          break;
      }
    }
    function HN(e, t, o, l, d) {
      sg(t, l);
      var m = null, b, x;
      switch (t) {
        case "input":
          b = es(e, o), x = es(e, l), m = [];
          break;
        case "select":
          b = Xd(e, o), x = Xd(e, l), m = [];
          break;
        case "textarea":
          b = Yd(e, o), x = Yd(e, l), m = [];
          break;
        default:
          b = o, x = l, typeof b.onClick != "function" && typeof x.onClick == "function" && pg(e);
          break;
      }
      kc(t, x);
      var R, D, k = null;
      for (R in b)
        if (!(x.hasOwnProperty(R) || !b.hasOwnProperty(R) || b[R] == null))
          if (R === _s) {
            var X = b[R];
            for (D in X)
              X.hasOwnProperty(D) && (k || (k = {}), k[D] = "");
          } else
            R === qp || R === Hs || R === ug || R === Cl || R === wx || (et.hasOwnProperty(R) ? m || (m = []) : (m = m || []).push(R, null));
      for (R in x) {
        var U = x[R], ee = b != null ? b[R] : void 0;
        if (!(!x.hasOwnProperty(R) || U === ee || U == null && ee == null))
          if (R === _s)
            if (U && Object.freeze(U), ee) {
              for (D in ee)
                ee.hasOwnProperty(D) && (!U || !U.hasOwnProperty(D)) && (k || (k = {}), k[D] = "");
              for (D in U)
                U.hasOwnProperty(D) && ee[D] !== U[D] && (k || (k = {}), k[D] = U[D]);
            } else
              k || (m || (m = []), m.push(R, k)), k = U;
          else if (R === qp) {
            var ne = U ? U[lg] : void 0, ie = ee ? ee[lg] : void 0;
            ne != null && ie !== ne && (m = m || []).push(R, ne);
          } else
            R === Hs ? (typeof U == "string" || typeof U == "number") && (m = m || []).push(R, "" + U) : R === ug || R === Cl || (et.hasOwnProperty(R) ? (U != null && (typeof U != "function" && cg(R, U), R === "onScroll" && un("scroll", e)), !m && ee !== U && (m = [])) : (m = m || []).push(R, U));
      }
      return k && (is(k, x[_s]), (m = m || []).push(_s, k)), m;
    }
    function _N(e, t, o, l, d) {
      o === "input" && d.type === "radio" && d.name != null && Ud(e, d);
      var m = Ri(o, l), b = Ri(o, d);
      switch (FN(e, t, m, b), o) {
        case "input":
          Fu(e, d);
          break;
        case "textarea":
          Wh(e, d);
          break;
        case "select":
          X0(e, d);
          break;
      }
    }
    function zN(e) {
      {
        var t = e.toLowerCase();
        return Mc.hasOwnProperty(t) && Mc[t] || null;
      }
    }
    function GN(e, t, o, l, d, m, b) {
      var x, R;
      switch (x = Ri(t, o), sg(t, o), t) {
        case "dialog":
          un("cancel", e), un("close", e);
          break;
        case "iframe":
        case "object":
        case "embed":
          un("load", e);
          break;
        case "video":
        case "audio":
          for (var D = 0; D < $p.length; D++)
            un($p[D], e);
          break;
        case "source":
          un("error", e);
          break;
        case "img":
        case "image":
        case "link":
          un("error", e), un("load", e);
          break;
        case "details":
          un("toggle", e);
          break;
        case "input":
          ts(e, o), un("invalid", e);
          break;
        case "option":
          Tc(e, o);
          break;
        case "select":
          jh(e, o), un("invalid", e);
          break;
        case "textarea":
          Uh(e, o), un("invalid", e);
          break;
      }
      kc(t, o);
      {
        R = /* @__PURE__ */ new Set();
        for (var k = e.attributes, X = 0; X < k.length; X++) {
          var U = k[X].name.toLowerCase();
          switch (U) {
            case "value":
              break;
            case "checked":
              break;
            case "selected":
              break;
            default:
              R.add(k[X].name);
          }
        }
      }
      var ee = null;
      for (var ne in o)
        if (o.hasOwnProperty(ne)) {
          var ie = o[ne];
          if (ne === Hs)
            typeof ie == "string" ? e.textContent !== ie && (o[Cl] !== !0 && dg(e.textContent, ie, m, b), ee = [Hs, ie]) : typeof ie == "number" && e.textContent !== "" + ie && (o[Cl] !== !0 && dg(e.textContent, ie, m, b), ee = [Hs, "" + ie]);
          else if (et.hasOwnProperty(ne))
            ie != null && (typeof ie != "function" && cg(ne, ie), ne === "onScroll" && un("scroll", e));
          else if (b && // Convince Flow we've calculated it (it's DEV-only in this method.)
          typeof x == "boolean") {
            var De = void 0, qe = x && Te ? null : ei(ne);
            if (o[Cl] !== !0) {
              if (!(ne === ug || ne === Cl || // Controlled attributes are not validated
              // TODO: Only ignore them on controlled tags.
              ne === "value" || ne === "checked" || ne === "selected")) {
                if (ne === qp) {
                  var Ye = e.innerHTML, At = ie ? ie[lg] : void 0;
                  if (At != null) {
                    var wt = Ix(e, At);
                    wt !== Ye && Kp(ne, Ye, wt);
                  }
                } else if (ne === _s) {
                  if (R.delete(ne), Tx) {
                    var J = eb(ie);
                    De = e.getAttribute("style"), J !== De && Kp(ne, De, J);
                  }
                } else if (x && !Te)
                  R.delete(ne.toLowerCase()), De = gc(e, ne, ie), ie !== De && Kp(ne, De, ie);
                else if (!Dn(ne, qe, x) && !sn(ne, ie, qe, x)) {
                  var oe = !1;
                  if (qe !== null)
                    R.delete(qe.attributeName), De = Ul(e, ne, ie, qe);
                  else {
                    var q = l;
                    if (q === xi && (q = Ac(t)), q === xi)
                      R.delete(ne.toLowerCase());
                    else {
                      var he = zN(ne);
                      he !== null && he !== ne && (oe = !0, R.delete(he)), R.delete(ne);
                    }
                    De = gc(e, ne, ie);
                  }
                  var Be = Te;
                  !Be && ie !== De && !oe && Kp(ne, De, ie);
                }
              }
            }
          }
        }
      switch (b && // $FlowFixMe - Should be inferred as not undefined.
      R.size > 0 && o[Cl] !== !0 && Rx(R), t) {
        case "input":
          Bo(e), ns(e, o, !0);
          break;
        case "textarea":
          Bo(e), Xh(e);
          break;
        case "select":
        case "option":
          break;
        default:
          typeof o.onClick == "function" && pg(e);
          break;
      }
      return ee;
    }
    function jN(e, t, o) {
      var l = e.nodeValue !== t;
      return l;
    }
    function Mb(e, t) {
      {
        if (Ia)
          return;
        Ia = !0, h("Did not expect server HTML to contain a <%s> in <%s>.", t.nodeName.toLowerCase(), e.nodeName.toLowerCase());
      }
    }
    function Lb(e, t) {
      {
        if (Ia)
          return;
        Ia = !0, h('Did not expect server HTML to contain the text node "%s" in <%s>.', t.nodeValue, e.nodeName.toLowerCase());
      }
    }
    function Fb(e, t, o) {
      {
        if (Ia)
          return;
        Ia = !0, h("Expected server HTML to contain a matching <%s> in <%s>.", t, e.nodeName.toLowerCase());
      }
    }
    function Bb(e, t) {
      {
        if (t === "" || Ia)
          return;
        Ia = !0, h('Expected server HTML to contain a matching text node for "%s" in <%s>.', t, e.nodeName.toLowerCase());
      }
    }
    function UN(e, t, o) {
      switch (t) {
        case "input":
          Hh(e, o);
          return;
        case "textarea":
          $d(e, o);
          return;
        case "select":
          Z0(e, o);
          return;
      }
    }
    var ev = function() {
    }, tv = function() {
    };
    {
      var WN = ["address", "applet", "area", "article", "aside", "base", "basefont", "bgsound", "blockquote", "body", "br", "button", "caption", "center", "col", "colgroup", "dd", "details", "dir", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "img", "input", "isindex", "li", "link", "listing", "main", "marquee", "menu", "menuitem", "meta", "nav", "noembed", "noframes", "noscript", "object", "ol", "p", "param", "plaintext", "pre", "script", "section", "select", "source", "style", "summary", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "title", "tr", "track", "ul", "wbr", "xmp"], Ox = [
        "applet",
        "caption",
        "html",
        "table",
        "td",
        "th",
        "marquee",
        "object",
        "template",
        // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
        // TODO: Distinguish by namespace here -- for <title>, including it here
        // errs on the side of fewer warnings
        "foreignObject",
        "desc",
        "title"
      ], XN = Ox.concat(["button"]), ZN = ["dd", "dt", "li", "option", "optgroup", "p", "rp", "rt"], Dx = {
        current: null,
        formTag: null,
        aTagInScope: null,
        buttonTagInScope: null,
        nobrTagInScope: null,
        pTagInButtonScope: null,
        listItemTagAutoclosing: null,
        dlItemTagAutoclosing: null
      };
      tv = function(e, t) {
        var o = Et({}, e || Dx), l = {
          tag: t
        };
        return Ox.indexOf(t) !== -1 && (o.aTagInScope = null, o.buttonTagInScope = null, o.nobrTagInScope = null), XN.indexOf(t) !== -1 && (o.pTagInButtonScope = null), WN.indexOf(t) !== -1 && t !== "address" && t !== "div" && t !== "p" && (o.listItemTagAutoclosing = null, o.dlItemTagAutoclosing = null), o.current = l, t === "form" && (o.formTag = l), t === "a" && (o.aTagInScope = l), t === "button" && (o.buttonTagInScope = l), t === "nobr" && (o.nobrTagInScope = l), t === "p" && (o.pTagInButtonScope = l), t === "li" && (o.listItemTagAutoclosing = l), (t === "dd" || t === "dt") && (o.dlItemTagAutoclosing = l), o;
      };
      var YN = function(e, t) {
        switch (t) {
          case "select":
            return e === "option" || e === "optgroup" || e === "#text";
          case "optgroup":
            return e === "option" || e === "#text";
          case "option":
            return e === "#text";
          case "tr":
            return e === "th" || e === "td" || e === "style" || e === "script" || e === "template";
          case "tbody":
          case "thead":
          case "tfoot":
            return e === "tr" || e === "style" || e === "script" || e === "template";
          case "colgroup":
            return e === "col" || e === "template";
          case "table":
            return e === "caption" || e === "colgroup" || e === "tbody" || e === "tfoot" || e === "thead" || e === "style" || e === "script" || e === "template";
          case "head":
            return e === "base" || e === "basefont" || e === "bgsound" || e === "link" || e === "meta" || e === "title" || e === "noscript" || e === "noframes" || e === "style" || e === "script" || e === "template";
          case "html":
            return e === "head" || e === "body" || e === "frameset";
          case "frameset":
            return e === "frame";
          case "#document":
            return e === "html";
        }
        switch (e) {
          case "h1":
          case "h2":
          case "h3":
          case "h4":
          case "h5":
          case "h6":
            return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6";
          case "rp":
          case "rt":
            return ZN.indexOf(t) === -1;
          case "body":
          case "caption":
          case "col":
          case "colgroup":
          case "frameset":
          case "frame":
          case "head":
          case "html":
          case "tbody":
          case "td":
          case "tfoot":
          case "th":
          case "thead":
          case "tr":
            return t == null;
        }
        return !0;
      }, $N = function(e, t) {
        switch (e) {
          case "address":
          case "article":
          case "aside":
          case "blockquote":
          case "center":
          case "details":
          case "dialog":
          case "dir":
          case "div":
          case "dl":
          case "fieldset":
          case "figcaption":
          case "figure":
          case "footer":
          case "header":
          case "hgroup":
          case "main":
          case "menu":
          case "nav":
          case "ol":
          case "p":
          case "section":
          case "summary":
          case "ul":
          case "pre":
          case "listing":
          case "table":
          case "hr":
          case "xmp":
          case "h1":
          case "h2":
          case "h3":
          case "h4":
          case "h5":
          case "h6":
            return t.pTagInButtonScope;
          case "form":
            return t.formTag || t.pTagInButtonScope;
          case "li":
            return t.listItemTagAutoclosing;
          case "dd":
          case "dt":
            return t.dlItemTagAutoclosing;
          case "button":
            return t.buttonTagInScope;
          case "a":
            return t.aTagInScope;
          case "nobr":
            return t.nobrTagInScope;
        }
        return null;
      }, Nx = {};
      ev = function(e, t, o) {
        o = o || Dx;
        var l = o.current, d = l && l.tag;
        t != null && (e != null && h("validateDOMNesting: when childText is passed, childTag should be null"), e = "#text");
        var m = YN(e, d) ? null : l, b = m ? null : $N(e, o), x = m || b;
        if (x) {
          var R = x.tag, D = !!m + "|" + e + "|" + R;
          if (!Nx[D]) {
            Nx[D] = !0;
            var k = e, X = "";
            if (e === "#text" ? /\S/.test(t) ? k = "Text nodes" : (k = "Whitespace text nodes", X = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : k = "<" + e + ">", m) {
              var U = "";
              R === "table" && e === "tr" && (U += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), h("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s", k, R, X, U);
            } else
              h("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.", k, R);
          }
        }
      };
    }
    var vg = "suppressHydrationWarning", hg = "$", mg = "/$", nv = "$?", rv = "$!", QN = "style", Vb = null, Pb = null;
    function JN(e) {
      var t, o, l = e.nodeType;
      switch (l) {
        case Ua:
        case Vo: {
          t = l === Ua ? "#document" : "#fragment";
          var d = e.documentElement;
          o = d ? d.namespaceURI : Jd(null, "");
          break;
        }
        default: {
          var m = l === Rn ? e.parentNode : e, b = m.namespaceURI || null;
          t = m.tagName, o = Jd(b, t);
          break;
        }
      }
      {
        var x = t.toLowerCase(), R = tv(null, x);
        return {
          namespace: o,
          ancestorInfo: R
        };
      }
    }
    function qN(e, t, o) {
      {
        var l = e, d = Jd(l.namespace, t), m = tv(l.ancestorInfo, t);
        return {
          namespace: d,
          ancestorInfo: m
        };
      }
    }
    function cG(e) {
      return e;
    }
    function KN(e) {
      Vb = pl(), Pb = pN();
      var t = null;
      return zr(!1), t;
    }
    function e2(e) {
      vN(Pb), zr(Vb), Vb = null, Pb = null;
    }
    function t2(e, t, o, l, d) {
      var m;
      {
        var b = l;
        if (ev(e, null, b.ancestorInfo), typeof t.children == "string" || typeof t.children == "number") {
          var x = "" + t.children, R = tv(b.ancestorInfo, e);
          ev(null, x, R);
        }
        m = b.namespace;
      }
      var D = BN(e, t, o, m);
      return ov(d, D), Xb(D, t), D;
    }
    function n2(e, t) {
      e.appendChild(t);
    }
    function r2(e, t, o, l, d) {
      switch (PN(e, t, o, l), t) {
        case "button":
        case "input":
        case "select":
        case "textarea":
          return !!o.autoFocus;
        case "img":
          return !0;
        default:
          return !1;
      }
    }
    function a2(e, t, o, l, d, m) {
      {
        var b = m;
        if (typeof l.children != typeof o.children && (typeof l.children == "string" || typeof l.children == "number")) {
          var x = "" + l.children, R = tv(b.ancestorInfo, t);
          ev(null, x, R);
        }
      }
      return HN(e, t, o, l);
    }
    function Hb(e, t) {
      return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
    }
    function i2(e, t, o, l) {
      {
        var d = o;
        ev(null, e, d.ancestorInfo);
      }
      var m = VN(e, t);
      return ov(l, m), m;
    }
    function o2() {
      var e = window.event;
      return e === void 0 ? ii : wf(e.type);
    }
    var _b = typeof setTimeout == "function" ? setTimeout : void 0, u2 = typeof clearTimeout == "function" ? clearTimeout : void 0, zb = -1, kx = typeof Promise == "function" ? Promise : void 0, l2 = typeof queueMicrotask == "function" ? queueMicrotask : typeof kx < "u" ? function(e) {
      return kx.resolve(null).then(e).catch(s2);
    } : _b;
    function s2(e) {
      setTimeout(function() {
        throw e;
      });
    }
    function c2(e, t, o, l) {
      switch (t) {
        case "button":
        case "input":
        case "select":
        case "textarea":
          o.autoFocus && e.focus();
          return;
        case "img": {
          o.src && (e.src = o.src);
          return;
        }
      }
    }
    function f2(e, t, o, l, d, m) {
      _N(e, t, o, l, d), Xb(e, d);
    }
    function Mx(e) {
      Dc(e, "");
    }
    function d2(e, t, o) {
      e.nodeValue = o;
    }
    function p2(e, t) {
      e.appendChild(t);
    }
    function v2(e, t) {
      var o;
      e.nodeType === Rn ? (o = e.parentNode, o.insertBefore(t, e)) : (o = e, o.appendChild(t));
      var l = e._reactRootContainer;
      l == null && o.onclick === null && pg(o);
    }
    function h2(e, t, o) {
      e.insertBefore(t, o);
    }
    function m2(e, t, o) {
      e.nodeType === Rn ? e.parentNode.insertBefore(t, o) : e.insertBefore(t, o);
    }
    function g2(e, t) {
      e.removeChild(t);
    }
    function y2(e, t) {
      e.nodeType === Rn ? e.parentNode.removeChild(t) : e.removeChild(t);
    }
    function Gb(e, t) {
      var o = t, l = 0;
      do {
        var d = o.nextSibling;
        if (e.removeChild(o), d && d.nodeType === Rn) {
          var m = d.data;
          if (m === mg)
            if (l === 0) {
              e.removeChild(d), vn(t);
              return;
            } else
              l--;
          else
            (m === hg || m === nv || m === rv) && l++;
        }
        o = d;
      } while (o);
      vn(t);
    }
    function b2(e, t) {
      e.nodeType === Rn ? Gb(e.parentNode, t) : e.nodeType === Nr && Gb(e, t), vn(e);
    }
    function C2(e) {
      e = e;
      var t = e.style;
      typeof t.setProperty == "function" ? t.setProperty("display", "none", "important") : t.display = "none";
    }
    function S2(e) {
      e.nodeValue = "";
    }
    function E2(e, t) {
      e = e;
      var o = t[QN], l = o != null && o.hasOwnProperty("display") ? o.display : null;
      e.style.display = Nc("display", l);
    }
    function x2(e, t) {
      e.nodeValue = t;
    }
    function w2(e) {
      e.nodeType === Nr ? e.textContent = "" : e.nodeType === Ua && e.documentElement && e.removeChild(e.documentElement);
    }
    function R2(e, t, o) {
      return e.nodeType !== Nr || t.toLowerCase() !== e.nodeName.toLowerCase() ? null : e;
    }
    function T2(e, t) {
      return t === "" || e.nodeType !== wi ? null : e;
    }
    function I2(e) {
      return e.nodeType !== Rn ? null : e;
    }
    function Lx(e) {
      return e.data === nv;
    }
    function jb(e) {
      return e.data === rv;
    }
    function A2(e) {
      var t = e.nextSibling && e.nextSibling.dataset, o, l, d;
      return t && (o = t.dgst, l = t.msg, d = t.stck), {
        message: l,
        digest: o,
        stack: d
      };
    }
    function O2(e, t) {
      e._reactRetry = t;
    }
    function gg(e) {
      for (; e != null; e = e.nextSibling) {
        var t = e.nodeType;
        if (t === Nr || t === wi)
          break;
        if (t === Rn) {
          var o = e.data;
          if (o === hg || o === rv || o === nv)
            break;
          if (o === mg)
            return null;
        }
      }
      return e;
    }
    function av(e) {
      return gg(e.nextSibling);
    }
    function D2(e) {
      return gg(e.firstChild);
    }
    function N2(e) {
      return gg(e.firstChild);
    }
    function k2(e) {
      return gg(e.nextSibling);
    }
    function M2(e, t, o, l, d, m, b) {
      ov(m, e), Xb(e, o);
      var x;
      {
        var R = d;
        x = R.namespace;
      }
      var D = (m.mode & Ze) !== We;
      return GN(e, t, o, x, l, D, b);
    }
    function L2(e, t, o, l) {
      return ov(o, e), o.mode & Ze, jN(e, t);
    }
    function F2(e, t) {
      ov(t, e);
    }
    function B2(e) {
      for (var t = e.nextSibling, o = 0; t; ) {
        if (t.nodeType === Rn) {
          var l = t.data;
          if (l === mg) {
            if (o === 0)
              return av(t);
            o--;
          } else
            (l === hg || l === rv || l === nv) && o++;
        }
        t = t.nextSibling;
      }
      return null;
    }
    function Fx(e) {
      for (var t = e.previousSibling, o = 0; t; ) {
        if (t.nodeType === Rn) {
          var l = t.data;
          if (l === hg || l === rv || l === nv) {
            if (o === 0)
              return t;
            o--;
          } else
            l === mg && o++;
        }
        t = t.previousSibling;
      }
      return null;
    }
    function V2(e) {
      vn(e);
    }
    function P2(e) {
      vn(e);
    }
    function H2(e) {
      return e !== "head" && e !== "body";
    }
    function _2(e, t, o, l) {
      var d = !0;
      dg(t.nodeValue, o, l, d);
    }
    function z2(e, t, o, l, d, m) {
      if (t[vg] !== !0) {
        var b = !0;
        dg(l.nodeValue, d, m, b);
      }
    }
    function G2(e, t) {
      t.nodeType === Nr ? Mb(e, t) : t.nodeType === Rn || Lb(e, t);
    }
    function j2(e, t) {
      {
        var o = e.parentNode;
        o !== null && (t.nodeType === Nr ? Mb(o, t) : t.nodeType === Rn || Lb(o, t));
      }
    }
    function U2(e, t, o, l, d) {
      (d || t[vg] !== !0) && (l.nodeType === Nr ? Mb(o, l) : l.nodeType === Rn || Lb(o, l));
    }
    function W2(e, t, o) {
      Fb(e, t);
    }
    function X2(e, t) {
      Bb(e, t);
    }
    function Z2(e, t, o) {
      {
        var l = e.parentNode;
        l !== null && Fb(l, t);
      }
    }
    function Y2(e, t) {
      {
        var o = e.parentNode;
        o !== null && Bb(o, t);
      }
    }
    function $2(e, t, o, l, d, m) {
      (m || t[vg] !== !0) && Fb(o, l);
    }
    function Q2(e, t, o, l, d) {
      (d || t[vg] !== !0) && Bb(o, l);
    }
    function J2(e) {
      h("An error occurred during hydration. The server HTML was replaced with client content in <%s>.", e.nodeName.toLowerCase());
    }
    function q2(e) {
      Qp(e);
    }
    var Gf = Math.random().toString(36).slice(2), jf = "__reactFiber$" + Gf, Ub = "__reactProps$" + Gf, iv = "__reactContainer$" + Gf, Wb = "__reactEvents$" + Gf, K2 = "__reactListeners$" + Gf, ek = "__reactHandles$" + Gf;
    function tk(e) {
      delete e[jf], delete e[Ub], delete e[Wb], delete e[K2], delete e[ek];
    }
    function ov(e, t) {
      t[jf] = e;
    }
    function yg(e, t) {
      t[iv] = e;
    }
    function Bx(e) {
      e[iv] = null;
    }
    function uv(e) {
      return !!e[iv];
    }
    function zs(e) {
      var t = e[jf];
      if (t)
        return t;
      for (var o = e.parentNode; o; ) {
        if (t = o[iv] || o[jf], t) {
          var l = t.alternate;
          if (t.child !== null || l !== null && l.child !== null)
            for (var d = Fx(e); d !== null; ) {
              var m = d[jf];
              if (m)
                return m;
              d = Fx(d);
            }
          return t;
        }
        e = o, o = e.parentNode;
      }
      return null;
    }
    function Sl(e) {
      var t = e[jf] || e[iv];
      return t && (t.tag === O || t.tag === L || t.tag === V || t.tag === T) ? t : null;
    }
    function Uf(e) {
      if (e.tag === O || e.tag === L)
        return e.stateNode;
      throw new Error("getNodeFromInstance: Invalid argument.");
    }
    function bg(e) {
      return e[Ub] || null;
    }
    function Xb(e, t) {
      e[Ub] = t;
    }
    function nk(e) {
      var t = e[Wb];
      return t === void 0 && (t = e[Wb] = /* @__PURE__ */ new Set()), t;
    }
    var Vx = {}, Px = u.ReactDebugCurrentFrame;
    function Cg(e) {
      if (e) {
        var t = e._owner, o = Yl(e.type, e._source, t ? t.type : null);
        Px.setExtraStackFrame(o);
      } else
        Px.setExtraStackFrame(null);
    }
    function Vi(e, t, o, l, d) {
      {
        var m = Function.call.bind(Pt);
        for (var b in e)
          if (m(e, b)) {
            var x = void 0;
            try {
              if (typeof e[b] != "function") {
                var R = Error((l || "React class") + ": " + o + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
                throw R.name = "Invariant Violation", R;
              }
              x = e[b](t, b, l, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
            } catch (D) {
              x = D;
            }
            x && !(x instanceof Error) && (Cg(d), h("%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", o, b, typeof x), Cg(null)), x instanceof Error && !(x.message in Vx) && (Vx[x.message] = !0, Cg(d), h("Failed %s type: %s", o, x.message), Cg(null));
          }
      }
    }
    var Zb = [], Sg;
    Sg = [];
    var uu = -1;
    function El(e) {
      return {
        current: e
      };
    }
    function Gr(e, t) {
      if (uu < 0) {
        h("Unexpected pop.");
        return;
      }
      t !== Sg[uu] && h("Unexpected Fiber popped."), e.current = Zb[uu], Zb[uu] = null, Sg[uu] = null, uu--;
    }
    function jr(e, t, o) {
      uu++, Zb[uu] = e.current, Sg[uu] = o, e.current = t;
    }
    var Yb;
    Yb = {};
    var Ya = {};
    Object.freeze(Ya);
    var lu = El(Ya), yo = El(!1), $b = Ya;
    function Wf(e, t, o) {
      return o && bo(t) ? $b : lu.current;
    }
    function Hx(e, t, o) {
      {
        var l = e.stateNode;
        l.__reactInternalMemoizedUnmaskedChildContext = t, l.__reactInternalMemoizedMaskedChildContext = o;
      }
    }
    function Xf(e, t) {
      {
        var o = e.type, l = o.contextTypes;
        if (!l)
          return Ya;
        var d = e.stateNode;
        if (d && d.__reactInternalMemoizedUnmaskedChildContext === t)
          return d.__reactInternalMemoizedMaskedChildContext;
        var m = {};
        for (var b in l)
          m[b] = t[b];
        {
          var x = mt(e) || "Unknown";
          Vi(l, m, "context", x);
        }
        return d && Hx(e, t, m), m;
      }
    }
    function Eg() {
      return yo.current;
    }
    function bo(e) {
      {
        var t = e.childContextTypes;
        return t != null;
      }
    }
    function xg(e) {
      Gr(yo, e), Gr(lu, e);
    }
    function Qb(e) {
      Gr(yo, e), Gr(lu, e);
    }
    function _x(e, t, o) {
      {
        if (lu.current !== Ya)
          throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");
        jr(lu, t, e), jr(yo, o, e);
      }
    }
    function zx(e, t, o) {
      {
        var l = e.stateNode, d = t.childContextTypes;
        if (typeof l.getChildContext != "function") {
          {
            var m = mt(e) || "Unknown";
            Yb[m] || (Yb[m] = !0, h("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", m, m));
          }
          return o;
        }
        var b = l.getChildContext();
        for (var x in b)
          if (!(x in d))
            throw new Error((mt(e) || "Unknown") + '.getChildContext(): key "' + x + '" is not defined in childContextTypes.');
        {
          var R = mt(e) || "Unknown";
          Vi(d, b, "child context", R);
        }
        return Et({}, o, b);
      }
    }
    function wg(e) {
      {
        var t = e.stateNode, o = t && t.__reactInternalMemoizedMergedChildContext || Ya;
        return $b = lu.current, jr(lu, o, e), jr(yo, yo.current, e), !0;
      }
    }
    function Gx(e, t, o) {
      {
        var l = e.stateNode;
        if (!l)
          throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");
        if (o) {
          var d = zx(e, t, $b);
          l.__reactInternalMemoizedMergedChildContext = d, Gr(yo, e), Gr(lu, e), jr(lu, d, e), jr(yo, o, e);
        } else
          Gr(yo, e), jr(yo, o, e);
      }
    }
    function rk(e) {
      {
        if (!gp(e) || e.tag !== E)
          throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");
        var t = e;
        do {
          switch (t.tag) {
            case T:
              return t.stateNode.context;
            case E: {
              var o = t.type;
              if (bo(o))
                return t.stateNode.__reactInternalMemoizedMergedChildContext;
              break;
            }
          }
          t = t.return;
        } while (t !== null);
        throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.");
      }
    }
    var xl = 0, Rg = 1, su = null, Jb = !1, qb = !1;
    function jx(e) {
      su === null ? su = [e] : su.push(e);
    }
    function ak(e) {
      Jb = !0, jx(e);
    }
    function Ux() {
      Jb && wl();
    }
    function wl() {
      if (!qb && su !== null) {
        qb = !0;
        var e = 0, t = Ea();
        try {
          var o = !0, l = su;
          for (pn(bn); e < l.length; e++) {
            var d = l[e];
            do
              d = d(o);
            while (d !== null);
          }
          su = null, Jb = !1;
        } catch (m) {
          throw su !== null && (su = su.slice(e + 1)), Gc(Uc, wl), m;
        } finally {
          pn(t), qb = !1;
        }
      }
      return null;
    }
    var Zf = [], Yf = 0, Tg = null, Ig = 0, si = [], ci = 0, Gs = null, cu = 1, fu = "";
    function ik(e) {
      return Us(), (e.flags & vp) !== Je;
    }
    function ok(e) {
      return Us(), Ig;
    }
    function uk() {
      var e = fu, t = cu, o = t & ~lk(t);
      return o.toString(32) + e;
    }
    function js(e, t) {
      Us(), Zf[Yf++] = Ig, Zf[Yf++] = Tg, Tg = e, Ig = t;
    }
    function Wx(e, t, o) {
      Us(), si[ci++] = cu, si[ci++] = fu, si[ci++] = Gs, Gs = e;
      var l = cu, d = fu, m = Ag(l) - 1, b = l & ~(1 << m), x = o + 1, R = Ag(t) + m;
      if (R > 30) {
        var D = m - m % 5, k = (1 << D) - 1, X = (b & k).toString(32), U = b >> D, ee = m - D, ne = Ag(t) + ee, ie = x << ee, De = ie | U, qe = X + d;
        cu = 1 << ne | De, fu = qe;
      } else {
        var Ye = x << m, At = Ye | b, wt = d;
        cu = 1 << R | At, fu = wt;
      }
    }
    function Kb(e) {
      Us();
      var t = e.return;
      if (t !== null) {
        var o = 1, l = 0;
        js(e, o), Wx(e, o, l);
      }
    }
    function Ag(e) {
      return 32 - Qu(e);
    }
    function lk(e) {
      return 1 << Ag(e) - 1;
    }
    function eC(e) {
      for (; e === Tg; )
        Tg = Zf[--Yf], Zf[Yf] = null, Ig = Zf[--Yf], Zf[Yf] = null;
      for (; e === Gs; )
        Gs = si[--ci], si[ci] = null, fu = si[--ci], si[ci] = null, cu = si[--ci], si[ci] = null;
    }
    function sk() {
      return Us(), Gs !== null ? {
        id: cu,
        overflow: fu
      } : null;
    }
    function ck(e, t) {
      Us(), si[ci++] = cu, si[ci++] = fu, si[ci++] = Gs, cu = t.id, fu = t.overflow, Gs = e;
    }
    function Us() {
      Cr() || h("Expected to be hydrating. This is a bug in React. Please file an issue.");
    }
    var br = null, fi = null, Pi = !1, Ws = !1, Rl = null;
    function fk() {
      Pi && h("We should not be hydrating here. This is a bug in React. Please file a bug.");
    }
    function Xx() {
      Ws = !0;
    }
    function dk() {
      return Ws;
    }
    function pk(e) {
      var t = e.stateNode.containerInfo;
      return fi = N2(t), br = e, Pi = !0, Rl = null, Ws = !1, !0;
    }
    function vk(e, t, o) {
      return fi = k2(t), br = e, Pi = !0, Rl = null, Ws = !1, o !== null && ck(e, o), !0;
    }
    function Zx(e, t) {
      switch (e.tag) {
        case T: {
          G2(e.stateNode.containerInfo, t);
          break;
        }
        case O: {
          var o = (e.mode & Ze) !== We;
          U2(
            e.type,
            e.memoizedProps,
            e.stateNode,
            t,
            // TODO: Delete this argument when we remove the legacy root API.
            o
          );
          break;
        }
        case V: {
          var l = e.memoizedState;
          l.dehydrated !== null && j2(l.dehydrated, t);
          break;
        }
      }
    }
    function Yx(e, t) {
      Zx(e, t);
      var o = yF();
      o.stateNode = t, o.return = e;
      var l = e.deletions;
      l === null ? (e.deletions = [o], e.flags |= Lt) : l.push(o);
    }
    function tC(e, t) {
      {
        if (Ws)
          return;
        switch (e.tag) {
          case T: {
            var o = e.stateNode.containerInfo;
            switch (t.tag) {
              case O:
                var l = t.type;
                t.pendingProps, W2(o, l);
                break;
              case L:
                var d = t.pendingProps;
                X2(o, d);
                break;
            }
            break;
          }
          case O: {
            var m = e.type, b = e.memoizedProps, x = e.stateNode;
            switch (t.tag) {
              case O: {
                var R = t.type, D = t.pendingProps, k = (e.mode & Ze) !== We;
                $2(
                  m,
                  b,
                  x,
                  R,
                  D,
                  // TODO: Delete this argument when we remove the legacy root API.
                  k
                );
                break;
              }
              case L: {
                var X = t.pendingProps, U = (e.mode & Ze) !== We;
                Q2(
                  m,
                  b,
                  x,
                  X,
                  // TODO: Delete this argument when we remove the legacy root API.
                  U
                );
                break;
              }
            }
            break;
          }
          case V: {
            var ee = e.memoizedState, ne = ee.dehydrated;
            if (ne !== null)
              switch (t.tag) {
                case O:
                  var ie = t.type;
                  t.pendingProps, Z2(ne, ie);
                  break;
                case L:
                  var De = t.pendingProps;
                  Y2(ne, De);
                  break;
              }
            break;
          }
          default:
            return;
        }
      }
    }
    function $x(e, t) {
      t.flags = t.flags & ~ma | Jt, tC(e, t);
    }
    function Qx(e, t) {
      switch (e.tag) {
        case O: {
          var o = e.type;
          e.pendingProps;
          var l = R2(t, o);
          return l !== null ? (e.stateNode = l, br = e, fi = D2(l), !0) : !1;
        }
        case L: {
          var d = e.pendingProps, m = T2(t, d);
          return m !== null ? (e.stateNode = m, br = e, fi = null, !0) : !1;
        }
        case V: {
          var b = I2(t);
          if (b !== null) {
            var x = {
              dehydrated: b,
              treeContext: sk(),
              retryLane: pr
            };
            e.memoizedState = x;
            var R = bF(b);
            return R.return = e, e.child = R, br = e, fi = null, !0;
          }
          return !1;
        }
        default:
          return !1;
      }
    }
    function nC(e) {
      return (e.mode & Ze) !== We && (e.flags & st) === Je;
    }
    function rC(e) {
      throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.");
    }
    function aC(e) {
      if (Pi) {
        var t = fi;
        if (!t) {
          nC(e) && (tC(br, e), rC()), $x(br, e), Pi = !1, br = e;
          return;
        }
        var o = t;
        if (!Qx(e, t)) {
          nC(e) && (tC(br, e), rC()), t = av(o);
          var l = br;
          if (!t || !Qx(e, t)) {
            $x(br, e), Pi = !1, br = e;
            return;
          }
          Yx(l, o);
        }
      }
    }
    function hk(e, t, o) {
      var l = e.stateNode, d = !Ws, m = M2(l, e.type, e.memoizedProps, t, o, e, d);
      return e.updateQueue = m, m !== null;
    }
    function mk(e) {
      var t = e.stateNode, o = e.memoizedProps, l = L2(t, o, e);
      if (l) {
        var d = br;
        if (d !== null)
          switch (d.tag) {
            case T: {
              var m = d.stateNode.containerInfo, b = (d.mode & Ze) !== We;
              _2(
                m,
                t,
                o,
                // TODO: Delete this argument when we remove the legacy root API.
                b
              );
              break;
            }
            case O: {
              var x = d.type, R = d.memoizedProps, D = d.stateNode, k = (d.mode & Ze) !== We;
              z2(
                x,
                R,
                D,
                t,
                o,
                // TODO: Delete this argument when we remove the legacy root API.
                k
              );
              break;
            }
          }
      }
      return l;
    }
    function gk(e) {
      var t = e.memoizedState, o = t !== null ? t.dehydrated : null;
      if (!o)
        throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
      F2(o, e);
    }
    function yk(e) {
      var t = e.memoizedState, o = t !== null ? t.dehydrated : null;
      if (!o)
        throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
      return B2(o);
    }
    function Jx(e) {
      for (var t = e.return; t !== null && t.tag !== O && t.tag !== T && t.tag !== V; )
        t = t.return;
      br = t;
    }
    function Og(e) {
      if (e !== br)
        return !1;
      if (!Pi)
        return Jx(e), Pi = !0, !1;
      if (e.tag !== T && (e.tag !== O || H2(e.type) && !Hb(e.type, e.memoizedProps))) {
        var t = fi;
        if (t)
          if (nC(e))
            qx(e), rC();
          else
            for (; t; )
              Yx(e, t), t = av(t);
      }
      return Jx(e), e.tag === V ? fi = yk(e) : fi = br ? av(e.stateNode) : null, !0;
    }
    function bk() {
      return Pi && fi !== null;
    }
    function qx(e) {
      for (var t = fi; t; )
        Zx(e, t), t = av(t);
    }
    function $f() {
      br = null, fi = null, Pi = !1, Ws = !1;
    }
    function Kx() {
      Rl !== null && (XR(Rl), Rl = null);
    }
    function Cr() {
      return Pi;
    }
    function iC(e) {
      Rl === null ? Rl = [e] : Rl.push(e);
    }
    var Ck = u.ReactCurrentBatchConfig, Sk = null;
    function Ek() {
      return Ck.transition;
    }
    var Hi = {
      recordUnsafeLifecycleWarnings: function(e, t) {
      },
      flushPendingUnsafeLifecycleWarnings: function() {
      },
      recordLegacyContextWarning: function(e, t) {
      },
      flushLegacyContextWarning: function() {
      },
      discardPendingWarnings: function() {
      }
    };
    {
      var xk = function(e) {
        for (var t = null, o = e; o !== null; )
          o.mode & Ct && (t = o), o = o.return;
        return t;
      }, Xs = function(e) {
        var t = [];
        return e.forEach(function(o) {
          t.push(o);
        }), t.sort().join(", ");
      }, lv = [], sv = [], cv = [], fv = [], dv = [], pv = [], Zs = /* @__PURE__ */ new Set();
      Hi.recordUnsafeLifecycleWarnings = function(e, t) {
        Zs.has(e.type) || (typeof t.componentWillMount == "function" && // Don't warn about react-lifecycles-compat polyfilled components.
        t.componentWillMount.__suppressDeprecationWarning !== !0 && lv.push(e), e.mode & Ct && typeof t.UNSAFE_componentWillMount == "function" && sv.push(e), typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && cv.push(e), e.mode & Ct && typeof t.UNSAFE_componentWillReceiveProps == "function" && fv.push(e), typeof t.componentWillUpdate == "function" && t.componentWillUpdate.__suppressDeprecationWarning !== !0 && dv.push(e), e.mode & Ct && typeof t.UNSAFE_componentWillUpdate == "function" && pv.push(e));
      }, Hi.flushPendingUnsafeLifecycleWarnings = function() {
        var e = /* @__PURE__ */ new Set();
        lv.length > 0 && (lv.forEach(function(U) {
          e.add(mt(U) || "Component"), Zs.add(U.type);
        }), lv = []);
        var t = /* @__PURE__ */ new Set();
        sv.length > 0 && (sv.forEach(function(U) {
          t.add(mt(U) || "Component"), Zs.add(U.type);
        }), sv = []);
        var o = /* @__PURE__ */ new Set();
        cv.length > 0 && (cv.forEach(function(U) {
          o.add(mt(U) || "Component"), Zs.add(U.type);
        }), cv = []);
        var l = /* @__PURE__ */ new Set();
        fv.length > 0 && (fv.forEach(function(U) {
          l.add(mt(U) || "Component"), Zs.add(U.type);
        }), fv = []);
        var d = /* @__PURE__ */ new Set();
        dv.length > 0 && (dv.forEach(function(U) {
          d.add(mt(U) || "Component"), Zs.add(U.type);
        }), dv = []);
        var m = /* @__PURE__ */ new Set();
        if (pv.length > 0 && (pv.forEach(function(U) {
          m.add(mt(U) || "Component"), Zs.add(U.type);
        }), pv = []), t.size > 0) {
          var b = Xs(t);
          h(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: %s`, b);
        }
        if (l.size > 0) {
          var x = Xs(l);
          h(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state

Please update the following components: %s`, x);
        }
        if (m.size > 0) {
          var R = Xs(m);
          h(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.

Please update the following components: %s`, R);
        }
        if (e.size > 0) {
          var D = Xs(e);
          p(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`, D);
        }
        if (o.size > 0) {
          var k = Xs(o);
          p(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`, k);
        }
        if (d.size > 0) {
          var X = Xs(d);
          p(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`, X);
        }
      };
      var Dg = /* @__PURE__ */ new Map(), ew = /* @__PURE__ */ new Set();
      Hi.recordLegacyContextWarning = function(e, t) {
        var o = xk(e);
        if (o === null) {
          h("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");
          return;
        }
        if (!ew.has(e.type)) {
          var l = Dg.get(o);
          (e.type.contextTypes != null || e.type.childContextTypes != null || t !== null && typeof t.getChildContext == "function") && (l === void 0 && (l = [], Dg.set(o, l)), l.push(e));
        }
      }, Hi.flushLegacyContextWarning = function() {
        Dg.forEach(function(e, t) {
          if (e.length !== 0) {
            var o = e[0], l = /* @__PURE__ */ new Set();
            e.forEach(function(m) {
              l.add(mt(m) || "Component"), ew.add(m.type);
            });
            var d = Xs(l);
            try {
              jt(o), h(`Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: %s

Learn more about this warning here: https://reactjs.org/link/legacy-context`, d);
            } finally {
              Nn();
            }
          }
        });
      }, Hi.discardPendingWarnings = function() {
        lv = [], sv = [], cv = [], fv = [], dv = [], pv = [], Dg = /* @__PURE__ */ new Map();
      };
    }
    var oC, uC, lC, sC, cC, tw = function(e, t) {
    };
    oC = !1, uC = !1, lC = {}, sC = {}, cC = {}, tw = function(e, t) {
      if (!(e === null || typeof e != "object") && !(!e._store || e._store.validated || e.key != null)) {
        if (typeof e._store != "object")
          throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
        e._store.validated = !0;
        var o = mt(t) || "Component";
        sC[o] || (sC[o] = !0, h('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'));
      }
    };
    function wk(e) {
      return e.prototype && e.prototype.isReactComponent;
    }
    function vv(e, t, o) {
      var l = o.ref;
      if (l !== null && typeof l != "function" && typeof l != "object") {
        if ((e.mode & Ct || Ie) && // We warn in ReactElement.js if owner and self are equal for string refs
        // because these cannot be automatically converted to an arrow function
        // using a codemod. Therefore, we don't have to warn about string refs again.
        !(o._owner && o._self && o._owner.stateNode !== o._self) && // Will already throw with "Function components cannot have string refs"
        !(o._owner && o._owner.tag !== E) && // Will already warn with "Function components cannot be given refs"
        !(typeof o.type == "function" && !wk(o.type)) && // Will already throw with "Element ref was specified as a string (someStringRef) but no owner was set"
        o._owner) {
          var d = mt(e) || "Component";
          lC[d] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', d, l), lC[d] = !0);
        }
        if (o._owner) {
          var m = o._owner, b;
          if (m) {
            var x = m;
            if (x.tag !== E)
              throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");
            b = x.stateNode;
          }
          if (!b)
            throw new Error("Missing owner for string ref " + l + ". This error is likely caused by a bug in React. Please file an issue.");
          var R = b;
          mr(l, "ref");
          var D = "" + l;
          if (t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === D)
            return t.ref;
          var k = function(X) {
            var U = R.refs;
            X === null ? delete U[D] : U[D] = X;
          };
          return k._stringRef = D, k;
        } else {
          if (typeof l != "string")
            throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");
          if (!o._owner)
            throw new Error("Element ref was specified as a string (" + l + `) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`);
        }
      }
      return l;
    }
    function Ng(e, t) {
      var o = Object.prototype.toString.call(t);
      throw new Error("Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead.");
    }
    function kg(e) {
      {
        var t = mt(e) || "Component";
        if (cC[t])
          return;
        cC[t] = !0, h("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.");
      }
    }
    function nw(e) {
      var t = e._payload, o = e._init;
      return o(t);
    }
    function rw(e) {
      function t(J, oe) {
        if (e) {
          var q = J.deletions;
          q === null ? (J.deletions = [oe], J.flags |= Lt) : q.push(oe);
        }
      }
      function o(J, oe) {
        if (!e)
          return null;
        for (var q = oe; q !== null; )
          t(J, q), q = q.sibling;
        return null;
      }
      function l(J, oe) {
        for (var q = /* @__PURE__ */ new Map(), he = oe; he !== null; )
          he.key !== null ? q.set(he.key, he) : q.set(he.index, he), he = he.sibling;
        return q;
      }
      function d(J, oe) {
        var q = nc(J, oe);
        return q.index = 0, q.sibling = null, q;
      }
      function m(J, oe, q) {
        if (J.index = q, !e)
          return J.flags |= vp, oe;
        var he = J.alternate;
        if (he !== null) {
          var Be = he.index;
          return Be < oe ? (J.flags |= Jt, oe) : Be;
        } else
          return J.flags |= Jt, oe;
      }
      function b(J) {
        return e && J.alternate === null && (J.flags |= Jt), J;
      }
      function x(J, oe, q, he) {
        if (oe === null || oe.tag !== L) {
          var Be = iS(q, J.mode, he);
          return Be.return = J, Be;
        } else {
          var Me = d(oe, q);
          return Me.return = J, Me;
        }
      }
      function R(J, oe, q, he) {
        var Be = q.type;
        if (Be === Ci)
          return k(J, oe, q.props.children, he, q.key);
        if (oe !== null && (oe.elementType === Be || // Keep this check inline so it only runs on the false path:
        lT(oe, q) || // Lazy types should reconcile their resolved type.
        // We need to do this after the Hot Reloading check above,
        // because hot reloading has different semantics than prod because
        // it doesn't resuspend. So we can't let the call below suspend.
        typeof Be == "object" && Be !== null && Be.$$typeof === gr && nw(Be) === oe.type)) {
          var Me = d(oe, q.props);
          return Me.ref = vv(J, oe, q), Me.return = J, Me._debugSource = q._source, Me._debugOwner = q._owner, Me;
        }
        var ut = aS(q, J.mode, he);
        return ut.ref = vv(J, oe, q), ut.return = J, ut;
      }
      function D(J, oe, q, he) {
        if (oe === null || oe.tag !== A || oe.stateNode.containerInfo !== q.containerInfo || oe.stateNode.implementation !== q.implementation) {
          var Be = oS(q, J.mode, he);
          return Be.return = J, Be;
        } else {
          var Me = d(oe, q.children || []);
          return Me.return = J, Me;
        }
      }
      function k(J, oe, q, he, Be) {
        if (oe === null || oe.tag !== M) {
          var Me = Bl(q, J.mode, he, Be);
          return Me.return = J, Me;
        } else {
          var ut = d(oe, q);
          return ut.return = J, ut;
        }
      }
      function X(J, oe, q) {
        if (typeof oe == "string" && oe !== "" || typeof oe == "number") {
          var he = iS("" + oe, J.mode, q);
          return he.return = J, he;
        }
        if (typeof oe == "object" && oe !== null) {
          switch (oe.$$typeof) {
            case Au: {
              var Be = aS(oe, J.mode, q);
              return Be.ref = vv(J, null, oe), Be.return = J, Be;
            }
            case _a: {
              var Me = oS(oe, J.mode, q);
              return Me.return = J, Me;
            }
            case gr: {
              var ut = oe._payload, pt = oe._init;
              return X(J, pt(ut), q);
            }
          }
          if (Hn(oe) || Si(oe)) {
            var Wt = Bl(oe, J.mode, q, null);
            return Wt.return = J, Wt;
          }
          Ng(J, oe);
        }
        return typeof oe == "function" && kg(J), null;
      }
      function U(J, oe, q, he) {
        var Be = oe !== null ? oe.key : null;
        if (typeof q == "string" && q !== "" || typeof q == "number")
          return Be !== null ? null : x(J, oe, "" + q, he);
        if (typeof q == "object" && q !== null) {
          switch (q.$$typeof) {
            case Au:
              return q.key === Be ? R(J, oe, q, he) : null;
            case _a:
              return q.key === Be ? D(J, oe, q, he) : null;
            case gr: {
              var Me = q._payload, ut = q._init;
              return U(J, oe, ut(Me), he);
            }
          }
          if (Hn(q) || Si(q))
            return Be !== null ? null : k(J, oe, q, he, null);
          Ng(J, q);
        }
        return typeof q == "function" && kg(J), null;
      }
      function ee(J, oe, q, he, Be) {
        if (typeof he == "string" && he !== "" || typeof he == "number") {
          var Me = J.get(q) || null;
          return x(oe, Me, "" + he, Be);
        }
        if (typeof he == "object" && he !== null) {
          switch (he.$$typeof) {
            case Au: {
              var ut = J.get(he.key === null ? q : he.key) || null;
              return R(oe, ut, he, Be);
            }
            case _a: {
              var pt = J.get(he.key === null ? q : he.key) || null;
              return D(oe, pt, he, Be);
            }
            case gr:
              var Wt = he._payload, kt = he._init;
              return ee(J, oe, q, kt(Wt), Be);
          }
          if (Hn(he) || Si(he)) {
            var Vn = J.get(q) || null;
            return k(oe, Vn, he, Be, null);
          }
          Ng(oe, he);
        }
        return typeof he == "function" && kg(oe), null;
      }
      function ne(J, oe, q) {
        {
          if (typeof J != "object" || J === null)
            return oe;
          switch (J.$$typeof) {
            case Au:
            case _a:
              tw(J, q);
              var he = J.key;
              if (typeof he != "string")
                break;
              if (oe === null) {
                oe = /* @__PURE__ */ new Set(), oe.add(he);
                break;
              }
              if (!oe.has(he)) {
                oe.add(he);
                break;
              }
              h("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", he);
              break;
            case gr:
              var Be = J._payload, Me = J._init;
              ne(Me(Be), oe, q);
              break;
          }
        }
        return oe;
      }
      function ie(J, oe, q, he) {
        for (var Be = null, Me = 0; Me < q.length; Me++) {
          var ut = q[Me];
          Be = ne(ut, Be, J);
        }
        for (var pt = null, Wt = null, kt = oe, Vn = 0, Mt = 0, An = null; kt !== null && Mt < q.length; Mt++) {
          kt.index > Mt ? (An = kt, kt = null) : An = kt.sibling;
          var Wr = U(J, kt, q[Mt], he);
          if (Wr === null) {
            kt === null && (kt = An);
            break;
          }
          e && kt && Wr.alternate === null && t(J, kt), Vn = m(Wr, Vn, Mt), Wt === null ? pt = Wr : Wt.sibling = Wr, Wt = Wr, kt = An;
        }
        if (Mt === q.length) {
          if (o(J, kt), Cr()) {
            var Ir = Mt;
            js(J, Ir);
          }
          return pt;
        }
        if (kt === null) {
          for (; Mt < q.length; Mt++) {
            var Qa = X(J, q[Mt], he);
            Qa !== null && (Vn = m(Qa, Vn, Mt), Wt === null ? pt = Qa : Wt.sibling = Qa, Wt = Qa);
          }
          if (Cr()) {
            var oa = Mt;
            js(J, oa);
          }
          return pt;
        }
        for (var ua = l(J, kt); Mt < q.length; Mt++) {
          var Xr = ee(ua, J, Mt, q[Mt], he);
          Xr !== null && (e && Xr.alternate !== null && ua.delete(Xr.key === null ? Mt : Xr.key), Vn = m(Xr, Vn, Mt), Wt === null ? pt = Xr : Wt.sibling = Xr, Wt = Xr);
        }
        if (e && ua.forEach(function(vd) {
          return t(J, vd);
        }), Cr()) {
          var yu = Mt;
          js(J, yu);
        }
        return pt;
      }
      function De(J, oe, q, he) {
        var Be = Si(q);
        if (typeof Be != "function")
          throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");
        {
          typeof Symbol == "function" && // $FlowFixMe Flow doesn't know about toStringTag
          q[Symbol.toStringTag] === "Generator" && (uC || h("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), uC = !0), q.entries === Be && (oC || h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), oC = !0);
          var Me = Be.call(q);
          if (Me)
            for (var ut = null, pt = Me.next(); !pt.done; pt = Me.next()) {
              var Wt = pt.value;
              ut = ne(Wt, ut, J);
            }
        }
        var kt = Be.call(q);
        if (kt == null)
          throw new Error("An iterable object provided no iterator.");
        for (var Vn = null, Mt = null, An = oe, Wr = 0, Ir = 0, Qa = null, oa = kt.next(); An !== null && !oa.done; Ir++, oa = kt.next()) {
          An.index > Ir ? (Qa = An, An = null) : Qa = An.sibling;
          var ua = U(J, An, oa.value, he);
          if (ua === null) {
            An === null && (An = Qa);
            break;
          }
          e && An && ua.alternate === null && t(J, An), Wr = m(ua, Wr, Ir), Mt === null ? Vn = ua : Mt.sibling = ua, Mt = ua, An = Qa;
        }
        if (oa.done) {
          if (o(J, An), Cr()) {
            var Xr = Ir;
            js(J, Xr);
          }
          return Vn;
        }
        if (An === null) {
          for (; !oa.done; Ir++, oa = kt.next()) {
            var yu = X(J, oa.value, he);
            yu !== null && (Wr = m(yu, Wr, Ir), Mt === null ? Vn = yu : Mt.sibling = yu, Mt = yu);
          }
          if (Cr()) {
            var vd = Ir;
            js(J, vd);
          }
          return Vn;
        }
        for (var Xv = l(J, An); !oa.done; Ir++, oa = kt.next()) {
          var Io = ee(Xv, J, Ir, oa.value, he);
          Io !== null && (e && Io.alternate !== null && Xv.delete(Io.key === null ? Ir : Io.key), Wr = m(Io, Wr, Ir), Mt === null ? Vn = Io : Mt.sibling = Io, Mt = Io);
        }
        if (e && Xv.forEach(function(QF) {
          return t(J, QF);
        }), Cr()) {
          var $F = Ir;
          js(J, $F);
        }
        return Vn;
      }
      function qe(J, oe, q, he) {
        if (oe !== null && oe.tag === L) {
          o(J, oe.sibling);
          var Be = d(oe, q);
          return Be.return = J, Be;
        }
        o(J, oe);
        var Me = iS(q, J.mode, he);
        return Me.return = J, Me;
      }
      function Ye(J, oe, q, he) {
        for (var Be = q.key, Me = oe; Me !== null; ) {
          if (Me.key === Be) {
            var ut = q.type;
            if (ut === Ci) {
              if (Me.tag === M) {
                o(J, Me.sibling);
                var pt = d(Me, q.props.children);
                return pt.return = J, pt._debugSource = q._source, pt._debugOwner = q._owner, pt;
              }
            } else if (Me.elementType === ut || // Keep this check inline so it only runs on the false path:
            lT(Me, q) || // Lazy types should reconcile their resolved type.
            // We need to do this after the Hot Reloading check above,
            // because hot reloading has different semantics than prod because
            // it doesn't resuspend. So we can't let the call below suspend.
            typeof ut == "object" && ut !== null && ut.$$typeof === gr && nw(ut) === Me.type) {
              o(J, Me.sibling);
              var Wt = d(Me, q.props);
              return Wt.ref = vv(J, Me, q), Wt.return = J, Wt._debugSource = q._source, Wt._debugOwner = q._owner, Wt;
            }
            o(J, Me);
            break;
          } else
            t(J, Me);
          Me = Me.sibling;
        }
        if (q.type === Ci) {
          var kt = Bl(q.props.children, J.mode, he, q.key);
          return kt.return = J, kt;
        } else {
          var Vn = aS(q, J.mode, he);
          return Vn.ref = vv(J, oe, q), Vn.return = J, Vn;
        }
      }
      function At(J, oe, q, he) {
        for (var Be = q.key, Me = oe; Me !== null; ) {
          if (Me.key === Be)
            if (Me.tag === A && Me.stateNode.containerInfo === q.containerInfo && Me.stateNode.implementation === q.implementation) {
              o(J, Me.sibling);
              var ut = d(Me, q.children || []);
              return ut.return = J, ut;
            } else {
              o(J, Me);
              break;
            }
          else
            t(J, Me);
          Me = Me.sibling;
        }
        var pt = oS(q, J.mode, he);
        return pt.return = J, pt;
      }
      function wt(J, oe, q, he) {
        var Be = typeof q == "object" && q !== null && q.type === Ci && q.key === null;
        if (Be && (q = q.props.children), typeof q == "object" && q !== null) {
          switch (q.$$typeof) {
            case Au:
              return b(Ye(J, oe, q, he));
            case _a:
              return b(At(J, oe, q, he));
            case gr:
              var Me = q._payload, ut = q._init;
              return wt(J, oe, ut(Me), he);
          }
          if (Hn(q))
            return ie(J, oe, q, he);
          if (Si(q))
            return De(J, oe, q, he);
          Ng(J, q);
        }
        return typeof q == "string" && q !== "" || typeof q == "number" ? b(qe(J, oe, "" + q, he)) : (typeof q == "function" && kg(J), o(J, oe));
      }
      return wt;
    }
    var Qf = rw(!0), aw = rw(!1);
    function Rk(e, t) {
      if (e !== null && t.child !== e.child)
        throw new Error("Resuming work not yet implemented.");
      if (t.child !== null) {
        var o = t.child, l = nc(o, o.pendingProps);
        for (t.child = l, l.return = t; o.sibling !== null; )
          o = o.sibling, l = l.sibling = nc(o, o.pendingProps), l.return = t;
        l.sibling = null;
      }
    }
    function Tk(e, t) {
      for (var o = e.child; o !== null; )
        pF(o, t), o = o.sibling;
    }
    var fC = El(null), dC;
    dC = {};
    var Mg = null, Jf = null, pC = null, Lg = !1;
    function Fg() {
      Mg = null, Jf = null, pC = null, Lg = !1;
    }
    function iw() {
      Lg = !0;
    }
    function ow() {
      Lg = !1;
    }
    function uw(e, t, o) {
      jr(fC, t._currentValue, e), t._currentValue = o, t._currentRenderer !== void 0 && t._currentRenderer !== null && t._currentRenderer !== dC && h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), t._currentRenderer = dC;
    }
    function vC(e, t) {
      var o = fC.current;
      Gr(fC, t), e._currentValue = o;
    }
    function hC(e, t, o) {
      for (var l = e; l !== null; ) {
        var d = l.alternate;
        if (Ko(l.childLanes, t) ? d !== null && !Ko(d.childLanes, t) && (d.childLanes = gt(d.childLanes, t)) : (l.childLanes = gt(l.childLanes, t), d !== null && (d.childLanes = gt(d.childLanes, t))), l === o)
          break;
        l = l.return;
      }
      l !== o && h("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.");
    }
    function Ik(e, t, o) {
      Ak(e, t, o);
    }
    function Ak(e, t, o) {
      var l = e.child;
      for (l !== null && (l.return = e); l !== null; ) {
        var d = void 0, m = l.dependencies;
        if (m !== null) {
          d = l.child;
          for (var b = m.firstContext; b !== null; ) {
            if (b.context === t) {
              if (l.tag === E) {
                var x = rl(o), R = du(Qt, x);
                R.tag = Vg;
                var D = l.updateQueue;
                if (D !== null) {
                  var k = D.shared, X = k.pending;
                  X === null ? R.next = R : (R.next = X.next, X.next = R), k.pending = R;
                }
              }
              l.lanes = gt(l.lanes, o);
              var U = l.alternate;
              U !== null && (U.lanes = gt(U.lanes, o)), hC(l.return, o, e), m.lanes = gt(m.lanes, o);
              break;
            }
            b = b.next;
          }
        } else if (l.tag === $)
          d = l.type === e.type ? null : l.child;
        else if (l.tag === ge) {
          var ee = l.return;
          if (ee === null)
            throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");
          ee.lanes = gt(ee.lanes, o);
          var ne = ee.alternate;
          ne !== null && (ne.lanes = gt(ne.lanes, o)), hC(ee, o, e), d = l.sibling;
        } else
          d = l.child;
        if (d !== null)
          d.return = l;
        else
          for (d = l; d !== null; ) {
            if (d === e) {
              d = null;
              break;
            }
            var ie = d.sibling;
            if (ie !== null) {
              ie.return = d.return, d = ie;
              break;
            }
            d = d.return;
          }
        l = d;
      }
    }
    function qf(e, t) {
      Mg = e, Jf = null, pC = null;
      var o = e.dependencies;
      if (o !== null) {
        var l = o.firstContext;
        l !== null && (_r(o.lanes, t) && Ov(), o.firstContext = null);
      }
    }
    function Wn(e) {
      Lg && h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
      var t = e._currentValue;
      if (pC !== e) {
        var o = {
          context: e,
          memoizedValue: t,
          next: null
        };
        if (Jf === null) {
          if (Mg === null)
            throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
          Jf = o, Mg.dependencies = {
            lanes: ce,
            firstContext: o
          };
        } else
          Jf = Jf.next = o;
      }
      return t;
    }
    var Ys = null;
    function mC(e) {
      Ys === null ? Ys = [e] : Ys.push(e);
    }
    function Ok() {
      if (Ys !== null) {
        for (var e = 0; e < Ys.length; e++) {
          var t = Ys[e], o = t.interleaved;
          if (o !== null) {
            t.interleaved = null;
            var l = o.next, d = t.pending;
            if (d !== null) {
              var m = d.next;
              d.next = l, o.next = m;
            }
            t.pending = o;
          }
        }
        Ys = null;
      }
    }
    function lw(e, t, o, l) {
      var d = t.interleaved;
      return d === null ? (o.next = o, mC(t)) : (o.next = d.next, d.next = o), t.interleaved = o, Bg(e, l);
    }
    function Dk(e, t, o, l) {
      var d = t.interleaved;
      d === null ? (o.next = o, mC(t)) : (o.next = d.next, d.next = o), t.interleaved = o;
    }
    function Nk(e, t, o, l) {
      var d = t.interleaved;
      return d === null ? (o.next = o, mC(t)) : (o.next = d.next, d.next = o), t.interleaved = o, Bg(e, l);
    }
    function Aa(e, t) {
      return Bg(e, t);
    }
    var kk = Bg;
    function Bg(e, t) {
      e.lanes = gt(e.lanes, t);
      var o = e.alternate;
      o !== null && (o.lanes = gt(o.lanes, t)), o === null && (e.flags & (Jt | ma)) !== Je && aT(e);
      for (var l = e, d = e.return; d !== null; )
        d.childLanes = gt(d.childLanes, t), o = d.alternate, o !== null ? o.childLanes = gt(o.childLanes, t) : (d.flags & (Jt | ma)) !== Je && aT(e), l = d, d = d.return;
      if (l.tag === T) {
        var m = l.stateNode;
        return m;
      } else
        return null;
    }
    var sw = 0, cw = 1, Vg = 2, gC = 3, Pg = !1, yC, Hg;
    yC = !1, Hg = null;
    function bC(e) {
      var t = {
        baseState: e.memoizedState,
        firstBaseUpdate: null,
        lastBaseUpdate: null,
        shared: {
          pending: null,
          interleaved: null,
          lanes: ce
        },
        effects: null
      };
      e.updateQueue = t;
    }
    function fw(e, t) {
      var o = t.updateQueue, l = e.updateQueue;
      if (o === l) {
        var d = {
          baseState: l.baseState,
          firstBaseUpdate: l.firstBaseUpdate,
          lastBaseUpdate: l.lastBaseUpdate,
          shared: l.shared,
          effects: l.effects
        };
        t.updateQueue = d;
      }
    }
    function du(e, t) {
      var o = {
        eventTime: e,
        lane: t,
        tag: sw,
        payload: null,
        callback: null,
        next: null
      };
      return o;
    }
    function Tl(e, t, o) {
      var l = e.updateQueue;
      if (l === null)
        return null;
      var d = l.shared;
      if (Hg === d && !yC && (h("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."), yC = !0), DL()) {
        var m = d.pending;
        return m === null ? t.next = t : (t.next = m.next, m.next = t), d.pending = t, kk(e, o);
      } else
        return Nk(e, d, t, o);
    }
    function _g(e, t, o) {
      var l = t.updateQueue;
      if (l !== null) {
        var d = l.shared;
        if (Op(o)) {
          var m = d.lanes;
          m = hf(m, e.pendingLanes);
          var b = gt(m, o);
          d.lanes = b, Dp(e, b);
        }
      }
    }
    function CC(e, t) {
      var o = e.updateQueue, l = e.alternate;
      if (l !== null) {
        var d = l.updateQueue;
        if (o === d) {
          var m = null, b = null, x = o.firstBaseUpdate;
          if (x !== null) {
            var R = x;
            do {
              var D = {
                eventTime: R.eventTime,
                lane: R.lane,
                tag: R.tag,
                payload: R.payload,
                callback: R.callback,
                next: null
              };
              b === null ? m = b = D : (b.next = D, b = D), R = R.next;
            } while (R !== null);
            b === null ? m = b = t : (b.next = t, b = t);
          } else
            m = b = t;
          o = {
            baseState: d.baseState,
            firstBaseUpdate: m,
            lastBaseUpdate: b,
            shared: d.shared,
            effects: d.effects
          }, e.updateQueue = o;
          return;
        }
      }
      var k = o.lastBaseUpdate;
      k === null ? o.firstBaseUpdate = t : k.next = t, o.lastBaseUpdate = t;
    }
    function Mk(e, t, o, l, d, m) {
      switch (o.tag) {
        case cw: {
          var b = o.payload;
          if (typeof b == "function") {
            iw();
            var x = b.call(m, l, d);
            {
              if (e.mode & Ct) {
                Tn(!0);
                try {
                  b.call(m, l, d);
                } finally {
                  Tn(!1);
                }
              }
              ow();
            }
            return x;
          }
          return b;
        }
        case gC:
          e.flags = e.flags & ~zn | st;
        case sw: {
          var R = o.payload, D;
          if (typeof R == "function") {
            iw(), D = R.call(m, l, d);
            {
              if (e.mode & Ct) {
                Tn(!0);
                try {
                  R.call(m, l, d);
                } finally {
                  Tn(!1);
                }
              }
              ow();
            }
          } else
            D = R;
          return D == null ? l : Et({}, l, D);
        }
        case Vg:
          return Pg = !0, l;
      }
      return l;
    }
    function zg(e, t, o, l) {
      var d = e.updateQueue;
      Pg = !1, Hg = d.shared;
      var m = d.firstBaseUpdate, b = d.lastBaseUpdate, x = d.shared.pending;
      if (x !== null) {
        d.shared.pending = null;
        var R = x, D = R.next;
        R.next = null, b === null ? m = D : b.next = D, b = R;
        var k = e.alternate;
        if (k !== null) {
          var X = k.updateQueue, U = X.lastBaseUpdate;
          U !== b && (U === null ? X.firstBaseUpdate = D : U.next = D, X.lastBaseUpdate = R);
        }
      }
      if (m !== null) {
        var ee = d.baseState, ne = ce, ie = null, De = null, qe = null, Ye = m;
        do {
          var At = Ye.lane, wt = Ye.eventTime;
          if (Ko(l, At)) {
            if (qe !== null) {
              var oe = {
                eventTime: wt,
                // This update is going to be committed so we never want uncommit
                // it. Using NoLane works because 0 is a subset of all bitmasks, so
                // this will never be skipped by the check above.
                lane: In,
                tag: Ye.tag,
                payload: Ye.payload,
                callback: Ye.callback,
                next: null
              };
              qe = qe.next = oe;
            }
            ee = Mk(e, d, Ye, ee, t, o);
            var q = Ye.callback;
            if (q !== null && // If the update was already committed, we should not queue its
            // callback again.
            Ye.lane !== In) {
              e.flags |= ri;
              var he = d.effects;
              he === null ? d.effects = [Ye] : he.push(Ye);
            }
          } else {
            var J = {
              eventTime: wt,
              lane: At,
              tag: Ye.tag,
              payload: Ye.payload,
              callback: Ye.callback,
              next: null
            };
            qe === null ? (De = qe = J, ie = ee) : qe = qe.next = J, ne = gt(ne, At);
          }
          if (Ye = Ye.next, Ye === null) {
            if (x = d.shared.pending, x === null)
              break;
            var Be = x, Me = Be.next;
            Be.next = null, Ye = Me, d.lastBaseUpdate = Be, d.shared.pending = null;
          }
        } while (!0);
        qe === null && (ie = ee), d.baseState = ie, d.firstBaseUpdate = De, d.lastBaseUpdate = qe;
        var ut = d.shared.interleaved;
        if (ut !== null) {
          var pt = ut;
          do
            ne = gt(ne, pt.lane), pt = pt.next;
          while (pt !== ut);
        } else
          m === null && (d.shared.lanes = ce);
        zv(ne), e.lanes = ne, e.memoizedState = ee;
      }
      Hg = null;
    }
    function Lk(e, t) {
      if (typeof e != "function")
        throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + e));
      e.call(t);
    }
    function dw() {
      Pg = !1;
    }
    function Gg() {
      return Pg;
    }
    function pw(e, t, o) {
      var l = t.effects;
      if (t.effects = null, l !== null)
        for (var d = 0; d < l.length; d++) {
          var m = l[d], b = m.callback;
          b !== null && (m.callback = null, Lk(b, o));
        }
    }
    var hv = {}, Il = El(hv), mv = El(hv), jg = El(hv);
    function Ug(e) {
      if (e === hv)
        throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");
      return e;
    }
    function vw() {
      var e = Ug(jg.current);
      return e;
    }
    function SC(e, t) {
      jr(jg, t, e), jr(mv, e, e), jr(Il, hv, e);
      var o = JN(t);
      Gr(Il, e), jr(Il, o, e);
    }
    function Kf(e) {
      Gr(Il, e), Gr(mv, e), Gr(jg, e);
    }
    function EC() {
      var e = Ug(Il.current);
      return e;
    }
    function hw(e) {
      Ug(jg.current);
      var t = Ug(Il.current), o = qN(t, e.type);
      t !== o && (jr(mv, e, e), jr(Il, o, e));
    }
    function xC(e) {
      mv.current === e && (Gr(Il, e), Gr(mv, e));
    }
    var Fk = 0, mw = 1, gw = 1, gv = 2, _i = El(Fk);
    function wC(e, t) {
      return (e & t) !== 0;
    }
    function ed(e) {
      return e & mw;
    }
    function RC(e, t) {
      return e & mw | t;
    }
    function Bk(e, t) {
      return e | t;
    }
    function Al(e, t) {
      jr(_i, t, e);
    }
    function td(e) {
      Gr(_i, e);
    }
    function Vk(e, t) {
      var o = e.memoizedState;
      return o !== null ? o.dehydrated !== null : (e.memoizedProps, !0);
    }
    function Wg(e) {
      for (var t = e; t !== null; ) {
        if (t.tag === V) {
          var o = t.memoizedState;
          if (o !== null) {
            var l = o.dehydrated;
            if (l === null || Lx(l) || jb(l))
              return t;
          }
        } else if (t.tag === de && // revealOrder undefined can't be trusted because it don't
        // keep track of whether it suspended or not.
        t.memoizedProps.revealOrder !== void 0) {
          var d = (t.flags & st) !== Je;
          if (d)
            return t;
        } else if (t.child !== null) {
          t.child.return = t, t = t.child;
          continue;
        }
        if (t === e)
          return null;
        for (; t.sibling === null; ) {
          if (t.return === null || t.return === e)
            return null;
          t = t.return;
        }
        t.sibling.return = t.return, t = t.sibling;
      }
      return null;
    }
    var Oa = (
      /*   */
      0
    ), tr = (
      /* */
      1
    ), Co = (
      /*  */
      2
    ), nr = (
      /*    */
      4
    ), Sr = (
      /*   */
      8
    ), TC = [];
    function IC() {
      for (var e = 0; e < TC.length; e++) {
        var t = TC[e];
        t._workInProgressVersionPrimary = null;
      }
      TC.length = 0;
    }
    function Pk(e, t) {
      var o = t._getVersion, l = o(t._source);
      e.mutableSourceEagerHydrationData == null ? e.mutableSourceEagerHydrationData = [t, l] : e.mutableSourceEagerHydrationData.push(t, l);
    }
    var Fe = u.ReactCurrentDispatcher, yv = u.ReactCurrentBatchConfig, AC, nd;
    AC = /* @__PURE__ */ new Set();
    var $s = ce, Ut = null, rr = null, ar = null, Xg = !1, bv = !1, Cv = 0, Hk = 0, _k = 25, le = null, di = null, Ol = -1, OC = !1;
    function Bt() {
      {
        var e = le;
        di === null ? di = [e] : di.push(e);
      }
    }
    function Re() {
      {
        var e = le;
        di !== null && (Ol++, di[Ol] !== e && zk(e));
      }
    }
    function rd(e) {
      e != null && !Hn(e) && h("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", le, typeof e);
    }
    function zk(e) {
      {
        var t = mt(Ut);
        if (!AC.has(t) && (AC.add(t), di !== null)) {
          for (var o = "", l = 30, d = 0; d <= Ol; d++) {
            for (var m = di[d], b = d === Ol ? e : m, x = d + 1 + ". " + m; x.length < l; )
              x += " ";
            x += b + `
`, o += x;
          }
          h(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks

   Previous render            Next render
   ------------------------------------------------------
%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`, t, o);
        }
      }
    }
    function Ur() {
      throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);
    }
    function DC(e, t) {
      if (OC)
        return !1;
      if (t === null)
        return h("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", le), !1;
      e.length !== t.length && h(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.

Previous: %s
Incoming: %s`, le, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
      for (var o = 0; o < t.length && o < e.length; o++)
        if (!_e(e[o], t[o]))
          return !1;
      return !0;
    }
    function ad(e, t, o, l, d, m) {
      $s = m, Ut = t, di = e !== null ? e._debugHookTypes : null, Ol = -1, OC = e !== null && e.type !== t.type, t.memoizedState = null, t.updateQueue = null, t.lanes = ce, e !== null && e.memoizedState !== null ? Fe.current = Hw : di !== null ? Fe.current = Pw : Fe.current = Vw;
      var b = o(l, d);
      if (bv) {
        var x = 0;
        do {
          if (bv = !1, Cv = 0, x >= _k)
            throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
          x += 1, OC = !1, rr = null, ar = null, t.updateQueue = null, Ol = -1, Fe.current = _w, b = o(l, d);
        } while (bv);
      }
      Fe.current = iy, t._debugHookTypes = di;
      var R = rr !== null && rr.next !== null;
      if ($s = ce, Ut = null, rr = null, ar = null, le = null, di = null, Ol = -1, e !== null && (e.flags & qn) !== (t.flags & qn) && // Disable this warning in legacy mode, because legacy Suspense is weird
      // and creates false positives. To make this work in legacy mode, we'd
      // need to mark fibers that commit in an incomplete state, somehow. For
      // now I'll disable the warning that most of the bugs that would trigger
      // it are either exclusive to concurrent mode or exist in both.
      (e.mode & Ze) !== We && h("Internal React error: Expected static flag was missing. Please notify the React team."), Xg = !1, R)
        throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
      return b;
    }
    function id() {
      var e = Cv !== 0;
      return Cv = 0, e;
    }
    function yw(e, t, o) {
      t.updateQueue = e.updateQueue, (t.mode & ta) !== We ? t.flags &= ~(Uo | Lr | tn | yt) : t.flags &= ~(tn | yt), e.lanes = Ts(e.lanes, o);
    }
    function bw() {
      if (Fe.current = iy, Xg) {
        for (var e = Ut.memoizedState; e !== null; ) {
          var t = e.queue;
          t !== null && (t.pending = null), e = e.next;
        }
        Xg = !1;
      }
      $s = ce, Ut = null, rr = null, ar = null, di = null, Ol = -1, le = null, kw = !1, bv = !1, Cv = 0;
    }
    function So() {
      var e = {
        memoizedState: null,
        baseState: null,
        baseQueue: null,
        queue: null,
        next: null
      };
      return ar === null ? Ut.memoizedState = ar = e : ar = ar.next = e, ar;
    }
    function pi() {
      var e;
      if (rr === null) {
        var t = Ut.alternate;
        t !== null ? e = t.memoizedState : e = null;
      } else
        e = rr.next;
      var o;
      if (ar === null ? o = Ut.memoizedState : o = ar.next, o !== null)
        ar = o, o = ar.next, rr = e;
      else {
        if (e === null)
          throw new Error("Rendered more hooks than during the previous render.");
        rr = e;
        var l = {
          memoizedState: rr.memoizedState,
          baseState: rr.baseState,
          baseQueue: rr.baseQueue,
          queue: rr.queue,
          next: null
        };
        ar === null ? Ut.memoizedState = ar = l : ar = ar.next = l;
      }
      return ar;
    }
    function Cw() {
      return {
        lastEffect: null,
        stores: null
      };
    }
    function NC(e, t) {
      return typeof t == "function" ? t(e) : t;
    }
    function kC(e, t, o) {
      var l = So(), d;
      o !== void 0 ? d = o(t) : d = t, l.memoizedState = l.baseState = d;
      var m = {
        pending: null,
        interleaved: null,
        lanes: ce,
        dispatch: null,
        lastRenderedReducer: e,
        lastRenderedState: d
      };
      l.queue = m;
      var b = m.dispatch = Wk.bind(null, Ut, m);
      return [l.memoizedState, b];
    }
    function MC(e, t, o) {
      var l = pi(), d = l.queue;
      if (d === null)
        throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");
      d.lastRenderedReducer = e;
      var m = rr, b = m.baseQueue, x = d.pending;
      if (x !== null) {
        if (b !== null) {
          var R = b.next, D = x.next;
          b.next = D, x.next = R;
        }
        m.baseQueue !== b && h("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), m.baseQueue = b = x, d.pending = null;
      }
      if (b !== null) {
        var k = b.next, X = m.baseState, U = null, ee = null, ne = null, ie = k;
        do {
          var De = ie.lane;
          if (Ko($s, De)) {
            if (ne !== null) {
              var Ye = {
                // This update is going to be committed so we never want uncommit
                // it. Using NoLane works because 0 is a subset of all bitmasks, so
                // this will never be skipped by the check above.
                lane: In,
                action: ie.action,
                hasEagerState: ie.hasEagerState,
                eagerState: ie.eagerState,
                next: null
              };
              ne = ne.next = Ye;
            }
            if (ie.hasEagerState)
              X = ie.eagerState;
            else {
              var At = ie.action;
              X = e(X, At);
            }
          } else {
            var qe = {
              lane: De,
              action: ie.action,
              hasEagerState: ie.hasEagerState,
              eagerState: ie.eagerState,
              next: null
            };
            ne === null ? (ee = ne = qe, U = X) : ne = ne.next = qe, Ut.lanes = gt(Ut.lanes, De), zv(De);
          }
          ie = ie.next;
        } while (ie !== null && ie !== k);
        ne === null ? U = X : ne.next = ee, _e(X, l.memoizedState) || Ov(), l.memoizedState = X, l.baseState = U, l.baseQueue = ne, d.lastRenderedState = X;
      }
      var wt = d.interleaved;
      if (wt !== null) {
        var J = wt;
        do {
          var oe = J.lane;
          Ut.lanes = gt(Ut.lanes, oe), zv(oe), J = J.next;
        } while (J !== wt);
      } else
        b === null && (d.lanes = ce);
      var q = d.dispatch;
      return [l.memoizedState, q];
    }
    function LC(e, t, o) {
      var l = pi(), d = l.queue;
      if (d === null)
        throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");
      d.lastRenderedReducer = e;
      var m = d.dispatch, b = d.pending, x = l.memoizedState;
      if (b !== null) {
        d.pending = null;
        var R = b.next, D = R;
        do {
          var k = D.action;
          x = e(x, k), D = D.next;
        } while (D !== R);
        _e(x, l.memoizedState) || Ov(), l.memoizedState = x, l.baseQueue === null && (l.baseState = x), d.lastRenderedState = x;
      }
      return [x, m];
    }
    function fG(e, t, o) {
    }
    function dG(e, t, o) {
    }
    function FC(e, t, o) {
      var l = Ut, d = So(), m, b = Cr();
      if (b) {
        if (o === void 0)
          throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
        m = o(), nd || m !== o() && (h("The result of getServerSnapshot should be cached to avoid an infinite loop"), nd = !0);
      } else {
        if (m = t(), !nd) {
          var x = t();
          _e(m, x) || (h("The result of getSnapshot should be cached to avoid an infinite loop"), nd = !0);
        }
        var R = wy();
        if (R === null)
          throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
        Rs(R, $s) || Sw(l, t, m);
      }
      d.memoizedState = m;
      var D = {
        value: m,
        getSnapshot: t
      };
      return d.queue = D, Jg(xw.bind(null, l, D, e), [e]), l.flags |= tn, Sv(tr | Sr, Ew.bind(null, l, D, m, t), void 0, null), m;
    }
    function Zg(e, t, o) {
      var l = Ut, d = pi(), m = t();
      if (!nd) {
        var b = t();
        _e(m, b) || (h("The result of getSnapshot should be cached to avoid an infinite loop"), nd = !0);
      }
      var x = d.memoizedState, R = !_e(x, m);
      R && (d.memoizedState = m, Ov());
      var D = d.queue;
      if (xv(xw.bind(null, l, D, e), [e]), D.getSnapshot !== t || R || // Check if the susbcribe function changed. We can save some memory by
      // checking whether we scheduled a subscription effect above.
      ar !== null && ar.memoizedState.tag & tr) {
        l.flags |= tn, Sv(tr | Sr, Ew.bind(null, l, D, m, t), void 0, null);
        var k = wy();
        if (k === null)
          throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
        Rs(k, $s) || Sw(l, t, m);
      }
      return m;
    }
    function Sw(e, t, o) {
      e.flags |= hs;
      var l = {
        getSnapshot: t,
        value: o
      }, d = Ut.updateQueue;
      if (d === null)
        d = Cw(), Ut.updateQueue = d, d.stores = [l];
      else {
        var m = d.stores;
        m === null ? d.stores = [l] : m.push(l);
      }
    }
    function Ew(e, t, o, l) {
      t.value = o, t.getSnapshot = l, ww(t) && Rw(e);
    }
    function xw(e, t, o) {
      var l = function() {
        ww(t) && Rw(e);
      };
      return o(l);
    }
    function ww(e) {
      var t = e.getSnapshot, o = e.value;
      try {
        var l = t();
        return !_e(o, l);
      } catch {
        return !0;
      }
    }
    function Rw(e) {
      var t = Aa(e, $e);
      t !== null && lr(t, e, $e, Qt);
    }
    function Yg(e) {
      var t = So();
      typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e;
      var o = {
        pending: null,
        interleaved: null,
        lanes: ce,
        dispatch: null,
        lastRenderedReducer: NC,
        lastRenderedState: e
      };
      t.queue = o;
      var l = o.dispatch = Xk.bind(null, Ut, o);
      return [t.memoizedState, l];
    }
    function BC(e) {
      return MC(NC);
    }
    function VC(e) {
      return LC(NC);
    }
    function Sv(e, t, o, l) {
      var d = {
        tag: e,
        create: t,
        destroy: o,
        deps: l,
        // Circular
        next: null
      }, m = Ut.updateQueue;
      if (m === null)
        m = Cw(), Ut.updateQueue = m, m.lastEffect = d.next = d;
      else {
        var b = m.lastEffect;
        if (b === null)
          m.lastEffect = d.next = d;
        else {
          var x = b.next;
          b.next = d, d.next = x, m.lastEffect = d;
        }
      }
      return d;
    }
    function PC(e) {
      var t = So();
      {
        var o = {
          current: e
        };
        return t.memoizedState = o, o;
      }
    }
    function $g(e) {
      var t = pi();
      return t.memoizedState;
    }
    function Ev(e, t, o, l) {
      var d = So(), m = l === void 0 ? null : l;
      Ut.flags |= e, d.memoizedState = Sv(tr | t, o, void 0, m);
    }
    function Qg(e, t, o, l) {
      var d = pi(), m = l === void 0 ? null : l, b = void 0;
      if (rr !== null) {
        var x = rr.memoizedState;
        if (b = x.destroy, m !== null) {
          var R = x.deps;
          if (DC(m, R)) {
            d.memoizedState = Sv(t, o, b, m);
            return;
          }
        }
      }
      Ut.flags |= e, d.memoizedState = Sv(tr | t, o, b, m);
    }
    function Jg(e, t) {
      return (Ut.mode & ta) !== We ? Ev(Uo | tn | uo, Sr, e, t) : Ev(tn | uo, Sr, e, t);
    }
    function xv(e, t) {
      return Qg(tn, Sr, e, t);
    }
    function HC(e, t) {
      return Ev(yt, Co, e, t);
    }
    function qg(e, t) {
      return Qg(yt, Co, e, t);
    }
    function _C(e, t) {
      var o = yt;
      return o |= Mr, (Ut.mode & ta) !== We && (o |= Lr), Ev(o, nr, e, t);
    }
    function Kg(e, t) {
      return Qg(yt, nr, e, t);
    }
    function Tw(e, t) {
      if (typeof t == "function") {
        var o = t, l = e();
        return o(l), function() {
          o(null);
        };
      } else if (t != null) {
        var d = t;
        d.hasOwnProperty("current") || h("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(d).join(", ") + "}");
        var m = e();
        return d.current = m, function() {
          d.current = null;
        };
      }
    }
    function zC(e, t, o) {
      typeof t != "function" && h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t !== null ? typeof t : "null");
      var l = o != null ? o.concat([e]) : null, d = yt;
      return d |= Mr, (Ut.mode & ta) !== We && (d |= Lr), Ev(d, nr, Tw.bind(null, t, e), l);
    }
    function ey(e, t, o) {
      typeof t != "function" && h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t !== null ? typeof t : "null");
      var l = o != null ? o.concat([e]) : null;
      return Qg(yt, nr, Tw.bind(null, t, e), l);
    }
    function Gk(e, t) {
    }
    var ty = Gk;
    function GC(e, t) {
      var o = So(), l = t === void 0 ? null : t;
      return o.memoizedState = [e, l], e;
    }
    function ny(e, t) {
      var o = pi(), l = t === void 0 ? null : t, d = o.memoizedState;
      if (d !== null && l !== null) {
        var m = d[1];
        if (DC(l, m))
          return d[0];
      }
      return o.memoizedState = [e, l], e;
    }
    function jC(e, t) {
      var o = So(), l = t === void 0 ? null : t, d = e();
      return o.memoizedState = [d, l], d;
    }
    function ry(e, t) {
      var o = pi(), l = t === void 0 ? null : t, d = o.memoizedState;
      if (d !== null && l !== null) {
        var m = d[1];
        if (DC(l, m))
          return d[0];
      }
      var b = e();
      return o.memoizedState = [b, l], b;
    }
    function UC(e) {
      var t = So();
      return t.memoizedState = e, e;
    }
    function Iw(e) {
      var t = pi(), o = rr, l = o.memoizedState;
      return Ow(t, l, e);
    }
    function Aw(e) {
      var t = pi();
      if (rr === null)
        return t.memoizedState = e, e;
      var o = rr.memoizedState;
      return Ow(t, o, e);
    }
    function Ow(e, t, o) {
      var l = !Mm($s);
      if (l) {
        if (!_e(o, t)) {
          var d = Bm();
          Ut.lanes = gt(Ut.lanes, d), zv(d), e.baseState = !0;
        }
        return t;
      } else
        return e.baseState && (e.baseState = !1, Ov()), e.memoizedState = o, o;
    }
    function jk(e, t, o) {
      var l = Ea();
      pn(cb(l, Mi)), e(!0);
      var d = yv.transition;
      yv.transition = {};
      var m = yv.transition;
      yv.transition._updatedFibers = /* @__PURE__ */ new Set();
      try {
        e(!1), t();
      } finally {
        if (pn(l), yv.transition = d, d === null && m._updatedFibers) {
          var b = m._updatedFibers.size;
          b > 10 && p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), m._updatedFibers.clear();
        }
      }
    }
    function WC() {
      var e = Yg(!1), t = e[0], o = e[1], l = jk.bind(null, o), d = So();
      return d.memoizedState = l, [t, l];
    }
    function Dw() {
      var e = BC(), t = e[0], o = pi(), l = o.memoizedState;
      return [t, l];
    }
    function Nw() {
      var e = VC(), t = e[0], o = pi(), l = o.memoizedState;
      return [t, l];
    }
    var kw = !1;
    function Uk() {
      return kw;
    }
    function XC() {
      var e = So(), t = wy(), o = t.identifierPrefix, l;
      if (Cr()) {
        var d = uk();
        l = ":" + o + "R" + d;
        var m = Cv++;
        m > 0 && (l += "H" + m.toString(32)), l += ":";
      } else {
        var b = Hk++;
        l = ":" + o + "r" + b.toString(32) + ":";
      }
      return e.memoizedState = l, l;
    }
    function ay() {
      var e = pi(), t = e.memoizedState;
      return t;
    }
    function Wk(e, t, o) {
      typeof arguments[3] == "function" && h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
      var l = Ll(e), d = {
        lane: l,
        action: o,
        hasEagerState: !1,
        eagerState: null,
        next: null
      };
      if (Mw(e))
        Lw(t, d);
      else {
        var m = lw(e, t, d, l);
        if (m !== null) {
          var b = ia();
          lr(m, e, l, b), Fw(m, t, l);
        }
      }
      Bw(e, l);
    }
    function Xk(e, t, o) {
      typeof arguments[3] == "function" && h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
      var l = Ll(e), d = {
        lane: l,
        action: o,
        hasEagerState: !1,
        eagerState: null,
        next: null
      };
      if (Mw(e))
        Lw(t, d);
      else {
        var m = e.alternate;
        if (e.lanes === ce && (m === null || m.lanes === ce)) {
          var b = t.lastRenderedReducer;
          if (b !== null) {
            var x;
            x = Fe.current, Fe.current = zi;
            try {
              var R = t.lastRenderedState, D = b(R, o);
              if (d.hasEagerState = !0, d.eagerState = D, _e(D, R)) {
                Dk(e, t, d, l);
                return;
              }
            } catch {
            } finally {
              Fe.current = x;
            }
          }
        }
        var k = lw(e, t, d, l);
        if (k !== null) {
          var X = ia();
          lr(k, e, l, X), Fw(k, t, l);
        }
      }
      Bw(e, l);
    }
    function Mw(e) {
      var t = e.alternate;
      return e === Ut || t !== null && t === Ut;
    }
    function Lw(e, t) {
      bv = Xg = !0;
      var o = e.pending;
      o === null ? t.next = t : (t.next = o.next, o.next = t), e.pending = t;
    }
    function Fw(e, t, o) {
      if (Op(o)) {
        var l = t.lanes;
        l = hf(l, e.pendingLanes);
        var d = gt(l, o);
        t.lanes = d, Dp(e, d);
      }
    }
    function Bw(e, t, o) {
      bs(e, t);
    }
    var iy = {
      readContext: Wn,
      useCallback: Ur,
      useContext: Ur,
      useEffect: Ur,
      useImperativeHandle: Ur,
      useInsertionEffect: Ur,
      useLayoutEffect: Ur,
      useMemo: Ur,
      useReducer: Ur,
      useRef: Ur,
      useState: Ur,
      useDebugValue: Ur,
      useDeferredValue: Ur,
      useTransition: Ur,
      useMutableSource: Ur,
      useSyncExternalStore: Ur,
      useId: Ur,
      unstable_isNewReconciler: ue
    }, Vw = null, Pw = null, Hw = null, _w = null, Eo = null, zi = null, oy = null;
    {
      var ZC = function() {
        h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
      }, dt = function() {
        h("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks");
      };
      Vw = {
        readContext: function(e) {
          return Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", Bt(), rd(t), GC(e, t);
        },
        useContext: function(e) {
          return le = "useContext", Bt(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", Bt(), rd(t), Jg(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", Bt(), rd(o), zC(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", Bt(), rd(t), HC(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", Bt(), rd(t), _C(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", Bt(), rd(t);
          var o = Fe.current;
          Fe.current = Eo;
          try {
            return jC(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", Bt();
          var l = Fe.current;
          Fe.current = Eo;
          try {
            return kC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", Bt(), PC(e);
        },
        useState: function(e) {
          le = "useState", Bt();
          var t = Fe.current;
          Fe.current = Eo;
          try {
            return Yg(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", Bt(), void 0;
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", Bt(), UC(e);
        },
        useTransition: function() {
          return le = "useTransition", Bt(), WC();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", Bt(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", Bt(), FC(e, t, o);
        },
        useId: function() {
          return le = "useId", Bt(), XC();
        },
        unstable_isNewReconciler: ue
      }, Pw = {
        readContext: function(e) {
          return Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", Re(), GC(e, t);
        },
        useContext: function(e) {
          return le = "useContext", Re(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", Re(), Jg(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", Re(), zC(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", Re(), HC(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", Re(), _C(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", Re();
          var o = Fe.current;
          Fe.current = Eo;
          try {
            return jC(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", Re();
          var l = Fe.current;
          Fe.current = Eo;
          try {
            return kC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", Re(), PC(e);
        },
        useState: function(e) {
          le = "useState", Re();
          var t = Fe.current;
          Fe.current = Eo;
          try {
            return Yg(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", Re(), void 0;
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", Re(), UC(e);
        },
        useTransition: function() {
          return le = "useTransition", Re(), WC();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", Re(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", Re(), FC(e, t, o);
        },
        useId: function() {
          return le = "useId", Re(), XC();
        },
        unstable_isNewReconciler: ue
      }, Hw = {
        readContext: function(e) {
          return Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", Re(), ny(e, t);
        },
        useContext: function(e) {
          return le = "useContext", Re(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", Re(), xv(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", Re(), ey(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", Re(), qg(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", Re(), Kg(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", Re();
          var o = Fe.current;
          Fe.current = zi;
          try {
            return ry(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", Re();
          var l = Fe.current;
          Fe.current = zi;
          try {
            return MC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", Re(), $g();
        },
        useState: function(e) {
          le = "useState", Re();
          var t = Fe.current;
          Fe.current = zi;
          try {
            return BC(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", Re(), ty();
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", Re(), Iw(e);
        },
        useTransition: function() {
          return le = "useTransition", Re(), Dw();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", Re(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", Re(), Zg(e, t);
        },
        useId: function() {
          return le = "useId", Re(), ay();
        },
        unstable_isNewReconciler: ue
      }, _w = {
        readContext: function(e) {
          return Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", Re(), ny(e, t);
        },
        useContext: function(e) {
          return le = "useContext", Re(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", Re(), xv(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", Re(), ey(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", Re(), qg(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", Re(), Kg(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", Re();
          var o = Fe.current;
          Fe.current = oy;
          try {
            return ry(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", Re();
          var l = Fe.current;
          Fe.current = oy;
          try {
            return LC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", Re(), $g();
        },
        useState: function(e) {
          le = "useState", Re();
          var t = Fe.current;
          Fe.current = oy;
          try {
            return VC(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", Re(), ty();
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", Re(), Aw(e);
        },
        useTransition: function() {
          return le = "useTransition", Re(), Nw();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", Re(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", Re(), Zg(e, t);
        },
        useId: function() {
          return le = "useId", Re(), ay();
        },
        unstable_isNewReconciler: ue
      }, Eo = {
        readContext: function(e) {
          return ZC(), Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", dt(), Bt(), GC(e, t);
        },
        useContext: function(e) {
          return le = "useContext", dt(), Bt(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", dt(), Bt(), Jg(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", dt(), Bt(), zC(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", dt(), Bt(), HC(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", dt(), Bt(), _C(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", dt(), Bt();
          var o = Fe.current;
          Fe.current = Eo;
          try {
            return jC(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", dt(), Bt();
          var l = Fe.current;
          Fe.current = Eo;
          try {
            return kC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", dt(), Bt(), PC(e);
        },
        useState: function(e) {
          le = "useState", dt(), Bt();
          var t = Fe.current;
          Fe.current = Eo;
          try {
            return Yg(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", dt(), Bt(), void 0;
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", dt(), Bt(), UC(e);
        },
        useTransition: function() {
          return le = "useTransition", dt(), Bt(), WC();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", dt(), Bt(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", dt(), Bt(), FC(e, t, o);
        },
        useId: function() {
          return le = "useId", dt(), Bt(), XC();
        },
        unstable_isNewReconciler: ue
      }, zi = {
        readContext: function(e) {
          return ZC(), Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", dt(), Re(), ny(e, t);
        },
        useContext: function(e) {
          return le = "useContext", dt(), Re(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", dt(), Re(), xv(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", dt(), Re(), ey(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", dt(), Re(), qg(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", dt(), Re(), Kg(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", dt(), Re();
          var o = Fe.current;
          Fe.current = zi;
          try {
            return ry(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", dt(), Re();
          var l = Fe.current;
          Fe.current = zi;
          try {
            return MC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", dt(), Re(), $g();
        },
        useState: function(e) {
          le = "useState", dt(), Re();
          var t = Fe.current;
          Fe.current = zi;
          try {
            return BC(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", dt(), Re(), ty();
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", dt(), Re(), Iw(e);
        },
        useTransition: function() {
          return le = "useTransition", dt(), Re(), Dw();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", dt(), Re(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", dt(), Re(), Zg(e, t);
        },
        useId: function() {
          return le = "useId", dt(), Re(), ay();
        },
        unstable_isNewReconciler: ue
      }, oy = {
        readContext: function(e) {
          return ZC(), Wn(e);
        },
        useCallback: function(e, t) {
          return le = "useCallback", dt(), Re(), ny(e, t);
        },
        useContext: function(e) {
          return le = "useContext", dt(), Re(), Wn(e);
        },
        useEffect: function(e, t) {
          return le = "useEffect", dt(), Re(), xv(e, t);
        },
        useImperativeHandle: function(e, t, o) {
          return le = "useImperativeHandle", dt(), Re(), ey(e, t, o);
        },
        useInsertionEffect: function(e, t) {
          return le = "useInsertionEffect", dt(), Re(), qg(e, t);
        },
        useLayoutEffect: function(e, t) {
          return le = "useLayoutEffect", dt(), Re(), Kg(e, t);
        },
        useMemo: function(e, t) {
          le = "useMemo", dt(), Re();
          var o = Fe.current;
          Fe.current = zi;
          try {
            return ry(e, t);
          } finally {
            Fe.current = o;
          }
        },
        useReducer: function(e, t, o) {
          le = "useReducer", dt(), Re();
          var l = Fe.current;
          Fe.current = zi;
          try {
            return LC(e, t, o);
          } finally {
            Fe.current = l;
          }
        },
        useRef: function(e) {
          return le = "useRef", dt(), Re(), $g();
        },
        useState: function(e) {
          le = "useState", dt(), Re();
          var t = Fe.current;
          Fe.current = zi;
          try {
            return VC(e);
          } finally {
            Fe.current = t;
          }
        },
        useDebugValue: function(e, t) {
          return le = "useDebugValue", dt(), Re(), ty();
        },
        useDeferredValue: function(e) {
          return le = "useDeferredValue", dt(), Re(), Aw(e);
        },
        useTransition: function() {
          return le = "useTransition", dt(), Re(), Nw();
        },
        useMutableSource: function(e, t, o) {
          return le = "useMutableSource", dt(), Re(), void 0;
        },
        useSyncExternalStore: function(e, t, o) {
          return le = "useSyncExternalStore", dt(), Re(), Zg(e, t);
        },
        useId: function() {
          return le = "useId", dt(), Re(), ay();
        },
        unstable_isNewReconciler: ue
      };
    }
    var Dl = r.unstable_now, zw = 0, uy = -1, wv = -1, ly = -1, YC = !1, sy = !1;
    function Gw() {
      return YC;
    }
    function Zk() {
      sy = !0;
    }
    function Yk() {
      YC = !1, sy = !1;
    }
    function $k() {
      YC = sy, sy = !1;
    }
    function jw() {
      return zw;
    }
    function Uw() {
      zw = Dl();
    }
    function $C(e) {
      wv = Dl(), e.actualStartTime < 0 && (e.actualStartTime = Dl());
    }
    function Ww(e) {
      wv = -1;
    }
    function cy(e, t) {
      if (wv >= 0) {
        var o = Dl() - wv;
        e.actualDuration += o, t && (e.selfBaseDuration = o), wv = -1;
      }
    }
    function xo(e) {
      if (uy >= 0) {
        var t = Dl() - uy;
        uy = -1;
        for (var o = e.return; o !== null; ) {
          switch (o.tag) {
            case T:
              var l = o.stateNode;
              l.effectDuration += t;
              return;
            case z:
              var d = o.stateNode;
              d.effectDuration += t;
              return;
          }
          o = o.return;
        }
      }
    }
    function QC(e) {
      if (ly >= 0) {
        var t = Dl() - ly;
        ly = -1;
        for (var o = e.return; o !== null; ) {
          switch (o.tag) {
            case T:
              var l = o.stateNode;
              l !== null && (l.passiveEffectDuration += t);
              return;
            case z:
              var d = o.stateNode;
              d !== null && (d.passiveEffectDuration += t);
              return;
          }
          o = o.return;
        }
      }
    }
    function wo() {
      uy = Dl();
    }
    function JC() {
      ly = Dl();
    }
    function qC(e) {
      for (var t = e.child; t; )
        e.actualDuration += t.actualDuration, t = t.sibling;
    }
    function Gi(e, t) {
      if (e && e.defaultProps) {
        var o = Et({}, t), l = e.defaultProps;
        for (var d in l)
          o[d] === void 0 && (o[d] = l[d]);
        return o;
      }
      return t;
    }
    var KC = {}, e1, t1, n1, r1, a1, Xw, fy, i1, o1, u1, Rv;
    {
      e1 = /* @__PURE__ */ new Set(), t1 = /* @__PURE__ */ new Set(), n1 = /* @__PURE__ */ new Set(), r1 = /* @__PURE__ */ new Set(), i1 = /* @__PURE__ */ new Set(), a1 = /* @__PURE__ */ new Set(), o1 = /* @__PURE__ */ new Set(), u1 = /* @__PURE__ */ new Set(), Rv = /* @__PURE__ */ new Set();
      var Zw = /* @__PURE__ */ new Set();
      fy = function(e, t) {
        if (!(e === null || typeof e == "function")) {
          var o = t + "_" + e;
          Zw.has(o) || (Zw.add(o), h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", t, e));
        }
      }, Xw = function(e, t) {
        if (t === void 0) {
          var o = _t(e) || "Component";
          a1.has(o) || (a1.add(o), h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", o));
        }
      }, Object.defineProperty(KC, "_processChildContext", {
        enumerable: !1,
        value: function() {
          throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).");
        }
      }), Object.freeze(KC);
    }
    function l1(e, t, o, l) {
      var d = e.memoizedState, m = o(l, d);
      {
        if (e.mode & Ct) {
          Tn(!0);
          try {
            m = o(l, d);
          } finally {
            Tn(!1);
          }
        }
        Xw(t, m);
      }
      var b = m == null ? d : Et({}, d, m);
      if (e.memoizedState = b, e.lanes === ce) {
        var x = e.updateQueue;
        x.baseState = b;
      }
    }
    var s1 = {
      isMounted: Kr,
      enqueueSetState: function(e, t, o) {
        var l = va(e), d = ia(), m = Ll(l), b = du(d, m);
        b.payload = t, o != null && (fy(o, "setState"), b.callback = o);
        var x = Tl(l, b, m);
        x !== null && (lr(x, l, m, d), _g(x, l, m)), bs(l, m);
      },
      enqueueReplaceState: function(e, t, o) {
        var l = va(e), d = ia(), m = Ll(l), b = du(d, m);
        b.tag = cw, b.payload = t, o != null && (fy(o, "replaceState"), b.callback = o);
        var x = Tl(l, b, m);
        x !== null && (lr(x, l, m, d), _g(x, l, m)), bs(l, m);
      },
      enqueueForceUpdate: function(e, t) {
        var o = va(e), l = ia(), d = Ll(o), m = du(l, d);
        m.tag = Vg, t != null && (fy(t, "forceUpdate"), m.callback = t);
        var b = Tl(o, m, d);
        b !== null && (lr(b, o, d, l), _g(b, o, d)), Jc(o, d);
      }
    };
    function Yw(e, t, o, l, d, m, b) {
      var x = e.stateNode;
      if (typeof x.shouldComponentUpdate == "function") {
        var R = x.shouldComponentUpdate(l, m, b);
        {
          if (e.mode & Ct) {
            Tn(!0);
            try {
              R = x.shouldComponentUpdate(l, m, b);
            } finally {
              Tn(!1);
            }
          }
          R === void 0 && h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", _t(t) || "Component");
        }
        return R;
      }
      return t.prototype && t.prototype.isPureReactComponent ? !at(o, l) || !at(d, m) : !0;
    }
    function Qk(e, t, o) {
      var l = e.stateNode;
      {
        var d = _t(t) || "Component", m = l.render;
        m || (t.prototype && typeof t.prototype.render == "function" ? h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", d) : h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", d)), l.getInitialState && !l.getInitialState.isReactClassApproved && !l.state && h("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", d), l.getDefaultProps && !l.getDefaultProps.isReactClassApproved && h("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", d), l.propTypes && h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", d), l.contextType && h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", d), t.childContextTypes && !Rv.has(t) && // Strict Mode has its own warning for legacy context, so we can skip
        // this one.
        (e.mode & Ct) === We && (Rv.add(t), h(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead

.Learn more about this warning here: https://reactjs.org/link/legacy-context`, d)), t.contextTypes && !Rv.has(t) && // Strict Mode has its own warning for legacy context, so we can skip
        // this one.
        (e.mode & Ct) === We && (Rv.add(t), h(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.

Learn more about this warning here: https://reactjs.org/link/legacy-context`, d)), l.contextTypes && h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", d), t.contextType && t.contextTypes && !o1.has(t) && (o1.add(t), h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", d)), typeof l.componentShouldUpdate == "function" && h("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", d), t.prototype && t.prototype.isPureReactComponent && typeof l.shouldComponentUpdate < "u" && h("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", _t(t) || "A pure component"), typeof l.componentDidUnmount == "function" && h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", d), typeof l.componentDidReceiveProps == "function" && h("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", d), typeof l.componentWillRecieveProps == "function" && h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", d), typeof l.UNSAFE_componentWillRecieveProps == "function" && h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", d);
        var b = l.props !== o;
        l.props !== void 0 && b && h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", d, d), l.defaultProps && h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", d, d), typeof l.getSnapshotBeforeUpdate == "function" && typeof l.componentDidUpdate != "function" && !n1.has(t) && (n1.add(t), h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", _t(t))), typeof l.getDerivedStateFromProps == "function" && h("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", d), typeof l.getDerivedStateFromError == "function" && h("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", d), typeof t.getSnapshotBeforeUpdate == "function" && h("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", d);
        var x = l.state;
        x && (typeof x != "object" || Hn(x)) && h("%s.state: must be set to an object or null", d), typeof l.getChildContext == "function" && typeof t.childContextTypes != "object" && h("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", d);
      }
    }
    function $w(e, t) {
      t.updater = s1, e.stateNode = t, ju(t, e), t._reactInternalInstance = KC;
    }
    function Qw(e, t, o) {
      var l = !1, d = Ya, m = Ya, b = t.contextType;
      if ("contextType" in t) {
        var x = (
          // Allow null for conditional declaration
          b === null || b !== void 0 && b.$$typeof === Ld && b._context === void 0
        );
        if (!x && !u1.has(t)) {
          u1.add(t);
          var R = "";
          b === void 0 ? R = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof b != "object" ? R = " However, it is set to a " + typeof b + "." : b.$$typeof === Md ? R = " Did you accidentally pass the Context.Provider instead?" : b._context !== void 0 ? R = " Did you accidentally pass the Context.Consumer instead?" : R = " However, it is set to an object with keys {" + Object.keys(b).join(", ") + "}.", h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", _t(t) || "Component", R);
        }
      }
      if (typeof b == "object" && b !== null)
        m = Wn(b);
      else {
        d = Wf(e, t, !0);
        var D = t.contextTypes;
        l = D != null, m = l ? Xf(e, d) : Ya;
      }
      var k = new t(o, m);
      if (e.mode & Ct) {
        Tn(!0);
        try {
          k = new t(o, m);
        } finally {
          Tn(!1);
        }
      }
      var X = e.memoizedState = k.state !== null && k.state !== void 0 ? k.state : null;
      $w(e, k);
      {
        if (typeof t.getDerivedStateFromProps == "function" && X === null) {
          var U = _t(t) || "Component";
          t1.has(U) || (t1.add(U), h("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", U, k.state === null ? "null" : "undefined", U));
        }
        if (typeof t.getDerivedStateFromProps == "function" || typeof k.getSnapshotBeforeUpdate == "function") {
          var ee = null, ne = null, ie = null;
          if (typeof k.componentWillMount == "function" && k.componentWillMount.__suppressDeprecationWarning !== !0 ? ee = "componentWillMount" : typeof k.UNSAFE_componentWillMount == "function" && (ee = "UNSAFE_componentWillMount"), typeof k.componentWillReceiveProps == "function" && k.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? ne = "componentWillReceiveProps" : typeof k.UNSAFE_componentWillReceiveProps == "function" && (ne = "UNSAFE_componentWillReceiveProps"), typeof k.componentWillUpdate == "function" && k.componentWillUpdate.__suppressDeprecationWarning !== !0 ? ie = "componentWillUpdate" : typeof k.UNSAFE_componentWillUpdate == "function" && (ie = "UNSAFE_componentWillUpdate"), ee !== null || ne !== null || ie !== null) {
            var De = _t(t) || "Component", qe = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
            r1.has(De) || (r1.add(De), h(`Unsafe legacy lifecycles will not be called for components using new component APIs.

%s uses %s but also contains the following legacy lifecycles:%s%s%s

The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`, De, qe, ee !== null ? `
  ` + ee : "", ne !== null ? `
  ` + ne : "", ie !== null ? `
  ` + ie : ""));
          }
        }
      }
      return l && Hx(e, d, m), k;
    }
    function Jk(e, t) {
      var o = t.state;
      typeof t.componentWillMount == "function" && t.componentWillMount(), typeof t.UNSAFE_componentWillMount == "function" && t.UNSAFE_componentWillMount(), o !== t.state && (h("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", mt(e) || "Component"), s1.enqueueReplaceState(t, t.state, null));
    }
    function Jw(e, t, o, l) {
      var d = t.state;
      if (typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(o, l), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(o, l), t.state !== d) {
        {
          var m = mt(e) || "Component";
          e1.has(m) || (e1.add(m), h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", m));
        }
        s1.enqueueReplaceState(t, t.state, null);
      }
    }
    function c1(e, t, o, l) {
      Qk(e, t, o);
      var d = e.stateNode;
      d.props = o, d.state = e.memoizedState, d.refs = {}, bC(e);
      var m = t.contextType;
      if (typeof m == "object" && m !== null)
        d.context = Wn(m);
      else {
        var b = Wf(e, t, !0);
        d.context = Xf(e, b);
      }
      {
        if (d.state === o) {
          var x = _t(t) || "Component";
          i1.has(x) || (i1.add(x), h("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", x));
        }
        e.mode & Ct && Hi.recordLegacyContextWarning(e, d), Hi.recordUnsafeLifecycleWarnings(e, d);
      }
      d.state = e.memoizedState;
      var R = t.getDerivedStateFromProps;
      if (typeof R == "function" && (l1(e, t, R, o), d.state = e.memoizedState), typeof t.getDerivedStateFromProps != "function" && typeof d.getSnapshotBeforeUpdate != "function" && (typeof d.UNSAFE_componentWillMount == "function" || typeof d.componentWillMount == "function") && (Jk(e, d), zg(e, o, d, l), d.state = e.memoizedState), typeof d.componentDidMount == "function") {
        var D = yt;
        D |= Mr, (e.mode & ta) !== We && (D |= Lr), e.flags |= D;
      }
    }
    function qk(e, t, o, l) {
      var d = e.stateNode, m = e.memoizedProps;
      d.props = m;
      var b = d.context, x = t.contextType, R = Ya;
      if (typeof x == "object" && x !== null)
        R = Wn(x);
      else {
        var D = Wf(e, t, !0);
        R = Xf(e, D);
      }
      var k = t.getDerivedStateFromProps, X = typeof k == "function" || typeof d.getSnapshotBeforeUpdate == "function";
      !X && (typeof d.UNSAFE_componentWillReceiveProps == "function" || typeof d.componentWillReceiveProps == "function") && (m !== o || b !== R) && Jw(e, d, o, R), dw();
      var U = e.memoizedState, ee = d.state = U;
      if (zg(e, o, d, l), ee = e.memoizedState, m === o && U === ee && !Eg() && !Gg()) {
        if (typeof d.componentDidMount == "function") {
          var ne = yt;
          ne |= Mr, (e.mode & ta) !== We && (ne |= Lr), e.flags |= ne;
        }
        return !1;
      }
      typeof k == "function" && (l1(e, t, k, o), ee = e.memoizedState);
      var ie = Gg() || Yw(e, t, m, o, U, ee, R);
      if (ie) {
        if (!X && (typeof d.UNSAFE_componentWillMount == "function" || typeof d.componentWillMount == "function") && (typeof d.componentWillMount == "function" && d.componentWillMount(), typeof d.UNSAFE_componentWillMount == "function" && d.UNSAFE_componentWillMount()), typeof d.componentDidMount == "function") {
          var De = yt;
          De |= Mr, (e.mode & ta) !== We && (De |= Lr), e.flags |= De;
        }
      } else {
        if (typeof d.componentDidMount == "function") {
          var qe = yt;
          qe |= Mr, (e.mode & ta) !== We && (qe |= Lr), e.flags |= qe;
        }
        e.memoizedProps = o, e.memoizedState = ee;
      }
      return d.props = o, d.state = ee, d.context = R, ie;
    }
    function Kk(e, t, o, l, d) {
      var m = t.stateNode;
      fw(e, t);
      var b = t.memoizedProps, x = t.type === t.elementType ? b : Gi(t.type, b);
      m.props = x;
      var R = t.pendingProps, D = m.context, k = o.contextType, X = Ya;
      if (typeof k == "object" && k !== null)
        X = Wn(k);
      else {
        var U = Wf(t, o, !0);
        X = Xf(t, U);
      }
      var ee = o.getDerivedStateFromProps, ne = typeof ee == "function" || typeof m.getSnapshotBeforeUpdate == "function";
      !ne && (typeof m.UNSAFE_componentWillReceiveProps == "function" || typeof m.componentWillReceiveProps == "function") && (b !== R || D !== X) && Jw(t, m, l, X), dw();
      var ie = t.memoizedState, De = m.state = ie;
      if (zg(t, l, m, d), De = t.memoizedState, b === R && ie === De && !Eg() && !Gg() && !xe)
        return typeof m.componentDidUpdate == "function" && (b !== e.memoizedProps || ie !== e.memoizedState) && (t.flags |= yt), typeof m.getSnapshotBeforeUpdate == "function" && (b !== e.memoizedProps || ie !== e.memoizedState) && (t.flags |= ha), !1;
      typeof ee == "function" && (l1(t, o, ee, l), De = t.memoizedState);
      var qe = Gg() || Yw(t, o, x, l, ie, De, X) || // TODO: In some cases, we'll end up checking if context has changed twice,
      // both before and after `shouldComponentUpdate` has been called. Not ideal,
      // but I'm loath to refactor this function. This only happens for memoized
      // components so it's not that common.
      xe;
      return qe ? (!ne && (typeof m.UNSAFE_componentWillUpdate == "function" || typeof m.componentWillUpdate == "function") && (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(l, De, X), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(l, De, X)), typeof m.componentDidUpdate == "function" && (t.flags |= yt), typeof m.getSnapshotBeforeUpdate == "function" && (t.flags |= ha)) : (typeof m.componentDidUpdate == "function" && (b !== e.memoizedProps || ie !== e.memoizedState) && (t.flags |= yt), typeof m.getSnapshotBeforeUpdate == "function" && (b !== e.memoizedProps || ie !== e.memoizedState) && (t.flags |= ha), t.memoizedProps = l, t.memoizedState = De), m.props = l, m.state = De, m.context = X, qe;
    }
    function Qs(e, t) {
      return {
        value: e,
        source: t,
        stack: _d(t),
        digest: null
      };
    }
    function f1(e, t, o) {
      return {
        value: e,
        source: null,
        stack: o ?? null,
        digest: t ?? null
      };
    }
    function eM(e, t) {
      return !0;
    }
    function d1(e, t) {
      try {
        var o = eM(e, t);
        if (o === !1)
          return;
        var l = t.value, d = t.source, m = t.stack, b = m !== null ? m : "";
        if (l != null && l._suppressLogging) {
          if (e.tag === E)
            return;
          console.error(l);
        }
        var x = d ? mt(d) : null, R = x ? "The above error occurred in the <" + x + "> component:" : "The above error occurred in one of your React components:", D;
        if (e.tag === T)
          D = `Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;
        else {
          var k = mt(e) || "Anonymous";
          D = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + k + ".");
        }
        var X = R + `
` + b + `

` + ("" + D);
        console.error(X);
      } catch (U) {
        setTimeout(function() {
          throw U;
        });
      }
    }
    var tM = typeof WeakMap == "function" ? WeakMap : Map;
    function qw(e, t, o) {
      var l = du(Qt, o);
      l.tag = gC, l.payload = {
        element: null
      };
      var d = t.value;
      return l.callback = function() {
        ZL(d), d1(e, t);
      }, l;
    }
    function p1(e, t, o) {
      var l = du(Qt, o);
      l.tag = gC;
      var d = e.type.getDerivedStateFromError;
      if (typeof d == "function") {
        var m = t.value;
        l.payload = function() {
          return d(m);
        }, l.callback = function() {
          sT(e), d1(e, t);
        };
      }
      var b = e.stateNode;
      return b !== null && typeof b.componentDidCatch == "function" && (l.callback = function() {
        sT(e), d1(e, t), typeof d != "function" && WL(this);
        var R = t.value, D = t.stack;
        this.componentDidCatch(R, {
          componentStack: D !== null ? D : ""
        }), typeof d != "function" && (_r(e.lanes, $e) || h("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", mt(e) || "Unknown"));
      }), l;
    }
    function Kw(e, t, o) {
      var l = e.pingCache, d;
      if (l === null ? (l = e.pingCache = new tM(), d = /* @__PURE__ */ new Set(), l.set(t, d)) : (d = l.get(t), d === void 0 && (d = /* @__PURE__ */ new Set(), l.set(t, d))), !d.has(o)) {
        d.add(o);
        var m = YL.bind(null, e, t, o);
        ea && Gv(e, o), t.then(m, m);
      }
    }
    function nM(e, t, o, l) {
      var d = e.updateQueue;
      if (d === null) {
        var m = /* @__PURE__ */ new Set();
        m.add(o), e.updateQueue = m;
      } else
        d.add(o);
    }
    function rM(e, t) {
      var o = e.tag;
      if ((e.mode & Ze) === We && (o === y || o === H || o === B)) {
        var l = e.alternate;
        l ? (e.updateQueue = l.updateQueue, e.memoizedState = l.memoizedState, e.lanes = l.lanes) : (e.updateQueue = null, e.memoizedState = null);
      }
    }
    function eR(e) {
      var t = e;
      do {
        if (t.tag === V && Vk(t))
          return t;
        t = t.return;
      } while (t !== null);
      return null;
    }
    function tR(e, t, o, l, d) {
      if ((e.mode & Ze) === We) {
        if (e === t)
          e.flags |= zn;
        else {
          if (e.flags |= st, o.flags |= ms, o.flags &= ~(Hc | Jr), o.tag === E) {
            var m = o.alternate;
            if (m === null)
              o.tag = ae;
            else {
              var b = du(Qt, $e);
              b.tag = Vg, Tl(o, b, $e);
            }
          }
          o.lanes = gt(o.lanes, $e);
        }
        return e;
      }
      return e.flags |= zn, e.lanes = d, e;
    }
    function aM(e, t, o, l, d) {
      if (o.flags |= Jr, ea && Gv(e, d), l !== null && typeof l == "object" && typeof l.then == "function") {
        var m = l;
        rM(o), Cr() && o.mode & Ze && Xx();
        var b = eR(t);
        if (b !== null) {
          b.flags &= ~dn, tR(b, t, o, e, d), b.mode & Ze && Kw(e, m, d), nM(b, e, m);
          return;
        } else {
          if (!Ap(d)) {
            Kw(e, m, d), X1();
            return;
          }
          var x = new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");
          l = x;
        }
      } else if (Cr() && o.mode & Ze) {
        Xx();
        var R = eR(t);
        if (R !== null) {
          (R.flags & zn) === Je && (R.flags |= dn), tR(R, t, o, e, d), iC(Qs(l, o));
          return;
        }
      }
      l = Qs(l, o), VL(l);
      var D = t;
      do {
        switch (D.tag) {
          case T: {
            var k = l;
            D.flags |= zn;
            var X = rl(d);
            D.lanes = gt(D.lanes, X);
            var U = qw(D, k, X);
            CC(D, U);
            return;
          }
          case E:
            var ee = l, ne = D.type, ie = D.stateNode;
            if ((D.flags & st) === Je && (typeof ne.getDerivedStateFromError == "function" || ie !== null && typeof ie.componentDidCatch == "function" && !eT(ie))) {
              D.flags |= zn;
              var De = rl(d);
              D.lanes = gt(D.lanes, De);
              var qe = p1(D, ee, De);
              CC(D, qe);
              return;
            }
            break;
        }
        D = D.return;
      } while (D !== null);
    }
    function iM() {
      return null;
    }
    var Tv = u.ReactCurrentOwner, ji = !1, v1, Iv, h1, m1, g1, Js, y1, dy, Av;
    v1 = {}, Iv = {}, h1 = {}, m1 = {}, g1 = {}, Js = !1, y1 = {}, dy = {}, Av = {};
    function ra(e, t, o, l) {
      e === null ? t.child = aw(t, null, o, l) : t.child = Qf(t, e.child, o, l);
    }
    function oM(e, t, o, l) {
      t.child = Qf(t, e.child, null, l), t.child = Qf(t, null, o, l);
    }
    function nR(e, t, o, l, d) {
      if (t.type !== t.elementType) {
        var m = o.propTypes;
        m && Vi(
          m,
          l,
          // Resolved props
          "prop",
          _t(o)
        );
      }
      var b = o.render, x = t.ref, R, D;
      qf(t, d), Zu(t);
      {
        if (Tv.current = t, ja(!0), R = ad(e, t, b, l, x, d), D = id(), t.mode & Ct) {
          Tn(!0);
          try {
            R = ad(e, t, b, l, x, d), D = id();
          } finally {
            Tn(!1);
          }
        }
        ja(!1);
      }
      return Vr(), e !== null && !ji ? (yw(e, t, d), pu(e, t, d)) : (Cr() && D && Kb(t), t.flags |= io, ra(e, t, R, d), t.child);
    }
    function rR(e, t, o, l, d) {
      if (e === null) {
        var m = o.type;
        if (fF(m) && o.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
        o.defaultProps === void 0) {
          var b = m;
          return b = pd(m), t.tag = B, t.type = b, S1(t, m), aR(e, t, b, l, d);
        }
        {
          var x = m.propTypes;
          if (x && Vi(
            x,
            l,
            // Resolved props
            "prop",
            _t(m)
          ), o.defaultProps !== void 0) {
            var R = _t(m) || "Unknown";
            Av[R] || (h("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.", R), Av[R] = !0);
          }
        }
        var D = rS(o.type, null, l, t, t.mode, d);
        return D.ref = t.ref, D.return = t, t.child = D, D;
      }
      {
        var k = o.type, X = k.propTypes;
        X && Vi(
          X,
          l,
          // Resolved props
          "prop",
          _t(k)
        );
      }
      var U = e.child, ee = I1(e, d);
      if (!ee) {
        var ne = U.memoizedProps, ie = o.compare;
        if (ie = ie !== null ? ie : at, ie(ne, l) && e.ref === t.ref)
          return pu(e, t, d);
      }
      t.flags |= io;
      var De = nc(U, l);
      return De.ref = t.ref, De.return = t, t.child = De, De;
    }
    function aR(e, t, o, l, d) {
      if (t.type !== t.elementType) {
        var m = t.elementType;
        if (m.$$typeof === gr) {
          var b = m, x = b._payload, R = b._init;
          try {
            m = R(x);
          } catch {
            m = null;
          }
          var D = m && m.propTypes;
          D && Vi(
            D,
            l,
            // Resolved (SimpleMemoComponent has no defaultProps)
            "prop",
            _t(m)
          );
        }
      }
      if (e !== null) {
        var k = e.memoizedProps;
        if (at(k, l) && e.ref === t.ref && // Prevent bailout if the implementation changed due to hot reload.
        t.type === e.type)
          if (ji = !1, t.pendingProps = l = k, I1(e, d))
            (e.flags & ms) !== Je && (ji = !0);
          else
            return t.lanes = e.lanes, pu(e, t, d);
      }
      return b1(e, t, o, l, d);
    }
    function iR(e, t, o) {
      var l = t.pendingProps, d = l.children, m = e !== null ? e.memoizedState : null;
      if (l.mode === "hidden" || Z)
        if ((t.mode & Ze) === We) {
          var b = {
            baseLanes: ce,
            cachePool: null,
            transitions: null
          };
          t.memoizedState = b, Ry(t, o);
        } else if (_r(o, pr)) {
          var X = {
            baseLanes: ce,
            cachePool: null,
            transitions: null
          };
          t.memoizedState = X;
          var U = m !== null ? m.baseLanes : o;
          Ry(t, U);
        } else {
          var x = null, R;
          if (m !== null) {
            var D = m.baseLanes;
            R = gt(D, o);
          } else
            R = o;
          t.lanes = t.childLanes = pr;
          var k = {
            baseLanes: R,
            cachePool: x,
            transitions: null
          };
          return t.memoizedState = k, t.updateQueue = null, Ry(t, R), null;
        }
      else {
        var ee;
        m !== null ? (ee = gt(m.baseLanes, o), t.memoizedState = null) : ee = o, Ry(t, ee);
      }
      return ra(e, t, d, o), t.child;
    }
    function uM(e, t, o) {
      var l = t.pendingProps;
      return ra(e, t, l, o), t.child;
    }
    function lM(e, t, o) {
      var l = t.pendingProps.children;
      return ra(e, t, l, o), t.child;
    }
    function sM(e, t, o) {
      {
        t.flags |= yt;
        {
          var l = t.stateNode;
          l.effectDuration = 0, l.passiveEffectDuration = 0;
        }
      }
      var d = t.pendingProps, m = d.children;
      return ra(e, t, m, o), t.child;
    }
    function oR(e, t) {
      var o = t.ref;
      (e === null && o !== null || e !== null && e.ref !== o) && (t.flags |= kr, t.flags |= hp);
    }
    function b1(e, t, o, l, d) {
      if (t.type !== t.elementType) {
        var m = o.propTypes;
        m && Vi(
          m,
          l,
          // Resolved props
          "prop",
          _t(o)
        );
      }
      var b;
      {
        var x = Wf(t, o, !0);
        b = Xf(t, x);
      }
      var R, D;
      qf(t, d), Zu(t);
      {
        if (Tv.current = t, ja(!0), R = ad(e, t, o, l, b, d), D = id(), t.mode & Ct) {
          Tn(!0);
          try {
            R = ad(e, t, o, l, b, d), D = id();
          } finally {
            Tn(!1);
          }
        }
        ja(!1);
      }
      return Vr(), e !== null && !ji ? (yw(e, t, d), pu(e, t, d)) : (Cr() && D && Kb(t), t.flags |= io, ra(e, t, R, d), t.child);
    }
    function uR(e, t, o, l, d) {
      {
        switch (TF(t)) {
          case !1: {
            var m = t.stateNode, b = t.type, x = new b(t.memoizedProps, m.context), R = x.state;
            m.updater.enqueueSetState(m, R, null);
            break;
          }
          case !0: {
            t.flags |= st, t.flags |= zn;
            var D = new Error("Simulated error coming from DevTools"), k = rl(d);
            t.lanes = gt(t.lanes, k);
            var X = p1(t, Qs(D, t), k);
            CC(t, X);
            break;
          }
        }
        if (t.type !== t.elementType) {
          var U = o.propTypes;
          U && Vi(
            U,
            l,
            // Resolved props
            "prop",
            _t(o)
          );
        }
      }
      var ee;
      bo(o) ? (ee = !0, wg(t)) : ee = !1, qf(t, d);
      var ne = t.stateNode, ie;
      ne === null ? (vy(e, t), Qw(t, o, l), c1(t, o, l, d), ie = !0) : e === null ? ie = qk(t, o, l, d) : ie = Kk(e, t, o, l, d);
      var De = C1(e, t, o, ie, ee, d);
      {
        var qe = t.stateNode;
        ie && qe.props !== l && (Js || h("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", mt(t) || "a component"), Js = !0);
      }
      return De;
    }
    function C1(e, t, o, l, d, m) {
      oR(e, t);
      var b = (t.flags & st) !== Je;
      if (!l && !b)
        return d && Gx(t, o, !1), pu(e, t, m);
      var x = t.stateNode;
      Tv.current = t;
      var R;
      if (b && typeof o.getDerivedStateFromError != "function")
        R = null, Ww();
      else {
        Zu(t);
        {
          if (ja(!0), R = x.render(), t.mode & Ct) {
            Tn(!0);
            try {
              x.render();
            } finally {
              Tn(!1);
            }
          }
          ja(!1);
        }
        Vr();
      }
      return t.flags |= io, e !== null && b ? oM(e, t, R, m) : ra(e, t, R, m), t.memoizedState = x.state, d && Gx(t, o, !0), t.child;
    }
    function lR(e) {
      var t = e.stateNode;
      t.pendingContext ? _x(e, t.pendingContext, t.pendingContext !== t.context) : t.context && _x(e, t.context, !1), SC(e, t.containerInfo);
    }
    function cM(e, t, o) {
      if (lR(t), e === null)
        throw new Error("Should have a current fiber. This is a bug in React.");
      var l = t.pendingProps, d = t.memoizedState, m = d.element;
      fw(e, t), zg(t, l, null, o);
      var b = t.memoizedState;
      t.stateNode;
      var x = b.element;
      if (d.isDehydrated) {
        var R = {
          element: x,
          isDehydrated: !1,
          cache: b.cache,
          pendingSuspenseBoundaries: b.pendingSuspenseBoundaries,
          transitions: b.transitions
        }, D = t.updateQueue;
        if (D.baseState = R, t.memoizedState = R, t.flags & dn) {
          var k = Qs(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."), t);
          return sR(e, t, x, o, k);
        } else if (x !== m) {
          var X = Qs(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), t);
          return sR(e, t, x, o, X);
        } else {
          pk(t);
          var U = aw(t, null, x, o);
          t.child = U;
          for (var ee = U; ee; )
            ee.flags = ee.flags & ~Jt | ma, ee = ee.sibling;
        }
      } else {
        if ($f(), x === m)
          return pu(e, t, o);
        ra(e, t, x, o);
      }
      return t.child;
    }
    function sR(e, t, o, l, d) {
      return $f(), iC(d), t.flags |= dn, ra(e, t, o, l), t.child;
    }
    function fM(e, t, o) {
      hw(t), e === null && aC(t);
      var l = t.type, d = t.pendingProps, m = e !== null ? e.memoizedProps : null, b = d.children, x = Hb(l, d);
      return x ? b = null : m !== null && Hb(l, m) && (t.flags |= Ft), oR(e, t), ra(e, t, b, o), t.child;
    }
    function dM(e, t) {
      return e === null && aC(t), null;
    }
    function pM(e, t, o, l) {
      vy(e, t);
      var d = t.pendingProps, m = o, b = m._payload, x = m._init, R = x(b);
      t.type = R;
      var D = t.tag = dF(R), k = Gi(R, d), X;
      switch (D) {
        case y:
          return S1(t, R), t.type = R = pd(R), X = b1(null, t, R, k, l), X;
        case E:
          return t.type = R = J1(R), X = uR(null, t, R, k, l), X;
        case H:
          return t.type = R = q1(R), X = nR(null, t, R, k, l), X;
        case j: {
          if (t.type !== t.elementType) {
            var U = R.propTypes;
            U && Vi(
              U,
              k,
              // Resolved for outer only
              "prop",
              _t(R)
            );
          }
          return X = rR(
            null,
            t,
            R,
            Gi(R.type, k),
            // The inner type can have defaults too
            l
          ), X;
        }
      }
      var ee = "";
      throw R !== null && typeof R == "object" && R.$$typeof === gr && (ee = " Did you wrap a component in React.lazy() more than once?"), new Error("Element type is invalid. Received a promise that resolves to: " + R + ". " + ("Lazy element type must resolve to a class or function." + ee));
    }
    function vM(e, t, o, l, d) {
      vy(e, t), t.tag = E;
      var m;
      return bo(o) ? (m = !0, wg(t)) : m = !1, qf(t, d), Qw(t, o, l), c1(t, o, l, d), C1(null, t, o, !0, m, d);
    }
    function hM(e, t, o, l) {
      vy(e, t);
      var d = t.pendingProps, m;
      {
        var b = Wf(t, o, !1);
        m = Xf(t, b);
      }
      qf(t, l);
      var x, R;
      Zu(t);
      {
        if (o.prototype && typeof o.prototype.render == "function") {
          var D = _t(o) || "Unknown";
          v1[D] || (h("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", D, D), v1[D] = !0);
        }
        t.mode & Ct && Hi.recordLegacyContextWarning(t, null), ja(!0), Tv.current = t, x = ad(null, t, o, d, m, l), R = id(), ja(!1);
      }
      if (Vr(), t.flags |= io, typeof x == "object" && x !== null && typeof x.render == "function" && x.$$typeof === void 0) {
        var k = _t(o) || "Unknown";
        Iv[k] || (h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", k, k, k), Iv[k] = !0);
      }
      if (
        // Run these checks in production only if the flag is off.
        // Eventually we'll delete this branch altogether.
        typeof x == "object" && x !== null && typeof x.render == "function" && x.$$typeof === void 0
      ) {
        {
          var X = _t(o) || "Unknown";
          Iv[X] || (h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", X, X, X), Iv[X] = !0);
        }
        t.tag = E, t.memoizedState = null, t.updateQueue = null;
        var U = !1;
        return bo(o) ? (U = !0, wg(t)) : U = !1, t.memoizedState = x.state !== null && x.state !== void 0 ? x.state : null, bC(t), $w(t, x), c1(t, o, d, l), C1(null, t, o, !0, U, l);
      } else {
        if (t.tag = y, t.mode & Ct) {
          Tn(!0);
          try {
            x = ad(null, t, o, d, m, l), R = id();
          } finally {
            Tn(!1);
          }
        }
        return Cr() && R && Kb(t), ra(null, t, x, l), S1(t, o), t.child;
      }
    }
    function S1(e, t) {
      {
        if (t && t.childContextTypes && h("%s(...): childContextTypes cannot be defined on a function component.", t.displayName || t.name || "Component"), e.ref !== null) {
          var o = "", l = da();
          l && (o += `

Check the render method of \`` + l + "`.");
          var d = l || "", m = e._debugSource;
          m && (d = m.fileName + ":" + m.lineNumber), g1[d] || (g1[d] = !0, h("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", o));
        }
        if (t.defaultProps !== void 0) {
          var b = _t(t) || "Unknown";
          Av[b] || (h("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.", b), Av[b] = !0);
        }
        if (typeof t.getDerivedStateFromProps == "function") {
          var x = _t(t) || "Unknown";
          m1[x] || (h("%s: Function components do not support getDerivedStateFromProps.", x), m1[x] = !0);
        }
        if (typeof t.contextType == "object" && t.contextType !== null) {
          var R = _t(t) || "Unknown";
          h1[R] || (h("%s: Function components do not support contextType.", R), h1[R] = !0);
        }
      }
    }
    var E1 = {
      dehydrated: null,
      treeContext: null,
      retryLane: In
    };
    function x1(e) {
      return {
        baseLanes: e,
        cachePool: iM(),
        transitions: null
      };
    }
    function mM(e, t) {
      var o = null;
      return {
        baseLanes: gt(e.baseLanes, t),
        cachePool: o,
        transitions: e.transitions
      };
    }
    function gM(e, t, o, l) {
      if (t !== null) {
        var d = t.memoizedState;
        if (d === null)
          return !1;
      }
      return wC(e, gv);
    }
    function yM(e, t) {
      return Ts(e.childLanes, t);
    }
    function cR(e, t, o) {
      var l = t.pendingProps;
      IF(t) && (t.flags |= st);
      var d = _i.current, m = !1, b = (t.flags & st) !== Je;
      if (b || gM(d, e) ? (m = !0, t.flags &= ~st) : (e === null || e.memoizedState !== null) && (d = Bk(d, gw)), d = ed(d), Al(t, d), e === null) {
        aC(t);
        var x = t.memoizedState;
        if (x !== null) {
          var R = x.dehydrated;
          if (R !== null)
            return xM(t, R);
        }
        var D = l.children, k = l.fallback;
        if (m) {
          var X = bM(t, D, k, o), U = t.child;
          return U.memoizedState = x1(o), t.memoizedState = E1, X;
        } else
          return w1(t, D);
      } else {
        var ee = e.memoizedState;
        if (ee !== null) {
          var ne = ee.dehydrated;
          if (ne !== null)
            return wM(e, t, b, l, ne, ee, o);
        }
        if (m) {
          var ie = l.fallback, De = l.children, qe = SM(e, t, De, ie, o), Ye = t.child, At = e.child.memoizedState;
          return Ye.memoizedState = At === null ? x1(o) : mM(At, o), Ye.childLanes = yM(e, o), t.memoizedState = E1, qe;
        } else {
          var wt = l.children, J = CM(e, t, wt, o);
          return t.memoizedState = null, J;
        }
      }
    }
    function w1(e, t, o) {
      var l = e.mode, d = {
        mode: "visible",
        children: t
      }, m = R1(d, l);
      return m.return = e, e.child = m, m;
    }
    function bM(e, t, o, l) {
      var d = e.mode, m = e.child, b = {
        mode: "hidden",
        children: t
      }, x, R;
      return (d & Ze) === We && m !== null ? (x = m, x.childLanes = ce, x.pendingProps = b, e.mode & ct && (x.actualDuration = 0, x.actualStartTime = -1, x.selfBaseDuration = 0, x.treeBaseDuration = 0), R = Bl(o, d, l, null)) : (x = R1(b, d), R = Bl(o, d, l, null)), x.return = e, R.return = e, x.sibling = R, e.child = x, R;
    }
    function R1(e, t, o) {
      return fT(e, t, ce, null);
    }
    function fR(e, t) {
      return nc(e, t);
    }
    function CM(e, t, o, l) {
      var d = e.child, m = d.sibling, b = fR(d, {
        mode: "visible",
        children: o
      });
      if ((t.mode & Ze) === We && (b.lanes = l), b.return = t, b.sibling = null, m !== null) {
        var x = t.deletions;
        x === null ? (t.deletions = [m], t.flags |= Lt) : x.push(m);
      }
      return t.child = b, b;
    }
    function SM(e, t, o, l, d) {
      var m = t.mode, b = e.child, x = b.sibling, R = {
        mode: "hidden",
        children: o
      }, D;
      if (
        // In legacy mode, we commit the primary tree as if it successfully
        // completed, even though it's in an inconsistent state.
        (m & Ze) === We && // Make sure we're on the second pass, i.e. the primary child fragment was
        // already cloned. In legacy mode, the only case where this isn't true is
        // when DevTools forces us to display a fallback; we skip the first render
        // pass entirely and go straight to rendering the fallback. (In Concurrent
        // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
        // only codepath.)
        t.child !== b
      ) {
        var k = t.child;
        D = k, D.childLanes = ce, D.pendingProps = R, t.mode & ct && (D.actualDuration = 0, D.actualStartTime = -1, D.selfBaseDuration = b.selfBaseDuration, D.treeBaseDuration = b.treeBaseDuration), t.deletions = null;
      } else
        D = fR(b, R), D.subtreeFlags = b.subtreeFlags & qn;
      var X;
      return x !== null ? X = nc(x, l) : (X = Bl(l, m, d, null), X.flags |= Jt), X.return = t, D.return = t, D.sibling = X, t.child = D, X;
    }
    function py(e, t, o, l) {
      l !== null && iC(l), Qf(t, e.child, null, o);
      var d = t.pendingProps, m = d.children, b = w1(t, m);
      return b.flags |= Jt, t.memoizedState = null, b;
    }
    function EM(e, t, o, l, d) {
      var m = t.mode, b = {
        mode: "visible",
        children: o
      }, x = R1(b, m), R = Bl(l, m, d, null);
      return R.flags |= Jt, x.return = t, R.return = t, x.sibling = R, t.child = x, (t.mode & Ze) !== We && Qf(t, e.child, null, d), R;
    }
    function xM(e, t, o) {
      return (e.mode & Ze) === We ? (h("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."), e.lanes = $e) : jb(t) ? e.lanes = ki : e.lanes = pr, null;
    }
    function wM(e, t, o, l, d, m, b) {
      if (o)
        if (t.flags & dn) {
          t.flags &= ~dn;
          var J = f1(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));
          return py(e, t, b, J);
        } else {
          if (t.memoizedState !== null)
            return t.child = e.child, t.flags |= st, null;
          var oe = l.children, q = l.fallback, he = EM(e, t, oe, q, b), Be = t.child;
          return Be.memoizedState = x1(b), t.memoizedState = E1, he;
        }
      else {
        if (fk(), (t.mode & Ze) === We)
          return py(
            e,
            t,
            b,
            // TODO: When we delete legacy mode, we should make this error argument
            // required — every concurrent mode path that causes hydration to
            // de-opt to client rendering should have an error message.
            null
          );
        if (jb(d)) {
          var x, R, D;
          {
            var k = A2(d);
            x = k.digest, R = k.message, D = k.stack;
          }
          var X;
          R ? X = new Error(R) : X = new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");
          var U = f1(X, x, D);
          return py(e, t, b, U);
        }
        var ee = _r(b, e.childLanes);
        if (ji || ee) {
          var ne = wy();
          if (ne !== null) {
            var ie = Hm(ne, b);
            if (ie !== In && ie !== m.retryLane) {
              m.retryLane = ie;
              var De = Qt;
              Aa(e, ie), lr(ne, e, ie, De);
            }
          }
          X1();
          var qe = f1(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));
          return py(e, t, b, qe);
        } else if (Lx(d)) {
          t.flags |= st, t.child = e.child;
          var Ye = $L.bind(null, e);
          return O2(d, Ye), null;
        } else {
          vk(t, d, m.treeContext);
          var At = l.children, wt = w1(t, At);
          return wt.flags |= ma, wt;
        }
      }
    }
    function dR(e, t, o) {
      e.lanes = gt(e.lanes, t);
      var l = e.alternate;
      l !== null && (l.lanes = gt(l.lanes, t)), hC(e.return, t, o);
    }
    function RM(e, t, o) {
      for (var l = t; l !== null; ) {
        if (l.tag === V) {
          var d = l.memoizedState;
          d !== null && dR(l, o, e);
        } else if (l.tag === de)
          dR(l, o, e);
        else if (l.child !== null) {
          l.child.return = l, l = l.child;
          continue;
        }
        if (l === e)
          return;
        for (; l.sibling === null; ) {
          if (l.return === null || l.return === e)
            return;
          l = l.return;
        }
        l.sibling.return = l.return, l = l.sibling;
      }
    }
    function TM(e) {
      for (var t = e, o = null; t !== null; ) {
        var l = t.alternate;
        l !== null && Wg(l) === null && (o = t), t = t.sibling;
      }
      return o;
    }
    function IM(e) {
      if (e !== void 0 && e !== "forwards" && e !== "backwards" && e !== "together" && !y1[e])
        if (y1[e] = !0, typeof e == "string")
          switch (e.toLowerCase()) {
            case "together":
            case "forwards":
            case "backwards": {
              h('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.', e, e.toLowerCase());
              break;
            }
            case "forward":
            case "backward": {
              h('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.', e, e.toLowerCase());
              break;
            }
            default:
              h('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?', e);
              break;
          }
        else
          h('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?', e);
    }
    function AM(e, t) {
      e !== void 0 && !dy[e] && (e !== "collapsed" && e !== "hidden" ? (dy[e] = !0, h('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?', e)) : t !== "forwards" && t !== "backwards" && (dy[e] = !0, h('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', e)));
    }
    function pR(e, t) {
      {
        var o = Hn(e), l = !o && typeof Si(e) == "function";
        if (o || l) {
          var d = o ? "array" : "iterable";
          return h("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", d, t, d), !1;
        }
      }
      return !0;
    }
    function OM(e, t) {
      if ((t === "forwards" || t === "backwards") && e !== void 0 && e !== null && e !== !1)
        if (Hn(e)) {
          for (var o = 0; o < e.length; o++)
            if (!pR(e[o], o))
              return;
        } else {
          var l = Si(e);
          if (typeof l == "function") {
            var d = l.call(e);
            if (d)
              for (var m = d.next(), b = 0; !m.done; m = d.next()) {
                if (!pR(m.value, b))
                  return;
                b++;
              }
          } else
            h('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', t);
        }
    }
    function T1(e, t, o, l, d) {
      var m = e.memoizedState;
      m === null ? e.memoizedState = {
        isBackwards: t,
        rendering: null,
        renderingStartTime: 0,
        last: l,
        tail: o,
        tailMode: d
      } : (m.isBackwards = t, m.rendering = null, m.renderingStartTime = 0, m.last = l, m.tail = o, m.tailMode = d);
    }
    function vR(e, t, o) {
      var l = t.pendingProps, d = l.revealOrder, m = l.tail, b = l.children;
      IM(d), AM(m, d), OM(b, d), ra(e, t, b, o);
      var x = _i.current, R = wC(x, gv);
      if (R)
        x = RC(x, gv), t.flags |= st;
      else {
        var D = e !== null && (e.flags & st) !== Je;
        D && RM(t, t.child, o), x = ed(x);
      }
      if (Al(t, x), (t.mode & Ze) === We)
        t.memoizedState = null;
      else
        switch (d) {
          case "forwards": {
            var k = TM(t.child), X;
            k === null ? (X = t.child, t.child = null) : (X = k.sibling, k.sibling = null), T1(
              t,
              !1,
              // isBackwards
              X,
              k,
              m
            );
            break;
          }
          case "backwards": {
            var U = null, ee = t.child;
            for (t.child = null; ee !== null; ) {
              var ne = ee.alternate;
              if (ne !== null && Wg(ne) === null) {
                t.child = ee;
                break;
              }
              var ie = ee.sibling;
              ee.sibling = U, U = ee, ee = ie;
            }
            T1(
              t,
              !0,
              // isBackwards
              U,
              null,
              // last
              m
            );
            break;
          }
          case "together": {
            T1(
              t,
              !1,
              // isBackwards
              null,
              // tail
              null,
              // last
              void 0
            );
            break;
          }
          default:
            t.memoizedState = null;
        }
      return t.child;
    }
    function DM(e, t, o) {
      SC(t, t.stateNode.containerInfo);
      var l = t.pendingProps;
      return e === null ? t.child = Qf(t, null, l, o) : ra(e, t, l, o), t.child;
    }
    var hR = !1;
    function NM(e, t, o) {
      var l = t.type, d = l._context, m = t.pendingProps, b = t.memoizedProps, x = m.value;
      {
        "value" in m || hR || (hR = !0, h("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));
        var R = t.type.propTypes;
        R && Vi(R, m, "prop", "Context.Provider");
      }
      if (uw(t, d, x), b !== null) {
        var D = b.value;
        if (_e(D, x)) {
          if (b.children === m.children && !Eg())
            return pu(e, t, o);
        } else
          Ik(t, d, o);
      }
      var k = m.children;
      return ra(e, t, k, o), t.child;
    }
    var mR = !1;
    function kM(e, t, o) {
      var l = t.type;
      l._context === void 0 ? l !== l.Consumer && (mR || (mR = !0, h("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))) : l = l._context;
      var d = t.pendingProps, m = d.children;
      typeof m != "function" && h("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), qf(t, o);
      var b = Wn(l);
      Zu(t);
      var x;
      return Tv.current = t, ja(!0), x = m(b), ja(!1), Vr(), t.flags |= io, ra(e, t, x, o), t.child;
    }
    function Ov() {
      ji = !0;
    }
    function vy(e, t) {
      (t.mode & Ze) === We && e !== null && (e.alternate = null, t.alternate = null, t.flags |= Jt);
    }
    function pu(e, t, o) {
      return e !== null && (t.dependencies = e.dependencies), Ww(), zv(t.lanes), _r(o, t.childLanes) ? (Rk(e, t), t.child) : null;
    }
    function MM(e, t, o) {
      {
        var l = t.return;
        if (l === null)
          throw new Error("Cannot swap the root fiber.");
        if (e.alternate = null, t.alternate = null, o.index = t.index, o.sibling = t.sibling, o.return = t.return, o.ref = t.ref, t === l.child)
          l.child = o;
        else {
          var d = l.child;
          if (d === null)
            throw new Error("Expected parent to have a child.");
          for (; d.sibling !== t; )
            if (d = d.sibling, d === null)
              throw new Error("Expected to find the previous sibling.");
          d.sibling = o;
        }
        var m = l.deletions;
        return m === null ? (l.deletions = [e], l.flags |= Lt) : m.push(e), o.flags |= Jt, o;
      }
    }
    function I1(e, t) {
      var o = e.lanes;
      return !!_r(o, t);
    }
    function LM(e, t, o) {
      switch (t.tag) {
        case T:
          lR(t), t.stateNode, $f();
          break;
        case O:
          hw(t);
          break;
        case E: {
          var l = t.type;
          bo(l) && wg(t);
          break;
        }
        case A:
          SC(t, t.stateNode.containerInfo);
          break;
        case $: {
          var d = t.memoizedProps.value, m = t.type._context;
          uw(t, m, d);
          break;
        }
        case z:
          {
            var b = _r(o, t.childLanes);
            b && (t.flags |= yt);
            {
              var x = t.stateNode;
              x.effectDuration = 0, x.passiveEffectDuration = 0;
            }
          }
          break;
        case V: {
          var R = t.memoizedState;
          if (R !== null) {
            if (R.dehydrated !== null)
              return Al(t, ed(_i.current)), t.flags |= st, null;
            var D = t.child, k = D.childLanes;
            if (_r(o, k))
              return cR(e, t, o);
            Al(t, ed(_i.current));
            var X = pu(e, t, o);
            return X !== null ? X.sibling : null;
          } else
            Al(t, ed(_i.current));
          break;
        }
        case de: {
          var U = (e.flags & st) !== Je, ee = _r(o, t.childLanes);
          if (U) {
            if (ee)
              return vR(e, t, o);
            t.flags |= st;
          }
          var ne = t.memoizedState;
          if (ne !== null && (ne.rendering = null, ne.tail = null, ne.lastEffect = null), Al(t, _i.current), ee)
            break;
          return null;
        }
        case ye:
        case ke:
          return t.lanes = ce, iR(e, t, o);
      }
      return pu(e, t, o);
    }
    function gR(e, t, o) {
      if (t._debugNeedsRemount && e !== null)
        return MM(e, t, rS(t.type, t.key, t.pendingProps, t._debugOwner || null, t.mode, t.lanes));
      if (e !== null) {
        var l = e.memoizedProps, d = t.pendingProps;
        if (l !== d || Eg() || // Force a re-render if the implementation changed due to hot reload:
        t.type !== e.type)
          ji = !0;
        else {
          var m = I1(e, o);
          if (!m && // If this is the second pass of an error or suspense boundary, there
          // may not be work scheduled on `current`, so we check for this flag.
          (t.flags & st) === Je)
            return ji = !1, LM(e, t, o);
          (e.flags & ms) !== Je ? ji = !0 : ji = !1;
        }
      } else if (ji = !1, Cr() && ik(t)) {
        var b = t.index, x = ok();
        Wx(t, x, b);
      }
      switch (t.lanes = ce, t.tag) {
        case w:
          return hM(e, t, t.type, o);
        case G: {
          var R = t.elementType;
          return pM(e, t, R, o);
        }
        case y: {
          var D = t.type, k = t.pendingProps, X = t.elementType === D ? k : Gi(D, k);
          return b1(e, t, D, X, o);
        }
        case E: {
          var U = t.type, ee = t.pendingProps, ne = t.elementType === U ? ee : Gi(U, ee);
          return uR(e, t, U, ne, o);
        }
        case T:
          return cM(e, t, o);
        case O:
          return fM(e, t, o);
        case L:
          return dM(e, t);
        case V:
          return cR(e, t, o);
        case A:
          return DM(e, t, o);
        case H: {
          var ie = t.type, De = t.pendingProps, qe = t.elementType === ie ? De : Gi(ie, De);
          return nR(e, t, ie, qe, o);
        }
        case M:
          return uM(e, t, o);
        case N:
          return lM(e, t, o);
        case z:
          return sM(e, t, o);
        case $:
          return NM(e, t, o);
        case P:
          return kM(e, t, o);
        case j: {
          var Ye = t.type, At = t.pendingProps, wt = Gi(Ye, At);
          if (t.type !== t.elementType) {
            var J = Ye.propTypes;
            J && Vi(
              J,
              wt,
              // Resolved for outer only
              "prop",
              _t(Ye)
            );
          }
          return wt = Gi(Ye.type, wt), rR(e, t, Ye, wt, o);
        }
        case B:
          return aR(e, t, t.type, t.pendingProps, o);
        case ae: {
          var oe = t.type, q = t.pendingProps, he = t.elementType === oe ? q : Gi(oe, q);
          return vM(e, t, oe, he, o);
        }
        case de:
          return vR(e, t, o);
        case Ee:
          break;
        case ye:
          return iR(e, t, o);
      }
      throw new Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
    }
    function od(e) {
      e.flags |= yt;
    }
    function yR(e) {
      e.flags |= kr, e.flags |= hp;
    }
    var bR, A1, CR, SR;
    bR = function(e, t, o, l) {
      for (var d = t.child; d !== null; ) {
        if (d.tag === O || d.tag === L)
          n2(e, d.stateNode);
        else if (d.tag !== A) {
          if (d.child !== null) {
            d.child.return = d, d = d.child;
            continue;
          }
        }
        if (d === t)
          return;
        for (; d.sibling === null; ) {
          if (d.return === null || d.return === t)
            return;
          d = d.return;
        }
        d.sibling.return = d.return, d = d.sibling;
      }
    }, A1 = function(e, t) {
    }, CR = function(e, t, o, l, d) {
      var m = e.memoizedProps;
      if (m !== l) {
        var b = t.stateNode, x = EC(), R = a2(b, o, m, l, d, x);
        t.updateQueue = R, R && od(t);
      }
    }, SR = function(e, t, o, l) {
      o !== l && od(t);
    };
    function Dv(e, t) {
      if (!Cr())
        switch (e.tailMode) {
          case "hidden": {
            for (var o = e.tail, l = null; o !== null; )
              o.alternate !== null && (l = o), o = o.sibling;
            l === null ? e.tail = null : l.sibling = null;
            break;
          }
          case "collapsed": {
            for (var d = e.tail, m = null; d !== null; )
              d.alternate !== null && (m = d), d = d.sibling;
            m === null ? !t && e.tail !== null ? e.tail.sibling = null : e.tail = null : m.sibling = null;
            break;
          }
        }
    }
    function Er(e) {
      var t = e.alternate !== null && e.alternate.child === e.child, o = ce, l = Je;
      if (t) {
        if ((e.mode & ct) !== We) {
          for (var R = e.selfBaseDuration, D = e.child; D !== null; )
            o = gt(o, gt(D.lanes, D.childLanes)), l |= D.subtreeFlags & qn, l |= D.flags & qn, R += D.treeBaseDuration, D = D.sibling;
          e.treeBaseDuration = R;
        } else
          for (var k = e.child; k !== null; )
            o = gt(o, gt(k.lanes, k.childLanes)), l |= k.subtreeFlags & qn, l |= k.flags & qn, k.return = e, k = k.sibling;
        e.subtreeFlags |= l;
      } else {
        if ((e.mode & ct) !== We) {
          for (var d = e.actualDuration, m = e.selfBaseDuration, b = e.child; b !== null; )
            o = gt(o, gt(b.lanes, b.childLanes)), l |= b.subtreeFlags, l |= b.flags, d += b.actualDuration, m += b.treeBaseDuration, b = b.sibling;
          e.actualDuration = d, e.treeBaseDuration = m;
        } else
          for (var x = e.child; x !== null; )
            o = gt(o, gt(x.lanes, x.childLanes)), l |= x.subtreeFlags, l |= x.flags, x.return = e, x = x.sibling;
        e.subtreeFlags |= l;
      }
      return e.childLanes = o, t;
    }
    function FM(e, t, o) {
      if (bk() && (t.mode & Ze) !== We && (t.flags & st) === Je)
        return qx(t), $f(), t.flags |= dn | Jr | zn, !1;
      var l = Og(t);
      if (o !== null && o.dehydrated !== null)
        if (e === null) {
          if (!l)
            throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");
          if (gk(t), Er(t), (t.mode & ct) !== We) {
            var d = o !== null;
            if (d) {
              var m = t.child;
              m !== null && (t.treeBaseDuration -= m.treeBaseDuration);
            }
          }
          return !1;
        } else {
          if ($f(), (t.flags & st) === Je && (t.memoizedState = null), t.flags |= yt, Er(t), (t.mode & ct) !== We) {
            var b = o !== null;
            if (b) {
              var x = t.child;
              x !== null && (t.treeBaseDuration -= x.treeBaseDuration);
            }
          }
          return !1;
        }
      else
        return Kx(), !0;
    }
    function ER(e, t, o) {
      var l = t.pendingProps;
      switch (eC(t), t.tag) {
        case w:
        case G:
        case B:
        case y:
        case H:
        case M:
        case N:
        case z:
        case P:
        case j:
          return Er(t), null;
        case E: {
          var d = t.type;
          return bo(d) && xg(t), Er(t), null;
        }
        case T: {
          var m = t.stateNode;
          if (Kf(t), Qb(t), IC(), m.pendingContext && (m.context = m.pendingContext, m.pendingContext = null), e === null || e.child === null) {
            var b = Og(t);
            if (b)
              od(t);
            else if (e !== null) {
              var x = e.memoizedState;
              // Check if this is a client root
              (!x.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error)
              (t.flags & dn) !== Je) && (t.flags |= ha, Kx());
            }
          }
          return A1(e, t), Er(t), null;
        }
        case O: {
          xC(t);
          var R = vw(), D = t.type;
          if (e !== null && t.stateNode != null)
            CR(e, t, D, l, R), e.ref !== t.ref && yR(t);
          else {
            if (!l) {
              if (t.stateNode === null)
                throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
              return Er(t), null;
            }
            var k = EC(), X = Og(t);
            if (X)
              hk(t, R, k) && od(t);
            else {
              var U = t2(D, l, R, k, t);
              bR(U, t, !1, !1), t.stateNode = U, r2(U, D, l, R) && od(t);
            }
            t.ref !== null && yR(t);
          }
          return Er(t), null;
        }
        case L: {
          var ee = l;
          if (e && t.stateNode != null) {
            var ne = e.memoizedProps;
            SR(e, t, ne, ee);
          } else {
            if (typeof ee != "string" && t.stateNode === null)
              throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
            var ie = vw(), De = EC(), qe = Og(t);
            qe ? mk(t) && od(t) : t.stateNode = i2(ee, ie, De, t);
          }
          return Er(t), null;
        }
        case V: {
          td(t);
          var Ye = t.memoizedState;
          if (e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
            var At = FM(e, t, Ye);
            if (!At)
              return t.flags & zn ? t : null;
          }
          if ((t.flags & st) !== Je)
            return t.lanes = o, (t.mode & ct) !== We && qC(t), t;
          var wt = Ye !== null, J = e !== null && e.memoizedState !== null;
          if (wt !== J && wt) {
            var oe = t.child;
            if (oe.flags |= oo, (t.mode & Ze) !== We) {
              var q = e === null && (t.memoizedProps.unstable_avoidThisFallback !== !0 || !se);
              q || wC(_i.current, gw) ? BL() : X1();
            }
          }
          var he = t.updateQueue;
          if (he !== null && (t.flags |= yt), Er(t), (t.mode & ct) !== We && wt) {
            var Be = t.child;
            Be !== null && (t.treeBaseDuration -= Be.treeBaseDuration);
          }
          return null;
        }
        case A:
          return Kf(t), A1(e, t), e === null && q2(t.stateNode.containerInfo), Er(t), null;
        case $:
          var Me = t.type._context;
          return vC(Me, t), Er(t), null;
        case ae: {
          var ut = t.type;
          return bo(ut) && xg(t), Er(t), null;
        }
        case de: {
          td(t);
          var pt = t.memoizedState;
          if (pt === null)
            return Er(t), null;
          var Wt = (t.flags & st) !== Je, kt = pt.rendering;
          if (kt === null)
            if (Wt)
              Dv(pt, !1);
            else {
              var Vn = PL() && (e === null || (e.flags & st) === Je);
              if (!Vn)
                for (var Mt = t.child; Mt !== null; ) {
                  var An = Wg(Mt);
                  if (An !== null) {
                    Wt = !0, t.flags |= st, Dv(pt, !1);
                    var Wr = An.updateQueue;
                    return Wr !== null && (t.updateQueue = Wr, t.flags |= yt), t.subtreeFlags = Je, Tk(t, o), Al(t, RC(_i.current, gv)), t.child;
                  }
                  Mt = Mt.sibling;
                }
              pt.tail !== null && an() > jR() && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
            }
          else {
            if (!Wt) {
              var Ir = Wg(kt);
              if (Ir !== null) {
                t.flags |= st, Wt = !0;
                var Qa = Ir.updateQueue;
                if (Qa !== null && (t.updateQueue = Qa, t.flags |= yt), Dv(pt, !0), pt.tail === null && pt.tailMode === "hidden" && !kt.alternate && !Cr())
                  return Er(t), null;
              } else
                // The time it took to render last row is greater than the remaining
                // time we have to render. So rendering one more row would likely
                // exceed it.
                an() * 2 - pt.renderingStartTime > jR() && o !== pr && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
            }
            if (pt.isBackwards)
              kt.sibling = t.child, t.child = kt;
            else {
              var oa = pt.last;
              oa !== null ? oa.sibling = kt : t.child = kt, pt.last = kt;
            }
          }
          if (pt.tail !== null) {
            var ua = pt.tail;
            pt.rendering = ua, pt.tail = ua.sibling, pt.renderingStartTime = an(), ua.sibling = null;
            var Xr = _i.current;
            return Wt ? Xr = RC(Xr, gv) : Xr = ed(Xr), Al(t, Xr), ua;
          }
          return Er(t), null;
        }
        case Ee:
          break;
        case ye:
        case ke: {
          W1(t);
          var yu = t.memoizedState, vd = yu !== null;
          if (e !== null) {
            var Xv = e.memoizedState, Io = Xv !== null;
            Io !== vd && // LegacyHidden doesn't do any hiding — it only pre-renders.
            !Z && (t.flags |= oo);
          }
          return !vd || (t.mode & Ze) === We ? Er(t) : _r(To, pr) && (Er(t), t.subtreeFlags & (Jt | yt) && (t.flags |= oo)), null;
        }
        case Ue:
          return null;
        case Se:
          return null;
      }
      throw new Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
    }
    function BM(e, t, o) {
      switch (eC(t), t.tag) {
        case E: {
          var l = t.type;
          bo(l) && xg(t);
          var d = t.flags;
          return d & zn ? (t.flags = d & ~zn | st, (t.mode & ct) !== We && qC(t), t) : null;
        }
        case T: {
          t.stateNode, Kf(t), Qb(t), IC();
          var m = t.flags;
          return (m & zn) !== Je && (m & st) === Je ? (t.flags = m & ~zn | st, t) : null;
        }
        case O:
          return xC(t), null;
        case V: {
          td(t);
          var b = t.memoizedState;
          if (b !== null && b.dehydrated !== null) {
            if (t.alternate === null)
              throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");
            $f();
          }
          var x = t.flags;
          return x & zn ? (t.flags = x & ~zn | st, (t.mode & ct) !== We && qC(t), t) : null;
        }
        case de:
          return td(t), null;
        case A:
          return Kf(t), null;
        case $:
          var R = t.type._context;
          return vC(R, t), null;
        case ye:
        case ke:
          return W1(t), null;
        case Ue:
          return null;
        default:
          return null;
      }
    }
    function xR(e, t, o) {
      switch (eC(t), t.tag) {
        case E: {
          var l = t.type.childContextTypes;
          l != null && xg(t);
          break;
        }
        case T: {
          t.stateNode, Kf(t), Qb(t), IC();
          break;
        }
        case O: {
          xC(t);
          break;
        }
        case A:
          Kf(t);
          break;
        case V:
          td(t);
          break;
        case de:
          td(t);
          break;
        case $:
          var d = t.type._context;
          vC(d, t);
          break;
        case ye:
        case ke:
          W1(t);
          break;
      }
    }
    var wR = null;
    wR = /* @__PURE__ */ new Set();
    var hy = !1, xr = !1, VM = typeof WeakSet == "function" ? WeakSet : Set, ze = null, ud = null, ld = null;
    function PM(e) {
      jo(null, function() {
        throw e;
      }), pp();
    }
    var HM = function(e, t) {
      if (t.props = e.memoizedProps, t.state = e.memoizedState, e.mode & ct)
        try {
          wo(), t.componentWillUnmount();
        } finally {
          xo(e);
        }
      else
        t.componentWillUnmount();
    };
    function RR(e, t) {
      try {
        Nl(nr, e);
      } catch (o) {
        en(e, t, o);
      }
    }
    function O1(e, t, o) {
      try {
        HM(e, o);
      } catch (l) {
        en(e, t, l);
      }
    }
    function _M(e, t, o) {
      try {
        o.componentDidMount();
      } catch (l) {
        en(e, t, l);
      }
    }
    function TR(e, t) {
      try {
        AR(e);
      } catch (o) {
        en(e, t, o);
      }
    }
    function sd(e, t) {
      var o = e.ref;
      if (o !== null)
        if (typeof o == "function") {
          var l;
          try {
            if (Ae && je && e.mode & ct)
              try {
                wo(), l = o(null);
              } finally {
                xo(e);
              }
            else
              l = o(null);
          } catch (d) {
            en(e, t, d);
          }
          typeof l == "function" && h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", mt(e));
        } else
          o.current = null;
    }
    function my(e, t, o) {
      try {
        o();
      } catch (l) {
        en(e, t, l);
      }
    }
    var IR = !1;
    function zM(e, t) {
      KN(e.containerInfo), ze = t, GM();
      var o = IR;
      return IR = !1, o;
    }
    function GM() {
      for (; ze !== null; ) {
        var e = ze, t = e.child;
        (e.subtreeFlags & Uu) !== Je && t !== null ? (t.return = e, ze = t) : jM();
      }
    }
    function jM() {
      for (; ze !== null; ) {
        var e = ze;
        jt(e);
        try {
          UM(e);
        } catch (o) {
          en(e, e.return, o);
        }
        Nn();
        var t = e.sibling;
        if (t !== null) {
          t.return = e.return, ze = t;
          return;
        }
        ze = e.return;
      }
    }
    function UM(e) {
      var t = e.alternate, o = e.flags;
      if ((o & ha) !== Je) {
        switch (jt(e), e.tag) {
          case y:
          case H:
          case B:
            break;
          case E: {
            if (t !== null) {
              var l = t.memoizedProps, d = t.memoizedState, m = e.stateNode;
              e.type === e.elementType && !Js && (m.props !== e.memoizedProps && h("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", mt(e) || "instance"), m.state !== e.memoizedState && h("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", mt(e) || "instance"));
              var b = m.getSnapshotBeforeUpdate(e.elementType === e.type ? l : Gi(e.type, l), d);
              {
                var x = wR;
                b === void 0 && !x.has(e.type) && (x.add(e.type), h("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", mt(e)));
              }
              m.__reactInternalSnapshotBeforeUpdate = b;
            }
            break;
          }
          case T: {
            {
              var R = e.stateNode;
              w2(R.containerInfo);
            }
            break;
          }
          case O:
          case L:
          case A:
          case ae:
            break;
          default:
            throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
        }
        Nn();
      }
    }
    function Ui(e, t, o) {
      var l = t.updateQueue, d = l !== null ? l.lastEffect : null;
      if (d !== null) {
        var m = d.next, b = m;
        do {
          if ((b.tag & e) === e) {
            var x = b.destroy;
            b.destroy = void 0, x !== void 0 && ((e & Sr) !== Oa ? Rm(t) : (e & nr) !== Oa && Za(t), (e & Co) !== Oa && jv(!0), my(t, o, x), (e & Co) !== Oa && jv(!1), (e & Sr) !== Oa ? Yc() : (e & nr) !== Oa && Yu());
          }
          b = b.next;
        } while (b !== m);
      }
    }
    function Nl(e, t) {
      var o = t.updateQueue, l = o !== null ? o.lastEffect : null;
      if (l !== null) {
        var d = l.next, m = d;
        do {
          if ((m.tag & e) === e) {
            (e & Sr) !== Oa ? so(t) : (e & nr) !== Oa && Tm(t);
            var b = m.create;
            (e & Co) !== Oa && jv(!0), m.destroy = b(), (e & Co) !== Oa && jv(!1), (e & Sr) !== Oa ? Zc() : (e & nr) !== Oa && gs();
            {
              var x = m.destroy;
              if (x !== void 0 && typeof x != "function") {
                var R = void 0;
                (m.tag & nr) !== Je ? R = "useLayoutEffect" : (m.tag & Co) !== Je ? R = "useInsertionEffect" : R = "useEffect";
                var D = void 0;
                x === null ? D = " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof x.then == "function" ? D = `

It looks like you wrote ` + R + `(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:

` + R + `(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching` : D = " You returned: " + x, h("%s must not return anything besides a function, which is used for clean-up.%s", R, D);
              }
            }
          }
          m = m.next;
        } while (m !== d);
      }
    }
    function WM(e, t) {
      if ((t.flags & yt) !== Je)
        switch (t.tag) {
          case z: {
            var o = t.stateNode.passiveEffectDuration, l = t.memoizedProps, d = l.id, m = l.onPostCommit, b = jw(), x = t.alternate === null ? "mount" : "update";
            Gw() && (x = "nested-update"), typeof m == "function" && m(d, x, o, b);
            var R = t.return;
            e:
              for (; R !== null; ) {
                switch (R.tag) {
                  case T:
                    var D = R.stateNode;
                    D.passiveEffectDuration += o;
                    break e;
                  case z:
                    var k = R.stateNode;
                    k.passiveEffectDuration += o;
                    break e;
                }
                R = R.return;
              }
            break;
          }
        }
    }
    function XM(e, t, o, l) {
      if ((o.flags & fr) !== Je)
        switch (o.tag) {
          case y:
          case H:
          case B: {
            if (!xr)
              if (o.mode & ct)
                try {
                  wo(), Nl(nr | tr, o);
                } finally {
                  xo(o);
                }
              else
                Nl(nr | tr, o);
            break;
          }
          case E: {
            var d = o.stateNode;
            if (o.flags & yt && !xr)
              if (t === null)
                if (o.type === o.elementType && !Js && (d.props !== o.memoizedProps && h("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", mt(o) || "instance"), d.state !== o.memoizedState && h("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", mt(o) || "instance")), o.mode & ct)
                  try {
                    wo(), d.componentDidMount();
                  } finally {
                    xo(o);
                  }
                else
                  d.componentDidMount();
              else {
                var m = o.elementType === o.type ? t.memoizedProps : Gi(o.type, t.memoizedProps), b = t.memoizedState;
                if (o.type === o.elementType && !Js && (d.props !== o.memoizedProps && h("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", mt(o) || "instance"), d.state !== o.memoizedState && h("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", mt(o) || "instance")), o.mode & ct)
                  try {
                    wo(), d.componentDidUpdate(m, b, d.__reactInternalSnapshotBeforeUpdate);
                  } finally {
                    xo(o);
                  }
                else
                  d.componentDidUpdate(m, b, d.__reactInternalSnapshotBeforeUpdate);
              }
            var x = o.updateQueue;
            x !== null && (o.type === o.elementType && !Js && (d.props !== o.memoizedProps && h("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", mt(o) || "instance"), d.state !== o.memoizedState && h("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", mt(o) || "instance")), pw(o, x, d));
            break;
          }
          case T: {
            var R = o.updateQueue;
            if (R !== null) {
              var D = null;
              if (o.child !== null)
                switch (o.child.tag) {
                  case O:
                    D = o.child.stateNode;
                    break;
                  case E:
                    D = o.child.stateNode;
                    break;
                }
              pw(o, R, D);
            }
            break;
          }
          case O: {
            var k = o.stateNode;
            if (t === null && o.flags & yt) {
              var X = o.type, U = o.memoizedProps;
              c2(k, X, U);
            }
            break;
          }
          case L:
            break;
          case A:
            break;
          case z: {
            {
              var ee = o.memoizedProps, ne = ee.onCommit, ie = ee.onRender, De = o.stateNode.effectDuration, qe = jw(), Ye = t === null ? "mount" : "update";
              Gw() && (Ye = "nested-update"), typeof ie == "function" && ie(o.memoizedProps.id, Ye, o.actualDuration, o.treeBaseDuration, o.actualStartTime, qe);
              {
                typeof ne == "function" && ne(o.memoizedProps.id, Ye, De, qe), jL(o);
                var At = o.return;
                e:
                  for (; At !== null; ) {
                    switch (At.tag) {
                      case T:
                        var wt = At.stateNode;
                        wt.effectDuration += De;
                        break e;
                      case z:
                        var J = At.stateNode;
                        J.effectDuration += De;
                        break e;
                    }
                    At = At.return;
                  }
              }
            }
            break;
          }
          case V: {
            eL(e, o);
            break;
          }
          case de:
          case ae:
          case Ee:
          case ye:
          case ke:
          case Se:
            break;
          default:
            throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
        }
      xr || o.flags & kr && AR(o);
    }
    function ZM(e) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          if (e.mode & ct)
            try {
              wo(), RR(e, e.return);
            } finally {
              xo(e);
            }
          else
            RR(e, e.return);
          break;
        }
        case E: {
          var t = e.stateNode;
          typeof t.componentDidMount == "function" && _M(e, e.return, t), TR(e, e.return);
          break;
        }
        case O: {
          TR(e, e.return);
          break;
        }
      }
    }
    function YM(e, t) {
      for (var o = null, l = e; ; ) {
        if (l.tag === O) {
          if (o === null) {
            o = l;
            try {
              var d = l.stateNode;
              t ? C2(d) : E2(l.stateNode, l.memoizedProps);
            } catch (b) {
              en(e, e.return, b);
            }
          }
        } else if (l.tag === L) {
          if (o === null)
            try {
              var m = l.stateNode;
              t ? S2(m) : x2(m, l.memoizedProps);
            } catch (b) {
              en(e, e.return, b);
            }
        } else if (!((l.tag === ye || l.tag === ke) && l.memoizedState !== null && l !== e)) {
          if (l.child !== null) {
            l.child.return = l, l = l.child;
            continue;
          }
        }
        if (l === e)
          return;
        for (; l.sibling === null; ) {
          if (l.return === null || l.return === e)
            return;
          o === l && (o = null), l = l.return;
        }
        o === l && (o = null), l.sibling.return = l.return, l = l.sibling;
      }
    }
    function AR(e) {
      var t = e.ref;
      if (t !== null) {
        var o = e.stateNode, l;
        switch (e.tag) {
          case O:
            l = o;
            break;
          default:
            l = o;
        }
        if (typeof t == "function") {
          var d;
          if (e.mode & ct)
            try {
              wo(), d = t(l);
            } finally {
              xo(e);
            }
          else
            d = t(l);
          typeof d == "function" && h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", mt(e));
        } else
          t.hasOwnProperty("current") || h("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", mt(e)), t.current = l;
      }
    }
    function $M(e) {
      var t = e.alternate;
      t !== null && (t.return = null), e.return = null;
    }
    function OR(e) {
      var t = e.alternate;
      t !== null && (e.alternate = null, OR(t));
      {
        if (e.child = null, e.deletions = null, e.sibling = null, e.tag === O) {
          var o = e.stateNode;
          o !== null && tk(o);
        }
        e.stateNode = null, e._debugOwner = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
      }
    }
    function QM(e) {
      for (var t = e.return; t !== null; ) {
        if (DR(t))
          return t;
        t = t.return;
      }
      throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
    }
    function DR(e) {
      return e.tag === O || e.tag === T || e.tag === A;
    }
    function NR(e) {
      var t = e;
      e:
        for (; ; ) {
          for (; t.sibling === null; ) {
            if (t.return === null || DR(t.return))
              return null;
            t = t.return;
          }
          for (t.sibling.return = t.return, t = t.sibling; t.tag !== O && t.tag !== L && t.tag !== ge; ) {
            if (t.flags & Jt || t.child === null || t.tag === A)
              continue e;
            t.child.return = t, t = t.child;
          }
          if (!(t.flags & Jt))
            return t.stateNode;
        }
    }
    function JM(e) {
      var t = QM(e);
      switch (t.tag) {
        case O: {
          var o = t.stateNode;
          t.flags & Ft && (Mx(o), t.flags &= ~Ft);
          var l = NR(e);
          N1(e, l, o);
          break;
        }
        case T:
        case A: {
          var d = t.stateNode.containerInfo, m = NR(e);
          D1(e, m, d);
          break;
        }
        default:
          throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
      }
    }
    function D1(e, t, o) {
      var l = e.tag, d = l === O || l === L;
      if (d) {
        var m = e.stateNode;
        t ? m2(o, m, t) : v2(o, m);
      } else if (l !== A) {
        var b = e.child;
        if (b !== null) {
          D1(b, t, o);
          for (var x = b.sibling; x !== null; )
            D1(x, t, o), x = x.sibling;
        }
      }
    }
    function N1(e, t, o) {
      var l = e.tag, d = l === O || l === L;
      if (d) {
        var m = e.stateNode;
        t ? h2(o, m, t) : p2(o, m);
      } else if (l !== A) {
        var b = e.child;
        if (b !== null) {
          N1(b, t, o);
          for (var x = b.sibling; x !== null; )
            N1(x, t, o), x = x.sibling;
        }
      }
    }
    var wr = null, Wi = !1;
    function qM(e, t, o) {
      {
        var l = t;
        e:
          for (; l !== null; ) {
            switch (l.tag) {
              case O: {
                wr = l.stateNode, Wi = !1;
                break e;
              }
              case T: {
                wr = l.stateNode.containerInfo, Wi = !0;
                break e;
              }
              case A: {
                wr = l.stateNode.containerInfo, Wi = !0;
                break e;
              }
            }
            l = l.return;
          }
        if (wr === null)
          throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
        kR(e, t, o), wr = null, Wi = !1;
      }
      $M(o);
    }
    function kl(e, t, o) {
      for (var l = o.child; l !== null; )
        kR(e, t, l), l = l.sibling;
    }
    function kR(e, t, o) {
      switch (Xo(o), o.tag) {
        case O:
          xr || sd(o, t);
        case L: {
          {
            var l = wr, d = Wi;
            wr = null, kl(e, t, o), wr = l, Wi = d, wr !== null && (Wi ? y2(wr, o.stateNode) : g2(wr, o.stateNode));
          }
          return;
        }
        case ge: {
          wr !== null && (Wi ? b2(wr, o.stateNode) : Gb(wr, o.stateNode));
          return;
        }
        case A: {
          {
            var m = wr, b = Wi;
            wr = o.stateNode.containerInfo, Wi = !0, kl(e, t, o), wr = m, Wi = b;
          }
          return;
        }
        case y:
        case H:
        case j:
        case B: {
          if (!xr) {
            var x = o.updateQueue;
            if (x !== null) {
              var R = x.lastEffect;
              if (R !== null) {
                var D = R.next, k = D;
                do {
                  var X = k, U = X.destroy, ee = X.tag;
                  U !== void 0 && ((ee & Co) !== Oa ? my(o, t, U) : (ee & nr) !== Oa && (Za(o), o.mode & ct ? (wo(), my(o, t, U), xo(o)) : my(o, t, U), Yu())), k = k.next;
                } while (k !== D);
              }
            }
          }
          kl(e, t, o);
          return;
        }
        case E: {
          if (!xr) {
            sd(o, t);
            var ne = o.stateNode;
            typeof ne.componentWillUnmount == "function" && O1(o, t, ne);
          }
          kl(e, t, o);
          return;
        }
        case Ee: {
          kl(e, t, o);
          return;
        }
        case ye: {
          if (
            // TODO: Remove this dead flag
            o.mode & Ze
          ) {
            var ie = xr;
            xr = ie || o.memoizedState !== null, kl(e, t, o), xr = ie;
          } else
            kl(e, t, o);
          break;
        }
        default: {
          kl(e, t, o);
          return;
        }
      }
    }
    function KM(e) {
      e.memoizedState;
    }
    function eL(e, t) {
      var o = t.memoizedState;
      if (o === null) {
        var l = t.alternate;
        if (l !== null) {
          var d = l.memoizedState;
          if (d !== null) {
            var m = d.dehydrated;
            m !== null && P2(m);
          }
        }
      }
    }
    function MR(e) {
      var t = e.updateQueue;
      if (t !== null) {
        e.updateQueue = null;
        var o = e.stateNode;
        o === null && (o = e.stateNode = new VM()), t.forEach(function(l) {
          var d = QL.bind(null, e, l);
          if (!o.has(l)) {
            if (o.add(l), ea)
              if (ud !== null && ld !== null)
                Gv(ld, ud);
              else
                throw Error("Expected finished root and lanes to be set. This is a bug in React.");
            l.then(d, d);
          }
        });
      }
    }
    function tL(e, t, o) {
      ud = o, ld = e, jt(t), LR(t, e), jt(t), ud = null, ld = null;
    }
    function Xi(e, t, o) {
      var l = t.deletions;
      if (l !== null)
        for (var d = 0; d < l.length; d++) {
          var m = l[d];
          try {
            qM(e, t, m);
          } catch (R) {
            en(m, t, R);
          }
        }
      var b = j0();
      if (t.subtreeFlags & Fr)
        for (var x = t.child; x !== null; )
          jt(x), LR(x, e), x = x.sibling;
      jt(b);
    }
    function LR(e, t, o) {
      var l = e.alternate, d = e.flags;
      switch (e.tag) {
        case y:
        case H:
        case j:
        case B: {
          if (Xi(t, e), Ro(e), d & yt) {
            try {
              Ui(Co | tr, e, e.return), Nl(Co | tr, e);
            } catch (ut) {
              en(e, e.return, ut);
            }
            if (e.mode & ct) {
              try {
                wo(), Ui(nr | tr, e, e.return);
              } catch (ut) {
                en(e, e.return, ut);
              }
              xo(e);
            } else
              try {
                Ui(nr | tr, e, e.return);
              } catch (ut) {
                en(e, e.return, ut);
              }
          }
          return;
        }
        case E: {
          Xi(t, e), Ro(e), d & kr && l !== null && sd(l, l.return);
          return;
        }
        case O: {
          Xi(t, e), Ro(e), d & kr && l !== null && sd(l, l.return);
          {
            if (e.flags & Ft) {
              var m = e.stateNode;
              try {
                Mx(m);
              } catch (ut) {
                en(e, e.return, ut);
              }
            }
            if (d & yt) {
              var b = e.stateNode;
              if (b != null) {
                var x = e.memoizedProps, R = l !== null ? l.memoizedProps : x, D = e.type, k = e.updateQueue;
                if (e.updateQueue = null, k !== null)
                  try {
                    f2(b, k, D, R, x, e);
                  } catch (ut) {
                    en(e, e.return, ut);
                  }
              }
            }
          }
          return;
        }
        case L: {
          if (Xi(t, e), Ro(e), d & yt) {
            if (e.stateNode === null)
              throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
            var X = e.stateNode, U = e.memoizedProps, ee = l !== null ? l.memoizedProps : U;
            try {
              d2(X, ee, U);
            } catch (ut) {
              en(e, e.return, ut);
            }
          }
          return;
        }
        case T: {
          if (Xi(t, e), Ro(e), d & yt && l !== null) {
            var ne = l.memoizedState;
            if (ne.isDehydrated)
              try {
                V2(t.containerInfo);
              } catch (ut) {
                en(e, e.return, ut);
              }
          }
          return;
        }
        case A: {
          Xi(t, e), Ro(e);
          return;
        }
        case V: {
          Xi(t, e), Ro(e);
          var ie = e.child;
          if (ie.flags & oo) {
            var De = ie.stateNode, qe = ie.memoizedState, Ye = qe !== null;
            if (De.isHidden = Ye, Ye) {
              var At = ie.alternate !== null && ie.alternate.memoizedState !== null;
              At || FL();
            }
          }
          if (d & yt) {
            try {
              KM(e);
            } catch (ut) {
              en(e, e.return, ut);
            }
            MR(e);
          }
          return;
        }
        case ye: {
          var wt = l !== null && l.memoizedState !== null;
          if (
            // TODO: Remove this dead flag
            e.mode & Ze
          ) {
            var J = xr;
            xr = J || wt, Xi(t, e), xr = J;
          } else
            Xi(t, e);
          if (Ro(e), d & oo) {
            var oe = e.stateNode, q = e.memoizedState, he = q !== null, Be = e;
            if (oe.isHidden = he, he && !wt && (Be.mode & Ze) !== We) {
              ze = Be;
              for (var Me = Be.child; Me !== null; )
                ze = Me, rL(Me), Me = Me.sibling;
            }
            YM(Be, he);
          }
          return;
        }
        case de: {
          Xi(t, e), Ro(e), d & yt && MR(e);
          return;
        }
        case Ee:
          return;
        default: {
          Xi(t, e), Ro(e);
          return;
        }
      }
    }
    function Ro(e) {
      var t = e.flags;
      if (t & Jt) {
        try {
          JM(e);
        } catch (o) {
          en(e, e.return, o);
        }
        e.flags &= ~Jt;
      }
      t & ma && (e.flags &= ~ma);
    }
    function nL(e, t, o) {
      ud = o, ld = t, ze = e, FR(e, t, o), ud = null, ld = null;
    }
    function FR(e, t, o) {
      for (var l = (e.mode & Ze) !== We; ze !== null; ) {
        var d = ze, m = d.child;
        if (d.tag === ye && l) {
          var b = d.memoizedState !== null, x = b || hy;
          if (x) {
            k1(e, t, o);
            continue;
          } else {
            var R = d.alternate, D = R !== null && R.memoizedState !== null, k = D || xr, X = hy, U = xr;
            hy = x, xr = k, xr && !U && (ze = d, aL(d));
            for (var ee = m; ee !== null; )
              ze = ee, FR(
                ee,
                // New root; bubble back up to here and stop.
                t,
                o
              ), ee = ee.sibling;
            ze = d, hy = X, xr = U, k1(e, t, o);
            continue;
          }
        }
        (d.subtreeFlags & fr) !== Je && m !== null ? (m.return = d, ze = m) : k1(e, t, o);
      }
    }
    function k1(e, t, o) {
      for (; ze !== null; ) {
        var l = ze;
        if ((l.flags & fr) !== Je) {
          var d = l.alternate;
          jt(l);
          try {
            XM(t, d, l, o);
          } catch (b) {
            en(l, l.return, b);
          }
          Nn();
        }
        if (l === e) {
          ze = null;
          return;
        }
        var m = l.sibling;
        if (m !== null) {
          m.return = l.return, ze = m;
          return;
        }
        ze = l.return;
      }
    }
    function rL(e) {
      for (; ze !== null; ) {
        var t = ze, o = t.child;
        switch (t.tag) {
          case y:
          case H:
          case j:
          case B: {
            if (t.mode & ct)
              try {
                wo(), Ui(nr, t, t.return);
              } finally {
                xo(t);
              }
            else
              Ui(nr, t, t.return);
            break;
          }
          case E: {
            sd(t, t.return);
            var l = t.stateNode;
            typeof l.componentWillUnmount == "function" && O1(t, t.return, l);
            break;
          }
          case O: {
            sd(t, t.return);
            break;
          }
          case ye: {
            var d = t.memoizedState !== null;
            if (d) {
              BR(e);
              continue;
            }
            break;
          }
        }
        o !== null ? (o.return = t, ze = o) : BR(e);
      }
    }
    function BR(e) {
      for (; ze !== null; ) {
        var t = ze;
        if (t === e) {
          ze = null;
          return;
        }
        var o = t.sibling;
        if (o !== null) {
          o.return = t.return, ze = o;
          return;
        }
        ze = t.return;
      }
    }
    function aL(e) {
      for (; ze !== null; ) {
        var t = ze, o = t.child;
        if (t.tag === ye) {
          var l = t.memoizedState !== null;
          if (l) {
            VR(e);
            continue;
          }
        }
        o !== null ? (o.return = t, ze = o) : VR(e);
      }
    }
    function VR(e) {
      for (; ze !== null; ) {
        var t = ze;
        jt(t);
        try {
          ZM(t);
        } catch (l) {
          en(t, t.return, l);
        }
        if (Nn(), t === e) {
          ze = null;
          return;
        }
        var o = t.sibling;
        if (o !== null) {
          o.return = t.return, ze = o;
          return;
        }
        ze = t.return;
      }
    }
    function iL(e, t, o, l) {
      ze = t, oL(t, e, o, l);
    }
    function oL(e, t, o, l) {
      for (; ze !== null; ) {
        var d = ze, m = d.child;
        (d.subtreeFlags & ga) !== Je && m !== null ? (m.return = d, ze = m) : uL(e, t, o, l);
      }
    }
    function uL(e, t, o, l) {
      for (; ze !== null; ) {
        var d = ze;
        if ((d.flags & tn) !== Je) {
          jt(d);
          try {
            lL(t, d, o, l);
          } catch (b) {
            en(d, d.return, b);
          }
          Nn();
        }
        if (d === e) {
          ze = null;
          return;
        }
        var m = d.sibling;
        if (m !== null) {
          m.return = d.return, ze = m;
          return;
        }
        ze = d.return;
      }
    }
    function lL(e, t, o, l) {
      switch (t.tag) {
        case y:
        case H:
        case B: {
          if (t.mode & ct) {
            JC();
            try {
              Nl(Sr | tr, t);
            } finally {
              QC(t);
            }
          } else
            Nl(Sr | tr, t);
          break;
        }
      }
    }
    function sL(e) {
      ze = e, cL();
    }
    function cL() {
      for (; ze !== null; ) {
        var e = ze, t = e.child;
        if ((ze.flags & Lt) !== Je) {
          var o = e.deletions;
          if (o !== null) {
            for (var l = 0; l < o.length; l++) {
              var d = o[l];
              ze = d, pL(d, e);
            }
            {
              var m = e.alternate;
              if (m !== null) {
                var b = m.child;
                if (b !== null) {
                  m.child = null;
                  do {
                    var x = b.sibling;
                    b.sibling = null, b = x;
                  } while (b !== null);
                }
              }
            }
            ze = e;
          }
        }
        (e.subtreeFlags & ga) !== Je && t !== null ? (t.return = e, ze = t) : fL();
      }
    }
    function fL() {
      for (; ze !== null; ) {
        var e = ze;
        (e.flags & tn) !== Je && (jt(e), dL(e), Nn());
        var t = e.sibling;
        if (t !== null) {
          t.return = e.return, ze = t;
          return;
        }
        ze = e.return;
      }
    }
    function dL(e) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          e.mode & ct ? (JC(), Ui(Sr | tr, e, e.return), QC(e)) : Ui(Sr | tr, e, e.return);
          break;
        }
      }
    }
    function pL(e, t) {
      for (; ze !== null; ) {
        var o = ze;
        jt(o), hL(o, t), Nn();
        var l = o.child;
        l !== null ? (l.return = o, ze = l) : vL(e);
      }
    }
    function vL(e) {
      for (; ze !== null; ) {
        var t = ze, o = t.sibling, l = t.return;
        if (OR(t), t === e) {
          ze = null;
          return;
        }
        if (o !== null) {
          o.return = l, ze = o;
          return;
        }
        ze = l;
      }
    }
    function hL(e, t) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          e.mode & ct ? (JC(), Ui(Sr, e, t), QC(e)) : Ui(Sr, e, t);
          break;
        }
      }
    }
    function mL(e) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          try {
            Nl(nr | tr, e);
          } catch (o) {
            en(e, e.return, o);
          }
          break;
        }
        case E: {
          var t = e.stateNode;
          try {
            t.componentDidMount();
          } catch (o) {
            en(e, e.return, o);
          }
          break;
        }
      }
    }
    function gL(e) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          try {
            Nl(Sr | tr, e);
          } catch (t) {
            en(e, e.return, t);
          }
          break;
        }
      }
    }
    function yL(e) {
      switch (e.tag) {
        case y:
        case H:
        case B: {
          try {
            Ui(nr | tr, e, e.return);
          } catch (o) {
            en(e, e.return, o);
          }
          break;
        }
        case E: {
          var t = e.stateNode;
          typeof t.componentWillUnmount == "function" && O1(e, e.return, t);
          break;
        }
      }
    }
    function bL(e) {
      switch (e.tag) {
        case y:
        case H:
        case B:
          try {
            Ui(Sr | tr, e, e.return);
          } catch (t) {
            en(e, e.return, t);
          }
      }
    }
    if (typeof Symbol == "function" && Symbol.for) {
      var Nv = Symbol.for;
      Nv("selector.component"), Nv("selector.has_pseudo_class"), Nv("selector.role"), Nv("selector.test_id"), Nv("selector.text");
    }
    var CL = [];
    function SL() {
      CL.forEach(function(e) {
        return e();
      });
    }
    var EL = u.ReactCurrentActQueue;
    function xL(e) {
      {
        var t = (
          // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
          typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0
        ), o = typeof jest < "u";
        return o && t !== !1;
      }
    }
    function PR() {
      {
        var e = (
          // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
          typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0
        );
        return !e && EL.current !== null && h("The current testing environment is not configured to support act(...)"), e;
      }
    }
    var wL = Math.ceil, M1 = u.ReactCurrentDispatcher, L1 = u.ReactCurrentOwner, Rr = u.ReactCurrentBatchConfig, Zi = u.ReactCurrentActQueue, ir = (
      /*             */
      0
    ), HR = (
      /*               */
      1
    ), Tr = (
      /*                */
      2
    ), hi = (
      /*                */
      4
    ), vu = 0, kv = 1, qs = 2, gy = 3, Mv = 4, _R = 5, F1 = 6, It = ir, aa = null, Sn = null, or = ce, To = ce, B1 = El(ce), ur = vu, Lv = null, yy = ce, Fv = ce, by = ce, Bv = null, Da = null, V1 = 0, zR = 500, GR = 1 / 0, RL = 500, hu = null;
    function Vv() {
      GR = an() + RL;
    }
    function jR() {
      return GR;
    }
    var Cy = !1, P1 = null, cd = null, Ks = !1, Ml = null, Pv = ce, H1 = [], _1 = null, TL = 50, Hv = 0, z1 = null, G1 = !1, Sy = !1, IL = 50, fd = 0, Ey = null, _v = Qt, xy = ce, UR = !1;
    function wy() {
      return aa;
    }
    function ia() {
      return (It & (Tr | hi)) !== ir ? an() : (_v !== Qt || (_v = an()), _v);
    }
    function Ll(e) {
      var t = e.mode;
      if ((t & Ze) === We)
        return $e;
      if ((It & Tr) !== ir && or !== ce)
        return rl(or);
      var o = Ek() !== Sk;
      if (o) {
        if (Rr.transition !== null) {
          var l = Rr.transition;
          l._updatedFibers || (l._updatedFibers = /* @__PURE__ */ new Set()), l._updatedFibers.add(e);
        }
        return xy === In && (xy = Bm()), xy;
      }
      var d = Ea();
      if (d !== In)
        return d;
      var m = o2();
      return m;
    }
    function AL(e) {
      var t = e.mode;
      return (t & Ze) === We ? $e : Hr();
    }
    function lr(e, t, o, l) {
      qL(), UR && h("useInsertionEffect must not schedule updates."), G1 && (Sy = !0), eu(e, o, l), (It & Tr) !== ce && e === aa ? tF(t) : (ea && yf(e, t, o), nF(t), e === aa && ((It & Tr) === ir && (Fv = gt(Fv, o)), ur === Mv && Fl(e, or)), Na(e, l), o === $e && It === ir && (t.mode & Ze) === We && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
      !Zi.isBatchingLegacy && (Vv(), Ux()));
    }
    function OL(e, t, o) {
      var l = e.current;
      l.lanes = t, eu(e, t, o), Na(e, o);
    }
    function DL(e) {
      return (
        // TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
        // decided not to enable it.
        (It & Tr) !== ir
      );
    }
    function Na(e, t) {
      var o = e.callbackNode;
      Nm(e, t);
      var l = qo(e, e === aa ? or : ce);
      if (l === ce) {
        o !== null && oT(o), e.callbackNode = null, e.callbackPriority = In;
        return;
      }
      var d = yn(l), m = e.callbackPriority;
      if (m === d && // Special case related to `act`. If the currently scheduled task is a
      // Scheduler task, rather than an `act` task, cancel it and re-scheduled
      // on the `act` queue.
      !(Zi.current !== null && o !== $1)) {
        o == null && m !== $e && h("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");
        return;
      }
      o != null && oT(o);
      var b;
      if (d === $e)
        e.tag === xl ? (Zi.isBatchingLegacy !== null && (Zi.didScheduleLegacyUpdate = !0), ak(ZR.bind(null, e))) : jx(ZR.bind(null, e)), Zi.current !== null ? Zi.current.push(wl) : l2(function() {
          (It & (Tr | hi)) === ir && wl();
        }), b = null;
      else {
        var x;
        switch (er(l)) {
          case bn:
            x = Uc;
            break;
          case Mi:
            x = Wo;
            break;
          case ii:
            x = ai;
            break;
          case al:
            x = Wc;
            break;
          default:
            x = ai;
            break;
        }
        b = Q1(x, WR.bind(null, e));
      }
      e.callbackPriority = d, e.callbackNode = b;
    }
    function WR(e, t) {
      if (Yk(), _v = Qt, xy = ce, (It & (Tr | hi)) !== ir)
        throw new Error("Should not already be working.");
      var o = e.callbackNode, l = gu();
      if (l && e.callbackNode !== o)
        return null;
      var d = qo(e, e === aa ? or : ce);
      if (d === ce)
        return null;
      var m = !Rs(e, d) && !Fm(e, d) && !t, b = m ? _L(e, d) : Ty(e, d);
      if (b !== vu) {
        if (b === qs) {
          var x = fo(e);
          x !== ce && (d = x, b = j1(e, x));
        }
        if (b === kv) {
          var R = Lv;
          throw ec(e, ce), Fl(e, d), Na(e, an()), R;
        }
        if (b === F1)
          Fl(e, d);
        else {
          var D = !Rs(e, d), k = e.current.alternate;
          if (D && !kL(k)) {
            if (b = Ty(e, d), b === qs) {
              var X = fo(e);
              X !== ce && (d = X, b = j1(e, X));
            }
            if (b === kv) {
              var U = Lv;
              throw ec(e, ce), Fl(e, d), Na(e, an()), U;
            }
          }
          e.finishedWork = k, e.finishedLanes = d, NL(e, b, d);
        }
      }
      return Na(e, an()), e.callbackNode === o ? WR.bind(null, e) : null;
    }
    function j1(e, t) {
      var o = Bv;
      if (bf(e)) {
        var l = ec(e, t);
        l.flags |= dn, J2(e.containerInfo);
      }
      var d = Ty(e, t);
      if (d !== qs) {
        var m = Da;
        Da = o, m !== null && XR(m);
      }
      return d;
    }
    function XR(e) {
      Da === null ? Da = e : Da.push.apply(Da, e);
    }
    function NL(e, t, o) {
      switch (t) {
        case vu:
        case kv:
          throw new Error("Root did not complete. This is a bug in React.");
        case qs: {
          tc(e, Da, hu);
          break;
        }
        case gy: {
          if (Fl(e, o), km(o) && // do not delay if we're inside an act() scope
          !uT()) {
            var l = V1 + zR - an();
            if (l > 10) {
              var d = qo(e, ce);
              if (d !== ce)
                break;
              var m = e.suspendedLanes;
              if (!Ko(m, o)) {
                ia(), mf(e, m);
                break;
              }
              e.timeoutHandle = _b(tc.bind(null, e, Da, hu), l);
              break;
            }
          }
          tc(e, Da, hu);
          break;
        }
        case Mv: {
          if (Fl(e, o), Lm(o))
            break;
          if (!uT()) {
            var b = Om(e, o), x = b, R = an() - x, D = JL(R) - R;
            if (D > 10) {
              e.timeoutHandle = _b(tc.bind(null, e, Da, hu), D);
              break;
            }
          }
          tc(e, Da, hu);
          break;
        }
        case _R: {
          tc(e, Da, hu);
          break;
        }
        default:
          throw new Error("Unknown root exit status.");
      }
    }
    function kL(e) {
      for (var t = e; ; ) {
        if (t.flags & hs) {
          var o = t.updateQueue;
          if (o !== null) {
            var l = o.stores;
            if (l !== null)
              for (var d = 0; d < l.length; d++) {
                var m = l[d], b = m.getSnapshot, x = m.value;
                try {
                  if (!_e(b(), x))
                    return !1;
                } catch {
                  return !1;
                }
              }
          }
        }
        var R = t.child;
        if (t.subtreeFlags & hs && R !== null) {
          R.return = t, t = R;
          continue;
        }
        if (t === e)
          return !0;
        for (; t.sibling === null; ) {
          if (t.return === null || t.return === e)
            return !0;
          t = t.return;
        }
        t.sibling.return = t.return, t = t.sibling;
      }
      return !0;
    }
    function Fl(e, t) {
      t = Ts(t, by), t = Ts(t, Fv), Pm(e, t);
    }
    function ZR(e) {
      if ($k(), (It & (Tr | hi)) !== ir)
        throw new Error("Should not already be working.");
      gu();
      var t = qo(e, ce);
      if (!_r(t, $e))
        return Na(e, an()), null;
      var o = Ty(e, t);
      if (e.tag !== xl && o === qs) {
        var l = fo(e);
        l !== ce && (t = l, o = j1(e, l));
      }
      if (o === kv) {
        var d = Lv;
        throw ec(e, ce), Fl(e, t), Na(e, an()), d;
      }
      if (o === F1)
        throw new Error("Root did not complete. This is a bug in React.");
      var m = e.current.alternate;
      return e.finishedWork = m, e.finishedLanes = t, tc(e, Da, hu), Na(e, an()), null;
    }
    function ML(e, t) {
      t !== ce && (Dp(e, gt(t, $e)), Na(e, an()), (It & (Tr | hi)) === ir && (Vv(), wl()));
    }
    function U1(e, t) {
      var o = It;
      It |= HR;
      try {
        return e(t);
      } finally {
        It = o, It === ir && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
        !Zi.isBatchingLegacy && (Vv(), Ux());
      }
    }
    function LL(e, t, o, l, d) {
      var m = Ea(), b = Rr.transition;
      try {
        return Rr.transition = null, pn(bn), e(t, o, l, d);
      } finally {
        pn(m), Rr.transition = b, It === ir && Vv();
      }
    }
    function mu(e) {
      Ml !== null && Ml.tag === xl && (It & (Tr | hi)) === ir && gu();
      var t = It;
      It |= HR;
      var o = Rr.transition, l = Ea();
      try {
        return Rr.transition = null, pn(bn), e ? e() : void 0;
      } finally {
        pn(l), Rr.transition = o, It = t, (It & (Tr | hi)) === ir && wl();
      }
    }
    function YR() {
      return (It & (Tr | hi)) !== ir;
    }
    function Ry(e, t) {
      jr(B1, To, e), To = gt(To, t);
    }
    function W1(e) {
      To = B1.current, Gr(B1, e);
    }
    function ec(e, t) {
      e.finishedWork = null, e.finishedLanes = ce;
      var o = e.timeoutHandle;
      if (o !== zb && (e.timeoutHandle = zb, u2(o)), Sn !== null)
        for (var l = Sn.return; l !== null; ) {
          var d = l.alternate;
          xR(d, l), l = l.return;
        }
      aa = e;
      var m = nc(e.current, null);
      return Sn = m, or = To = t, ur = vu, Lv = null, yy = ce, Fv = ce, by = ce, Bv = null, Da = null, Ok(), Hi.discardPendingWarnings(), m;
    }
    function $R(e, t) {
      do {
        var o = Sn;
        try {
          if (Fg(), bw(), Nn(), L1.current = null, o === null || o.return === null) {
            ur = kv, Lv = t, Sn = null;
            return;
          }
          if (Ae && o.mode & ct && cy(o, !0), Oe)
            if (Vr(), t !== null && typeof t == "object" && typeof t.then == "function") {
              var l = t;
              Zo(o, l, or);
            } else
              ys(o, t, or);
          aM(e, o.return, o, t, or), KR(o);
        } catch (d) {
          t = d, Sn === o && o !== null ? (o = o.return, Sn = o) : o = Sn;
          continue;
        }
        return;
      } while (!0);
    }
    function QR() {
      var e = M1.current;
      return M1.current = iy, e === null ? iy : e;
    }
    function JR(e) {
      M1.current = e;
    }
    function FL() {
      V1 = an();
    }
    function zv(e) {
      yy = gt(e, yy);
    }
    function BL() {
      ur === vu && (ur = gy);
    }
    function X1() {
      (ur === vu || ur === gy || ur === qs) && (ur = Mv), aa !== null && (ws(yy) || ws(Fv)) && Fl(aa, or);
    }
    function VL(e) {
      ur !== Mv && (ur = qs), Bv === null ? Bv = [e] : Bv.push(e);
    }
    function PL() {
      return ur === vu;
    }
    function Ty(e, t) {
      var o = It;
      It |= Tr;
      var l = QR();
      if (aa !== e || or !== t) {
        if (ea) {
          var d = e.memoizedUpdaters;
          d.size > 0 && (Gv(e, or), d.clear()), Np(e, t);
        }
        hu = As(), ec(e, t);
      }
      nn(t);
      do
        try {
          HL();
          break;
        } catch (m) {
          $R(e, m);
        }
      while (!0);
      if (Fg(), It = o, JR(l), Sn !== null)
        throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");
      return Qc(), aa = null, or = ce, ur;
    }
    function HL() {
      for (; Sn !== null; )
        qR(Sn);
    }
    function _L(e, t) {
      var o = It;
      It |= Tr;
      var l = QR();
      if (aa !== e || or !== t) {
        if (ea) {
          var d = e.memoizedUpdaters;
          d.size > 0 && (Gv(e, or), d.clear()), Np(e, t);
        }
        hu = As(), Vv(), ec(e, t);
      }
      nn(t);
      do
        try {
          zL();
          break;
        } catch (m) {
          $R(e, m);
        }
      while (!0);
      return Fg(), JR(l), It = o, Sn !== null ? ($c(), vu) : (Qc(), aa = null, or = ce, ur);
    }
    function zL() {
      for (; Sn !== null && !jc(); )
        qR(Sn);
    }
    function qR(e) {
      var t = e.alternate;
      jt(e);
      var o;
      (e.mode & ct) !== We ? ($C(e), o = Z1(t, e, To), cy(e, !0)) : o = Z1(t, e, To), Nn(), e.memoizedProps = e.pendingProps, o === null ? KR(e) : Sn = o, L1.current = null;
    }
    function KR(e) {
      var t = e;
      do {
        var o = t.alternate, l = t.return;
        if ((t.flags & Jr) === Je) {
          jt(t);
          var d = void 0;
          if ((t.mode & ct) === We ? d = ER(o, t, To) : ($C(t), d = ER(o, t, To), cy(t, !1)), Nn(), d !== null) {
            Sn = d;
            return;
          }
        } else {
          var m = BM(o, t);
          if (m !== null) {
            m.flags &= ym, Sn = m;
            return;
          }
          if ((t.mode & ct) !== We) {
            cy(t, !1);
            for (var b = t.actualDuration, x = t.child; x !== null; )
              b += x.actualDuration, x = x.sibling;
            t.actualDuration = b;
          }
          if (l !== null)
            l.flags |= Jr, l.subtreeFlags = Je, l.deletions = null;
          else {
            ur = F1, Sn = null;
            return;
          }
        }
        var R = t.sibling;
        if (R !== null) {
          Sn = R;
          return;
        }
        t = l, Sn = t;
      } while (t !== null);
      ur === vu && (ur = _R);
    }
    function tc(e, t, o) {
      var l = Ea(), d = Rr.transition;
      try {
        Rr.transition = null, pn(bn), GL(e, t, o, l);
      } finally {
        Rr.transition = d, pn(l);
      }
      return null;
    }
    function GL(e, t, o, l) {
      do
        gu();
      while (Ml !== null);
      if (KL(), (It & (Tr | hi)) !== ir)
        throw new Error("Should not already be working.");
      var d = e.finishedWork, m = e.finishedLanes;
      if (lo(m), d === null)
        return Xc(), null;
      if (m === ce && h("root.finishedLanes should not be empty during a commit. This is a bug in React."), e.finishedWork = null, e.finishedLanes = ce, d === e.current)
        throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
      e.callbackNode = null, e.callbackPriority = In;
      var b = gt(d.lanes, d.childLanes);
      gf(e, b), e === aa && (aa = null, Sn = null, or = ce), ((d.subtreeFlags & ga) !== Je || (d.flags & ga) !== Je) && (Ks || (Ks = !0, _1 = o, Q1(ai, function() {
        return gu(), null;
      })));
      var x = (d.subtreeFlags & (Uu | Fr | fr | ga)) !== Je, R = (d.flags & (Uu | Fr | fr | ga)) !== Je;
      if (x || R) {
        var D = Rr.transition;
        Rr.transition = null;
        var k = Ea();
        pn(bn);
        var X = It;
        It |= hi, L1.current = null, zM(e, d), Uw(), tL(e, d, m), e2(e.containerInfo), e.current = d, Ep(m), nL(d, e, m), $u(), Sm(), It = X, pn(k), Rr.transition = D;
      } else
        e.current = d, Uw();
      var U = Ks;
      if (Ks ? (Ks = !1, Ml = e, Pv = m) : (fd = 0, Ey = null), b = e.pendingLanes, b === ce && (cd = null), U || rT(e.current, !1), Xu(d.stateNode, l), ea && e.memoizedUpdaters.clear(), SL(), Na(e, an()), t !== null)
        for (var ee = e.onRecoverableError, ne = 0; ne < t.length; ne++) {
          var ie = t[ne], De = ie.stack, qe = ie.digest;
          ee(ie.value, {
            componentStack: De,
            digest: qe
          });
        }
      if (Cy) {
        Cy = !1;
        var Ye = P1;
        throw P1 = null, Ye;
      }
      return _r(Pv, $e) && e.tag !== xl && gu(), b = e.pendingLanes, _r(b, $e) ? (Zk(), e === z1 ? Hv++ : (Hv = 0, z1 = e)) : Hv = 0, wl(), Xc(), null;
    }
    function gu() {
      if (Ml !== null) {
        var e = er(Pv), t = fb(ii, e), o = Rr.transition, l = Ea();
        try {
          return Rr.transition = null, pn(t), UL();
        } finally {
          pn(l), Rr.transition = o;
        }
      }
      return !1;
    }
    function jL(e) {
      H1.push(e), Ks || (Ks = !0, Q1(ai, function() {
        return gu(), null;
      }));
    }
    function UL() {
      if (Ml === null)
        return !1;
      var e = _1;
      _1 = null;
      var t = Ml, o = Pv;
      if (Ml = null, Pv = ce, (It & (Tr | hi)) !== ir)
        throw new Error("Cannot flush passive effects while already rendering.");
      G1 = !0, Sy = !1, Im(o);
      var l = It;
      It |= hi, sL(t.current), iL(t, t.current, o, e);
      {
        var d = H1;
        H1 = [];
        for (var m = 0; m < d.length; m++) {
          var b = d[m];
          WM(t, b);
        }
      }
      xp(), rT(t.current, !0), It = l, wl(), Sy ? t === Ey ? fd++ : (fd = 0, Ey = t) : fd = 0, G1 = !1, Sy = !1, Ca(t);
      {
        var x = t.current.stateNode;
        x.effectDuration = 0, x.passiveEffectDuration = 0;
      }
      return !0;
    }
    function eT(e) {
      return cd !== null && cd.has(e);
    }
    function WL(e) {
      cd === null ? cd = /* @__PURE__ */ new Set([e]) : cd.add(e);
    }
    function XL(e) {
      Cy || (Cy = !0, P1 = e);
    }
    var ZL = XL;
    function tT(e, t, o) {
      var l = Qs(o, t), d = qw(e, l, $e), m = Tl(e, d, $e), b = ia();
      m !== null && (eu(m, $e, b), Na(m, b));
    }
    function en(e, t, o) {
      if (PM(o), jv(!1), e.tag === T) {
        tT(e, e, o);
        return;
      }
      var l = null;
      for (l = t; l !== null; ) {
        if (l.tag === T) {
          tT(l, e, o);
          return;
        } else if (l.tag === E) {
          var d = l.type, m = l.stateNode;
          if (typeof d.getDerivedStateFromError == "function" || typeof m.componentDidCatch == "function" && !eT(m)) {
            var b = Qs(o, e), x = p1(l, b, $e), R = Tl(l, x, $e), D = ia();
            R !== null && (eu(R, $e, D), Na(R, D));
            return;
          }
        }
        l = l.return;
      }
      h(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.

Error message:

%s`, o);
    }
    function YL(e, t, o) {
      var l = e.pingCache;
      l !== null && l.delete(t);
      var d = ia();
      mf(e, o), rF(e), aa === e && Ko(or, o) && (ur === Mv || ur === gy && km(or) && an() - V1 < zR ? ec(e, ce) : by = gt(by, o)), Na(e, d);
    }
    function nT(e, t) {
      t === In && (t = AL(e));
      var o = ia(), l = Aa(e, t);
      l !== null && (eu(l, t, o), Na(l, o));
    }
    function $L(e) {
      var t = e.memoizedState, o = In;
      t !== null && (o = t.retryLane), nT(e, o);
    }
    function QL(e, t) {
      var o = In, l;
      switch (e.tag) {
        case V:
          l = e.stateNode;
          var d = e.memoizedState;
          d !== null && (o = d.retryLane);
          break;
        case de:
          l = e.stateNode;
          break;
        default:
          throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.");
      }
      l !== null && l.delete(t), nT(e, o);
    }
    function JL(e) {
      return e < 120 ? 120 : e < 480 ? 480 : e < 1080 ? 1080 : e < 1920 ? 1920 : e < 3e3 ? 3e3 : e < 4320 ? 4320 : wL(e / 1960) * 1960;
    }
    function qL() {
      if (Hv > TL)
        throw Hv = 0, z1 = null, new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
      fd > IL && (fd = 0, Ey = null, h("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."));
    }
    function KL() {
      Hi.flushLegacyContextWarning(), Hi.flushPendingUnsafeLifecycleWarnings();
    }
    function rT(e, t) {
      jt(e), Iy(e, Lr, yL), t && Iy(e, Uo, bL), Iy(e, Lr, mL), t && Iy(e, Uo, gL), Nn();
    }
    function Iy(e, t, o) {
      for (var l = e, d = null; l !== null; ) {
        var m = l.subtreeFlags & t;
        l !== d && l.child !== null && m !== Je ? l = l.child : ((l.flags & t) !== Je && o(l), l.sibling !== null ? l = l.sibling : l = d = l.return);
      }
    }
    var Ay = null;
    function aT(e) {
      {
        if ((It & Tr) !== ir || !(e.mode & Ze))
          return;
        var t = e.tag;
        if (t !== w && t !== T && t !== E && t !== y && t !== H && t !== j && t !== B)
          return;
        var o = mt(e) || "ReactComponent";
        if (Ay !== null) {
          if (Ay.has(o))
            return;
          Ay.add(o);
        } else
          Ay = /* @__PURE__ */ new Set([o]);
        var l = wn;
        try {
          jt(e), h("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.");
        } finally {
          l ? jt(e) : Nn();
        }
      }
    }
    var Z1;
    {
      var eF = null;
      Z1 = function(e, t, o) {
        var l = dT(eF, t);
        try {
          return gR(e, t, o);
        } catch (m) {
          if (dk() || m !== null && typeof m == "object" && typeof m.then == "function")
            throw m;
          if (Fg(), bw(), xR(e, t), dT(t, l), t.mode & ct && $C(t), jo(null, gR, null, e, t, o), ob()) {
            var d = pp();
            typeof d == "object" && d !== null && d._suppressLogging && typeof m == "object" && m !== null && !m._suppressLogging && (m._suppressLogging = !0);
          }
          throw m;
        }
      };
    }
    var iT = !1, Y1;
    Y1 = /* @__PURE__ */ new Set();
    function tF(e) {
      if (fa && !Uk())
        switch (e.tag) {
          case y:
          case H:
          case B: {
            var t = Sn && mt(Sn) || "Unknown", o = t;
            if (!Y1.has(o)) {
              Y1.add(o);
              var l = mt(e) || "Unknown";
              h("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", l, t, t);
            }
            break;
          }
          case E: {
            iT || (h("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), iT = !0);
            break;
          }
        }
    }
    function Gv(e, t) {
      if (ea) {
        var o = e.memoizedUpdaters;
        o.forEach(function(l) {
          yf(e, l, t);
        });
      }
    }
    var $1 = {};
    function Q1(e, t) {
      {
        var o = Zi.current;
        return o !== null ? (o.push(t), $1) : Gc(e, t);
      }
    }
    function oT(e) {
      if (e !== $1)
        return Cm(e);
    }
    function uT() {
      return Zi.current !== null;
    }
    function nF(e) {
      {
        if (e.mode & Ze) {
          if (!PR())
            return;
        } else if (!xL() || It !== ir || e.tag !== y && e.tag !== H && e.tag !== B)
          return;
        if (Zi.current === null) {
          var t = wn;
          try {
            jt(e), h(`An update to %s inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`, mt(e));
          } finally {
            t ? jt(e) : Nn();
          }
        }
      }
    }
    function rF(e) {
      e.tag !== xl && PR() && Zi.current === null && h(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).

When testing, code that resolves suspended data should be wrapped into act(...):

act(() => {
  /* finish loading suspended data */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`);
    }
    function jv(e) {
      UR = e;
    }
    var mi = null, dd = null, aF = function(e) {
      mi = e;
    };
    function pd(e) {
      {
        if (mi === null)
          return e;
        var t = mi(e);
        return t === void 0 ? e : t.current;
      }
    }
    function J1(e) {
      return pd(e);
    }
    function q1(e) {
      {
        if (mi === null)
          return e;
        var t = mi(e);
        if (t === void 0) {
          if (e != null && typeof e.render == "function") {
            var o = pd(e.render);
            if (e.render !== o) {
              var l = {
                $$typeof: Du,
                render: o
              };
              return e.displayName !== void 0 && (l.displayName = e.displayName), l;
            }
          }
          return e;
        }
        return t.current;
      }
    }
    function lT(e, t) {
      {
        if (mi === null)
          return !1;
        var o = e.elementType, l = t.type, d = !1, m = typeof l == "object" && l !== null ? l.$$typeof : null;
        switch (e.tag) {
          case E: {
            typeof l == "function" && (d = !0);
            break;
          }
          case y: {
            (typeof l == "function" || m === gr) && (d = !0);
            break;
          }
          case H: {
            (m === Du || m === gr) && (d = !0);
            break;
          }
          case j:
          case B: {
            (m === Nu || m === gr) && (d = !0);
            break;
          }
          default:
            return !1;
        }
        if (d) {
          var b = mi(o);
          if (b !== void 0 && b === mi(l))
            return !0;
        }
        return !1;
      }
    }
    function sT(e) {
      {
        if (mi === null || typeof WeakSet != "function")
          return;
        dd === null && (dd = /* @__PURE__ */ new WeakSet()), dd.add(e);
      }
    }
    var iF = function(e, t) {
      {
        if (mi === null)
          return;
        var o = t.staleFamilies, l = t.updatedFamilies;
        gu(), mu(function() {
          K1(e.current, l, o);
        });
      }
    }, oF = function(e, t) {
      {
        if (e.context !== Ya)
          return;
        gu(), mu(function() {
          Uv(t, e, null, null);
        });
      }
    };
    function K1(e, t, o) {
      {
        var l = e.alternate, d = e.child, m = e.sibling, b = e.tag, x = e.type, R = null;
        switch (b) {
          case y:
          case B:
          case E:
            R = x;
            break;
          case H:
            R = x.render;
            break;
        }
        if (mi === null)
          throw new Error("Expected resolveFamily to be set during hot reload.");
        var D = !1, k = !1;
        if (R !== null) {
          var X = mi(R);
          X !== void 0 && (o.has(X) ? k = !0 : t.has(X) && (b === E ? k = !0 : D = !0));
        }
        if (dd !== null && (dd.has(e) || l !== null && dd.has(l)) && (k = !0), k && (e._debugNeedsRemount = !0), k || D) {
          var U = Aa(e, $e);
          U !== null && lr(U, e, $e, Qt);
        }
        d !== null && !k && K1(d, t, o), m !== null && K1(m, t, o);
      }
    }
    var uF = function(e, t) {
      {
        var o = /* @__PURE__ */ new Set(), l = new Set(t.map(function(d) {
          return d.current;
        }));
        return eS(e.current, l, o), o;
      }
    };
    function eS(e, t, o) {
      {
        var l = e.child, d = e.sibling, m = e.tag, b = e.type, x = null;
        switch (m) {
          case y:
          case B:
          case E:
            x = b;
            break;
          case H:
            x = b.render;
            break;
        }
        var R = !1;
        x !== null && t.has(x) && (R = !0), R ? lF(e, o) : l !== null && eS(l, t, o), d !== null && eS(d, t, o);
      }
    }
    function lF(e, t) {
      {
        var o = sF(e, t);
        if (o)
          return;
        for (var l = e; ; ) {
          switch (l.tag) {
            case O:
              t.add(l.stateNode);
              return;
            case A:
              t.add(l.stateNode.containerInfo);
              return;
            case T:
              t.add(l.stateNode.containerInfo);
              return;
          }
          if (l.return === null)
            throw new Error("Expected to reach root first.");
          l = l.return;
        }
      }
    }
    function sF(e, t) {
      for (var o = e, l = !1; ; ) {
        if (o.tag === O)
          l = !0, t.add(o.stateNode);
        else if (o.child !== null) {
          o.child.return = o, o = o.child;
          continue;
        }
        if (o === e)
          return l;
        for (; o.sibling === null; ) {
          if (o.return === null || o.return === e)
            return l;
          o = o.return;
        }
        o.sibling.return = o.return, o = o.sibling;
      }
      return !1;
    }
    var tS;
    {
      tS = !1;
      try {
        var cT = Object.preventExtensions({});
      } catch {
        tS = !0;
      }
    }
    function cF(e, t, o, l) {
      this.tag = e, this.key = o, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = t, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = l, this.flags = Je, this.subtreeFlags = Je, this.deletions = null, this.lanes = ce, this.childLanes = ce, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, !tS && typeof Object.preventExtensions == "function" && Object.preventExtensions(this);
    }
    var $a = function(e, t, o, l) {
      return new cF(e, t, o, l);
    };
    function nS(e) {
      var t = e.prototype;
      return !!(t && t.isReactComponent);
    }
    function fF(e) {
      return typeof e == "function" && !nS(e) && e.defaultProps === void 0;
    }
    function dF(e) {
      if (typeof e == "function")
        return nS(e) ? E : y;
      if (e != null) {
        var t = e.$$typeof;
        if (t === Du)
          return H;
        if (t === Nu)
          return j;
      }
      return w;
    }
    function nc(e, t) {
      var o = e.alternate;
      o === null ? (o = $a(e.tag, t, e.key, e.mode), o.elementType = e.elementType, o.type = e.type, o.stateNode = e.stateNode, o._debugSource = e._debugSource, o._debugOwner = e._debugOwner, o._debugHookTypes = e._debugHookTypes, o.alternate = e, e.alternate = o) : (o.pendingProps = t, o.type = e.type, o.flags = Je, o.subtreeFlags = Je, o.deletions = null, o.actualDuration = 0, o.actualStartTime = -1), o.flags = e.flags & qn, o.childLanes = e.childLanes, o.lanes = e.lanes, o.child = e.child, o.memoizedProps = e.memoizedProps, o.memoizedState = e.memoizedState, o.updateQueue = e.updateQueue;
      var l = e.dependencies;
      switch (o.dependencies = l === null ? null : {
        lanes: l.lanes,
        firstContext: l.firstContext
      }, o.sibling = e.sibling, o.index = e.index, o.ref = e.ref, o.selfBaseDuration = e.selfBaseDuration, o.treeBaseDuration = e.treeBaseDuration, o._debugNeedsRemount = e._debugNeedsRemount, o.tag) {
        case w:
        case y:
        case B:
          o.type = pd(e.type);
          break;
        case E:
          o.type = J1(e.type);
          break;
        case H:
          o.type = q1(e.type);
          break;
      }
      return o;
    }
    function pF(e, t) {
      e.flags &= qn | Jt;
      var o = e.alternate;
      if (o === null)
        e.childLanes = ce, e.lanes = t, e.child = null, e.subtreeFlags = Je, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null, e.selfBaseDuration = 0, e.treeBaseDuration = 0;
      else {
        e.childLanes = o.childLanes, e.lanes = o.lanes, e.child = o.child, e.subtreeFlags = Je, e.deletions = null, e.memoizedProps = o.memoizedProps, e.memoizedState = o.memoizedState, e.updateQueue = o.updateQueue, e.type = o.type;
        var l = o.dependencies;
        e.dependencies = l === null ? null : {
          lanes: l.lanes,
          firstContext: l.firstContext
        }, e.selfBaseDuration = o.selfBaseDuration, e.treeBaseDuration = o.treeBaseDuration;
      }
      return e;
    }
    function vF(e, t, o) {
      var l;
      return e === Rg ? (l = Ze, t === !0 && (l |= Ct, l |= ta)) : l = We, ea && (l |= ct), $a(T, null, null, l);
    }
    function rS(e, t, o, l, d, m) {
      var b = w, x = e;
      if (typeof e == "function")
        nS(e) ? (b = E, x = J1(x)) : x = pd(x);
      else if (typeof e == "string")
        b = O;
      else
        e:
          switch (e) {
            case Ci:
              return Bl(o.children, d, m, t);
            case Ou:
              b = N, d |= Ct, (d & Ze) !== We && (d |= ta);
              break;
            case Wl:
              return hF(o, d, m, t);
            case ti:
              return mF(o, d, m, t);
            case Xl:
              return gF(o, d, m, t);
            case Fd:
              return fT(o, d, m, t);
            case Oh:
            case Ih:
            case P0:
            case H0:
            case Ah:
            default: {
              if (typeof e == "object" && e !== null)
                switch (e.$$typeof) {
                  case Md:
                    b = $;
                    break e;
                  case Ld:
                    b = P;
                    break e;
                  case Du:
                    b = H, x = q1(x);
                    break e;
                  case Nu:
                    b = j;
                    break e;
                  case gr:
                    b = G, x = null;
                    break e;
                }
              var R = "";
              {
                (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (R += " 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 D = l ? mt(l) : null;
                D && (R += `

Check the render method of \`` + D + "`.");
              }
              throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (e == null ? e : typeof e) + "." + R));
            }
          }
      var k = $a(b, o, t, d);
      return k.elementType = e, k.type = x, k.lanes = m, k._debugOwner = l, k;
    }
    function aS(e, t, o) {
      var l = null;
      l = e._owner;
      var d = e.type, m = e.key, b = e.props, x = rS(d, m, b, l, t, o);
      return x._debugSource = e._source, x._debugOwner = e._owner, x;
    }
    function Bl(e, t, o, l) {
      var d = $a(M, e, l, t);
      return d.lanes = o, d;
    }
    function hF(e, t, o, l) {
      typeof e.id != "string" && h('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof e.id);
      var d = $a(z, e, l, t | ct);
      return d.elementType = Wl, d.lanes = o, d.stateNode = {
        effectDuration: 0,
        passiveEffectDuration: 0
      }, d;
    }
    function mF(e, t, o, l) {
      var d = $a(V, e, l, t);
      return d.elementType = ti, d.lanes = o, d;
    }
    function gF(e, t, o, l) {
      var d = $a(de, e, l, t);
      return d.elementType = Xl, d.lanes = o, d;
    }
    function fT(e, t, o, l) {
      var d = $a(ye, e, l, t);
      d.elementType = Fd, d.lanes = o;
      var m = {
        isHidden: !1
      };
      return d.stateNode = m, d;
    }
    function iS(e, t, o) {
      var l = $a(L, e, null, t);
      return l.lanes = o, l;
    }
    function yF() {
      var e = $a(O, null, null, We);
      return e.elementType = "DELETED", e;
    }
    function bF(e) {
      var t = $a(ge, null, null, We);
      return t.stateNode = e, t;
    }
    function oS(e, t, o) {
      var l = e.children !== null ? e.children : [], d = $a(A, l, e.key, t);
      return d.lanes = o, d.stateNode = {
        containerInfo: e.containerInfo,
        pendingChildren: null,
        // Used by persistent updates
        implementation: e.implementation
      }, d;
    }
    function dT(e, t) {
      return e === null && (e = $a(w, null, null, We)), e.tag = t.tag, e.key = t.key, e.elementType = t.elementType, e.type = t.type, e.stateNode = t.stateNode, e.return = t.return, e.child = t.child, e.sibling = t.sibling, e.index = t.index, e.ref = t.ref, e.pendingProps = t.pendingProps, e.memoizedProps = t.memoizedProps, e.updateQueue = t.updateQueue, e.memoizedState = t.memoizedState, e.dependencies = t.dependencies, e.mode = t.mode, e.flags = t.flags, e.subtreeFlags = t.subtreeFlags, e.deletions = t.deletions, e.lanes = t.lanes, e.childLanes = t.childLanes, e.alternate = t.alternate, e.actualDuration = t.actualDuration, e.actualStartTime = t.actualStartTime, e.selfBaseDuration = t.selfBaseDuration, e.treeBaseDuration = t.treeBaseDuration, e._debugSource = t._debugSource, e._debugOwner = t._debugOwner, e._debugNeedsRemount = t._debugNeedsRemount, e._debugHookTypes = t._debugHookTypes, e;
    }
    function CF(e, t, o, l, d) {
      this.tag = t, this.containerInfo = e, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = zb, this.context = null, this.pendingContext = null, this.callbackNode = null, this.callbackPriority = In, this.eventTimes = Is(ce), this.expirationTimes = Is(Qt), this.pendingLanes = ce, this.suspendedLanes = ce, this.pingedLanes = ce, this.expiredLanes = ce, this.mutableReadLanes = ce, this.finishedLanes = ce, this.entangledLanes = ce, this.entanglements = Is(ce), this.identifierPrefix = l, this.onRecoverableError = d, this.mutableSourceEagerHydrationData = null, this.effectDuration = 0, this.passiveEffectDuration = 0;
      {
        this.memoizedUpdaters = /* @__PURE__ */ new Set();
        for (var m = this.pendingUpdatersLaneMap = [], b = 0; b < Ss; b++)
          m.push(/* @__PURE__ */ new Set());
      }
      switch (t) {
        case Rg:
          this._debugRootType = o ? "hydrateRoot()" : "createRoot()";
          break;
        case xl:
          this._debugRootType = o ? "hydrate()" : "render()";
          break;
      }
    }
    function pT(e, t, o, l, d, m, b, x, R, D) {
      var k = new CF(e, t, o, x, R), X = vF(t, m);
      k.current = X, X.stateNode = k;
      {
        var U = {
          element: l,
          isDehydrated: o,
          cache: null,
          // not enabled yet
          transitions: null,
          pendingSuspenseBoundaries: null
        };
        X.memoizedState = U;
      }
      return bC(X), k;
    }
    var uS = "18.3.1";
    function SF(e, t, o) {
      var l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
      return Qi(l), {
        // This tag allow us to uniquely identify this as a React Portal
        $$typeof: _a,
        key: l == null ? null : "" + l,
        children: e,
        containerInfo: t,
        implementation: o
      };
    }
    var lS, sS;
    lS = !1, sS = {};
    function vT(e) {
      if (!e)
        return Ya;
      var t = va(e), o = rk(t);
      if (t.tag === E) {
        var l = t.type;
        if (bo(l))
          return zx(t, l, o);
      }
      return o;
    }
    function EF(e, t) {
      {
        var o = va(e);
        if (o === void 0) {
          if (typeof e.render == "function")
            throw new Error("Unable to find node on an unmounted component.");
          var l = Object.keys(e).join(",");
          throw new Error("Argument appears to not be a ReactComponent. Keys: " + l);
        }
        var d = ya(o);
        if (d === null)
          return null;
        if (d.mode & Ct) {
          var m = mt(o) || "Component";
          if (!sS[m]) {
            sS[m] = !0;
            var b = wn;
            try {
              jt(d), o.mode & Ct ? h("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", t, t, m) : h("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", t, t, m);
            } finally {
              b ? jt(b) : Nn();
            }
          }
        }
        return d.stateNode;
      }
    }
    function hT(e, t, o, l, d, m, b, x) {
      var R = !1, D = null;
      return pT(e, t, R, D, o, l, d, m, b);
    }
    function mT(e, t, o, l, d, m, b, x, R, D) {
      var k = !0, X = pT(o, l, k, e, d, m, b, x, R);
      X.context = vT(null);
      var U = X.current, ee = ia(), ne = Ll(U), ie = du(ee, ne);
      return ie.callback = t ?? null, Tl(U, ie, ne), OL(X, ne, ee), X;
    }
    function Uv(e, t, o, l) {
      Sp(t, e);
      var d = t.current, m = ia(), b = Ll(d);
      wp(b);
      var x = vT(o);
      t.context === null ? t.context = x : t.pendingContext = x, fa && wn !== null && !lS && (lS = !0, h(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.

Check the render method of %s.`, mt(wn) || "Unknown"));
      var R = du(m, b);
      R.payload = {
        element: e
      }, l = l === void 0 ? null : l, l !== null && (typeof l != "function" && h("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", l), R.callback = l);
      var D = Tl(d, R, b);
      return D !== null && (lr(D, d, b, m), _g(D, d, b)), b;
    }
    function Oy(e) {
      var t = e.current;
      if (!t.child)
        return null;
      switch (t.child.tag) {
        case O:
          return t.child.stateNode;
        default:
          return t.child.stateNode;
      }
    }
    function xF(e) {
      switch (e.tag) {
        case T: {
          var t = e.stateNode;
          if (bf(t)) {
            var o = Ip(t);
            ML(t, o);
          }
          break;
        }
        case V: {
          mu(function() {
            var d = Aa(e, $e);
            if (d !== null) {
              var m = ia();
              lr(d, e, $e, m);
            }
          });
          var l = $e;
          cS(e, l);
          break;
        }
      }
    }
    function gT(e, t) {
      var o = e.memoizedState;
      o !== null && o.dehydrated !== null && (o.retryLane = Vm(o.retryLane, t));
    }
    function cS(e, t) {
      gT(e, t);
      var o = e.alternate;
      o && gT(o, t);
    }
    function wF(e) {
      if (e.tag === V) {
        var t = xs, o = Aa(e, t);
        if (o !== null) {
          var l = ia();
          lr(o, e, t, l);
        }
        cS(e, t);
      }
    }
    function RF(e) {
      if (e.tag === V) {
        var t = Ll(e), o = Aa(e, t);
        if (o !== null) {
          var l = ia();
          lr(o, e, t, l);
        }
        cS(e, t);
      }
    }
    function yT(e) {
      var t = bm(e);
      return t === null ? null : t.stateNode;
    }
    var bT = function(e) {
      return null;
    };
    function TF(e) {
      return bT(e);
    }
    var CT = function(e) {
      return !1;
    };
    function IF(e) {
      return CT(e);
    }
    var ST = null, ET = null, xT = null, wT = null, RT = null, TT = null, IT = null, AT = null, OT = null;
    {
      var DT = function(e, t, o) {
        var l = t[o], d = Hn(e) ? e.slice() : Et({}, e);
        return o + 1 === t.length ? (Hn(d) ? d.splice(l, 1) : delete d[l], d) : (d[l] = DT(e[l], t, o + 1), d);
      }, NT = function(e, t) {
        return DT(e, t, 0);
      }, kT = function(e, t, o, l) {
        var d = t[l], m = Hn(e) ? e.slice() : Et({}, e);
        if (l + 1 === t.length) {
          var b = o[l];
          m[b] = m[d], Hn(m) ? m.splice(d, 1) : delete m[d];
        } else
          m[d] = kT(
            // $FlowFixMe number or string is fine here
            e[d],
            t,
            o,
            l + 1
          );
        return m;
      }, MT = function(e, t, o) {
        if (t.length !== o.length) {
          p("copyWithRename() expects paths of the same length");
          return;
        } else
          for (var l = 0; l < o.length - 1; l++)
            if (t[l] !== o[l]) {
              p("copyWithRename() expects paths to be the same except for the deepest key");
              return;
            }
        return kT(e, t, o, 0);
      }, LT = function(e, t, o, l) {
        if (o >= t.length)
          return l;
        var d = t[o], m = Hn(e) ? e.slice() : Et({}, e);
        return m[d] = LT(e[d], t, o + 1, l), m;
      }, FT = function(e, t, o) {
        return LT(e, t, 0, o);
      }, fS = function(e, t) {
        for (var o = e.memoizedState; o !== null && t > 0; )
          o = o.next, t--;
        return o;
      };
      ST = function(e, t, o, l) {
        var d = fS(e, t);
        if (d !== null) {
          var m = FT(d.memoizedState, o, l);
          d.memoizedState = m, d.baseState = m, e.memoizedProps = Et({}, e.memoizedProps);
          var b = Aa(e, $e);
          b !== null && lr(b, e, $e, Qt);
        }
      }, ET = function(e, t, o) {
        var l = fS(e, t);
        if (l !== null) {
          var d = NT(l.memoizedState, o);
          l.memoizedState = d, l.baseState = d, e.memoizedProps = Et({}, e.memoizedProps);
          var m = Aa(e, $e);
          m !== null && lr(m, e, $e, Qt);
        }
      }, xT = function(e, t, o, l) {
        var d = fS(e, t);
        if (d !== null) {
          var m = MT(d.memoizedState, o, l);
          d.memoizedState = m, d.baseState = m, e.memoizedProps = Et({}, e.memoizedProps);
          var b = Aa(e, $e);
          b !== null && lr(b, e, $e, Qt);
        }
      }, wT = function(e, t, o) {
        e.pendingProps = FT(e.memoizedProps, t, o), e.alternate && (e.alternate.pendingProps = e.pendingProps);
        var l = Aa(e, $e);
        l !== null && lr(l, e, $e, Qt);
      }, RT = function(e, t) {
        e.pendingProps = NT(e.memoizedProps, t), e.alternate && (e.alternate.pendingProps = e.pendingProps);
        var o = Aa(e, $e);
        o !== null && lr(o, e, $e, Qt);
      }, TT = function(e, t, o) {
        e.pendingProps = MT(e.memoizedProps, t, o), e.alternate && (e.alternate.pendingProps = e.pendingProps);
        var l = Aa(e, $e);
        l !== null && lr(l, e, $e, Qt);
      }, IT = function(e) {
        var t = Aa(e, $e);
        t !== null && lr(t, e, $e, Qt);
      }, AT = function(e) {
        bT = e;
      }, OT = function(e) {
        CT = e;
      };
    }
    function AF(e) {
      var t = ya(e);
      return t === null ? null : t.stateNode;
    }
    function OF(e) {
      return null;
    }
    function DF() {
      return wn;
    }
    function NF(e) {
      var t = e.findFiberByHostInstance, o = u.ReactCurrentDispatcher;
      return Cp({
        bundleType: e.bundleType,
        version: e.version,
        rendererPackageName: e.rendererPackageName,
        rendererConfig: e.rendererConfig,
        overrideHookState: ST,
        overrideHookStateDeletePath: ET,
        overrideHookStateRenamePath: xT,
        overrideProps: wT,
        overridePropsDeletePath: RT,
        overridePropsRenamePath: TT,
        setErrorHandler: AT,
        setSuspenseHandler: OT,
        scheduleUpdate: IT,
        currentDispatcherRef: o,
        findHostInstanceByFiber: AF,
        findFiberByHostInstance: t || OF,
        // React Refresh
        findHostInstancesForRefresh: uF,
        scheduleRefresh: iF,
        scheduleRoot: oF,
        setRefreshHandler: aF,
        // Enables DevTools to append owner stacks to error messages in DEV mode.
        getCurrentFiber: DF,
        // Enables DevTools to detect reconciler version rather than renderer version
        // which may not match for third party renderers.
        reconcilerVersion: uS
      });
    }
    var BT = typeof reportError == "function" ? (
      // In modern browsers, reportError will dispatch an error event,
      // emulating an uncaught JavaScript error.
      reportError
    ) : function(e) {
      console.error(e);
    };
    function dS(e) {
      this._internalRoot = e;
    }
    Dy.prototype.render = dS.prototype.render = function(e) {
      var t = this._internalRoot;
      if (t === null)
        throw new Error("Cannot update an unmounted root.");
      {
        typeof arguments[1] == "function" ? h("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().") : Ny(arguments[1]) ? h("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.") : typeof arguments[1] < "u" && h("You passed a second argument to root.render(...) but it only accepts one argument.");
        var o = t.containerInfo;
        if (o.nodeType !== Rn) {
          var l = yT(t.current);
          l && l.parentNode !== o && h("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.");
        }
      }
      Uv(e, t, null, null);
    }, Dy.prototype.unmount = dS.prototype.unmount = function() {
      typeof arguments[0] == "function" && h("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");
      var e = this._internalRoot;
      if (e !== null) {
        this._internalRoot = null;
        var t = e.containerInfo;
        YR() && h("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."), mu(function() {
          Uv(null, e, null, null);
        }), Bx(t);
      }
    };
    function kF(e, t) {
      if (!Ny(e))
        throw new Error("createRoot(...): Target container is not a DOM element.");
      VT(e);
      var o = !1, l = !1, d = "", m = BT;
      t != null && (t.hydrate ? p("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.") : typeof t == "object" && t !== null && t.$$typeof === Au && h(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:

  let root = createRoot(domContainer);
  root.render(<App />);`), t.unstable_strictMode === !0 && (o = !0), t.identifierPrefix !== void 0 && (d = t.identifierPrefix), t.onRecoverableError !== void 0 && (m = t.onRecoverableError), t.transitionCallbacks !== void 0 && t.transitionCallbacks);
      var b = hT(e, Rg, null, o, l, d, m);
      yg(b.current, e);
      var x = e.nodeType === Rn ? e.parentNode : e;
      return Qp(x), new dS(b);
    }
    function Dy(e) {
      this._internalRoot = e;
    }
    function MF(e) {
      e && vb(e);
    }
    Dy.prototype.unstable_scheduleHydration = MF;
    function LF(e, t, o) {
      if (!Ny(e))
        throw new Error("hydrateRoot(...): Target container is not a DOM element.");
      VT(e), t === void 0 && h("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");
      var l = o ?? null, d = o != null && o.hydratedSources || null, m = !1, b = !1, x = "", R = BT;
      o != null && (o.unstable_strictMode === !0 && (m = !0), o.identifierPrefix !== void 0 && (x = o.identifierPrefix), o.onRecoverableError !== void 0 && (R = o.onRecoverableError));
      var D = mT(t, null, e, Rg, l, m, b, x, R);
      if (yg(D.current, e), Qp(e), d)
        for (var k = 0; k < d.length; k++) {
          var X = d[k];
          Pk(D, X);
        }
      return new Dy(D);
    }
    function Ny(e) {
      return !!(e && (e.nodeType === Nr || e.nodeType === Ua || e.nodeType === Vo || !me));
    }
    function Wv(e) {
      return !!(e && (e.nodeType === Nr || e.nodeType === Ua || e.nodeType === Vo || e.nodeType === Rn && e.nodeValue === " react-mount-point-unstable "));
    }
    function VT(e) {
      e.nodeType === Nr && e.tagName && e.tagName.toUpperCase() === "BODY" && h("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."), uv(e) && (e._reactRootContainer ? h("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : h("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."));
    }
    var FF = u.ReactCurrentOwner, PT;
    PT = function(e) {
      if (e._reactRootContainer && e.nodeType !== Rn) {
        var t = yT(e._reactRootContainer.current);
        t && t.parentNode !== e && h("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.");
      }
      var o = !!e._reactRootContainer, l = pS(e), d = !!(l && Sl(l));
      d && !o && h("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."), e.nodeType === Nr && e.tagName && e.tagName.toUpperCase() === "BODY" && h("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.");
    };
    function pS(e) {
      return e ? e.nodeType === Ua ? e.documentElement : e.firstChild : null;
    }
    function HT() {
    }
    function BF(e, t, o, l, d) {
      if (d) {
        if (typeof l == "function") {
          var m = l;
          l = function() {
            var U = Oy(b);
            m.call(U);
          };
        }
        var b = mT(
          t,
          l,
          e,
          xl,
          null,
          // hydrationCallbacks
          !1,
          // isStrictMode
          !1,
          // concurrentUpdatesByDefaultOverride,
          "",
          // identifierPrefix
          HT
        );
        e._reactRootContainer = b, yg(b.current, e);
        var x = e.nodeType === Rn ? e.parentNode : e;
        return Qp(x), mu(), b;
      } else {
        for (var R; R = e.lastChild; )
          e.removeChild(R);
        if (typeof l == "function") {
          var D = l;
          l = function() {
            var U = Oy(k);
            D.call(U);
          };
        }
        var k = hT(
          e,
          xl,
          null,
          // hydrationCallbacks
          !1,
          // isStrictMode
          !1,
          // concurrentUpdatesByDefaultOverride,
          "",
          // identifierPrefix
          HT
        );
        e._reactRootContainer = k, yg(k.current, e);
        var X = e.nodeType === Rn ? e.parentNode : e;
        return Qp(X), mu(function() {
          Uv(t, k, o, l);
        }), k;
      }
    }
    function VF(e, t) {
      e !== null && typeof e != "function" && h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", t, e);
    }
    function ky(e, t, o, l, d) {
      PT(o), VF(d === void 0 ? null : d, "render");
      var m = o._reactRootContainer, b;
      if (!m)
        b = BF(o, t, e, d, l);
      else {
        if (b = m, typeof d == "function") {
          var x = d;
          d = function() {
            var R = Oy(b);
            x.call(R);
          };
        }
        Uv(t, b, e, d);
      }
      return Oy(b);
    }
    var _T = !1;
    function PF(e) {
      {
        _T || (_T = !0, h("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));
        var t = FF.current;
        if (t !== null && t.stateNode !== null) {
          var o = t.stateNode._warnedAboutRefsInRender;
          o || h("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", _t(t.type) || "A component"), t.stateNode._warnedAboutRefsInRender = !0;
        }
      }
      return e == null ? null : e.nodeType === Nr ? e : EF(e, "findDOMNode");
    }
    function HF(e, t, o) {
      if (h("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wv(t))
        throw new Error("Target container is not a DOM element.");
      {
        var l = uv(t) && t._reactRootContainer === void 0;
        l && h("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?");
      }
      return ky(null, e, t, !0, o);
    }
    function _F(e, t, o) {
      if (h("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wv(t))
        throw new Error("Target container is not a DOM element.");
      {
        var l = uv(t) && t._reactRootContainer === void 0;
        l && h("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?");
      }
      return ky(null, e, t, !1, o);
    }
    function zF(e, t, o, l) {
      if (h("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wv(o))
        throw new Error("Target container is not a DOM element.");
      if (e == null || !vs(e))
        throw new Error("parentComponent must be a valid React Component");
      return ky(e, t, o, !1, l);
    }
    var zT = !1;
    function GF(e) {
      if (zT || (zT = !0, h("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")), !Wv(e))
        throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");
      {
        var t = uv(e) && e._reactRootContainer === void 0;
        t && h("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?");
      }
      if (e._reactRootContainer) {
        {
          var o = pS(e), l = o && !Sl(o);
          l && h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.");
        }
        return mu(function() {
          ky(null, null, e, !1, function() {
            e._reactRootContainer = null, Bx(e);
          });
        }), !0;
      } else {
        {
          var d = pS(e), m = !!(d && Sl(d)), b = e.nodeType === Nr && Wv(e.parentNode) && !!e.parentNode._reactRootContainer;
          m && h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s", b ? "You may have accidentally passed in a React root node instead of its container." : "Instead, have the parent component update its state and rerender in order to remove this component.");
        }
        return !1;
      }
    }
    ul(xF), db(wF), Sf(RF), _m(Ea), zm(vr), (typeof Map != "function" || // $FlowIssue Flow incorrectly thinks Map has no prototype
    Map.prototype == null || typeof Map.prototype.forEach != "function" || typeof Set != "function" || // $FlowIssue Flow incorrectly thinks Set has no prototype
    Set.prototype == null || typeof Set.prototype.clear != "function" || typeof Set.prototype.forEach != "function") && h("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), mm(UN), Vc(U1, LL, mu);
    function jF(e, t) {
      var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
      if (!Ny(t))
        throw new Error("Target container is not a DOM element.");
      return SF(e, t, null, o);
    }
    function UF(e, t, o, l) {
      return zF(e, t, o, l);
    }
    var vS = {
      usingClientEntryPoint: !1,
      // Keep in sync with ReactTestUtils.js.
      // This is an array for better minification.
      Events: [Sl, Uf, bg, Bc, fs, U1]
    };
    function WF(e, t) {
      return vS.usingClientEntryPoint || h('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), kF(e, t);
    }
    function XF(e, t, o) {
      return vS.usingClientEntryPoint || h('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), LF(e, t, o);
    }
    function ZF(e) {
      return YR() && h("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."), mu(e);
    }
    var YF = NF({
      findFiberByHostInstance: zs,
      bundleType: 1,
      version: uS,
      rendererPackageName: "react-dom"
    });
    if (!YF && Tt && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge") === -1 || navigator.userAgent.indexOf("Firefox") > -1)) {
      var GT = window.location.protocol;
      /^(https?|file):$/.test(GT) && console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools" + (GT === "file:" ? `
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq` : ""), "font-weight:bold");
    }
    Ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = vS, Ma.createPortal = jF, Ma.createRoot = WF, Ma.findDOMNode = PF, Ma.flushSync = ZF, Ma.hydrate = HF, Ma.hydrateRoot = XF, Ma.render = _F, Ma.unmountComponentAtNode = GF, Ma.unstable_batchedUpdates = U1, Ma.unstable_renderSubtreeIntoContainer = UF, Ma.version = uS, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
  }()), Ma;
}
function ZA() {
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
    if (true)
      throw new Error("^_^");
    try {
      __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZA);
    } catch (a) {
      console.error(a);
    }
  }
}
 false ? (0) : WS.exports = zB();
var YA = WS.exports;
const yd = /* @__PURE__ */ hh(YA), iI = {
  disabled: !1
};
var GB =  true ? vt.oneOfType([vt.number, vt.shape({
  enter: vt.number,
  exit: vt.number,
  appear: vt.number
}).isRequired]) : 0;
 true && vt.oneOfType([vt.string, vt.shape({
  enter: vt.string,
  exit: vt.string,
  active: vt.string
}), vt.shape({
  enter: vt.string,
  enterDone: vt.string,
  enterActive: vt.string,
  exit: vt.string,
  exitDone: vt.string,
  exitActive: vt.string
})]);
const $A = react__WEBPACK_IMPORTED_MODULE_1___default().createContext(null);
var jB = function(r) {
  return r.scrollTop;
}, qv = "unmounted", Vl = "exited", Yi = "entering", bu = "entered", oh = "exiting", Iu = /* @__PURE__ */ function(a) {
  TB(r, a);
  function r(f, c) {
    var p;
    p = a.call(this, f, c) || this;
    var h = c, C = h && !h.isMounting ? f.enter : f.appear, y;
    return p.appearStatus = null, f.in ? C ? (y = Vl, p.appearStatus = Yi) : y = bu : f.unmountOnExit || f.mountOnEnter ? y = qv : y = Vl, p.state = {
      status: y
    }, p.nextCallback = null, p;
  }
  r.getDerivedStateFromProps = function(c, p) {
    var h = c.in;
    return h && p.status === qv ? {
      status: Vl
    } : null;
  };
  var u = r.prototype;
  return u.componentDidMount = function() {
    this.updateStatus(!0, this.appearStatus);
  }, u.componentDidUpdate = function(c) {
    var p = null;
    if (c !== this.props) {
      var h = this.state.status;
      this.props.in ? h !== Yi && h !== bu && (p = Yi) : (h === Yi || h === bu) && (p = oh);
    }
    this.updateStatus(!1, p);
  }, u.componentWillUnmount = function() {
    this.cancelNextCallback();
  }, u.getTimeouts = function() {
    var c = this.props.timeout, p, h, C;
    return p = h = C = c, c != null && typeof c != "number" && (p = c.exit, h = c.enter, C = c.appear !== void 0 ? c.appear : h), {
      exit: p,
      enter: h,
      appear: C
    };
  }, u.updateStatus = function(c, p) {
    if (c === void 0 && (c = !1), p !== null)
      if (this.cancelNextCallback(), p === Yi) {
        if (this.props.unmountOnExit || this.props.mountOnEnter) {
          var h = this.props.nodeRef ? this.props.nodeRef.current : yd.findDOMNode(this);
          h && jB(h);
        }
        this.performEnter(c);
      } else
        this.performExit();
    else
      this.props.unmountOnExit && this.state.status === Vl && this.setState({
        status: qv
      });
  }, u.performEnter = function(c) {
    var p = this, h = this.props.enter, C = this.context ? this.context.isMounting : c, y = this.props.nodeRef ? [C] : [yd.findDOMNode(this), C], E = y[0], w = y[1], T = this.getTimeouts(), A = C ? T.appear : T.enter;
    if (!c && !h || iI.disabled) {
      this.safeSetState({
        status: bu
      }, function() {
        p.props.onEntered(E);
      });
      return;
    }
    this.props.onEnter(E, w), this.safeSetState({
      status: Yi
    }, function() {
      p.props.onEntering(E, w), p.onTransitionEnd(A, function() {
        p.safeSetState({
          status: bu
        }, function() {
          p.props.onEntered(E, w);
        });
      });
    });
  }, u.performExit = function() {
    var c = this, p = this.props.exit, h = this.getTimeouts(), C = this.props.nodeRef ? void 0 : yd.findDOMNode(this);
    if (!p || iI.disabled) {
      this.safeSetState({
        status: Vl
      }, function() {
        c.props.onExited(C);
      });
      return;
    }
    this.props.onExit(C), this.safeSetState({
      status: oh
    }, function() {
      c.props.onExiting(C), c.onTransitionEnd(h.exit, function() {
        c.safeSetState({
          status: Vl
        }, function() {
          c.props.onExited(C);
        });
      });
    });
  }, u.cancelNextCallback = function() {
    this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
  }, u.safeSetState = function(c, p) {
    p = this.setNextCallback(p), this.setState(c, p);
  }, u.setNextCallback = function(c) {
    var p = this, h = !0;
    return this.nextCallback = function(C) {
      h && (h = !1, p.nextCallback = null, c(C));
    }, this.nextCallback.cancel = function() {
      h = !1;
    }, this.nextCallback;
  }, u.onTransitionEnd = function(c, p) {
    this.setNextCallback(p);
    var h = this.props.nodeRef ? this.props.nodeRef.current : yd.findDOMNode(this), C = c == null && !this.props.addEndListener;
    if (!h || C) {
      setTimeout(this.nextCallback, 0);
      return;
    }
    if (this.props.addEndListener) {
      var y = this.props.nodeRef ? [this.nextCallback] : [h, this.nextCallback], E = y[0], w = y[1];
      this.props.addEndListener(E, w);
    }
    c != null && setTimeout(this.nextCallback, c);
  }, u.render = function() {
    var c = this.state.status;
    if (c === qv)
      return null;
    var p = this.props, h = p.children;
    p.in, p.mountOnEnter, p.unmountOnExit, p.appear, p.enter, p.exit, p.timeout, p.addEndListener, p.onEnter, p.onEntering, p.onEntered, p.onExit, p.onExiting, p.onExited, p.nodeRef;
    var C = bE(p, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
    return (
      // allows for nested Transitions
      /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().createElement($A.Provider, {
        value: null
      }, typeof h == "function" ? h(c, C) : react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(react__WEBPACK_IMPORTED_MODULE_1___default().Children.only(h), C))
    );
  }, r;
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
Iu.contextType = $A;
Iu.propTypes =  true ? {
  /**
   * A React reference to DOM element that need to transition:
   * https://stackoverflow.com/a/51127130/4671932
   *
   *   - When `nodeRef` prop is used, `node` is not passed to callback functions
   *      (e.g. `onEnter`) because user already has direct access to the node.
   *   - When changing `key` prop of `Transition` in a `TransitionGroup` a new
   *     `nodeRef` need to be provided to `Transition` with changed `key` prop
   *     (see
   *     [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
   */
  nodeRef: vt.shape({
    current: typeof Element > "u" ? vt.any : function(a, r, u, f, c, p) {
      var h = a[r];
      return vt.instanceOf(h && "ownerDocument" in h ? h.ownerDocument.defaultView.Element : Element)(a, r, u, f, c, p);
    }
  }),
  /**
   * A `function` child can be used instead of a React element. This function is
   * called with the current transition status (`'entering'`, `'entered'`,
   * `'exiting'`, `'exited'`), which can be used to apply context
   * specific props to a component.
   *
   * ```jsx
   * <Transition in={this.state.in} timeout={150}>
   *   {state => (
   *     <MyComponent className={`fade fade-${state}`} />
   *   )}
   * </Transition>
   * ```
   */
  children: vt.oneOfType([vt.func.isRequired, vt.element.isRequired]).isRequired,
  /**
   * Show the component; triggers the enter or exit states
   */
  in: vt.bool,
  /**
   * By default the child component is mounted immediately along with
   * the parent `Transition` component. If you want to "lazy mount" the component on the
   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
   * mounted, even on "exited", unless you also specify `unmountOnExit`.
   */
  mountOnEnter: vt.bool,
  /**
   * By default the child component stays mounted after it reaches the `'exited'` state.
   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
   */
  unmountOnExit: vt.bool,
  /**
   * By default the child component does not perform the enter transition when
   * it first mounts, regardless of the value of `in`. If you want this
   * behavior, set both `appear` and `in` to `true`.
   *
   * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
   * > only adds an additional enter transition. However, in the
   * > `<CSSTransition>` component that first enter transition does result in
   * > additional `.appear-*` classes, that way you can choose to style it
   * > differently.
   */
  appear: vt.bool,
  /**
   * Enable or disable enter transitions.
   */
  enter: vt.bool,
  /**
   * Enable or disable exit transitions.
   */
  exit: vt.bool,
  /**
   * The duration of the transition, in milliseconds.
   * Required unless `addEndListener` is provided.
   *
   * You may specify a single timeout for all transitions:
   *
   * ```jsx
   * timeout={500}
   * ```
   *
   * or individually:
   *
   * ```jsx
   * timeout={{
   *  appear: 500,
   *  enter: 300,
   *  exit: 500,
   * }}
   * ```
   *
   * - `appear` defaults to the value of `enter`
   * - `enter` defaults to `0`
   * - `exit` defaults to `0`
   *
   * @type {number | { enter?: number, exit?: number, appear?: number }}
   */
  timeout: function(r) {
    var u = GB;
    r.addEndListener || (u = u.isRequired);
    for (var f = arguments.length, c = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
      c[p - 1] = arguments[p];
    return u.apply(void 0, [r].concat(c));
  },
  /**
   * Add a custom transition end trigger. Called with the transitioning
   * DOM node and a `done` callback. Allows for more fine grained transition end
   * logic. Timeouts are still used as a fallback if provided.
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * ```jsx
   * addEndListener={(node, done) => {
   *   // use the css transitionend event to mark the finish of a transition
   *   node.addEventListener('transitionend', done, false);
   * }}
   * ```
   */
  addEndListener: vt.func,
  /**
   * Callback fired before the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEnter: vt.func,
  /**
   * Callback fired after the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * @type Function(node: HtmlElement, isAppearing: bool)
   */
  onEntering: vt.func,
  /**
   * Callback fired after the "entered" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEntered: vt.func,
  /**
   * Callback fired before the "exiting" status is applied.
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExit: vt.func,
  /**
   * Callback fired after the "exiting" status is applied.
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExiting: vt.func,
  /**
   * Callback fired after the "exited" status is applied.
   *
   * **Note**: when `nodeRef` prop is passed, `node` is not passed
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExited: vt.func
} : 0;
function hd() {
}
Iu.defaultProps = {
  in: !1,
  mountOnEnter: !1,
  unmountOnExit: !1,
  appear: !1,
  enter: !0,
  exit: !0,
  onEnter: hd,
  onEntering: hd,
  onEntered: hd,
  onExit: hd,
  onExiting: hd,
  onExited: hd
};
Iu.UNMOUNTED = qv;
Iu.EXITED = Vl;
Iu.ENTERING = Yi;
Iu.ENTERED = bu;
Iu.EXITING = oh;
function x0(a) {
  return a && a.ownerDocument || document;
}
function UB(a) {
  var r = x0(a);
  return r && r.defaultView || window;
}
function WB(a, r) {
  return UB(a).getComputedStyle(a, r);
}
var XB = /([A-Z])/g;
function ZB(a) {
  return a.replace(XB, "-$1").toLowerCase();
}
var YB = /^ms-/;
function Fy(a) {
  return ZB(a).replace(YB, "-ms-");
}
var $B = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
function QB(a) {
  return !!(a && $B.test(a));
}
function Cu(a, r) {
  var u = "", f = "";
  if (typeof r == "string")
    return a.style.getPropertyValue(Fy(r)) || WB(a).getPropertyValue(Fy(r));
  Object.keys(r).forEach(function(c) {
    var p = r[c];
    !p && p !== 0 ? a.style.removeProperty(Fy(c)) : QB(c) ? f += c + "(" + p + ") " : u += Fy(c) + ": " + p + ";";
  }), f && (u += "transform: " + f + ";"), a.style.cssText += ";" + u;
}
const w0 = !!(typeof window < "u" && window.document && window.document.createElement);
var XS = !1, ZS = !1;
try {
  var xS = {
    get passive() {
      return XS = !0;
    },
    get once() {
      return ZS = XS = !0;
    }
  };
  w0 && (window.addEventListener("test", xS, xS), window.removeEventListener("test", xS, !0));
} catch {
}
function QA(a, r, u, f) {
  if (f && typeof f != "boolean" && !ZS) {
    var c = f.once, p = f.capture, h = u;
    !ZS && c && (h = u.__once || function C(y) {
      this.removeEventListener(r, C, p), u.call(this, y);
    }, u.__once = h), a.addEventListener(r, h, XS ? f : p);
  }
  a.addEventListener(r, u, f);
}
function JB(a, r, u, f) {
  var c = f && typeof f != "boolean" ? f.capture : f;
  a.removeEventListener(r, u, c), u.__once && a.removeEventListener(r, u.__once, c);
}
function _l(a, r, u, f) {
  return QA(a, r, u, f), function() {
    JB(a, r, u, f);
  };
}
function qB(a, r, u, f) {
  if (f === void 0 && (f = !0), a) {
    var c = document.createEvent("HTMLEvents");
    c.initEvent(r, u, f), a.dispatchEvent(c);
  }
}
function KB(a) {
  var r = Cu(a, "transitionDuration") || "", u = r.indexOf("ms") === -1 ? 1e3 : 1;
  return parseFloat(r) * u;
}
function eV(a, r, u) {
  u === void 0 && (u = 5);
  var f = !1, c = setTimeout(function() {
    f || qB(a, "transitionend", !0);
  }, r + u), p = _l(a, "transitionend", function() {
    f = !0;
  }, {
    once: !0
  });
  return function() {
    clearTimeout(c), p();
  };
}
function tV(a, r, u, f) {
  u == null && (u = KB(a) || 0);
  var c = eV(a, u, f), p = _l(a, "transitionend", r);
  return function() {
    c(), p();
  };
}
function oI(a, r) {
  const u = Cu(a, r) || "", f = u.indexOf("ms") === -1 ? 1e3 : 1;
  return parseFloat(u) * f;
}
function xE(a, r) {
  const u = oI(a, "transitionDuration"), f = oI(a, "transitionDelay"), c = tV(a, (p) => {
    p.target === a && (c(), r(p));
  }, u + f);
}
function JA(a) {
  a.offsetHeight;
}
const uI = (a) => !a || typeof a == "function" ? a : (r) => {
  a.current = r;
};
function nV(a, r) {
  const u = uI(a), f = uI(r);
  return (c) => {
    u && u(c), f && f(c);
  };
}
function dc(a, r) {
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => nV(a, r), [a, r]);
}
function rV(a) {
  return a && "setState" in a ? yd.findDOMNode(a) : a ?? null;
}
const wE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(({
  onEnter: a,
  onEntering: r,
  onEntered: u,
  onExit: f,
  onExiting: c,
  onExited: p,
  addEndListener: h,
  children: C,
  childRef: y,
  ...E
}, w) => {
  const T = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), A = dc(T, y), O = (j) => {
    A(rV(j));
  }, L = (j) => (B) => {
    j && T.current && j(T.current, B);
  }, M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(a), [a]), N = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(r), [r]), P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(u), [u]), $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(f), [f]), H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(c), [c]), z = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(p), [p]), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(h), [h]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Iu, {
    ref: w,
    ...E,
    onEnter: M,
    onEntered: P,
    onEntering: N,
    onExit: $,
    onExited: z,
    onExiting: H,
    addEndListener: V,
    nodeRef: T,
    children: typeof C == "function" ? (j, B) => (
      // TODO: Types for RTG missing innerProps, so need to cast.
      C(j, {
        ...B,
        ref: O
      })
    ) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(C, {
      ref: O
    })
  });
}), aV = {
  [Yi]: "show",
  [bu]: "show"
}, e0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  children: r,
  transitionClasses: u = {},
  onEnter: f,
  ...c
}, p) => {
  const h = {
    in: !1,
    timeout: 300,
    mountOnEnter: !1,
    unmountOnExit: !1,
    appear: !1,
    ...c
  }, C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((y, E) => {
    JA(y), f == null || f(y, E);
  }, [f]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wE, {
    ref: p,
    addEndListener: xE,
    ...h,
    onEnter: C,
    childRef: r.ref,
    children: (y, E) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, {
      ...E,
      className: Qe("fade", a, r.props.className, aV[y], u[y])
    })
  });
});
e0.displayName = "Fade";
const iV = {
  /** An accessible label indicating the relevant information about the Close Button. */
  "aria-label": vt.string,
  /** A callback fired after the Close Button is clicked. */
  onClick: vt.func,
  /**
   * Render different color variant for the button.
   *
   * Omitting this will render the default dark color.
   */
  variant: vt.oneOf(["white"])
}, R0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  variant: r,
  "aria-label": u = "Close",
  ...f
}, c) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", {
  ref: c,
  type: "button",
  className: Qe("btn-close", r && `btn-close-${r}`, a),
  "aria-label": u,
  ...f
}));
R0.displayName = "CloseButton";
R0.propTypes = iV;
const qA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  const {
    bsPrefix: u,
    show: f = !0,
    closeLabel: c = "Close alert",
    closeVariant: p,
    className: h,
    children: C,
    variant: y = "primary",
    onClose: E,
    dismissible: w,
    transition: T = e0,
    ...A
  } = CE(a, {
    show: "onClose"
  }), O = lt(u, "alert"), L = Pn((P) => {
    E && E(!1, P);
  }), M = T === !0 ? e0 : T, N = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
    role: "alert",
    ...M ? void 0 : A,
    ref: r,
    className: Qe(h, O, y && `${O}-${y}`, w && `${O}-dismissible`),
    children: [w && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(R0, {
      onClick: L,
      "aria-label": c,
      variant: p
    }), C]
  });
  return M ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(M, {
    unmountOnExit: !0,
    ...A,
    ref: void 0,
    in: f,
    children: N
  }) : f ? N : null;
});
qA.displayName = "Alert";
const Gy = Object.assign(qA, {
  Link: WA,
  Heading: GA
}), sc = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  fluid: r = !1,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: u = "div",
  className: f,
  ...c
}, p) => {
  const h = lt(a, "container"), C = typeof r == "string" ? `-${r}` : "-fluid";
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
    ref: p,
    ...c,
    className: Qe(f, r ? `${h}${C}` : h)
  });
});
sc.displayName = "Container";
const RE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: u = "div",
  ...f
}, c) => {
  const p = lt(a, "row"), h = pE(), C = vE(), y = `${p}-cols`, E = [];
  return h.forEach((w) => {
    const T = f[w];
    delete f[w];
    let A;
    T != null && typeof T == "object" ? {
      cols: A
    } = T : A = T;
    const O = w !== C ? `-${w}` : "";
    A != null && E.push(`${y}${O}-${A}`);
  }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
    ref: c,
    ...f,
    className: Qe(r, p, ...E)
  });
});
RE.displayName = "Row";
function oV(a, r = OA, u = DA) {
  const f = [];
  return Object.entries(a).forEach(([c, p]) => {
    p != null && (typeof p == "object" ? r.forEach((h) => {
      const C = p[h];
      if (C != null) {
        const y = h !== u ? `-${h}` : "";
        f.push(`${c}${y}-${C}`);
      }
    }) : f.push(`${c}-${p}`));
  }), f;
}
const Su = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  as: a = "div",
  bsPrefix: r,
  className: u,
  direction: f,
  gap: c,
  ...p
}, h) => {
  r = lt(r, f === "horizontal" ? "hstack" : "vstack");
  const C = pE(), y = vE();
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(a, {
    ...p,
    ref: h,
    className: Qe(u, r, ...oV({
      gap: c
    }, C, y))
  });
});
Su.displayName = "Stack";
const Eu = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  as: a,
  bsPrefix: r,
  variant: u = "primary",
  size: f,
  active: c = !1,
  disabled: p = !1,
  className: h,
  ...C
}, y) => {
  const E = lt(r, "btn"), [w, {
    tagName: T
  }] = SE({
    tagName: a,
    disabled: p,
    ...C
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(T, {
    ...w,
    ...C,
    ref: y,
    disabled: p,
    className: Qe(h, E, c && "active", u && `${E}-${u}`, f && `${E}-${f}`, C.href && p && "disabled")
  });
});
Eu.displayName = "Button";
const TE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  ...f
}, c) => (r = lt(r, "card-body"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
TE.displayName = "CardBody";
const KA = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  ...f
}, c) => (r = lt(r, "card-footer"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
KA.displayName = "CardFooter";
const eO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null);
eO.displayName = "CardHeaderContext";
const tO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: u = "div",
  ...f
}, c) => {
  const p = lt(a, "card-header"), h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    cardHeaderBsPrefix: p
  }), [p]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(eO.Provider, {
    value: h,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
      ref: c,
      ...f,
      className: Qe(r, p)
    })
  });
});
tO.displayName = "CardHeader";
const nO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  ({
    bsPrefix: a,
    className: r,
    variant: u,
    as: f = "img",
    ...c
  }, p) => {
    const h = lt(a, "card-img");
    return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(f, {
      ref: p,
      className: Qe(u ? `${h}-${u}` : h, r),
      ...c
    });
  }
);
nO.displayName = "CardImg";
const rO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  ...f
}, c) => (r = lt(r, "card-img-overlay"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
rO.displayName = "CardImgOverlay";
const aO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "a",
  ...f
}, c) => (r = lt(r, "card-link"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
aO.displayName = "CardLink";
const uV = E0("h6"), iO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = uV,
  ...f
}, c) => (r = lt(r, "card-subtitle"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
iO.displayName = "CardSubtitle";
const oO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "p",
  ...f
}, c) => (r = lt(r, "card-text"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
oO.displayName = "CardText";
const lV = E0("h5"), uO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = lV,
  ...f
}, c) => (r = lt(r, "card-title"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
uO.displayName = "CardTitle";
const lO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  bg: u,
  text: f,
  border: c,
  body: p = !1,
  children: h,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: C = "div",
  ...y
}, E) => {
  const w = lt(a, "card");
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(C, {
    ref: E,
    ...y,
    className: Qe(r, w, u && `bg-${u}`, f && `text-${f}`, c && `border-${c}`),
    children: p ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TE, {
      children: h
    }) : h
  });
});
lO.displayName = "Card";
const rc = Object.assign(lO, {
  Img: nO,
  Title: uO,
  Subtitle: iO,
  Body: TE,
  Link: aO,
  Text: oO,
  Header: tO,
  Footer: KA,
  ImgOverlay: rO
}), IE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  active: a = !1,
  disabled: r = !1,
  className: u,
  style: f,
  activeLabel: c = "(current)",
  children: p,
  linkStyle: h,
  linkClassName: C,
  as: y = mh,
  ...E
}, w) => {
  const T = a || r ? "span" : y;
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("li", {
    ref: w,
    style: f,
    className: Qe(u, "page-item", {
      active: a,
      disabled: r
    }),
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(T, {
      className: Qe("page-link", C),
      style: h,
      ...E,
      children: [p, a && c && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
        className: "visually-hidden",
        children: c
      })]
    })
  });
});
IE.displayName = "PageItem";
const sV = IE;
function gh(a, r, u = a) {
  const f = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
    children: c,
    ...p
  }, h) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(IE, {
    ...p,
    ref: h,
    children: [/* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
      "aria-hidden": "true",
      children: c || r
    }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
      className: "visually-hidden",
      children: u
    })]
  }));
  return f.displayName = a, f;
}
const cV = gh("First", "«"), fV = gh("Prev", "‹", "Previous"), dV = gh("Ellipsis", "…", "More"), pV = gh("Next", "›"), vV = gh("Last", "»"), sO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  size: u,
  ...f
}, c) => {
  const p = lt(a, "pagination");
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("ul", {
    ref: c,
    ...f,
    className: Qe(r, p, u && `${p}-${u}`)
  });
});
sO.displayName = "Pagination";
const By = Object.assign(sO, {
  First: cV,
  Prev: fV,
  Ellipsis: dV,
  Item: sV,
  Next: pV,
  Last: vV
});
var hV = { fieldSeparator: ",", decimalSeparator: ".", quoteStrings: !0, quoteCharacter: '"', showTitle: !1, title: "My Generated Report", filename: "generated", showColumnHeaders: !0, useTextFile: !1, useBom: !0, columnHeaders: [], useKeysAsHeaders: !1, boolDisplay: { true: "TRUE", false: "FALSE" }, replaceUndefinedWith: "" }, mV = `\r
`, gV = "\uFEFF", T0 = (a) => Object.assign({}, hV, a);
class yV extends Error {
  constructor(r) {
    super(r), this.name = "CsvGenerationError";
  }
}
class bV extends Error {
  constructor(r) {
    super(r), this.name = "EmptyHeadersError";
  }
}
class CV extends Error {
  constructor(r) {
    super(r), this.name = "CsvDownloadEnvironmentError";
  }
}
class SV extends Error {
  constructor(r) {
    super(r), this.name = "UnsupportedDataFormatError";
  }
}
var Dd = (a) => a, Ba = (a) => a, nh = Dd, I0 = Dd, wd = Dd, lI = Dd, sI = Dd, EV = function(a, r) {
  return r == '"' && a.indexOf('"') > -1 ? a.replace(/"/g, '""') : a;
}, xV = (a) => lI(typeof a == "object" ? a.key : a), wV = (a) => sI(typeof a == "object" ? a.displayLabel : a), RV = (a, ...r) => r.reduce((u, f) => f(u), a), TV = (a) => (r) => a.useBom ? I0(Ba(r) + gV) : r, IV = (a) => (r) => a.showTitle ? AE(I0(Ba(r) + a.title))(wd("")) : r, AE = (a) => (r) => I0(Ba(a) + Ba(r) + mV), cO = (a) => (r, u) => AV(a)(wd(Ba(r) + Ba(u))), AV = (a) => (r) => Dd(Ba(r) + a.fieldSeparator), OV = (a, r) => (u) => {
  if (!a.showColumnHeaders)
    return u;
  if (r.length < 1)
    throw new bV("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");
  let f = wd("");
  for (let c = 0; c < r.length; c++) {
    const p = wV(r[c]);
    f = cO(a)(f, fO(a, Ba(p)));
  }
  return f = wd(Ba(f).slice(0, -1)), AE(u)(f);
}, DV = (a, r, u) => (f) => {
  let c = f;
  for (var p = 0; p < u.length; p++) {
    let h = wd("");
    for (let C = 0; C < r.length; C++) {
      const y = xV(r[C]), E = u[p][Ba(y)];
      h = cO(a)(h, fO(a, E));
    }
    h = wd(Ba(h).slice(0, -1)), c = AE(c)(h);
  }
  return c;
}, NV = Ba, kV = (a) => +a === a && (!isFinite(a) || !!(a % 1)), MV = (a, r) => {
  if (kV(r)) {
    if (a.decimalSeparator === "locale")
      return nh(r.toLocaleString());
    if (a.decimalSeparator)
      return nh(r.toString().replace(".", a.decimalSeparator));
  }
  return nh(r.toString());
}, jy = (a, r) => {
  let u = r;
  return (a.quoteStrings || a.fieldSeparator && r.indexOf(a.fieldSeparator) > -1 || a.quoteCharacter && r.indexOf(a.quoteCharacter) > -1 || r.indexOf(`
`) > -1 || r.indexOf("\r") > -1) && (u = a.quoteCharacter + EV(r, a.quoteCharacter) + a.quoteCharacter), nh(u);
}, LV = (a, r) => {
  const u = r ? "true" : "false";
  return nh(a.boolDisplay[u]);
}, FV = (a, r) => typeof r > "u" && a.replaceUndefinedWith !== void 0 ? jy(a, a.replaceUndefinedWith + "") : r === null ? jy(a, "null") : jy(a, ""), fO = (a, r) => {
  if (typeof r == "number")
    return MV(a, r);
  if (typeof r == "string")
    return jy(a, r);
  if (typeof r == "boolean" && a.boolDisplay)
    return LV(a, r);
  if (r === null || typeof r > "u")
    return FV(a, r);
  throw new SV(`
    typeof ${typeof r} isn't supported. Only number, string, boolean, null and undefined are supported.
    Please convert the data in your object to one of those before generating the CSV.
    `);
}, BV = (a) => (r) => {
  const u = T0(a), f = u.useKeysAsHeaders ? Object.keys(r[0]) : u.columnHeaders;
  let c = RV(I0(""), TV(u), IV(u), OV(u, f), DV(u, f, r));
  if (Ba(c).length < 1)
    throw new yV("Output is empty. Is your data formatted correctly?");
  return c;
}, VV = (a) => (r) => {
  const u = T0(a), f = Ba(r), c = u.useTextFile ? "plain" : "csv";
  return new Blob([f], { type: `text/${c};charset=utf8;` });
}, PV = (a) => (r) => {
  if (!window)
    throw new CV("Downloading only supported in a browser environment.");
  const u = VV(a)(r), f = T0(a), c = f.useTextFile ? "txt" : "csv", p = `${f.filename}.${c}`, h = document.createElement("a");
  h.download = p, h.href = URL.createObjectURL(u), h.setAttribute("visibility", "hidden"), document.body.appendChild(h), h.click(), document.body.removeChild(h);
};
class yh {
  constructor() {
    this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
  }
  subscribe(r) {
    const u = {
      listener: r
    };
    return this.listeners.add(u), this.onSubscribe(), () => {
      this.listeners.delete(u), this.onUnsubscribe();
    };
  }
  hasListeners() {
    return this.listeners.size > 0;
  }
  onSubscribe() {
  }
  onUnsubscribe() {
  }
}
const uh = typeof window > "u" || "Deno" in window;
function gi() {
}
function HV(a, r) {
  return typeof a == "function" ? a(r) : a;
}
function YS(a) {
  return typeof a == "number" && a >= 0 && a !== 1 / 0;
}
function dO(a, r) {
  return Math.max(a + (r || 0) - Date.now(), 0);
}
function Kv(a, r, u) {
  return A0(a) ? typeof r == "function" ? {
    ...u,
    queryKey: a,
    queryFn: r
  } : {
    ...r,
    queryKey: a
  } : a;
}
function Pl(a, r, u) {
  return A0(a) ? [{
    ...r,
    queryKey: a
  }, u] : [a || {}, r];
}
function cI(a, r) {
  const {
    type: u = "all",
    exact: f,
    fetchStatus: c,
    predicate: p,
    queryKey: h,
    stale: C
  } = a;
  if (A0(h)) {
    if (f) {
      if (r.queryHash !== OE(h, r.options))
        return !1;
    } else if (!bd(r.queryKey, h))
      return !1;
  }
  if (u !== "all") {
    const y = r.isActive();
    if (u === "active" && !y || u === "inactive" && y)
      return !1;
  }
  return !(typeof C == "boolean" && r.isStale() !== C || typeof c < "u" && c !== r.state.fetchStatus || p && !p(r));
}
function fI(a, r) {
  const {
    exact: u,
    fetching: f,
    predicate: c,
    mutationKey: p
  } = a;
  if (A0(p)) {
    if (!r.options.mutationKey)
      return !1;
    if (u) {
      if (ac(r.options.mutationKey) !== ac(p))
        return !1;
    } else if (!bd(r.options.mutationKey, p))
      return !1;
  }
  return !(typeof f == "boolean" && r.state.status === "loading" !== f || c && !c(r));
}
function OE(a, r) {
  return ((r == null ? void 0 : r.queryKeyHashFn) || ac)(a);
}
function ac(a) {
  return JSON.stringify(a, (r, u) => QS(u) ? Object.keys(u).sort().reduce((f, c) => (f[c] = u[c], f), {}) : u);
}
function bd(a, r) {
  return pO(a, r);
}
function pO(a, r) {
  return a === r ? !0 : typeof a != typeof r ? !1 : a && r && typeof a == "object" && typeof r == "object" ? !Object.keys(r).some((u) => !pO(a[u], r[u])) : !1;
}
function vO(a, r) {
  if (a === r)
    return a;
  const u = dI(a) && dI(r);
  if (u || QS(a) && QS(r)) {
    const f = u ? a.length : Object.keys(a).length, c = u ? r : Object.keys(r), p = c.length, h = u ? [] : {};
    let C = 0;
    for (let y = 0; y < p; y++) {
      const E = u ? y : c[y];
      h[E] = vO(a[E], r[E]), h[E] === a[E] && C++;
    }
    return f === p && C === f ? a : h;
  }
  return r;
}
function $S(a, r) {
  if (a && !r || r && !a)
    return !1;
  for (const u in a)
    if (a[u] !== r[u])
      return !1;
  return !0;
}
function dI(a) {
  return Array.isArray(a) && a.length === Object.keys(a).length;
}
function QS(a) {
  if (!pI(a))
    return !1;
  const r = a.constructor;
  if (typeof r > "u")
    return !0;
  const u = r.prototype;
  return !(!pI(u) || !u.hasOwnProperty("isPrototypeOf"));
}
function pI(a) {
  return Object.prototype.toString.call(a) === "[object Object]";
}
function A0(a) {
  return Array.isArray(a);
}
function hO(a) {
  return new Promise((r) => {
    setTimeout(r, a);
  });
}
function vI(a) {
  hO(0).then(a);
}
function _V() {
  if (typeof AbortController == "function")
    return new AbortController();
}
function JS(a, r, u) {
  return u.isDataEqual != null && u.isDataEqual(a, r) ? a : typeof u.structuralSharing == "function" ? u.structuralSharing(a, r) : u.structuralSharing !== !1 ? vO(a, r) : r;
}
class zV extends yh {
  constructor() {
    super(), this.setup = (r) => {
      if (!uh && window.addEventListener) {
        const u = () => r();
        return window.addEventListener("visibilitychange", u, !1), window.addEventListener("focus", u, !1), () => {
          window.removeEventListener("visibilitychange", u), window.removeEventListener("focus", u);
        };
      }
    };
  }
  onSubscribe() {
    this.cleanup || this.setEventListener(this.setup);
  }
  onUnsubscribe() {
    if (!this.hasListeners()) {
      var r;
      (r = this.cleanup) == null || r.call(this), this.cleanup = void 0;
    }
  }
  setEventListener(r) {
    var u;
    this.setup = r, (u = this.cleanup) == null || u.call(this), this.cleanup = r((f) => {
      typeof f == "boolean" ? this.setFocused(f) : this.onFocus();
    });
  }
  setFocused(r) {
    this.focused !== r && (this.focused = r, this.onFocus());
  }
  onFocus() {
    this.listeners.forEach(({
      listener: r
    }) => {
      r();
    });
  }
  isFocused() {
    return typeof this.focused == "boolean" ? this.focused : typeof document > "u" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
  }
}
const t0 = new zV(), hI = ["online", "offline"];
class GV extends yh {
  constructor() {
    super(), this.setup = (r) => {
      if (!uh && window.addEventListener) {
        const u = () => r();
        return hI.forEach((f) => {
          window.addEventListener(f, u, !1);
        }), () => {
          hI.forEach((f) => {
            window.removeEventListener(f, u);
          });
        };
      }
    };
  }
  onSubscribe() {
    this.cleanup || this.setEventListener(this.setup);
  }
  onUnsubscribe() {
    if (!this.hasListeners()) {
      var r;
      (r = this.cleanup) == null || r.call(this), this.cleanup = void 0;
    }
  }
  setEventListener(r) {
    var u;
    this.setup = r, (u = this.cleanup) == null || u.call(this), this.cleanup = r((f) => {
      typeof f == "boolean" ? this.setOnline(f) : this.onOnline();
    });
  }
  setOnline(r) {
    this.online !== r && (this.online = r, this.onOnline());
  }
  onOnline() {
    this.listeners.forEach(({
      listener: r
    }) => {
      r();
    });
  }
  isOnline() {
    return typeof this.online == "boolean" ? this.online : typeof navigator > "u" || typeof navigator.onLine > "u" ? !0 : navigator.onLine;
  }
}
const n0 = new GV();
function jV(a) {
  return Math.min(1e3 * 2 ** a, 3e4);
}
function O0(a) {
  return (a ?? "online") === "online" ? n0.isOnline() : !0;
}
class mO {
  constructor(r) {
    this.revert = r == null ? void 0 : r.revert, this.silent = r == null ? void 0 : r.silent;
  }
}
function Uy(a) {
  return a instanceof mO;
}
function gO(a) {
  let r = !1, u = 0, f = !1, c, p, h;
  const C = new Promise((N, P) => {
    p = N, h = P;
  }), y = (N) => {
    f || (O(new mO(N)), a.abort == null || a.abort());
  }, E = () => {
    r = !0;
  }, w = () => {
    r = !1;
  }, T = () => !t0.isFocused() || a.networkMode !== "always" && !n0.isOnline(), A = (N) => {
    f || (f = !0, a.onSuccess == null || a.onSuccess(N), c == null || c(), p(N));
  }, O = (N) => {
    f || (f = !0, a.onError == null || a.onError(N), c == null || c(), h(N));
  }, L = () => new Promise((N) => {
    c = (P) => {
      const $ = f || !T();
      return $ && N(P), $;
    }, a.onPause == null || a.onPause();
  }).then(() => {
    c = void 0, f || a.onContinue == null || a.onContinue();
  }), M = () => {
    if (f)
      return;
    let N;
    try {
      N = a.fn();
    } catch (P) {
      N = Promise.reject(P);
    }
    Promise.resolve(N).then(A).catch((P) => {
      var $, H;
      if (f)
        return;
      const z = ($ = a.retry) != null ? $ : 3, V = (H = a.retryDelay) != null ? H : jV, j = typeof V == "function" ? V(u, P) : V, B = z === !0 || typeof z == "number" && u < z || typeof z == "function" && z(u, P);
      if (r || !B) {
        O(P);
        return;
      }
      u++, a.onFail == null || a.onFail(u, P), hO(j).then(() => {
        if (T())
          return L();
      }).then(() => {
        r ? O(P) : M();
      });
    });
  };
  return O0(a.networkMode) ? M() : L().then(M), {
    promise: C,
    cancel: y,
    continue: () => (c == null ? void 0 : c()) ? C : Promise.resolve(),
    cancelRetry: E,
    continueRetry: w
  };
}
const DE = console;
function UV() {
  let a = [], r = 0, u = (w) => {
    w();
  }, f = (w) => {
    w();
  };
  const c = (w) => {
    let T;
    r++;
    try {
      T = w();
    } finally {
      r--, r || C();
    }
    return T;
  }, p = (w) => {
    r ? a.push(w) : vI(() => {
      u(w);
    });
  }, h = (w) => (...T) => {
    p(() => {
      w(...T);
    });
  }, C = () => {
    const w = a;
    a = [], w.length && vI(() => {
      f(() => {
        w.forEach((T) => {
          u(T);
        });
      });
    });
  };
  return {
    batch: c,
    batchCalls: h,
    schedule: p,
    setNotifyFunction: (w) => {
      u = w;
    },
    setBatchNotifyFunction: (w) => {
      f = w;
    }
  };
}
const Xn = UV();
class yO {
  destroy() {
    this.clearGcTimeout();
  }
  scheduleGc() {
    this.clearGcTimeout(), YS(this.cacheTime) && (this.gcTimeout = setTimeout(() => {
      this.optionalRemove();
    }, this.cacheTime));
  }
  updateCacheTime(r) {
    this.cacheTime = Math.max(this.cacheTime || 0, r ?? (uh ? 1 / 0 : 5 * 60 * 1e3));
  }
  clearGcTimeout() {
    this.gcTimeout && (clearTimeout(this.gcTimeout), this.gcTimeout = void 0);
  }
}
class WV extends yO {
  constructor(r) {
    super(), this.abortSignalConsumed = !1, this.defaultOptions = r.defaultOptions, this.setOptions(r.options), this.observers = [], this.cache = r.cache, this.logger = r.logger || DE, this.queryKey = r.queryKey, this.queryHash = r.queryHash, this.initialState = r.state || XV(this.options), this.state = this.initialState, this.scheduleGc();
  }
  get meta() {
    return this.options.meta;
  }
  setOptions(r) {
    this.options = {
      ...this.defaultOptions,
      ...r
    }, this.updateCacheTime(this.options.cacheTime);
  }
  optionalRemove() {
    !this.observers.length && this.state.fetchStatus === "idle" && this.cache.remove(this);
  }
  setData(r, u) {
    const f = JS(this.state.data, r, this.options);
    return this.dispatch({
      data: f,
      type: "success",
      dataUpdatedAt: u == null ? void 0 : u.updatedAt,
      manual: u == null ? void 0 : u.manual
    }), f;
  }
  setState(r, u) {
    this.dispatch({
      type: "setState",
      state: r,
      setStateOptions: u
    });
  }
  cancel(r) {
    var u;
    const f = this.promise;
    return (u = this.retryer) == null || u.cancel(r), f ? f.then(gi).catch(gi) : Promise.resolve();
  }
  destroy() {
    super.destroy(), this.cancel({
      silent: !0
    });
  }
  reset() {
    this.destroy(), this.setState(this.initialState);
  }
  isActive() {
    return this.observers.some((r) => r.options.enabled !== !1);
  }
  isDisabled() {
    return this.getObserversCount() > 0 && !this.isActive();
  }
  isStale() {
    return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some((r) => r.getCurrentResult().isStale);
  }
  isStaleByTime(r = 0) {
    return this.state.isInvalidated || !this.state.dataUpdatedAt || !dO(this.state.dataUpdatedAt, r);
  }
  onFocus() {
    var r;
    const u = this.observers.find((f) => f.shouldFetchOnWindowFocus());
    u && u.refetch({
      cancelRefetch: !1
    }), (r = this.retryer) == null || r.continue();
  }
  onOnline() {
    var r;
    const u = this.observers.find((f) => f.shouldFetchOnReconnect());
    u && u.refetch({
      cancelRefetch: !1
    }), (r = this.retryer) == null || r.continue();
  }
  addObserver(r) {
    this.observers.includes(r) || (this.observers.push(r), this.clearGcTimeout(), this.cache.notify({
      type: "observerAdded",
      query: this,
      observer: r
    }));
  }
  removeObserver(r) {
    this.observers.includes(r) && (this.observers = this.observers.filter((u) => u !== r), this.observers.length || (this.retryer && (this.abortSignalConsumed ? this.retryer.cancel({
      revert: !0
    }) : this.retryer.cancelRetry()), this.scheduleGc()), this.cache.notify({
      type: "observerRemoved",
      query: this,
      observer: r
    }));
  }
  getObserversCount() {
    return this.observers.length;
  }
  invalidate() {
    this.state.isInvalidated || this.dispatch({
      type: "invalidate"
    });
  }
  fetch(r, u) {
    var f, c;
    if (this.state.fetchStatus !== "idle") {
      if (this.state.dataUpdatedAt && u != null && u.cancelRefetch)
        this.cancel({
          silent: !0
        });
      else if (this.promise) {
        var p;
        return (p = this.retryer) == null || p.continueRetry(), this.promise;
      }
    }
    if (r && this.setOptions(r), !this.options.queryFn) {
      const O = this.observers.find((L) => L.options.queryFn);
      O && this.setOptions(O.options);
    }
     true && (Array.isArray(this.options.queryKey) || this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
    const h = _V(), C = {
      queryKey: this.queryKey,
      pageParam: void 0,
      meta: this.meta
    }, y = (O) => {
      Object.defineProperty(O, "signal", {
        enumerable: !0,
        get: () => {
          if (h)
            return this.abortSignalConsumed = !0, h.signal;
        }
      });
    };
    y(C);
    const E = () => this.options.queryFn ? (this.abortSignalConsumed = !1, this.options.queryFn(C)) : Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'"), w = {
      fetchOptions: u,
      options: this.options,
      queryKey: this.queryKey,
      state: this.state,
      fetchFn: E
    };
    if (y(w), (f = this.options.behavior) == null || f.onFetch(w), this.revertState = this.state, this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = w.fetchOptions) == null ? void 0 : c.meta)) {
      var T;
      this.dispatch({
        type: "fetch",
        meta: (T = w.fetchOptions) == null ? void 0 : T.meta
      });
    }
    const A = (O) => {
      if (Uy(O) && O.silent || this.dispatch({
        type: "error",
        error: O
      }), !Uy(O)) {
        var L, M, N, P;
        (L = (M = this.cache.config).onError) == null || L.call(M, O, this), (N = (P = this.cache.config).onSettled) == null || N.call(P, this.state.data, O, this),  true && this.logger.error(O);
      }
      this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
    };
    return this.retryer = gO({
      fn: w.fetchFn,
      abort: h == null ? void 0 : h.abort.bind(h),
      onSuccess: (O) => {
        var L, M, N, P;
        if (typeof O > "u") {
           true && this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: " + this.queryHash), A(new Error(this.queryHash + " data is undefined"));
          return;
        }
        this.setData(O), (L = (M = this.cache.config).onSuccess) == null || L.call(M, O, this), (N = (P = this.cache.config).onSettled) == null || N.call(P, O, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
      },
      onError: A,
      onFail: (O, L) => {
        this.dispatch({
          type: "failed",
          failureCount: O,
          error: L
        });
      },
      onPause: () => {
        this.dispatch({
          type: "pause"
        });
      },
      onContinue: () => {
        this.dispatch({
          type: "continue"
        });
      },
      retry: w.options.retry,
      retryDelay: w.options.retryDelay,
      networkMode: w.options.networkMode
    }), this.promise = this.retryer.promise, this.promise;
  }
  dispatch(r) {
    const u = (f) => {
      var c, p;
      switch (r.type) {
        case "failed":
          return {
            ...f,
            fetchFailureCount: r.failureCount,
            fetchFailureReason: r.error
          };
        case "pause":
          return {
            ...f,
            fetchStatus: "paused"
          };
        case "continue":
          return {
            ...f,
            fetchStatus: "fetching"
          };
        case "fetch":
          return {
            ...f,
            fetchFailureCount: 0,
            fetchFailureReason: null,
            fetchMeta: (c = r.meta) != null ? c : null,
            fetchStatus: O0(this.options.networkMode) ? "fetching" : "paused",
            ...!f.dataUpdatedAt && {
              error: null,
              status: "loading"
            }
          };
        case "success":
          return {
            ...f,
            data: r.data,
            dataUpdateCount: f.dataUpdateCount + 1,
            dataUpdatedAt: (p = r.dataUpdatedAt) != null ? p : Date.now(),
            error: null,
            isInvalidated: !1,
            status: "success",
            ...!r.manual && {
              fetchStatus: "idle",
              fetchFailureCount: 0,
              fetchFailureReason: null
            }
          };
        case "error":
          const h = r.error;
          return Uy(h) && h.revert && this.revertState ? {
            ...this.revertState,
            fetchStatus: "idle"
          } : {
            ...f,
            error: h,
            errorUpdateCount: f.errorUpdateCount + 1,
            errorUpdatedAt: Date.now(),
            fetchFailureCount: f.fetchFailureCount + 1,
            fetchFailureReason: h,
            fetchStatus: "idle",
            status: "error"
          };
        case "invalidate":
          return {
            ...f,
            isInvalidated: !0
          };
        case "setState":
          return {
            ...f,
            ...r.state
          };
      }
    };
    this.state = u(this.state), Xn.batch(() => {
      this.observers.forEach((f) => {
        f.onQueryUpdate(r);
      }), this.cache.notify({
        query: this,
        type: "updated",
        action: r
      });
    });
  }
}
function XV(a) {
  const r = typeof a.initialData == "function" ? a.initialData() : a.initialData, u = typeof r < "u", f = u ? typeof a.initialDataUpdatedAt == "function" ? a.initialDataUpdatedAt() : a.initialDataUpdatedAt : 0;
  return {
    data: r,
    dataUpdateCount: 0,
    dataUpdatedAt: u ? f ?? Date.now() : 0,
    error: null,
    errorUpdateCount: 0,
    errorUpdatedAt: 0,
    fetchFailureCount: 0,
    fetchFailureReason: null,
    fetchMeta: null,
    isInvalidated: !1,
    status: u ? "success" : "loading",
    fetchStatus: "idle"
  };
}
class ZV extends yh {
  constructor(r) {
    super(), this.config = r || {}, this.queries = [], this.queriesMap = {};
  }
  build(r, u, f) {
    var c;
    const p = u.queryKey, h = (c = u.queryHash) != null ? c : OE(p, u);
    let C = this.get(h);
    return C || (C = new WV({
      cache: this,
      logger: r.getLogger(),
      queryKey: p,
      queryHash: h,
      options: r.defaultQueryOptions(u),
      state: f,
      defaultOptions: r.getQueryDefaults(p)
    }), this.add(C)), C;
  }
  add(r) {
    this.queriesMap[r.queryHash] || (this.queriesMap[r.queryHash] = r, this.queries.push(r), this.notify({
      type: "added",
      query: r
    }));
  }
  remove(r) {
    const u = this.queriesMap[r.queryHash];
    u && (r.destroy(), this.queries = this.queries.filter((f) => f !== r), u === r && delete this.queriesMap[r.queryHash], this.notify({
      type: "removed",
      query: r
    }));
  }
  clear() {
    Xn.batch(() => {
      this.queries.forEach((r) => {
        this.remove(r);
      });
    });
  }
  get(r) {
    return this.queriesMap[r];
  }
  getAll() {
    return this.queries;
  }
  find(r, u) {
    const [f] = Pl(r, u);
    return typeof f.exact > "u" && (f.exact = !0), this.queries.find((c) => cI(f, c));
  }
  findAll(r, u) {
    const [f] = Pl(r, u);
    return Object.keys(f).length > 0 ? this.queries.filter((c) => cI(f, c)) : this.queries;
  }
  notify(r) {
    Xn.batch(() => {
      this.listeners.forEach(({
        listener: u
      }) => {
        u(r);
      });
    });
  }
  onFocus() {
    Xn.batch(() => {
      this.queries.forEach((r) => {
        r.onFocus();
      });
    });
  }
  onOnline() {
    Xn.batch(() => {
      this.queries.forEach((r) => {
        r.onOnline();
      });
    });
  }
}
class YV extends yO {
  constructor(r) {
    super(), this.defaultOptions = r.defaultOptions, this.mutationId = r.mutationId, this.mutationCache = r.mutationCache, this.logger = r.logger || DE, this.observers = [], this.state = r.state || $V(), this.setOptions(r.options), this.scheduleGc();
  }
  setOptions(r) {
    this.options = {
      ...this.defaultOptions,
      ...r
    }, this.updateCacheTime(this.options.cacheTime);
  }
  get meta() {
    return this.options.meta;
  }
  setState(r) {
    this.dispatch({
      type: "setState",
      state: r
    });
  }
  addObserver(r) {
    this.observers.includes(r) || (this.observers.push(r), this.clearGcTimeout(), this.mutationCache.notify({
      type: "observerAdded",
      mutation: this,
      observer: r
    }));
  }
  removeObserver(r) {
    this.observers = this.observers.filter((u) => u !== r), this.scheduleGc(), this.mutationCache.notify({
      type: "observerRemoved",
      mutation: this,
      observer: r
    });
  }
  optionalRemove() {
    this.observers.length || (this.state.status === "loading" ? this.scheduleGc() : this.mutationCache.remove(this));
  }
  continue() {
    var r, u;
    return (r = (u = this.retryer) == null ? void 0 : u.continue()) != null ? r : this.execute();
  }
  async execute() {
    const r = () => {
      var B;
      return this.retryer = gO({
        fn: () => this.options.mutationFn ? this.options.mutationFn(this.state.variables) : Promise.reject("No mutationFn found"),
        onFail: (G, ae) => {
          this.dispatch({
            type: "failed",
            failureCount: G,
            error: ae
          });
        },
        onPause: () => {
          this.dispatch({
            type: "pause"
          });
        },
        onContinue: () => {
          this.dispatch({
            type: "continue"
          });
        },
        retry: (B = this.options.retry) != null ? B : 0,
        retryDelay: this.options.retryDelay,
        networkMode: this.options.networkMode
      }), this.retryer.promise;
    }, u = this.state.status === "loading";
    try {
      var f, c, p, h, C, y, E, w;
      if (!u) {
        var T, A, O, L;
        this.dispatch({
          type: "loading",
          variables: this.options.variables
        }), await ((T = (A = this.mutationCache.config).onMutate) == null ? void 0 : T.call(A, this.state.variables, this));
        const G = await ((O = (L = this.options).onMutate) == null ? void 0 : O.call(L, this.state.variables));
        G !== this.state.context && this.dispatch({
          type: "loading",
          context: G,
          variables: this.state.variables
        });
      }
      const B = await r();
      return await ((f = (c = this.mutationCache.config).onSuccess) == null ? void 0 : f.call(c, B, this.state.variables, this.state.context, this)), await ((p = (h = this.options).onSuccess) == null ? void 0 : p.call(h, B, this.state.variables, this.state.context)), await ((C = (y = this.mutationCache.config).onSettled) == null ? void 0 : C.call(y, B, null, this.state.variables, this.state.context, this)), await ((E = (w = this.options).onSettled) == null ? void 0 : E.call(w, B, null, this.state.variables, this.state.context)), this.dispatch({
        type: "success",
        data: B
      }), B;
    } catch (B) {
      try {
        var M, N, P, $, H, z, V, j;
        throw await ((M = (N = this.mutationCache.config).onError) == null ? void 0 : M.call(N, B, this.state.variables, this.state.context, this)),  true && this.logger.error(B), await ((P = ($ = this.options).onError) == null ? void 0 : P.call($, B, this.state.variables, this.state.context)), await ((H = (z = this.mutationCache.config).onSettled) == null ? void 0 : H.call(z, void 0, B, this.state.variables, this.state.context, this)), await ((V = (j = this.options).onSettled) == null ? void 0 : V.call(j, void 0, B, this.state.variables, this.state.context)), B;
      } finally {
        this.dispatch({
          type: "error",
          error: B
        });
      }
    }
  }
  dispatch(r) {
    const u = (f) => {
      switch (r.type) {
        case "failed":
          return {
            ...f,
            failureCount: r.failureCount,
            failureReason: r.error
          };
        case "pause":
          return {
            ...f,
            isPaused: !0
          };
        case "continue":
          return {
            ...f,
            isPaused: !1
          };
        case "loading":
          return {
            ...f,
            context: r.context,
            data: void 0,
            failureCount: 0,
            failureReason: null,
            error: null,
            isPaused: !O0(this.options.networkMode),
            status: "loading",
            variables: r.variables
          };
        case "success":
          return {
            ...f,
            data: r.data,
            failureCount: 0,
            failureReason: null,
            error: null,
            status: "success",
            isPaused: !1
          };
        case "error":
          return {
            ...f,
            data: void 0,
            error: r.error,
            failureCount: f.failureCount + 1,
            failureReason: r.error,
            isPaused: !1,
            status: "error"
          };
        case "setState":
          return {
            ...f,
            ...r.state
          };
      }
    };
    this.state = u(this.state), Xn.batch(() => {
      this.observers.forEach((f) => {
        f.onMutationUpdate(r);
      }), this.mutationCache.notify({
        mutation: this,
        type: "updated",
        action: r
      });
    });
  }
}
function $V() {
  return {
    context: void 0,
    data: void 0,
    error: null,
    failureCount: 0,
    failureReason: null,
    isPaused: !1,
    status: "idle",
    variables: void 0
  };
}
class QV extends yh {
  constructor(r) {
    super(), this.config = r || {}, this.mutations = [], this.mutationId = 0;
  }
  build(r, u, f) {
    const c = new YV({
      mutationCache: this,
      logger: r.getLogger(),
      mutationId: ++this.mutationId,
      options: r.defaultMutationOptions(u),
      state: f,
      defaultOptions: u.mutationKey ? r.getMutationDefaults(u.mutationKey) : void 0
    });
    return this.add(c), c;
  }
  add(r) {
    this.mutations.push(r), this.notify({
      type: "added",
      mutation: r
    });
  }
  remove(r) {
    this.mutations = this.mutations.filter((u) => u !== r), this.notify({
      type: "removed",
      mutation: r
    });
  }
  clear() {
    Xn.batch(() => {
      this.mutations.forEach((r) => {
        this.remove(r);
      });
    });
  }
  getAll() {
    return this.mutations;
  }
  find(r) {
    return typeof r.exact > "u" && (r.exact = !0), this.mutations.find((u) => fI(r, u));
  }
  findAll(r) {
    return this.mutations.filter((u) => fI(r, u));
  }
  notify(r) {
    Xn.batch(() => {
      this.listeners.forEach(({
        listener: u
      }) => {
        u(r);
      });
    });
  }
  resumePausedMutations() {
    var r;
    return this.resuming = ((r = this.resuming) != null ? r : Promise.resolve()).then(() => {
      const u = this.mutations.filter((f) => f.state.isPaused);
      return Xn.batch(() => u.reduce((f, c) => f.then(() => c.continue().catch(gi)), Promise.resolve()));
    }).then(() => {
      this.resuming = void 0;
    }), this.resuming;
  }
}
function JV() {
  return {
    onFetch: (a) => {
      a.fetchFn = () => {
        var r, u, f, c, p, h;
        const C = (r = a.fetchOptions) == null || (u = r.meta) == null ? void 0 : u.refetchPage, y = (f = a.fetchOptions) == null || (c = f.meta) == null ? void 0 : c.fetchMore, E = y == null ? void 0 : y.pageParam, w = (y == null ? void 0 : y.direction) === "forward", T = (y == null ? void 0 : y.direction) === "backward", A = ((p = a.state.data) == null ? void 0 : p.pages) || [], O = ((h = a.state.data) == null ? void 0 : h.pageParams) || [];
        let L = O, M = !1;
        const N = (j) => {
          Object.defineProperty(j, "signal", {
            enumerable: !0,
            get: () => {
              var B;
              if ((B = a.signal) != null && B.aborted)
                M = !0;
              else {
                var G;
                (G = a.signal) == null || G.addEventListener("abort", () => {
                  M = !0;
                });
              }
              return a.signal;
            }
          });
        }, P = a.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + a.options.queryHash + "'")), $ = (j, B, G, ae) => (L = ae ? [B, ...L] : [...L, B], ae ? [G, ...j] : [...j, G]), H = (j, B, G, ae) => {
          if (M)
            return Promise.reject("Cancelled");
          if (typeof G > "u" && !B && j.length)
            return Promise.resolve(j);
          const ge = {
            queryKey: a.queryKey,
            pageParam: G,
            meta: a.options.meta
          };
          N(ge);
          const de = P(ge);
          return Promise.resolve(de).then((ye) => $(j, G, ye, ae));
        };
        let z;
        if (!A.length)
          z = H([]);
        else if (w) {
          const j = typeof E < "u", B = j ? E : mI(a.options, A);
          z = H(A, j, B);
        } else if (T) {
          const j = typeof E < "u", B = j ? E : qV(a.options, A);
          z = H(A, j, B, !0);
        } else {
          L = [];
          const j = typeof a.options.getNextPageParam > "u";
          z = (C && A[0] ? C(A[0], 0, A) : !0) ? H([], j, O[0]) : Promise.resolve($([], O[0], A[0]));
          for (let G = 1; G < A.length; G++)
            z = z.then((ae) => {
              if (C && A[G] ? C(A[G], G, A) : !0) {
                const de = j ? O[G] : mI(a.options, ae);
                return H(ae, j, de);
              }
              return Promise.resolve($(ae, O[G], A[G]));
            });
        }
        return z.then((j) => ({
          pages: j,
          pageParams: L
        }));
      };
    }
  };
}
function mI(a, r) {
  return a.getNextPageParam == null ? void 0 : a.getNextPageParam(r[r.length - 1], r);
}
function qV(a, r) {
  return a.getPreviousPageParam == null ? void 0 : a.getPreviousPageParam(r[0], r);
}
class KV {
  constructor(r = {}) {
    this.queryCache = r.queryCache || new ZV(), this.mutationCache = r.mutationCache || new QV(), this.logger = r.logger || DE, this.defaultOptions = r.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [], this.mountCount = 0,  true && r.logger && this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.");
  }
  mount() {
    this.mountCount++, this.mountCount === 1 && (this.unsubscribeFocus = t0.subscribe(() => {
      t0.isFocused() && (this.resumePausedMutations(), this.queryCache.onFocus());
    }), this.unsubscribeOnline = n0.subscribe(() => {
      n0.isOnline() && (this.resumePausedMutations(), this.queryCache.onOnline());
    }));
  }
  unmount() {
    var r, u;
    this.mountCount--, this.mountCount === 0 && ((r = this.unsubscribeFocus) == null || r.call(this), this.unsubscribeFocus = void 0, (u = this.unsubscribeOnline) == null || u.call(this), this.unsubscribeOnline = void 0);
  }
  isFetching(r, u) {
    const [f] = Pl(r, u);
    return f.fetchStatus = "fetching", this.queryCache.findAll(f).length;
  }
  isMutating(r) {
    return this.mutationCache.findAll({
      ...r,
      fetching: !0
    }).length;
  }
  getQueryData(r, u) {
    var f;
    return (f = this.queryCache.find(r, u)) == null ? void 0 : f.state.data;
  }
  ensureQueryData(r, u, f) {
    const c = Kv(r, u, f), p = this.getQueryData(c.queryKey);
    return p ? Promise.resolve(p) : this.fetchQuery(c);
  }
  getQueriesData(r) {
    return this.getQueryCache().findAll(r).map(({
      queryKey: u,
      state: f
    }) => {
      const c = f.data;
      return [u, c];
    });
  }
  setQueryData(r, u, f) {
    const c = this.queryCache.find(r), p = c == null ? void 0 : c.state.data, h = HV(u, p);
    if (typeof h > "u")
      return;
    const C = Kv(r), y = this.defaultQueryOptions(C);
    return this.queryCache.build(this, y).setData(h, {
      ...f,
      manual: !0
    });
  }
  setQueriesData(r, u, f) {
    return Xn.batch(() => this.getQueryCache().findAll(r).map(({
      queryKey: c
    }) => [c, this.setQueryData(c, u, f)]));
  }
  getQueryState(r, u) {
    var f;
    return (f = this.queryCache.find(r, u)) == null ? void 0 : f.state;
  }
  removeQueries(r, u) {
    const [f] = Pl(r, u), c = this.queryCache;
    Xn.batch(() => {
      c.findAll(f).forEach((p) => {
        c.remove(p);
      });
    });
  }
  resetQueries(r, u, f) {
    const [c, p] = Pl(r, u, f), h = this.queryCache, C = {
      type: "active",
      ...c
    };
    return Xn.batch(() => (h.findAll(c).forEach((y) => {
      y.reset();
    }), this.refetchQueries(C, p)));
  }
  cancelQueries(r, u, f) {
    const [c, p = {}] = Pl(r, u, f);
    typeof p.revert > "u" && (p.revert = !0);
    const h = Xn.batch(() => this.queryCache.findAll(c).map((C) => C.cancel(p)));
    return Promise.all(h).then(gi).catch(gi);
  }
  invalidateQueries(r, u, f) {
    const [c, p] = Pl(r, u, f);
    return Xn.batch(() => {
      var h, C;
      if (this.queryCache.findAll(c).forEach((E) => {
        E.invalidate();
      }), c.refetchType === "none")
        return Promise.resolve();
      const y = {
        ...c,
        type: (h = (C = c.refetchType) != null ? C : c.type) != null ? h : "active"
      };
      return this.refetchQueries(y, p);
    });
  }
  refetchQueries(r, u, f) {
    const [c, p] = Pl(r, u, f), h = Xn.batch(() => this.queryCache.findAll(c).filter((y) => !y.isDisabled()).map((y) => {
      var E;
      return y.fetch(void 0, {
        ...p,
        cancelRefetch: (E = p == null ? void 0 : p.cancelRefetch) != null ? E : !0,
        meta: {
          refetchPage: c.refetchPage
        }
      });
    }));
    let C = Promise.all(h).then(gi);
    return p != null && p.throwOnError || (C = C.catch(gi)), C;
  }
  fetchQuery(r, u, f) {
    const c = Kv(r, u, f), p = this.defaultQueryOptions(c);
    typeof p.retry > "u" && (p.retry = !1);
    const h = this.queryCache.build(this, p);
    return h.isStaleByTime(p.staleTime) ? h.fetch(p) : Promise.resolve(h.state.data);
  }
  prefetchQuery(r, u, f) {
    return this.fetchQuery(r, u, f).then(gi).catch(gi);
  }
  fetchInfiniteQuery(r, u, f) {
    const c = Kv(r, u, f);
    return c.behavior = JV(), this.fetchQuery(c);
  }
  prefetchInfiniteQuery(r, u, f) {
    return this.fetchInfiniteQuery(r, u, f).then(gi).catch(gi);
  }
  resumePausedMutations() {
    return this.mutationCache.resumePausedMutations();
  }
  getQueryCache() {
    return this.queryCache;
  }
  getMutationCache() {
    return this.mutationCache;
  }
  getLogger() {
    return this.logger;
  }
  getDefaultOptions() {
    return this.defaultOptions;
  }
  setDefaultOptions(r) {
    this.defaultOptions = r;
  }
  setQueryDefaults(r, u) {
    const f = this.queryDefaults.find((c) => ac(r) === ac(c.queryKey));
    f ? f.defaultOptions = u : this.queryDefaults.push({
      queryKey: r,
      defaultOptions: u
    });
  }
  getQueryDefaults(r) {
    if (!r)
      return;
    const u = this.queryDefaults.find((f) => bd(r, f.queryKey));
    return  true && this.queryDefaults.filter((c) => bd(r, c.queryKey)).length > 1 && this.logger.error("[QueryClient] Several query defaults match with key '" + JSON.stringify(r) + "'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."), u == null ? void 0 : u.defaultOptions;
  }
  setMutationDefaults(r, u) {
    const f = this.mutationDefaults.find((c) => ac(r) === ac(c.mutationKey));
    f ? f.defaultOptions = u : this.mutationDefaults.push({
      mutationKey: r,
      defaultOptions: u
    });
  }
  getMutationDefaults(r) {
    if (!r)
      return;
    const u = this.mutationDefaults.find((f) => bd(r, f.mutationKey));
    return  true && this.mutationDefaults.filter((c) => bd(r, c.mutationKey)).length > 1 && this.logger.error("[QueryClient] Several mutation defaults match with key '" + JSON.stringify(r) + "'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."), u == null ? void 0 : u.defaultOptions;
  }
  defaultQueryOptions(r) {
    if (r != null && r._defaulted)
      return r;
    const u = {
      ...this.defaultOptions.queries,
      ...this.getQueryDefaults(r == null ? void 0 : r.queryKey),
      ...r,
      _defaulted: !0
    };
    return !u.queryHash && u.queryKey && (u.queryHash = OE(u.queryKey, u)), typeof u.refetchOnReconnect > "u" && (u.refetchOnReconnect = u.networkMode !== "always"), typeof u.useErrorBoundary > "u" && (u.useErrorBoundary = !!u.suspense), u;
  }
  defaultMutationOptions(r) {
    return r != null && r._defaulted ? r : {
      ...this.defaultOptions.mutations,
      ...this.getMutationDefaults(r == null ? void 0 : r.mutationKey),
      ...r,
      _defaulted: !0
    };
  }
  clear() {
    this.queryCache.clear(), this.mutationCache.clear();
  }
}
class e4 extends yh {
  constructor(r, u) {
    super(), this.client = r, this.options = u, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(u);
  }
  bindMethods() {
    this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
  }
  onSubscribe() {
    this.listeners.size === 1 && (this.currentQuery.addObserver(this), gI(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
  }
  onUnsubscribe() {
    this.hasListeners() || this.destroy();
  }
  shouldFetchOnReconnect() {
    return qS(this.currentQuery, this.options, this.options.refetchOnReconnect);
  }
  shouldFetchOnWindowFocus() {
    return qS(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
  }
  destroy() {
    this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
  }
  setOptions(r, u) {
    const f = this.options, c = this.currentQuery;
    if (this.options = this.client.defaultQueryOptions(r),  true && typeof (r == null ? void 0 : r.isDataEqual) < "u" && this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"), $S(f, this.options) || this.client.getQueryCache().notify({
      type: "observerOptionsUpdated",
      query: this.currentQuery,
      observer: this
    }), typeof this.options.enabled < "u" && typeof this.options.enabled != "boolean")
      throw new Error("Expected enabled to be a boolean");
    this.options.queryKey || (this.options.queryKey = f.queryKey), this.updateQuery();
    const p = this.hasListeners();
    p && yI(this.currentQuery, c, this.options, f) && this.executeFetch(), this.updateResult(u), p && (this.currentQuery !== c || this.options.enabled !== f.enabled || this.options.staleTime !== f.staleTime) && this.updateStaleTimeout();
    const h = this.computeRefetchInterval();
    p && (this.currentQuery !== c || this.options.enabled !== f.enabled || h !== this.currentRefetchInterval) && this.updateRefetchInterval(h);
  }
  getOptimisticResult(r) {
    const u = this.client.getQueryCache().build(this.client, r), f = this.createResult(u, r);
    return n4(this, f, r) && (this.currentResult = f, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), f;
  }
  getCurrentResult() {
    return this.currentResult;
  }
  trackResult(r) {
    const u = {};
    return Object.keys(r).forEach((f) => {
      Object.defineProperty(u, f, {
        configurable: !1,
        enumerable: !0,
        get: () => (this.trackedProps.add(f), r[f])
      });
    }), u;
  }
  getCurrentQuery() {
    return this.currentQuery;
  }
  remove() {
    this.client.getQueryCache().remove(this.currentQuery);
  }
  refetch({
    refetchPage: r,
    ...u
  } = {}) {
    return this.fetch({
      ...u,
      meta: {
        refetchPage: r
      }
    });
  }
  fetchOptimistic(r) {
    const u = this.client.defaultQueryOptions(r), f = this.client.getQueryCache().build(this.client, u);
    return f.isFetchingOptimistic = !0, f.fetch().then(() => this.createResult(f, u));
  }
  fetch(r) {
    var u;
    return this.executeFetch({
      ...r,
      cancelRefetch: (u = r.cancelRefetch) != null ? u : !0
    }).then(() => (this.updateResult(), this.currentResult));
  }
  executeFetch(r) {
    this.updateQuery();
    let u = this.currentQuery.fetch(this.options, r);
    return r != null && r.throwOnError || (u = u.catch(gi)), u;
  }
  updateStaleTimeout() {
    if (this.clearStaleTimeout(), uh || this.currentResult.isStale || !YS(this.options.staleTime))
      return;
    const u = dO(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
    this.staleTimeoutId = setTimeout(() => {
      this.currentResult.isStale || this.updateResult();
    }, u);
  }
  computeRefetchInterval() {
    var r;
    return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (r = this.options.refetchInterval) != null ? r : !1;
  }
  updateRefetchInterval(r) {
    this.clearRefetchInterval(), this.currentRefetchInterval = r, !(uh || this.options.enabled === !1 || !YS(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
      (this.options.refetchIntervalInBackground || t0.isFocused()) && this.executeFetch();
    }, this.currentRefetchInterval));
  }
  updateTimers() {
    this.updateStaleTimeout(), this.updateRefetchInterval(this.computeRefetchInterval());
  }
  clearStaleTimeout() {
    this.staleTimeoutId && (clearTimeout(this.staleTimeoutId), this.staleTimeoutId = void 0);
  }
  clearRefetchInterval() {
    this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
  }
  createResult(r, u) {
    const f = this.currentQuery, c = this.options, p = this.currentResult, h = this.currentResultState, C = this.currentResultOptions, y = r !== f, E = y ? r.state : this.currentQueryInitialState, w = y ? this.currentResult : this.previousQueryResult, {
      state: T
    } = r;
    let {
      dataUpdatedAt: A,
      error: O,
      errorUpdatedAt: L,
      fetchStatus: M,
      status: N
    } = T, P = !1, $ = !1, H;
    if (u._optimisticResults) {
      const G = this.hasListeners(), ae = !G && gI(r, u), ge = G && yI(r, f, u, c);
      (ae || ge) && (M = O0(r.options.networkMode) ? "fetching" : "paused", A || (N = "loading")), u._optimisticResults === "isRestoring" && (M = "idle");
    }
    if (u.keepPreviousData && !T.dataUpdatedAt && w != null && w.isSuccess && N !== "error")
      H = w.data, A = w.dataUpdatedAt, N = w.status, P = !0;
    else if (u.select && typeof T.data < "u")
      if (p && T.data === (h == null ? void 0 : h.data) && u.select === this.selectFn)
        H = this.selectResult;
      else
        try {
          this.selectFn = u.select, H = u.select(T.data), H = JS(p == null ? void 0 : p.data, H, u), this.selectResult = H, this.selectError = null;
        } catch (G) {
           true && this.client.getLogger().error(G), this.selectError = G;
        }
    else
      H = T.data;
    if (typeof u.placeholderData < "u" && typeof H > "u" && N === "loading") {
      let G;
      if (p != null && p.isPlaceholderData && u.placeholderData === (C == null ? void 0 : C.placeholderData))
        G = p.data;
      else if (G = typeof u.placeholderData == "function" ? u.placeholderData() : u.placeholderData, u.select && typeof G < "u")
        try {
          G = u.select(G), this.selectError = null;
        } catch (ae) {
           true && this.client.getLogger().error(ae), this.selectError = ae;
        }
      typeof G < "u" && (N = "success", H = JS(p == null ? void 0 : p.data, G, u), $ = !0);
    }
    this.selectError && (O = this.selectError, H = this.selectResult, L = Date.now(), N = "error");
    const z = M === "fetching", V = N === "loading", j = N === "error";
    return {
      status: N,
      fetchStatus: M,
      isLoading: V,
      isSuccess: N === "success",
      isError: j,
      isInitialLoading: V && z,
      data: H,
      dataUpdatedAt: A,
      error: O,
      errorUpdatedAt: L,
      failureCount: T.fetchFailureCount,
      failureReason: T.fetchFailureReason,
      errorUpdateCount: T.errorUpdateCount,
      isFetched: T.dataUpdateCount > 0 || T.errorUpdateCount > 0,
      isFetchedAfterMount: T.dataUpdateCount > E.dataUpdateCount || T.errorUpdateCount > E.errorUpdateCount,
      isFetching: z,
      isRefetching: z && !V,
      isLoadingError: j && T.dataUpdatedAt === 0,
      isPaused: M === "paused",
      isPlaceholderData: $,
      isPreviousData: P,
      isRefetchError: j && T.dataUpdatedAt !== 0,
      isStale: NE(r, u),
      refetch: this.refetch,
      remove: this.remove
    };
  }
  updateResult(r) {
    const u = this.currentResult, f = this.createResult(this.currentQuery, this.options);
    if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, $S(f, u))
      return;
    this.currentResult = f;
    const c = {
      cache: !0
    }, p = () => {
      if (!u)
        return !0;
      const {
        notifyOnChangeProps: h
      } = this.options, C = typeof h == "function" ? h() : h;
      if (C === "all" || !C && !this.trackedProps.size)
        return !0;
      const y = new Set(C ?? this.trackedProps);
      return this.options.useErrorBoundary && y.add("error"), Object.keys(this.currentResult).some((E) => {
        const w = E;
        return this.currentResult[w] !== u[w] && y.has(w);
      });
    };
    (r == null ? void 0 : r.listeners) !== !1 && p() && (c.listeners = !0), this.notify({
      ...c,
      ...r
    });
  }
  updateQuery() {
    const r = this.client.getQueryCache().build(this.client, this.options);
    if (r === this.currentQuery)
      return;
    const u = this.currentQuery;
    this.currentQuery = r, this.currentQueryInitialState = r.state, this.previousQueryResult = this.currentResult, this.hasListeners() && (u == null || u.removeObserver(this), r.addObserver(this));
  }
  onQueryUpdate(r) {
    const u = {};
    r.type === "success" ? u.onSuccess = !r.manual : r.type === "error" && !Uy(r.error) && (u.onError = !0), this.updateResult(u), this.hasListeners() && this.updateTimers();
  }
  notify(r) {
    Xn.batch(() => {
      if (r.onSuccess) {
        var u, f, c, p;
        (u = (f = this.options).onSuccess) == null || u.call(f, this.currentResult.data), (c = (p = this.options).onSettled) == null || c.call(p, this.currentResult.data, null);
      } else if (r.onError) {
        var h, C, y, E;
        (h = (C = this.options).onError) == null || h.call(C, this.currentResult.error), (y = (E = this.options).onSettled) == null || y.call(E, void 0, this.currentResult.error);
      }
      r.listeners && this.listeners.forEach(({
        listener: w
      }) => {
        w(this.currentResult);
      }), r.cache && this.client.getQueryCache().notify({
        query: this.currentQuery,
        type: "observerResultsUpdated"
      });
    });
  }
}
function t4(a, r) {
  return r.enabled !== !1 && !a.state.dataUpdatedAt && !(a.state.status === "error" && r.retryOnMount === !1);
}
function gI(a, r) {
  return t4(a, r) || a.state.dataUpdatedAt > 0 && qS(a, r, r.refetchOnMount);
}
function qS(a, r, u) {
  if (r.enabled !== !1) {
    const f = typeof u == "function" ? u(a) : u;
    return f === "always" || f !== !1 && NE(a, r);
  }
  return !1;
}
function yI(a, r, u, f) {
  return u.enabled !== !1 && (a !== r || f.enabled === !1) && (!u.suspense || a.state.status !== "error") && NE(a, u);
}
function NE(a, r) {
  return a.isStaleByTime(r.staleTime);
}
function n4(a, r, u) {
  return u.keepPreviousData ? !1 : u.placeholderData !== void 0 ? r.isPlaceholderData : !$S(a.getCurrentResult(), r);
}
var KS = { exports: {} }, wS = {};
/**
 * @license React
 * use-sync-external-store-shim.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 bI;
function r4() {
  if (bI)
    return wS;
  bI = 1;
  var a = (react__WEBPACK_IMPORTED_MODULE_1___default());
  function r(T, A) {
    return T === A && (T !== 0 || 1 / T === 1 / A) || T !== T && A !== A;
  }
  var u = typeof Object.is == "function" ? Object.is : r, f = a.useState, c = a.useEffect, p = a.useLayoutEffect, h = a.useDebugValue;
  function C(T, A) {
    var O = A(), L = f({ inst: { value: O, getSnapshot: A } }), M = L[0].inst, N = L[1];
    return p(function() {
      M.value = O, M.getSnapshot = A, y(M) && N({ inst: M });
    }, [T, O, A]), c(function() {
      return y(M) && N({ inst: M }), T(function() {
        y(M) && N({ inst: M });
      });
    }, [T]), h(O), O;
  }
  function y(T) {
    var A = T.getSnapshot;
    T = T.value;
    try {
      var O = A();
      return !u(T, O);
    } catch {
      return !0;
    }
  }
  function E(T, A) {
    return A();
  }
  var w = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? E : C;
  return wS.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : w, wS;
}
var RS = {};
/**
 * @license React
 * use-sync-external-store-shim.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 CI;
function a4() {
  return CI || (CI = 1,  true && function() {
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
    var a = (react__WEBPACK_IMPORTED_MODULE_1___default()), r = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
    function u(H) {
      {
        for (var z = arguments.length, V = new Array(z > 1 ? z - 1 : 0), j = 1; j < z; j++)
          V[j - 1] = arguments[j];
        f("error", H, V);
      }
    }
    function f(H, z, V) {
      {
        var j = r.ReactDebugCurrentFrame, B = j.getStackAddendum();
        B !== "" && (z += "%s", V = V.concat([B]));
        var G = V.map(function(ae) {
          return String(ae);
        });
        G.unshift("Warning: " + z), Function.prototype.apply.call(console[H], console, G);
      }
    }
    function c(H, z) {
      return H === z && (H !== 0 || 1 / H === 1 / z) || H !== H && z !== z;
    }
    var p = typeof Object.is == "function" ? Object.is : c, h = a.useState, C = a.useEffect, y = a.useLayoutEffect, E = a.useDebugValue, w = !1, T = !1;
    function A(H, z, V) {
      w || a.startTransition !== void 0 && (w = !0, u("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
      var j = z();
      if (!T) {
        var B = z();
        p(j, B) || (u("The result of getSnapshot should be cached to avoid an infinite loop"), T = !0);
      }
      var G = h({
        inst: {
          value: j,
          getSnapshot: z
        }
      }), ae = G[0].inst, ge = G[1];
      return y(function() {
        ae.value = j, ae.getSnapshot = z, O(ae) && ge({
          inst: ae
        });
      }, [H, j, z]), C(function() {
        O(ae) && ge({
          inst: ae
        });
        var de = function() {
          O(ae) && ge({
            inst: ae
          });
        };
        return H(de);
      }, [H]), E(j), j;
    }
    function O(H) {
      var z = H.getSnapshot, V = H.value;
      try {
        var j = z();
        return !p(V, j);
      } catch {
        return !0;
      }
    }
    function L(H, z, V) {
      return z();
    }
    var M = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", N = !M, P = N ? L : A, $ = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : P;
    RS.useSyncExternalStore = $, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
  }()), RS;
}
 false ? 0 : KS.exports = a4();
var i4 = KS.exports;
const o4 = i4.useSyncExternalStore, SI = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(void 0), bO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(!1);
function CO(a, r) {
  return a || (r && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = SI), window.ReactQueryClientContext) : SI);
}
const u4 = ({
  context: a
} = {}) => {
  const r = react__WEBPACK_IMPORTED_MODULE_1__.useContext(CO(a, react__WEBPACK_IMPORTED_MODULE_1__.useContext(bO)));
  if (!r)
    throw new Error("No QueryClient set, use QueryClientProvider to set one");
  return r;
}, l4 = ({
  client: a,
  children: r,
  context: u,
  contextSharing: f = !1
}) => {
  react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => (a.mount(), () => {
    a.unmount();
  }), [a]),  true && f && a.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");
  const c = CO(u, f);
  return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(bO.Provider, {
    value: !u && f
  }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(c.Provider, {
    value: a
  }, r));
}, SO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(!1), s4 = () => react__WEBPACK_IMPORTED_MODULE_1__.useContext(SO);
SO.Provider;
function c4() {
  let a = !1;
  return {
    clearReset: () => {
      a = !1;
    },
    reset: () => {
      a = !0;
    },
    isReset: () => a
  };
}
const f4 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(c4()), d4 = () => react__WEBPACK_IMPORTED_MODULE_1__.useContext(f4);
function p4(a, r) {
  return typeof a == "function" ? a(...r) : !!a;
}
const v4 = (a, r) => {
  (a.suspense || a.useErrorBoundary) && (r.isReset() || (a.retryOnMount = !1));
}, h4 = (a) => {
  react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => {
    a.clearReset();
  }, [a]);
}, m4 = ({
  result: a,
  errorResetBoundary: r,
  useErrorBoundary: u,
  query: f
}) => a.isError && !r.isReset() && !a.isFetching && p4(u, [a.error, f]), g4 = (a) => {
  a.suspense && typeof a.staleTime != "number" && (a.staleTime = 1e3);
}, y4 = (a, r) => a.isLoading && a.isFetching && !r, b4 = (a, r, u) => (a == null ? void 0 : a.suspense) && y4(r, u), C4 = (a, r, u) => r.fetchOptimistic(a).then(({
  data: f
}) => {
  a.onSuccess == null || a.onSuccess(f), a.onSettled == null || a.onSettled(f, null);
}).catch((f) => {
  u.clearReset(), a.onError == null || a.onError(f), a.onSettled == null || a.onSettled(void 0, f);
});
function S4(a, r) {
  const u = u4({
    context: a.context
  }), f = s4(), c = d4(), p = u.defaultQueryOptions(a);
  p._optimisticResults = f ? "isRestoring" : "optimistic", p.onError && (p.onError = Xn.batchCalls(p.onError)), p.onSuccess && (p.onSuccess = Xn.batchCalls(p.onSuccess)), p.onSettled && (p.onSettled = Xn.batchCalls(p.onSettled)), g4(p), v4(p, c), h4(c);
  const [h] = react__WEBPACK_IMPORTED_MODULE_1__.useState(() => new r(u, p)), C = h.getOptimisticResult(p);
  if (o4(react__WEBPACK_IMPORTED_MODULE_1__.useCallback((y) => {
    const E = f ? () => {
    } : h.subscribe(Xn.batchCalls(y));
    return h.updateResult(), E;
  }, [h, f]), () => h.getCurrentResult(), () => h.getCurrentResult()), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => {
    h.setOptions(p, {
      listeners: !1
    });
  }, [p, h]), b4(p, C, f))
    throw C4(p, h, c);
  if (m4({
    result: C,
    errorResetBoundary: c,
    useErrorBoundary: p.useErrorBoundary,
    query: h.getCurrentQuery()
  }))
    throw C.error;
  return p.notifyOnChangeProps ? C : h.trackResult(C);
}
function Cd(a, r, u) {
  const f = Kv(a, r, u);
  return S4(f, e4);
}
const lh = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null), r0 = (a, r = null) => a != null ? String(a) : r || null, EO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  as: u,
  ...f
}, c) => {
  a = lt(a, "navbar-brand");
  const p = u || (f.href ? "a" : "span");
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(p, {
    ...f,
    ref: c,
    className: Qe(r, a)
  });
});
EO.displayName = "NavbarBrand";
function Zv(...a) {
  return a.filter((r) => r != null).reduce((r, u) => {
    if (typeof u != "function")
      throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
    return r === null ? u : function(...c) {
      r.apply(this, c), u.apply(this, c);
    };
  }, null);
}
const E4 = {
  height: ["marginTop", "marginBottom"],
  width: ["marginLeft", "marginRight"]
};
function x4(a, r) {
  const u = `offset${a[0].toUpperCase()}${a.slice(1)}`, f = r[u], c = E4[a];
  return f + // @ts-ignore
  parseInt(Cu(r, c[0]), 10) + // @ts-ignore
  parseInt(Cu(r, c[1]), 10);
}
const w4 = {
  [Vl]: "collapse",
  [oh]: "collapsing",
  [Yi]: "collapsing",
  [bu]: "collapse show"
}, R4 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(({
  onEnter: a,
  onEntering: r,
  onEntered: u,
  onExit: f,
  onExiting: c,
  className: p,
  children: h,
  dimension: C = "height",
  in: y = !1,
  timeout: E = 300,
  mountOnEnter: w = !1,
  unmountOnExit: T = !1,
  appear: A = !1,
  getDimensionValue: O = x4,
  ...L
}, M) => {
  const N = typeof C == "function" ? C() : C, P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Zv((j) => {
    j.style[N] = "0";
  }, a), [N, a]), $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Zv((j) => {
    const B = `scroll${N[0].toUpperCase()}${N.slice(1)}`;
    j.style[N] = `${j[B]}px`;
  }, r), [N, r]), H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Zv((j) => {
    j.style[N] = null;
  }, u), [N, u]), z = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Zv((j) => {
    j.style[N] = `${O(N, j)}px`, JA(j);
  }, f), [f, O, N]), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Zv((j) => {
    j.style[N] = null;
  }, c), [N, c]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wE, {
    ref: M,
    addEndListener: xE,
    ...L,
    "aria-expanded": L.role ? y : null,
    onEnter: P,
    onEntering: $,
    onEntered: H,
    onExit: z,
    onExiting: V,
    childRef: h.ref,
    in: y,
    timeout: E,
    mountOnEnter: w,
    unmountOnExit: T,
    appear: A,
    children: (j, B) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(h, {
      ...B,
      className: Qe(p, h.props.className, w4[j], N === "width" && "collapse-horizontal")
    })
  });
}), pc = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null);
pc.displayName = "NavbarContext";
const xO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  children: a,
  bsPrefix: r,
  ...u
}, f) => {
  r = lt(r, "navbar-collapse");
  const c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(pc);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(R4, {
    in: !!(c && c.expanded),
    ...u,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
      ref: f,
      className: r,
      children: a
    })
  });
});
xO.displayName = "NavbarCollapse";
const wO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  children: u,
  label: f = "Toggle navigation",
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: c = "button",
  onClick: p,
  ...h
}, C) => {
  a = lt(a, "navbar-toggler");
  const {
    onToggle: y,
    expanded: E
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(pc) || {}, w = Pn((T) => {
    p && p(T), y && y();
  });
  return c === "button" && (h.type = "button"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(c, {
    ...h,
    ref: C,
    onClick: w,
    "aria-label": f,
    className: Qe(r, a, !E && "collapsed"),
    children: u || /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
      className: `${a}-icon`
    })
  });
});
wO.displayName = "NavbarToggle";
const eE = /* @__PURE__ */ new WeakMap(), EI = (a, r) => {
  if (!a || !r)
    return;
  const u = eE.get(r) || /* @__PURE__ */ new Map();
  eE.set(r, u);
  let f = u.get(a);
  return f || (f = r.matchMedia(a), f.refCount = 0, u.set(f.media, f)), f;
};
function T4(a, r = typeof window > "u" ? void 0 : window) {
  const u = EI(a, r), [f, c] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => u ? u.matches : !1);
  return Ky(() => {
    let p = EI(a, r);
    if (!p)
      return c(!1);
    let h = eE.get(r);
    const C = () => {
      c(p.matches);
    };
    return p.refCount++, p.addListener(C), C(), () => {
      p.removeListener(C), p.refCount--, p.refCount <= 0 && (h == null || h.delete(p.media)), p = void 0;
    };
  }, [a]), f;
}
function I4(a) {
  const r = Object.keys(a);
  function u(C, y) {
    return C === y ? y : C ? `${C} and ${y}` : y;
  }
  function f(C) {
    return r[Math.min(r.indexOf(C) + 1, r.length - 1)];
  }
  function c(C) {
    const y = f(C);
    let E = a[y];
    return typeof E == "number" ? E = `${E - 0.2}px` : E = `calc(${E} - 0.2px)`, `(max-width: ${E})`;
  }
  function p(C) {
    let y = a[C];
    return typeof y == "number" && (y = `${y}px`), `(min-width: ${y})`;
  }
  function h(C, y, E) {
    let w;
    typeof C == "object" ? (w = C, E = y, y = !0) : (y = y || !0, w = {
      [C]: y
    });
    let T = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => Object.entries(w).reduce((A, [O, L]) => ((L === "up" || L === !0) && (A = u(A, p(O))), (L === "down" || L === !0) && (A = u(A, c(O))), A), ""), [JSON.stringify(w)]);
    return T4(T, E);
  }
  return h;
}
const A4 = I4({
  xs: 0,
  sm: 576,
  md: 768,
  lg: 992,
  xl: 1200,
  xxl: 1400
});
function TS(a) {
  a === void 0 && (a = x0());
  try {
    var r = a.activeElement;
    return !r || !r.nodeName ? null : r;
  } catch {
    return a.body;
  }
}
function a0(a, r) {
  if (a.contains)
    return a.contains(r);
  if (a.compareDocumentPosition)
    return a === r || !!(a.compareDocumentPosition(r) & 16);
}
function O4(a) {
  const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(a);
  return r.current = a, r;
}
function D4(a) {
  const r = O4(a);
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => () => r.current(), []);
}
const N4 = "data-rr-ui-";
function bh(a) {
  return `${N4}${a}`;
}
function k4(a = document) {
  const r = a.defaultView;
  return Math.abs(r.innerWidth - a.documentElement.clientWidth);
}
const xI = bh("modal-open");
class kE {
  constructor({
    ownerDocument: r,
    handleContainerOverflow: u = !0,
    isRTL: f = !1
  } = {}) {
    this.handleContainerOverflow = u, this.isRTL = f, this.modals = [], this.ownerDocument = r;
  }
  getScrollbarWidth() {
    return k4(this.ownerDocument);
  }
  getElement() {
    return (this.ownerDocument || document).body;
  }
  setModalAttributes(r) {
  }
  removeModalAttributes(r) {
  }
  setContainerStyle(r) {
    const u = {
      overflow: "hidden"
    }, f = this.isRTL ? "paddingLeft" : "paddingRight", c = this.getElement();
    r.style = {
      overflow: c.style.overflow,
      [f]: c.style[f]
    }, r.scrollBarWidth && (u[f] = `${parseInt(Cu(c, f) || "0", 10) + r.scrollBarWidth}px`), c.setAttribute(xI, ""), Cu(c, u);
  }
  reset() {
    [...this.modals].forEach((r) => this.remove(r));
  }
  removeContainerStyle(r) {
    const u = this.getElement();
    u.removeAttribute(xI), Object.assign(u.style, r.style);
  }
  add(r) {
    let u = this.modals.indexOf(r);
    return u !== -1 || (u = this.modals.length, this.modals.push(r), this.setModalAttributes(r), u !== 0) || (this.state = {
      scrollBarWidth: this.getScrollbarWidth(),
      style: {}
    }, this.handleContainerOverflow && this.setContainerStyle(this.state)), u;
  }
  remove(r) {
    const u = this.modals.indexOf(r);
    u !== -1 && (this.modals.splice(u, 1), !this.modals.length && this.handleContainerOverflow && this.removeContainerStyle(this.state), this.removeModalAttributes(r));
  }
  isTopModal(r) {
    return !!this.modals.length && this.modals[this.modals.length - 1] === r;
  }
}
const RO = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(w0 ? window : void 0);
RO.Provider;
function D0() {
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(RO);
}
const IS = (a, r) => w0 ? a == null ? (r || x0()).body : (typeof a == "function" && (a = a()), a && "current" in a && (a = a.current), a && ("nodeType" in a || a.getBoundingClientRect) ? a : null) : null;
function M4(a, r) {
  const u = D0(), [f, c] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => IS(a, u == null ? void 0 : u.document));
  if (!f) {
    const p = IS(a);
    p && c(p);
  }
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
  }, [r, f]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    const p = IS(a);
    p !== f && c(p);
  }, [a, f]), f;
}
function L4({
  children: a,
  in: r,
  onExited: u,
  mountOnEnter: f,
  unmountOnExit: c
}) {
  const p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(r), C = Pn(u);
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    r ? h.current = !0 : C(p.current);
  }, [r, C]);
  const y = dc(p, a.ref), E = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(a, {
    ref: y
  });
  return r ? E : c || !h.current && f ? null : E;
}
function F4(a) {
  return a.code === "Escape" || a.keyCode === 27;
}
function B4() {
  const a = react__WEBPACK_IMPORTED_MODULE_1__.version.split(".");
  return {
    major: +a[0],
    minor: +a[1],
    patch: +a[2]
  };
}
const V4 = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
function P4(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
function H4(a) {
  let {
    onEnter: r,
    onEntering: u,
    onEntered: f,
    onExit: c,
    onExiting: p,
    onExited: h,
    addEndListener: C,
    children: y
  } = a, E = P4(a, V4);
  const {
    major: w
  } = B4(), T = w >= 19 ? y.props.ref : y.ref, A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), O = dc(A, typeof y == "function" ? null : T), L = (j) => (B) => {
    j && A.current && j(A.current, B);
  }, M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(r), [r]), N = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(u), [u]), P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(f), [f]), $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(c), [c]), H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(p), [p]), z = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(h), [h]), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(L(C), [C]);
  return Object.assign({}, E, {
    nodeRef: A
  }, r && {
    onEnter: M
  }, u && {
    onEntering: N
  }, f && {
    onEntered: P
  }, c && {
    onExit: $
  }, p && {
    onExiting: H
  }, h && {
    onExited: z
  }, C && {
    addEndListener: V
  }, {
    children: typeof y == "function" ? (j, B) => (
      // TODO: Types for RTG missing innerProps, so need to cast.
      y(j, Object.assign({}, B, {
        ref: O
      }))
    ) : /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(y, {
      ref: O
    })
  });
}
const _4 = ["component"];
function z4(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
const G4 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  let {
    component: u
  } = a, f = z4(a, _4);
  const c = H4(f);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, Object.assign({
    ref: r
  }, c));
});
function j4({
  in: a,
  onTransition: r
}) {
  const u = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!0), c = Pn(r);
  return Ky(() => {
    if (!u.current)
      return;
    let p = !1;
    return c({
      in: a,
      element: u.current,
      initial: f.current,
      isStale: () => p
    }), () => {
      p = !0;
    };
  }, [a, c]), Ky(() => (f.current = !1, () => {
    f.current = !0;
  }), []), u;
}
function U4({
  children: a,
  in: r,
  onExited: u,
  onEntered: f,
  transition: c
}) {
  const [p, h] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!r);
  r && p && h(!1);
  const C = j4({
    in: !!r,
    onTransition: (E) => {
      const w = () => {
        E.isStale() || (E.in ? f == null || f(E.element, E.initial) : (h(!0), u == null || u(E.element)));
      };
      Promise.resolve(c(E)).then(w, (T) => {
        throw E.in || h(!0), T;
      });
    }
  }), y = dc(C, a.ref);
  return p && !r ? null : /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(a, {
    ref: y
  });
}
function wI(a, r, u) {
  return a ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(G4, Object.assign({}, u, {
    component: a
  })) : r ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(U4, Object.assign({}, u, {
    transition: r
  })) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(L4, Object.assign({}, u));
}
const W4 = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
function X4(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
let AS;
function Z4(a) {
  return AS || (AS = new kE({
    ownerDocument: a == null ? void 0 : a.document
  })), AS;
}
function Y4(a) {
  const r = D0(), u = a || Z4(r), f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({
    dialog: null,
    backdrop: null
  });
  return Object.assign(f.current, {
    add: () => u.add(f.current),
    remove: () => u.remove(f.current),
    isTopModal: () => u.isTopModal(f.current),
    setDialogRef: (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((c) => {
      f.current.dialog = c;
    }, []),
    setBackdropRef: (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((c) => {
      f.current.backdrop = c;
    }, [])
  });
}
const TO = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((a, r) => {
  let {
    show: u = !1,
    role: f = "dialog",
    className: c,
    style: p,
    children: h,
    backdrop: C = !0,
    keyboard: y = !0,
    onBackdropClick: E,
    onEscapeKeyDown: w,
    transition: T,
    runTransition: A,
    backdropTransition: O,
    runBackdropTransition: L,
    autoFocus: M = !0,
    enforceFocus: N = !0,
    restoreFocus: P = !0,
    restoreFocusOptions: $,
    renderDialog: H,
    renderBackdrop: z = (bt) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({}, bt)),
    manager: V,
    container: j,
    onShow: B,
    onHide: G = () => {
    },
    onExit: ae,
    onExited: ge,
    onExiting: de,
    onEnter: Ee,
    onEntering: ye,
    onEntered: ke
  } = a, Ue = X4(a, W4);
  const Se = D0(), Ke = M4(j), ue = Y4(V), xe = jA(), Z = UA(u), [se, me] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!u), Te = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(r, () => ue, [ue]), w0 && !Z && u && (Te.current = TS(Se == null ? void 0 : Se.document)), u && se && me(!1);
  const Ie = Pn(() => {
    if (ue.add(), ft.current = _l(document, "keydown", Pe), et.current = _l(
      document,
      "focus",
      // the timeout is necessary b/c this will run before the new modal is mounted
      // and so steals focus from it
      () => setTimeout(Ae),
      !0
    ), B && B(), M) {
      var bt, Qn;
      const En = TS((bt = (Qn = ue.dialog) == null ? void 0 : Qn.ownerDocument) != null ? bt : Se == null ? void 0 : Se.document);
      ue.dialog && En && !a0(ue.dialog, En) && (Te.current = En, ue.dialog.focus());
    }
  }), Oe = Pn(() => {
    if (ue.remove(), ft.current == null || ft.current(), et.current == null || et.current(), P) {
      var bt;
      (bt = Te.current) == null || bt.focus == null || bt.focus($), Te.current = null;
    }
  });
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    !u || !Ke || Ie();
  }, [
    u,
    Ke,
    /* should never change: */
    Ie
  ]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    se && Oe();
  }, [se, Oe]), D4(() => {
    Oe();
  });
  const Ae = Pn(() => {
    if (!N || !xe() || !ue.isTopModal())
      return;
    const bt = TS(Se == null ? void 0 : Se.document);
    ue.dialog && bt && !a0(ue.dialog, bt) && ue.dialog.focus();
  }), je = Pn((bt) => {
    bt.target === bt.currentTarget && (E == null || E(bt), C === !0 && G());
  }), Pe = Pn((bt) => {
    y && F4(bt) && ue.isTopModal() && (w == null || w(bt), bt.defaultPrevented || G());
  }), et = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), ft = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), Rt = (...bt) => {
    me(!0), ge == null || ge(...bt);
  };
  if (!Ke)
    return null;
  const Ce = Object.assign({
    role: f,
    ref: ue.setDialogRef,
    // apparently only works on the dialog role element
    "aria-modal": f === "dialog" ? !0 : void 0
  }, Ue, {
    style: p,
    className: c,
    tabIndex: -1
  });
  let Tt = H ? H(Ce) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({}, Ce, {
    children: /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(h, {
      role: "document"
    })
  }));
  Tt = wI(T, A, {
    unmountOnExit: !0,
    mountOnEnter: !0,
    appear: !0,
    in: !!u,
    onExit: ae,
    onExiting: de,
    onExited: Rt,
    onEnter: Ee,
    onEntering: ye,
    onEntered: ke,
    children: Tt
  });
  let Pt = null;
  return C && (Pt = z({
    ref: ue.setBackdropRef,
    onClick: je
  }), Pt = wI(O, L, {
    in: !!u,
    appear: !0,
    mountOnEnter: !0,
    unmountOnExit: !0,
    children: Pt
  })), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
    children: /* @__PURE__ */ yd.createPortal(/* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
      children: [Pt, Tt]
    }), Ke)
  });
});
TO.displayName = "Modal";
const $4 = Object.assign(TO, {
  Manager: kE
}), IO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  ...f
}, c) => (r = lt(r, "offcanvas-body"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
IO.displayName = "OffcanvasBody";
const Q4 = {
  [Yi]: "show",
  [bu]: "show"
}, AO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  children: u,
  in: f = !1,
  mountOnEnter: c = !1,
  unmountOnExit: p = !1,
  appear: h = !1,
  ...C
}, y) => (a = lt(a, "offcanvas"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wE, {
  ref: y,
  addEndListener: xE,
  in: f,
  mountOnEnter: c,
  unmountOnExit: p,
  appear: h,
  ...C,
  childRef: u.ref,
  children: (E, w) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(u, {
    ...w,
    className: Qe(r, u.props.className, (E === Yi || E === oh) && `${a}-toggling`, Q4[E])
  })
})));
AO.displayName = "OffcanvasToggling";
const OO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext({
  // eslint-disable-next-line @typescript-eslint/no-empty-function
  onHide() {
  }
}), J4 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  closeLabel: a = "Close",
  closeVariant: r,
  closeButton: u = !1,
  onHide: f,
  children: c,
  ...p
}, h) => {
  const C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(OO), y = Pn(() => {
    C == null || C.onHide(), f == null || f();
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
    ref: h,
    ...p,
    children: [c, u && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(R0, {
      "aria-label": a,
      variant: r,
      onClick: y
    })]
  });
}), DO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  closeLabel: u = "Close",
  closeButton: f = !1,
  ...c
}, p) => (a = lt(a, "offcanvas-header"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(J4, {
  ref: p,
  ...c,
  className: Qe(r, a),
  closeLabel: u,
  closeButton: f
})));
DO.displayName = "OffcanvasHeader";
const q4 = E0("h5"), NO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = q4,
  ...f
}, c) => (r = lt(r, "offcanvas-title"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
NO.displayName = "OffcanvasTitle";
function K4(a, r) {
  return a.classList ? a.classList.contains(r) : (" " + (a.className.baseVal || a.className) + " ").indexOf(" " + r + " ") !== -1;
}
function e9(a, r) {
  a.classList ? a.classList.add(r) : K4(a, r) || (typeof a.className == "string" ? a.className = a.className + " " + r : a.setAttribute("class", (a.className && a.className.baseVal || "") + " " + r));
}
var t9 = Function.prototype.bind.call(Function.prototype.call, [].slice);
function Hl(a, r) {
  return t9(a.querySelectorAll(r));
}
function RI(a, r) {
  return a.replace(new RegExp("(^|\\s)" + r + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
}
function n9(a, r) {
  a.classList ? a.classList.remove(r) : typeof a.className == "string" ? a.className = RI(a.className, r) : a.setAttribute("class", RI(a.className && a.className.baseVal || "", r));
}
const md = {
  FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
  STICKY_CONTENT: ".sticky-top",
  NAVBAR_TOGGLER: ".navbar-toggler"
};
class kO extends kE {
  adjustAndStore(r, u, f) {
    const c = u.style[r];
    u.dataset[r] = c, Cu(u, {
      [r]: `${parseFloat(Cu(u, r)) + f}px`
    });
  }
  restore(r, u) {
    const f = u.dataset[r];
    f !== void 0 && (delete u.dataset[r], Cu(u, {
      [r]: f
    }));
  }
  setContainerStyle(r) {
    super.setContainerStyle(r);
    const u = this.getElement();
    if (e9(u, "modal-open"), !r.scrollBarWidth)
      return;
    const f = this.isRTL ? "paddingLeft" : "paddingRight", c = this.isRTL ? "marginLeft" : "marginRight";
    Hl(u, md.FIXED_CONTENT).forEach((p) => this.adjustAndStore(f, p, r.scrollBarWidth)), Hl(u, md.STICKY_CONTENT).forEach((p) => this.adjustAndStore(c, p, -r.scrollBarWidth)), Hl(u, md.NAVBAR_TOGGLER).forEach((p) => this.adjustAndStore(c, p, r.scrollBarWidth));
  }
  removeContainerStyle(r) {
    super.removeContainerStyle(r);
    const u = this.getElement();
    n9(u, "modal-open");
    const f = this.isRTL ? "paddingLeft" : "paddingRight", c = this.isRTL ? "marginLeft" : "marginRight";
    Hl(u, md.FIXED_CONTENT).forEach((p) => this.restore(f, p)), Hl(u, md.STICKY_CONTENT).forEach((p) => this.restore(c, p)), Hl(u, md.NAVBAR_TOGGLER).forEach((p) => this.restore(c, p));
  }
}
let OS;
function r9(a) {
  return OS || (OS = new kO(a)), OS;
}
function a9(a) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(AO, {
    ...a
  });
}
function i9(a) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(e0, {
    ...a
  });
}
const MO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  children: u,
  "aria-labelledby": f,
  placement: c = "start",
  responsive: p,
  /* BaseModal props */
  show: h = !1,
  backdrop: C = !0,
  keyboard: y = !0,
  scroll: E = !1,
  onEscapeKeyDown: w,
  onShow: T,
  onHide: A,
  container: O,
  autoFocus: L = !0,
  enforceFocus: M = !0,
  restoreFocus: N = !0,
  restoreFocusOptions: P,
  onEntered: $,
  onExit: H,
  onExiting: z,
  onEnter: V,
  onEntering: j,
  onExited: B,
  backdropClassName: G,
  manager: ae,
  renderStaticNode: ge = !1,
  ...de
}, Ee) => {
  const ye = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
  a = lt(a, "offcanvas");
  const {
    onToggle: ke
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(pc) || {}, [Ue, Se] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), Ke = A4(p || "xs", "up");
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    Se(p ? h && !Ke : h);
  }, [h, p, Ke]);
  const ue = Pn(() => {
    ke == null || ke(), A == null || A();
  }), xe = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    onHide: ue
  }), [ue]);
  function Z() {
    return ae || (E ? (ye.current || (ye.current = new kO({
      handleContainerOverflow: !1
    })), ye.current) : r9());
  }
  const se = (Oe, ...Ae) => {
    Oe && (Oe.style.visibility = "visible"), V == null || V(Oe, ...Ae);
  }, me = (Oe, ...Ae) => {
    Oe && (Oe.style.visibility = ""), B == null || B(...Ae);
  }, Te = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((Oe) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
    ...Oe,
    className: Qe(`${a}-backdrop`, G)
  }), [G, a]), Ie = (Oe) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
    ...Oe,
    ...de,
    className: Qe(r, p ? `${a}-${p}` : a, `${a}-${c}`),
    "aria-labelledby": f,
    children: u
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
    children: [!Ue && (p || ge) && Ie({}), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(OO.Provider, {
      value: xe,
      children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($4, {
        show: Ue,
        ref: Ee,
        backdrop: C,
        container: O,
        keyboard: y,
        autoFocus: L,
        enforceFocus: M && !E,
        restoreFocus: N,
        restoreFocusOptions: P,
        onEscapeKeyDown: w,
        onShow: T,
        onHide: ue,
        onEnter: se,
        onEntering: j,
        onEntered: $,
        onExit: H,
        onExiting: z,
        onExited: me,
        manager: Z(),
        transition: a9,
        backdropTransition: i9,
        renderBackdrop: Te,
        renderDialog: Ie
      })
    })]
  });
});
MO.displayName = "Offcanvas";
const o9 = Object.assign(MO, {
  Body: IO,
  Header: DO,
  Title: NO
}), LO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  const u = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(pc);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(o9, {
    ref: r,
    show: !!(u != null && u.expanded),
    ...a,
    renderStaticNode: !0
  });
});
LO.displayName = "NavbarOffcanvas";
const FO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "span",
  ...f
}, c) => (r = lt(r, "navbar-text"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
FO.displayName = "NavbarText";
const BO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  const {
    bsPrefix: u,
    expand: f = !0,
    variant: c = "light",
    bg: p,
    fixed: h,
    sticky: C,
    className: y,
    // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
    as: E = "nav",
    expanded: w,
    onToggle: T,
    onSelect: A,
    collapseOnSelect: O = !1,
    ...L
  } = CE(a, {
    expanded: "onToggle"
  }), M = lt(u, "navbar"), N = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((...H) => {
    A == null || A(...H), O && w && (T == null || T(!1));
  }, [A, O, w, T]);
  L.role === void 0 && E !== "nav" && (L.role = "navigation");
  let P = `${M}-expand`;
  typeof f == "string" && (P = `${P}-${f}`);
  const $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    onToggle: () => T == null ? void 0 : T(!w),
    bsPrefix: M,
    expanded: !!w,
    expand: f
  }), [M, w, f, T]);
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(pc.Provider, {
    value: $,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(lh.Provider, {
      value: N,
      children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(E, {
        ref: r,
        ...L,
        className: Qe(y, M, f && P, c && `${M}-${c}`, p && `bg-${p}`, C && `sticky-${C}`, h && `fixed-${h}`)
      })
    })
  });
});
BO.displayName = "Navbar";
const Sd = Object.assign(BO, {
  Brand: EO,
  Collapse: xO,
  Offcanvas: LO,
  Text: FO,
  Toggle: wO
});
function u9(a, r, u) {
  const f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(a !== void 0), [c, p] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r), h = a !== void 0, C = f.current;
  return f.current = h, !h && C && c !== r && p(r), [h ? a : c, (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((...y) => {
    const [E, ...w] = y;
    let T = u == null ? void 0 : u(E, ...w);
    return p(E), T;
  }, [u])];
}
function l9() {
  const [, a] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useReducer)((r) => !r, !1);
  return a;
}
const N0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null);
var TI = Object.prototype.hasOwnProperty;
function II(a, r, u) {
  for (u of a.keys())
    if (rh(u, r))
      return u;
}
function rh(a, r) {
  var u, f, c;
  if (a === r)
    return !0;
  if (a && r && (u = a.constructor) === r.constructor) {
    if (u === Date)
      return a.getTime() === r.getTime();
    if (u === RegExp)
      return a.toString() === r.toString();
    if (u === Array) {
      if ((f = a.length) === r.length)
        for (; f-- && rh(a[f], r[f]); )
          ;
      return f === -1;
    }
    if (u === Set) {
      if (a.size !== r.size)
        return !1;
      for (f of a)
        if (c = f, c && typeof c == "object" && (c = II(r, c), !c) || !r.has(c))
          return !1;
      return !0;
    }
    if (u === Map) {
      if (a.size !== r.size)
        return !1;
      for (f of a)
        if (c = f[0], c && typeof c == "object" && (c = II(r, c), !c) || !rh(f[1], r.get(c)))
          return !1;
      return !0;
    }
    if (u === ArrayBuffer)
      a = new Uint8Array(a), r = new Uint8Array(r);
    else if (u === DataView) {
      if ((f = a.byteLength) === r.byteLength)
        for (; f-- && a.getInt8(f) === r.getInt8(f); )
          ;
      return f === -1;
    }
    if (ArrayBuffer.isView(a)) {
      if ((f = a.byteLength) === r.byteLength)
        for (; f-- && a[f] === r[f]; )
          ;
      return f === -1;
    }
    if (!u || typeof a == "object") {
      f = 0;
      for (u in a)
        if (TI.call(a, u) && ++f && !TI.call(r, u) || !(u in r) || !rh(a[u], r[u]))
          return !1;
      return Object.keys(r).length === f;
    }
  }
  return a !== a && r !== r;
}
function s9(a) {
  const r = jA();
  return [a[0], (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((u) => {
    if (r())
      return a[1](u);
  }, [r, a[1]])];
}
var La = "top", yi = "bottom", bi = "right", Fa = "left", ME = "auto", Ch = [La, yi, bi, Fa], Rd = "start", sh = "end", c9 = "clippingParents", VO = "viewport", Yv = "popper", f9 = "reference", AI = /* @__PURE__ */ Ch.reduce(function(a, r) {
  return a.concat([r + "-" + Rd, r + "-" + sh]);
}, []), PO = /* @__PURE__ */ [].concat(Ch, [ME]).reduce(function(a, r) {
  return a.concat([r, r + "-" + Rd, r + "-" + sh]);
}, []), d9 = "beforeRead", p9 = "read", v9 = "afterRead", h9 = "beforeMain", m9 = "main", g9 = "afterMain", y9 = "beforeWrite", b9 = "write", C9 = "afterWrite", S9 = [d9, p9, v9, h9, m9, g9, y9, b9, C9];
function Oo(a) {
  return a.split("-")[0];
}
function qa(a) {
  if (a == null)
    return window;
  if (a.toString() !== "[object Window]") {
    var r = a.ownerDocument;
    return r && r.defaultView || window;
  }
  return a;
}
function cc(a) {
  var r = qa(a).Element;
  return a instanceof r || a instanceof Element;
}
function Do(a) {
  var r = qa(a).HTMLElement;
  return a instanceof r || a instanceof HTMLElement;
}
function LE(a) {
  if (typeof ShadowRoot > "u")
    return !1;
  var r = qa(a).ShadowRoot;
  return a instanceof r || a instanceof ShadowRoot;
}
var uc = Math.max, i0 = Math.min, Td = Math.round;
function tE() {
  var a = navigator.userAgentData;
  return a != null && a.brands && Array.isArray(a.brands) ? a.brands.map(function(r) {
    return r.brand + "/" + r.version;
  }).join(" ") : navigator.userAgent;
}
function HO() {
  return !/^((?!chrome|android).)*safari/i.test(tE());
}
function Id(a, r, u) {
  r === void 0 && (r = !1), u === void 0 && (u = !1);
  var f = a.getBoundingClientRect(), c = 1, p = 1;
  r && Do(a) && (c = a.offsetWidth > 0 && Td(f.width) / a.offsetWidth || 1, p = a.offsetHeight > 0 && Td(f.height) / a.offsetHeight || 1);
  var h = cc(a) ? qa(a) : window, C = h.visualViewport, y = !HO() && u, E = (f.left + (y && C ? C.offsetLeft : 0)) / c, w = (f.top + (y && C ? C.offsetTop : 0)) / p, T = f.width / c, A = f.height / p;
  return {
    width: T,
    height: A,
    top: w,
    right: E + T,
    bottom: w + A,
    left: E,
    x: E,
    y: w
  };
}
function FE(a) {
  var r = Id(a), u = a.offsetWidth, f = a.offsetHeight;
  return Math.abs(r.width - u) <= 1 && (u = r.width), Math.abs(r.height - f) <= 1 && (f = r.height), {
    x: a.offsetLeft,
    y: a.offsetTop,
    width: u,
    height: f
  };
}
function _O(a, r) {
  var u = r.getRootNode && r.getRootNode();
  if (a.contains(r))
    return !0;
  if (u && LE(u)) {
    var f = r;
    do {
      if (f && a.isSameNode(f))
        return !0;
      f = f.parentNode || f.host;
    } while (f);
  }
  return !1;
}
function zl(a) {
  return a ? (a.nodeName || "").toLowerCase() : null;
}
function Ru(a) {
  return qa(a).getComputedStyle(a);
}
function E9(a) {
  return ["table", "td", "th"].indexOf(zl(a)) >= 0;
}
function Gl(a) {
  return ((cc(a) ? a.ownerDocument : (
    // $FlowFixMe[prop-missing]
    a.document
  )) || window.document).documentElement;
}
function k0(a) {
  return zl(a) === "html" ? a : (
    // this is a quicker (but less type safe) way to save quite some bytes from the bundle
    // $FlowFixMe[incompatible-return]
    // $FlowFixMe[prop-missing]
    a.assignedSlot || // step into the shadow DOM of the parent of a slotted node
    a.parentNode || // DOM Element detected
    (LE(a) ? a.host : null) || // ShadowRoot detected
    // $FlowFixMe[incompatible-call]: HTMLElement is a Node
    Gl(a)
  );
}
function OI(a) {
  return !Do(a) || // https://github.com/popperjs/popper-core/issues/837
  Ru(a).position === "fixed" ? null : a.offsetParent;
}
function x9(a) {
  var r = /firefox/i.test(tE()), u = /Trident/i.test(tE());
  if (u && Do(a)) {
    var f = Ru(a);
    if (f.position === "fixed")
      return null;
  }
  var c = k0(a);
  for (LE(c) && (c = c.host); Do(c) && ["html", "body"].indexOf(zl(c)) < 0; ) {
    var p = Ru(c);
    if (p.transform !== "none" || p.perspective !== "none" || p.contain === "paint" || ["transform", "perspective"].indexOf(p.willChange) !== -1 || r && p.willChange === "filter" || r && p.filter && p.filter !== "none")
      return c;
    c = c.parentNode;
  }
  return null;
}
function Sh(a) {
  for (var r = qa(a), u = OI(a); u && E9(u) && Ru(u).position === "static"; )
    u = OI(u);
  return u && (zl(u) === "html" || zl(u) === "body" && Ru(u).position === "static") ? r : u || x9(a) || r;
}
function BE(a) {
  return ["top", "bottom"].indexOf(a) >= 0 ? "x" : "y";
}
function ah(a, r, u) {
  return uc(a, i0(r, u));
}
function w9(a, r, u) {
  var f = ah(a, r, u);
  return f > u ? u : f;
}
function zO() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}
function GO(a) {
  return Object.assign({}, zO(), a);
}
function jO(a, r) {
  return r.reduce(function(u, f) {
    return u[f] = a, u;
  }, {});
}
var R9 = function(r, u) {
  return r = typeof r == "function" ? r(Object.assign({}, u.rects, {
    placement: u.placement
  })) : r, GO(typeof r != "number" ? r : jO(r, Ch));
};
function T9(a) {
  var r, u = a.state, f = a.name, c = a.options, p = u.elements.arrow, h = u.modifiersData.popperOffsets, C = Oo(u.placement), y = BE(C), E = [Fa, bi].indexOf(C) >= 0, w = E ? "height" : "width";
  if (!(!p || !h)) {
    var T = R9(c.padding, u), A = FE(p), O = y === "y" ? La : Fa, L = y === "y" ? yi : bi, M = u.rects.reference[w] + u.rects.reference[y] - h[y] - u.rects.popper[w], N = h[y] - u.rects.reference[y], P = Sh(p), $ = P ? y === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, H = M / 2 - N / 2, z = T[O], V = $ - A[w] - T[L], j = $ / 2 - A[w] / 2 + H, B = ah(z, j, V), G = y;
    u.modifiersData[f] = (r = {}, r[G] = B, r.centerOffset = B - j, r);
  }
}
function I9(a) {
  var r = a.state, u = a.options, f = u.element, c = f === void 0 ? "[data-popper-arrow]" : f;
  c != null && (typeof c == "string" && (c = r.elements.popper.querySelector(c), !c) || _O(r.elements.popper, c) && (r.elements.arrow = c));
}
const A9 = {
  name: "arrow",
  enabled: !0,
  phase: "main",
  fn: T9,
  effect: I9,
  requires: ["popperOffsets"],
  requiresIfExists: ["preventOverflow"]
};
function Ad(a) {
  return a.split("-")[1];
}
var O9 = {
  top: "auto",
  right: "auto",
  bottom: "auto",
  left: "auto"
};
function D9(a, r) {
  var u = a.x, f = a.y, c = r.devicePixelRatio || 1;
  return {
    x: Td(u * c) / c || 0,
    y: Td(f * c) / c || 0
  };
}
function DI(a) {
  var r, u = a.popper, f = a.popperRect, c = a.placement, p = a.variation, h = a.offsets, C = a.position, y = a.gpuAcceleration, E = a.adaptive, w = a.roundOffsets, T = a.isFixed, A = h.x, O = A === void 0 ? 0 : A, L = h.y, M = L === void 0 ? 0 : L, N = typeof w == "function" ? w({
    x: O,
    y: M
  }) : {
    x: O,
    y: M
  };
  O = N.x, M = N.y;
  var P = h.hasOwnProperty("x"), $ = h.hasOwnProperty("y"), H = Fa, z = La, V = window;
  if (E) {
    var j = Sh(u), B = "clientHeight", G = "clientWidth";
    if (j === qa(u) && (j = Gl(u), Ru(j).position !== "static" && C === "absolute" && (B = "scrollHeight", G = "scrollWidth")), j = j, c === La || (c === Fa || c === bi) && p === sh) {
      z = yi;
      var ae = T && j === V && V.visualViewport ? V.visualViewport.height : (
        // $FlowFixMe[prop-missing]
        j[B]
      );
      M -= ae - f.height, M *= y ? 1 : -1;
    }
    if (c === Fa || (c === La || c === yi) && p === sh) {
      H = bi;
      var ge = T && j === V && V.visualViewport ? V.visualViewport.width : (
        // $FlowFixMe[prop-missing]
        j[G]
      );
      O -= ge - f.width, O *= y ? 1 : -1;
    }
  }
  var de = Object.assign({
    position: C
  }, E && O9), Ee = w === !0 ? D9({
    x: O,
    y: M
  }, qa(u)) : {
    x: O,
    y: M
  };
  if (O = Ee.x, M = Ee.y, y) {
    var ye;
    return Object.assign({}, de, (ye = {}, ye[z] = $ ? "0" : "", ye[H] = P ? "0" : "", ye.transform = (V.devicePixelRatio || 1) <= 1 ? "translate(" + O + "px, " + M + "px)" : "translate3d(" + O + "px, " + M + "px, 0)", ye));
  }
  return Object.assign({}, de, (r = {}, r[z] = $ ? M + "px" : "", r[H] = P ? O + "px" : "", r.transform = "", r));
}
function N9(a) {
  var r = a.state, u = a.options, f = u.gpuAcceleration, c = f === void 0 ? !0 : f, p = u.adaptive, h = p === void 0 ? !0 : p, C = u.roundOffsets, y = C === void 0 ? !0 : C, E = {
    placement: Oo(r.placement),
    variation: Ad(r.placement),
    popper: r.elements.popper,
    popperRect: r.rects.popper,
    gpuAcceleration: c,
    isFixed: r.options.strategy === "fixed"
  };
  r.modifiersData.popperOffsets != null && (r.styles.popper = Object.assign({}, r.styles.popper, DI(Object.assign({}, E, {
    offsets: r.modifiersData.popperOffsets,
    position: r.options.strategy,
    adaptive: h,
    roundOffsets: y
  })))), r.modifiersData.arrow != null && (r.styles.arrow = Object.assign({}, r.styles.arrow, DI(Object.assign({}, E, {
    offsets: r.modifiersData.arrow,
    position: "absolute",
    adaptive: !1,
    roundOffsets: y
  })))), r.attributes.popper = Object.assign({}, r.attributes.popper, {
    "data-popper-placement": r.placement
  });
}
const k9 = {
  name: "computeStyles",
  enabled: !0,
  phase: "beforeWrite",
  fn: N9,
  data: {}
};
var Vy = {
  passive: !0
};
function M9(a) {
  var r = a.state, u = a.instance, f = a.options, c = f.scroll, p = c === void 0 ? !0 : c, h = f.resize, C = h === void 0 ? !0 : h, y = qa(r.elements.popper), E = [].concat(r.scrollParents.reference, r.scrollParents.popper);
  return p && E.forEach(function(w) {
    w.addEventListener("scroll", u.update, Vy);
  }), C && y.addEventListener("resize", u.update, Vy), function() {
    p && E.forEach(function(w) {
      w.removeEventListener("scroll", u.update, Vy);
    }), C && y.removeEventListener("resize", u.update, Vy);
  };
}
const L9 = {
  name: "eventListeners",
  enabled: !0,
  phase: "write",
  fn: function() {
  },
  effect: M9,
  data: {}
};
var F9 = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
};
function Wy(a) {
  return a.replace(/left|right|bottom|top/g, function(r) {
    return F9[r];
  });
}
var B9 = {
  start: "end",
  end: "start"
};
function NI(a) {
  return a.replace(/start|end/g, function(r) {
    return B9[r];
  });
}
function VE(a) {
  var r = qa(a), u = r.pageXOffset, f = r.pageYOffset;
  return {
    scrollLeft: u,
    scrollTop: f
  };
}
function PE(a) {
  return Id(Gl(a)).left + VE(a).scrollLeft;
}
function V9(a, r) {
  var u = qa(a), f = Gl(a), c = u.visualViewport, p = f.clientWidth, h = f.clientHeight, C = 0, y = 0;
  if (c) {
    p = c.width, h = c.height;
    var E = HO();
    (E || !E && r === "fixed") && (C = c.offsetLeft, y = c.offsetTop);
  }
  return {
    width: p,
    height: h,
    x: C + PE(a),
    y
  };
}
function P9(a) {
  var r, u = Gl(a), f = VE(a), c = (r = a.ownerDocument) == null ? void 0 : r.body, p = uc(u.scrollWidth, u.clientWidth, c ? c.scrollWidth : 0, c ? c.clientWidth : 0), h = uc(u.scrollHeight, u.clientHeight, c ? c.scrollHeight : 0, c ? c.clientHeight : 0), C = -f.scrollLeft + PE(a), y = -f.scrollTop;
  return Ru(c || u).direction === "rtl" && (C += uc(u.clientWidth, c ? c.clientWidth : 0) - p), {
    width: p,
    height: h,
    x: C,
    y
  };
}
function HE(a) {
  var r = Ru(a), u = r.overflow, f = r.overflowX, c = r.overflowY;
  return /auto|scroll|overlay|hidden/.test(u + c + f);
}
function UO(a) {
  return ["html", "body", "#document"].indexOf(zl(a)) >= 0 ? a.ownerDocument.body : Do(a) && HE(a) ? a : UO(k0(a));
}
function ih(a, r) {
  var u;
  r === void 0 && (r = []);
  var f = UO(a), c = f === ((u = a.ownerDocument) == null ? void 0 : u.body), p = qa(f), h = c ? [p].concat(p.visualViewport || [], HE(f) ? f : []) : f, C = r.concat(h);
  return c ? C : (
    // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
    C.concat(ih(k0(h)))
  );
}
function nE(a) {
  return Object.assign({}, a, {
    left: a.x,
    top: a.y,
    right: a.x + a.width,
    bottom: a.y + a.height
  });
}
function H9(a, r) {
  var u = Id(a, !1, r === "fixed");
  return u.top = u.top + a.clientTop, u.left = u.left + a.clientLeft, u.bottom = u.top + a.clientHeight, u.right = u.left + a.clientWidth, u.width = a.clientWidth, u.height = a.clientHeight, u.x = u.left, u.y = u.top, u;
}
function kI(a, r, u) {
  return r === VO ? nE(V9(a, u)) : cc(r) ? H9(r, u) : nE(P9(Gl(a)));
}
function _9(a) {
  var r = ih(k0(a)), u = ["absolute", "fixed"].indexOf(Ru(a).position) >= 0, f = u && Do(a) ? Sh(a) : a;
  return cc(f) ? r.filter(function(c) {
    return cc(c) && _O(c, f) && zl(c) !== "body";
  }) : [];
}
function z9(a, r, u, f) {
  var c = r === "clippingParents" ? _9(a) : [].concat(r), p = [].concat(c, [u]), h = p[0], C = p.reduce(function(y, E) {
    var w = kI(a, E, f);
    return y.top = uc(w.top, y.top), y.right = i0(w.right, y.right), y.bottom = i0(w.bottom, y.bottom), y.left = uc(w.left, y.left), y;
  }, kI(a, h, f));
  return C.width = C.right - C.left, C.height = C.bottom - C.top, C.x = C.left, C.y = C.top, C;
}
function WO(a) {
  var r = a.reference, u = a.element, f = a.placement, c = f ? Oo(f) : null, p = f ? Ad(f) : null, h = r.x + r.width / 2 - u.width / 2, C = r.y + r.height / 2 - u.height / 2, y;
  switch (c) {
    case La:
      y = {
        x: h,
        y: r.y - u.height
      };
      break;
    case yi:
      y = {
        x: h,
        y: r.y + r.height
      };
      break;
    case bi:
      y = {
        x: r.x + r.width,
        y: C
      };
      break;
    case Fa:
      y = {
        x: r.x - u.width,
        y: C
      };
      break;
    default:
      y = {
        x: r.x,
        y: r.y
      };
  }
  var E = c ? BE(c) : null;
  if (E != null) {
    var w = E === "y" ? "height" : "width";
    switch (p) {
      case Rd:
        y[E] = y[E] - (r[w] / 2 - u[w] / 2);
        break;
      case sh:
        y[E] = y[E] + (r[w] / 2 - u[w] / 2);
        break;
    }
  }
  return y;
}
function ch(a, r) {
  r === void 0 && (r = {});
  var u = r, f = u.placement, c = f === void 0 ? a.placement : f, p = u.strategy, h = p === void 0 ? a.strategy : p, C = u.boundary, y = C === void 0 ? c9 : C, E = u.rootBoundary, w = E === void 0 ? VO : E, T = u.elementContext, A = T === void 0 ? Yv : T, O = u.altBoundary, L = O === void 0 ? !1 : O, M = u.padding, N = M === void 0 ? 0 : M, P = GO(typeof N != "number" ? N : jO(N, Ch)), $ = A === Yv ? f9 : Yv, H = a.rects.popper, z = a.elements[L ? $ : A], V = z9(cc(z) ? z : z.contextElement || Gl(a.elements.popper), y, w, h), j = Id(a.elements.reference), B = WO({
    reference: j,
    element: H,
    strategy: "absolute",
    placement: c
  }), G = nE(Object.assign({}, H, B)), ae = A === Yv ? G : j, ge = {
    top: V.top - ae.top + P.top,
    bottom: ae.bottom - V.bottom + P.bottom,
    left: V.left - ae.left + P.left,
    right: ae.right - V.right + P.right
  }, de = a.modifiersData.offset;
  if (A === Yv && de) {
    var Ee = de[c];
    Object.keys(ge).forEach(function(ye) {
      var ke = [bi, yi].indexOf(ye) >= 0 ? 1 : -1, Ue = [La, yi].indexOf(ye) >= 0 ? "y" : "x";
      ge[ye] += Ee[Ue] * ke;
    });
  }
  return ge;
}
function G9(a, r) {
  r === void 0 && (r = {});
  var u = r, f = u.placement, c = u.boundary, p = u.rootBoundary, h = u.padding, C = u.flipVariations, y = u.allowedAutoPlacements, E = y === void 0 ? PO : y, w = Ad(f), T = w ? C ? AI : AI.filter(function(L) {
    return Ad(L) === w;
  }) : Ch, A = T.filter(function(L) {
    return E.indexOf(L) >= 0;
  });
  A.length === 0 && (A = T);
  var O = A.reduce(function(L, M) {
    return L[M] = ch(a, {
      placement: M,
      boundary: c,
      rootBoundary: p,
      padding: h
    })[Oo(M)], L;
  }, {});
  return Object.keys(O).sort(function(L, M) {
    return O[L] - O[M];
  });
}
function j9(a) {
  if (Oo(a) === ME)
    return [];
  var r = Wy(a);
  return [NI(a), r, NI(r)];
}
function U9(a) {
  var r = a.state, u = a.options, f = a.name;
  if (!r.modifiersData[f]._skip) {
    for (var c = u.mainAxis, p = c === void 0 ? !0 : c, h = u.altAxis, C = h === void 0 ? !0 : h, y = u.fallbackPlacements, E = u.padding, w = u.boundary, T = u.rootBoundary, A = u.altBoundary, O = u.flipVariations, L = O === void 0 ? !0 : O, M = u.allowedAutoPlacements, N = r.options.placement, P = Oo(N), $ = P === N, H = y || ($ || !L ? [Wy(N)] : j9(N)), z = [N].concat(H).reduce(function(Ie, Oe) {
      return Ie.concat(Oo(Oe) === ME ? G9(r, {
        placement: Oe,
        boundary: w,
        rootBoundary: T,
        padding: E,
        flipVariations: L,
        allowedAutoPlacements: M
      }) : Oe);
    }, []), V = r.rects.reference, j = r.rects.popper, B = /* @__PURE__ */ new Map(), G = !0, ae = z[0], ge = 0; ge < z.length; ge++) {
      var de = z[ge], Ee = Oo(de), ye = Ad(de) === Rd, ke = [La, yi].indexOf(Ee) >= 0, Ue = ke ? "width" : "height", Se = ch(r, {
        placement: de,
        boundary: w,
        rootBoundary: T,
        altBoundary: A,
        padding: E
      }), Ke = ke ? ye ? bi : Fa : ye ? yi : La;
      V[Ue] > j[Ue] && (Ke = Wy(Ke));
      var ue = Wy(Ke), xe = [];
      if (p && xe.push(Se[Ee] <= 0), C && xe.push(Se[Ke] <= 0, Se[ue] <= 0), xe.every(function(Ie) {
        return Ie;
      })) {
        ae = de, G = !1;
        break;
      }
      B.set(de, xe);
    }
    if (G)
      for (var Z = L ? 3 : 1, se = function(Oe) {
        var Ae = z.find(function(je) {
          var Pe = B.get(je);
          if (Pe)
            return Pe.slice(0, Oe).every(function(et) {
              return et;
            });
        });
        if (Ae)
          return ae = Ae, "break";
      }, me = Z; me > 0; me--) {
        var Te = se(me);
        if (Te === "break")
          break;
      }
    r.placement !== ae && (r.modifiersData[f]._skip = !0, r.placement = ae, r.reset = !0);
  }
}
const W9 = {
  name: "flip",
  enabled: !0,
  phase: "main",
  fn: U9,
  requiresIfExists: ["offset"],
  data: {
    _skip: !1
  }
};
function MI(a, r, u) {
  return u === void 0 && (u = {
    x: 0,
    y: 0
  }), {
    top: a.top - r.height - u.y,
    right: a.right - r.width + u.x,
    bottom: a.bottom - r.height + u.y,
    left: a.left - r.width - u.x
  };
}
function LI(a) {
  return [La, bi, yi, Fa].some(function(r) {
    return a[r] >= 0;
  });
}
function X9(a) {
  var r = a.state, u = a.name, f = r.rects.reference, c = r.rects.popper, p = r.modifiersData.preventOverflow, h = ch(r, {
    elementContext: "reference"
  }), C = ch(r, {
    altBoundary: !0
  }), y = MI(h, f), E = MI(C, c, p), w = LI(y), T = LI(E);
  r.modifiersData[u] = {
    referenceClippingOffsets: y,
    popperEscapeOffsets: E,
    isReferenceHidden: w,
    hasPopperEscaped: T
  }, r.attributes.popper = Object.assign({}, r.attributes.popper, {
    "data-popper-reference-hidden": w,
    "data-popper-escaped": T
  });
}
const Z9 = {
  name: "hide",
  enabled: !0,
  phase: "main",
  requiresIfExists: ["preventOverflow"],
  fn: X9
};
function Y9(a, r, u) {
  var f = Oo(a), c = [Fa, La].indexOf(f) >= 0 ? -1 : 1, p = typeof u == "function" ? u(Object.assign({}, r, {
    placement: a
  })) : u, h = p[0], C = p[1];
  return h = h || 0, C = (C || 0) * c, [Fa, bi].indexOf(f) >= 0 ? {
    x: C,
    y: h
  } : {
    x: h,
    y: C
  };
}
function $9(a) {
  var r = a.state, u = a.options, f = a.name, c = u.offset, p = c === void 0 ? [0, 0] : c, h = PO.reduce(function(w, T) {
    return w[T] = Y9(T, r.rects, p), w;
  }, {}), C = h[r.placement], y = C.x, E = C.y;
  r.modifiersData.popperOffsets != null && (r.modifiersData.popperOffsets.x += y, r.modifiersData.popperOffsets.y += E), r.modifiersData[f] = h;
}
const Q9 = {
  name: "offset",
  enabled: !0,
  phase: "main",
  requires: ["popperOffsets"],
  fn: $9
};
function J9(a) {
  var r = a.state, u = a.name;
  r.modifiersData[u] = WO({
    reference: r.rects.reference,
    element: r.rects.popper,
    strategy: "absolute",
    placement: r.placement
  });
}
const q9 = {
  name: "popperOffsets",
  enabled: !0,
  phase: "read",
  fn: J9,
  data: {}
};
function K9(a) {
  return a === "x" ? "y" : "x";
}
function eP(a) {
  var r = a.state, u = a.options, f = a.name, c = u.mainAxis, p = c === void 0 ? !0 : c, h = u.altAxis, C = h === void 0 ? !1 : h, y = u.boundary, E = u.rootBoundary, w = u.altBoundary, T = u.padding, A = u.tether, O = A === void 0 ? !0 : A, L = u.tetherOffset, M = L === void 0 ? 0 : L, N = ch(r, {
    boundary: y,
    rootBoundary: E,
    padding: T,
    altBoundary: w
  }), P = Oo(r.placement), $ = Ad(r.placement), H = !$, z = BE(P), V = K9(z), j = r.modifiersData.popperOffsets, B = r.rects.reference, G = r.rects.popper, ae = typeof M == "function" ? M(Object.assign({}, r.rects, {
    placement: r.placement
  })) : M, ge = typeof ae == "number" ? {
    mainAxis: ae,
    altAxis: ae
  } : Object.assign({
    mainAxis: 0,
    altAxis: 0
  }, ae), de = r.modifiersData.offset ? r.modifiersData.offset[r.placement] : null, Ee = {
    x: 0,
    y: 0
  };
  if (j) {
    if (p) {
      var ye, ke = z === "y" ? La : Fa, Ue = z === "y" ? yi : bi, Se = z === "y" ? "height" : "width", Ke = j[z], ue = Ke + N[ke], xe = Ke - N[Ue], Z = O ? -G[Se] / 2 : 0, se = $ === Rd ? B[Se] : G[Se], me = $ === Rd ? -G[Se] : -B[Se], Te = r.elements.arrow, Ie = O && Te ? FE(Te) : {
        width: 0,
        height: 0
      }, Oe = r.modifiersData["arrow#persistent"] ? r.modifiersData["arrow#persistent"].padding : zO(), Ae = Oe[ke], je = Oe[Ue], Pe = ah(0, B[Se], Ie[Se]), et = H ? B[Se] / 2 - Z - Pe - Ae - ge.mainAxis : se - Pe - Ae - ge.mainAxis, ft = H ? -B[Se] / 2 + Z + Pe + je + ge.mainAxis : me + Pe + je + ge.mainAxis, Rt = r.elements.arrow && Sh(r.elements.arrow), Ce = Rt ? z === "y" ? Rt.clientTop || 0 : Rt.clientLeft || 0 : 0, Tt = (ye = de == null ? void 0 : de[z]) != null ? ye : 0, Pt = Ke + et - Tt - Ce, bt = Ke + ft - Tt, Qn = ah(O ? i0(ue, Pt) : ue, Ke, O ? uc(xe, bt) : xe);
      j[z] = Qn, Ee[z] = Qn - Ke;
    }
    if (C) {
      var En, Pa = z === "x" ? La : Fa, Qi = z === "x" ? yi : bi, mr = j[V], Yr = V === "y" ? "height" : "width", Ka = mr + N[Pa], Or = mr - N[Qi], la = [La, Fa].indexOf(P) !== -1, $r = (En = de == null ? void 0 : de[V]) != null ? En : 0, Ha = la ? Ka : mr - B[Yr] - G[Yr] - $r + ge.altAxis, Jn = la ? mr + B[Yr] + G[Yr] - $r - ge.altAxis : Or, Dr = O && la ? w9(Ha, mr, Jn) : ah(O ? Ha : Ka, mr, O ? Jn : Or);
      j[V] = Dr, Ee[V] = Dr - mr;
    }
    r.modifiersData[f] = Ee;
  }
}
const tP = {
  name: "preventOverflow",
  enabled: !0,
  phase: "main",
  fn: eP,
  requiresIfExists: ["offset"]
};
function nP(a) {
  return {
    scrollLeft: a.scrollLeft,
    scrollTop: a.scrollTop
  };
}
function rP(a) {
  return a === qa(a) || !Do(a) ? VE(a) : nP(a);
}
function aP(a) {
  var r = a.getBoundingClientRect(), u = Td(r.width) / a.offsetWidth || 1, f = Td(r.height) / a.offsetHeight || 1;
  return u !== 1 || f !== 1;
}
function iP(a, r, u) {
  u === void 0 && (u = !1);
  var f = Do(r), c = Do(r) && aP(r), p = Gl(r), h = Id(a, c, u), C = {
    scrollLeft: 0,
    scrollTop: 0
  }, y = {
    x: 0,
    y: 0
  };
  return (f || !f && !u) && ((zl(r) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  HE(p)) && (C = rP(r)), Do(r) ? (y = Id(r, !0), y.x += r.clientLeft, y.y += r.clientTop) : p && (y.x = PE(p))), {
    x: h.left + C.scrollLeft - y.x,
    y: h.top + C.scrollTop - y.y,
    width: h.width,
    height: h.height
  };
}
function oP(a) {
  var r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), f = [];
  a.forEach(function(p) {
    r.set(p.name, p);
  });
  function c(p) {
    u.add(p.name);
    var h = [].concat(p.requires || [], p.requiresIfExists || []);
    h.forEach(function(C) {
      if (!u.has(C)) {
        var y = r.get(C);
        y && c(y);
      }
    }), f.push(p);
  }
  return a.forEach(function(p) {
    u.has(p.name) || c(p);
  }), f;
}
function uP(a) {
  var r = oP(a);
  return S9.reduce(function(u, f) {
    return u.concat(r.filter(function(c) {
      return c.phase === f;
    }));
  }, []);
}
function lP(a) {
  var r;
  return function() {
    return r || (r = new Promise(function(u) {
      Promise.resolve().then(function() {
        r = void 0, u(a());
      });
    })), r;
  };
}
function sP(a) {
  var r = a.reduce(function(u, f) {
    var c = u[f.name];
    return u[f.name] = c ? Object.assign({}, c, f, {
      options: Object.assign({}, c.options, f.options),
      data: Object.assign({}, c.data, f.data)
    }) : f, u;
  }, {});
  return Object.keys(r).map(function(u) {
    return r[u];
  });
}
var FI = {
  placement: "bottom",
  modifiers: [],
  strategy: "absolute"
};
function BI() {
  for (var a = arguments.length, r = new Array(a), u = 0; u < a; u++)
    r[u] = arguments[u];
  return !r.some(function(f) {
    return !(f && typeof f.getBoundingClientRect == "function");
  });
}
function cP(a) {
  a === void 0 && (a = {});
  var r = a, u = r.defaultModifiers, f = u === void 0 ? [] : u, c = r.defaultOptions, p = c === void 0 ? FI : c;
  return function(C, y, E) {
    E === void 0 && (E = p);
    var w = {
      placement: "bottom",
      orderedModifiers: [],
      options: Object.assign({}, FI, p),
      modifiersData: {},
      elements: {
        reference: C,
        popper: y
      },
      attributes: {},
      styles: {}
    }, T = [], A = !1, O = {
      state: w,
      setOptions: function(P) {
        var $ = typeof P == "function" ? P(w.options) : P;
        M(), w.options = Object.assign({}, p, w.options, $), w.scrollParents = {
          reference: cc(C) ? ih(C) : C.contextElement ? ih(C.contextElement) : [],
          popper: ih(y)
        };
        var H = uP(sP([].concat(f, w.options.modifiers)));
        return w.orderedModifiers = H.filter(function(z) {
          return z.enabled;
        }), L(), O.update();
      },
      // Sync update – it will always be executed, even if not necessary. This
      // is useful for low frequency updates where sync behavior simplifies the
      // logic.
      // For high frequency updates (e.g. `resize` and `scroll` events), always
      // prefer the async Popper#update method
      forceUpdate: function() {
        if (!A) {
          var P = w.elements, $ = P.reference, H = P.popper;
          if (BI($, H)) {
            w.rects = {
              reference: iP($, Sh(H), w.options.strategy === "fixed"),
              popper: FE(H)
            }, w.reset = !1, w.placement = w.options.placement, w.orderedModifiers.forEach(function(ge) {
              return w.modifiersData[ge.name] = Object.assign({}, ge.data);
            });
            for (var z = 0; z < w.orderedModifiers.length; z++) {
              if (w.reset === !0) {
                w.reset = !1, z = -1;
                continue;
              }
              var V = w.orderedModifiers[z], j = V.fn, B = V.options, G = B === void 0 ? {} : B, ae = V.name;
              typeof j == "function" && (w = j({
                state: w,
                options: G,
                name: ae,
                instance: O
              }) || w);
            }
          }
        }
      },
      // Async and optimistically optimized update – it will not be executed if
      // not necessary (debounced to run at most once-per-tick)
      update: lP(function() {
        return new Promise(function(N) {
          O.forceUpdate(), N(w);
        });
      }),
      destroy: function() {
        M(), A = !0;
      }
    };
    if (!BI(C, y))
      return O;
    O.setOptions(E).then(function(N) {
      !A && E.onFirstUpdate && E.onFirstUpdate(N);
    });
    function L() {
      w.orderedModifiers.forEach(function(N) {
        var P = N.name, $ = N.options, H = $ === void 0 ? {} : $, z = N.effect;
        if (typeof z == "function") {
          var V = z({
            state: w,
            name: P,
            instance: O,
            options: H
          }), j = function() {
          };
          T.push(V || j);
        }
      });
    }
    function M() {
      T.forEach(function(N) {
        return N();
      }), T = [];
    }
    return O;
  };
}
const fP = cP({
  defaultModifiers: [Z9, q9, k9, L9, Q9, W9, tP, A9]
}), dP = ["enabled", "placement", "strategy", "modifiers"];
function pP(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
const vP = {
  name: "applyStyles",
  enabled: !1,
  phase: "afterWrite",
  fn: () => {
  }
}, hP = {
  name: "ariaDescribedBy",
  enabled: !0,
  phase: "afterWrite",
  effect: ({
    state: a
  }) => () => {
    const {
      reference: r,
      popper: u
    } = a.elements;
    if ("removeAttribute" in r) {
      const f = (r.getAttribute("aria-describedby") || "").split(",").filter((c) => c.trim() !== u.id);
      f.length ? r.setAttribute("aria-describedby", f.join(",")) : r.removeAttribute("aria-describedby");
    }
  },
  fn: ({
    state: a
  }) => {
    var r;
    const {
      popper: u,
      reference: f
    } = a.elements, c = (r = u.getAttribute("role")) == null ? void 0 : r.toLowerCase();
    if (u.id && c === "tooltip" && "setAttribute" in f) {
      const p = f.getAttribute("aria-describedby");
      if (p && p.split(",").indexOf(u.id) !== -1)
        return;
      f.setAttribute("aria-describedby", p ? `${p},${u.id}` : u.id);
    }
  }
}, mP = [];
function gP(a, r, u = {}) {
  let {
    enabled: f = !0,
    placement: c = "bottom",
    strategy: p = "absolute",
    modifiers: h = mP
  } = u, C = pP(u, dP);
  const y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(h), E = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), w = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
    var N;
    (N = E.current) == null || N.update();
  }, []), T = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
    var N;
    (N = E.current) == null || N.forceUpdate();
  }, []), [A, O] = s9((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({
    placement: c,
    update: w,
    forceUpdate: T,
    attributes: {},
    styles: {
      popper: {},
      arrow: {}
    }
  })), L = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    name: "updateStateModifier",
    enabled: !0,
    phase: "write",
    requires: ["computeStyles"],
    fn: ({
      state: N
    }) => {
      const P = {}, $ = {};
      Object.keys(N.elements).forEach((H) => {
        P[H] = N.styles[H], $[H] = N.attributes[H];
      }), O({
        state: N,
        styles: P,
        attributes: $,
        update: w,
        forceUpdate: T,
        placement: N.placement
      });
    }
  }), [w, T, O]), M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => (rh(y.current, h) || (y.current = h), y.current), [h]);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    !E.current || !f || E.current.setOptions({
      placement: c,
      strategy: p,
      modifiers: [...M, L, vP]
    });
  }, [p, c, L, f, M]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    if (!(!f || a == null || r == null))
      return E.current = fP(a, r, Object.assign({}, C, {
        placement: c,
        strategy: p,
        modifiers: [...M, hP, L]
      })), () => {
        E.current != null && (E.current.destroy(), E.current = void 0, O((N) => Object.assign({}, N, {
          attributes: {},
          styles: {
            popper: {}
          }
        })));
      };
  }, [f, a, r]), A;
}
const VI = () => {
};
function yP(a) {
  return a.button === 0;
}
function bP(a) {
  return !!(a.metaKey || a.altKey || a.ctrlKey || a.shiftKey);
}
const DS = (a) => a && ("current" in a ? a.current : a), PI = {
  click: "mousedown",
  mouseup: "mousedown",
  pointerup: "pointerdown"
};
function CP(a, r = VI, {
  disabled: u,
  clickTrigger: f = "click"
} = {}) {
  const c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((E) => {
    const w = DS(a);
    S0(!!w, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), c.current = !w || bP(E) || !yP(E) || !!a0(w, E.target) || p.current, p.current = !1;
  }, [a]), C = Pn((E) => {
    const w = DS(a);
    w && a0(w, E.target) && (p.current = !0);
  }), y = Pn((E) => {
    c.current || r(E);
  });
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    var E, w;
    if (u || a == null)
      return;
    const T = x0(DS(a)), A = T.defaultView || window;
    let O = (E = A.event) != null ? E : (w = A.parent) == null ? void 0 : w.event, L = null;
    PI[f] && (L = _l(T, PI[f], C, !0));
    const M = _l(T, f, h, !0), N = _l(T, f, ($) => {
      if ($ === O) {
        O = void 0;
        return;
      }
      y($);
    });
    let P = [];
    return "ontouchstart" in T.documentElement && (P = [].slice.call(T.body.children).map(($) => _l($, "mousemove", VI))), () => {
      L == null || L(), M(), N(), P.forEach(($) => $());
    };
  }, [a, u, f, h, C, y]);
}
function SP(a) {
  const r = {};
  return Array.isArray(a) ? (a == null || a.forEach((u) => {
    r[u.name] = u;
  }), r) : a || r;
}
function EP(a = {}) {
  return Array.isArray(a) ? a : Object.keys(a).map((r) => (a[r].name = r, a[r]));
}
function xP({
  enabled: a,
  enableEvents: r,
  placement: u,
  flip: f,
  offset: c,
  fixed: p,
  containerPadding: h,
  arrowElement: C,
  popperConfig: y = {}
}) {
  var E, w, T, A, O;
  const L = SP(y.modifiers);
  return Object.assign({}, y, {
    placement: u,
    enabled: a,
    strategy: p ? "fixed" : y.strategy,
    modifiers: EP(Object.assign({}, L, {
      eventListeners: {
        enabled: r,
        options: (E = L.eventListeners) == null ? void 0 : E.options
      },
      preventOverflow: Object.assign({}, L.preventOverflow, {
        options: h ? Object.assign({
          padding: h
        }, (w = L.preventOverflow) == null ? void 0 : w.options) : (T = L.preventOverflow) == null ? void 0 : T.options
      }),
      offset: {
        options: Object.assign({
          offset: c
        }, (A = L.offset) == null ? void 0 : A.options)
      },
      arrow: Object.assign({}, L.arrow, {
        enabled: !!C,
        options: Object.assign({}, (O = L.arrow) == null ? void 0 : O.options, {
          element: C
        })
      }),
      flip: Object.assign({
        enabled: !!f
      }, L.flip)
    }))
  });
}
const wP = ["children", "usePopper"];
function RP(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
const TP = () => {
};
function XO(a = {}) {
  const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(N0), [u, f] = AB(), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), {
    flip: p,
    offset: h,
    rootCloseEvent: C,
    fixed: y = !1,
    placement: E,
    popperConfig: w = {},
    enableEventListeners: T = !0,
    usePopper: A = !!r
  } = a, O = (r == null ? void 0 : r.show) == null ? !!a.show : r.show;
  O && !c.current && (c.current = !0);
  const L = (j) => {
    r == null || r.toggle(!1, j);
  }, {
    placement: M,
    setMenu: N,
    menuElement: P,
    toggleElement: $
  } = r || {}, H = gP($, P, xP({
    placement: E || M || "bottom-start",
    enabled: A,
    enableEvents: T ?? O,
    offset: h,
    flip: p,
    fixed: y,
    arrowElement: u,
    popperConfig: w
  })), z = Object.assign({
    ref: N || TP,
    "aria-labelledby": $ == null ? void 0 : $.id
  }, H.attributes.popper, {
    style: H.styles.popper
  }), V = {
    show: O,
    placement: M,
    hasShown: c.current,
    toggle: r == null ? void 0 : r.toggle,
    popper: A ? H : null,
    arrowProps: A ? Object.assign({
      ref: f
    }, H.attributes.arrow, {
      style: H.styles.arrow
    }) : {}
  };
  return CP(P, L, {
    clickTrigger: C,
    disabled: !O
  }), [z, V];
}
function ZO(a) {
  let {
    children: r,
    usePopper: u = !0
  } = a, f = RP(a, wP);
  const [c, p] = XO(Object.assign({}, f, {
    usePopper: u
  }));
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
    children: r(c, p)
  });
}
ZO.displayName = "DropdownMenu";
const o0 = {
  prefix: String(Math.round(Math.random() * 1e10)),
  current: 0
}, YO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(o0), IP = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(!1);
let AP = !!(typeof window < "u" && window.document && window.document.createElement), NS = /* @__PURE__ */ new WeakMap();
function OP(a = !1) {
  let r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(YO), u = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
  if (u.current === null && !a) {
    var f, c;
    let p = (c = (react__WEBPACK_IMPORTED_MODULE_1___default().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)) === null || c === void 0 || (f = c.ReactCurrentOwner) === null || f === void 0 ? void 0 : f.current;
    if (p) {
      let h = NS.get(p);
      h == null ? NS.set(p, {
        id: r.current,
        state: p.memoizedState
      }) : p.memoizedState !== h.state && (r.current = h.id, NS.delete(p));
    }
    u.current = ++r.current;
  }
  return u.current;
}
function DP(a) {
  let r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(YO);
  r === o0 && !AP && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
  let u = OP(!!a), f = r === o0 && "development" === "test" ? 0 : `react-aria${r.prefix}`;
  return a || `${f}-${u}`;
}
function NP(a) {
  let r = react__WEBPACK_IMPORTED_MODULE_1___default().useId(), [u] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(BP()), f = u || "development" === "test" ? "react-aria" : `react-aria${o0.prefix}`;
  return a || `${f}-${r}`;
}
const kP = typeof (react__WEBPACK_IMPORTED_MODULE_1___default().useId) == "function" ? NP : DP;
function MP() {
  return !1;
}
function LP() {
  return !0;
}
function FP(a) {
  return () => {
  };
}
function BP() {
  return typeof (react__WEBPACK_IMPORTED_MODULE_1___default().useSyncExternalStore) == "function" ? react__WEBPACK_IMPORTED_MODULE_1___default().useSyncExternalStore(FP, MP, LP) : (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(IP);
}
const $O = (a) => {
  var r;
  return ((r = a.getAttribute("role")) == null ? void 0 : r.toLowerCase()) === "menu";
}, HI = () => {
};
function QO() {
  const a = kP(), {
    show: r = !1,
    toggle: u = HI,
    setToggle: f,
    menuElement: c
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(N0) || {}, p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((C) => {
    u(!r, C);
  }, [r, u]), h = {
    id: a,
    ref: f || HI,
    onClick: p,
    "aria-expanded": !!r
  };
  return c && $O(c) && (h["aria-haspopup"] = !0), [h, {
    show: r,
    toggle: u
  }];
}
function JO({
  children: a
}) {
  const [r, u] = QO();
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
    children: a(r, u)
  });
}
JO.displayName = "DropdownToggle";
const _E = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null);
_E.displayName = "NavContext";
const VP = ["eventKey", "disabled", "onClick", "active", "as"];
function PP(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
function qO({
  key: a,
  href: r,
  active: u,
  disabled: f,
  onClick: c
}) {
  const p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(lh), h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_E), {
    activeKey: C
  } = h || {}, y = r0(a, r), E = u == null && a != null ? r0(C) === y : u;
  return [{
    onClick: Pn((T) => {
      f || (c == null || c(T), p && !T.isPropagationStopped() && p(y, T));
    }),
    "aria-disabled": f || void 0,
    "aria-selected": E,
    [bh("dropdown-item")]: ""
  }, {
    isActive: E
  }];
}
const KO = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  let {
    eventKey: u,
    disabled: f,
    onClick: c,
    active: p,
    as: h = EE
  } = a, C = PP(a, VP);
  const [y] = qO({
    key: u,
    href: C.href,
    disabled: f,
    onClick: c,
    active: p
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(h, Object.assign({}, C, {
    ref: r
  }, y));
});
KO.displayName = "DropdownItem";
function _I() {
  const a = l9(), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), u = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((f) => {
    r.current = f, a();
  }, [a]);
  return [r, u];
}
function Eh({
  defaultShow: a,
  show: r,
  onSelect: u,
  onToggle: f,
  itemSelector: c = `* [${bh("dropdown-item")}]`,
  focusFirstItemOnShow: p,
  placement: h = "bottom-start",
  children: C
}) {
  const y = D0(), [E, w] = u9(r, a, f), [T, A] = _I(), O = T.current, [L, M] = _I(), N = L.current, P = UA(E), $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), z = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(lh), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((de, Ee, ye = Ee == null ? void 0 : Ee.type) => {
    w(de, {
      originalEvent: Ee,
      source: ye
    });
  }, [w]), j = Pn((de, Ee) => {
    u == null || u(de, Ee), V(!1, Ee, "select"), Ee.isPropagationStopped() || z == null || z(de, Ee);
  }), B = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    toggle: V,
    placement: h,
    show: E,
    menuElement: O,
    toggleElement: N,
    setMenu: A,
    setToggle: M
  }), [V, h, E, O, N, A, M]);
  O && P && !E && (H.current = O.contains(O.ownerDocument.activeElement));
  const G = Pn(() => {
    N && N.focus && N.focus();
  }), ae = Pn(() => {
    const de = $.current;
    let Ee = p;
    if (Ee == null && (Ee = T.current && $O(T.current) ? "keyboard" : !1), Ee === !1 || Ee === "keyboard" && !/^key.+$/.test(de))
      return;
    const ye = Hl(T.current, c)[0];
    ye && ye.focus && ye.focus();
  });
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    E ? ae() : H.current && (H.current = !1, G());
  }, [E, H, G, ae]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    $.current = null;
  });
  const ge = (de, Ee) => {
    if (!T.current)
      return null;
    const ye = Hl(T.current, c);
    let ke = ye.indexOf(de) + Ee;
    return ke = Math.max(0, Math.min(ke, ye.length)), ye[ke];
  };
  return OB((0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => y.document, [y]), "keydown", (de) => {
    var Ee, ye;
    const {
      key: ke
    } = de, Ue = de.target, Se = (Ee = T.current) == null ? void 0 : Ee.contains(Ue), Ke = (ye = L.current) == null ? void 0 : ye.contains(Ue);
    if (/input|textarea/i.test(Ue.tagName) && (ke === " " || ke !== "Escape" && Se || ke === "Escape" && Ue.type === "search") || !Se && !Ke || ke === "Tab" && (!T.current || !E))
      return;
    $.current = de.type;
    const xe = {
      originalEvent: de,
      source: de.type
    };
    switch (ke) {
      case "ArrowUp": {
        const Z = ge(Ue, -1);
        Z && Z.focus && Z.focus(), de.preventDefault();
        return;
      }
      case "ArrowDown":
        if (de.preventDefault(), !E)
          w(!0, xe);
        else {
          const Z = ge(Ue, 1);
          Z && Z.focus && Z.focus();
        }
        return;
      case "Tab":
        QA(Ue.ownerDocument, "keyup", (Z) => {
          var se;
          (Z.key === "Tab" && !Z.target || !((se = T.current) != null && se.contains(Z.target))) && w(!1, xe);
        }, {
          once: !0
        });
        break;
      case "Escape":
        ke === "Escape" && (de.preventDefault(), de.stopPropagation()), w(!1, xe);
        break;
    }
  }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(lh.Provider, {
    value: j,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(N0.Provider, {
      value: B,
      children: C
    })
  });
}
Eh.displayName = "Dropdown";
Eh.Menu = ZO;
Eh.Toggle = JO;
Eh.Item = KO;
const zE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext({});
zE.displayName = "DropdownContext";
const eD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "hr",
  role: f = "separator",
  ...c
}, p) => (r = lt(r, "dropdown-divider"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: p,
  className: Qe(a, r),
  role: f,
  ...c
})));
eD.displayName = "DropdownDivider";
const tD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "div",
  role: f = "heading",
  ...c
}, p) => (r = lt(r, "dropdown-header"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: p,
  className: Qe(a, r),
  role: f,
  ...c
})));
tD.displayName = "DropdownHeader";
const nD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  eventKey: u,
  disabled: f = !1,
  onClick: c,
  active: p,
  as: h = mh,
  ...C
}, y) => {
  const E = lt(a, "dropdown-item"), [w, T] = qO({
    key: u,
    href: C.href,
    disabled: f,
    onClick: c,
    active: p
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(h, {
    ...C,
    ...w,
    ref: y,
    className: Qe(r, E, T.isActive && "active", f && "disabled")
  });
});
nD.displayName = "DropdownItem";
const rD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  className: a,
  bsPrefix: r,
  as: u = "span",
  ...f
}, c) => (r = lt(r, "dropdown-item-text"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
  ref: c,
  className: Qe(a, r),
  ...f
})));
rD.displayName = "DropdownItemText";
const GE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null);
GE.displayName = "InputGroupContext";
function aD(a, r) {
  if (false)
    {}
  const u = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((f) => {
    f == null || !f.isReactComponent || ( true ? qT(!1, `${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : 0);
  }, [r]);
  return dc(u, a);
}
function iD(a, r, u) {
  const f = u ? "top-end" : "top-start", c = u ? "top-start" : "top-end", p = u ? "bottom-end" : "bottom-start", h = u ? "bottom-start" : "bottom-end", C = u ? "right-start" : "left-start", y = u ? "right-end" : "left-end", E = u ? "left-start" : "right-start", w = u ? "left-end" : "right-end";
  let T = a ? h : p;
  return r === "up" ? T = a ? c : f : r === "end" ? T = a ? w : E : r === "start" ? T = a ? y : C : r === "down-centered" ? T = "bottom" : r === "up-centered" && (T = "top"), T;
}
const oD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  align: u,
  rootCloseEvent: f,
  flip: c = !0,
  show: p,
  renderOnMount: h,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: C = "div",
  popperConfig: y,
  variant: E,
  ...w
}, T) => {
  let A = !1;
  const O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(pc), L = lt(a, "dropdown-menu"), {
    align: M,
    drop: N,
    isRTL: P
  } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(zE);
  u = u || M;
  const $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(GE), H = [];
  if (u)
    if (typeof u == "object") {
      const de = Object.keys(u);
      if ( true && S0(de.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), de.length) {
        const Ee = de[0], ye = u[Ee];
        A = ye === "start", H.push(`${L}-${Ee}-${ye}`);
      }
    } else
      u === "end" && (A = !0);
  const z = iD(A, N, P), [V, {
    hasShown: j,
    popper: B,
    show: G,
    toggle: ae
  }] = XO({
    flip: c,
    rootCloseEvent: f,
    show: p,
    usePopper: !O && H.length === 0,
    offset: [0, 2],
    popperConfig: y,
    placement: z
  });
  if (V.ref = dc(aD(T, "DropdownMenu"), V.ref), Ky(() => {
    G && (B == null || B.update());
  }, [G]), !j && !h && !$)
    return null;
  typeof C != "string" && (V.show = G, V.close = () => ae == null ? void 0 : ae(!1), V.align = u);
  let ge = w.style;
  return B != null && B.placement && (ge = {
    ...w.style,
    ...V.style
  }, w["x-placement"] = B.placement), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(C, {
    ...w,
    ...V,
    style: ge,
    ...(H.length || O) && {
      "data-bs-popper": "static"
    },
    className: Qe(r, L, G && "show", A && `${L}-end`, E && `${L}-${E}`, ...H)
  });
});
oD.displayName = "DropdownMenu";
const uD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  split: r,
  className: u,
  childBsPrefix: f,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: c = Eu,
  ...p
}, h) => {
  const C = lt(a, "dropdown-toggle"), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(N0);
  f !== void 0 && (p.bsPrefix = f);
  const [E] = QO();
  return E.ref = dc(E.ref, aD(h, "DropdownToggle")), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(c, {
    className: Qe(u, C, r && `${C}-split`, (y == null ? void 0 : y.show) && "show"),
    ...E,
    ...p
  });
});
uD.displayName = "DropdownToggle";
const lD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  const {
    bsPrefix: u,
    drop: f = "down",
    show: c,
    className: p,
    align: h = "start",
    onSelect: C,
    onToggle: y,
    focusFirstItemOnShow: E,
    // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
    as: w = "div",
    navbar: T,
    autoClose: A = !0,
    ...O
  } = CE(a, {
    show: "onToggle"
  }), L = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(GE), M = lt(u, "dropdown"), N = dB(), P = (B) => A === !1 ? B === "click" : A === "inside" ? B !== "rootClose" : A === "outside" ? B !== "select" : !0, $ = Pn((B, G) => {
    var ae, ge;
    !((ae = G.originalEvent) == null || (ge = ae.target) == null) && ge.classList.contains("dropdown-toggle") && G.source === "mousedown" || (G.originalEvent.currentTarget === document && (G.source !== "keydown" || G.originalEvent.key === "Escape") && (G.source = "rootClose"), P(G.source) && (y == null || y(B, G)));
  }), z = iD(h === "end", f, N), V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
    align: h,
    drop: f,
    isRTL: N
  }), [h, f, N]), j = {
    down: M,
    "down-centered": `${M}-center`,
    up: "dropup",
    "up-centered": "dropup-center dropup",
    end: "dropend",
    start: "dropstart"
  };
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(zE.Provider, {
    value: V,
    children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Eh, {
      placement: z,
      show: c,
      onSelect: C,
      onToggle: $,
      focusFirstItemOnShow: E,
      itemSelector: `.${M}-item:not(.disabled):not(:disabled)`,
      children: L ? O.children : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(w, {
        ...O,
        ref: r,
        className: Qe(p, c && "show", j[f])
      })
    })
  });
});
lD.displayName = "Dropdown";
const ic = Object.assign(lD, {
  Toggle: uD,
  Menu: oD,
  Item: nD,
  ItemText: rD,
  Divider: eD,
  Header: tD
}), HP = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null), _P = ["as", "active", "eventKey"];
function zP(a, r) {
  if (a == null)
    return {};
  var u = {}, f = Object.keys(a), c, p;
  for (p = 0; p < f.length; p++)
    c = f[p], !(r.indexOf(c) >= 0) && (u[c] = a[c]);
  return u;
}
function sD({
  key: a,
  onClick: r,
  active: u,
  id: f,
  role: c,
  disabled: p
}) {
  const h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(lh), C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_E), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(HP);
  let E = u;
  const w = {
    role: c
  };
  if (C) {
    !c && C.role === "tablist" && (w.role = "tab");
    const T = C.getControllerId(a ?? null), A = C.getControlledId(a ?? null);
    w[bh("event-key")] = a, w.id = T || f, E = u == null && a != null ? C.activeKey === a : u, (E || !(y != null && y.unmountOnExit) && !(y != null && y.mountOnEnter)) && (w["aria-controls"] = A);
  }
  return w.role === "tab" && (w["aria-selected"] = E, E || (w.tabIndex = -1), p && (w.tabIndex = -1, w["aria-disabled"] = !0)), w.onClick = Pn((T) => {
    p || (r == null || r(T), a != null && h && !T.isPropagationStopped() && h(a, T));
  }), [w, {
    isActive: E
  }];
}
const GP = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((a, r) => {
  let {
    as: u = EE,
    active: f,
    eventKey: c
  } = a, p = zP(a, _P);
  const [h, C] = sD(Object.assign({
    key: r0(c, p.href),
    active: f
  }, p));
  return h[bh("active")] = C.isActive, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, Object.assign({}, p, h, {
    ref: r
  }));
});
GP.displayName = "NavItem";
const cD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  as: u = mh,
  active: f,
  eventKey: c,
  disabled: p = !1,
  ...h
}, C) => {
  a = lt(a, "nav-link");
  const [y, E] = sD({
    key: r0(c, h.href),
    active: f,
    disabled: p,
    ...h
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(u, {
    ...h,
    ...y,
    ref: C,
    disabled: p,
    className: Qe(r, a, p && "disabled", E.isActive && "active")
  });
});
cD.displayName = "NavLink";
const fD = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  id: a,
  title: r,
  children: u,
  bsPrefix: f,
  className: c,
  rootCloseEvent: p,
  menuRole: h,
  disabled: C,
  active: y,
  renderMenuOnMount: E,
  menuVariant: w,
  ...T
}, A) => {
  const O = lt(void 0, "nav-item");
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(ic, {
    ref: A,
    ...T,
    className: Qe(c, O),
    children: [/* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ic.Toggle, {
      id: a,
      eventKey: null,
      active: y,
      disabled: C,
      childBsPrefix: f,
      as: cD,
      children: r
    }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ic.Menu, {
      role: h,
      renderOnMount: E,
      rootCloseEvent: p,
      variant: w,
      children: u
    })]
  });
});
fD.displayName = "NavDropdown";
const zI = Object.assign(fD, {
  Item: ic.Item,
  ItemText: ic.ItemText,
  Divider: ic.Divider,
  Header: ic.Header
});
function kS({ label: a, value: r }) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Sd.Text, { children: [
    a,
    ": ",
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "text-light", children: r || "None" })
  ] });
}
function GI({
  label: a,
  version: r
}) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Sd.Text, { children: [
    a,
    ":",
    " ",
    r ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("code", { className: "text-success", children: `v${r}` }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "text-light", children: "None" })
  ] });
}
function jP(a) {
  const { data: { username: r, site: u } = { username: "", site: "" } } = Cd({
    queryKey: ["profile"],
    queryFn: async () => a.httpPathHandler("accounts/profile/").then((f) => f.json()).then((f) => ({ username: f.data.username, site: f.data.site }))
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Sd, { bg: "dark", variant: "dark", collapseOnSelect: !0, expand: "sm", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(sc, { fluid: !0, children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Sd.Brand, { children: "Onyx" }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Sd.Collapse, { id: "responsive-navbar-nav", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { direction: "horizontal", gap: 3, children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        zI,
        {
          title: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(kS, { label: "Project", value: a.projectName }),
          id: "collapsible-nav-dropdown",
          style: { color: "white" },
          children: a.projectList.map((f) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
            zI.Item,
            {
              onClick: () => a.handleProjectChange(f),
              children: f
            },
            f
          ))
        }
      ),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(kS, { label: "User", value: r }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(kS, { label: "Site", value: u }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(GI, { label: "GUI", version: a.guiVersion }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(GI, { label: "Extension", version: a.extVersion })
    ] }) }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Sd.Toggle, { "aria-controls": "responsive-navbar-nav" }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
      yE.Check,
      {
        type: "switch",
        id: "theme-switch",
        label: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "text-light", children: "Switch Theme" }),
        onChange: a.handleThemeChange
      }
    )
  ] }) });
}
function fc(a) {
  "@babel/helpers - typeof";
  return fc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
    return typeof r;
  } : function(r) {
    return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
  }, fc(a);
}
function UP(a, r) {
  if (fc(a) != "object" || !a)
    return a;
  var u = a[Symbol.toPrimitive];
  if (u !== void 0) {
    var f = u.call(a, r || "default");
    if (fc(f) != "object")
      return f;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (r === "string" ? String : Number)(a);
}
function dD(a) {
  var r = UP(a, "string");
  return fc(r) == "symbol" ? r : r + "";
}
function eh(a, r, u) {
  return r = dD(r), r in a ? Object.defineProperty(a, r, {
    value: u,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : a[r] = u, a;
}
function jI(a, r) {
  var u = Object.keys(a);
  if (Object.getOwnPropertySymbols) {
    var f = Object.getOwnPropertySymbols(a);
    r && (f = f.filter(function(c) {
      return Object.getOwnPropertyDescriptor(a, c).enumerable;
    })), u.push.apply(u, f);
  }
  return u;
}
function rt(a) {
  for (var r = 1; r < arguments.length; r++) {
    var u = arguments[r] != null ? arguments[r] : {};
    r % 2 ? jI(Object(u), !0).forEach(function(f) {
      eh(a, f, u[f]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(u)) : jI(Object(u)).forEach(function(f) {
      Object.defineProperty(a, f, Object.getOwnPropertyDescriptor(u, f));
    });
  }
  return a;
}
function WP(a) {
  if (Array.isArray(a))
    return a;
}
function XP(a, r) {
  var u = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
  if (u != null) {
    var f, c, p, h, C = [], y = !0, E = !1;
    try {
      if (p = (u = u.call(a)).next, r === 0) {
        if (Object(u) !== u)
          return;
        y = !1;
      } else
        for (; !(y = (f = p.call(u)).done) && (C.push(f.value), C.length !== r); y = !0)
          ;
    } catch (w) {
      E = !0, c = w;
    } finally {
      try {
        if (!y && u.return != null && (h = u.return(), Object(h) !== h))
          return;
      } finally {
        if (E)
          throw c;
      }
    }
    return C;
  }
}
function rE(a, r) {
  (r == null || r > a.length) && (r = a.length);
  for (var u = 0, f = new Array(r); u < r; u++)
    f[u] = a[u];
  return f;
}
function pD(a, r) {
  if (a) {
    if (typeof a == "string")
      return rE(a, r);
    var u = Object.prototype.toString.call(a).slice(8, -1);
    if (u === "Object" && a.constructor && (u = a.constructor.name), u === "Map" || u === "Set")
      return Array.from(a);
    if (u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))
      return rE(a, r);
  }
}
function ZP() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function xu(a, r) {
  return WP(a) || XP(a, r) || pD(a, r) || ZP();
}
function ko(a, r) {
  if (a == null)
    return {};
  var u = bE(a, r), f, c;
  if (Object.getOwnPropertySymbols) {
    var p = Object.getOwnPropertySymbols(a);
    for (c = 0; c < p.length; c++)
      f = p[c], !(r.indexOf(f) >= 0) && Object.prototype.propertyIsEnumerable.call(a, f) && (u[f] = a[f]);
  }
  return u;
}
var YP = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
function vD(a) {
  var r = a.defaultInputValue, u = r === void 0 ? "" : r, f = a.defaultMenuIsOpen, c = f === void 0 ? !1 : f, p = a.defaultValue, h = p === void 0 ? null : p, C = a.inputValue, y = a.menuIsOpen, E = a.onChange, w = a.onInputChange, T = a.onMenuClose, A = a.onMenuOpen, O = a.value, L = ko(a, YP), M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(C !== void 0 ? C : u), N = xu(M, 2), P = N[0], $ = N[1], H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(y !== void 0 ? y : c), z = xu(H, 2), V = z[0], j = z[1], B = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(O !== void 0 ? O : h), G = xu(B, 2), ae = G[0], ge = G[1], de = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(ue, xe) {
    typeof E == "function" && E(ue, xe), ge(ue);
  }, [E]), Ee = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(ue, xe) {
    var Z;
    typeof w == "function" && (Z = w(ue, xe)), $(Z !== void 0 ? Z : ue);
  }, [w]), ye = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function() {
    typeof A == "function" && A(), j(!0);
  }, [A]), ke = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function() {
    typeof T == "function" && T(), j(!1);
  }, [T]), Ue = C !== void 0 ? C : P, Se = y !== void 0 ? y : V, Ke = O !== void 0 ? O : ae;
  return rt(rt({}, L), {}, {
    inputValue: Ue,
    menuIsOpen: Se,
    onChange: de,
    onInputChange: Ee,
    onMenuClose: ke,
    onMenuOpen: ye,
    value: Ke
  });
}
function $P(a, r) {
  if (!(a instanceof r))
    throw new TypeError("Cannot call a class as a function");
}
function UI(a, r) {
  for (var u = 0; u < r.length; u++) {
    var f = r[u];
    f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(a, dD(f.key), f);
  }
}
function QP(a, r, u) {
  return r && UI(a.prototype, r), u && UI(a, u), Object.defineProperty(a, "prototype", {
    writable: !1
  }), a;
}
function JP(a, r) {
  if (typeof r != "function" && r !== null)
    throw new TypeError("Super expression must either be null or a function");
  a.prototype = Object.create(r && r.prototype, {
    constructor: {
      value: a,
      writable: !0,
      configurable: !0
    }
  }), Object.defineProperty(a, "prototype", {
    writable: !1
  }), r && qy(a, r);
}
function u0(a) {
  return u0 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(u) {
    return u.__proto__ || Object.getPrototypeOf(u);
  }, u0(a);
}
function hD() {
  try {
    var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
    }));
  } catch {
  }
  return (hD = function() {
    return !!a;
  })();
}
function qP(a) {
  if (a === void 0)
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return a;
}
function KP(a, r) {
  if (r && (fc(r) === "object" || typeof r == "function"))
    return r;
  if (r !== void 0)
    throw new TypeError("Derived constructors may only return object or undefined");
  return qP(a);
}
function e3(a) {
  var r = hD();
  return function() {
    var f = u0(a), c;
    if (r) {
      var p = u0(this).constructor;
      c = Reflect.construct(f, arguments, p);
    } else
      c = f.apply(this, arguments);
    return KP(this, c);
  };
}
function t3(a) {
  if (Array.isArray(a))
    return rE(a);
}
function n3(a) {
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
    return Array.from(a);
}
function r3() {
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Ed(a) {
  return t3(a) || n3(a) || pD(a) || r3();
}
function a3(a) {
  if (a.sheet)
    return a.sheet;
  for (var r = 0; r < document.styleSheets.length; r++)
    if (document.styleSheets[r].ownerNode === a)
      return document.styleSheets[r];
}
function i3(a) {
  var r = document.createElement("style");
  return r.setAttribute("data-emotion", a.key), a.nonce !== void 0 && r.setAttribute("nonce", a.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
}
var o3 = /* @__PURE__ */ function() {
  function a(u) {
    var f = this;
    this._insertTag = function(c) {
      var p;
      f.tags.length === 0 ? f.insertionPoint ? p = f.insertionPoint.nextSibling : f.prepend ? p = f.container.firstChild : p = f.before : p = f.tags[f.tags.length - 1].nextSibling, f.container.insertBefore(c, p), f.tags.push(c);
    }, this.isSpeedy = u.speedy === void 0 ? "development" === "production" : u.speedy, this.tags = [], this.ctr = 0, this.nonce = u.nonce, this.key = u.key, this.container = u.container, this.prepend = u.prepend, this.insertionPoint = u.insertionPoint, this.before = null;
  }
  var r = a.prototype;
  return r.hydrate = function(f) {
    f.forEach(this._insertTag);
  }, r.insert = function(f) {
    this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(i3(this));
    var c = this.tags[this.tags.length - 1];
    if (true) {
      var p = f.charCodeAt(0) === 64 && f.charCodeAt(1) === 105;
      p && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
` + f + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !p;
    }
    if (this.isSpeedy) {
      var h = a3(c);
      try {
        h.insertRule(f, h.cssRules.length);
      } catch (C) {
         true && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(f) && console.error('There was a problem inserting the following rule: "' + f + '"', C);
      }
    } else
      c.appendChild(document.createTextNode(f));
    this.ctr++;
  }, r.flush = function() {
    this.tags.forEach(function(f) {
      return f.parentNode && f.parentNode.removeChild(f);
    }), this.tags = [], this.ctr = 0,  true && (this._alreadyInsertedOrderInsensitiveRule = !1);
  }, a;
}(), Zr = "-ms-", l0 = "-moz-", zt = "-webkit-", jE = "comm", UE = "rule", WE = "decl", u3 = "@import", mD = "@keyframes", l3 = "@layer", s3 = Math.abs, M0 = String.fromCharCode, c3 = Object.assign;
function f3(a, r) {
  return Ar(a, 0) ^ 45 ? (((r << 2 ^ Ar(a, 0)) << 2 ^ Ar(a, 1)) << 2 ^ Ar(a, 2)) << 2 ^ Ar(a, 3) : 0;
}
function gD(a) {
  return a.trim();
}
function d3(a, r) {
  return (a = r.exec(a)) ? a[0] : a;
}
function Gt(a, r, u) {
  return a.replace(r, u);
}
function aE(a, r) {
  return a.indexOf(r);
}
function Ar(a, r) {
  return a.charCodeAt(r) | 0;
}
function fh(a, r, u) {
  return a.slice(r, u);
}
function Ao(a) {
  return a.length;
}
function XE(a) {
  return a.length;
}
function Py(a, r) {
  return r.push(a), a;
}
function p3(a, r) {
  return a.map(r).join("");
}
var L0 = 1, Od = 1, yD = 0, Va = 0, Zn = 0, Nd = "";
function F0(a, r, u, f, c, p, h) {
  return { value: a, root: r, parent: u, type: f, props: c, children: p, line: L0, column: Od, length: h, return: "" };
}
function $v(a, r) {
  return c3(F0("", null, null, "", null, null, 0), a, { length: -a.length }, r);
}
function v3() {
  return Zn;
}
function h3() {
  return Zn = Va > 0 ? Ar(Nd, --Va) : 0, Od--, Zn === 10 && (Od = 1, L0--), Zn;
}
function Ja() {
  return Zn = Va < yD ? Ar(Nd, Va++) : 0, Od++, Zn === 10 && (Od = 1, L0++), Zn;
}
function No() {
  return Ar(Nd, Va);
}
function Xy() {
  return Va;
}
function xh(a, r) {
  return fh(Nd, a, r);
}
function dh(a) {
  switch (a) {
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    case 59:
    case 123:
    case 125:
      return 4;
    case 58:
      return 3;
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
function bD(a) {
  return L0 = Od = 1, yD = Ao(Nd = a), Va = 0, [];
}
function CD(a) {
  return Nd = "", a;
}
function Zy(a) {
  return gD(xh(Va - 1, iE(a === 91 ? a + 2 : a === 40 ? a + 1 : a)));
}
function m3(a) {
  for (; (Zn = No()) && Zn < 33; )
    Ja();
  return dh(a) > 2 || dh(Zn) > 3 ? "" : " ";
}
function g3(a, r) {
  for (; --r && Ja() && !(Zn < 48 || Zn > 102 || Zn > 57 && Zn < 65 || Zn > 70 && Zn < 97); )
    ;
  return xh(a, Xy() + (r < 6 && No() == 32 && Ja() == 32));
}
function iE(a) {
  for (; Ja(); )
    switch (Zn) {
      case a:
        return Va;
      case 34:
      case 39:
        a !== 34 && a !== 39 && iE(Zn);
        break;
      case 40:
        a === 41 && iE(a);
        break;
      case 92:
        Ja();
        break;
    }
  return Va;
}
function y3(a, r) {
  for (; Ja() && a + Zn !== 57; )
    if (a + Zn === 84 && No() === 47)
      break;
  return "/*" + xh(r, Va - 1) + "*" + M0(a === 47 ? a : Ja());
}
function b3(a) {
  for (; !dh(No()); )
    Ja();
  return xh(a, Va);
}
function C3(a) {
  return CD(Yy("", null, null, null, [""], a = bD(a), 0, [0], a));
}
function Yy(a, r, u, f, c, p, h, C, y) {
  for (var E = 0, w = 0, T = h, A = 0, O = 0, L = 0, M = 1, N = 1, P = 1, $ = 0, H = "", z = c, V = p, j = f, B = H; N; )
    switch (L = $, $ = Ja()) {
      case 40:
        if (L != 108 && Ar(B, T - 1) == 58) {
          aE(B += Gt(Zy($), "&", "&\f"), "&\f") != -1 && (P = -1);
          break;
        }
      case 34:
      case 39:
      case 91:
        B += Zy($);
        break;
      case 9:
      case 10:
      case 13:
      case 32:
        B += m3(L);
        break;
      case 92:
        B += g3(Xy() - 1, 7);
        continue;
      case 47:
        switch (No()) {
          case 42:
          case 47:
            Py(S3(y3(Ja(), Xy()), r, u), y);
            break;
          default:
            B += "/";
        }
        break;
      case 123 * M:
        C[E++] = Ao(B) * P;
      case 125 * M:
      case 59:
      case 0:
        switch ($) {
          case 0:
          case 125:
            N = 0;
          case 59 + w:
            P == -1 && (B = Gt(B, /\f/g, "")), O > 0 && Ao(B) - T && Py(O > 32 ? XI(B + ";", f, u, T - 1) : XI(Gt(B, " ", "") + ";", f, u, T - 2), y);
            break;
          case 59:
            B += ";";
          default:
            if (Py(j = WI(B, r, u, E, w, c, C, H, z = [], V = [], T), p), $ === 123)
              if (w === 0)
                Yy(B, r, j, j, z, p, T, C, V);
              else
                switch (A === 99 && Ar(B, 3) === 110 ? 100 : A) {
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    Yy(a, j, j, f && Py(WI(a, j, j, 0, 0, c, C, H, c, z = [], T), V), c, V, T, C, f ? z : V);
                    break;
                  default:
                    Yy(B, j, j, j, [""], V, 0, C, V);
                }
        }
        E = w = O = 0, M = P = 1, H = B = "", T = h;
        break;
      case 58:
        T = 1 + Ao(B), O = L;
      default:
        if (M < 1) {
          if ($ == 123)
            --M;
          else if ($ == 125 && M++ == 0 && h3() == 125)
            continue;
        }
        switch (B += M0($), $ * M) {
          case 38:
            P = w > 0 ? 1 : (B += "\f", -1);
            break;
          case 44:
            C[E++] = (Ao(B) - 1) * P, P = 1;
            break;
          case 64:
            No() === 45 && (B += Zy(Ja())), A = No(), w = T = Ao(H = B += b3(Xy())), $++;
            break;
          case 45:
            L === 45 && Ao(B) == 2 && (M = 0);
        }
    }
  return p;
}
function WI(a, r, u, f, c, p, h, C, y, E, w) {
  for (var T = c - 1, A = c === 0 ? p : [""], O = XE(A), L = 0, M = 0, N = 0; L < f; ++L)
    for (var P = 0, $ = fh(a, T + 1, T = s3(M = h[L])), H = a; P < O; ++P)
      (H = gD(M > 0 ? A[P] + " " + $ : Gt($, /&\f/g, A[P]))) && (y[N++] = H);
  return F0(a, r, u, c === 0 ? UE : C, y, E, w);
}
function S3(a, r, u) {
  return F0(a, r, u, jE, M0(v3()), fh(a, 2, -2), 0);
}
function XI(a, r, u, f) {
  return F0(a, r, u, WE, fh(a, 0, f), fh(a, f + 1, -1), f);
}
function xd(a, r) {
  for (var u = "", f = XE(a), c = 0; c < f; c++)
    u += r(a[c], c, a, r) || "";
  return u;
}
function E3(a, r, u, f) {
  switch (a.type) {
    case l3:
      if (a.children.length)
        break;
    case u3:
    case WE:
      return a.return = a.return || a.value;
    case jE:
      return "";
    case mD:
      return a.return = a.value + "{" + xd(a.children, f) + "}";
    case UE:
      a.value = a.props.join(",");
  }
  return Ao(u = xd(a.children, f)) ? a.return = a.value + "{" + u + "}" : "";
}
function x3(a) {
  var r = XE(a);
  return function(u, f, c, p) {
    for (var h = "", C = 0; C < r; C++)
      h += a[C](u, f, c, p) || "";
    return h;
  };
}
function w3(a) {
  return function(r) {
    r.root || (r = r.return) && a(r);
  };
}
function R3(a) {
  var r = /* @__PURE__ */ Object.create(null);
  return function(u) {
    return r[u] === void 0 && (r[u] = a(u)), r[u];
  };
}
var T3 = function(r, u, f) {
  for (var c = 0, p = 0; c = p, p = No(), c === 38 && p === 12 && (u[f] = 1), !dh(p); )
    Ja();
  return xh(r, Va);
}, I3 = function(r, u) {
  var f = -1, c = 44;
  do
    switch (dh(c)) {
      case 0:
        c === 38 && No() === 12 && (u[f] = 1), r[f] += T3(Va - 1, u, f);
        break;
      case 2:
        r[f] += Zy(c);
        break;
      case 4:
        if (c === 44) {
          r[++f] = No() === 58 ? "&\f" : "", u[f] = r[f].length;
          break;
        }
      default:
        r[f] += M0(c);
    }
  while (c = Ja());
  return r;
}, A3 = function(r, u) {
  return CD(I3(bD(r), u));
}, ZI = /* @__PURE__ */ new WeakMap(), O3 = function(r) {
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
  // negative .length indicates that this rule has been already prefixed
  r.length < 1)) {
    for (var u = r.value, f = r.parent, c = r.column === f.column && r.line === f.line; f.type !== "rule"; )
      if (f = f.parent, !f)
        return;
    if (!(r.props.length === 1 && u.charCodeAt(0) !== 58 && !ZI.get(f)) && !c) {
      ZI.set(r, !0);
      for (var p = [], h = A3(u, p), C = f.props, y = 0, E = 0; y < h.length; y++)
        for (var w = 0; w < C.length; w++, E++)
          r.props[E] = p[y] ? h[y].replace(/&\f/g, C[w]) : C[w] + " " + h[y];
    }
  }
}, D3 = function(r) {
  if (r.type === "decl") {
    var u = r.value;
    // charcode for l
    u.charCodeAt(0) === 108 && // charcode for b
    u.charCodeAt(2) === 98 && (r.return = "", r.value = "");
  }
}, N3 = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", k3 = function(r) {
  return r.type === "comm" && r.children.indexOf(N3) > -1;
}, M3 = function(r) {
  return function(u, f, c) {
    if (!(u.type !== "rule" || r.compat)) {
      var p = u.value.match(/(:first|:nth|:nth-last)-child/g);
      if (p) {
        for (var h = !!u.parent, C = h ? u.parent.children : (
          // global rule at the root level
          c
        ), y = C.length - 1; y >= 0; y--) {
          var E = C[y];
          if (E.line < u.line)
            break;
          if (E.column < u.column) {
            if (k3(E))
              return;
            break;
          }
        }
        p.forEach(function(w) {
          console.error('The pseudo class "' + w + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + w.split("-child")[0] + '-of-type".');
        });
      }
    }
  };
}, SD = function(r) {
  return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
}, L3 = function(r, u) {
  for (var f = r - 1; f >= 0; f--)
    if (!SD(u[f]))
      return !0;
  return !1;
}, YI = function(r) {
  r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
}, F3 = function(r, u, f) {
  SD(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), YI(r)) : L3(u, f) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), YI(r)));
};
function ED(a, r) {
  switch (f3(a, r)) {
    case 5103:
      return zt + "print-" + a + a;
    case 5737:
    case 4201:
    case 3177:
    case 3433:
    case 1641:
    case 4457:
    case 2921:
    case 5572:
    case 6356:
    case 5844:
    case 3191:
    case 6645:
    case 3005:
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
    case 4855:
    case 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
      return zt + a + a;
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return zt + a + l0 + a + Zr + a + a;
    case 6828:
    case 4268:
      return zt + a + Zr + a + a;
    case 6165:
      return zt + a + Zr + "flex-" + a + a;
    case 5187:
      return zt + a + Gt(a, /(\w+).+(:[^]+)/, zt + "box-$1$2" + Zr + "flex-$1$2") + a;
    case 5443:
      return zt + a + Zr + "flex-item-" + Gt(a, /flex-|-self/, "") + a;
    case 4675:
      return zt + a + Zr + "flex-line-pack" + Gt(a, /align-content|flex-|-self/, "") + a;
    case 5548:
      return zt + a + Zr + Gt(a, "shrink", "negative") + a;
    case 5292:
      return zt + a + Zr + Gt(a, "basis", "preferred-size") + a;
    case 6060:
      return zt + "box-" + Gt(a, "-grow", "") + zt + a + Zr + Gt(a, "grow", "positive") + a;
    case 4554:
      return zt + Gt(a, /([^-])(transform)/g, "$1" + zt + "$2") + a;
    case 6187:
      return Gt(Gt(Gt(a, /(zoom-|grab)/, zt + "$1"), /(image-set)/, zt + "$1"), a, "") + a;
    case 5495:
    case 3959:
      return Gt(a, /(image-set\([^]*)/, zt + "$1$`$1");
    case 4968:
      return Gt(Gt(a, /(.+:)(flex-)?(.*)/, zt + "box-pack:$3" + Zr + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + zt + a + a;
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return Gt(a, /(.+)-inline(.+)/, zt + "$1$2") + a;
    case 8116:
    case 7059:
    case 5753:
    case 5535:
    case 5445:
    case 5701:
    case 4933:
    case 4677:
    case 5533:
    case 5789:
    case 5021:
    case 4765:
      if (Ao(a) - 1 - r > 6)
        switch (Ar(a, r + 1)) {
          case 109:
            if (Ar(a, r + 4) !== 45)
              break;
          case 102:
            return Gt(a, /(.+:)(.+)-([^]+)/, "$1" + zt + "$2-$3$1" + l0 + (Ar(a, r + 3) == 108 ? "$3" : "$2-$3")) + a;
          case 115:
            return ~aE(a, "stretch") ? ED(Gt(a, "stretch", "fill-available"), r) + a : a;
        }
      break;
    case 4949:
      if (Ar(a, r + 1) !== 115)
        break;
    case 6444:
      switch (Ar(a, Ao(a) - 3 - (~aE(a, "!important") && 10))) {
        case 107:
          return Gt(a, ":", ":" + zt) + a;
        case 101:
          return Gt(a, /(.+:)([^;!]+)(;|!.+)?/, "$1" + zt + (Ar(a, 14) === 45 ? "inline-" : "") + "box$3$1" + zt + "$2$3$1" + Zr + "$2box$3") + a;
      }
      break;
    case 5936:
      switch (Ar(a, r + 11)) {
        case 114:
          return zt + a + Zr + Gt(a, /[svh]\w+-[tblr]{2}/, "tb") + a;
        case 108:
          return zt + a + Zr + Gt(a, /[svh]\w+-[tblr]{2}/, "tb-rl") + a;
        case 45:
          return zt + a + Zr + Gt(a, /[svh]\w+-[tblr]{2}/, "lr") + a;
      }
      return zt + a + Zr + a + a;
  }
  return a;
}
var B3 = function(r, u, f, c) {
  if (r.length > -1 && !r.return)
    switch (r.type) {
      case WE:
        r.return = ED(r.value, r.length);
        break;
      case mD:
        return xd([$v(r, {
          value: Gt(r.value, "@", "@" + zt)
        })], c);
      case UE:
        if (r.length)
          return p3(r.props, function(p) {
            switch (d3(p, /(::plac\w+|:read-\w+)/)) {
              case ":read-only":
              case ":read-write":
                return xd([$v(r, {
                  props: [Gt(p, /:(read-\w+)/, ":" + l0 + "$1")]
                })], c);
              case "::placeholder":
                return xd([$v(r, {
                  props: [Gt(p, /:(plac\w+)/, ":" + zt + "input-$1")]
                }), $v(r, {
                  props: [Gt(p, /:(plac\w+)/, ":" + l0 + "$1")]
                }), $v(r, {
                  props: [Gt(p, /:(plac\w+)/, Zr + "input-$1")]
                })], c);
            }
            return "";
          });
    }
}, V3 = [B3], P3 = function(r) {
  var u = r.key;
  if ( true && !u)
    throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
If multiple caches share the same key they might "fight" for each other's style elements.`);
  if (u === "css") {
    var f = document.querySelectorAll("style[data-emotion]:not([data-s])");
    Array.prototype.forEach.call(f, function(M) {
      var N = M.getAttribute("data-emotion");
      N.indexOf(" ") !== -1 && (document.head.appendChild(M), M.setAttribute("data-s", ""));
    });
  }
  var c = r.stylisPlugins || V3;
  if ( true && /[^a-z-]/.test(u))
    throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + u + '" was passed');
  var p = {}, h, C = [];
  h = r.container || document.head, Array.prototype.forEach.call(
    // this means we will ignore elements which don't have a space in them which
    // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
    document.querySelectorAll('style[data-emotion^="' + u + ' "]'),
    function(M) {
      for (var N = M.getAttribute("data-emotion").split(" "), P = 1; P < N.length; P++)
        p[N[P]] = !0;
      C.push(M);
    }
  );
  var y, E = [O3, D3];
   true && E.push(M3({
    get compat() {
      return L.compat;
    }
  }), F3);
  {
    var w, T = [E3,  true ? function(M) {
      M.root || (M.return ? w.insert(M.return) : M.value && M.type !== jE && w.insert(M.value + "{}"));
    } : 0], A = x3(E.concat(c, T)), O = function(N) {
      return xd(C3(N), A);
    };
    y = function(N, P, $, H) {
      w = $,  true && P.map !== void 0 && (w = {
        insert: function(V) {
          $.insert(V + P.map);
        }
      }), O(N ? N + "{" + P.styles + "}" : P.styles), H && (L.inserted[P.name] = !0);
    };
  }
  var L = {
    key: u,
    sheet: new o3({
      key: u,
      container: h,
      nonce: r.nonce,
      speedy: r.speedy,
      prepend: r.prepend,
      insertionPoint: r.insertionPoint
    }),
    nonce: r.nonce,
    inserted: p,
    registered: {},
    insert: y
  };
  return L.sheet.hydrate(C), L;
}, xD = fE(), H3 = {
  $$typeof: !0,
  render: !0,
  defaultProps: !0,
  displayName: !0,
  propTypes: !0
}, _3 = {
  $$typeof: !0,
  compare: !0,
  defaultProps: !0,
  displayName: !0,
  propTypes: !0,
  type: !0
}, wD = {};
wD[xD.ForwardRef] = H3;
wD[xD.Memo] = _3;
var z3 = !0;
function RD(a, r, u) {
  var f = "";
  return u.split(" ").forEach(function(c) {
    a[c] !== void 0 ? r.push(a[c] + ";") : f += c + " ";
  }), f;
}
var ZE = function(r, u, f) {
  var c = r.key + "-" + u.name;
  // we only need to add the styles to the registered cache if the
  // class name could be used further down
  // the tree but if it's a string tag, we know it won't
  // so we don't have to add it to registered cache.
  // this improves memory usage since we can avoid storing the whole style string
  (f === !1 || // we need to always store it if we're in compat mode and
  // in node since emotion-server relies on whether a style is in
  // the registered cache to know whether a style is global or not
  // also, note that this check will be dead code eliminated in the browser
  z3 === !1) && r.registered[c] === void 0 && (r.registered[c] = u.styles);
}, YE = function(r, u, f) {
  ZE(r, u, f);
  var c = r.key + "-" + u.name;
  if (r.inserted[u.name] === void 0) {
    var p = u;
    do
      r.insert(u === p ? "." + c : "", p, r.sheet, !0), p = p.next;
    while (p !== void 0);
  }
};
function G3(a) {
  for (var r = 0, u, f = 0, c = a.length; c >= 4; ++f, c -= 4)
    u = a.charCodeAt(f) & 255 | (a.charCodeAt(++f) & 255) << 8 | (a.charCodeAt(++f) & 255) << 16 | (a.charCodeAt(++f) & 255) << 24, u = /* Math.imul(k, m): */
    (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16), u ^= /* k >>> r: */
    u >>> 24, r = /* Math.imul(k, m): */
    (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
    (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
  switch (c) {
    case 3:
      r ^= (a.charCodeAt(f + 2) & 255) << 16;
    case 2:
      r ^= (a.charCodeAt(f + 1) & 255) << 8;
    case 1:
      r ^= a.charCodeAt(f) & 255, r = /* Math.imul(h, m): */
      (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
  }
  return r ^= r >>> 13, r = /* Math.imul(h, m): */
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
}
var j3 = {
  animationIterationCount: 1,
  aspectRatio: 1,
  borderImageOutset: 1,
  borderImageSlice: 1,
  borderImageWidth: 1,
  boxFlex: 1,
  boxFlexGroup: 1,
  boxOrdinalGroup: 1,
  columnCount: 1,
  columns: 1,
  flex: 1,
  flexGrow: 1,
  flexPositive: 1,
  flexShrink: 1,
  flexNegative: 1,
  flexOrder: 1,
  gridRow: 1,
  gridRowEnd: 1,
  gridRowSpan: 1,
  gridRowStart: 1,
  gridColumn: 1,
  gridColumnEnd: 1,
  gridColumnSpan: 1,
  gridColumnStart: 1,
  msGridRow: 1,
  msGridRowSpan: 1,
  msGridColumn: 1,
  msGridColumnSpan: 1,
  fontWeight: 1,
  lineHeight: 1,
  opacity: 1,
  order: 1,
  orphans: 1,
  tabSize: 1,
  widows: 1,
  zIndex: 1,
  zoom: 1,
  WebkitLineClamp: 1,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
}, $I = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, U3 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", W3 = /[A-Z]|^ms/g, TD = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $E = function(r) {
  return r.charCodeAt(1) === 45;
}, QI = function(r) {
  return r != null && typeof r != "boolean";
}, MS = /* @__PURE__ */ R3(function(a) {
  return $E(a) ? a : a.replace(W3, "-$&").toLowerCase();
}), s0 = function(r, u) {
  switch (r) {
    case "animation":
    case "animationName":
      if (typeof u == "string")
        return u.replace(TD, function(f, c, p) {
          return $i = {
            name: c,
            styles: p,
            next: $i
          }, c;
        });
  }
  return j3[r] !== 1 && !$E(r) && typeof u == "number" && u !== 0 ? u + "px" : u;
};
if (true) {
  var X3 = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Z3 = ["normal", "none", "initial", "inherit", "unset"], Y3 = s0, $3 = /^-ms-/, Q3 = /-(.)/g, JI = {};
  s0 = function(r, u) {
    if (r === "content" && (typeof u != "string" || Z3.indexOf(u) === -1 && !X3.test(u) && (u.charAt(0) !== u.charAt(u.length - 1) || u.charAt(0) !== '"' && u.charAt(0) !== "'")))
      throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + u + "\"'`");
    var f = Y3(r, u);
    return f !== "" && !$E(r) && r.indexOf("-") !== -1 && JI[r] === void 0 && (JI[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace($3, "ms-").replace(Q3, function(c, p) {
      return p.toUpperCase();
    }) + "?")), f;
  };
}
var ID = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
function ph(a, r, u) {
  if (u == null)
    return "";
  if (u.__emotion_styles !== void 0) {
    if ( true && u.toString() === "NO_COMPONENT_SELECTOR")
      throw new Error(ID);
    return u;
  }
  switch (typeof u) {
    case "boolean":
      return "";
    case "object": {
      if (u.anim === 1)
        return $i = {
          name: u.name,
          styles: u.styles,
          next: $i
        }, u.name;
      if (u.styles !== void 0) {
        var f = u.next;
        if (f !== void 0)
          for (; f !== void 0; )
            $i = {
              name: f.name,
              styles: f.styles,
              next: $i
            }, f = f.next;
        var c = u.styles + ";";
        return  true && u.map !== void 0 && (c += u.map), c;
      }
      return J3(a, r, u);
    }
    case "function": {
      if (a !== void 0) {
        var p = $i, h = u(a);
        return $i = p, ph(a, r, h);
      } else
         true && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
      break;
    }
    case "string":
      if (true) {
        var C = [], y = u.replace(TD, function(w, T, A) {
          var O = "animation" + C.length;
          return C.push("const " + O + " = keyframes`" + A.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + O + "}";
        });
        C.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(C, ["`" + y + "`"]).join(`
`) + `

You should wrap it with \`css\` like this:

` + ("css`" + y + "`"));
      }
      break;
  }
  if (r == null)
    return u;
  var E = r[u];
  return E !== void 0 ? E : u;
}
function J3(a, r, u) {
  var f = "";
  if (Array.isArray(u))
    for (var c = 0; c < u.length; c++)
      f += ph(a, r, u[c]) + ";";
  else
    for (var p in u) {
      var h = u[p];
      if (typeof h != "object")
        r != null && r[h] !== void 0 ? f += p + "{" + r[h] + "}" : QI(h) && (f += MS(p) + ":" + s0(p, h) + ";");
      else {
        if (p === "NO_COMPONENT_SELECTOR" && "development" !== "production")
          throw new Error(ID);
        if (Array.isArray(h) && typeof h[0] == "string" && (r == null || r[h[0]] === void 0))
          for (var C = 0; C < h.length; C++)
            QI(h[C]) && (f += MS(p) + ":" + s0(p, h[C]) + ";");
        else {
          var y = ph(a, r, h);
          switch (p) {
            case "animation":
            case "animationName": {
              f += MS(p) + ":" + y + ";";
              break;
            }
            default:
               true && p === "undefined" && console.error(U3), f += p + "{" + y + "}";
          }
        }
      }
    }
  return f;
}
var qI = /label:\s*([^\s;\n{]+)\s*(;|$)/g, AD;
 true && (AD = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
var $i, vh = function(r, u, f) {
  if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
    return r[0];
  var c = !0, p = "";
  $i = void 0;
  var h = r[0];
  h == null || h.raw === void 0 ? (c = !1, p += ph(f, u, h)) : ( true && h[0] === void 0 && console.error($I), p += h[0]);
  for (var C = 1; C < r.length; C++)
    p += ph(f, u, r[C]), c && ( true && h[C] === void 0 && console.error($I), p += h[C]);
  var y;
   true && (p = p.replace(AD, function(A) {
    return y = A, "";
  })), qI.lastIndex = 0;
  for (var E = "", w; (w = qI.exec(p)) !== null; )
    E += "-" + // $FlowFixMe we know it's not null
    w[1];
  var T = G3(p) + E;
  return  true ? {
    name: T,
    styles: p,
    map: y,
    next: $i,
    toString: function() {
      return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
    }
  } : 0;
}, q3 = function(r) {
  return r();
}, OD = react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect ? react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect : !1, DD = OD || q3, KI = OD || react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect, QE = {}.hasOwnProperty, JE = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(
  // we're doing this to avoid preconstruct's dead code elimination in this one case
  // because this module is primarily intended for the browser and node
  // but it's also required in react native and similar environments sometimes
  // and we could have a special build just for that
  // but this is much easier and the native packages
  // might use a different theme context in the future anyway
  typeof HTMLElement < "u" ? /* @__PURE__ */ P3({
    key: "css"
  }) : null
);
 true && (JE.displayName = "EmotionCacheContext");
JE.Provider;
var qE = function(r) {
  return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(u, f) {
    var c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(JE);
    return r(u, c, f);
  });
}, B0 = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext({});
 true && (B0.displayName = "EmotionThemeContext");
var eA = function(r) {
  var u = r.split(".");
  return u[u.length - 1];
}, K3 = function(r) {
  var u = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);
  if (u || (u = /^([A-Za-z0-9$.]+)@/.exec(r), u))
    return eA(u[1]);
}, eH = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), tH = function(r) {
  return r.replace(/\$/g, "-");
}, nH = function(r) {
  if (r)
    for (var u = r.split(`
`), f = 0; f < u.length; f++) {
      var c = K3(u[f]);
      if (c) {
        if (eH.has(c))
          break;
        if (/^[A-Z]/.test(c))
          return tH(c);
      }
    }
}, oE = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", uE = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", rH = function(r, u) {
  if ( true && typeof u.css == "string" && // check if there is a css declaration
  u.css.indexOf(":") !== -1)
    throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + u.css + "`");
  var f = {};
  for (var c in u)
    QE.call(u, c) && (f[c] = u[c]);
  if (f[oE] = r,  true && u.css && (typeof u.css != "object" || typeof u.css.name != "string" || u.css.name.indexOf("-") === -1)) {
    var p = nH(new Error().stack);
    p && (f[uE] = p);
  }
  return f;
}, aH = function(r) {
  var u = r.cache, f = r.serialized, c = r.isStringTag;
  return ZE(u, f, c), DD(function() {
    return YE(u, f, c);
  }), null;
}, ND = /* @__PURE__ */ qE(function(a, r, u) {
  var f = a.css;
  typeof f == "string" && r.registered[f] !== void 0 && (f = r.registered[f]);
  var c = a[oE], p = [f], h = "";
  typeof a.className == "string" ? h = RD(r.registered, p, a.className) : a.className != null && (h = a.className + " ");
  var C = vh(p, void 0, react__WEBPACK_IMPORTED_MODULE_1__.useContext(B0));
  if ( true && C.name.indexOf("-") === -1) {
    var y = a[uE];
    y && (C = vh([C, "label:" + y + ";"]));
  }
  h += r.key + "-" + C.name;
  var E = {};
  for (var w in a)
    QE.call(a, w) && w !== "css" && w !== oE && ( false || w !== uE) && (E[w] = a[w]);
  return E.ref = u, E.className = h, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(aH, {
    cache: r,
    serialized: C,
    isStringTag: typeof c == "string"
  }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(c, E));
});
 true && (ND.displayName = "EmotionCssPropInternal");
var iH = ND, oH = {
  name: "@emotion/react",
  version: "11.11.4",
  main: "dist/emotion-react.cjs.js",
  module: "dist/emotion-react.esm.js",
  browser: {
    "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
  },
  exports: {
    ".": {
      module: {
        worker: "./dist/emotion-react.worker.esm.js",
        browser: "./dist/emotion-react.browser.esm.js",
        default: "./dist/emotion-react.esm.js"
      },
      import: "./dist/emotion-react.cjs.mjs",
      default: "./dist/emotion-react.cjs.js"
    },
    "./jsx-runtime": {
      module: {
        worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
        browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
        default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
      },
      import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
      default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
    },
    "./_isolated-hnrs": {
      module: {
        worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
        browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
        default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
      },
      import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
      default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
    },
    "./jsx-dev-runtime": {
      module: {
        worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
        browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
        default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
      },
      import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
      default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
    },
    "./package.json": "./package.json",
    "./types/css-prop": "./types/css-prop.d.ts",
    "./macro": {
      types: {
        import: "./macro.d.mts",
        default: "./macro.d.ts"
      },
      default: "./macro.js"
    }
  },
  types: "types/index.d.ts",
  files: [
    "src",
    "dist",
    "jsx-runtime",
    "jsx-dev-runtime",
    "_isolated-hnrs",
    "types/*.d.ts",
    "macro.*"
  ],
  sideEffects: !1,
  author: "Emotion Contributors",
  license: "MIT",
  scripts: {
    "test:typescript": "dtslint types"
  },
  dependencies: {
    "@babel/runtime": "^7.18.3",
    "@emotion/babel-plugin": "^11.11.0",
    "@emotion/cache": "^11.11.0",
    "@emotion/serialize": "^1.1.3",
    "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
    "@emotion/utils": "^1.2.1",
    "@emotion/weak-memoize": "^0.3.1",
    "hoist-non-react-statics": "^3.3.1"
  },
  peerDependencies: {
    react: ">=16.8.0"
  },
  peerDependenciesMeta: {
    "@types/react": {
      optional: !0
    }
  },
  devDependencies: {
    "@definitelytyped/dtslint": "0.0.112",
    "@emotion/css": "11.11.2",
    "@emotion/css-prettifier": "1.1.3",
    "@emotion/server": "11.11.0",
    "@emotion/styled": "11.11.0",
    "html-tag-names": "^1.1.2",
    react: "16.14.0",
    "svg-tag-names": "^1.1.1",
    typescript: "^4.5.5"
  },
  repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
  publishConfig: {
    access: "public"
  },
  "umd:main": "dist/emotion-react.umd.min.js",
  preconstruct: {
    entrypoints: [
      "./index.js",
      "./jsx-runtime.js",
      "./jsx-dev-runtime.js",
      "./_isolated-hnrs.js"
    ],
    umdName: "emotionReact",
    exports: {
      envConditions: [
        "browser",
        "worker"
      ],
      extra: {
        "./types/css-prop": "./types/css-prop.d.ts",
        "./macro": {
          types: {
            import: "./macro.d.mts",
            default: "./macro.d.ts"
          },
          default: "./macro.js"
        }
      }
    }
  }
}, it = function(r, u) {
  var f = arguments;
  if (u == null || !QE.call(u, "css"))
    return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(void 0, f);
  var c = f.length, p = new Array(c);
  p[0] = iH, p[1] = rH(r, u);
  for (var h = 2; h < c; h++)
    p[h] = f[h];
  return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(null, p);
}, tA = !1, uH = /* @__PURE__ */ qE(function(a, r) {
   true && !tA && // check for className as well since the user is
  // probably using the custom createElement which
  // means it will be turned into a className prop
  // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
  (a.className || a.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), tA = !0);
  var u = a.styles, f = vh([u], void 0, react__WEBPACK_IMPORTED_MODULE_1__.useContext(B0)), c = react__WEBPACK_IMPORTED_MODULE_1__.useRef();
  return KI(function() {
    var p = r.key + "-global", h = new r.sheet.constructor({
      key: p,
      nonce: r.sheet.nonce,
      container: r.sheet.container,
      speedy: r.sheet.isSpeedy
    }), C = !1, y = document.querySelector('style[data-emotion="' + p + " " + f.name + '"]');
    return r.sheet.tags.length && (h.before = r.sheet.tags[0]), y !== null && (C = !0, y.setAttribute("data-emotion", p), h.hydrate([y])), c.current = [h, C], function() {
      h.flush();
    };
  }, [r]), KI(function() {
    var p = c.current, h = p[0], C = p[1];
    if (C) {
      p[1] = !1;
      return;
    }
    if (f.next !== void 0 && YE(r, f.next, !0), h.tags.length) {
      var y = h.tags[h.tags.length - 1].nextElementSibling;
      h.before = y, h.flush();
    }
    r.insert("", f, h, !1);
  }, [r, f.name]), null;
});
 true && (uH.displayName = "EmotionGlobal");
function KE() {
  for (var a = arguments.length, r = new Array(a), u = 0; u < a; u++)
    r[u] = arguments[u];
  return vh(r);
}
var lH = function() {
  var r = KE.apply(void 0, arguments), u = "animation-" + r.name;
  return {
    name: u,
    styles: "@keyframes " + u + "{" + r.styles + "}",
    anim: 1,
    toString: function() {
      return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
    }
  };
}, sH = function a(r) {
  for (var u = r.length, f = 0, c = ""; f < u; f++) {
    var p = r[f];
    if (p != null) {
      var h = void 0;
      switch (typeof p) {
        case "boolean":
          break;
        case "object": {
          if (Array.isArray(p))
            h = a(p);
          else {
             true && p.styles !== void 0 && p.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."), h = "";
            for (var C in p)
              p[C] && C && (h && (h += " "), h += C);
          }
          break;
        }
        default:
          h = p;
      }
      h && (c && (c += " "), c += h);
    }
  }
  return c;
};
function cH(a, r, u) {
  var f = [], c = RD(a, f, u);
  return f.length < 2 ? u : c + r(f);
}
var fH = function(r) {
  var u = r.cache, f = r.serializedArr;
  return DD(function() {
    for (var c = 0; c < f.length; c++)
      YE(u, f[c], !1);
  }), null;
}, dH = /* @__PURE__ */ qE(function(a, r) {
  var u = !1, f = [], c = function() {
    if (u && "development" !== "production")
      throw new Error("css can only be used during render");
    for (var E = arguments.length, w = new Array(E), T = 0; T < E; T++)
      w[T] = arguments[T];
    var A = vh(w, r.registered);
    return f.push(A), ZE(r, A, !1), r.key + "-" + A.name;
  }, p = function() {
    if (u && "development" !== "production")
      throw new Error("cx can only be used during render");
    for (var E = arguments.length, w = new Array(E), T = 0; T < E; T++)
      w[T] = arguments[T];
    return cH(r.registered, c, sH(w));
  }, h = {
    css: c,
    cx: p,
    theme: react__WEBPACK_IMPORTED_MODULE_1__.useContext(B0)
  }, C = a.children(h);
  return u = !0, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(fH, {
    cache: r,
    serializedArr: f
  }), C);
});
 true && (dH.displayName = "EmotionClassNames");
if (true) {
  var nA = !0, pH = typeof jest < "u" || typeof vi < "u";
  if (nA && !pH) {
    var rA = (
      // $FlowIgnore
      typeof globalThis < "u" ? globalThis : nA ? window : __webpack_require__.g
    ), aA = "__EMOTION_REACT_" + oH.version.split(".")[0] + "__";
    rA[aA] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), rA[aA] = !0;
  }
}
function vH(a, r) {
  return r || (r = a.slice(0)), Object.freeze(Object.defineProperties(a, {
    raw: {
      value: Object.freeze(r)
    }
  }));
}
const hH = Math.min, mH = Math.max, c0 = Math.round, Hy = Math.floor, f0 = (a) => ({
  x: a,
  y: a
});
function gH(a) {
  const {
    x: r,
    y: u,
    width: f,
    height: c
  } = a;
  return {
    width: f,
    height: c,
    top: u,
    left: r,
    right: r + f,
    bottom: u + c,
    x: r,
    y: u
  };
}
function kD(a) {
  return LD(a) ? (a.nodeName || "").toLowerCase() : "#document";
}
function Tu(a) {
  var r;
  return (a == null || (r = a.ownerDocument) == null ? void 0 : r.defaultView) || window;
}
function MD(a) {
  var r;
  return (r = (LD(a) ? a.ownerDocument : a.document) || window.document) == null ? void 0 : r.documentElement;
}
function LD(a) {
  return a instanceof Node || a instanceof Tu(a).Node;
}
function yH(a) {
  return a instanceof Element || a instanceof Tu(a).Element;
}
function ex(a) {
  return a instanceof HTMLElement || a instanceof Tu(a).HTMLElement;
}
function iA(a) {
  return typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof Tu(a).ShadowRoot;
}
function FD(a) {
  const {
    overflow: r,
    overflowX: u,
    overflowY: f,
    display: c
  } = tx(a);
  return /auto|scroll|overlay|hidden|clip/.test(r + f + u) && !["inline", "contents"].includes(c);
}
function bH() {
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function CH(a) {
  return ["html", "body", "#document"].includes(kD(a));
}
function tx(a) {
  return Tu(a).getComputedStyle(a);
}
function SH(a) {
  if (kD(a) === "html")
    return a;
  const r = (
    // Step into the shadow DOM of the parent of a slotted node.
    a.assignedSlot || // DOM Element detected.
    a.parentNode || // ShadowRoot detected.
    iA(a) && a.host || // Fallback.
    MD(a)
  );
  return iA(r) ? r.host : r;
}
function BD(a) {
  const r = SH(a);
  return CH(r) ? a.ownerDocument ? a.ownerDocument.body : a.body : ex(r) && FD(r) ? r : BD(r);
}
function d0(a, r, u) {
  var f;
  r === void 0 && (r = []), u === void 0 && (u = !0);
  const c = BD(a), p = c === ((f = a.ownerDocument) == null ? void 0 : f.body), h = Tu(c);
  return p ? r.concat(h, h.visualViewport || [], FD(c) ? c : [], h.frameElement && u ? d0(h.frameElement) : []) : r.concat(c, d0(c, [], u));
}
function EH(a) {
  const r = tx(a);
  let u = parseFloat(r.width) || 0, f = parseFloat(r.height) || 0;
  const c = ex(a), p = c ? a.offsetWidth : u, h = c ? a.offsetHeight : f, C = c0(u) !== p || c0(f) !== h;
  return C && (u = p, f = h), {
    width: u,
    height: f,
    $: C
  };
}
function nx(a) {
  return yH(a) ? a : a.contextElement;
}
function oA(a) {
  const r = nx(a);
  if (!ex(r))
    return f0(1);
  const u = r.getBoundingClientRect(), {
    width: f,
    height: c,
    $: p
  } = EH(r);
  let h = (p ? c0(u.width) : u.width) / f, C = (p ? c0(u.height) : u.height) / c;
  return (!h || !Number.isFinite(h)) && (h = 1), (!C || !Number.isFinite(C)) && (C = 1), {
    x: h,
    y: C
  };
}
const xH = /* @__PURE__ */ f0(0);
function wH(a) {
  const r = Tu(a);
  return !bH() || !r.visualViewport ? xH : {
    x: r.visualViewport.offsetLeft,
    y: r.visualViewport.offsetTop
  };
}
function RH(a, r, u) {
  return !1;
}
function uA(a, r, u, f) {
  r === void 0 && (r = !1);
  const c = a.getBoundingClientRect(), p = nx(a);
  let h = f0(1);
  r && (h = oA(a));
  const C = RH() ? wH(p) : f0(0);
  let y = (c.left + C.x) / h.x, E = (c.top + C.y) / h.y, w = c.width / h.x, T = c.height / h.y;
  if (p) {
    const A = Tu(p), O = f;
    let L = A, M = L.frameElement;
    for (; M && f && O !== L; ) {
      const N = oA(M), P = M.getBoundingClientRect(), $ = tx(M), H = P.left + (M.clientLeft + parseFloat($.paddingLeft)) * N.x, z = P.top + (M.clientTop + parseFloat($.paddingTop)) * N.y;
      y *= N.x, E *= N.y, w *= N.x, T *= N.y, y += H, E += z, L = Tu(M), M = L.frameElement;
    }
  }
  return gH({
    width: w,
    height: T,
    x: y,
    y: E
  });
}
function TH(a, r) {
  let u = null, f;
  const c = MD(a);
  function p() {
    var C;
    clearTimeout(f), (C = u) == null || C.disconnect(), u = null;
  }
  function h(C, y) {
    C === void 0 && (C = !1), y === void 0 && (y = 1), p();
    const {
      left: E,
      top: w,
      width: T,
      height: A
    } = a.getBoundingClientRect();
    if (C || r(), !T || !A)
      return;
    const O = Hy(w), L = Hy(c.clientWidth - (E + T)), M = Hy(c.clientHeight - (w + A)), N = Hy(E), $ = {
      rootMargin: -O + "px " + -L + "px " + -M + "px " + -N + "px",
      threshold: mH(0, hH(1, y)) || 1
    };
    let H = !0;
    function z(V) {
      const j = V[0].intersectionRatio;
      if (j !== y) {
        if (!H)
          return h();
        j ? h(!1, j) : f = setTimeout(() => {
          h(!1, 1e-7);
        }, 1e3);
      }
      H = !1;
    }
    try {
      u = new IntersectionObserver(z, {
        ...$,
        // Handle <iframe>s
        root: c.ownerDocument
      });
    } catch {
      u = new IntersectionObserver(z, $);
    }
    u.observe(a);
  }
  return h(!0), p;
}
function IH(a, r, u, f) {
  f === void 0 && (f = {});
  const {
    ancestorScroll: c = !0,
    ancestorResize: p = !0,
    elementResize: h = typeof ResizeObserver == "function",
    layoutShift: C = typeof IntersectionObserver == "function",
    animationFrame: y = !1
  } = f, E = nx(a), w = c || p ? [...E ? d0(E) : [], ...d0(r)] : [];
  w.forEach((P) => {
    c && P.addEventListener("scroll", u, {
      passive: !0
    }), p && P.addEventListener("resize", u);
  });
  const T = E && C ? TH(E, u) : null;
  let A = -1, O = null;
  h && (O = new ResizeObserver((P) => {
    let [$] = P;
    $ && $.target === E && O && (O.unobserve(r), cancelAnimationFrame(A), A = requestAnimationFrame(() => {
      var H;
      (H = O) == null || H.observe(r);
    })), u();
  }), E && !y && O.observe(E), O.observe(r));
  let L, M = y ? uA(a) : null;
  y && N();
  function N() {
    const P = uA(a);
    M && (P.x !== M.x || P.y !== M.y || P.width !== M.width || P.height !== M.height) && u(), M = P, L = requestAnimationFrame(N);
  }
  return u(), () => {
    var P;
    w.forEach(($) => {
      c && $.removeEventListener("scroll", u), p && $.removeEventListener("resize", u);
    }), T == null || T(), (P = O) == null || P.disconnect(), O = null, y && cancelAnimationFrame(L);
  };
}
var lE = react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect, AH = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], p0 = function() {
};
function OH(a, r) {
  return r ? r[0] === "-" ? a + r : a + "__" + r : a;
}
function DH(a, r) {
  for (var u = arguments.length, f = new Array(u > 2 ? u - 2 : 0), c = 2; c < u; c++)
    f[c - 2] = arguments[c];
  var p = [].concat(f);
  if (r && a)
    for (var h in r)
      r.hasOwnProperty(h) && r[h] && p.push("".concat(OH(a, h)));
  return p.filter(function(C) {
    return C;
  }).map(function(C) {
    return String(C).trim();
  }).join(" ");
}
var v0 = function(r) {
  return HH(r) ? r.filter(Boolean) : fc(r) === "object" && r !== null ? [r] : [];
}, VD = function(r) {
  r.className, r.clearValue, r.cx, r.getStyles, r.getClassNames, r.getValue, r.hasValue, r.isMulti, r.isRtl, r.options, r.selectOption, r.selectProps, r.setValue, r.theme;
  var u = ko(r, AH);
  return rt({}, u);
}, On = function(r, u, f) {
  var c = r.cx, p = r.getStyles, h = r.getClassNames, C = r.className;
  return {
    css: p(u, r),
    className: c(f ?? {}, h(u, r), C)
  };
};
function V0(a) {
  return [document.documentElement, document.body, window].indexOf(a) > -1;
}
function NH(a) {
  return V0(a) ? window.innerHeight : a.clientHeight;
}
function PD(a) {
  return V0(a) ? window.pageYOffset : a.scrollTop;
}
function h0(a, r) {
  if (V0(a)) {
    window.scrollTo(0, r);
    return;
  }
  a.scrollTop = r;
}
function kH(a) {
  var r = getComputedStyle(a), u = r.position === "absolute", f = /(auto|scroll)/;
  if (r.position === "fixed")
    return document.documentElement;
  for (var c = a; c = c.parentElement; )
    if (r = getComputedStyle(c), !(u && r.position === "static") && f.test(r.overflow + r.overflowY + r.overflowX))
      return c;
  return document.documentElement;
}
function MH(a, r, u, f) {
  return u * ((a = a / f - 1) * a * a + 1) + r;
}
function _y(a, r) {
  var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, f = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : p0, c = PD(a), p = r - c, h = 10, C = 0;
  function y() {
    C += h;
    var E = MH(C, c, p, u);
    h0(a, E), C < u ? window.requestAnimationFrame(y) : f(a);
  }
  y();
}
function lA(a, r) {
  var u = a.getBoundingClientRect(), f = r.getBoundingClientRect(), c = r.offsetHeight / 3;
  f.bottom + c > u.bottom ? h0(a, Math.min(r.offsetTop + r.clientHeight - a.offsetHeight + c, a.scrollHeight)) : f.top - c < u.top && h0(a, Math.max(r.offsetTop - c, 0));
}
function LH(a) {
  var r = a.getBoundingClientRect();
  return {
    bottom: r.bottom,
    height: r.height,
    left: r.left,
    right: r.right,
    top: r.top,
    width: r.width
  };
}
function sA() {
  try {
    return document.createEvent("TouchEvent"), !0;
  } catch {
    return !1;
  }
}
function FH() {
  try {
    return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
  } catch {
    return !1;
  }
}
var HD = !1, BH = {
  get passive() {
    return HD = !0;
  }
}, zy = typeof window < "u" ? window : {};
zy.addEventListener && zy.removeEventListener && (zy.addEventListener("p", p0, BH), zy.removeEventListener("p", p0, !1));
var VH = HD;
function PH(a) {
  return a != null;
}
function HH(a) {
  return Array.isArray(a);
}
function th(a, r, u) {
  return a ? r : u;
}
var _H = function(r) {
  for (var u = arguments.length, f = new Array(u > 1 ? u - 1 : 0), c = 1; c < u; c++)
    f[c - 1] = arguments[c];
  var p = Object.entries(r).filter(function(h) {
    var C = xu(h, 1), y = C[0];
    return !f.includes(y);
  });
  return p.reduce(function(h, C) {
    var y = xu(C, 2), E = y[0], w = y[1];
    return h[E] = w, h;
  }, {});
}, zH = ["children", "innerProps"], GH = ["children", "innerProps"];
function jH(a) {
  var r = a.maxHeight, u = a.menuEl, f = a.minHeight, c = a.placement, p = a.shouldScroll, h = a.isFixedPosition, C = a.controlHeight, y = kH(u), E = {
    placement: "bottom",
    maxHeight: r
  };
  if (!u || !u.offsetParent)
    return E;
  var w = y.getBoundingClientRect(), T = w.height, A = u.getBoundingClientRect(), O = A.bottom, L = A.height, M = A.top, N = u.offsetParent.getBoundingClientRect(), P = N.top, $ = h ? window.innerHeight : NH(y), H = PD(y), z = parseInt(getComputedStyle(u).marginBottom, 10), V = parseInt(getComputedStyle(u).marginTop, 10), j = P - V, B = $ - M, G = j + H, ae = T - H - M, ge = O - $ + H + z, de = H + M - V, Ee = 160;
  switch (c) {
    case "auto":
    case "bottom":
      if (B >= L)
        return {
          placement: "bottom",
          maxHeight: r
        };
      if (ae >= L && !h)
        return p && _y(y, ge, Ee), {
          placement: "bottom",
          maxHeight: r
        };
      if (!h && ae >= f || h && B >= f) {
        p && _y(y, ge, Ee);
        var ye = h ? B - z : ae - z;
        return {
          placement: "bottom",
          maxHeight: ye
        };
      }
      if (c === "auto" || h) {
        var ke = r, Ue = h ? j : G;
        return Ue >= f && (ke = Math.min(Ue - z - C, r)), {
          placement: "top",
          maxHeight: ke
        };
      }
      if (c === "bottom")
        return p && h0(y, ge), {
          placement: "bottom",
          maxHeight: r
        };
      break;
    case "top":
      if (j >= L)
        return {
          placement: "top",
          maxHeight: r
        };
      if (G >= L && !h)
        return p && _y(y, de, Ee), {
          placement: "top",
          maxHeight: r
        };
      if (!h && G >= f || h && j >= f) {
        var Se = r;
        return (!h && G >= f || h && j >= f) && (Se = h ? j - V : G - V), p && _y(y, de, Ee), {
          placement: "top",
          maxHeight: Se
        };
      }
      return {
        placement: "bottom",
        maxHeight: r
      };
    default:
      throw new Error('Invalid placement provided "'.concat(c, '".'));
  }
  return E;
}
function UH(a) {
  var r = {
    bottom: "top",
    top: "bottom"
  };
  return a ? r[a] : "bottom";
}
var _D = function(r) {
  return r === "auto" ? "bottom" : r;
}, WH = function(r, u) {
  var f, c = r.placement, p = r.theme, h = p.borderRadius, C = p.spacing, y = p.colors;
  return rt((f = {
    label: "menu"
  }, eh(f, UH(c), "100%"), eh(f, "position", "absolute"), eh(f, "width", "100%"), eh(f, "zIndex", 1), f), u ? {} : {
    backgroundColor: y.neutral0,
    borderRadius: h,
    boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
    marginBottom: C.menuGutter,
    marginTop: C.menuGutter
  });
}, zD = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null), XH = function(r) {
  var u = r.children, f = r.minMenuHeight, c = r.maxMenuHeight, p = r.menuPlacement, h = r.menuPosition, C = r.menuShouldScrollIntoView, y = r.theme, E = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(zD) || {}, w = E.setPortalPlacement, T = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(c), O = xu(A, 2), L = O[0], M = O[1], N = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), P = xu(N, 2), $ = P[0], H = P[1], z = y.spacing.controlHeight;
  return lE(function() {
    var V = T.current;
    if (V) {
      var j = h === "fixed", B = C && !j, G = jH({
        maxHeight: c,
        menuEl: V,
        minHeight: f,
        placement: p,
        shouldScroll: B,
        isFixedPosition: j,
        controlHeight: z
      });
      M(G.maxHeight), H(G.placement), w == null || w(G.placement);
    }
  }, [c, p, h, C, f, w, z]), u({
    ref: T,
    placerProps: rt(rt({}, r), {}, {
      placement: $ || _D(p),
      maxHeight: L
    })
  });
}, ZH = function(r) {
  var u = r.children, f = r.innerRef, c = r.innerProps;
  return it("div", ot({}, On(r, "menu", {
    menu: !0
  }), {
    ref: f
  }, c), u);
}, YH = ZH, $H = function(r, u) {
  var f = r.maxHeight, c = r.theme.spacing.baseUnit;
  return rt({
    maxHeight: f,
    overflowY: "auto",
    position: "relative",
    // required for offset[Height, Top] > keyboard scroll
    WebkitOverflowScrolling: "touch"
  }, u ? {} : {
    paddingBottom: c,
    paddingTop: c
  });
}, QH = function(r) {
  var u = r.children, f = r.innerProps, c = r.innerRef, p = r.isMulti;
  return it("div", ot({}, On(r, "menuList", {
    "menu-list": !0,
    "menu-list--is-multi": p
  }), {
    ref: c
  }, f), u);
}, GD = function(r, u) {
  var f = r.theme, c = f.spacing.baseUnit, p = f.colors;
  return rt({
    textAlign: "center"
  }, u ? {} : {
    color: p.neutral40,
    padding: "".concat(c * 2, "px ").concat(c * 3, "px")
  });
}, JH = GD, qH = GD, KH = function(r) {
  var u = r.children, f = u === void 0 ? "No options" : u, c = r.innerProps, p = ko(r, zH);
  return it("div", ot({}, On(rt(rt({}, p), {}, {
    children: f,
    innerProps: c
  }), "noOptionsMessage", {
    "menu-notice": !0,
    "menu-notice--no-options": !0
  }), c), f);
}, e_ = function(r) {
  var u = r.children, f = u === void 0 ? "Loading..." : u, c = r.innerProps, p = ko(r, GH);
  return it("div", ot({}, On(rt(rt({}, p), {}, {
    children: f,
    innerProps: c
  }), "loadingMessage", {
    "menu-notice": !0,
    "menu-notice--loading": !0
  }), c), f);
}, t_ = function(r) {
  var u = r.rect, f = r.offset, c = r.position;
  return {
    left: u.left,
    position: c,
    top: f,
    width: u.width,
    zIndex: 1
  };
}, n_ = function(r) {
  var u = r.appendTo, f = r.children, c = r.controlElement, p = r.innerProps, h = r.menuPlacement, C = r.menuPosition, y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), E = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), w = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(_D(h)), T = xu(w, 2), A = T[0], O = T[1], L = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    return {
      setPortalPlacement: O
    };
  }, []), M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), N = xu(M, 2), P = N[0], $ = N[1], H = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function() {
    if (c) {
      var B = LH(c), G = C === "fixed" ? 0 : window.pageYOffset, ae = B[A] + G;
      (ae !== (P == null ? void 0 : P.offset) || B.left !== (P == null ? void 0 : P.rect.left) || B.width !== (P == null ? void 0 : P.rect.width)) && $({
        offset: ae,
        rect: B
      });
    }
  }, [c, C, A, P == null ? void 0 : P.offset, P == null ? void 0 : P.rect.left, P == null ? void 0 : P.rect.width]);
  lE(function() {
    H();
  }, [H]);
  var z = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function() {
    typeof E.current == "function" && (E.current(), E.current = null), c && y.current && (E.current = IH(c, y.current, H, {
      elementResize: "ResizeObserver" in window
    }));
  }, [c, H]);
  lE(function() {
    z();
  }, [z]);
  var V = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(B) {
    y.current = B, z();
  }, [z]);
  if (!u && C !== "fixed" || !P)
    return null;
  var j = it("div", ot({
    ref: V
  }, On(rt(rt({}, r), {}, {
    offset: P.offset,
    position: C,
    rect: P.rect
  }), "menuPortal", {
    "menu-portal": !0
  }), p), f);
  return it(zD.Provider, {
    value: L
  }, u ? /* @__PURE__ */ YA.createPortal(j, u) : j);
}, r_ = function(r) {
  var u = r.isDisabled, f = r.isRtl;
  return {
    label: "container",
    direction: f ? "rtl" : void 0,
    pointerEvents: u ? "none" : void 0,
    // cancel mouse events when disabled
    position: "relative"
  };
}, a_ = function(r) {
  var u = r.children, f = r.innerProps, c = r.isDisabled, p = r.isRtl;
  return it("div", ot({}, On(r, "container", {
    "--is-disabled": c,
    "--is-rtl": p
  }), f), u);
}, i_ = function(r, u) {
  var f = r.theme.spacing, c = r.isMulti, p = r.hasValue, h = r.selectProps.controlShouldRenderValue;
  return rt({
    alignItems: "center",
    display: c && p && h ? "flex" : "grid",
    flex: 1,
    flexWrap: "wrap",
    WebkitOverflowScrolling: "touch",
    position: "relative",
    overflow: "hidden"
  }, u ? {} : {
    padding: "".concat(f.baseUnit / 2, "px ").concat(f.baseUnit * 2, "px")
  });
}, o_ = function(r) {
  var u = r.children, f = r.innerProps, c = r.isMulti, p = r.hasValue;
  return it("div", ot({}, On(r, "valueContainer", {
    "value-container": !0,
    "value-container--is-multi": c,
    "value-container--has-value": p
  }), f), u);
}, u_ = function() {
  return {
    alignItems: "center",
    alignSelf: "stretch",
    display: "flex",
    flexShrink: 0
  };
}, l_ = function(r) {
  var u = r.children, f = r.innerProps;
  return it("div", ot({}, On(r, "indicatorsContainer", {
    indicators: !0
  }), f), u);
}, cA, s_ = ["size"], c_ = ["innerProps", "isRtl", "size"];
function f_() {
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
}
var d_ =  false ? 0 : {
  name: "tj5bde-Svg",
  styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,  */",
  toString: f_
}, jD = function(r) {
  var u = r.size, f = ko(r, s_);
  return it("svg", ot({
    height: u,
    width: u,
    viewBox: "0 0 20 20",
    "aria-hidden": "true",
    focusable: "false",
    css: d_
  }, f));
}, rx = function(r) {
  return it(jD, ot({
    size: 20
  }, r), it("path", {
    d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
  }));
}, UD = function(r) {
  return it(jD, ot({
    size: 20
  }, r), it("path", {
    d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
  }));
}, WD = function(r, u) {
  var f = r.isFocused, c = r.theme, p = c.spacing.baseUnit, h = c.colors;
  return rt({
    label: "indicatorContainer",
    display: "flex",
    transition: "color 150ms"
  }, u ? {} : {
    color: f ? h.neutral60 : h.neutral20,
    padding: p * 2,
    ":hover": {
      color: f ? h.neutral80 : h.neutral40
    }
  });
}, p_ = WD, v_ = function(r) {
  var u = r.children, f = r.innerProps;
  return it("div", ot({}, On(r, "dropdownIndicator", {
    indicator: !0,
    "dropdown-indicator": !0
  }), f), u || it(UD, null));
}, h_ = WD, m_ = function(r) {
  var u = r.children, f = r.innerProps;
  return it("div", ot({}, On(r, "clearIndicator", {
    indicator: !0,
    "clear-indicator": !0
  }), f), u || it(rx, null));
}, g_ = function(r, u) {
  var f = r.isDisabled, c = r.theme, p = c.spacing.baseUnit, h = c.colors;
  return rt({
    label: "indicatorSeparator",
    alignSelf: "stretch",
    width: 1
  }, u ? {} : {
    backgroundColor: f ? h.neutral10 : h.neutral20,
    marginBottom: p * 2,
    marginTop: p * 2
  });
}, y_ = function(r) {
  var u = r.innerProps;
  return it("span", ot({}, u, On(r, "indicatorSeparator", {
    "indicator-separator": !0
  })));
}, b_ = lH(cA || (cA = vH([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))), C_ = function(r, u) {
  var f = r.isFocused, c = r.size, p = r.theme, h = p.colors, C = p.spacing.baseUnit;
  return rt({
    label: "loadingIndicator",
    display: "flex",
    transition: "color 150ms",
    alignSelf: "center",
    fontSize: c,
    lineHeight: 1,
    marginRight: c,
    textAlign: "center",
    verticalAlign: "middle"
  }, u ? {} : {
    color: f ? h.neutral60 : h.neutral20,
    padding: C * 2
  });
}, LS = function(r) {
  var u = r.delay, f = r.offset;
  return it("span", {
    css: /* @__PURE__ */ KE({
      animation: "".concat(b_, " 1s ease-in-out ").concat(u, "ms infinite;"),
      backgroundColor: "currentColor",
      borderRadius: "1em",
      display: "inline-block",
      marginLeft: f ? "1em" : void 0,
      height: "1em",
      verticalAlign: "top",
      width: "1em"
    },  false ? 0 : ";label:LoadingDot;",  false ? 0 : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,  */")
  });
}, S_ = function(r) {
  var u = r.innerProps, f = r.isRtl, c = r.size, p = c === void 0 ? 4 : c, h = ko(r, c_);
  return it("div", ot({}, On(rt(rt({}, h), {}, {
    innerProps: u,
    isRtl: f,
    size: p
  }), "loadingIndicator", {
    indicator: !0,
    "loading-indicator": !0
  }), u), it(LS, {
    delay: 0,
    offset: f
  }), it(LS, {
    delay: 160,
    offset: !0
  }), it(LS, {
    delay: 320,
    offset: !f
  }));
}, E_ = function(r, u) {
  var f = r.isDisabled, c = r.isFocused, p = r.theme, h = p.colors, C = p.borderRadius, y = p.spacing;
  return rt({
    label: "control",
    alignItems: "center",
    cursor: "default",
    display: "flex",
    flexWrap: "wrap",
    justifyContent: "space-between",
    minHeight: y.controlHeight,
    outline: "0 !important",
    position: "relative",
    transition: "all 100ms"
  }, u ? {} : {
    backgroundColor: f ? h.neutral5 : h.neutral0,
    borderColor: f ? h.neutral10 : c ? h.primary : h.neutral20,
    borderRadius: C,
    borderStyle: "solid",
    borderWidth: 1,
    boxShadow: c ? "0 0 0 1px ".concat(h.primary) : void 0,
    "&:hover": {
      borderColor: c ? h.primary : h.neutral30
    }
  });
}, x_ = function(r) {
  var u = r.children, f = r.isDisabled, c = r.isFocused, p = r.innerRef, h = r.innerProps, C = r.menuIsOpen;
  return it("div", ot({
    ref: p
  }, On(r, "control", {
    control: !0,
    "control--is-disabled": f,
    "control--is-focused": c,
    "control--menu-is-open": C
  }), h, {
    "aria-disabled": f || void 0
  }), u);
}, w_ = x_, R_ = ["data"], T_ = function(r, u) {
  var f = r.theme.spacing;
  return u ? {} : {
    paddingBottom: f.baseUnit * 2,
    paddingTop: f.baseUnit * 2
  };
}, I_ = function(r) {
  var u = r.children, f = r.cx, c = r.getStyles, p = r.getClassNames, h = r.Heading, C = r.headingProps, y = r.innerProps, E = r.label, w = r.theme, T = r.selectProps;
  return it("div", ot({}, On(r, "group", {
    group: !0
  }), y), it(h, ot({}, C, {
    selectProps: T,
    theme: w,
    getStyles: c,
    getClassNames: p,
    cx: f
  }), E), it("div", null, u));
}, A_ = function(r, u) {
  var f = r.theme, c = f.colors, p = f.spacing;
  return rt({
    label: "group",
    cursor: "default",
    display: "block"
  }, u ? {} : {
    color: c.neutral40,
    fontSize: "75%",
    fontWeight: 500,
    marginBottom: "0.25em",
    paddingLeft: p.baseUnit * 3,
    paddingRight: p.baseUnit * 3,
    textTransform: "uppercase"
  });
}, O_ = function(r) {
  var u = VD(r);
  u.data;
  var f = ko(u, R_);
  return it("div", ot({}, On(r, "groupHeading", {
    "group-heading": !0
  }), f));
}, D_ = I_, N_ = ["innerRef", "isDisabled", "isHidden", "inputClassName"], k_ = function(r, u) {
  var f = r.isDisabled, c = r.value, p = r.theme, h = p.spacing, C = p.colors;
  return rt(rt({
    visibility: f ? "hidden" : "visible",
    // force css to recompute when value change due to @emotion bug.
    // We can remove it whenever the bug is fixed.
    transform: c ? "translateZ(0)" : ""
  }, M_), u ? {} : {
    margin: h.baseUnit / 2,
    paddingBottom: h.baseUnit / 2,
    paddingTop: h.baseUnit / 2,
    color: C.neutral80
  });
}, XD = {
  gridArea: "1 / 2",
  font: "inherit",
  minWidth: "2px",
  border: 0,
  margin: 0,
  outline: 0,
  padding: 0
}, M_ = {
  flex: "1 1 auto",
  display: "inline-grid",
  gridArea: "1 / 1 / 2 / 3",
  gridTemplateColumns: "0 min-content",
  "&:after": rt({
    content: 'attr(data-value) " "',
    visibility: "hidden",
    whiteSpace: "pre"
  }, XD)
}, L_ = function(r) {
  return rt({
    label: "input",
    color: "inherit",
    background: 0,
    opacity: r ? 0 : 1,
    width: "100%"
  }, XD);
}, F_ = function(r) {
  var u = r.cx, f = r.value, c = VD(r), p = c.innerRef, h = c.isDisabled, C = c.isHidden, y = c.inputClassName, E = ko(c, N_);
  return it("div", ot({}, On(r, "input", {
    "input-container": !0
  }), {
    "data-value": f || ""
  }), it("input", ot({
    className: u({
      input: !0
    }, y),
    ref: p,
    style: L_(C),
    disabled: h
  }, E)));
}, B_ = F_, V_ = function(r, u) {
  var f = r.theme, c = f.spacing, p = f.borderRadius, h = f.colors;
  return rt({
    label: "multiValue",
    display: "flex",
    minWidth: 0
  }, u ? {} : {
    backgroundColor: h.neutral10,
    borderRadius: p / 2,
    margin: c.baseUnit / 2
  });
}, P_ = function(r, u) {
  var f = r.theme, c = f.borderRadius, p = f.colors, h = r.cropWithEllipsis;
  return rt({
    overflow: "hidden",
    textOverflow: h || h === void 0 ? "ellipsis" : void 0,
    whiteSpace: "nowrap"
  }, u ? {} : {
    borderRadius: c / 2,
    color: p.neutral80,
    fontSize: "85%",
    padding: 3,
    paddingLeft: 6
  });
}, H_ = function(r, u) {
  var f = r.theme, c = f.spacing, p = f.borderRadius, h = f.colors, C = r.isFocused;
  return rt({
    alignItems: "center",
    display: "flex"
  }, u ? {} : {
    borderRadius: p / 2,
    backgroundColor: C ? h.dangerLight : void 0,
    paddingLeft: c.baseUnit,
    paddingRight: c.baseUnit,
    ":hover": {
      backgroundColor: h.dangerLight,
      color: h.danger
    }
  });
}, ZD = function(r) {
  var u = r.children, f = r.innerProps;
  return it("div", f, u);
}, __ = ZD, z_ = ZD;
function G_(a) {
  var r = a.children, u = a.innerProps;
  return it("div", ot({
    role: "button"
  }, u), r || it(rx, {
    size: 14
  }));
}
var j_ = function(r) {
  var u = r.children, f = r.components, c = r.data, p = r.innerProps, h = r.isDisabled, C = r.removeProps, y = r.selectProps, E = f.Container, w = f.Label, T = f.Remove;
  return it(E, {
    data: c,
    innerProps: rt(rt({}, On(r, "multiValue", {
      "multi-value": !0,
      "multi-value--is-disabled": h
    })), p),
    selectProps: y
  }, it(w, {
    data: c,
    innerProps: rt({}, On(r, "multiValueLabel", {
      "multi-value__label": !0
    })),
    selectProps: y
  }, u), it(T, {
    data: c,
    innerProps: rt(rt({}, On(r, "multiValueRemove", {
      "multi-value__remove": !0
    })), {}, {
      "aria-label": "Remove ".concat(u || "option")
    }, C),
    selectProps: y
  }));
}, U_ = j_, W_ = function(r, u) {
  var f = r.isDisabled, c = r.isFocused, p = r.isSelected, h = r.theme, C = h.spacing, y = h.colors;
  return rt({
    label: "option",
    cursor: "default",
    display: "block",
    fontSize: "inherit",
    width: "100%",
    userSelect: "none",
    WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
  }, u ? {} : {
    backgroundColor: p ? y.primary : c ? y.primary25 : "transparent",
    color: f ? y.neutral20 : p ? y.neutral0 : "inherit",
    padding: "".concat(C.baseUnit * 2, "px ").concat(C.baseUnit * 3, "px"),
    // provide some affordance on touch devices
    ":active": {
      backgroundColor: f ? void 0 : p ? y.primary : y.primary50
    }
  });
}, X_ = function(r) {
  var u = r.children, f = r.isDisabled, c = r.isFocused, p = r.isSelected, h = r.innerRef, C = r.innerProps;
  return it("div", ot({}, On(r, "option", {
    option: !0,
    "option--is-disabled": f,
    "option--is-focused": c,
    "option--is-selected": p
  }), {
    ref: h,
    "aria-disabled": f
  }, C), u);
}, Z_ = X_, Y_ = function(r, u) {
  var f = r.theme, c = f.spacing, p = f.colors;
  return rt({
    label: "placeholder",
    gridArea: "1 / 1 / 2 / 3"
  }, u ? {} : {
    color: p.neutral50,
    marginLeft: c.baseUnit / 2,
    marginRight: c.baseUnit / 2
  });
}, $_ = function(r) {
  var u = r.children, f = r.innerProps;
  return it("div", ot({}, On(r, "placeholder", {
    placeholder: !0
  }), f), u);
}, Q_ = $_, J_ = function(r, u) {
  var f = r.isDisabled, c = r.theme, p = c.spacing, h = c.colors;
  return rt({
    label: "singleValue",
    gridArea: "1 / 1 / 2 / 3",
    maxWidth: "100%",
    overflow: "hidden",
    textOverflow: "ellipsis",
    whiteSpace: "nowrap"
  }, u ? {} : {
    color: f ? h.neutral40 : h.neutral80,
    marginLeft: p.baseUnit / 2,
    marginRight: p.baseUnit / 2
  });
}, q_ = function(r) {
  var u = r.children, f = r.isDisabled, c = r.innerProps;
  return it("div", ot({}, On(r, "singleValue", {
    "single-value": !0,
    "single-value--is-disabled": f
  }), c), u);
}, K_ = q_, ax = {
  ClearIndicator: m_,
  Control: w_,
  DropdownIndicator: v_,
  DownChevron: UD,
  CrossIcon: rx,
  Group: D_,
  GroupHeading: O_,
  IndicatorsContainer: l_,
  IndicatorSeparator: y_,
  Input: B_,
  LoadingIndicator: S_,
  Menu: YH,
  MenuList: QH,
  MenuPortal: n_,
  LoadingMessage: e_,
  NoOptionsMessage: KH,
  MultiValue: U_,
  MultiValueContainer: __,
  MultiValueLabel: z_,
  MultiValueRemove: G_,
  Option: Z_,
  Placeholder: Q_,
  SelectContainer: a_,
  SingleValue: K_,
  ValueContainer: o_
}, ez = function(r) {
  return rt(rt({}, ax), r.components);
}, fA = Number.isNaN || function(r) {
  return typeof r == "number" && r !== r;
};
function tz(a, r) {
  return !!(a === r || fA(a) && fA(r));
}
function nz(a, r) {
  if (a.length !== r.length)
    return !1;
  for (var u = 0; u < a.length; u++)
    if (!tz(a[u], r[u]))
      return !1;
  return !0;
}
function rz(a, r) {
  r === void 0 && (r = nz);
  var u = null;
  function f() {
    for (var c = [], p = 0; p < arguments.length; p++)
      c[p] = arguments[p];
    if (u && u.lastThis === this && r(c, u.lastArgs))
      return u.lastResult;
    var h = a.apply(this, c);
    return u = {
      lastResult: h,
      lastArgs: c,
      lastThis: this
    }, h;
  }
  return f.clear = function() {
    u = null;
  }, f;
}
function az() {
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
}
var iz =  false ? 0 : {
  name: "1f43avz-a11yText-A11yText",
  styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
  toString: az
}, oz = function(r) {
  return it("span", ot({
    css: iz
  }, r));
}, dA = oz, uz = {
  guidance: function(r) {
    var u = r.isSearchable, f = r.isMulti, c = r.tabSelectsValue, p = r.context, h = r.isInitialFocus;
    switch (p) {
      case "menu":
        return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(c ? ", press Tab to select the option and exit the menu" : "", ".");
      case "input":
        return h ? "".concat(r["aria-label"] || "Select", " is focused ").concat(u ? ",type to refine list" : "", ", press Down to open the menu, ").concat(f ? " press left to focus selected values" : "") : "";
      case "value":
        return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
      default:
        return "";
    }
  },
  onChange: function(r) {
    var u = r.action, f = r.label, c = f === void 0 ? "" : f, p = r.labels, h = r.isDisabled;
    switch (u) {
      case "deselect-option":
      case "pop-value":
      case "remove-value":
        return "option ".concat(c, ", deselected.");
      case "clear":
        return "All selected options have been cleared.";
      case "initial-input-focus":
        return "option".concat(p.length > 1 ? "s" : "", " ").concat(p.join(","), ", selected.");
      case "select-option":
        return h ? "option ".concat(c, " is disabled. Select another option.") : "option ".concat(c, ", selected.");
      default:
        return "";
    }
  },
  onFocus: function(r) {
    var u = r.context, f = r.focused, c = r.options, p = r.label, h = p === void 0 ? "" : p, C = r.selectValue, y = r.isDisabled, E = r.isSelected, w = r.isAppleDevice, T = function(M, N) {
      return M && M.length ? "".concat(M.indexOf(N) + 1, " of ").concat(M.length) : "";
    };
    if (u === "value" && C)
      return "value ".concat(h, " focused, ").concat(T(C, f), ".");
    if (u === "menu" && w) {
      var A = y ? " disabled" : "", O = "".concat(E ? " selected" : "").concat(A);
      return "".concat(h).concat(O, ", ").concat(T(c, f), ".");
    }
    return "";
  },
  onFilter: function(r) {
    var u = r.inputValue, f = r.resultsMessage;
    return "".concat(f).concat(u ? " for search term " + u : "", ".");
  }
}, lz = function(r) {
  var u = r.ariaSelection, f = r.focusedOption, c = r.focusedValue, p = r.focusableOptions, h = r.isFocused, C = r.selectValue, y = r.selectProps, E = r.id, w = r.isAppleDevice, T = y.ariaLiveMessages, A = y.getOptionLabel, O = y.inputValue, L = y.isMulti, M = y.isOptionDisabled, N = y.isSearchable, P = y.menuIsOpen, $ = y.options, H = y.screenReaderStatus, z = y.tabSelectsValue, V = y.isLoading, j = y["aria-label"], B = y["aria-live"], G = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    return rt(rt({}, uz), T || {});
  }, [T]), ae = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    var Ue = "";
    if (u && G.onChange) {
      var Se = u.option, Ke = u.options, ue = u.removedValue, xe = u.removedValues, Z = u.value, se = function(Pe) {
        return Array.isArray(Pe) ? null : Pe;
      }, me = ue || Se || se(Z), Te = me ? A(me) : "", Ie = Ke || xe || void 0, Oe = Ie ? Ie.map(A) : [], Ae = rt({
        // multiSelected items are usually items that have already been selected
        // or set by the user as a default value so we assume they are not disabled
        isDisabled: me && M(me, C),
        label: Te,
        labels: Oe
      }, u);
      Ue = G.onChange(Ae);
    }
    return Ue;
  }, [u, G, M, C, A]), ge = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    var Ue = "", Se = f || c, Ke = !!(f && C && C.includes(f));
    if (Se && G.onFocus) {
      var ue = {
        focused: Se,
        label: A(Se),
        isDisabled: M(Se, C),
        isSelected: Ke,
        options: p,
        context: Se === f ? "menu" : "value",
        selectValue: C,
        isAppleDevice: w
      };
      Ue = G.onFocus(ue);
    }
    return Ue;
  }, [f, c, A, M, G, p, C, w]), de = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    var Ue = "";
    if (P && $.length && !V && G.onFilter) {
      var Se = H({
        count: p.length
      });
      Ue = G.onFilter({
        inputValue: O,
        resultsMessage: Se
      });
    }
    return Ue;
  }, [p, O, P, G, $, H, V]), Ee = (u == null ? void 0 : u.action) === "initial-input-focus", ye = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    var Ue = "";
    if (G.guidance) {
      var Se = c ? "value" : P ? "menu" : "input";
      Ue = G.guidance({
        "aria-label": j,
        context: Se,
        isDisabled: f && M(f, C),
        isMulti: L,
        isSearchable: N,
        tabSelectsValue: z,
        isInitialFocus: Ee
      });
    }
    return Ue;
  }, [j, f, c, L, M, N, P, G, C, z, Ee]), ke = it(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, it("span", {
    id: "aria-selection"
  }, ae), it("span", {
    id: "aria-focused"
  }, ge), it("span", {
    id: "aria-results"
  }, de), it("span", {
    id: "aria-guidance"
  }, ye));
  return it(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, it(dA, {
    id: E
  }, Ee && ke), it(dA, {
    "aria-live": B,
    "aria-atomic": "false",
    "aria-relevant": "additions text",
    role: "log"
  }, h && !Ee && ke));
}, sz = lz, sE = [{
  base: "A",
  letters: "AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
}, {
  base: "AA",
  letters: "Ꜳ"
}, {
  base: "AE",
  letters: "ÆǼǢ"
}, {
  base: "AO",
  letters: "Ꜵ"
}, {
  base: "AU",
  letters: "Ꜷ"
}, {
  base: "AV",
  letters: "ꜸꜺ"
}, {
  base: "AY",
  letters: "Ꜽ"
}, {
  base: "B",
  letters: "BⒷＢḂḄḆɃƂƁ"
}, {
  base: "C",
  letters: "CⒸＣĆĈĊČÇḈƇȻꜾ"
}, {
  base: "D",
  letters: "DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"
}, {
  base: "DZ",
  letters: "ǱǄ"
}, {
  base: "Dz",
  letters: "ǲǅ"
}, {
  base: "E",
  letters: "EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
}, {
  base: "F",
  letters: "FⒻＦḞƑꝻ"
}, {
  base: "G",
  letters: "GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
}, {
  base: "H",
  letters: "HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"
}, {
  base: "I",
  letters: "IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
}, {
  base: "J",
  letters: "JⒿＪĴɈ"
}, {
  base: "K",
  letters: "KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
}, {
  base: "L",
  letters: "LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
}, {
  base: "LJ",
  letters: "Ǉ"
}, {
  base: "Lj",
  letters: "ǈ"
}, {
  base: "M",
  letters: "MⓂＭḾṀṂⱮƜ"
}, {
  base: "N",
  letters: "NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
}, {
  base: "NJ",
  letters: "Ǌ"
}, {
  base: "Nj",
  letters: "ǋ"
}, {
  base: "O",
  letters: "OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
}, {
  base: "OI",
  letters: "Ƣ"
}, {
  base: "OO",
  letters: "Ꝏ"
}, {
  base: "OU",
  letters: "Ȣ"
}, {
  base: "P",
  letters: "PⓅＰṔṖƤⱣꝐꝒꝔ"
}, {
  base: "Q",
  letters: "QⓆＱꝖꝘɊ"
}, {
  base: "R",
  letters: "RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
}, {
  base: "S",
  letters: "SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
}, {
  base: "T",
  letters: "TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"
}, {
  base: "TZ",
  letters: "Ꜩ"
}, {
  base: "U",
  letters: "UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
}, {
  base: "V",
  letters: "VⓋＶṼṾƲꝞɅ"
}, {
  base: "VY",
  letters: "Ꝡ"
}, {
  base: "W",
  letters: "WⓌＷẀẂŴẆẄẈⱲ"
}, {
  base: "X",
  letters: "XⓍＸẊẌ"
}, {
  base: "Y",
  letters: "YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"
}, {
  base: "Z",
  letters: "ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"
}, {
  base: "a",
  letters: "aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
}, {
  base: "aa",
  letters: "ꜳ"
}, {
  base: "ae",
  letters: "æǽǣ"
}, {
  base: "ao",
  letters: "ꜵ"
}, {
  base: "au",
  letters: "ꜷ"
}, {
  base: "av",
  letters: "ꜹꜻ"
}, {
  base: "ay",
  letters: "ꜽ"
}, {
  base: "b",
  letters: "bⓑｂḃḅḇƀƃɓ"
}, {
  base: "c",
  letters: "cⓒｃćĉċčçḉƈȼꜿↄ"
}, {
  base: "d",
  letters: "dⓓｄḋďḍḑḓḏđƌɖɗꝺ"
}, {
  base: "dz",
  letters: "ǳǆ"
}, {
  base: "e",
  letters: "eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
}, {
  base: "f",
  letters: "fⓕｆḟƒꝼ"
}, {
  base: "g",
  letters: "gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"
}, {
  base: "h",
  letters: "hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"
}, {
  base: "hv",
  letters: "ƕ"
}, {
  base: "i",
  letters: "iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"
}, {
  base: "j",
  letters: "jⓙｊĵǰɉ"
}, {
  base: "k",
  letters: "kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"
}, {
  base: "l",
  letters: "lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
}, {
  base: "lj",
  letters: "ǉ"
}, {
  base: "m",
  letters: "mⓜｍḿṁṃɱɯ"
}, {
  base: "n",
  letters: "nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"
}, {
  base: "nj",
  letters: "ǌ"
}, {
  base: "o",
  letters: "oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
}, {
  base: "oi",
  letters: "ƣ"
}, {
  base: "ou",
  letters: "ȣ"
}, {
  base: "oo",
  letters: "ꝏ"
}, {
  base: "p",
  letters: "pⓟｐṕṗƥᵽꝑꝓꝕ"
}, {
  base: "q",
  letters: "qⓠｑɋꝗꝙ"
}, {
  base: "r",
  letters: "rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
}, {
  base: "s",
  letters: "sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
}, {
  base: "t",
  letters: "tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"
}, {
  base: "tz",
  letters: "ꜩ"
}, {
  base: "u",
  letters: "uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
}, {
  base: "v",
  letters: "vⓥｖṽṿʋꝟʌ"
}, {
  base: "vy",
  letters: "ꝡ"
}, {
  base: "w",
  letters: "wⓦｗẁẃŵẇẅẘẉⱳ"
}, {
  base: "x",
  letters: "xⓧｘẋẍ"
}, {
  base: "y",
  letters: "yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"
}, {
  base: "z",
  letters: "zⓩｚźẑżžẓẕƶȥɀⱬꝣ"
}], cz = new RegExp("[" + sE.map(function(a) {
  return a.letters;
}).join("") + "]", "g"), YD = {};
for (var FS = 0; FS < sE.length; FS++)
  for (var BS = sE[FS], VS = 0; VS < BS.letters.length; VS++)
    YD[BS.letters[VS]] = BS.base;
var $D = function(r) {
  return r.replace(cz, function(u) {
    return YD[u];
  });
}, fz = rz($D), pA = function(r) {
  return r.replace(/^\s+|\s+$/g, "");
}, dz = function(r) {
  return "".concat(r.label, " ").concat(r.value);
}, pz = function(r) {
  return function(u, f) {
    if (u.data.__isNew__)
      return !0;
    var c = rt({
      ignoreCase: !0,
      ignoreAccents: !0,
      stringify: dz,
      trim: !0,
      matchFrom: "any"
    }, r), p = c.ignoreCase, h = c.ignoreAccents, C = c.stringify, y = c.trim, E = c.matchFrom, w = y ? pA(f) : f, T = y ? pA(C(u)) : C(u);
    return p && (w = w.toLowerCase(), T = T.toLowerCase()), h && (w = fz(w), T = $D(T)), E === "start" ? T.substr(0, w.length) === w : T.indexOf(w) > -1;
  };
}, vz = ["innerRef"];
function hz(a) {
  var r = a.innerRef, u = ko(a, vz), f = _H(u, "onExited", "in", "enter", "exit", "appear");
  return it("input", ot({
    ref: r
  }, f, {
    css: /* @__PURE__ */ KE({
      label: "dummyInput",
      // get rid of any default styles
      background: 0,
      border: 0,
      // important! this hides the flashing cursor
      caretColor: "transparent",
      fontSize: "inherit",
      gridArea: "1 / 1 / 2 / 3",
      outline: 0,
      padding: 0,
      // important! without `width` browsers won't allow focus
      width: 1,
      // remove cursor on desktop
      color: "transparent",
      // remove cursor on mobile whilst maintaining "scroll into view" behaviour
      left: -100,
      opacity: 0,
      position: "relative",
      transform: "scale(.01)"
    },  false ? 0 : ";label:DummyInput;",  false ? 0 : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
  }));
}
var mz = function(r) {
  r.cancelable && r.preventDefault(), r.stopPropagation();
};
function gz(a) {
  var r = a.isEnabled, u = a.onBottomArrive, f = a.onBottomLeave, c = a.onTopArrive, p = a.onTopLeave, h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0), E = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), w = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N, P) {
    if (E.current !== null) {
      var $ = E.current, H = $.scrollTop, z = $.scrollHeight, V = $.clientHeight, j = E.current, B = P > 0, G = z - V - H, ae = !1;
      G > P && h.current && (f && f(N), h.current = !1), B && C.current && (p && p(N), C.current = !1), B && P > G ? (u && !h.current && u(N), j.scrollTop = z, ae = !0, h.current = !0) : !B && -P > H && (c && !C.current && c(N), j.scrollTop = 0, ae = !0, C.current = !0), ae && mz(N);
    }
  }, [u, f, c, p]), T = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N) {
    w(N, N.deltaY);
  }, [w]), A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N) {
    y.current = N.changedTouches[0].clientY;
  }, []), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N) {
    var P = y.current - N.changedTouches[0].clientY;
    w(N, P);
  }, [w]), L = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N) {
    if (N) {
      var P = VH ? {
        passive: !1
      } : !1;
      N.addEventListener("wheel", T, P), N.addEventListener("touchstart", A, P), N.addEventListener("touchmove", O, P);
    }
  }, [O, A, T]), M = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(N) {
    N && (N.removeEventListener("wheel", T, !1), N.removeEventListener("touchstart", A, !1), N.removeEventListener("touchmove", O, !1));
  }, [O, A, T]);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function() {
    if (r) {
      var N = E.current;
      return L(N), function() {
        M(N);
      };
    }
  }, [r, L, M]), function(N) {
    E.current = N;
  };
}
var vA = ["boxSizing", "height", "overflow", "paddingRight", "position"], hA = {
  boxSizing: "border-box",
  // account for possible declaration `width: 100%;` on body
  overflow: "hidden",
  position: "relative",
  height: "100%"
};
function mA(a) {
  a.preventDefault();
}
function gA(a) {
  a.stopPropagation();
}
function yA() {
  var a = this.scrollTop, r = this.scrollHeight, u = a + this.offsetHeight;
  a === 0 ? this.scrollTop = 1 : u === r && (this.scrollTop = a - 1);
}
function bA() {
  return "ontouchstart" in window || navigator.maxTouchPoints;
}
var CA = !!(typeof window < "u" && window.document && window.document.createElement), Qv = 0, gd = {
  capture: !1,
  passive: !1
};
function yz(a) {
  var r = a.isEnabled, u = a.accountForScrollbars, f = u === void 0 ? !0 : u, c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({}), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), h = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(y) {
    if (CA) {
      var E = document.body, w = E && E.style;
      if (f && vA.forEach(function(L) {
        var M = w && w[L];
        c.current[L] = M;
      }), f && Qv < 1) {
        var T = parseInt(c.current.paddingRight, 10) || 0, A = document.body ? document.body.clientWidth : 0, O = window.innerWidth - A + T || 0;
        Object.keys(hA).forEach(function(L) {
          var M = hA[L];
          w && (w[L] = M);
        }), w && (w.paddingRight = "".concat(O, "px"));
      }
      E && bA() && (E.addEventListener("touchmove", mA, gd), y && (y.addEventListener("touchstart", yA, gd), y.addEventListener("touchmove", gA, gd))), Qv += 1;
    }
  }, [f]), C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(y) {
    if (CA) {
      var E = document.body, w = E && E.style;
      Qv = Math.max(Qv - 1, 0), f && Qv < 1 && vA.forEach(function(T) {
        var A = c.current[T];
        w && (w[T] = A);
      }), E && bA() && (E.removeEventListener("touchmove", mA, gd), y && (y.removeEventListener("touchstart", yA, gd), y.removeEventListener("touchmove", gA, gd)));
    }
  }, [f]);
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function() {
    if (r) {
      var y = p.current;
      return h(y), function() {
        C(y);
      };
    }
  }, [r, h, C]), function(y) {
    p.current = y;
  };
}
function bz() {
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
}
var Cz = function(r) {
  var u = r.target;
  return u.ownerDocument.activeElement && u.ownerDocument.activeElement.blur();
}, Sz =  false ? 0 : {
  name: "bp8cua-ScrollManager",
  styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
  toString: bz
};
function Ez(a) {
  var r = a.children, u = a.lockEnabled, f = a.captureEnabled, c = f === void 0 ? !0 : f, p = a.onBottomArrive, h = a.onBottomLeave, C = a.onTopArrive, y = a.onTopLeave, E = gz({
    isEnabled: c,
    onBottomArrive: p,
    onBottomLeave: h,
    onTopArrive: C,
    onTopLeave: y
  }), w = yz({
    isEnabled: u
  }), T = function(O) {
    E(O), w(O);
  };
  return it(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, u && it("div", {
    onClick: Cz,
    css: Sz
  }), r(T));
}
function xz() {
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
}
var wz =  false ? 0 : {
  name: "5kkxb2-requiredInput-RequiredInput",
  styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
  map: "",
  toString: xz
}, Rz = function(r) {
  var u = r.name, f = r.onFocus;
  return it("input", {
    required: !0,
    name: u,
    tabIndex: -1,
    "aria-hidden": "true",
    onFocus: f,
    css: wz,
    value: "",
    onChange: function() {
    }
  });
}, Tz = Rz;
function ix(a) {
  var r;
  return typeof window < "u" && window.navigator != null ? a.test(((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.platform) || window.navigator.platform) : !1;
}
function Iz() {
  return ix(/^iPhone/i);
}
function QD() {
  return ix(/^Mac/i);
}
function Az() {
  return ix(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
  QD() && navigator.maxTouchPoints > 1;
}
function Oz() {
  return Iz() || Az();
}
function Dz() {
  return QD() || Oz();
}
var Nz = function(r) {
  return r.label;
}, JD = function(r) {
  return r.label;
}, qD = function(r) {
  return r.value;
}, kz = function(r) {
  return !!r.isDisabled;
}, Mz = {
  clearIndicator: h_,
  container: r_,
  control: E_,
  dropdownIndicator: p_,
  group: T_,
  groupHeading: A_,
  indicatorsContainer: u_,
  indicatorSeparator: g_,
  input: k_,
  loadingIndicator: C_,
  loadingMessage: qH,
  menu: WH,
  menuList: $H,
  menuPortal: t_,
  multiValue: V_,
  multiValueLabel: P_,
  multiValueRemove: H_,
  noOptionsMessage: JH,
  option: W_,
  placeholder: Y_,
  singleValue: J_,
  valueContainer: i_
}, Lz = {
  primary: "#2684FF",
  primary75: "#4C9AFF",
  primary50: "#B2D4FF",
  primary25: "#DEEBFF",
  danger: "#DE350B",
  dangerLight: "#FFBDAD",
  neutral0: "hsl(0, 0%, 100%)",
  neutral5: "hsl(0, 0%, 95%)",
  neutral10: "hsl(0, 0%, 90%)",
  neutral20: "hsl(0, 0%, 80%)",
  neutral30: "hsl(0, 0%, 70%)",
  neutral40: "hsl(0, 0%, 60%)",
  neutral50: "hsl(0, 0%, 50%)",
  neutral60: "hsl(0, 0%, 40%)",
  neutral70: "hsl(0, 0%, 30%)",
  neutral80: "hsl(0, 0%, 20%)",
  neutral90: "hsl(0, 0%, 10%)"
}, Fz = 4, KD = 4, Bz = 38, Vz = KD * 2, Pz = {
  baseUnit: KD,
  controlHeight: Bz,
  menuGutter: Vz
}, PS = {
  borderRadius: Fz,
  colors: Lz,
  spacing: Pz
}, Hz = {
  "aria-live": "polite",
  backspaceRemovesValue: !0,
  blurInputOnSelect: sA(),
  captureMenuScroll: !sA(),
  classNames: {},
  closeMenuOnSelect: !0,
  closeMenuOnScroll: !1,
  components: {},
  controlShouldRenderValue: !0,
  escapeClearsValue: !1,
  filterOption: pz(),
  formatGroupLabel: Nz,
  getOptionLabel: JD,
  getOptionValue: qD,
  isDisabled: !1,
  isLoading: !1,
  isMulti: !1,
  isRtl: !1,
  isSearchable: !0,
  isOptionDisabled: kz,
  loadingMessage: function() {
    return "Loading...";
  },
  maxMenuHeight: 300,
  minMenuHeight: 140,
  menuIsOpen: !1,
  menuPlacement: "bottom",
  menuPosition: "absolute",
  menuShouldBlockScroll: !1,
  menuShouldScrollIntoView: !FH(),
  noOptionsMessage: function() {
    return "No options";
  },
  openMenuOnFocus: !1,
  openMenuOnClick: !0,
  options: [],
  pageSize: 5,
  placeholder: "Select...",
  screenReaderStatus: function(r) {
    var u = r.count;
    return "".concat(u, " result").concat(u !== 1 ? "s" : "", " available");
  },
  styles: {},
  tabIndex: 0,
  tabSelectsValue: !0,
  unstyled: !1
};
function SA(a, r, u, f) {
  var c = nN(a, r, u), p = rN(a, r, u), h = tN(a, r), C = m0(a, r);
  return {
    type: "option",
    data: r,
    isDisabled: c,
    isSelected: p,
    label: h,
    value: C,
    index: f
  };
}
function $y(a, r) {
  return a.options.map(function(u, f) {
    if ("options" in u) {
      var c = u.options.map(function(h, C) {
        return SA(a, h, r, C);
      }).filter(function(h) {
        return xA(a, h);
      });
      return c.length > 0 ? {
        type: "group",
        data: u,
        options: c,
        index: f
      } : void 0;
    }
    var p = SA(a, u, r, f);
    return xA(a, p) ? p : void 0;
  }).filter(PH);
}
function eN(a) {
  return a.reduce(function(r, u) {
    return u.type === "group" ? r.push.apply(r, Ed(u.options.map(function(f) {
      return f.data;
    }))) : r.push(u.data), r;
  }, []);
}
function EA(a, r) {
  return a.reduce(function(u, f) {
    return f.type === "group" ? u.push.apply(u, Ed(f.options.map(function(c) {
      return {
        data: c.data,
        id: "".concat(r, "-").concat(f.index, "-").concat(c.index)
      };
    }))) : u.push({
      data: f.data,
      id: "".concat(r, "-").concat(f.index)
    }), u;
  }, []);
}
function _z(a, r) {
  return eN($y(a, r));
}
function xA(a, r) {
  var u = a.inputValue, f = u === void 0 ? "" : u, c = r.data, p = r.isSelected, h = r.label, C = r.value;
  return (!iN(a) || !p) && aN(a, {
    label: h,
    value: C,
    data: c
  }, f);
}
function zz(a, r) {
  var u = a.focusedValue, f = a.selectValue, c = f.indexOf(u);
  if (c > -1) {
    var p = r.indexOf(u);
    if (p > -1)
      return u;
    if (c < r.length)
      return r[c];
  }
  return null;
}
function Gz(a, r) {
  var u = a.focusedOption;
  return u && r.indexOf(u) > -1 ? u : r[0];
}
var HS = function(r, u) {
  var f, c = (f = r.find(function(p) {
    return p.data === u;
  })) === null || f === void 0 ? void 0 : f.id;
  return c || null;
}, tN = function(r, u) {
  return r.getOptionLabel(u);
}, m0 = function(r, u) {
  return r.getOptionValue(u);
};
function nN(a, r, u) {
  return typeof a.isOptionDisabled == "function" ? a.isOptionDisabled(r, u) : !1;
}
function rN(a, r, u) {
  if (u.indexOf(r) > -1)
    return !0;
  if (typeof a.isOptionSelected == "function")
    return a.isOptionSelected(r, u);
  var f = m0(a, r);
  return u.some(function(c) {
    return m0(a, c) === f;
  });
}
function aN(a, r, u) {
  return a.filterOption ? a.filterOption(r, u) : !0;
}
var iN = function(r) {
  var u = r.hideSelectedOptions, f = r.isMulti;
  return u === void 0 ? f : u;
}, jz = 1, ox = /* @__PURE__ */ function(a) {
  JP(u, a);
  var r = e3(u);
  function u(f) {
    var c;
    if ($P(this, u), c = r.call(this, f), c.state = {
      ariaSelection: null,
      focusedOption: null,
      focusedOptionId: null,
      focusableOptionsWithIds: [],
      focusedValue: null,
      inputIsHidden: !1,
      isFocused: !1,
      selectValue: [],
      clearFocusValueOnUpdate: !1,
      prevWasFocused: !1,
      inputIsHiddenAfterUpdate: void 0,
      prevProps: void 0,
      instancePrefix: ""
    }, c.blockOptionHover = !1, c.isComposing = !1, c.commonProps = void 0, c.initialTouchX = 0, c.initialTouchY = 0, c.openAfterFocus = !1, c.scrollToFocusedOptionOnUpdate = !1, c.userIsDragging = void 0, c.isAppleDevice = Dz(), c.controlRef = null, c.getControlRef = function(y) {
      c.controlRef = y;
    }, c.focusedOptionRef = null, c.getFocusedOptionRef = function(y) {
      c.focusedOptionRef = y;
    }, c.menuListRef = null, c.getMenuListRef = function(y) {
      c.menuListRef = y;
    }, c.inputRef = null, c.getInputRef = function(y) {
      c.inputRef = y;
    }, c.focus = c.focusInput, c.blur = c.blurInput, c.onChange = function(y, E) {
      var w = c.props, T = w.onChange, A = w.name;
      E.name = A, c.ariaOnChange(y, E), T(y, E);
    }, c.setValue = function(y, E, w) {
      var T = c.props, A = T.closeMenuOnSelect, O = T.isMulti, L = T.inputValue;
      c.onInputChange("", {
        action: "set-value",
        prevInputValue: L
      }), A && (c.setState({
        inputIsHiddenAfterUpdate: !O
      }), c.onMenuClose()), c.setState({
        clearFocusValueOnUpdate: !0
      }), c.onChange(y, {
        action: E,
        option: w
      });
    }, c.selectOption = function(y) {
      var E = c.props, w = E.blurInputOnSelect, T = E.isMulti, A = E.name, O = c.state.selectValue, L = T && c.isOptionSelected(y, O), M = c.isOptionDisabled(y, O);
      if (L) {
        var N = c.getOptionValue(y);
        c.setValue(O.filter(function(P) {
          return c.getOptionValue(P) !== N;
        }), "deselect-option", y);
      } else if (!M)
        T ? c.setValue([].concat(Ed(O), [y]), "select-option", y) : c.setValue(y, "select-option");
      else {
        c.ariaOnChange(y, {
          action: "select-option",
          option: y,
          name: A
        });
        return;
      }
      w && c.blurInput();
    }, c.removeValue = function(y) {
      var E = c.props.isMulti, w = c.state.selectValue, T = c.getOptionValue(y), A = w.filter(function(L) {
        return c.getOptionValue(L) !== T;
      }), O = th(E, A, A[0] || null);
      c.onChange(O, {
        action: "remove-value",
        removedValue: y
      }), c.focusInput();
    }, c.clearValue = function() {
      var y = c.state.selectValue;
      c.onChange(th(c.props.isMulti, [], null), {
        action: "clear",
        removedValues: y
      });
    }, c.popValue = function() {
      var y = c.props.isMulti, E = c.state.selectValue, w = E[E.length - 1], T = E.slice(0, E.length - 1), A = th(y, T, T[0] || null);
      c.onChange(A, {
        action: "pop-value",
        removedValue: w
      });
    }, c.getFocusedOptionId = function(y) {
      return HS(c.state.focusableOptionsWithIds, y);
    }, c.getFocusableOptionsWithIds = function() {
      return EA($y(c.props, c.state.selectValue), c.getElementId("option"));
    }, c.getValue = function() {
      return c.state.selectValue;
    }, c.cx = function() {
      for (var y = arguments.length, E = new Array(y), w = 0; w < y; w++)
        E[w] = arguments[w];
      return DH.apply(void 0, [c.props.classNamePrefix].concat(E));
    }, c.getOptionLabel = function(y) {
      return tN(c.props, y);
    }, c.getOptionValue = function(y) {
      return m0(c.props, y);
    }, c.getStyles = function(y, E) {
      var w = c.props.unstyled, T = Mz[y](E, w);
      T.boxSizing = "border-box";
      var A = c.props.styles[y];
      return A ? A(T, E) : T;
    }, c.getClassNames = function(y, E) {
      var w, T;
      return (w = (T = c.props.classNames)[y]) === null || w === void 0 ? void 0 : w.call(T, E);
    }, c.getElementId = function(y) {
      return "".concat(c.state.instancePrefix, "-").concat(y);
    }, c.getComponents = function() {
      return ez(c.props);
    }, c.buildCategorizedOptions = function() {
      return $y(c.props, c.state.selectValue);
    }, c.getCategorizedOptions = function() {
      return c.props.menuIsOpen ? c.buildCategorizedOptions() : [];
    }, c.buildFocusableOptions = function() {
      return eN(c.buildCategorizedOptions());
    }, c.getFocusableOptions = function() {
      return c.props.menuIsOpen ? c.buildFocusableOptions() : [];
    }, c.ariaOnChange = function(y, E) {
      c.setState({
        ariaSelection: rt({
          value: y
        }, E)
      });
    }, c.onMenuMouseDown = function(y) {
      y.button === 0 && (y.stopPropagation(), y.preventDefault(), c.focusInput());
    }, c.onMenuMouseMove = function(y) {
      c.blockOptionHover = !1;
    }, c.onControlMouseDown = function(y) {
      if (!y.defaultPrevented) {
        var E = c.props.openMenuOnClick;
        c.state.isFocused ? c.props.menuIsOpen ? y.target.tagName !== "INPUT" && y.target.tagName !== "TEXTAREA" && c.onMenuClose() : E && c.openMenu("first") : (E && (c.openAfterFocus = !0), c.focusInput()), y.target.tagName !== "INPUT" && y.target.tagName !== "TEXTAREA" && y.preventDefault();
      }
    }, c.onDropdownIndicatorMouseDown = function(y) {
      if (!(y && y.type === "mousedown" && y.button !== 0) && !c.props.isDisabled) {
        var E = c.props, w = E.isMulti, T = E.menuIsOpen;
        c.focusInput(), T ? (c.setState({
          inputIsHiddenAfterUpdate: !w
        }), c.onMenuClose()) : c.openMenu("first"), y.preventDefault();
      }
    }, c.onClearIndicatorMouseDown = function(y) {
      y && y.type === "mousedown" && y.button !== 0 || (c.clearValue(), y.preventDefault(), c.openAfterFocus = !1, y.type === "touchend" ? c.focusInput() : setTimeout(function() {
        return c.focusInput();
      }));
    }, c.onScroll = function(y) {
      typeof c.props.closeMenuOnScroll == "boolean" ? y.target instanceof HTMLElement && V0(y.target) && c.props.onMenuClose() : typeof c.props.closeMenuOnScroll == "function" && c.props.closeMenuOnScroll(y) && c.props.onMenuClose();
    }, c.onCompositionStart = function() {
      c.isComposing = !0;
    }, c.onCompositionEnd = function() {
      c.isComposing = !1;
    }, c.onTouchStart = function(y) {
      var E = y.touches, w = E && E.item(0);
      w && (c.initialTouchX = w.clientX, c.initialTouchY = w.clientY, c.userIsDragging = !1);
    }, c.onTouchMove = function(y) {
      var E = y.touches, w = E && E.item(0);
      if (w) {
        var T = Math.abs(w.clientX - c.initialTouchX), A = Math.abs(w.clientY - c.initialTouchY), O = 5;
        c.userIsDragging = T > O || A > O;
      }
    }, c.onTouchEnd = function(y) {
      c.userIsDragging || (c.controlRef && !c.controlRef.contains(y.target) && c.menuListRef && !c.menuListRef.contains(y.target) && c.blurInput(), c.initialTouchX = 0, c.initialTouchY = 0);
    }, c.onControlTouchEnd = function(y) {
      c.userIsDragging || c.onControlMouseDown(y);
    }, c.onClearIndicatorTouchEnd = function(y) {
      c.userIsDragging || c.onClearIndicatorMouseDown(y);
    }, c.onDropdownIndicatorTouchEnd = function(y) {
      c.userIsDragging || c.onDropdownIndicatorMouseDown(y);
    }, c.handleInputChange = function(y) {
      var E = c.props.inputValue, w = y.currentTarget.value;
      c.setState({
        inputIsHiddenAfterUpdate: !1
      }), c.onInputChange(w, {
        action: "input-change",
        prevInputValue: E
      }), c.props.menuIsOpen || c.onMenuOpen();
    }, c.onInputFocus = function(y) {
      c.props.onFocus && c.props.onFocus(y), c.setState({
        inputIsHiddenAfterUpdate: !1,
        isFocused: !0
      }), (c.openAfterFocus || c.props.openMenuOnFocus) && c.openMenu("first"), c.openAfterFocus = !1;
    }, c.onInputBlur = function(y) {
      var E = c.props.inputValue;
      if (c.menuListRef && c.menuListRef.contains(document.activeElement)) {
        c.inputRef.focus();
        return;
      }
      c.props.onBlur && c.props.onBlur(y), c.onInputChange("", {
        action: "input-blur",
        prevInputValue: E
      }), c.onMenuClose(), c.setState({
        focusedValue: null,
        isFocused: !1
      });
    }, c.onOptionHover = function(y) {
      if (!(c.blockOptionHover || c.state.focusedOption === y)) {
        var E = c.getFocusableOptions(), w = E.indexOf(y);
        c.setState({
          focusedOption: y,
          focusedOptionId: w > -1 ? c.getFocusedOptionId(y) : null
        });
      }
    }, c.shouldHideSelectedOptions = function() {
      return iN(c.props);
    }, c.onValueInputFocus = function(y) {
      y.preventDefault(), y.stopPropagation(), c.focus();
    }, c.onKeyDown = function(y) {
      var E = c.props, w = E.isMulti, T = E.backspaceRemovesValue, A = E.escapeClearsValue, O = E.inputValue, L = E.isClearable, M = E.isDisabled, N = E.menuIsOpen, P = E.onKeyDown, $ = E.tabSelectsValue, H = E.openMenuOnFocus, z = c.state, V = z.focusedOption, j = z.focusedValue, B = z.selectValue;
      if (!M && !(typeof P == "function" && (P(y), y.defaultPrevented))) {
        switch (c.blockOptionHover = !0, y.key) {
          case "ArrowLeft":
            if (!w || O)
              return;
            c.focusValue("previous");
            break;
          case "ArrowRight":
            if (!w || O)
              return;
            c.focusValue("next");
            break;
          case "Delete":
          case "Backspace":
            if (O)
              return;
            if (j)
              c.removeValue(j);
            else {
              if (!T)
                return;
              w ? c.popValue() : L && c.clearValue();
            }
            break;
          case "Tab":
            if (c.isComposing || y.shiftKey || !N || !$ || !V || // don't capture the event if the menu opens on focus and the focused
            // option is already selected; it breaks the flow of navigation
            H && c.isOptionSelected(V, B))
              return;
            c.selectOption(V);
            break;
          case "Enter":
            if (y.keyCode === 229)
              break;
            if (N) {
              if (!V || c.isComposing)
                return;
              c.selectOption(V);
              break;
            }
            return;
          case "Escape":
            N ? (c.setState({
              inputIsHiddenAfterUpdate: !1
            }), c.onInputChange("", {
              action: "menu-close",
              prevInputValue: O
            }), c.onMenuClose()) : L && A && c.clearValue();
            break;
          case " ":
            if (O)
              return;
            if (!N) {
              c.openMenu("first");
              break;
            }
            if (!V)
              return;
            c.selectOption(V);
            break;
          case "ArrowUp":
            N ? c.focusOption("up") : c.openMenu("last");
            break;
          case "ArrowDown":
            N ? c.focusOption("down") : c.openMenu("first");
            break;
          case "PageUp":
            if (!N)
              return;
            c.focusOption("pageup");
            break;
          case "PageDown":
            if (!N)
              return;
            c.focusOption("pagedown");
            break;
          case "Home":
            if (!N)
              return;
            c.focusOption("first");
            break;
          case "End":
            if (!N)
              return;
            c.focusOption("last");
            break;
          default:
            return;
        }
        y.preventDefault();
      }
    }, c.state.instancePrefix = "react-select-" + (c.props.instanceId || ++jz), c.state.selectValue = v0(f.value), f.menuIsOpen && c.state.selectValue.length) {
      var p = c.getFocusableOptionsWithIds(), h = c.buildFocusableOptions(), C = h.indexOf(c.state.selectValue[0]);
      c.state.focusableOptionsWithIds = p, c.state.focusedOption = h[C], c.state.focusedOptionId = HS(p, h[C]);
    }
    return c;
  }
  return QP(u, [{
    key: "componentDidMount",
    value: function() {
      this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && lA(this.menuListRef, this.focusedOptionRef);
    }
  }, {
    key: "componentDidUpdate",
    value: function(c) {
      var p = this.props, h = p.isDisabled, C = p.menuIsOpen, y = this.state.isFocused;
      // ensure focus is restored correctly when the control becomes enabled
      (y && !h && c.isDisabled || // ensure focus is on the Input when the menu opens
      y && C && !c.menuIsOpen) && this.focusInput(), y && h && !c.isDisabled ? this.setState({
        isFocused: !1
      }, this.onMenuClose) : !y && !h && c.isDisabled && this.inputRef === document.activeElement && this.setState({
        isFocused: !0
      }), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (lA(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
    }
  }, {
    key: "componentWillUnmount",
    value: function() {
      this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
    }
    // ==============================
    // Consumer Handlers
    // ==============================
  }, {
    key: "onMenuOpen",
    value: function() {
      this.props.onMenuOpen();
    }
  }, {
    key: "onMenuClose",
    value: function() {
      this.onInputChange("", {
        action: "menu-close",
        prevInputValue: this.props.inputValue
      }), this.props.onMenuClose();
    }
  }, {
    key: "onInputChange",
    value: function(c, p) {
      this.props.onInputChange(c, p);
    }
    // ==============================
    // Methods
    // ==============================
  }, {
    key: "focusInput",
    value: function() {
      this.inputRef && this.inputRef.focus();
    }
  }, {
    key: "blurInput",
    value: function() {
      this.inputRef && this.inputRef.blur();
    }
    // aliased for consumers
  }, {
    key: "openMenu",
    value: function(c) {
      var p = this, h = this.state, C = h.selectValue, y = h.isFocused, E = this.buildFocusableOptions(), w = c === "first" ? 0 : E.length - 1;
      if (!this.props.isMulti) {
        var T = E.indexOf(C[0]);
        T > -1 && (w = T);
      }
      this.scrollToFocusedOptionOnUpdate = !(y && this.menuListRef), this.setState({
        inputIsHiddenAfterUpdate: !1,
        focusedValue: null,
        focusedOption: E[w],
        focusedOptionId: this.getFocusedOptionId(E[w])
      }, function() {
        return p.onMenuOpen();
      });
    }
  }, {
    key: "focusValue",
    value: function(c) {
      var p = this.state, h = p.selectValue, C = p.focusedValue;
      if (this.props.isMulti) {
        this.setState({
          focusedOption: null
        });
        var y = h.indexOf(C);
        C || (y = -1);
        var E = h.length - 1, w = -1;
        if (h.length) {
          switch (c) {
            case "previous":
              y === 0 ? w = 0 : y === -1 ? w = E : w = y - 1;
              break;
            case "next":
              y > -1 && y < E && (w = y + 1);
              break;
          }
          this.setState({
            inputIsHidden: w !== -1,
            focusedValue: h[w]
          });
        }
      }
    }
  }, {
    key: "focusOption",
    value: function() {
      var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", p = this.props.pageSize, h = this.state.focusedOption, C = this.getFocusableOptions();
      if (C.length) {
        var y = 0, E = C.indexOf(h);
        h || (E = -1), c === "up" ? y = E > 0 ? E - 1 : C.length - 1 : c === "down" ? y = (E + 1) % C.length : c === "pageup" ? (y = E - p, y < 0 && (y = 0)) : c === "pagedown" ? (y = E + p, y > C.length - 1 && (y = C.length - 1)) : c === "last" && (y = C.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
          focusedOption: C[y],
          focusedValue: null,
          focusedOptionId: this.getFocusedOptionId(C[y])
        });
      }
    }
  }, {
    key: "getTheme",
    value: (
      // ==============================
      // Getters
      // ==============================
      function() {
        return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(PS) : rt(rt({}, PS), this.props.theme) : PS;
      }
    )
  }, {
    key: "getCommonProps",
    value: function() {
      var c = this.clearValue, p = this.cx, h = this.getStyles, C = this.getClassNames, y = this.getValue, E = this.selectOption, w = this.setValue, T = this.props, A = T.isMulti, O = T.isRtl, L = T.options, M = this.hasValue();
      return {
        clearValue: c,
        cx: p,
        getStyles: h,
        getClassNames: C,
        getValue: y,
        hasValue: M,
        isMulti: A,
        isRtl: O,
        options: L,
        selectOption: E,
        selectProps: T,
        setValue: w,
        theme: this.getTheme()
      };
    }
  }, {
    key: "hasValue",
    value: function() {
      var c = this.state.selectValue;
      return c.length > 0;
    }
  }, {
    key: "hasOptions",
    value: function() {
      return !!this.getFocusableOptions().length;
    }
  }, {
    key: "isClearable",
    value: function() {
      var c = this.props, p = c.isClearable, h = c.isMulti;
      return p === void 0 ? h : p;
    }
  }, {
    key: "isOptionDisabled",
    value: function(c, p) {
      return nN(this.props, c, p);
    }
  }, {
    key: "isOptionSelected",
    value: function(c, p) {
      return rN(this.props, c, p);
    }
  }, {
    key: "filterOption",
    value: function(c, p) {
      return aN(this.props, c, p);
    }
  }, {
    key: "formatOptionLabel",
    value: function(c, p) {
      if (typeof this.props.formatOptionLabel == "function") {
        var h = this.props.inputValue, C = this.state.selectValue;
        return this.props.formatOptionLabel(c, {
          context: p,
          inputValue: h,
          selectValue: C
        });
      } else
        return this.getOptionLabel(c);
    }
  }, {
    key: "formatGroupLabel",
    value: function(c) {
      return this.props.formatGroupLabel(c);
    }
    // ==============================
    // Mouse Handlers
    // ==============================
  }, {
    key: "startListeningComposition",
    value: (
      // ==============================
      // Composition Handlers
      // ==============================
      function() {
        document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
      }
    )
  }, {
    key: "stopListeningComposition",
    value: function() {
      document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
    }
  }, {
    key: "startListeningToTouch",
    value: (
      // ==============================
      // Touch Handlers
      // ==============================
      function() {
        document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
      }
    )
  }, {
    key: "stopListeningToTouch",
    value: function() {
      document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
    }
  }, {
    key: "renderInput",
    value: (
      // ==============================
      // Renderers
      // ==============================
      function() {
        var c = this.props, p = c.isDisabled, h = c.isSearchable, C = c.inputId, y = c.inputValue, E = c.tabIndex, w = c.form, T = c.menuIsOpen, A = c.required, O = this.getComponents(), L = O.Input, M = this.state, N = M.inputIsHidden, P = M.ariaSelection, $ = this.commonProps, H = C || this.getElementId("input"), z = rt(rt(rt({
          "aria-autocomplete": "list",
          "aria-expanded": T,
          "aria-haspopup": !0,
          "aria-errormessage": this.props["aria-errormessage"],
          "aria-invalid": this.props["aria-invalid"],
          "aria-label": this.props["aria-label"],
          "aria-labelledby": this.props["aria-labelledby"],
          "aria-required": A,
          role: "combobox",
          "aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
        }, T && {
          "aria-controls": this.getElementId("listbox")
        }), !h && {
          "aria-readonly": !0
        }), this.hasValue() ? (P == null ? void 0 : P.action) === "initial-input-focus" && {
          "aria-describedby": this.getElementId("live-region")
        } : {
          "aria-describedby": this.getElementId("placeholder")
        });
        return h ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(L, ot({}, $, {
          autoCapitalize: "none",
          autoComplete: "off",
          autoCorrect: "off",
          id: H,
          innerRef: this.getInputRef,
          isDisabled: p,
          isHidden: N,
          onBlur: this.onInputBlur,
          onChange: this.handleInputChange,
          onFocus: this.onInputFocus,
          spellCheck: "false",
          tabIndex: E,
          form: w,
          type: "text",
          value: y
        }, z)) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(hz, ot({
          id: H,
          innerRef: this.getInputRef,
          onBlur: this.onInputBlur,
          onChange: p0,
          onFocus: this.onInputFocus,
          disabled: p,
          tabIndex: E,
          inputMode: "none",
          form: w,
          value: ""
        }, z));
      }
    )
  }, {
    key: "renderPlaceholderOrValue",
    value: function() {
      var c = this, p = this.getComponents(), h = p.MultiValue, C = p.MultiValueContainer, y = p.MultiValueLabel, E = p.MultiValueRemove, w = p.SingleValue, T = p.Placeholder, A = this.commonProps, O = this.props, L = O.controlShouldRenderValue, M = O.isDisabled, N = O.isMulti, P = O.inputValue, $ = O.placeholder, H = this.state, z = H.selectValue, V = H.focusedValue, j = H.isFocused;
      if (!this.hasValue() || !L)
        return P ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(T, ot({}, A, {
          key: "placeholder",
          isDisabled: M,
          isFocused: j,
          innerProps: {
            id: this.getElementId("placeholder")
          }
        }), $);
      if (N)
        return z.map(function(G, ae) {
          var ge = G === V, de = "".concat(c.getOptionLabel(G), "-").concat(c.getOptionValue(G));
          return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(h, ot({}, A, {
            components: {
              Container: C,
              Label: y,
              Remove: E
            },
            isFocused: ge,
            isDisabled: M,
            key: de,
            index: ae,
            removeProps: {
              onClick: function() {
                return c.removeValue(G);
              },
              onTouchEnd: function() {
                return c.removeValue(G);
              },
              onMouseDown: function(ye) {
                ye.preventDefault();
              }
            },
            data: G
          }), c.formatOptionLabel(G, "value"));
        });
      if (P)
        return null;
      var B = z[0];
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(w, ot({}, A, {
        data: B,
        isDisabled: M
      }), this.formatOptionLabel(B, "value"));
    }
  }, {
    key: "renderClearIndicator",
    value: function() {
      var c = this.getComponents(), p = c.ClearIndicator, h = this.commonProps, C = this.props, y = C.isDisabled, E = C.isLoading, w = this.state.isFocused;
      if (!this.isClearable() || !p || y || !this.hasValue() || E)
        return null;
      var T = {
        onMouseDown: this.onClearIndicatorMouseDown,
        onTouchEnd: this.onClearIndicatorTouchEnd,
        "aria-hidden": "true"
      };
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(p, ot({}, h, {
        innerProps: T,
        isFocused: w
      }));
    }
  }, {
    key: "renderLoadingIndicator",
    value: function() {
      var c = this.getComponents(), p = c.LoadingIndicator, h = this.commonProps, C = this.props, y = C.isDisabled, E = C.isLoading, w = this.state.isFocused;
      if (!p || !E)
        return null;
      var T = {
        "aria-hidden": "true"
      };
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(p, ot({}, h, {
        innerProps: T,
        isDisabled: y,
        isFocused: w
      }));
    }
  }, {
    key: "renderIndicatorSeparator",
    value: function() {
      var c = this.getComponents(), p = c.DropdownIndicator, h = c.IndicatorSeparator;
      if (!p || !h)
        return null;
      var C = this.commonProps, y = this.props.isDisabled, E = this.state.isFocused;
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(h, ot({}, C, {
        isDisabled: y,
        isFocused: E
      }));
    }
  }, {
    key: "renderDropdownIndicator",
    value: function() {
      var c = this.getComponents(), p = c.DropdownIndicator;
      if (!p)
        return null;
      var h = this.commonProps, C = this.props.isDisabled, y = this.state.isFocused, E = {
        onMouseDown: this.onDropdownIndicatorMouseDown,
        onTouchEnd: this.onDropdownIndicatorTouchEnd,
        "aria-hidden": "true"
      };
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(p, ot({}, h, {
        innerProps: E,
        isDisabled: C,
        isFocused: y
      }));
    }
  }, {
    key: "renderMenu",
    value: function() {
      var c = this, p = this.getComponents(), h = p.Group, C = p.GroupHeading, y = p.Menu, E = p.MenuList, w = p.MenuPortal, T = p.LoadingMessage, A = p.NoOptionsMessage, O = p.Option, L = this.commonProps, M = this.state.focusedOption, N = this.props, P = N.captureMenuScroll, $ = N.inputValue, H = N.isLoading, z = N.loadingMessage, V = N.minMenuHeight, j = N.maxMenuHeight, B = N.menuIsOpen, G = N.menuPlacement, ae = N.menuPosition, ge = N.menuPortalTarget, de = N.menuShouldBlockScroll, Ee = N.menuShouldScrollIntoView, ye = N.noOptionsMessage, ke = N.onMenuScrollToTop, Ue = N.onMenuScrollToBottom;
      if (!B)
        return null;
      var Se = function(Te, Ie) {
        var Oe = Te.type, Ae = Te.data, je = Te.isDisabled, Pe = Te.isSelected, et = Te.label, ft = Te.value, Rt = M === Ae, Ce = je ? void 0 : function() {
          return c.onOptionHover(Ae);
        }, Tt = je ? void 0 : function() {
          return c.selectOption(Ae);
        }, Pt = "".concat(c.getElementId("option"), "-").concat(Ie), bt = {
          id: Pt,
          onClick: Tt,
          onMouseMove: Ce,
          onMouseOver: Ce,
          tabIndex: -1,
          role: "option",
          "aria-selected": c.isAppleDevice ? void 0 : Pe
          // is not supported on Apple devices
        };
        return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(O, ot({}, L, {
          innerProps: bt,
          data: Ae,
          isDisabled: je,
          isSelected: Pe,
          key: Pt,
          label: et,
          type: Oe,
          value: ft,
          isFocused: Rt,
          innerRef: Rt ? c.getFocusedOptionRef : void 0
        }), c.formatOptionLabel(Te.data, "menu"));
      }, Ke;
      if (this.hasOptions())
        Ke = this.getCategorizedOptions().map(function(me) {
          if (me.type === "group") {
            var Te = me.data, Ie = me.options, Oe = me.index, Ae = "".concat(c.getElementId("group"), "-").concat(Oe), je = "".concat(Ae, "-heading");
            return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(h, ot({}, L, {
              key: Ae,
              data: Te,
              options: Ie,
              Heading: C,
              headingProps: {
                id: je,
                data: me.data
              },
              label: c.formatGroupLabel(me.data)
            }), me.options.map(function(Pe) {
              return Se(Pe, "".concat(Oe, "-").concat(Pe.index));
            }));
          } else if (me.type === "option")
            return Se(me, "".concat(me.index));
        });
      else if (H) {
        var ue = z({
          inputValue: $
        });
        if (ue === null)
          return null;
        Ke = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(T, L, ue);
      } else {
        var xe = ye({
          inputValue: $
        });
        if (xe === null)
          return null;
        Ke = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(A, L, xe);
      }
      var Z = {
        minMenuHeight: V,
        maxMenuHeight: j,
        menuPlacement: G,
        menuPosition: ae,
        menuShouldScrollIntoView: Ee
      }, se = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(XH, ot({}, L, Z), function(me) {
        var Te = me.ref, Ie = me.placerProps, Oe = Ie.placement, Ae = Ie.maxHeight;
        return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(y, ot({}, L, Z, {
          innerRef: Te,
          innerProps: {
            onMouseDown: c.onMenuMouseDown,
            onMouseMove: c.onMenuMouseMove
          },
          isLoading: H,
          placement: Oe
        }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ez, {
          captureEnabled: P,
          onTopArrive: ke,
          onBottomArrive: Ue,
          lockEnabled: de
        }, function(je) {
          return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(E, ot({}, L, {
            innerRef: function(et) {
              c.getMenuListRef(et), je(et);
            },
            innerProps: {
              role: "listbox",
              "aria-multiselectable": L.isMulti,
              id: c.getElementId("listbox")
            },
            isLoading: H,
            maxHeight: Ae,
            focusedOption: M
          }), Ke);
        }));
      });
      return ge || ae === "fixed" ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(w, ot({}, L, {
        appendTo: ge,
        controlElement: this.controlRef,
        menuPlacement: G,
        menuPosition: ae
      }), se) : se;
    }
  }, {
    key: "renderFormField",
    value: function() {
      var c = this, p = this.props, h = p.delimiter, C = p.isDisabled, y = p.isMulti, E = p.name, w = p.required, T = this.state.selectValue;
      if (w && !this.hasValue() && !C)
        return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Tz, {
          name: E,
          onFocus: this.onValueInputFocus
        });
      if (!(!E || C))
        if (y)
          if (h) {
            var A = T.map(function(M) {
              return c.getOptionValue(M);
            }).join(h);
            return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", {
              name: E,
              type: "hidden",
              value: A
            });
          } else {
            var O = T.length > 0 ? T.map(function(M, N) {
              return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", {
                key: "i-".concat(N),
                name: E,
                type: "hidden",
                value: c.getOptionValue(M)
              });
            }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", {
              name: E,
              type: "hidden",
              value: ""
            });
            return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, O);
          }
        else {
          var L = T[0] ? this.getOptionValue(T[0]) : "";
          return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", {
            name: E,
            type: "hidden",
            value: L
          });
        }
    }
  }, {
    key: "renderLiveRegion",
    value: function() {
      var c = this.commonProps, p = this.state, h = p.ariaSelection, C = p.focusedOption, y = p.focusedValue, E = p.isFocused, w = p.selectValue, T = this.getFocusableOptions();
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(sz, ot({}, c, {
        id: this.getElementId("live-region"),
        ariaSelection: h,
        focusedOption: C,
        focusedValue: y,
        isFocused: E,
        selectValue: w,
        focusableOptions: T,
        isAppleDevice: this.isAppleDevice
      }));
    }
  }, {
    key: "render",
    value: function() {
      var c = this.getComponents(), p = c.Control, h = c.IndicatorsContainer, C = c.SelectContainer, y = c.ValueContainer, E = this.props, w = E.className, T = E.id, A = E.isDisabled, O = E.menuIsOpen, L = this.state.isFocused, M = this.commonProps = this.getCommonProps();
      return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(C, ot({}, M, {
        className: w,
        innerProps: {
          id: T,
          onKeyDown: this.onKeyDown
        },
        isDisabled: A,
        isFocused: L
      }), this.renderLiveRegion(), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(p, ot({}, M, {
        innerRef: this.getControlRef,
        innerProps: {
          onMouseDown: this.onControlMouseDown,
          onTouchEnd: this.onControlTouchEnd
        },
        isDisabled: A,
        isFocused: L,
        menuIsOpen: O
      }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(y, ot({}, M, {
        isDisabled: A
      }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(h, ot({}, M, {
        isDisabled: A
      }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
    }
  }], [{
    key: "getDerivedStateFromProps",
    value: function(c, p) {
      var h = p.prevProps, C = p.clearFocusValueOnUpdate, y = p.inputIsHiddenAfterUpdate, E = p.ariaSelection, w = p.isFocused, T = p.prevWasFocused, A = p.instancePrefix, O = c.options, L = c.value, M = c.menuIsOpen, N = c.inputValue, P = c.isMulti, $ = v0(L), H = {};
      if (h && (L !== h.value || O !== h.options || M !== h.menuIsOpen || N !== h.inputValue)) {
        var z = M ? _z(c, $) : [], V = M ? EA($y(c, $), "".concat(A, "-option")) : [], j = C ? zz(p, $) : null, B = Gz(p, z), G = HS(V, B);
        H = {
          selectValue: $,
          focusedOption: B,
          focusedOptionId: G,
          focusableOptionsWithIds: V,
          focusedValue: j,
          clearFocusValueOnUpdate: !1
        };
      }
      var ae = y != null && c !== h ? {
        inputIsHidden: y,
        inputIsHiddenAfterUpdate: void 0
      } : {}, ge = E, de = w && T;
      return w && !de && (ge = {
        value: th(P, $, $[0] || null),
        options: $,
        action: "initial-input-focus"
      }, de = !T), (E == null ? void 0 : E.action) === "initial-input-focus" && (ge = null), rt(rt(rt({}, H), ae), {}, {
        prevProps: c,
        ariaSelection: ge,
        prevWasFocused: de
      });
    }
  }]), u;
}(react__WEBPACK_IMPORTED_MODULE_1__.Component);
ox.defaultProps = Hz;
var Uz = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(a, r) {
  var u = vD(a);
  return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ox, ot({
    ref: r
  }, u));
}), oN = Uz;
const Wz = "var(--bs-secondary-color)", _S = "var(--bs-gray-300)", zS = "var(--bs-gray-700)", Xz = "var(--bs-gray-900)", Zz = "var(--bs-red)", ux = (a) => ({
  control: (r) => ({
    ...r,
    borderColor: a ? zS : _S,
    backgroundColor: a ? Xz : "white"
  }),
  menuPortal: (r) => ({ ...r, zIndex: 9999 }),
  menu: (r) => ({
    ...r,
    width: "max-content",
    minWidth: "100%",
    backgroundColor: a ? "black" : "white"
  }),
  option: (r, u) => ({
    ...r,
    color: a ? "white" : "black",
    backgroundColor: u.isFocused ? a ? zS : _S : a ? "black" : "white"
  }),
  singleValue: (r) => ({ ...r, color: a ? "white" : "black" }),
  input: (r) => ({ ...r, color: a ? "white" : "black" }),
  multiValue: (r) => ({
    ...r,
    backgroundColor: a ? zS : _S
  }),
  multiValueLabel: (r) => ({
    ...r,
    color: a ? "white" : "black"
  }),
  multiValueRemove: (r) => ({
    ...r,
    ":hover": {
      backgroundColor: Zz,
      color: "white"
    }
  }),
  placeholder: (r) => ({
    ...r,
    color: Wz
  })
});
function Jv({
  isClearable: a = !1,
  options: r,
  titles: u,
  value: f,
  placeholder: c,
  onChange: p,
  darkMode: h
}) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    oN,
    {
      isClearable: a,
      components: { Option: (y) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        "div",
        {
          "data-toggle": "tooltip",
          "data-placement": "top",
          title: u == null ? void 0 : u.get(y.label),
          children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ax.Option, { ...y })
        }
      ) },
      menuPortalTarget: document.body,
      styles: ux(h),
      options: r.map((y) => ({
        value: y,
        label: y
      })),
      value: f ? {
        value: f,
        label: f
      } : null,
      onChange: (y) => p(y ? {
        target: {
          value: y.value
        }
      } : {
        target: {
          value: ""
        }
      }),
      placeholder: c || "Select value..."
    }
  );
}
function uN({
  options: a,
  titles: r,
  value: u,
  placeholder: f,
  onChange: c,
  darkMode: p
}) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    oN,
    {
      isMulti: !0,
      closeMenuOnSelect: !1,
      components: { Option: (C) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        "div",
        {
          "data-toggle": "tooltip",
          "data-placement": "top",
          title: r == null ? void 0 : r.get(C.label),
          children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ax.Option, { ...C })
        }
      ) },
      menuPortalTarget: document.body,
      styles: ux(p),
      options: a.map((C) => ({
        value: C,
        label: C
      })),
      value: u.map((C) => ({
        value: C,
        label: C
      })),
      delimiter: ",",
      onChange: (C) => c({
        target: {
          value: C.map((y) => y.value).join(",")
        }
      }),
      placeholder: f || "Select values..."
    }
  );
}
var Yz = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], wA = function() {
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", u = arguments.length > 1 ? arguments[1] : void 0, f = arguments.length > 2 ? arguments[2] : void 0, c = String(r).toLowerCase(), p = String(f.getOptionValue(u)).toLowerCase(), h = String(f.getOptionLabel(u)).toLowerCase();
  return p === c || h === c;
}, GS = {
  formatCreateLabel: function(r) {
    return 'Create "'.concat(r, '"');
  },
  isValidNewOption: function(r, u, f, c) {
    return !(!r || u.some(function(p) {
      return wA(r, p, c);
    }) || f.some(function(p) {
      return wA(r, p, c);
    }));
  },
  getNewOptionData: function(r, u) {
    return {
      label: u,
      value: r,
      __isNew__: !0
    };
  }
};
function $z(a) {
  var r = a.allowCreateWhileLoading, u = r === void 0 ? !1 : r, f = a.createOptionPosition, c = f === void 0 ? "last" : f, p = a.formatCreateLabel, h = p === void 0 ? GS.formatCreateLabel : p, C = a.isValidNewOption, y = C === void 0 ? GS.isValidNewOption : C, E = a.getNewOptionData, w = E === void 0 ? GS.getNewOptionData : E, T = a.onCreateOption, A = a.options, O = A === void 0 ? [] : A, L = a.onChange, M = ko(a, Yz), N = M.getOptionValue, P = N === void 0 ? qD : N, $ = M.getOptionLabel, H = $ === void 0 ? JD : $, z = M.inputValue, V = M.isLoading, j = M.isMulti, B = M.value, G = M.name, ae = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    return y(z, v0(B), O, {
      getOptionValue: P,
      getOptionLabel: H
    }) ? w(z, h(z)) : void 0;
  }, [h, w, H, P, z, y, O, B]), ge = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() {
    return (u || !V) && ae ? c === "first" ? [ae].concat(Ed(O)) : [].concat(Ed(O), [ae]) : O;
  }, [u, c, V, ae, O]), de = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(Ee, ye) {
    if (ye.action !== "select-option")
      return L(Ee, ye);
    var ke = Array.isArray(Ee) ? Ee : [Ee];
    if (ke[ke.length - 1] === ae) {
      if (T)
        T(z);
      else {
        var Ue = w(z, z), Se = {
          action: "create-option",
          name: G,
          option: Ue
        };
        L(th(j, [].concat(Ed(v0(B)), [Ue]), Ue), Se);
      }
      return;
    }
    L(Ee, ye);
  }, [w, z, j, G, ae, T, L, B]);
  return rt(rt({}, M), {}, {
    options: ge,
    onChange: de
  });
}
var Qz = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(a, r) {
  var u = vD(a), f = $z(u);
  return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ox, ot({
    ref: r
  }, f));
}), Jz = Qz;
function qz({
  value: a,
  placeholder: r,
  onChange: u
}) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    yE.Control,
    {
      value: a,
      placeholder: r || "Enter value...",
      onChange: u
    }
  );
}
function RA({
  value: a,
  placeholder: r,
  limit: u,
  onChange: f,
  darkMode: c
}) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    Jz,
    {
      isMulti: !0,
      menuPortalTarget: document.body,
      styles: ux(c),
      value: a.map((p) => ({
        value: p,
        label: p
      })),
      delimiter: ",",
      onChange: (p) => f({
        target: {
          value: p.map((h) => h.value).join(",")
        }
      }),
      isOptionDisabled: () => !(u === void 0 || a.length < u),
      noOptionsMessage: () => "Create a new value...",
      placeholder: r || "Enter values..."
    }
  );
}
function Kz(a) {
  var f, c, p, h, C;
  let r;
  const u = (y) => y ? y.split(",") : [];
  return a.filter.lookup === "isnull" ? r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    Jv,
    {
      options: ["true", "false"],
      value: a.filter.value,
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : ((f = a.projectFields.get(a.filter.field)) == null ? void 0 : f.type) === "choice" ? a.filter.lookup.endsWith("in") ? r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    uN,
    {
      options: ((c = a.projectFields.get(a.filter.field)) == null ? void 0 : c.values) || [],
      value: u(a.filter.value),
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    Jv,
    {
      isClearable: !0,
      options: ((p = a.projectFields.get(a.filter.field)) == null ? void 0 : p.values) || [],
      value: a.filter.value,
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : a.filter.lookup.endsWith("in") ? r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    RA,
    {
      value: u(a.filter.value),
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : a.filter.lookup.endsWith("range") ? r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    RA,
    {
      value: u(a.filter.value),
      limit: 2,
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : ((h = a.projectFields.get(a.filter.field)) == null ? void 0 : h.type) === "bool" ? r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
    Jv,
    {
      isClearable: !0,
      options: ["true", "false"],
      value: a.filter.value,
      onChange: a.handleValueChange,
      darkMode: a.darkMode
    }
  ) : r = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(qz, { value: a.filter.value, onChange: a.handleValueChange }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { direction: "horizontal", gap: 1, children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sc, { fluid: !0, className: "g-0", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(RE, { className: "g-1", children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, { sm: 4, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        Jv,
        {
          options: a.fieldList,
          titles: a.fieldDescriptions,
          value: a.filter.field,
          placeholder: "Select field...",
          onChange: a.handleFieldChange,
          darkMode: a.darkMode
        }
      ) }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, { sm: 4, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        Jv,
        {
          options: a.typeLookups.get(
            ((C = a.projectFields.get(a.filter.field)) == null ? void 0 : C.type) || ""
          ) || [],
          titles: a.lookupDescriptions,
          value: a.filter.lookup,
          placeholder: "Select lookup...",
          onChange: a.handleLookupChange,
          darkMode: a.darkMode
        }
      ) }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, { sm: 4, children: r })
    ] }) }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Eu, { variant: "primary", onClick: a.handleFilterAdd, children: "+" }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Eu, { variant: "danger", onClick: a.handleFilterRemove, children: "-" })
  ] });
}
const eG = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  className: r,
  striped: u,
  bordered: f,
  borderless: c,
  hover: p,
  size: h,
  variant: C,
  responsive: y,
  ...E
}, w) => {
  const T = lt(a, "table"), A = Qe(r, T, C && `${T}-${C}`, h && `${T}-${h}`, u && `${T}-${typeof u == "string" ? `striped-${u}` : "striped"}`, f && `${T}-bordered`, c && `${T}-borderless`, p && `${T}-hover`), O = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("table", {
    ...E,
    className: A,
    ref: w
  });
  if (y) {
    let L = `${T}-responsive`;
    return typeof y == "string" && (L = `${L}-${y}`), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
      className: L,
      children: O
    });
  }
  return O;
}), tG = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function({
  data: r,
  titles: u,
  s3PathHandler: f
}) {
  const c = () => r.length > 0 ? Object.keys(r[0]) : [], p = r.map(
    (h) => Object.values(h).map((C) => (C == null ? void 0 : C.toString().trim()) || "")
  );
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(eG, { striped: !0, bordered: !0, hover: !0, responsive: !0, size: "sm", children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("thead", { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("tr", { children: c().map((h) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th", { title: u == null ? void 0 : u.get(h), children: h }, h)) }) }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("tbody", { children: p.map((h, C) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("tr", { children: h.map(
      (y, E) => f && y.startsWith("s3://") && y.endsWith(".html") ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td", { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Eu, { variant: "link", onClick: () => f(y), children: y }) }, E) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td", { children: y }, E)
    ) }, C)) })
  ] });
}), lN = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({
  bsPrefix: a,
  variant: r,
  animation: u = "border",
  size: f,
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  as: c = "div",
  className: p,
  ...h
}, C) => {
  a = lt(a, "spinner");
  const y = `${a}-${u}`;
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(c, {
    ref: C,
    ...h,
    className: Qe(p, y, f && `${y}-${f}`, r && `text-${r}`)
  });
});
lN.displayName = "Spinner";
function nG() {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Gy, { variant: "light", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { direction: "horizontal", gap: 2, children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(lN, {}),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: "Loading..." })
  ] }) });
}
const rG = "0.10.2";
function aG(a) {
  const [r, u] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(new Array()), [f, c] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(new Array()), [p, h] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(new Array()), [C, y] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(new Array()), [E, w] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""), T = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("filter")).map(([B]) => B), A = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("list")).map(([B]) => B);
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => {
    u([]), c([]), h([]), y([]), w("");
  }, [a.project]);
  const O = (B, G) => {
    var de;
    const ae = [...r], ge = a.projectFields.get(B.target.value);
    ae[G].field = B.target.value, ae[G].lookup = ((de = a.typeLookups.get((ge == null ? void 0 : ge.type) || "")) == null ? void 0 : de[0]) || "", ae[G].lookup === "isnull" ? ae[G].value = "true" : ae[G].value = "", u(ae);
  }, L = (B, G) => {
    const ae = [...r];
    ae[G].lookup = B.target.value, ae[G].lookup === "isnull" ? ae[G].value = "true" : ae[G].value = "", u(ae);
  }, M = (B, G) => {
    const ae = [...r];
    ae[G].value = B.target.value, u(ae);
  }, N = (B) => {
    u([
      ...r.slice(0, B),
      { field: "", lookup: "", value: "" },
      ...r.slice(B)
    ]);
  }, P = (B) => {
    const G = [...r];
    G.splice(B, 1), u(G);
  }, $ = () => {
    u([]);
  }, H = (B) => {
    c(B.target.value ? B.target.value.split(",") : []), h([]), y([]);
  }, z = (B) => {
    c([]), h(B.target.value ? B.target.value.split(",") : []);
  }, V = (B) => {
    c([]), y(B.target.value ? B.target.value.split(",") : []);
  }, j = () => {
    const B = new URLSearchParams(
      r.filter((G) => G.field).map((G) => G.lookup ? [G.field + "__" + G.lookup, G.value] : [G.field, G.value]).concat(
        p.filter((G) => G).map((G) => ["include", G])
      ).concat(
        C.filter((G) => G).map((G) => ["exclude", G])
      ).concat(
        f.filter((G) => G).map((G) => ["summarise", G])
      ).concat(
        [E].filter((G) => G).map((G) => ["search", G])
      )
    );
    a.handleSearch(B.toString());
  };
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { direction: "horizontal", gap: 2, children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        yE.Control,
        {
          value: E,
          placeholder: "Search records...",
          onChange: (B) => w(B.target.value),
          onKeyUp: (B) => {
            B.key === "Enter" && j();
          }
        }
      ),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        Eu,
        {
          variant: "primary",
          disabled: !a.project,
          onClick: j,
          children: "Search"
        }
      )
    ] }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(RE, { className: "g-2", children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, { xl: 6, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(rc, { children: [
        /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(rc.Header, { children: [
          /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: "Filter" }),
          /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { direction: "horizontal", gap: 1, className: "float-end", children: [
            /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
              Eu,
              {
                size: "sm",
                variant: "primary",
                onClick: () => N(r.length),
                children: "Add Filter"
              }
            ),
            /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Eu, { size: "sm", variant: "danger", onClick: $, children: "Clear Filters" })
          ] })
        ] }),
        /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sc, { fluid: !0, className: "panel p-2", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Su, { gap: 1, children: r.map((B, G) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
          Kz,
          {
            filter: B,
            fieldList: T,
            projectFields: a.projectFields,
            typeLookups: a.typeLookups,
            fieldDescriptions: a.fieldDescriptions,
            lookupDescriptions: a.lookupDescriptions,
            handleFieldChange: (ae) => O(ae, G),
            handleLookupChange: (ae) => L(ae, G),
            handleValueChange: (ae) => M(ae, G),
            handleFilterAdd: () => N(G + 1),
            handleFilterRemove: () => P(G),
            darkMode: a.darkMode
          }
        ) }, G)) }) })
      ] }) }),
      [
        {
          title: "Summarise",
          options: T,
          value: f,
          onChange: H
        },
        {
          title: "Include",
          options: A,
          value: p,
          onChange: z
        },
        {
          title: "Exclude",
          options: A,
          value: C,
          onChange: V
        }
      ].map(({ title: B, options: G, value: ae, onChange: ge }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oc, { md: 4, xl: 2, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(rc, { children: [
        /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(rc.Header, { children: B }),
        /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sc, { fluid: !0, className: "panel p-2", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
          uN,
          {
            options: G,
            titles: a.fieldDescriptions,
            value: ae,
            placeholder: "Select fields...",
            onChange: ge,
            darkMode: a.darkMode
          }
        ) })
      ] }) }, B))
    ] })
  ] });
}
function iG(a) {
  var f;
  const r = T0({
    filename: a.project,
    useKeysAsHeaders: !0
  }), u = () => {
    const c = BV(r)(a.resultData.data || []);
    a.fileWriter ? a.fileWriter(a.project + ".csv", NV(c)) : PV(r)(c);
  };
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(rc, { children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(rc.Header, { children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: "Results" }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        Eu,
        {
          className: "float-end",
          size: "sm",
          variant: "success",
          onClick: u,
          children: "Export Page to CSV"
        }
      )
    ] }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sc, { fluid: !0, className: "table-panel p-2", children: a.resultPending ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(nG, {}) : a.resultError ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Gy, { variant: "danger", children: [
      "Error: ",
      a.resultError.message
    ] }) : a.resultData.messages ? Object.entries(a.resultData.messages).map(
      ([c, p]) => Array.isArray(p) ? p.map((h) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Gy, { variant: "danger", children: [
        c,
        ": ",
        h
      ] }, c)) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Gy, { variant: "danger", children: [
        c,
        ": ",
        p
      ] }, c)
    ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
      tG,
      {
        data: a.resultData.data || [],
        titles: a.fieldDescriptions,
        s3PathHandler: a.s3PathHandler
      }
    ) }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(rc.Footer, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(By, { size: "sm", children: [
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        By.Prev,
        {
          disabled: !a.resultData.previous,
          onClick: () => {
            var c;
            a.handleSearch(
              ((c = a.resultData.previous) == null ? void 0 : c.split("?", 2)[1]) || ""
            );
          }
        }
      ),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(By.Item, { children: a.resultPending ? "Loading..." : `Showing ${((f = a.resultData.data) == null ? void 0 : f.length) || 0} results` }),
      /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
        By.Next,
        {
          disabled: !a.resultData.next,
          onClick: () => {
            var c, p;
            a.handleSearch(
              ((p = (c = a.resultData) == null ? void 0 : c.next) == null ? void 0 : p.split("?", 2)[1]) || ""
            );
          }
        }
      )
    ] }) })
  ] });
}
function oG(a) {
  const [r, u] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("");
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => {
    u("");
  }, [a.project]);
  const {
    isFetching: f,
    error: c,
    data: p = {},
    refetch: h
  } = Cd({
    queryKey: ["results", a.project, r],
    queryFn: async () => a.httpPathHandler(`projects/${a.project}/?${r}`).then((y) => y.json()),
    enabled: !!a.project
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sc, { fluid: !0, className: "g-2", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { gap: 2, children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(aG, { ...a, handleSearch: (y) => {
      r === y && !f && h(), u(y);
    } }),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
      iG,
      {
        ...a,
        handleSearch: u,
        resultPending: f,
        resultError: c instanceof Error ? c : null,
        resultData: p
      }
    )
  ] }) });
}
function uG(a) {
  const r = {}, u = (f, c = "") => {
    for (const [p, h] of Object.entries(f))
      r[c + p] = h, h.type === "relation" && u(
        h.fields,
        c + p + "__"
      );
  };
  return u(a), r;
}
function lG(a) {
  const [r, u] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), [f, c] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""), { data: p = [] } = Cd({
    queryKey: ["projects"],
    queryFn: async () => a.httpPathHandler("projects/").then((A) => A.json()).then((A) => [
      ...new Set(
        A.data.map(
          (O) => O.project
        )
      )
    ])
  });
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
    !f && p && c(p[0]);
  }, [f, p]);
  const { data: h = /* @__PURE__ */ new Map() } = Cd({
    queryKey: ["types"],
    queryFn: async () => a.httpPathHandler("projects/types/").then((A) => A.json()).then((A) => new Map(
      A.data.map((O) => [
        O.type,
        O.lookups
      ])
    ))
  }), { data: C = /* @__PURE__ */ new Map() } = Cd({
    queryKey: ["lookups"],
    queryFn: async () => a.httpPathHandler("projects/lookups/").then((A) => A.json()).then((A) => new Map(
      A.data.map((O) => [
        O.lookup,
        O.description
      ])
    ))
  }), {
    data: { projectName: y, projectFields: E, fieldDescriptions: w } = {
      projectName: "",
      projectFields: /* @__PURE__ */ new Map(),
      fieldDescriptions: /* @__PURE__ */ new Map()
    }
  } = Cd({
    queryKey: ["fields", f],
    queryFn: async () => a.httpPathHandler("projects/" + f + "/fields/").then((A) => A.json()).then((A) => {
      const O = uG(A.data.fields), L = A.data.name, M = new Map(
        Object.keys(O).map((P) => [
          P,
          {
            type: O[P].type,
            description: O[P].description,
            actions: O[P].actions,
            values: O[P].values
          }
        ])
      ), N = new Map(
        Array.from(M.entries()).map(([P, $]) => [
          P,
          $.description
        ])
      );
      return { projectName: L, projectFields: M, fieldDescriptions: N };
    }),
    enabled: !!f
  });
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Su, { gap: 2, className: "Onyx", children: [
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
      jP,
      {
        ...a,
        projectName: y,
        projectList: p,
        handleProjectChange: c,
        handleThemeChange: () => {
          const A = document.querySelector("html");
          A == null || A.setAttribute("data-bs-theme", r ? "light" : "dark"), u(!r);
        },
        guiVersion: rG
      }
    ),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
      oG,
      {
        ...a,
        project: f,
        projectFields: E,
        typeLookups: h,
        fieldDescriptions: w,
        lookupDescriptions: C,
        darkMode: r
      }
    ),
    /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {})
  ] });
}
const sG = new KV({
  defaultOptions: {
    queries: {
      refetchOnWindowFocus: !1
    }
  }
});
function hG(a) {
  return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(l4, { client: sG, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(lG, { ...a }) });
}



/***/ }),

/***/ "./node_modules/object-assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object-assign/index.js ***!
  \*********************************************/
/***/ ((module) => {

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/


/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;

function toObject(val) {
	if (val === null || val === undefined) {
		throw new TypeError('Object.assign cannot be called with null or undefined');
	}

	return Object(val);
}

function shouldUseNative() {
	try {
		if (!Object.assign) {
			return false;
		}

		// Detect buggy property enumeration order in older V8 versions.

		// https://bugs.chromium.org/p/v8/issues/detail?id=4118
		var test1 = new String('abc');  // eslint-disable-line no-new-wrappers
		test1[5] = 'de';
		if (Object.getOwnPropertyNames(test1)[0] === '5') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test2 = {};
		for (var i = 0; i < 10; i++) {
			test2['_' + String.fromCharCode(i)] = i;
		}
		var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
			return test2[n];
		});
		if (order2.join('') !== '0123456789') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test3 = {};
		'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
			test3[letter] = letter;
		});
		if (Object.keys(Object.assign({}, test3)).join('') !==
				'abcdefghijklmnopqrst') {
			return false;
		}

		return true;
	} catch (err) {
		// We don't expect any of the above to throw, but better to be safe.
		return false;
	}
}

module.exports = shouldUseNative() ? Object.assign : function (target, source) {
	var from;
	var to = toObject(target);
	var symbols;

	for (var s = 1; s < arguments.length; s++) {
		from = Object(arguments[s]);

		for (var key in from) {
			if (hasOwnProperty.call(from, key)) {
				to[key] = from[key];
			}
		}

		if (getOwnPropertySymbols) {
			symbols = getOwnPropertySymbols(from);
			for (var i = 0; i < symbols.length; i++) {
				if (propIsEnumerable.call(from, symbols[i])) {
					to[symbols[i]] = from[symbols[i]];
				}
			}
		}
	}

	return to;
};


/***/ }),

/***/ "./node_modules/react/cjs/react-jsx-runtime.development.js":
/*!*****************************************************************!*\
  !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

/** @license React v17.0.2
 * react-jsx-runtime.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.
 */



if (true) {
  (function() {
'use strict';

var React = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react");
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");

// ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var REACT_ELEMENT_TYPE = 0xeac7;
var REACT_PORTAL_TYPE = 0xeaca;
exports.Fragment = 0xeacb;
var REACT_STRICT_MODE_TYPE = 0xeacc;
var REACT_PROFILER_TYPE = 0xead2;
var REACT_PROVIDER_TYPE = 0xeacd;
var REACT_CONTEXT_TYPE = 0xeace;
var REACT_FORWARD_REF_TYPE = 0xead0;
var REACT_SUSPENSE_TYPE = 0xead1;
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
var REACT_MEMO_TYPE = 0xead3;
var REACT_LAZY_TYPE = 0xead4;
var REACT_BLOCK_TYPE = 0xead9;
var REACT_SERVER_BLOCK_TYPE = 0xeada;
var REACT_FUNDAMENTAL_TYPE = 0xead5;
var REACT_SCOPE_TYPE = 0xead7;
var REACT_OPAQUE_ID_TYPE = 0xeae0;
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
var REACT_OFFSCREEN_TYPE = 0xeae2;
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

if (typeof Symbol === 'function' && Symbol.for) {
  var symbolFor = Symbol.for;
  REACT_ELEMENT_TYPE = symbolFor('react.element');
  REACT_PORTAL_TYPE = symbolFor('react.portal');
  exports.Fragment = symbolFor('react.fragment');
  REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
  REACT_PROFILER_TYPE = symbolFor('react.profiler');
  REACT_PROVIDER_TYPE = symbolFor('react.provider');
  REACT_CONTEXT_TYPE = symbolFor('react.context');
  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
  REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
  REACT_MEMO_TYPE = symbolFor('react.memo');
  REACT_LAZY_TYPE = symbolFor('react.lazy');
  REACT_BLOCK_TYPE = symbolFor('react.block');
  REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
  REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
  REACT_SCOPE_TYPE = symbolFor('react.scope');
  REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
  REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
}

var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }

  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }

  return null;
}

var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

function error(format) {
  {
    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    printWarning('error', format, args);
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();

    if (stack !== '') {
      format += '%s';
      args = args.concat([stack]);
    }

    var argsWithFormat = args.map(function (item) {
      return '' + item;
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);
  }
}

// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

var enableScopeAPI = false; // Experimental Create Event Handle API.

function isValidElementType(type) {
  if (typeof type === 'string' || typeof type === 'function') {
    return true;
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).


  if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
    return true;
  }

  if (typeof type === 'object' && type !== null) {
    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
      return true;
    }
  }

  return false;
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
}

function getContextName(type) {
  return type.displayName || 'Context';
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }

  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }

  if (typeof type === 'string') {
    return type;
  }

  switch (type) {
    case exports.Fragment:
      return 'Fragment';

    case REACT_PORTAL_TYPE:
      return 'Portal';

    case REACT_PROFILER_TYPE:
      return 'Profiler';

    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';

    case REACT_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        var context = type;
        return getContextName(context) + '.Consumer';

      case REACT_PROVIDER_TYPE:
        var provider = type;
        return getContextName(provider._context) + '.Provider';

      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        return getComponentName(type.type);

      case REACT_BLOCK_TYPE:
        return getComponentName(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            return getComponentName(init(payload));
          } catch (x) {
            return null;
          }
        }
    }
  }

  return null;
}

// Helpers to patch console.logs to avoid logging during side-effect free
// replaying on render function. This currently only patches the object
// lazily which won't cover if the log function was extracted eagerly.
// We could also eagerly patch the method.
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;

function disabledLog() {}

disabledLog.__reactDisabledLog = true;
function disableLogs() {
  {
    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      prevLog = console.log;
      prevInfo = console.info;
      prevWarn = console.warn;
      prevError = console.error;
      prevGroup = console.group;
      prevGroupCollapsed = console.groupCollapsed;
      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

      var props = {
        configurable: true,
        enumerable: true,
        value: disabledLog,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        info: props,
        log: props,
        warn: props,
        error: props,
        group: props,
        groupCollapsed: props,
        groupEnd: props
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    disabledDepth++;
  }
}
function reenableLogs() {
  {
    disabledDepth--;

    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      var props = {
        configurable: true,
        enumerable: true,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        log: _assign({}, props, {
          value: prevLog
        }),
        info: _assign({}, props, {
          value: prevInfo
        }),
        warn: _assign({}, props, {
          value: prevWarn
        }),
        error: _assign({}, props, {
          value: prevError
        }),
        group: _assign({}, props, {
          value: prevGroup
        }),
        groupCollapsed: _assign({}, props, {
          value: prevGroupCollapsed
        }),
        groupEnd: _assign({}, props, {
          value: prevGroupEnd
        })
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    if (disabledDepth < 0) {
      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
    }
  }
}

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
  {
    if (prefix === undefined) {
      // Extract the VM specific prefix used by each line.
      try {
        throw Error();
      } catch (x) {
        var match = x.stack.trim().match(/\n( *(at )?)/);
        prefix = match && match[1] || '';
      }
    } // We use the prefix to ensure our stacks line up with native stack frames.


    return '\n' + prefix + name;
  }
}
var reentry = false;
var componentFrameCache;

{
  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  componentFrameCache = new PossiblyWeakMap();
}

function describeNativeComponentFrame(fn, construct) {
  // If something asked for a stack inside a fake render, it should get ignored.
  if (!fn || reentry) {
    return '';
  }

  {
    var frame = componentFrameCache.get(fn);

    if (frame !== undefined) {
      return frame;
    }
  }

  var control;
  reentry = true;
  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

  Error.prepareStackTrace = undefined;
  var previousDispatcher;

  {
    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
    // for warnings.

    ReactCurrentDispatcher.current = null;
    disableLogs();
  }

  try {
    // This should throw.
    if (construct) {
      // Something should be setting the props in the constructor.
      var Fake = function () {
        throw Error();
      }; // $FlowFixMe


      Object.defineProperty(Fake.prototype, 'props', {
        set: function () {
          // We use a throwing setter instead of frozen or non-writable props
          // because that won't throw in a non-strict mode function.
          throw Error();
        }
      });

      if (typeof Reflect === 'object' && Reflect.construct) {
        // We construct a different control for this case to include any extra
        // frames added by the construct call.
        try {
          Reflect.construct(Fake, []);
        } catch (x) {
          control = x;
        }

        Reflect.construct(fn, [], Fake);
      } else {
        try {
          Fake.call();
        } catch (x) {
          control = x;
        }

        fn.call(Fake.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (x) {
        control = x;
      }

      fn();
    }
  } catch (sample) {
    // This is inlined manually because closure doesn't do it for us.
    if (sample && control && typeof sample.stack === 'string') {
      // This extracts the first frame from the sample that isn't also in the control.
      // Skipping one frame that we assume is the frame that calls the two.
      var sampleLines = sample.stack.split('\n');
      var controlLines = control.stack.split('\n');
      var s = sampleLines.length - 1;
      var c = controlLines.length - 1;

      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
        // We expect at least one stack frame to be shared.
        // Typically this will be the root most one. However, stack frames may be
        // cut off due to maximum stack limits. In this case, one maybe cut off
        // earlier than the other. We assume that the sample is longer or the same
        // and there for cut off earlier. So we should find the root most frame in
        // the sample somewhere in the control.
        c--;
      }

      for (; s >= 1 && c >= 0; s--, c--) {
        // Next we find the first one that isn't the same which should be the
        // frame that called our sample function and the control.
        if (sampleLines[s] !== controlLines[c]) {
          // In V8, the first line is describing the message but other VMs don't.
          // If we're about to return the first line, and the control is also on the same
          // line, that's a pretty good indicator that our sample threw at same line as
          // the control. I.e. before we entered the sample frame. So we ignore this result.
          // This can happen if you passed a class to function component, or non-function.
          if (s !== 1 || c !== 1) {
            do {
              s--;
              c--; // We may still have similar intermediate frames from the construct call.
              // The next one that isn't the same should be our match though.

              if (c < 0 || sampleLines[s] !== controlLines[c]) {
                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

                {
                  if (typeof fn === 'function') {
                    componentFrameCache.set(fn, _frame);
                  }
                } // Return the line we found.


                return _frame;
              }
            } while (s >= 1 && c >= 0);
          }

          break;
        }
      }
    }
  } finally {
    reentry = false;

    {
      ReactCurrentDispatcher.current = previousDispatcher;
      reenableLogs();
    }

    Error.prepareStackTrace = previousPrepareStackTrace;
  } // Fallback to just using the name if we couldn't make it throw.


  var name = fn ? fn.displayName || fn.name : '';
  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

  {
    if (typeof fn === 'function') {
      componentFrameCache.set(fn, syntheticFrame);
    }
  }

  return syntheticFrame;
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
  {
    return describeNativeComponentFrame(fn, false);
  }
}

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

  if (type == null) {
    return '';
  }

  if (typeof type === 'function') {
    {
      return describeNativeComponentFrame(type, shouldConstruct(type));
    }
  }

  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }

  switch (type) {
    case REACT_SUSPENSE_TYPE:
      return describeBuiltInComponentFrame('Suspense');

    case REACT_SUSPENSE_LIST_TYPE:
      return describeBuiltInComponentFrame('SuspenseList');
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_FORWARD_REF_TYPE:
        return describeFunctionComponentFrame(type.render);

      case REACT_MEMO_TYPE:
        // Memo may contain any component type so we recursively resolve it.
        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

      case REACT_BLOCK_TYPE:
        return describeFunctionComponentFrame(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            // Lazy may contain any component type so we recursively resolve it.
            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
          } catch (x) {}
        }
    }
  }

  return '';
}

var loggedTypeFailures = {};
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame.setExtraStackFrame(null);
    }
  }
}

function checkPropTypes(typeSpecs, values, location, componentName, element) {
  {
    // $FlowFixMe This is okay but Flow doesn't know it.
    var has = Function.call.bind(Object.prototype.hasOwnProperty);

    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.

        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
            err.name = 'Invariant Violation';
            throw err;
          }

          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
        } catch (ex) {
          error$1 = ex;
        }

        if (error$1 && !(error$1 instanceof Error)) {
          setCurrentlyValidatingElement(element);

          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);

          setCurrentlyValidatingElement(null);
        }

        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error$1.message] = true;
          setCurrentlyValidatingElement(element);

          error('Failed %s type: %s', location, error$1.message);

          setCurrentlyValidatingElement(null);
        }
      }
    }
  }
}

var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var RESERVED_PROPS = {
  key: true,
  ref: true,
  __self: true,
  __source: true
};
var specialPropKeyWarningShown;
var specialPropRefWarningShown;
var didWarnAboutStringRefs;

{
  didWarnAboutStringRefs = {};
}

function hasValidRef(config) {
  {
    if (hasOwnProperty.call(config, 'ref')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.ref !== undefined;
}

function hasValidKey(config) {
  {
    if (hasOwnProperty.call(config, 'key')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.key !== undefined;
}

function warnIfStringRefCannotBeAutoConverted(config, self) {
  {
    if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
      var componentName = getComponentName(ReactCurrentOwner.current.type);

      if (!didWarnAboutStringRefs[componentName]) {
        error('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', getComponentName(ReactCurrentOwner.current.type), config.ref);

        didWarnAboutStringRefs[componentName] = true;
      }
    }
  }
}

function defineKeyPropWarningGetter(props, displayName) {
  {
    var warnAboutAccessingKey = function () {
      if (!specialPropKeyWarningShown) {
        specialPropKeyWarningShown = true;

        error('%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)', displayName);
      }
    };

    warnAboutAccessingKey.isReactWarning = true;
    Object.defineProperty(props, 'key', {
      get: warnAboutAccessingKey,
      configurable: true
    });
  }
}

function defineRefPropWarningGetter(props, displayName) {
  {
    var warnAboutAccessingRef = function () {
      if (!specialPropRefWarningShown) {
        specialPropRefWarningShown = true;

        error('%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)', displayName);
      }
    };

    warnAboutAccessingRef.isReactWarning = true;
    Object.defineProperty(props, 'ref', {
      get: warnAboutAccessingRef,
      configurable: true
    });
  }
}
/**
 * Factory method to create a new React element. This no longer adheres to
 * the class pattern, so do not use new to call it. Also, instanceof check
 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
 * if something is a React Element.
 *
 * @param {*} type
 * @param {*} props
 * @param {*} key
 * @param {string|object} ref
 * @param {*} owner
 * @param {*} self A *temporary* helper to detect places where `this` is
 * different from the `owner` when React.createElement is called, so that we
 * can warn. We want to get rid of owner and replace string `ref`s with arrow
 * functions, and as long as `this` and owner are the same, there will be no
 * change in behavior.
 * @param {*} source An annotation object (added by a transpiler or otherwise)
 * indicating filename, line number, and/or other information.
 * @internal
 */


var ReactElement = function (type, key, ref, self, source, owner, props) {
  var element = {
    // This tag allows us to uniquely identify this as a React Element
    $$typeof: REACT_ELEMENT_TYPE,
    // Built-in properties that belong on the element
    type: type,
    key: key,
    ref: ref,
    props: props,
    // Record the component responsible for creating this element.
    _owner: owner
  };

  {
    // The validation flag is currently mutative. We put it on
    // an external backing store so that we can freeze the whole object.
    // This can be replaced with a WeakMap once they are implemented in
    // commonly used development environments.
    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
    // the validation flag non-enumerable (where possible, which should
    // include every environment we run tests in), so the test framework
    // ignores it.

    Object.defineProperty(element._store, 'validated', {
      configurable: false,
      enumerable: false,
      writable: true,
      value: false
    }); // self and source are DEV only properties.

    Object.defineProperty(element, '_self', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: self
    }); // Two elements created in two different places should be considered
    // equal for testing purposes and therefore we hide it from enumeration.

    Object.defineProperty(element, '_source', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: source
    });

    if (Object.freeze) {
      Object.freeze(element.props);
      Object.freeze(element);
    }
  }

  return element;
};
/**
 * https://github.com/reactjs/rfcs/pull/107
 * @param {*} type
 * @param {object} props
 * @param {string} key
 */

function jsxDEV(type, config, maybeKey, source, self) {
  {
    var propName; // Reserved names are extracted

    var props = {};
    var key = null;
    var ref = null; // Currently, key can be spread in as a prop. This causes a potential
    // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
    // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
    // but as an intermediary step, we will use jsxDEV for everything except
    // <div {...props} key="Hi" />, because we aren't currently able to tell if
    // key is explicitly declared to be undefined or not.

    if (maybeKey !== undefined) {
      key = '' + maybeKey;
    }

    if (hasValidKey(config)) {
      key = '' + config.key;
    }

    if (hasValidRef(config)) {
      ref = config.ref;
      warnIfStringRefCannotBeAutoConverted(config, self);
    } // Remaining properties are added to a new props object


    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        props[propName] = config[propName];
      }
    } // Resolve default props


    if (type && type.defaultProps) {
      var defaultProps = type.defaultProps;

      for (propName in defaultProps) {
        if (props[propName] === undefined) {
          props[propName] = defaultProps[propName];
        }
      }
    }

    if (key || ref) {
      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;

      if (key) {
        defineKeyPropWarningGetter(props, displayName);
      }

      if (ref) {
        defineRefPropWarningGetter(props, displayName);
      }
    }

    return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  }
}

var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement$1(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
    }
  }
}

var propTypesMisspellWarningShown;

{
  propTypesMisspellWarningShown = false;
}
/**
 * Verifies the object is a ReactElement.
 * See https://reactjs.org/docs/react-api.html#isvalidelement
 * @param {?object} object
 * @return {boolean} True if `object` is a ReactElement.
 * @final
 */

function isValidElement(object) {
  {
    return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  }
}

function getDeclarationErrorAddendum() {
  {
    if (ReactCurrentOwner$1.current) {
      var name = getComponentName(ReactCurrentOwner$1.current.type);

      if (name) {
        return '\n\nCheck the render method of `' + name + '`.';
      }
    }

    return '';
  }
}

function getSourceInfoErrorAddendum(source) {
  {
    if (source !== undefined) {
      var fileName = source.fileName.replace(/^.*[\\\/]/, '');
      var lineNumber = source.lineNumber;
      return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
    }

    return '';
  }
}
/**
 * Warn if there's no key explicitly set on dynamic arrays of children or
 * object keys are not valid. This allows us to keep track of children between
 * updates.
 */


var ownerHasKeyUseWarning = {};

function getCurrentComponentErrorInfo(parentType) {
  {
    var info = getDeclarationErrorAddendum();

    if (!info) {
      var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;

      if (parentName) {
        info = "\n\nCheck the top-level render call using <" + parentName + ">.";
      }
    }

    return info;
  }
}
/**
 * Warn if the element doesn't have an explicit key assigned to it.
 * This element is in an array. The array could grow and shrink or be
 * reordered. All children that haven't already been validated are required to
 * have a "key" property assigned to it. Error statuses are cached so a warning
 * will only be shown once.
 *
 * @internal
 * @param {ReactElement} element Element that requires a key.
 * @param {*} parentType element's parent's type.
 */


function validateExplicitKey(element, parentType) {
  {
    if (!element._store || element._store.validated || element.key != null) {
      return;
    }

    element._store.validated = true;
    var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);

    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
      return;
    }

    ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
    // property, it may be the creator of the child that's responsible for
    // assigning it a key.

    var childOwner = '';

    if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
      // Give the component that originally created this child.
      childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
    }

    setCurrentlyValidatingElement$1(element);

    error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);

    setCurrentlyValidatingElement$1(null);
  }
}
/**
 * Ensure that every element either is passed in a static location, in an
 * array with an explicit keys property defined, or in an object literal
 * with valid key property.
 *
 * @internal
 * @param {ReactNode} node Statically passed child of any type.
 * @param {*} parentType node's parent's type.
 */


function validateChildKeys(node, parentType) {
  {
    if (typeof node !== 'object') {
      return;
    }

    if (Array.isArray(node)) {
      for (var i = 0; i < node.length; i++) {
        var child = node[i];

        if (isValidElement(child)) {
          validateExplicitKey(child, parentType);
        }
      }
    } else if (isValidElement(node)) {
      // This element was passed in a valid location.
      if (node._store) {
        node._store.validated = true;
      }
    } else if (node) {
      var iteratorFn = getIteratorFn(node);

      if (typeof iteratorFn === 'function') {
        // Entry iterators used to provide implicit keys,
        // but now we print a separate warning for them later.
        if (iteratorFn !== node.entries) {
          var iterator = iteratorFn.call(node);
          var step;

          while (!(step = iterator.next()).done) {
            if (isValidElement(step.value)) {
              validateExplicitKey(step.value, parentType);
            }
          }
        }
      }
    }
  }
}
/**
 * Given an element, validate that its props follow the propTypes definition,
 * provided by the type.
 *
 * @param {ReactElement} element
 */


function validatePropTypes(element) {
  {
    var type = element.type;

    if (type === null || type === undefined || typeof type === 'string') {
      return;
    }

    var propTypes;

    if (typeof type === 'function') {
      propTypes = type.propTypes;
    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
    // Inner props are checked in the reconciler.
    type.$$typeof === REACT_MEMO_TYPE)) {
      propTypes = type.propTypes;
    } else {
      return;
    }

    if (propTypes) {
      // Intentionally inside to avoid triggering lazy initializers:
      var name = getComponentName(type);
      checkPropTypes(propTypes, element.props, 'prop', name, element);
    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:

      var _name = getComponentName(type);

      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
    }

    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
    }
  }
}
/**
 * Given a fragment, validate that it can only be provided with fragment props
 * @param {ReactElement} fragment
 */


function validateFragmentProps(fragment) {
  {
    var keys = Object.keys(fragment.props);

    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];

      if (key !== 'children' && key !== 'key') {
        setCurrentlyValidatingElement$1(fragment);

        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

        setCurrentlyValidatingElement$1(null);
        break;
      }
    }

    if (fragment.ref !== null) {
      setCurrentlyValidatingElement$1(fragment);

      error('Invalid attribute `ref` supplied to `React.Fragment`.');

      setCurrentlyValidatingElement$1(null);
    }
  }
}

function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  {
    var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
    // succeed and there will likely be errors in render.

    if (!validType) {
      var info = '';

      if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
        info += ' 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 sourceInfo = getSourceInfoErrorAddendum(source);

      if (sourceInfo) {
        info += sourceInfo;
      } else {
        info += getDeclarationErrorAddendum();
      }

      var typeString;

      if (type === null) {
        typeString = 'null';
      } else if (Array.isArray(type)) {
        typeString = 'array';
      } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
        typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
        info = ' Did you accidentally export a JSX literal instead of a component?';
      } else {
        typeString = typeof type;
      }

      error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
    }

    var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
    // TODO: Drop this when these are no longer allowed as the type argument.

    if (element == null) {
      return element;
    } // Skip key warning if the type isn't valid since our key validation logic
    // doesn't expect a non-string/function type and can throw confusing errors.
    // We don't want exception behavior to differ between dev and prod.
    // (Rendering will throw with a helpful message and as soon as the type is
    // fixed, the key warnings will appear.)


    if (validType) {
      var children = props.children;

      if (children !== undefined) {
        if (isStaticChildren) {
          if (Array.isArray(children)) {
            for (var i = 0; i < children.length; i++) {
              validateChildKeys(children[i], type);
            }

            if (Object.freeze) {
              Object.freeze(children);
            }
          } else {
            error('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 {
          validateChildKeys(children, type);
        }
      }
    }

    if (type === exports.Fragment) {
      validateFragmentProps(element);
    } else {
      validatePropTypes(element);
    }

    return element;
  }
} // These two functions exist to still get child warnings in dev
// even with the prod transform. This means that jsxDEV is purely
// opt-in behavior for better messages but that we won't stop
// giving you warnings if you use production apis.

function jsxWithValidationStatic(type, props, key) {
  {
    return jsxWithValidation(type, props, key, true);
  }
}
function jsxWithValidationDynamic(type, props, key) {
  {
    return jsxWithValidation(type, props, key, false);
  }
}

var jsx =  jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
// for now we can ship identical prod functions

var jsxs =  jsxWithValidationStatic ;

exports.jsx = jsx;
exports.jsxs = jsxs;
  })();
}


/***/ }),

/***/ "./node_modules/react/jsx-runtime.js":
/*!*******************************************!*\
  !*** ./node_modules/react/jsx-runtime.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/react/cjs/react-jsx-runtime.development.js");
}


/***/ })

}]);
//# sourceMappingURL=vendors-node_modules_climb-onyx-gui_dist_climb-onyx-gui_js.910bd0c4726482a8a718.js.map