import {
  s as Ah,
  i as Eh,
  a as Ch,
  b as Mh,
  u as gt,
  W as Nd,
  c as Vd,
  d as Xd,
  V as Oh,
  e as Dh,
} from "./assets/js/a9e0d804-32e6-4274-8633-7a6c21f49ce4.CyHMlw0V.js";
import {
  j as r,
  A as In,
  m as V,
} from "./assets/js/22b15bab-c074-4ebd-a825-d161b6006389.DdiaVcqk.js";
import {
  d as jh,
  b as Dt,
  r as cl,
} from "./assets/js/a1e6c3e5-1429-4875-a33f-1b2c20c9896c.DBn92Big.js";
import {
  j as Nh,
  U as Uh,
  _ as Bh,
} from "./assets/js/659f671f-8efc-4ed6-abef-fe60c3f95f97.BKtmq5RR.js";
import {
  G as xt,
  L as _h,
  a as Gd,
  P as Qd,
  b as Hh,
  R as qh,
  B as Rh,
  c as Lh,
  d as Yh,
  e as Vh,
  M as Xh,
  I as Ud,
  A as Gh,
  C as Qh,
  f as Zh,
  g as Kh,
  E as Jh,
} from "./assets/js/9e94f1d8-bc67-4932-9edb-56089c1c7fa3.BL9Uk9Fi.js";
import {
  t as wh,
  c as Wh,
} from "./assets/js/c83e9bb2-8cb6-47d5-a2ea-36ce1e34e371.DeRmtv56.js";
import { a as Bd } from "./assets/js/f74dc3e1-627c-4a54-932b-2fac8a7ba1e6.C0Zqfgkc.js";
(function () {
  const v = document.createElement("link").relList;
  if (v && v.supports && v.supports("modulepreload")) return;
  for (const S of document.querySelectorAll('link[rel="modulepreload"]')) f(S);
  new MutationObserver((S) => {
    for (const E of S)
      if (E.type === "childList")
        for (const M of E.addedNodes)
          M.tagName === "LINK" && M.rel === "modulepreload" && f(M);
  }).observe(document, { childList: !0, subtree: !0 });
  function m(S) {
    const E = {};
    return (
      S.integrity && (E.integrity = S.integrity),
      S.referrerPolicy && (E.referrerPolicy = S.referrerPolicy),
      S.crossOrigin === "use-credentials"
        ? (E.credentials = "include")
        : S.crossOrigin === "anonymous"
          ? (E.credentials = "omit")
          : (E.credentials = "same-origin"),
      E
    );
  }
  function f(S) {
    if (S.ep) return;
    S.ep = !0;
    const E = m(S);
    fetch(S.href, E);
  }
})();
Ah({ page: "external" });
Eh();
Ch();
Mh();
var Sf = { exports: {} },
  Cu = {},
  xf = { exports: {} },
  zf = {};
var _d;
function kh() {
  return (
    _d ||
      ((_d = 1),
      (function (s) {
        function v(T, B) {
          var G = T.length;
          T.push(B);
          l: for (; 0 < G; ) {
            var fl = (G - 1) >>> 1,
              sl = T[fl];
            if (0 < S(sl, B)) ((T[fl] = B), (T[G] = sl), (G = fl));
            else break l;
          }
        }
        function m(T) {
          return T.length === 0 ? null : T[0];
        }
        function f(T) {
          if (T.length === 0) return null;
          var B = T[0],
            G = T.pop();
          if (G !== B) {
            T[0] = G;
            l: for (var fl = 0, sl = T.length, Ll = sl >>> 1; fl < Ll; ) {
              var hl = 2 * (fl + 1) - 1,
                ll = T[hl],
                Cl = hl + 1,
                At = T[Cl];
              if (0 > S(ll, G))
                Cl < sl && 0 > S(At, ll)
                  ? ((T[fl] = At), (T[Cl] = G), (fl = Cl))
                  : ((T[fl] = ll), (T[hl] = G), (fl = hl));
              else if (Cl < sl && 0 > S(At, G))
                ((T[fl] = At), (T[Cl] = G), (fl = Cl));
              else break l;
            }
          }
          return B;
        }
        function S(T, B) {
          var G = T.sortIndex - B.sortIndex;
          return G !== 0 ? G : T.id - B.id;
        }
        if (
          ((s.unstable_now = void 0),
          typeof performance == "object" &&
            typeof performance.now == "function")
        ) {
          var E = performance;
          s.unstable_now = function () {
            return E.now();
          };
        } else {
          var M = Date,
            j = M.now();
          s.unstable_now = function () {
            return M.now() - j;
          };
        }
        var O = [],
          H = [],
          D = 1,
          C = null,
          U = 3,
          X = !1,
          L = !1,
          F = !1,
          Dl = !1,
          jl = typeof setTimeout == "function" ? setTimeout : null,
          Tl = typeof clearTimeout == "function" ? clearTimeout : null,
          Vl = typeof setImmediate < "u" ? setImmediate : null;
        function zt(T) {
          for (var B = m(H); B !== null; ) {
            if (B.callback === null) f(H);
            else if (B.startTime <= T)
              (f(H), (B.sortIndex = B.expirationTime), v(O, B));
            else break;
            B = m(H);
          }
        }
        function Tt(T) {
          if (((F = !1), zt(T), !L))
            if (m(O) !== null) ((L = !0), Wl || ((Wl = !0), El()));
            else {
              var B = m(H);
              B !== null && jt(Tt, B.startTime - T);
            }
        }
        var Wl = !1,
          nt = -1,
          it = 5,
          N = -1;
        function dl() {
          return Dl ? !0 : !(s.unstable_now() - N < it);
        }
        function Rl() {
          if (((Dl = !1), Wl)) {
            var T = s.unstable_now();
            N = T;
            var B = !0;
            try {
              l: {
                ((L = !1), F && ((F = !1), Tl(nt), (nt = -1)), (X = !0));
                var G = U;
                try {
                  t: {
                    for (
                      zt(T), C = m(O);
                      C !== null && !(C.expirationTime > T && dl());
                    ) {
                      var fl = C.callback;
                      if (typeof fl == "function") {
                        ((C.callback = null), (U = C.priorityLevel));
                        var sl = fl(C.expirationTime <= T);
                        if (((T = s.unstable_now()), typeof sl == "function")) {
                          ((C.callback = sl), zt(T), (B = !0));
                          break t;
                        }
                        (C === m(O) && f(O), zt(T));
                      } else f(O);
                      C = m(O);
                    }
                    if (C !== null) B = !0;
                    else {
                      var Ll = m(H);
                      (Ll !== null && jt(Tt, Ll.startTime - T), (B = !1));
                    }
                  }
                  break l;
                } finally {
                  ((C = null), (U = G), (X = !1));
                }
                B = void 0;
              }
            } finally {
              B ? El() : (Wl = !1);
            }
          }
        }
        var El;
        if (typeof Vl == "function")
          El = function () {
            Vl(Rl);
          };
        else if (typeof MessageChannel < "u") {
          var Ou = new MessageChannel(),
            Be = Ou.port2;
          ((Ou.port1.onmessage = Rl),
            (El = function () {
              Be.postMessage(null);
            }));
        } else
          El = function () {
            jl(Rl, 0);
          };
        function jt(T, B) {
          nt = jl(function () {
            T(s.unstable_now());
          }, B);
        }
        ((s.unstable_IdlePriority = 5),
          (s.unstable_ImmediatePriority = 1),
          (s.unstable_LowPriority = 4),
          (s.unstable_NormalPriority = 3),
          (s.unstable_Profiling = null),
          (s.unstable_UserBlockingPriority = 2),
          (s.unstable_cancelCallback = function (T) {
            T.callback = null;
          }),
          (s.unstable_forceFrameRate = function (T) {
            0 > T || 125 < T
              ? console.error(
                  "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported",
                )
              : (it = 0 < T ? Math.floor(1e3 / T) : 5);
          }),
          (s.unstable_getCurrentPriorityLevel = function () {
            return U;
          }),
          (s.unstable_next = function (T) {
            switch (U) {
              case 1:
              case 2:
              case 3:
                var B = 3;
                break;
              default:
                B = U;
            }
            var G = U;
            U = B;
            try {
              return T();
            } finally {
              U = G;
            }
          }),
          (s.unstable_requestPaint = function () {
            Dl = !0;
          }),
          (s.unstable_runWithPriority = function (T, B) {
            switch (T) {
              case 1:
              case 2:
              case 3:
              case 4:
              case 5:
                break;
              default:
                T = 3;
            }
            var G = U;
            U = T;
            try {
              return B();
            } finally {
              U = G;
            }
          }),
          (s.unstable_scheduleCallback = function (T, B, G) {
            var fl = s.unstable_now();
            switch (
              (typeof G == "object" && G !== null
                ? ((G = G.delay),
                  (G = typeof G == "number" && 0 < G ? fl + G : fl))
                : (G = fl),
              T)
            ) {
              case 1:
                var sl = -1;
                break;
              case 2:
                sl = 250;
                break;
              case 5:
                sl = 1073741823;
                break;
              case 4:
                sl = 1e4;
                break;
              default:
                sl = 5e3;
            }
            return (
              (sl = G + sl),
              (T = {
                id: D++,
                callback: B,
                priorityLevel: T,
                startTime: G,
                expirationTime: sl,
                sortIndex: -1,
              }),
              G > fl
                ? ((T.sortIndex = G),
                  v(H, T),
                  m(O) === null &&
                    T === m(H) &&
                    (F ? (Tl(nt), (nt = -1)) : (F = !0), jt(Tt, G - fl)))
                : ((T.sortIndex = sl),
                  v(O, T),
                  L || X || ((L = !0), Wl || ((Wl = !0), El()))),
              T
            );
          }),
          (s.unstable_shouldYield = dl),
          (s.unstable_wrapCallback = function (T) {
            var B = U;
            return function () {
              var G = U;
              U = B;
              try {
                return T.apply(this, arguments);
              } finally {
                U = G;
              }
            };
          }));
      })(zf)),
    zf
  );
}
var Hd;
function Fh() {
  return (Hd || ((Hd = 1), (xf.exports = kh())), xf.exports);
}
var qd;
function $h() {
  if (qd) return Cu;
  qd = 1;
  var s = Fh(),
    v = jh(),
    m = Nh();
  function f(l) {
    var t = "https://react.dev/errors/" + l;
    if (1 < arguments.length) {
      t += "?args[]=" + encodeURIComponent(arguments[1]);
      for (var a = 2; a < arguments.length; a++)
        t += "&args[]=" + encodeURIComponent(arguments[a]);
    }
    return (
      "Minified React error #" +
      l +
      "; visit " +
      t +
      " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    );
  }
  function S(l) {
    return !(!l || (l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11));
  }
  function E(l) {
    var t = l,
      a = l;
    if (l.alternate) for (; t.return; ) t = t.return;
    else {
      l = t;
      do ((t = l), (t.flags & 4098) !== 0 && (a = t.return), (l = t.return));
      while (l);
    }
    return t.tag === 3 ? a : null;
  }
  function M(l) {
    if (l.tag === 13) {
      var t = l.memoizedState;
      if (
        (t === null && ((l = l.alternate), l !== null && (t = l.memoizedState)),
        t !== null)
      )
        return t.dehydrated;
    }
    return null;
  }
  function j(l) {
    if (l.tag === 31) {
      var t = l.memoizedState;
      if (
        (t === null && ((l = l.alternate), l !== null && (t = l.memoizedState)),
        t !== null)
      )
        return t.dehydrated;
    }
    return null;
  }
  function O(l) {
    if (E(l) !== l) throw Error(f(188));
  }
  function H(l) {
    var t = l.alternate;
    if (!t) {
      if (((t = E(l)), t === null)) throw Error(f(188));
      return t !== l ? null : l;
    }
    for (var a = l, e = t; ; ) {
      var u = a.return;
      if (u === null) break;
      var n = u.alternate;
      if (n === null) {
        if (((e = u.return), e !== null)) {
          a = e;
          continue;
        }
        break;
      }
      if (u.child === n.child) {
        for (n = u.child; n; ) {
          if (n === a) return (O(u), l);
          if (n === e) return (O(u), t);
          n = n.sibling;
        }
        throw Error(f(188));
      }
      if (a.return !== e.return) ((a = u), (e = n));
      else {
        for (var i = !1, c = u.child; c; ) {
          if (c === a) {
            ((i = !0), (a = u), (e = n));
            break;
          }
          if (c === e) {
            ((i = !0), (e = u), (a = n));
            break;
          }
          c = c.sibling;
        }
        if (!i) {
          for (c = n.child; c; ) {
            if (c === a) {
              ((i = !0), (a = n), (e = u));
              break;
            }
            if (c === e) {
              ((i = !0), (e = n), (a = u));
              break;
            }
            c = c.sibling;
          }
          if (!i) throw Error(f(189));
        }
      }
      if (a.alternate !== e) throw Error(f(190));
    }
    if (a.tag !== 3) throw Error(f(188));
    return a.stateNode.current === a ? l : t;
  }
  function D(l) {
    var t = l.tag;
    if (t === 5 || t === 26 || t === 27 || t === 6) return l;
    for (l = l.child; l !== null; ) {
      if (((t = D(l)), t !== null)) return t;
      l = l.sibling;
    }
    return null;
  }
  var C = Object.assign,
    U = Symbol.for("react.element"),
    X = Symbol.for("react.transitional.element"),
    L = Symbol.for("react.portal"),
    F = Symbol.for("react.fragment"),
    Dl = Symbol.for("react.strict_mode"),
    jl = Symbol.for("react.profiler"),
    Tl = Symbol.for("react.consumer"),
    Vl = Symbol.for("react.context"),
    zt = Symbol.for("react.forward_ref"),
    Tt = Symbol.for("react.suspense"),
    Wl = Symbol.for("react.suspense_list"),
    nt = Symbol.for("react.memo"),
    it = Symbol.for("react.lazy"),
    N = Symbol.for("react.activity"),
    dl = Symbol.for("react.memo_cache_sentinel"),
    Rl = Symbol.iterator;
  function El(l) {
    return l === null || typeof l != "object"
      ? null
      : ((l = (Rl && l[Rl]) || l["@@iterator"]),
        typeof l == "function" ? l : null);
  }
  var Ou = Symbol.for("react.client.reference");
  function Be(l) {
    if (l == null) return null;
    if (typeof l == "function")
      return l.$$typeof === Ou ? null : l.displayName || l.name || null;
    if (typeof l == "string") return l;
    switch (l) {
      case F:
        return "Fragment";
      case jl:
        return "Profiler";
      case Dl:
        return "StrictMode";
      case Tt:
        return "Suspense";
      case Wl:
        return "SuspenseList";
      case N:
        return "Activity";
    }
    if (typeof l == "object")
      switch (l.$$typeof) {
        case L:
          return "Portal";
        case Vl:
          return l.displayName || "Context";
        case Tl:
          return (l._context.displayName || "Context") + ".Consumer";
        case zt:
          var t = l.render;
          return (
            (l = l.displayName),
            l ||
              ((l = t.displayName || t.name || ""),
              (l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef")),
            l
          );
        case nt:
          return (
            (t = l.displayName || null),
            t !== null ? t : Be(l.type) || "Memo"
          );
        case it:
          ((t = l._payload), (l = l._init));
          try {
            return Be(l(t));
          } catch {}
      }
    return null;
  }
  var jt = Array.isArray,
    T = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
    B = m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
    G = { pending: !1, data: null, method: null, action: null },
    fl = [],
    sl = -1;
  function Ll(l) {
    return { current: l };
  }
  function hl(l) {
    0 > sl || ((l.current = fl[sl]), (fl[sl] = null), sl--);
  }
  function ll(l, t) {
    (sl++, (fl[sl] = l.current), (l.current = t));
  }
  var Cl = Ll(null),
    At = Ll(null),
    Ft = Ll(null),
    Du = Ll(null);
  function ju(l, t) {
    switch ((ll(Ft, t), ll(At, l), ll(Cl, null), t.nodeType)) {
      case 9:
      case 11:
        l = (l = t.documentElement) && (l = l.namespaceURI) ? ld(l) : 0;
        break;
      default:
        if (((l = t.tagName), (t = t.namespaceURI)))
          ((t = ld(t)), (l = td(t, l)));
        else
          switch (l) {
            case "svg":
              l = 1;
              break;
            case "math":
              l = 2;
              break;
            default:
              l = 0;
          }
    }
    (hl(Cl), ll(Cl, l));
  }
  function Ja() {
    (hl(Cl), hl(At), hl(Ft));
  }
  function li(l) {
    l.memoizedState !== null && ll(Du, l);
    var t = Cl.current,
      a = td(t, l.type);
    t !== a && (ll(At, l), ll(Cl, a));
  }
  function Nu(l) {
    (At.current === l && (hl(Cl), hl(At)),
      Du.current === l && (hl(Du), (zu._currentValue = G)));
  }
  var ti, Df;
  function Ta(l) {
    if (ti === void 0)
      try {
        throw Error();
      } catch (a) {
        var t = a.stack.trim().match(/\n( *(at )?)/);
        ((ti = (t && t[1]) || ""),
          (Df =
            -1 <
            a.stack.indexOf(`
    at`)
              ? " (<anonymous>)"
              : -1 < a.stack.indexOf("@")
                ? "@unknown:0:0"
                : ""));
      }
    return (
      `
` +
      ti +
      l +
      Df
    );
  }
  var ai = !1;
  function ei(l, t) {
    if (!l || ai) return "";
    ai = !0;
    var a = Error.prepareStackTrace;
    Error.prepareStackTrace = void 0;
    try {
      var e = {
        DetermineComponentFrameRoot: function () {
          try {
            if (t) {
              var A = function () {
                throw Error();
              };
              if (
                (Object.defineProperty(A.prototype, "props", {
                  set: function () {
                    throw Error();
                  },
                }),
                typeof Reflect == "object" && Reflect.construct)
              ) {
                try {
                  Reflect.construct(A, []);
                } catch (p) {
                  var b = p;
                }
                Reflect.construct(l, [], A);
              } else {
                try {
                  A.call();
                } catch (p) {
                  b = p;
                }
                l.call(A.prototype);
              }
            } else {
              try {
                throw Error();
              } catch (p) {
                b = p;
              }
              (A = l()) &&
                typeof A.catch == "function" &&
                A.catch(function () {});
            }
          } catch (p) {
            if (p && b && typeof p.stack == "string") return [p.stack, b.stack];
          }
          return [null, null];
        },
      };
      e.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
      var u = Object.getOwnPropertyDescriptor(
        e.DetermineComponentFrameRoot,
        "name",
      );
      u &&
        u.configurable &&
        Object.defineProperty(e.DetermineComponentFrameRoot, "name", {
          value: "DetermineComponentFrameRoot",
        });
      var n = e.DetermineComponentFrameRoot(),
        i = n[0],
        c = n[1];
      if (i && c) {
        var o = i.split(`
`),
          g = c.split(`
`);
        for (
          u = e = 0;
          e < o.length && !o[e].includes("DetermineComponentFrameRoot");
        )
          e++;
        for (; u < g.length && !g[u].includes("DetermineComponentFrameRoot"); )
          u++;
        if (e === o.length || u === g.length)
          for (
            e = o.length - 1, u = g.length - 1;
            1 <= e && 0 <= u && o[e] !== g[u];
          )
            u--;
        for (; 1 <= e && 0 <= u; e--, u--)
          if (o[e] !== g[u]) {
            if (e !== 1 || u !== 1)
              do
                if ((e--, u--, 0 > u || o[e] !== g[u])) {
                  var x =
                    `
` + o[e].replace(" at new ", " at ");
                  return (
                    l.displayName &&
                      x.includes("<anonymous>") &&
                      (x = x.replace("<anonymous>", l.displayName)),
                    x
                  );
                }
              while (1 <= e && 0 <= u);
            break;
          }
      }
    } finally {
      ((ai = !1), (Error.prepareStackTrace = a));
    }
    return (a = l ? l.displayName || l.name : "") ? Ta(a) : "";
  }
  function t0(l, t) {
    switch (l.tag) {
      case 26:
      case 27:
      case 5:
        return Ta(l.type);
      case 16:
        return Ta("Lazy");
      case 13:
        return l.child !== t && t !== null
          ? Ta("Suspense Fallback")
          : Ta("Suspense");
      case 19:
        return Ta("SuspenseList");
      case 0:
      case 15:
        return ei(l.type, !1);
      case 11:
        return ei(l.type.render, !1);
      case 1:
        return ei(l.type, !0);
      case 31:
        return Ta("Activity");
      default:
        return "";
    }
  }
  function jf(l) {
    try {
      var t = "",
        a = null;
      do ((t += t0(l, a)), (a = l), (l = l.return));
      while (l);
      return t;
    } catch (e) {
      return (
        `
Error generating stack: ` +
        e.message +
        `
` +
        e.stack
      );
    }
  }
  var ui = Object.prototype.hasOwnProperty,
    ni = s.unstable_scheduleCallback,
    ii = s.unstable_cancelCallback,
    a0 = s.unstable_shouldYield,
    e0 = s.unstable_requestPaint,
    kl = s.unstable_now,
    u0 = s.unstable_getCurrentPriorityLevel,
    Nf = s.unstable_ImmediatePriority,
    Uf = s.unstable_UserBlockingPriority,
    Uu = s.unstable_NormalPriority,
    n0 = s.unstable_LowPriority,
    Bf = s.unstable_IdlePriority,
    i0 = s.log,
    c0 = s.unstable_setDisableYieldValue,
    _e = null,
    Fl = null;
  function $t(l) {
    if (
      (typeof i0 == "function" && c0(l),
      Fl && typeof Fl.setStrictMode == "function")
    )
      try {
        Fl.setStrictMode(_e, l);
      } catch {}
  }
  var $l = Math.clz32 ? Math.clz32 : o0,
    f0 = Math.log,
    s0 = Math.LN2;
  function o0(l) {
    return ((l >>>= 0), l === 0 ? 32 : (31 - ((f0(l) / s0) | 0)) | 0);
  }
  var Bu = 256,
    _u = 262144,
    Hu = 4194304;
  function Aa(l) {
    var t = l & 42;
    if (t !== 0) return t;
    switch (l & -l) {
      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:
        return 64;
      case 128:
        return 128;
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
        return l & 261888;
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
        return l & 3932160;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
        return l & 62914560;
      case 67108864:
        return 67108864;
      case 134217728:
        return 134217728;
      case 268435456:
        return 268435456;
      case 536870912:
        return 536870912;
      case 1073741824:
        return 0;
      default:
        return l;
    }
  }
  function qu(l, t, a) {
    var e = l.pendingLanes;
    if (e === 0) return 0;
    var u = 0,
      n = l.suspendedLanes,
      i = l.pingedLanes;
    l = l.warmLanes;
    var c = e & 134217727;
    return (
      c !== 0
        ? ((e = c & ~n),
          e !== 0
            ? (u = Aa(e))
            : ((i &= c),
              i !== 0
                ? (u = Aa(i))
                : a || ((a = c & ~l), a !== 0 && (u = Aa(a)))))
        : ((c = e & ~n),
          c !== 0
            ? (u = Aa(c))
            : i !== 0
              ? (u = Aa(i))
              : a || ((a = e & ~l), a !== 0 && (u = Aa(a)))),
      u === 0
        ? 0
        : t !== 0 &&
            t !== u &&
            (t & n) === 0 &&
            ((n = u & -u),
            (a = t & -t),
            n >= a || (n === 32 && (a & 4194048) !== 0))
          ? t
          : u
    );
  }
  function He(l, t) {
    return (l.pendingLanes & ~(l.suspendedLanes & ~l.pingedLanes) & t) === 0;
  }
  function r0(l, t) {
    switch (l) {
      case 1:
      case 2:
      case 4:
      case 8:
      case 64:
        return t + 250;
      case 16:
      case 32:
      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 t + 5e3;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
        return -1;
      case 67108864:
      case 134217728:
      case 268435456:
      case 536870912:
      case 1073741824:
        return -1;
      default:
        return -1;
    }
  }
  function _f() {
    var l = Hu;
    return ((Hu <<= 1), (Hu & 62914560) === 0 && (Hu = 4194304), l);
  }
  function ci(l) {
    for (var t = [], a = 0; 31 > a; a++) t.push(l);
    return t;
  }
  function qe(l, t) {
    ((l.pendingLanes |= t),
      t !== 268435456 &&
        ((l.suspendedLanes = 0), (l.pingedLanes = 0), (l.warmLanes = 0)));
  }
  function d0(l, t, a, e, u, n) {
    var i = l.pendingLanes;
    ((l.pendingLanes = a),
      (l.suspendedLanes = 0),
      (l.pingedLanes = 0),
      (l.warmLanes = 0),
      (l.expiredLanes &= a),
      (l.entangledLanes &= a),
      (l.errorRecoveryDisabledLanes &= a),
      (l.shellSuspendCounter = 0));
    var c = l.entanglements,
      o = l.expirationTimes,
      g = l.hiddenUpdates;
    for (a = i & ~a; 0 < a; ) {
      var x = 31 - $l(a),
        A = 1 << x;
      ((c[x] = 0), (o[x] = -1));
      var b = g[x];
      if (b !== null)
        for (g[x] = null, x = 0; x < b.length; x++) {
          var p = b[x];
          p !== null && (p.lane &= -536870913);
        }
      a &= ~A;
    }
    (e !== 0 && Hf(l, e, 0),
      n !== 0 && u === 0 && l.tag !== 0 && (l.suspendedLanes |= n & ~(i & ~t)));
  }
  function Hf(l, t, a) {
    ((l.pendingLanes |= t), (l.suspendedLanes &= ~t));
    var e = 31 - $l(t);
    ((l.entangledLanes |= t),
      (l.entanglements[e] = l.entanglements[e] | 1073741824 | (a & 261930)));
  }
  function qf(l, t) {
    var a = (l.entangledLanes |= t);
    for (l = l.entanglements; a; ) {
      var e = 31 - $l(a),
        u = 1 << e;
      ((u & t) | (l[e] & t) && (l[e] |= t), (a &= ~u));
    }
  }
  function Rf(l, t) {
    var a = t & -t;
    return (
      (a = (a & 42) !== 0 ? 1 : fi(a)),
      (a & (l.suspendedLanes | t)) !== 0 ? 0 : a
    );
  }
  function fi(l) {
    switch (l) {
      case 2:
        l = 1;
        break;
      case 8:
        l = 4;
        break;
      case 32:
        l = 16;
        break;
      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:
        l = 128;
        break;
      case 268435456:
        l = 134217728;
        break;
      default:
        l = 0;
    }
    return l;
  }
  function si(l) {
    return (
      (l &= -l),
      2 < l ? (8 < l ? ((l & 134217727) !== 0 ? 32 : 268435456) : 8) : 2
    );
  }
  function Lf() {
    var l = B.p;
    return l !== 0 ? l : ((l = window.event), l === void 0 ? 32 : Ad(l.type));
  }
  function Yf(l, t) {
    var a = B.p;
    try {
      return ((B.p = l), t());
    } finally {
      B.p = a;
    }
  }
  var It = Math.random().toString(36).slice(2),
    Nl = "__reactFiber$" + It,
    Xl = "__reactProps$" + It,
    wa = "__reactContainer$" + It,
    oi = "__reactEvents$" + It,
    m0 = "__reactListeners$" + It,
    h0 = "__reactHandles$" + It,
    Vf = "__reactResources$" + It,
    Re = "__reactMarker$" + It;
  function ri(l) {
    (delete l[Nl], delete l[Xl], delete l[oi], delete l[m0], delete l[h0]);
  }
  function Wa(l) {
    var t = l[Nl];
    if (t) return t;
    for (var a = l.parentNode; a; ) {
      if ((t = a[wa] || a[Nl])) {
        if (
          ((a = t.alternate),
          t.child !== null || (a !== null && a.child !== null))
        )
          for (l = fd(l); l !== null; ) {
            if ((a = l[Nl])) return a;
            l = fd(l);
          }
        return t;
      }
      ((l = a), (a = l.parentNode));
    }
    return null;
  }
  function ka(l) {
    if ((l = l[Nl] || l[wa])) {
      var t = l.tag;
      if (
        t === 5 ||
        t === 6 ||
        t === 13 ||
        t === 31 ||
        t === 26 ||
        t === 27 ||
        t === 3
      )
        return l;
    }
    return null;
  }
  function Le(l) {
    var t = l.tag;
    if (t === 5 || t === 26 || t === 27 || t === 6) return l.stateNode;
    throw Error(f(33));
  }
  function Fa(l) {
    var t = l[Vf];
    return (
      t ||
        (t = l[Vf] =
          { hoistableStyles: new Map(), hoistableScripts: new Map() }),
      t
    );
  }
  function Ml(l) {
    l[Re] = !0;
  }
  var Xf = new Set(),
    Gf = {};
  function Ea(l, t) {
    ($a(l, t), $a(l + "Capture", t));
  }
  function $a(l, t) {
    for (Gf[l] = t, l = 0; l < t.length; l++) Xf.add(t[l]);
  }
  var v0 = RegExp(
      "^[: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]*$",
    ),
    Qf = {},
    Zf = {};
  function y0(l) {
    return ui.call(Zf, l)
      ? !0
      : ui.call(Qf, l)
        ? !1
        : v0.test(l)
          ? (Zf[l] = !0)
          : ((Qf[l] = !0), !1);
  }
  function Ru(l, t, a) {
    if (y0(t))
      if (a === null) l.removeAttribute(t);
      else {
        switch (typeof a) {
          case "undefined":
          case "function":
          case "symbol":
            l.removeAttribute(t);
            return;
          case "boolean":
            var e = t.toLowerCase().slice(0, 5);
            if (e !== "data-" && e !== "aria-") {
              l.removeAttribute(t);
              return;
            }
        }
        l.setAttribute(t, "" + a);
      }
  }
  function Lu(l, t, a) {
    if (a === null) l.removeAttribute(t);
    else {
      switch (typeof a) {
        case "undefined":
        case "function":
        case "symbol":
        case "boolean":
          l.removeAttribute(t);
          return;
      }
      l.setAttribute(t, "" + a);
    }
  }
  function Nt(l, t, a, e) {
    if (e === null) l.removeAttribute(a);
    else {
      switch (typeof e) {
        case "undefined":
        case "function":
        case "symbol":
        case "boolean":
          l.removeAttribute(a);
          return;
      }
      l.setAttributeNS(t, a, "" + e);
    }
  }
  function ct(l) {
    switch (typeof l) {
      case "bigint":
      case "boolean":
      case "number":
      case "string":
      case "undefined":
        return l;
      case "object":
        return l;
      default:
        return "";
    }
  }
  function Kf(l) {
    var t = l.type;
    return (
      (l = l.nodeName) &&
      l.toLowerCase() === "input" &&
      (t === "checkbox" || t === "radio")
    );
  }
  function g0(l, t, a) {
    var e = Object.getOwnPropertyDescriptor(l.constructor.prototype, t);
    if (
      !l.hasOwnProperty(t) &&
      typeof e < "u" &&
      typeof e.get == "function" &&
      typeof e.set == "function"
    ) {
      var u = e.get,
        n = e.set;
      return (
        Object.defineProperty(l, t, {
          configurable: !0,
          get: function () {
            return u.call(this);
          },
          set: function (i) {
            ((a = "" + i), n.call(this, i));
          },
        }),
        Object.defineProperty(l, t, { enumerable: e.enumerable }),
        {
          getValue: function () {
            return a;
          },
          setValue: function (i) {
            a = "" + i;
          },
          stopTracking: function () {
            ((l._valueTracker = null), delete l[t]);
          },
        }
      );
    }
  }
  function di(l) {
    if (!l._valueTracker) {
      var t = Kf(l) ? "checked" : "value";
      l._valueTracker = g0(l, t, "" + l[t]);
    }
  }
  function Jf(l) {
    if (!l) return !1;
    var t = l._valueTracker;
    if (!t) return !0;
    var a = t.getValue(),
      e = "";
    return (
      l && (e = Kf(l) ? (l.checked ? "true" : "false") : l.value),
      (l = e),
      l !== a ? (t.setValue(l), !0) : !1
    );
  }
  function Yu(l) {
    if (
      ((l = l || (typeof document < "u" ? document : void 0)), typeof l > "u")
    )
      return null;
    try {
      return l.activeElement || l.body;
    } catch {
      return l.body;
    }
  }
  var b0 = /[\n"\\]/g;
  function ft(l) {
    return l.replace(b0, function (t) {
      return "\\" + t.charCodeAt(0).toString(16) + " ";
    });
  }
  function mi(l, t, a, e, u, n, i, c) {
    ((l.name = ""),
      i != null &&
      typeof i != "function" &&
      typeof i != "symbol" &&
      typeof i != "boolean"
        ? (l.type = i)
        : l.removeAttribute("type"),
      t != null
        ? i === "number"
          ? ((t === 0 && l.value === "") || l.value != t) &&
            (l.value = "" + ct(t))
          : l.value !== "" + ct(t) && (l.value = "" + ct(t))
        : (i !== "submit" && i !== "reset") || l.removeAttribute("value"),
      t != null
        ? hi(l, i, ct(t))
        : a != null
          ? hi(l, i, ct(a))
          : e != null && l.removeAttribute("value"),
      u == null && n != null && (l.defaultChecked = !!n),
      u != null &&
        (l.checked = u && typeof u != "function" && typeof u != "symbol"),
      c != null &&
      typeof c != "function" &&
      typeof c != "symbol" &&
      typeof c != "boolean"
        ? (l.name = "" + ct(c))
        : l.removeAttribute("name"));
  }
  function wf(l, t, a, e, u, n, i, c) {
    if (
      (n != null &&
        typeof n != "function" &&
        typeof n != "symbol" &&
        typeof n != "boolean" &&
        (l.type = n),
      t != null || a != null)
    ) {
      if (!((n !== "submit" && n !== "reset") || t != null)) {
        di(l);
        return;
      }
      ((a = a != null ? "" + ct(a) : ""),
        (t = t != null ? "" + ct(t) : a),
        c || t === l.value || (l.value = t),
        (l.defaultValue = t));
    }
    ((e = e ?? u),
      (e = typeof e != "function" && typeof e != "symbol" && !!e),
      (l.checked = c ? l.checked : !!e),
      (l.defaultChecked = !!e),
      i != null &&
        typeof i != "function" &&
        typeof i != "symbol" &&
        typeof i != "boolean" &&
        (l.name = i),
      di(l));
  }
  function hi(l, t, a) {
    (t === "number" && Yu(l.ownerDocument) === l) ||
      l.defaultValue === "" + a ||
      (l.defaultValue = "" + a);
  }
  function Ia(l, t, a, e) {
    if (((l = l.options), t)) {
      t = {};
      for (var u = 0; u < a.length; u++) t["$" + a[u]] = !0;
      for (a = 0; a < l.length; a++)
        ((u = t.hasOwnProperty("$" + l[a].value)),
          l[a].selected !== u && (l[a].selected = u),
          u && e && (l[a].defaultSelected = !0));
    } else {
      for (a = "" + ct(a), t = null, u = 0; u < l.length; u++) {
        if (l[u].value === a) {
          ((l[u].selected = !0), e && (l[u].defaultSelected = !0));
          return;
        }
        t !== null || l[u].disabled || (t = l[u]);
      }
      t !== null && (t.selected = !0);
    }
  }
  function Wf(l, t, a) {
    if (
      t != null &&
      ((t = "" + ct(t)), t !== l.value && (l.value = t), a == null)
    ) {
      l.defaultValue !== t && (l.defaultValue = t);
      return;
    }
    l.defaultValue = a != null ? "" + ct(a) : "";
  }
  function kf(l, t, a, e) {
    if (t == null) {
      if (e != null) {
        if (a != null) throw Error(f(92));
        if (jt(e)) {
          if (1 < e.length) throw Error(f(93));
          e = e[0];
        }
        a = e;
      }
      (a == null && (a = ""), (t = a));
    }
    ((a = ct(t)),
      (l.defaultValue = a),
      (e = l.textContent),
      e === a && e !== "" && e !== null && (l.value = e),
      di(l));
  }
  function Pa(l, t) {
    if (t) {
      var a = l.firstChild;
      if (a && a === l.lastChild && a.nodeType === 3) {
        a.nodeValue = t;
        return;
      }
    }
    l.textContent = t;
  }
  var p0 = new Set(
    "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
      " ",
    ),
  );
  function Ff(l, t, a) {
    var e = t.indexOf("--") === 0;
    a == null || typeof a == "boolean" || a === ""
      ? e
        ? l.setProperty(t, "")
        : t === "float"
          ? (l.cssFloat = "")
          : (l[t] = "")
      : e
        ? l.setProperty(t, a)
        : typeof a != "number" || a === 0 || p0.has(t)
          ? t === "float"
            ? (l.cssFloat = a)
            : (l[t] = ("" + a).trim())
          : (l[t] = a + "px");
  }
  function $f(l, t, a) {
    if (t != null && typeof t != "object") throw Error(f(62));
    if (((l = l.style), a != null)) {
      for (var e in a)
        !a.hasOwnProperty(e) ||
          (t != null && t.hasOwnProperty(e)) ||
          (e.indexOf("--") === 0
            ? l.setProperty(e, "")
            : e === "float"
              ? (l.cssFloat = "")
              : (l[e] = ""));
      for (var u in t)
        ((e = t[u]), t.hasOwnProperty(u) && a[u] !== e && Ff(l, u, e));
    } else for (var n in t) t.hasOwnProperty(n) && Ff(l, n, t[n]);
  }
  function vi(l) {
    if (l.indexOf("-") === -1) return !1;
    switch (l) {
      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 S0 = new Map([
      ["acceptCharset", "accept-charset"],
      ["htmlFor", "for"],
      ["httpEquiv", "http-equiv"],
      ["crossOrigin", "crossorigin"],
      ["accentHeight", "accent-height"],
      ["alignmentBaseline", "alignment-baseline"],
      ["arabicForm", "arabic-form"],
      ["baselineShift", "baseline-shift"],
      ["capHeight", "cap-height"],
      ["clipPath", "clip-path"],
      ["clipRule", "clip-rule"],
      ["colorInterpolation", "color-interpolation"],
      ["colorInterpolationFilters", "color-interpolation-filters"],
      ["colorProfile", "color-profile"],
      ["colorRendering", "color-rendering"],
      ["dominantBaseline", "dominant-baseline"],
      ["enableBackground", "enable-background"],
      ["fillOpacity", "fill-opacity"],
      ["fillRule", "fill-rule"],
      ["floodColor", "flood-color"],
      ["floodOpacity", "flood-opacity"],
      ["fontFamily", "font-family"],
      ["fontSize", "font-size"],
      ["fontSizeAdjust", "font-size-adjust"],
      ["fontStretch", "font-stretch"],
      ["fontStyle", "font-style"],
      ["fontVariant", "font-variant"],
      ["fontWeight", "font-weight"],
      ["glyphName", "glyph-name"],
      ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
      ["glyphOrientationVertical", "glyph-orientation-vertical"],
      ["horizAdvX", "horiz-adv-x"],
      ["horizOriginX", "horiz-origin-x"],
      ["imageRendering", "image-rendering"],
      ["letterSpacing", "letter-spacing"],
      ["lightingColor", "lighting-color"],
      ["markerEnd", "marker-end"],
      ["markerMid", "marker-mid"],
      ["markerStart", "marker-start"],
      ["overlinePosition", "overline-position"],
      ["overlineThickness", "overline-thickness"],
      ["paintOrder", "paint-order"],
      ["panose-1", "panose-1"],
      ["pointerEvents", "pointer-events"],
      ["renderingIntent", "rendering-intent"],
      ["shapeRendering", "shape-rendering"],
      ["stopColor", "stop-color"],
      ["stopOpacity", "stop-opacity"],
      ["strikethroughPosition", "strikethrough-position"],
      ["strikethroughThickness", "strikethrough-thickness"],
      ["strokeDasharray", "stroke-dasharray"],
      ["strokeDashoffset", "stroke-dashoffset"],
      ["strokeLinecap", "stroke-linecap"],
      ["strokeLinejoin", "stroke-linejoin"],
      ["strokeMiterlimit", "stroke-miterlimit"],
      ["strokeOpacity", "stroke-opacity"],
      ["strokeWidth", "stroke-width"],
      ["textAnchor", "text-anchor"],
      ["textDecoration", "text-decoration"],
      ["textRendering", "text-rendering"],
      ["transformOrigin", "transform-origin"],
      ["underlinePosition", "underline-position"],
      ["underlineThickness", "underline-thickness"],
      ["unicodeBidi", "unicode-bidi"],
      ["unicodeRange", "unicode-range"],
      ["unitsPerEm", "units-per-em"],
      ["vAlphabetic", "v-alphabetic"],
      ["vHanging", "v-hanging"],
      ["vIdeographic", "v-ideographic"],
      ["vMathematical", "v-mathematical"],
      ["vectorEffect", "vector-effect"],
      ["vertAdvY", "vert-adv-y"],
      ["vertOriginX", "vert-origin-x"],
      ["vertOriginY", "vert-origin-y"],
      ["wordSpacing", "word-spacing"],
      ["writingMode", "writing-mode"],
      ["xmlnsXlink", "xmlns:xlink"],
      ["xHeight", "x-height"],
    ]),
    x0 =
      /^[\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;
  function Vu(l) {
    return x0.test("" + l)
      ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
      : l;
  }
  function Ut() {}
  var yi = null;
  function gi(l) {
    return (
      (l = l.target || l.srcElement || window),
      l.correspondingUseElement && (l = l.correspondingUseElement),
      l.nodeType === 3 ? l.parentNode : l
    );
  }
  var le = null,
    te = null;
  function If(l) {
    var t = ka(l);
    if (t && (l = t.stateNode)) {
      var a = l[Xl] || null;
      l: switch (((l = t.stateNode), t.type)) {
        case "input":
          if (
            (mi(
              l,
              a.value,
              a.defaultValue,
              a.defaultValue,
              a.checked,
              a.defaultChecked,
              a.type,
              a.name,
            ),
            (t = a.name),
            a.type === "radio" && t != null)
          ) {
            for (a = l; a.parentNode; ) a = a.parentNode;
            for (
              a = a.querySelectorAll(
                'input[name="' + ft("" + t) + '"][type="radio"]',
              ),
                t = 0;
              t < a.length;
              t++
            ) {
              var e = a[t];
              if (e !== l && e.form === l.form) {
                var u = e[Xl] || null;
                if (!u) throw Error(f(90));
                mi(
                  e,
                  u.value,
                  u.defaultValue,
                  u.defaultValue,
                  u.checked,
                  u.defaultChecked,
                  u.type,
                  u.name,
                );
              }
            }
            for (t = 0; t < a.length; t++)
              ((e = a[t]), e.form === l.form && Jf(e));
          }
          break l;
        case "textarea":
          Wf(l, a.value, a.defaultValue);
          break l;
        case "select":
          ((t = a.value), t != null && Ia(l, !!a.multiple, t, !1));
      }
    }
  }
  var bi = !1;
  function Pf(l, t, a) {
    if (bi) return l(t, a);
    bi = !0;
    try {
      var e = l(t);
      return e;
    } finally {
      if (
        ((bi = !1),
        (le !== null || te !== null) &&
          (On(), le && ((t = le), (l = te), (te = le = null), If(t), l)))
      )
        for (t = 0; t < l.length; t++) If(l[t]);
    }
  }
  function Ye(l, t) {
    var a = l.stateNode;
    if (a === null) return null;
    var e = a[Xl] || null;
    if (e === null) return null;
    a = e[t];
    l: switch (t) {
      case "onClick":
      case "onClickCapture":
      case "onDoubleClick":
      case "onDoubleClickCapture":
      case "onMouseDown":
      case "onMouseDownCapture":
      case "onMouseMove":
      case "onMouseMoveCapture":
      case "onMouseUp":
      case "onMouseUpCapture":
      case "onMouseEnter":
        ((e = !e.disabled) ||
          ((l = l.type),
          (e = !(
            l === "button" ||
            l === "input" ||
            l === "select" ||
            l === "textarea"
          ))),
          (l = !e));
        break l;
      default:
        l = !1;
    }
    if (l) return null;
    if (a && typeof a != "function") throw Error(f(231, t, typeof a));
    return a;
  }
  var Bt = !(
      typeof window > "u" ||
      typeof window.document > "u" ||
      typeof window.document.createElement > "u"
    ),
    pi = !1;
  if (Bt)
    try {
      var Ve = {};
      (Object.defineProperty(Ve, "passive", {
        get: function () {
          pi = !0;
        },
      }),
        window.addEventListener("test", Ve, Ve),
        window.removeEventListener("test", Ve, Ve));
    } catch {
      pi = !1;
    }
  var Pt = null,
    Si = null,
    Xu = null;
  function ls() {
    if (Xu) return Xu;
    var l,
      t = Si,
      a = t.length,
      e,
      u = "value" in Pt ? Pt.value : Pt.textContent,
      n = u.length;
    for (l = 0; l < a && t[l] === u[l]; l++);
    var i = a - l;
    for (e = 1; e <= i && t[a - e] === u[n - e]; e++);
    return (Xu = u.slice(l, 1 < e ? 1 - e : void 0));
  }
  function Gu(l) {
    var t = l.keyCode;
    return (
      "charCode" in l
        ? ((l = l.charCode), l === 0 && t === 13 && (l = 13))
        : (l = t),
      l === 10 && (l = 13),
      32 <= l || l === 13 ? l : 0
    );
  }
  function Qu() {
    return !0;
  }
  function ts() {
    return !1;
  }
  function Gl(l) {
    function t(a, e, u, n, i) {
      ((this._reactName = a),
        (this._targetInst = u),
        (this.type = e),
        (this.nativeEvent = n),
        (this.target = i),
        (this.currentTarget = null));
      for (var c in l)
        l.hasOwnProperty(c) && ((a = l[c]), (this[c] = a ? a(n) : n[c]));
      return (
        (this.isDefaultPrevented = (
          n.defaultPrevented != null ? n.defaultPrevented : n.returnValue === !1
        )
          ? Qu
          : ts),
        (this.isPropagationStopped = ts),
        this
      );
    }
    return (
      C(t.prototype, {
        preventDefault: function () {
          this.defaultPrevented = !0;
          var a = this.nativeEvent;
          a &&
            (a.preventDefault
              ? a.preventDefault()
              : typeof a.returnValue != "unknown" && (a.returnValue = !1),
            (this.isDefaultPrevented = Qu));
        },
        stopPropagation: function () {
          var a = this.nativeEvent;
          a &&
            (a.stopPropagation
              ? a.stopPropagation()
              : typeof a.cancelBubble != "unknown" && (a.cancelBubble = !0),
            (this.isPropagationStopped = Qu));
        },
        persist: function () {},
        isPersistent: Qu,
      }),
      t
    );
  }
  var Ca = {
      eventPhase: 0,
      bubbles: 0,
      cancelable: 0,
      timeStamp: function (l) {
        return l.timeStamp || Date.now();
      },
      defaultPrevented: 0,
      isTrusted: 0,
    },
    Zu = Gl(Ca),
    Xe = C({}, Ca, { view: 0, detail: 0 }),
    z0 = Gl(Xe),
    xi,
    zi,
    Ge,
    Ku = C({}, Xe, {
      screenX: 0,
      screenY: 0,
      clientX: 0,
      clientY: 0,
      pageX: 0,
      pageY: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      getModifierState: Ai,
      button: 0,
      buttons: 0,
      relatedTarget: function (l) {
        return l.relatedTarget === void 0
          ? l.fromElement === l.srcElement
            ? l.toElement
            : l.fromElement
          : l.relatedTarget;
      },
      movementX: function (l) {
        return "movementX" in l
          ? l.movementX
          : (l !== Ge &&
              (Ge && l.type === "mousemove"
                ? ((xi = l.screenX - Ge.screenX), (zi = l.screenY - Ge.screenY))
                : (zi = xi = 0),
              (Ge = l)),
            xi);
      },
      movementY: function (l) {
        return "movementY" in l ? l.movementY : zi;
      },
    }),
    as = Gl(Ku),
    T0 = C({}, Ku, { dataTransfer: 0 }),
    A0 = Gl(T0),
    E0 = C({}, Xe, { relatedTarget: 0 }),
    Ti = Gl(E0),
    C0 = C({}, Ca, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }),
    M0 = Gl(C0),
    O0 = C({}, Ca, {
      clipboardData: function (l) {
        return "clipboardData" in l ? l.clipboardData : window.clipboardData;
      },
    }),
    D0 = Gl(O0),
    j0 = C({}, Ca, { data: 0 }),
    es = Gl(j0),
    N0 = {
      Esc: "Escape",
      Spacebar: " ",
      Left: "ArrowLeft",
      Up: "ArrowUp",
      Right: "ArrowRight",
      Down: "ArrowDown",
      Del: "Delete",
      Win: "OS",
      Menu: "ContextMenu",
      Apps: "ContextMenu",
      Scroll: "ScrollLock",
      MozPrintableKey: "Unidentified",
    },
    U0 = {
      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",
    },
    B0 = {
      Alt: "altKey",
      Control: "ctrlKey",
      Meta: "metaKey",
      Shift: "shiftKey",
    };
  function _0(l) {
    var t = this.nativeEvent;
    return t.getModifierState
      ? t.getModifierState(l)
      : (l = B0[l])
        ? !!t[l]
        : !1;
  }
  function Ai() {
    return _0;
  }
  var H0 = C({}, Xe, {
      key: function (l) {
        if (l.key) {
          var t = N0[l.key] || l.key;
          if (t !== "Unidentified") return t;
        }
        return l.type === "keypress"
          ? ((l = Gu(l)), l === 13 ? "Enter" : String.fromCharCode(l))
          : l.type === "keydown" || l.type === "keyup"
            ? U0[l.keyCode] || "Unidentified"
            : "";
      },
      code: 0,
      location: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      repeat: 0,
      locale: 0,
      getModifierState: Ai,
      charCode: function (l) {
        return l.type === "keypress" ? Gu(l) : 0;
      },
      keyCode: function (l) {
        return l.type === "keydown" || l.type === "keyup" ? l.keyCode : 0;
      },
      which: function (l) {
        return l.type === "keypress"
          ? Gu(l)
          : l.type === "keydown" || l.type === "keyup"
            ? l.keyCode
            : 0;
      },
    }),
    q0 = Gl(H0),
    R0 = C({}, Ku, {
      pointerId: 0,
      width: 0,
      height: 0,
      pressure: 0,
      tangentialPressure: 0,
      tiltX: 0,
      tiltY: 0,
      twist: 0,
      pointerType: 0,
      isPrimary: 0,
    }),
    us = Gl(R0),
    L0 = C({}, Xe, {
      touches: 0,
      targetTouches: 0,
      changedTouches: 0,
      altKey: 0,
      metaKey: 0,
      ctrlKey: 0,
      shiftKey: 0,
      getModifierState: Ai,
    }),
    Y0 = Gl(L0),
    V0 = C({}, Ca, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }),
    X0 = Gl(V0),
    G0 = C({}, Ku, {
      deltaX: function (l) {
        return "deltaX" in l
          ? l.deltaX
          : "wheelDeltaX" in l
            ? -l.wheelDeltaX
            : 0;
      },
      deltaY: function (l) {
        return "deltaY" in l
          ? l.deltaY
          : "wheelDeltaY" in l
            ? -l.wheelDeltaY
            : "wheelDelta" in l
              ? -l.wheelDelta
              : 0;
      },
      deltaZ: 0,
      deltaMode: 0,
    }),
    Q0 = Gl(G0),
    Z0 = C({}, Ca, { newState: 0, oldState: 0 }),
    K0 = Gl(Z0),
    J0 = [9, 13, 27, 32],
    Ei = Bt && "CompositionEvent" in window,
    Qe = null;
  Bt && "documentMode" in document && (Qe = document.documentMode);
  var w0 = Bt && "TextEvent" in window && !Qe,
    ns = Bt && (!Ei || (Qe && 8 < Qe && 11 >= Qe)),
    is = " ",
    cs = !1;
  function fs(l, t) {
    switch (l) {
      case "keyup":
        return J0.indexOf(t.keyCode) !== -1;
      case "keydown":
        return t.keyCode !== 229;
      case "keypress":
      case "mousedown":
      case "focusout":
        return !0;
      default:
        return !1;
    }
  }
  function ss(l) {
    return (
      (l = l.detail),
      typeof l == "object" && "data" in l ? l.data : null
    );
  }
  var ae = !1;
  function W0(l, t) {
    switch (l) {
      case "compositionend":
        return ss(t);
      case "keypress":
        return t.which !== 32 ? null : ((cs = !0), is);
      case "textInput":
        return ((l = t.data), l === is && cs ? null : l);
      default:
        return null;
    }
  }
  function k0(l, t) {
    if (ae)
      return l === "compositionend" || (!Ei && fs(l, t))
        ? ((l = ls()), (Xu = Si = Pt = null), (ae = !1), l)
        : null;
    switch (l) {
      case "paste":
        return null;
      case "keypress":
        if (!(t.ctrlKey || t.altKey || t.metaKey) || (t.ctrlKey && t.altKey)) {
          if (t.char && 1 < t.char.length) return t.char;
          if (t.which) return String.fromCharCode(t.which);
        }
        return null;
      case "compositionend":
        return ns && t.locale !== "ko" ? null : t.data;
      default:
        return null;
    }
  }
  var F0 = {
    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 os(l) {
    var t = l && l.nodeName && l.nodeName.toLowerCase();
    return t === "input" ? !!F0[l.type] : t === "textarea";
  }
  function rs(l, t, a, e) {
    (le ? (te ? te.push(e) : (te = [e])) : (le = e),
      (t = Hn(t, "onChange")),
      0 < t.length &&
        ((a = new Zu("onChange", "change", null, a, e)),
        l.push({ event: a, listeners: t })));
  }
  var Ze = null,
    Ke = null;
  function $0(l) {
    Wr(l, 0);
  }
  function Ju(l) {
    var t = Le(l);
    if (Jf(t)) return l;
  }
  function ds(l, t) {
    if (l === "change") return t;
  }
  var ms = !1;
  if (Bt) {
    var Ci;
    if (Bt) {
      var Mi = "oninput" in document;
      if (!Mi) {
        var hs = document.createElement("div");
        (hs.setAttribute("oninput", "return;"),
          (Mi = typeof hs.oninput == "function"));
      }
      Ci = Mi;
    } else Ci = !1;
    ms = Ci && (!document.documentMode || 9 < document.documentMode);
  }
  function vs() {
    Ze && (Ze.detachEvent("onpropertychange", ys), (Ke = Ze = null));
  }
  function ys(l) {
    if (l.propertyName === "value" && Ju(Ke)) {
      var t = [];
      (rs(t, Ke, l, gi(l)), Pf($0, t));
    }
  }
  function I0(l, t, a) {
    l === "focusin"
      ? (vs(), (Ze = t), (Ke = a), Ze.attachEvent("onpropertychange", ys))
      : l === "focusout" && vs();
  }
  function P0(l) {
    if (l === "selectionchange" || l === "keyup" || l === "keydown")
      return Ju(Ke);
  }
  function lm(l, t) {
    if (l === "click") return Ju(t);
  }
  function tm(l, t) {
    if (l === "input" || l === "change") return Ju(t);
  }
  function am(l, t) {
    return (l === t && (l !== 0 || 1 / l === 1 / t)) || (l !== l && t !== t);
  }
  var Il = typeof Object.is == "function" ? Object.is : am;
  function Je(l, t) {
    if (Il(l, t)) return !0;
    if (
      typeof l != "object" ||
      l === null ||
      typeof t != "object" ||
      t === null
    )
      return !1;
    var a = Object.keys(l),
      e = Object.keys(t);
    if (a.length !== e.length) return !1;
    for (e = 0; e < a.length; e++) {
      var u = a[e];
      if (!ui.call(t, u) || !Il(l[u], t[u])) return !1;
    }
    return !0;
  }
  function gs(l) {
    for (; l && l.firstChild; ) l = l.firstChild;
    return l;
  }
  function bs(l, t) {
    var a = gs(l);
    l = 0;
    for (var e; a; ) {
      if (a.nodeType === 3) {
        if (((e = l + a.textContent.length), l <= t && e >= t))
          return { node: a, offset: t - l };
        l = e;
      }
      l: {
        for (; a; ) {
          if (a.nextSibling) {
            a = a.nextSibling;
            break l;
          }
          a = a.parentNode;
        }
        a = void 0;
      }
      a = gs(a);
    }
  }
  function ps(l, t) {
    return l && t
      ? l === t
        ? !0
        : l && l.nodeType === 3
          ? !1
          : t && t.nodeType === 3
            ? ps(l, t.parentNode)
            : "contains" in l
              ? l.contains(t)
              : l.compareDocumentPosition
                ? !!(l.compareDocumentPosition(t) & 16)
                : !1
      : !1;
  }
  function Ss(l) {
    l =
      l != null &&
      l.ownerDocument != null &&
      l.ownerDocument.defaultView != null
        ? l.ownerDocument.defaultView
        : window;
    for (var t = Yu(l.document); t instanceof l.HTMLIFrameElement; ) {
      try {
        var a = typeof t.contentWindow.location.href == "string";
      } catch {
        a = !1;
      }
      if (a) l = t.contentWindow;
      else break;
      t = Yu(l.document);
    }
    return t;
  }
  function Oi(l) {
    var t = l && l.nodeName && l.nodeName.toLowerCase();
    return (
      t &&
      ((t === "input" &&
        (l.type === "text" ||
          l.type === "search" ||
          l.type === "tel" ||
          l.type === "url" ||
          l.type === "password")) ||
        t === "textarea" ||
        l.contentEditable === "true")
    );
  }
  var em = Bt && "documentMode" in document && 11 >= document.documentMode,
    ee = null,
    Di = null,
    we = null,
    ji = !1;
  function xs(l, t, a) {
    var e =
      a.window === a ? a.document : a.nodeType === 9 ? a : a.ownerDocument;
    ji ||
      ee == null ||
      ee !== Yu(e) ||
      ((e = ee),
      "selectionStart" in e && Oi(e)
        ? (e = { start: e.selectionStart, end: e.selectionEnd })
        : ((e = (
            (e.ownerDocument && e.ownerDocument.defaultView) ||
            window
          ).getSelection()),
          (e = {
            anchorNode: e.anchorNode,
            anchorOffset: e.anchorOffset,
            focusNode: e.focusNode,
            focusOffset: e.focusOffset,
          })),
      (we && Je(we, e)) ||
        ((we = e),
        (e = Hn(Di, "onSelect")),
        0 < e.length &&
          ((t = new Zu("onSelect", "select", null, t, a)),
          l.push({ event: t, listeners: e }),
          (t.target = ee))));
  }
  function Ma(l, t) {
    var a = {};
    return (
      (a[l.toLowerCase()] = t.toLowerCase()),
      (a["Webkit" + l] = "webkit" + t),
      (a["Moz" + l] = "moz" + t),
      a
    );
  }
  var ue = {
      animationend: Ma("Animation", "AnimationEnd"),
      animationiteration: Ma("Animation", "AnimationIteration"),
      animationstart: Ma("Animation", "AnimationStart"),
      transitionrun: Ma("Transition", "TransitionRun"),
      transitionstart: Ma("Transition", "TransitionStart"),
      transitioncancel: Ma("Transition", "TransitionCancel"),
      transitionend: Ma("Transition", "TransitionEnd"),
    },
    Ni = {},
    zs = {};
  Bt &&
    ((zs = document.createElement("div").style),
    "AnimationEvent" in window ||
      (delete ue.animationend.animation,
      delete ue.animationiteration.animation,
      delete ue.animationstart.animation),
    "TransitionEvent" in window || delete ue.transitionend.transition);
  function Oa(l) {
    if (Ni[l]) return Ni[l];
    if (!ue[l]) return l;
    var t = ue[l],
      a;
    for (a in t) if (t.hasOwnProperty(a) && a in zs) return (Ni[l] = t[a]);
    return l;
  }
  var Ts = Oa("animationend"),
    As = Oa("animationiteration"),
    Es = Oa("animationstart"),
    um = Oa("transitionrun"),
    nm = Oa("transitionstart"),
    im = Oa("transitioncancel"),
    Cs = Oa("transitionend"),
    Ms = new Map(),
    Ui =
      "abort auxClick beforeToggle 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(
        " ",
      );
  Ui.push("scrollEnd");
  function bt(l, t) {
    (Ms.set(l, t), Ea(t, [l]));
  }
  var wu =
      typeof reportError == "function"
        ? reportError
        : function (l) {
            if (
              typeof window == "object" &&
              typeof window.ErrorEvent == "function"
            ) {
              var t = new window.ErrorEvent("error", {
                bubbles: !0,
                cancelable: !0,
                message:
                  typeof l == "object" &&
                  l !== null &&
                  typeof l.message == "string"
                    ? String(l.message)
                    : String(l),
                error: l,
              });
              if (!window.dispatchEvent(t)) return;
            } else if (
              typeof process == "object" &&
              typeof process.emit == "function"
            ) {
              process.emit("uncaughtException", l);
              return;
            }
            console.error(l);
          },
    st = [],
    ne = 0,
    Bi = 0;
  function Wu() {
    for (var l = ne, t = (Bi = ne = 0); t < l; ) {
      var a = st[t];
      st[t++] = null;
      var e = st[t];
      st[t++] = null;
      var u = st[t];
      st[t++] = null;
      var n = st[t];
      if (((st[t++] = null), e !== null && u !== null)) {
        var i = e.pending;
        (i === null ? (u.next = u) : ((u.next = i.next), (i.next = u)),
          (e.pending = u));
      }
      n !== 0 && Os(a, u, n);
    }
  }
  function ku(l, t, a, e) {
    ((st[ne++] = l),
      (st[ne++] = t),
      (st[ne++] = a),
      (st[ne++] = e),
      (Bi |= e),
      (l.lanes |= e),
      (l = l.alternate),
      l !== null && (l.lanes |= e));
  }
  function _i(l, t, a, e) {
    return (ku(l, t, a, e), Fu(l));
  }
  function Da(l, t) {
    return (ku(l, null, null, t), Fu(l));
  }
  function Os(l, t, a) {
    l.lanes |= a;
    var e = l.alternate;
    e !== null && (e.lanes |= a);
    for (var u = !1, n = l.return; n !== null; )
      ((n.childLanes |= a),
        (e = n.alternate),
        e !== null && (e.childLanes |= a),
        n.tag === 22 &&
          ((l = n.stateNode), l === null || l._visibility & 1 || (u = !0)),
        (l = n),
        (n = n.return));
    return l.tag === 3
      ? ((n = l.stateNode),
        u &&
          t !== null &&
          ((u = 31 - $l(a)),
          (l = n.hiddenUpdates),
          (e = l[u]),
          e === null ? (l[u] = [t]) : e.push(t),
          (t.lane = a | 536870912)),
        n)
      : null;
  }
  function Fu(l) {
    if (50 < vu) throw ((vu = 0), (Qc = null), Error(f(185)));
    for (var t = l.return; t !== null; ) ((l = t), (t = l.return));
    return l.tag === 3 ? l.stateNode : null;
  }
  var ie = {};
  function cm(l, t, a, e) {
    ((this.tag = l),
      (this.key = a),
      (this.sibling =
        this.child =
        this.return =
        this.stateNode =
        this.type =
        this.elementType =
          null),
      (this.index = 0),
      (this.refCleanup = this.ref = null),
      (this.pendingProps = t),
      (this.dependencies =
        this.memoizedState =
        this.updateQueue =
        this.memoizedProps =
          null),
      (this.mode = e),
      (this.subtreeFlags = this.flags = 0),
      (this.deletions = null),
      (this.childLanes = this.lanes = 0),
      (this.alternate = null));
  }
  function Pl(l, t, a, e) {
    return new cm(l, t, a, e);
  }
  function Hi(l) {
    return ((l = l.prototype), !(!l || !l.isReactComponent));
  }
  function _t(l, t) {
    var a = l.alternate;
    return (
      a === null
        ? ((a = Pl(l.tag, t, l.key, l.mode)),
          (a.elementType = l.elementType),
          (a.type = l.type),
          (a.stateNode = l.stateNode),
          (a.alternate = l),
          (l.alternate = a))
        : ((a.pendingProps = t),
          (a.type = l.type),
          (a.flags = 0),
          (a.subtreeFlags = 0),
          (a.deletions = null)),
      (a.flags = l.flags & 65011712),
      (a.childLanes = l.childLanes),
      (a.lanes = l.lanes),
      (a.child = l.child),
      (a.memoizedProps = l.memoizedProps),
      (a.memoizedState = l.memoizedState),
      (a.updateQueue = l.updateQueue),
      (t = l.dependencies),
      (a.dependencies =
        t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }),
      (a.sibling = l.sibling),
      (a.index = l.index),
      (a.ref = l.ref),
      (a.refCleanup = l.refCleanup),
      a
    );
  }
  function Ds(l, t) {
    l.flags &= 65011714;
    var a = l.alternate;
    return (
      a === null
        ? ((l.childLanes = 0),
          (l.lanes = t),
          (l.child = null),
          (l.subtreeFlags = 0),
          (l.memoizedProps = null),
          (l.memoizedState = null),
          (l.updateQueue = null),
          (l.dependencies = null),
          (l.stateNode = null))
        : ((l.childLanes = a.childLanes),
          (l.lanes = a.lanes),
          (l.child = a.child),
          (l.subtreeFlags = 0),
          (l.deletions = null),
          (l.memoizedProps = a.memoizedProps),
          (l.memoizedState = a.memoizedState),
          (l.updateQueue = a.updateQueue),
          (l.type = a.type),
          (t = a.dependencies),
          (l.dependencies =
            t === null
              ? null
              : { lanes: t.lanes, firstContext: t.firstContext })),
      l
    );
  }
  function $u(l, t, a, e, u, n) {
    var i = 0;
    if (((e = l), typeof l == "function")) Hi(l) && (i = 1);
    else if (typeof l == "string")
      i = dh(l, a, Cl.current)
        ? 26
        : l === "html" || l === "head" || l === "body"
          ? 27
          : 5;
    else
      l: switch (l) {
        case N:
          return ((l = Pl(31, a, t, u)), (l.elementType = N), (l.lanes = n), l);
        case F:
          return ja(a.children, u, n, t);
        case Dl:
          ((i = 8), (u |= 24));
          break;
        case jl:
          return (
            (l = Pl(12, a, t, u | 2)),
            (l.elementType = jl),
            (l.lanes = n),
            l
          );
        case Tt:
          return (
            (l = Pl(13, a, t, u)),
            (l.elementType = Tt),
            (l.lanes = n),
            l
          );
        case Wl:
          return (
            (l = Pl(19, a, t, u)),
            (l.elementType = Wl),
            (l.lanes = n),
            l
          );
        default:
          if (typeof l == "object" && l !== null)
            switch (l.$$typeof) {
              case Vl:
                i = 10;
                break l;
              case Tl:
                i = 9;
                break l;
              case zt:
                i = 11;
                break l;
              case nt:
                i = 14;
                break l;
              case it:
                ((i = 16), (e = null));
                break l;
            }
          ((i = 29),
            (a = Error(f(130, l === null ? "null" : typeof l, ""))),
            (e = null));
      }
    return (
      (t = Pl(i, a, t, u)),
      (t.elementType = l),
      (t.type = e),
      (t.lanes = n),
      t
    );
  }
  function ja(l, t, a, e) {
    return ((l = Pl(7, l, e, t)), (l.lanes = a), l);
  }
  function qi(l, t, a) {
    return ((l = Pl(6, l, null, t)), (l.lanes = a), l);
  }
  function js(l) {
    var t = Pl(18, null, null, 0);
    return ((t.stateNode = l), t);
  }
  function Ri(l, t, a) {
    return (
      (t = Pl(4, l.children !== null ? l.children : [], l.key, t)),
      (t.lanes = a),
      (t.stateNode = {
        containerInfo: l.containerInfo,
        pendingChildren: null,
        implementation: l.implementation,
      }),
      t
    );
  }
  var Ns = new WeakMap();
  function ot(l, t) {
    if (typeof l == "object" && l !== null) {
      var a = Ns.get(l);
      return a !== void 0
        ? a
        : ((t = { value: l, source: t, stack: jf(t) }), Ns.set(l, t), t);
    }
    return { value: l, source: t, stack: jf(t) };
  }
  var ce = [],
    fe = 0,
    Iu = null,
    We = 0,
    rt = [],
    dt = 0,
    la = null,
    Et = 1,
    Ct = "";
  function Ht(l, t) {
    ((ce[fe++] = We), (ce[fe++] = Iu), (Iu = l), (We = t));
  }
  function Us(l, t, a) {
    ((rt[dt++] = Et), (rt[dt++] = Ct), (rt[dt++] = la), (la = l));
    var e = Et;
    l = Ct;
    var u = 32 - $l(e) - 1;
    ((e &= ~(1 << u)), (a += 1));
    var n = 32 - $l(t) + u;
    if (30 < n) {
      var i = u - (u % 5);
      ((n = (e & ((1 << i) - 1)).toString(32)),
        (e >>= i),
        (u -= i),
        (Et = (1 << (32 - $l(t) + u)) | (a << u) | e),
        (Ct = n + l));
    } else ((Et = (1 << n) | (a << u) | e), (Ct = l));
  }
  function Li(l) {
    l.return !== null && (Ht(l, 1), Us(l, 1, 0));
  }
  function Yi(l) {
    for (; l === Iu; )
      ((Iu = ce[--fe]), (ce[fe] = null), (We = ce[--fe]), (ce[fe] = null));
    for (; l === la; )
      ((la = rt[--dt]),
        (rt[dt] = null),
        (Ct = rt[--dt]),
        (rt[dt] = null),
        (Et = rt[--dt]),
        (rt[dt] = null));
  }
  function Bs(l, t) {
    ((rt[dt++] = Et),
      (rt[dt++] = Ct),
      (rt[dt++] = la),
      (Et = t.id),
      (Ct = t.overflow),
      (la = l));
  }
  var Ul = null,
    ol = null,
    k = !1,
    ta = null,
    mt = !1,
    Vi = Error(f(519));
  function aa(l) {
    var t = Error(
      f(
        418,
        1 < arguments.length && arguments[1] !== void 0 && arguments[1]
          ? "text"
          : "HTML",
        "",
      ),
    );
    throw (ke(ot(t, l)), Vi);
  }
  function _s(l) {
    var t = l.stateNode,
      a = l.type,
      e = l.memoizedProps;
    switch (((t[Nl] = l), (t[Xl] = e), a)) {
      case "dialog":
        (J("cancel", t), J("close", t));
        break;
      case "iframe":
      case "object":
      case "embed":
        J("load", t);
        break;
      case "video":
      case "audio":
        for (a = 0; a < gu.length; a++) J(gu[a], t);
        break;
      case "source":
        J("error", t);
        break;
      case "img":
      case "image":
      case "link":
        (J("error", t), J("load", t));
        break;
      case "details":
        J("toggle", t);
        break;
      case "input":
        (J("invalid", t),
          wf(
            t,
            e.value,
            e.defaultValue,
            e.checked,
            e.defaultChecked,
            e.type,
            e.name,
            !0,
          ));
        break;
      case "select":
        J("invalid", t);
        break;
      case "textarea":
        (J("invalid", t), kf(t, e.value, e.defaultValue, e.children));
    }
    ((a = e.children),
      (typeof a != "string" && typeof a != "number" && typeof a != "bigint") ||
      t.textContent === "" + a ||
      e.suppressHydrationWarning === !0 ||
      Ir(t.textContent, a)
        ? (e.popover != null && (J("beforetoggle", t), J("toggle", t)),
          e.onScroll != null && J("scroll", t),
          e.onScrollEnd != null && J("scrollend", t),
          e.onClick != null && (t.onclick = Ut),
          (t = !0))
        : (t = !1),
      t || aa(l, !0));
  }
  function Hs(l) {
    for (Ul = l.return; Ul; )
      switch (Ul.tag) {
        case 5:
        case 31:
        case 13:
          mt = !1;
          return;
        case 27:
        case 3:
          mt = !0;
          return;
        default:
          Ul = Ul.return;
      }
  }
  function se(l) {
    if (l !== Ul) return !1;
    if (!k) return (Hs(l), (k = !0), !1);
    var t = l.tag,
      a;
    if (
      ((a = t !== 3 && t !== 27) &&
        ((a = t === 5) &&
          ((a = l.type),
          (a =
            !(a !== "form" && a !== "button") || uf(l.type, l.memoizedProps))),
        (a = !a)),
      a && ol && aa(l),
      Hs(l),
      t === 13)
    ) {
      if (((l = l.memoizedState), (l = l !== null ? l.dehydrated : null), !l))
        throw Error(f(317));
      ol = cd(l);
    } else if (t === 31) {
      if (((l = l.memoizedState), (l = l !== null ? l.dehydrated : null), !l))
        throw Error(f(317));
      ol = cd(l);
    } else
      t === 27
        ? ((t = ol), ya(l.type) ? ((l = of), (of = null), (ol = l)) : (ol = t))
        : (ol = Ul ? vt(l.stateNode.nextSibling) : null);
    return !0;
  }
  function Na() {
    ((ol = Ul = null), (k = !1));
  }
  function Xi() {
    var l = ta;
    return (
      l !== null &&
        (Jl === null ? (Jl = l) : Jl.push.apply(Jl, l), (ta = null)),
      l
    );
  }
  function ke(l) {
    ta === null ? (ta = [l]) : ta.push(l);
  }
  var Gi = Ll(null),
    Ua = null,
    qt = null;
  function ea(l, t, a) {
    (ll(Gi, t._currentValue), (t._currentValue = a));
  }
  function Rt(l) {
    ((l._currentValue = Gi.current), hl(Gi));
  }
  function Qi(l, t, a) {
    for (; l !== null; ) {
      var e = l.alternate;
      if (
        ((l.childLanes & t) !== t
          ? ((l.childLanes |= t), e !== null && (e.childLanes |= t))
          : e !== null && (e.childLanes & t) !== t && (e.childLanes |= t),
        l === a)
      )
        break;
      l = l.return;
    }
  }
  function Zi(l, t, a, e) {
    var u = l.child;
    for (u !== null && (u.return = l); u !== null; ) {
      var n = u.dependencies;
      if (n !== null) {
        var i = u.child;
        n = n.firstContext;
        l: for (; n !== null; ) {
          var c = n;
          n = u;
          for (var o = 0; o < t.length; o++)
            if (c.context === t[o]) {
              ((n.lanes |= a),
                (c = n.alternate),
                c !== null && (c.lanes |= a),
                Qi(n.return, a, l),
                e || (i = null));
              break l;
            }
          n = c.next;
        }
      } else if (u.tag === 18) {
        if (((i = u.return), i === null)) throw Error(f(341));
        ((i.lanes |= a),
          (n = i.alternate),
          n !== null && (n.lanes |= a),
          Qi(i, a, l),
          (i = null));
      } else i = u.child;
      if (i !== null) i.return = u;
      else
        for (i = u; i !== null; ) {
          if (i === l) {
            i = null;
            break;
          }
          if (((u = i.sibling), u !== null)) {
            ((u.return = i.return), (i = u));
            break;
          }
          i = i.return;
        }
      u = i;
    }
  }
  function oe(l, t, a, e) {
    l = null;
    for (var u = t, n = !1; u !== null; ) {
      if (!n) {
        if ((u.flags & 524288) !== 0) n = !0;
        else if ((u.flags & 262144) !== 0) break;
      }
      if (u.tag === 10) {
        var i = u.alternate;
        if (i === null) throw Error(f(387));
        if (((i = i.memoizedProps), i !== null)) {
          var c = u.type;
          Il(u.pendingProps.value, i.value) ||
            (l !== null ? l.push(c) : (l = [c]));
        }
      } else if (u === Du.current) {
        if (((i = u.alternate), i === null)) throw Error(f(387));
        i.memoizedState.memoizedState !== u.memoizedState.memoizedState &&
          (l !== null ? l.push(zu) : (l = [zu]));
      }
      u = u.return;
    }
    (l !== null && Zi(t, l, a, e), (t.flags |= 262144));
  }
  function Pu(l) {
    for (l = l.firstContext; l !== null; ) {
      if (!Il(l.context._currentValue, l.memoizedValue)) return !0;
      l = l.next;
    }
    return !1;
  }
  function Ba(l) {
    ((Ua = l),
      (qt = null),
      (l = l.dependencies),
      l !== null && (l.firstContext = null));
  }
  function Bl(l) {
    return qs(Ua, l);
  }
  function ln(l, t) {
    return (Ua === null && Ba(l), qs(l, t));
  }
  function qs(l, t) {
    var a = t._currentValue;
    if (((t = { context: t, memoizedValue: a, next: null }), qt === null)) {
      if (l === null) throw Error(f(308));
      ((qt = t),
        (l.dependencies = { lanes: 0, firstContext: t }),
        (l.flags |= 524288));
    } else qt = qt.next = t;
    return a;
  }
  var fm =
      typeof AbortController < "u"
        ? AbortController
        : function () {
            var l = [],
              t = (this.signal = {
                aborted: !1,
                addEventListener: function (a, e) {
                  l.push(e);
                },
              });
            this.abort = function () {
              ((t.aborted = !0),
                l.forEach(function (a) {
                  return a();
                }));
            };
          },
    sm = s.unstable_scheduleCallback,
    om = s.unstable_NormalPriority,
    pl = {
      $$typeof: Vl,
      Consumer: null,
      Provider: null,
      _currentValue: null,
      _currentValue2: null,
      _threadCount: 0,
    };
  function Ki() {
    return { controller: new fm(), data: new Map(), refCount: 0 };
  }
  function Fe(l) {
    (l.refCount--,
      l.refCount === 0 &&
        sm(om, function () {
          l.controller.abort();
        }));
  }
  var $e = null,
    Ji = 0,
    re = 0,
    de = null;
  function rm(l, t) {
    if ($e === null) {
      var a = ($e = []);
      ((Ji = 0),
        (re = kc()),
        (de = {
          status: "pending",
          value: void 0,
          then: function (e) {
            a.push(e);
          },
        }));
    }
    return (Ji++, t.then(Rs, Rs), t);
  }
  function Rs() {
    if (--Ji === 0 && $e !== null) {
      de !== null && (de.status = "fulfilled");
      var l = $e;
      (($e = null), (re = 0), (de = null));
      for (var t = 0; t < l.length; t++) (0, l[t])();
    }
  }
  function dm(l, t) {
    var a = [],
      e = {
        status: "pending",
        value: null,
        reason: null,
        then: function (u) {
          a.push(u);
        },
      };
    return (
      l.then(
        function () {
          ((e.status = "fulfilled"), (e.value = t));
          for (var u = 0; u < a.length; u++) (0, a[u])(t);
        },
        function (u) {
          for (e.status = "rejected", e.reason = u, u = 0; u < a.length; u++)
            (0, a[u])(void 0);
        },
      ),
      e
    );
  }
  var Ls = T.S;
  T.S = function (l, t) {
    ((zr = kl()),
      typeof t == "object" &&
        t !== null &&
        typeof t.then == "function" &&
        rm(l, t),
      Ls !== null && Ls(l, t));
  };
  var _a = Ll(null);
  function wi() {
    var l = _a.current;
    return l !== null ? l : il.pooledCache;
  }
  function tn(l, t) {
    t === null ? ll(_a, _a.current) : ll(_a, t.pool);
  }
  function Ys() {
    var l = wi();
    return l === null ? null : { parent: pl._currentValue, pool: l };
  }
  var me = Error(f(460)),
    Wi = Error(f(474)),
    an = Error(f(542)),
    en = { then: function () {} };
  function Vs(l) {
    return ((l = l.status), l === "fulfilled" || l === "rejected");
  }
  function Xs(l, t, a) {
    switch (
      ((a = l[a]),
      a === void 0 ? l.push(t) : a !== t && (t.then(Ut, Ut), (t = a)),
      t.status)
    ) {
      case "fulfilled":
        return t.value;
      case "rejected":
        throw ((l = t.reason), Qs(l), l);
      default:
        if (typeof t.status == "string") t.then(Ut, Ut);
        else {
          if (((l = il), l !== null && 100 < l.shellSuspendCounter))
            throw Error(f(482));
          ((l = t),
            (l.status = "pending"),
            l.then(
              function (e) {
                if (t.status === "pending") {
                  var u = t;
                  ((u.status = "fulfilled"), (u.value = e));
                }
              },
              function (e) {
                if (t.status === "pending") {
                  var u = t;
                  ((u.status = "rejected"), (u.reason = e));
                }
              },
            ));
        }
        switch (t.status) {
          case "fulfilled":
            return t.value;
          case "rejected":
            throw ((l = t.reason), Qs(l), l);
        }
        throw ((qa = t), me);
    }
  }
  function Ha(l) {
    try {
      var t = l._init;
      return t(l._payload);
    } catch (a) {
      throw a !== null && typeof a == "object" && typeof a.then == "function"
        ? ((qa = a), me)
        : a;
    }
  }
  var qa = null;
  function Gs() {
    if (qa === null) throw Error(f(459));
    var l = qa;
    return ((qa = null), l);
  }
  function Qs(l) {
    if (l === me || l === an) throw Error(f(483));
  }
  var he = null,
    Ie = 0;
  function un(l) {
    var t = Ie;
    return ((Ie += 1), he === null && (he = []), Xs(he, l, t));
  }
  function Pe(l, t) {
    ((t = t.props.ref), (l.ref = t !== void 0 ? t : null));
  }
  function nn(l, t) {
    throw t.$$typeof === U
      ? Error(f(525))
      : ((l = Object.prototype.toString.call(t)),
        Error(
          f(
            31,
            l === "[object Object]"
              ? "object with keys {" + Object.keys(t).join(", ") + "}"
              : l,
          ),
        ));
  }
  function Zs(l) {
    function t(h, d) {
      if (l) {
        var y = h.deletions;
        y === null ? ((h.deletions = [d]), (h.flags |= 16)) : y.push(d);
      }
    }
    function a(h, d) {
      if (!l) return null;
      for (; d !== null; ) (t(h, d), (d = d.sibling));
      return null;
    }
    function e(h) {
      for (var d = new Map(); h !== null; )
        (h.key !== null ? d.set(h.key, h) : d.set(h.index, h), (h = h.sibling));
      return d;
    }
    function u(h, d) {
      return ((h = _t(h, d)), (h.index = 0), (h.sibling = null), h);
    }
    function n(h, d, y) {
      return (
        (h.index = y),
        l
          ? ((y = h.alternate),
            y !== null
              ? ((y = y.index), y < d ? ((h.flags |= 67108866), d) : y)
              : ((h.flags |= 67108866), d))
          : ((h.flags |= 1048576), d)
      );
    }
    function i(h) {
      return (l && h.alternate === null && (h.flags |= 67108866), h);
    }
    function c(h, d, y, z) {
      return d === null || d.tag !== 6
        ? ((d = qi(y, h.mode, z)), (d.return = h), d)
        : ((d = u(d, y)), (d.return = h), d);
    }
    function o(h, d, y, z) {
      var R = y.type;
      return R === F
        ? x(h, d, y.props.children, z, y.key)
        : d !== null &&
            (d.elementType === R ||
              (typeof R == "object" &&
                R !== null &&
                R.$$typeof === it &&
                Ha(R) === d.type))
          ? ((d = u(d, y.props)), Pe(d, y), (d.return = h), d)
          : ((d = $u(y.type, y.key, y.props, null, h.mode, z)),
            Pe(d, y),
            (d.return = h),
            d);
    }
    function g(h, d, y, z) {
      return d === null ||
        d.tag !== 4 ||
        d.stateNode.containerInfo !== y.containerInfo ||
        d.stateNode.implementation !== y.implementation
        ? ((d = Ri(y, h.mode, z)), (d.return = h), d)
        : ((d = u(d, y.children || [])), (d.return = h), d);
    }
    function x(h, d, y, z, R) {
      return d === null || d.tag !== 7
        ? ((d = ja(y, h.mode, z, R)), (d.return = h), d)
        : ((d = u(d, y)), (d.return = h), d);
    }
    function A(h, d, y) {
      if (
        (typeof d == "string" && d !== "") ||
        typeof d == "number" ||
        typeof d == "bigint"
      )
        return ((d = qi("" + d, h.mode, y)), (d.return = h), d);
      if (typeof d == "object" && d !== null) {
        switch (d.$$typeof) {
          case X:
            return (
              (y = $u(d.type, d.key, d.props, null, h.mode, y)),
              Pe(y, d),
              (y.return = h),
              y
            );
          case L:
            return ((d = Ri(d, h.mode, y)), (d.return = h), d);
          case it:
            return ((d = Ha(d)), A(h, d, y));
        }
        if (jt(d) || El(d))
          return ((d = ja(d, h.mode, y, null)), (d.return = h), d);
        if (typeof d.then == "function") return A(h, un(d), y);
        if (d.$$typeof === Vl) return A(h, ln(h, d), y);
        nn(h, d);
      }
      return null;
    }
    function b(h, d, y, z) {
      var R = d !== null ? d.key : null;
      if (
        (typeof y == "string" && y !== "") ||
        typeof y == "number" ||
        typeof y == "bigint"
      )
        return R !== null ? null : c(h, d, "" + y, z);
      if (typeof y == "object" && y !== null) {
        switch (y.$$typeof) {
          case X:
            return y.key === R ? o(h, d, y, z) : null;
          case L:
            return y.key === R ? g(h, d, y, z) : null;
          case it:
            return ((y = Ha(y)), b(h, d, y, z));
        }
        if (jt(y) || El(y)) return R !== null ? null : x(h, d, y, z, null);
        if (typeof y.then == "function") return b(h, d, un(y), z);
        if (y.$$typeof === Vl) return b(h, d, ln(h, y), z);
        nn(h, y);
      }
      return null;
    }
    function p(h, d, y, z, R) {
      if (
        (typeof z == "string" && z !== "") ||
        typeof z == "number" ||
        typeof z == "bigint"
      )
        return ((h = h.get(y) || null), c(d, h, "" + z, R));
      if (typeof z == "object" && z !== null) {
        switch (z.$$typeof) {
          case X:
            return (
              (h = h.get(z.key === null ? y : z.key) || null),
              o(d, h, z, R)
            );
          case L:
            return (
              (h = h.get(z.key === null ? y : z.key) || null),
              g(d, h, z, R)
            );
          case it:
            return ((z = Ha(z)), p(h, d, y, z, R));
        }
        if (jt(z) || El(z))
          return ((h = h.get(y) || null), x(d, h, z, R, null));
        if (typeof z.then == "function") return p(h, d, y, un(z), R);
        if (z.$$typeof === Vl) return p(h, d, y, ln(d, z), R);
        nn(d, z);
      }
      return null;
    }
    function _(h, d, y, z) {
      for (
        var R = null, $ = null, q = d, Z = (d = 0), W = null;
        q !== null && Z < y.length;
        Z++
      ) {
        q.index > Z ? ((W = q), (q = null)) : (W = q.sibling);
        var I = b(h, q, y[Z], z);
        if (I === null) {
          q === null && (q = W);
          break;
        }
        (l && q && I.alternate === null && t(h, q),
          (d = n(I, d, Z)),
          $ === null ? (R = I) : ($.sibling = I),
          ($ = I),
          (q = W));
      }
      if (Z === y.length) return (a(h, q), k && Ht(h, Z), R);
      if (q === null) {
        for (; Z < y.length; Z++)
          ((q = A(h, y[Z], z)),
            q !== null &&
              ((d = n(q, d, Z)),
              $ === null ? (R = q) : ($.sibling = q),
              ($ = q)));
        return (k && Ht(h, Z), R);
      }
      for (q = e(q); Z < y.length; Z++)
        ((W = p(q, h, Z, y[Z], z)),
          W !== null &&
            (l && W.alternate !== null && q.delete(W.key === null ? Z : W.key),
            (d = n(W, d, Z)),
            $ === null ? (R = W) : ($.sibling = W),
            ($ = W)));
      return (
        l &&
          q.forEach(function (xa) {
            return t(h, xa);
          }),
        k && Ht(h, Z),
        R
      );
    }
    function Y(h, d, y, z) {
      if (y == null) throw Error(f(151));
      for (
        var R = null, $ = null, q = d, Z = (d = 0), W = null, I = y.next();
        q !== null && !I.done;
        Z++, I = y.next()
      ) {
        q.index > Z ? ((W = q), (q = null)) : (W = q.sibling);
        var xa = b(h, q, I.value, z);
        if (xa === null) {
          q === null && (q = W);
          break;
        }
        (l && q && xa.alternate === null && t(h, q),
          (d = n(xa, d, Z)),
          $ === null ? (R = xa) : ($.sibling = xa),
          ($ = xa),
          (q = W));
      }
      if (I.done) return (a(h, q), k && Ht(h, Z), R);
      if (q === null) {
        for (; !I.done; Z++, I = y.next())
          ((I = A(h, I.value, z)),
            I !== null &&
              ((d = n(I, d, Z)),
              $ === null ? (R = I) : ($.sibling = I),
              ($ = I)));
        return (k && Ht(h, Z), R);
      }
      for (q = e(q); !I.done; Z++, I = y.next())
        ((I = p(q, h, Z, I.value, z)),
          I !== null &&
            (l && I.alternate !== null && q.delete(I.key === null ? Z : I.key),
            (d = n(I, d, Z)),
            $ === null ? (R = I) : ($.sibling = I),
            ($ = I)));
      return (
        l &&
          q.forEach(function (Th) {
            return t(h, Th);
          }),
        k && Ht(h, Z),
        R
      );
    }
    function nl(h, d, y, z) {
      if (
        (typeof y == "object" &&
          y !== null &&
          y.type === F &&
          y.key === null &&
          (y = y.props.children),
        typeof y == "object" && y !== null)
      ) {
        switch (y.$$typeof) {
          case X:
            l: {
              for (var R = y.key; d !== null; ) {
                if (d.key === R) {
                  if (((R = y.type), R === F)) {
                    if (d.tag === 7) {
                      (a(h, d.sibling),
                        (z = u(d, y.props.children)),
                        (z.return = h),
                        (h = z));
                      break l;
                    }
                  } else if (
                    d.elementType === R ||
                    (typeof R == "object" &&
                      R !== null &&
                      R.$$typeof === it &&
                      Ha(R) === d.type)
                  ) {
                    (a(h, d.sibling),
                      (z = u(d, y.props)),
                      Pe(z, y),
                      (z.return = h),
                      (h = z));
                    break l;
                  }
                  a(h, d);
                  break;
                } else t(h, d);
                d = d.sibling;
              }
              y.type === F
                ? ((z = ja(y.props.children, h.mode, z, y.key)),
                  (z.return = h),
                  (h = z))
                : ((z = $u(y.type, y.key, y.props, null, h.mode, z)),
                  Pe(z, y),
                  (z.return = h),
                  (h = z));
            }
            return i(h);
          case L:
            l: {
              for (R = y.key; d !== null; ) {
                if (d.key === R)
                  if (
                    d.tag === 4 &&
                    d.stateNode.containerInfo === y.containerInfo &&
                    d.stateNode.implementation === y.implementation
                  ) {
                    (a(h, d.sibling),
                      (z = u(d, y.children || [])),
                      (z.return = h),
                      (h = z));
                    break l;
                  } else {
                    a(h, d);
                    break;
                  }
                else t(h, d);
                d = d.sibling;
              }
              ((z = Ri(y, h.mode, z)), (z.return = h), (h = z));
            }
            return i(h);
          case it:
            return ((y = Ha(y)), nl(h, d, y, z));
        }
        if (jt(y)) return _(h, d, y, z);
        if (El(y)) {
          if (((R = El(y)), typeof R != "function")) throw Error(f(150));
          return ((y = R.call(y)), Y(h, d, y, z));
        }
        if (typeof y.then == "function") return nl(h, d, un(y), z);
        if (y.$$typeof === Vl) return nl(h, d, ln(h, y), z);
        nn(h, y);
      }
      return (typeof y == "string" && y !== "") ||
        typeof y == "number" ||
        typeof y == "bigint"
        ? ((y = "" + y),
          d !== null && d.tag === 6
            ? (a(h, d.sibling), (z = u(d, y)), (z.return = h), (h = z))
            : (a(h, d), (z = qi(y, h.mode, z)), (z.return = h), (h = z)),
          i(h))
        : a(h, d);
    }
    return function (h, d, y, z) {
      try {
        Ie = 0;
        var R = nl(h, d, y, z);
        return ((he = null), R);
      } catch (q) {
        if (q === me || q === an) throw q;
        var $ = Pl(29, q, null, h.mode);
        return (($.lanes = z), ($.return = h), $);
      }
    };
  }
  var Ra = Zs(!0),
    Ks = Zs(!1),
    ua = !1;
  function ki(l) {
    l.updateQueue = {
      baseState: l.memoizedState,
      firstBaseUpdate: null,
      lastBaseUpdate: null,
      shared: { pending: null, lanes: 0, hiddenCallbacks: null },
      callbacks: null,
    };
  }
  function Fi(l, t) {
    ((l = l.updateQueue),
      t.updateQueue === l &&
        (t.updateQueue = {
          baseState: l.baseState,
          firstBaseUpdate: l.firstBaseUpdate,
          lastBaseUpdate: l.lastBaseUpdate,
          shared: l.shared,
          callbacks: null,
        }));
  }
  function na(l) {
    return { lane: l, tag: 0, payload: null, callback: null, next: null };
  }
  function ia(l, t, a) {
    var e = l.updateQueue;
    if (e === null) return null;
    if (((e = e.shared), (P & 2) !== 0)) {
      var u = e.pending;
      return (
        u === null ? (t.next = t) : ((t.next = u.next), (u.next = t)),
        (e.pending = t),
        (t = Fu(l)),
        Os(l, null, a),
        t
      );
    }
    return (ku(l, e, t, a), Fu(l));
  }
  function lu(l, t, a) {
    if (
      ((t = t.updateQueue), t !== null && ((t = t.shared), (a & 4194048) !== 0))
    ) {
      var e = t.lanes;
      ((e &= l.pendingLanes), (a |= e), (t.lanes = a), qf(l, a));
    }
  }
  function $i(l, t) {
    var a = l.updateQueue,
      e = l.alternate;
    if (e !== null && ((e = e.updateQueue), a === e)) {
      var u = null,
        n = null;
      if (((a = a.firstBaseUpdate), a !== null)) {
        do {
          var i = {
            lane: a.lane,
            tag: a.tag,
            payload: a.payload,
            callback: null,
            next: null,
          };
          (n === null ? (u = n = i) : (n = n.next = i), (a = a.next));
        } while (a !== null);
        n === null ? (u = n = t) : (n = n.next = t);
      } else u = n = t;
      ((a = {
        baseState: e.baseState,
        firstBaseUpdate: u,
        lastBaseUpdate: n,
        shared: e.shared,
        callbacks: e.callbacks,
      }),
        (l.updateQueue = a));
      return;
    }
    ((l = a.lastBaseUpdate),
      l === null ? (a.firstBaseUpdate = t) : (l.next = t),
      (a.lastBaseUpdate = t));
  }
  var Ii = !1;
  function tu() {
    if (Ii) {
      var l = de;
      if (l !== null) throw l;
    }
  }
  function au(l, t, a, e) {
    Ii = !1;
    var u = l.updateQueue;
    ua = !1;
    var n = u.firstBaseUpdate,
      i = u.lastBaseUpdate,
      c = u.shared.pending;
    if (c !== null) {
      u.shared.pending = null;
      var o = c,
        g = o.next;
      ((o.next = null), i === null ? (n = g) : (i.next = g), (i = o));
      var x = l.alternate;
      x !== null &&
        ((x = x.updateQueue),
        (c = x.lastBaseUpdate),
        c !== i &&
          (c === null ? (x.firstBaseUpdate = g) : (c.next = g),
          (x.lastBaseUpdate = o)));
    }
    if (n !== null) {
      var A = u.baseState;
      ((i = 0), (x = g = o = null), (c = n));
      do {
        var b = c.lane & -536870913,
          p = b !== c.lane;
        if (p ? (w & b) === b : (e & b) === b) {
          (b !== 0 && b === re && (Ii = !0),
            x !== null &&
              (x = x.next =
                {
                  lane: 0,
                  tag: c.tag,
                  payload: c.payload,
                  callback: null,
                  next: null,
                }));
          l: {
            var _ = l,
              Y = c;
            b = t;
            var nl = a;
            switch (Y.tag) {
              case 1:
                if (((_ = Y.payload), typeof _ == "function")) {
                  A = _.call(nl, A, b);
                  break l;
                }
                A = _;
                break l;
              case 3:
                _.flags = (_.flags & -65537) | 128;
              case 0:
                if (
                  ((_ = Y.payload),
                  (b = typeof _ == "function" ? _.call(nl, A, b) : _),
                  b == null)
                )
                  break l;
                A = C({}, A, b);
                break l;
              case 2:
                ua = !0;
            }
          }
          ((b = c.callback),
            b !== null &&
              ((l.flags |= 64),
              p && (l.flags |= 8192),
              (p = u.callbacks),
              p === null ? (u.callbacks = [b]) : p.push(b)));
        } else
          ((p = {
            lane: b,
            tag: c.tag,
            payload: c.payload,
            callback: c.callback,
            next: null,
          }),
            x === null ? ((g = x = p), (o = A)) : (x = x.next = p),
            (i |= b));
        if (((c = c.next), c === null)) {
          if (((c = u.shared.pending), c === null)) break;
          ((p = c),
            (c = p.next),
            (p.next = null),
            (u.lastBaseUpdate = p),
            (u.shared.pending = null));
        }
      } while (!0);
      (x === null && (o = A),
        (u.baseState = o),
        (u.firstBaseUpdate = g),
        (u.lastBaseUpdate = x),
        n === null && (u.shared.lanes = 0),
        (ra |= i),
        (l.lanes = i),
        (l.memoizedState = A));
    }
  }
  function Js(l, t) {
    if (typeof l != "function") throw Error(f(191, l));
    l.call(t);
  }
  function ws(l, t) {
    var a = l.callbacks;
    if (a !== null)
      for (l.callbacks = null, l = 0; l < a.length; l++) Js(a[l], t);
  }
  var ve = Ll(null),
    cn = Ll(0);
  function Ws(l, t) {
    ((l = Jt), ll(cn, l), ll(ve, t), (Jt = l | t.baseLanes));
  }
  function Pi() {
    (ll(cn, Jt), ll(ve, ve.current));
  }
  function lc() {
    ((Jt = cn.current), hl(ve), hl(cn));
  }
  var lt = Ll(null),
    ht = null;
  function ca(l) {
    var t = l.alternate;
    (ll(gl, gl.current & 1),
      ll(lt, l),
      ht === null &&
        (t === null || ve.current !== null || t.memoizedState !== null) &&
        (ht = l));
  }
  function tc(l) {
    (ll(gl, gl.current), ll(lt, l), ht === null && (ht = l));
  }
  function ks(l) {
    l.tag === 22
      ? (ll(gl, gl.current), ll(lt, l), ht === null && (ht = l))
      : fa();
  }
  function fa() {
    (ll(gl, gl.current), ll(lt, lt.current));
  }
  function tt(l) {
    (hl(lt), ht === l && (ht = null), hl(gl));
  }
  var gl = Ll(0);
  function fn(l) {
    for (var t = l; t !== null; ) {
      if (t.tag === 13) {
        var a = t.memoizedState;
        if (a !== null && ((a = a.dehydrated), a === null || ff(a) || sf(a)))
          return t;
      } else if (
        t.tag === 19 &&
        (t.memoizedProps.revealOrder === "forwards" ||
          t.memoizedProps.revealOrder === "backwards" ||
          t.memoizedProps.revealOrder === "unstable_legacy-backwards" ||
          t.memoizedProps.revealOrder === "together")
      ) {
        if ((t.flags & 128) !== 0) return t;
      } else if (t.child !== null) {
        ((t.child.return = t), (t = t.child));
        continue;
      }
      if (t === l) break;
      for (; t.sibling === null; ) {
        if (t.return === null || t.return === l) return null;
        t = t.return;
      }
      ((t.sibling.return = t.return), (t = t.sibling));
    }
    return null;
  }
  var Lt = 0,
    Q = null,
    el = null,
    Sl = null,
    sn = !1,
    ye = !1,
    La = !1,
    on = 0,
    eu = 0,
    ge = null,
    mm = 0;
  function vl() {
    throw Error(f(321));
  }
  function ac(l, t) {
    if (t === null) return !1;
    for (var a = 0; a < t.length && a < l.length; a++)
      if (!Il(l[a], t[a])) return !1;
    return !0;
  }
  function ec(l, t, a, e, u, n) {
    return (
      (Lt = n),
      (Q = t),
      (t.memoizedState = null),
      (t.updateQueue = null),
      (t.lanes = 0),
      (T.H = l === null || l.memoizedState === null ? Bo : bc),
      (La = !1),
      (n = a(e, u)),
      (La = !1),
      ye && (n = $s(t, a, e, u)),
      Fs(l),
      n
    );
  }
  function Fs(l) {
    T.H = iu;
    var t = el !== null && el.next !== null;
    if (((Lt = 0), (Sl = el = Q = null), (sn = !1), (eu = 0), (ge = null), t))
      throw Error(f(300));
    l === null ||
      xl ||
      ((l = l.dependencies), l !== null && Pu(l) && (xl = !0));
  }
  function $s(l, t, a, e) {
    Q = l;
    var u = 0;
    do {
      if ((ye && (ge = null), (eu = 0), (ye = !1), 25 <= u))
        throw Error(f(301));
      if (((u += 1), (Sl = el = null), l.updateQueue != null)) {
        var n = l.updateQueue;
        ((n.lastEffect = null),
          (n.events = null),
          (n.stores = null),
          n.memoCache != null && (n.memoCache.index = 0));
      }
      ((T.H = _o), (n = t(a, e)));
    } while (ye);
    return n;
  }
  function hm() {
    var l = T.H,
      t = l.useState()[0];
    return (
      (t = typeof t.then == "function" ? uu(t) : t),
      (l = l.useState()[0]),
      (el !== null ? el.memoizedState : null) !== l && (Q.flags |= 1024),
      t
    );
  }
  function uc() {
    var l = on !== 0;
    return ((on = 0), l);
  }
  function nc(l, t, a) {
    ((t.updateQueue = l.updateQueue), (t.flags &= -2053), (l.lanes &= ~a));
  }
  function ic(l) {
    if (sn) {
      for (l = l.memoizedState; l !== null; ) {
        var t = l.queue;
        (t !== null && (t.pending = null), (l = l.next));
      }
      sn = !1;
    }
    ((Lt = 0), (Sl = el = Q = null), (ye = !1), (eu = on = 0), (ge = null));
  }
  function Yl() {
    var l = {
      memoizedState: null,
      baseState: null,
      baseQueue: null,
      queue: null,
      next: null,
    };
    return (Sl === null ? (Q.memoizedState = Sl = l) : (Sl = Sl.next = l), Sl);
  }
  function bl() {
    if (el === null) {
      var l = Q.alternate;
      l = l !== null ? l.memoizedState : null;
    } else l = el.next;
    var t = Sl === null ? Q.memoizedState : Sl.next;
    if (t !== null) ((Sl = t), (el = l));
    else {
      if (l === null)
        throw Q.alternate === null ? Error(f(467)) : Error(f(310));
      ((el = l),
        (l = {
          memoizedState: el.memoizedState,
          baseState: el.baseState,
          baseQueue: el.baseQueue,
          queue: el.queue,
          next: null,
        }),
        Sl === null ? (Q.memoizedState = Sl = l) : (Sl = Sl.next = l));
    }
    return Sl;
  }
  function rn() {
    return { lastEffect: null, events: null, stores: null, memoCache: null };
  }
  function uu(l) {
    var t = eu;
    return (
      (eu += 1),
      ge === null && (ge = []),
      (l = Xs(ge, l, t)),
      (t = Q),
      (Sl === null ? t.memoizedState : Sl.next) === null &&
        ((t = t.alternate),
        (T.H = t === null || t.memoizedState === null ? Bo : bc)),
      l
    );
  }
  function dn(l) {
    if (l !== null && typeof l == "object") {
      if (typeof l.then == "function") return uu(l);
      if (l.$$typeof === Vl) return Bl(l);
    }
    throw Error(f(438, String(l)));
  }
  function cc(l) {
    var t = null,
      a = Q.updateQueue;
    if ((a !== null && (t = a.memoCache), t == null)) {
      var e = Q.alternate;
      e !== null &&
        ((e = e.updateQueue),
        e !== null &&
          ((e = e.memoCache),
          e != null &&
            (t = {
              data: e.data.map(function (u) {
                return u.slice();
              }),
              index: 0,
            })));
    }
    if (
      (t == null && (t = { data: [], index: 0 }),
      a === null && ((a = rn()), (Q.updateQueue = a)),
      (a.memoCache = t),
      (a = t.data[t.index]),
      a === void 0)
    )
      for (a = t.data[t.index] = Array(l), e = 0; e < l; e++) a[e] = dl;
    return (t.index++, a);
  }
  function Yt(l, t) {
    return typeof t == "function" ? t(l) : t;
  }
  function mn(l) {
    var t = bl();
    return fc(t, el, l);
  }
  function fc(l, t, a) {
    var e = l.queue;
    if (e === null) throw Error(f(311));
    e.lastRenderedReducer = a;
    var u = l.baseQueue,
      n = e.pending;
    if (n !== null) {
      if (u !== null) {
        var i = u.next;
        ((u.next = n.next), (n.next = i));
      }
      ((t.baseQueue = u = n), (e.pending = null));
    }
    if (((n = l.baseState), u === null)) l.memoizedState = n;
    else {
      t = u.next;
      var c = (i = null),
        o = null,
        g = t,
        x = !1;
      do {
        var A = g.lane & -536870913;
        if (A !== g.lane ? (w & A) === A : (Lt & A) === A) {
          var b = g.revertLane;
          if (b === 0)
            (o !== null &&
              (o = o.next =
                {
                  lane: 0,
                  revertLane: 0,
                  gesture: null,
                  action: g.action,
                  hasEagerState: g.hasEagerState,
                  eagerState: g.eagerState,
                  next: null,
                }),
              A === re && (x = !0));
          else if ((Lt & b) === b) {
            ((g = g.next), b === re && (x = !0));
            continue;
          } else
            ((A = {
              lane: 0,
              revertLane: g.revertLane,
              gesture: null,
              action: g.action,
              hasEagerState: g.hasEagerState,
              eagerState: g.eagerState,
              next: null,
            }),
              o === null ? ((c = o = A), (i = n)) : (o = o.next = A),
              (Q.lanes |= b),
              (ra |= b));
          ((A = g.action),
            La && a(n, A),
            (n = g.hasEagerState ? g.eagerState : a(n, A)));
        } else
          ((b = {
            lane: A,
            revertLane: g.revertLane,
            gesture: g.gesture,
            action: g.action,
            hasEagerState: g.hasEagerState,
            eagerState: g.eagerState,
            next: null,
          }),
            o === null ? ((c = o = b), (i = n)) : (o = o.next = b),
            (Q.lanes |= A),
            (ra |= A));
        g = g.next;
      } while (g !== null && g !== t);
      if (
        (o === null ? (i = n) : (o.next = c),
        !Il(n, l.memoizedState) && ((xl = !0), x && ((a = de), a !== null)))
      )
        throw a;
      ((l.memoizedState = n),
        (l.baseState = i),
        (l.baseQueue = o),
        (e.lastRenderedState = n));
    }
    return (u === null && (e.lanes = 0), [l.memoizedState, e.dispatch]);
  }
  function sc(l) {
    var t = bl(),
      a = t.queue;
    if (a === null) throw Error(f(311));
    a.lastRenderedReducer = l;
    var e = a.dispatch,
      u = a.pending,
      n = t.memoizedState;
    if (u !== null) {
      a.pending = null;
      var i = (u = u.next);
      do ((n = l(n, i.action)), (i = i.next));
      while (i !== u);
      (Il(n, t.memoizedState) || (xl = !0),
        (t.memoizedState = n),
        t.baseQueue === null && (t.baseState = n),
        (a.lastRenderedState = n));
    }
    return [n, e];
  }
  function Is(l, t, a) {
    var e = Q,
      u = bl(),
      n = k;
    if (n) {
      if (a === void 0) throw Error(f(407));
      a = a();
    } else a = t();
    var i = !Il((el || u).memoizedState, a);
    if (
      (i && ((u.memoizedState = a), (xl = !0)),
      (u = u.queue),
      dc(to.bind(null, e, u, l), [l]),
      u.getSnapshot !== t || i || (Sl !== null && Sl.memoizedState.tag & 1))
    ) {
      if (
        ((e.flags |= 2048),
        be(9, { destroy: void 0 }, lo.bind(null, e, u, a, t), null),
        il === null)
      )
        throw Error(f(349));
      n || (Lt & 127) !== 0 || Ps(e, t, a);
    }
    return a;
  }
  function Ps(l, t, a) {
    ((l.flags |= 16384),
      (l = { getSnapshot: t, value: a }),
      (t = Q.updateQueue),
      t === null
        ? ((t = rn()), (Q.updateQueue = t), (t.stores = [l]))
        : ((a = t.stores), a === null ? (t.stores = [l]) : a.push(l)));
  }
  function lo(l, t, a, e) {
    ((t.value = a), (t.getSnapshot = e), ao(t) && eo(l));
  }
  function to(l, t, a) {
    return a(function () {
      ao(t) && eo(l);
    });
  }
  function ao(l) {
    var t = l.getSnapshot;
    l = l.value;
    try {
      var a = t();
      return !Il(l, a);
    } catch {
      return !0;
    }
  }
  function eo(l) {
    var t = Da(l, 2);
    t !== null && wl(t, l, 2);
  }
  function oc(l) {
    var t = Yl();
    if (typeof l == "function") {
      var a = l;
      if (((l = a()), La)) {
        $t(!0);
        try {
          a();
        } finally {
          $t(!1);
        }
      }
    }
    return (
      (t.memoizedState = t.baseState = l),
      (t.queue = {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: Yt,
        lastRenderedState: l,
      }),
      t
    );
  }
  function uo(l, t, a, e) {
    return ((l.baseState = a), fc(l, el, typeof e == "function" ? e : Yt));
  }
  function vm(l, t, a, e, u) {
    if (yn(l)) throw Error(f(485));
    if (((l = t.action), l !== null)) {
      var n = {
        payload: u,
        action: l,
        next: null,
        isTransition: !0,
        status: "pending",
        value: null,
        reason: null,
        listeners: [],
        then: function (i) {
          n.listeners.push(i);
        },
      };
      (T.T !== null ? a(!0) : (n.isTransition = !1),
        e(n),
        (a = t.pending),
        a === null
          ? ((n.next = t.pending = n), no(t, n))
          : ((n.next = a.next), (t.pending = a.next = n)));
    }
  }
  function no(l, t) {
    var a = t.action,
      e = t.payload,
      u = l.state;
    if (t.isTransition) {
      var n = T.T,
        i = {};
      T.T = i;
      try {
        var c = a(u, e),
          o = T.S;
        (o !== null && o(i, c), io(l, t, c));
      } catch (g) {
        rc(l, t, g);
      } finally {
        (n !== null && i.types !== null && (n.types = i.types), (T.T = n));
      }
    } else
      try {
        ((n = a(u, e)), io(l, t, n));
      } catch (g) {
        rc(l, t, g);
      }
  }
  function io(l, t, a) {
    a !== null && typeof a == "object" && typeof a.then == "function"
      ? a.then(
          function (e) {
            co(l, t, e);
          },
          function (e) {
            return rc(l, t, e);
          },
        )
      : co(l, t, a);
  }
  function co(l, t, a) {
    ((t.status = "fulfilled"),
      (t.value = a),
      fo(t),
      (l.state = a),
      (t = l.pending),
      t !== null &&
        ((a = t.next),
        a === t ? (l.pending = null) : ((a = a.next), (t.next = a), no(l, a))));
  }
  function rc(l, t, a) {
    var e = l.pending;
    if (((l.pending = null), e !== null)) {
      e = e.next;
      do ((t.status = "rejected"), (t.reason = a), fo(t), (t = t.next));
      while (t !== e);
    }
    l.action = null;
  }
  function fo(l) {
    l = l.listeners;
    for (var t = 0; t < l.length; t++) (0, l[t])();
  }
  function so(l, t) {
    return t;
  }
  function oo(l, t) {
    if (k) {
      var a = il.formState;
      if (a !== null) {
        l: {
          var e = Q;
          if (k) {
            if (ol) {
              t: {
                for (var u = ol, n = mt; u.nodeType !== 8; ) {
                  if (!n) {
                    u = null;
                    break t;
                  }
                  if (((u = vt(u.nextSibling)), u === null)) {
                    u = null;
                    break t;
                  }
                }
                ((n = u.data), (u = n === "F!" || n === "F" ? u : null));
              }
              if (u) {
                ((ol = vt(u.nextSibling)), (e = u.data === "F!"));
                break l;
              }
            }
            aa(e);
          }
          e = !1;
        }
        e && (t = a[0]);
      }
    }
    return (
      (a = Yl()),
      (a.memoizedState = a.baseState = t),
      (e = {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: so,
        lastRenderedState: t,
      }),
      (a.queue = e),
      (a = jo.bind(null, Q, e)),
      (e.dispatch = a),
      (e = oc(!1)),
      (n = gc.bind(null, Q, !1, e.queue)),
      (e = Yl()),
      (u = { state: t, dispatch: null, action: l, pending: null }),
      (e.queue = u),
      (a = vm.bind(null, Q, u, n, a)),
      (u.dispatch = a),
      (e.memoizedState = l),
      [t, a, !1]
    );
  }
  function ro(l) {
    var t = bl();
    return mo(t, el, l);
  }
  function mo(l, t, a) {
    if (
      ((t = fc(l, t, so)[0]),
      (l = mn(Yt)[0]),
      typeof t == "object" && t !== null && typeof t.then == "function")
    )
      try {
        var e = uu(t);
      } catch (i) {
        throw i === me ? an : i;
      }
    else e = t;
    t = bl();
    var u = t.queue,
      n = u.dispatch;
    return (
      a !== t.memoizedState &&
        ((Q.flags |= 2048),
        be(9, { destroy: void 0 }, ym.bind(null, u, a), null)),
      [e, n, l]
    );
  }
  function ym(l, t) {
    l.action = t;
  }
  function ho(l) {
    var t = bl(),
      a = el;
    if (a !== null) return mo(t, a, l);
    (bl(), (t = t.memoizedState), (a = bl()));
    var e = a.queue.dispatch;
    return ((a.memoizedState = l), [t, e, !1]);
  }
  function be(l, t, a, e) {
    return (
      (l = { tag: l, create: a, deps: e, inst: t, next: null }),
      (t = Q.updateQueue),
      t === null && ((t = rn()), (Q.updateQueue = t)),
      (a = t.lastEffect),
      a === null
        ? (t.lastEffect = l.next = l)
        : ((e = a.next), (a.next = l), (l.next = e), (t.lastEffect = l)),
      l
    );
  }
  function vo() {
    return bl().memoizedState;
  }
  function hn(l, t, a, e) {
    var u = Yl();
    ((Q.flags |= l),
      (u.memoizedState = be(
        1 | t,
        { destroy: void 0 },
        a,
        e === void 0 ? null : e,
      )));
  }
  function vn(l, t, a, e) {
    var u = bl();
    e = e === void 0 ? null : e;
    var n = u.memoizedState.inst;
    el !== null && e !== null && ac(e, el.memoizedState.deps)
      ? (u.memoizedState = be(t, n, a, e))
      : ((Q.flags |= l), (u.memoizedState = be(1 | t, n, a, e)));
  }
  function yo(l, t) {
    hn(8390656, 8, l, t);
  }
  function dc(l, t) {
    vn(2048, 8, l, t);
  }
  function gm(l) {
    Q.flags |= 4;
    var t = Q.updateQueue;
    if (t === null) ((t = rn()), (Q.updateQueue = t), (t.events = [l]));
    else {
      var a = t.events;
      a === null ? (t.events = [l]) : a.push(l);
    }
  }
  function go(l) {
    var t = bl().memoizedState;
    return (
      gm({ ref: t, nextImpl: l }),
      function () {
        if ((P & 2) !== 0) throw Error(f(440));
        return t.impl.apply(void 0, arguments);
      }
    );
  }
  function bo(l, t) {
    return vn(4, 2, l, t);
  }
  function po(l, t) {
    return vn(4, 4, l, t);
  }
  function So(l, t) {
    if (typeof t == "function") {
      l = l();
      var a = t(l);
      return function () {
        typeof a == "function" ? a() : t(null);
      };
    }
    if (t != null)
      return (
        (l = l()),
        (t.current = l),
        function () {
          t.current = null;
        }
      );
  }
  function xo(l, t, a) {
    ((a = a != null ? a.concat([l]) : null), vn(4, 4, So.bind(null, t, l), a));
  }
  function mc() {}
  function zo(l, t) {
    var a = bl();
    t = t === void 0 ? null : t;
    var e = a.memoizedState;
    return t !== null && ac(t, e[1]) ? e[0] : ((a.memoizedState = [l, t]), l);
  }
  function To(l, t) {
    var a = bl();
    t = t === void 0 ? null : t;
    var e = a.memoizedState;
    if (t !== null && ac(t, e[1])) return e[0];
    if (((e = l()), La)) {
      $t(!0);
      try {
        l();
      } finally {
        $t(!1);
      }
    }
    return ((a.memoizedState = [e, t]), e);
  }
  function hc(l, t, a) {
    return a === void 0 || ((Lt & 1073741824) !== 0 && (w & 261930) === 0)
      ? (l.memoizedState = t)
      : ((l.memoizedState = a), (l = Ar()), (Q.lanes |= l), (ra |= l), a);
  }
  function Ao(l, t, a, e) {
    return Il(a, t)
      ? a
      : ve.current !== null
        ? ((l = hc(l, a, e)), Il(l, t) || (xl = !0), l)
        : (Lt & 42) === 0 || ((Lt & 1073741824) !== 0 && (w & 261930) === 0)
          ? ((xl = !0), (l.memoizedState = a))
          : ((l = Ar()), (Q.lanes |= l), (ra |= l), t);
  }
  function Eo(l, t, a, e, u) {
    var n = B.p;
    B.p = n !== 0 && 8 > n ? n : 8;
    var i = T.T,
      c = {};
    ((T.T = c), gc(l, !1, t, a));
    try {
      var o = u(),
        g = T.S;
      if (
        (g !== null && g(c, o),
        o !== null && typeof o == "object" && typeof o.then == "function")
      ) {
        var x = dm(o, e);
        nu(l, t, x, ut(l));
      } else nu(l, t, e, ut(l));
    } catch (A) {
      nu(l, t, { then: function () {}, status: "rejected", reason: A }, ut());
    } finally {
      ((B.p = n),
        i !== null && c.types !== null && (i.types = c.types),
        (T.T = i));
    }
  }
  function bm() {}
  function vc(l, t, a, e) {
    if (l.tag !== 5) throw Error(f(476));
    var u = Co(l).queue;
    Eo(
      l,
      u,
      t,
      G,
      a === null
        ? bm
        : function () {
            return (Mo(l), a(e));
          },
    );
  }
  function Co(l) {
    var t = l.memoizedState;
    if (t !== null) return t;
    t = {
      memoizedState: G,
      baseState: G,
      baseQueue: null,
      queue: {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: Yt,
        lastRenderedState: G,
      },
      next: null,
    };
    var a = {};
    return (
      (t.next = {
        memoizedState: a,
        baseState: a,
        baseQueue: null,
        queue: {
          pending: null,
          lanes: 0,
          dispatch: null,
          lastRenderedReducer: Yt,
          lastRenderedState: a,
        },
        next: null,
      }),
      (l.memoizedState = t),
      (l = l.alternate),
      l !== null && (l.memoizedState = t),
      t
    );
  }
  function Mo(l) {
    var t = Co(l);
    (t.next === null && (t = l.alternate.memoizedState),
      nu(l, t.next.queue, {}, ut()));
  }
  function yc() {
    return Bl(zu);
  }
  function Oo() {
    return bl().memoizedState;
  }
  function Do() {
    return bl().memoizedState;
  }
  function pm(l) {
    for (var t = l.return; t !== null; ) {
      switch (t.tag) {
        case 24:
        case 3:
          var a = ut();
          l = na(a);
          var e = ia(t, l, a);
          (e !== null && (wl(e, t, a), lu(e, t, a)),
            (t = { cache: Ki() }),
            (l.payload = t));
          return;
      }
      t = t.return;
    }
  }
  function Sm(l, t, a) {
    var e = ut();
    ((a = {
      lane: e,
      revertLane: 0,
      gesture: null,
      action: a,
      hasEagerState: !1,
      eagerState: null,
      next: null,
    }),
      yn(l)
        ? No(t, a)
        : ((a = _i(l, t, a, e)), a !== null && (wl(a, l, e), Uo(a, t, e))));
  }
  function jo(l, t, a) {
    var e = ut();
    nu(l, t, a, e);
  }
  function nu(l, t, a, e) {
    var u = {
      lane: e,
      revertLane: 0,
      gesture: null,
      action: a,
      hasEagerState: !1,
      eagerState: null,
      next: null,
    };
    if (yn(l)) No(t, u);
    else {
      var n = l.alternate;
      if (
        l.lanes === 0 &&
        (n === null || n.lanes === 0) &&
        ((n = t.lastRenderedReducer), n !== null)
      )
        try {
          var i = t.lastRenderedState,
            c = n(i, a);
          if (((u.hasEagerState = !0), (u.eagerState = c), Il(c, i)))
            return (ku(l, t, u, 0), il === null && Wu(), !1);
        } catch {}
      if (((a = _i(l, t, u, e)), a !== null))
        return (wl(a, l, e), Uo(a, t, e), !0);
    }
    return !1;
  }
  function gc(l, t, a, e) {
    if (
      ((e = {
        lane: 2,
        revertLane: kc(),
        gesture: null,
        action: e,
        hasEagerState: !1,
        eagerState: null,
        next: null,
      }),
      yn(l))
    ) {
      if (t) throw Error(f(479));
    } else ((t = _i(l, a, e, 2)), t !== null && wl(t, l, 2));
  }
  function yn(l) {
    var t = l.alternate;
    return l === Q || (t !== null && t === Q);
  }
  function No(l, t) {
    ye = sn = !0;
    var a = l.pending;
    (a === null ? (t.next = t) : ((t.next = a.next), (a.next = t)),
      (l.pending = t));
  }
  function Uo(l, t, a) {
    if ((a & 4194048) !== 0) {
      var e = t.lanes;
      ((e &= l.pendingLanes), (a |= e), (t.lanes = a), qf(l, a));
    }
  }
  var iu = {
    readContext: Bl,
    use: dn,
    useCallback: vl,
    useContext: vl,
    useEffect: vl,
    useImperativeHandle: vl,
    useLayoutEffect: vl,
    useInsertionEffect: vl,
    useMemo: vl,
    useReducer: vl,
    useRef: vl,
    useState: vl,
    useDebugValue: vl,
    useDeferredValue: vl,
    useTransition: vl,
    useSyncExternalStore: vl,
    useId: vl,
    useHostTransitionStatus: vl,
    useFormState: vl,
    useActionState: vl,
    useOptimistic: vl,
    useMemoCache: vl,
    useCacheRefresh: vl,
  };
  iu.useEffectEvent = vl;
  var Bo = {
      readContext: Bl,
      use: dn,
      useCallback: function (l, t) {
        return ((Yl().memoizedState = [l, t === void 0 ? null : t]), l);
      },
      useContext: Bl,
      useEffect: yo,
      useImperativeHandle: function (l, t, a) {
        ((a = a != null ? a.concat([l]) : null),
          hn(4194308, 4, So.bind(null, t, l), a));
      },
      useLayoutEffect: function (l, t) {
        return hn(4194308, 4, l, t);
      },
      useInsertionEffect: function (l, t) {
        hn(4, 2, l, t);
      },
      useMemo: function (l, t) {
        var a = Yl();
        t = t === void 0 ? null : t;
        var e = l();
        if (La) {
          $t(!0);
          try {
            l();
          } finally {
            $t(!1);
          }
        }
        return ((a.memoizedState = [e, t]), e);
      },
      useReducer: function (l, t, a) {
        var e = Yl();
        if (a !== void 0) {
          var u = a(t);
          if (La) {
            $t(!0);
            try {
              a(t);
            } finally {
              $t(!1);
            }
          }
        } else u = t;
        return (
          (e.memoizedState = e.baseState = u),
          (l = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: l,
            lastRenderedState: u,
          }),
          (e.queue = l),
          (l = l.dispatch = Sm.bind(null, Q, l)),
          [e.memoizedState, l]
        );
      },
      useRef: function (l) {
        var t = Yl();
        return ((l = { current: l }), (t.memoizedState = l));
      },
      useState: function (l) {
        l = oc(l);
        var t = l.queue,
          a = jo.bind(null, Q, t);
        return ((t.dispatch = a), [l.memoizedState, a]);
      },
      useDebugValue: mc,
      useDeferredValue: function (l, t) {
        var a = Yl();
        return hc(a, l, t);
      },
      useTransition: function () {
        var l = oc(!1);
        return (
          (l = Eo.bind(null, Q, l.queue, !0, !1)),
          (Yl().memoizedState = l),
          [!1, l]
        );
      },
      useSyncExternalStore: function (l, t, a) {
        var e = Q,
          u = Yl();
        if (k) {
          if (a === void 0) throw Error(f(407));
          a = a();
        } else {
          if (((a = t()), il === null)) throw Error(f(349));
          (w & 127) !== 0 || Ps(e, t, a);
        }
        u.memoizedState = a;
        var n = { value: a, getSnapshot: t };
        return (
          (u.queue = n),
          yo(to.bind(null, e, n, l), [l]),
          (e.flags |= 2048),
          be(9, { destroy: void 0 }, lo.bind(null, e, n, a, t), null),
          a
        );
      },
      useId: function () {
        var l = Yl(),
          t = il.identifierPrefix;
        if (k) {
          var a = Ct,
            e = Et;
          ((a = (e & ~(1 << (32 - $l(e) - 1))).toString(32) + a),
            (t = "_" + t + "R_" + a),
            (a = on++),
            0 < a && (t += "H" + a.toString(32)),
            (t += "_"));
        } else ((a = mm++), (t = "_" + t + "r_" + a.toString(32) + "_"));
        return (l.memoizedState = t);
      },
      useHostTransitionStatus: yc,
      useFormState: oo,
      useActionState: oo,
      useOptimistic: function (l) {
        var t = Yl();
        t.memoizedState = t.baseState = l;
        var a = {
          pending: null,
          lanes: 0,
          dispatch: null,
          lastRenderedReducer: null,
          lastRenderedState: null,
        };
        return (
          (t.queue = a),
          (t = gc.bind(null, Q, !0, a)),
          (a.dispatch = t),
          [l, t]
        );
      },
      useMemoCache: cc,
      useCacheRefresh: function () {
        return (Yl().memoizedState = pm.bind(null, Q));
      },
      useEffectEvent: function (l) {
        var t = Yl(),
          a = { impl: l };
        return (
          (t.memoizedState = a),
          function () {
            if ((P & 2) !== 0) throw Error(f(440));
            return a.impl.apply(void 0, arguments);
          }
        );
      },
    },
    bc = {
      readContext: Bl,
      use: dn,
      useCallback: zo,
      useContext: Bl,
      useEffect: dc,
      useImperativeHandle: xo,
      useInsertionEffect: bo,
      useLayoutEffect: po,
      useMemo: To,
      useReducer: mn,
      useRef: vo,
      useState: function () {
        return mn(Yt);
      },
      useDebugValue: mc,
      useDeferredValue: function (l, t) {
        var a = bl();
        return Ao(a, el.memoizedState, l, t);
      },
      useTransition: function () {
        var l = mn(Yt)[0],
          t = bl().memoizedState;
        return [typeof l == "boolean" ? l : uu(l), t];
      },
      useSyncExternalStore: Is,
      useId: Oo,
      useHostTransitionStatus: yc,
      useFormState: ro,
      useActionState: ro,
      useOptimistic: function (l, t) {
        var a = bl();
        return uo(a, el, l, t);
      },
      useMemoCache: cc,
      useCacheRefresh: Do,
    };
  bc.useEffectEvent = go;
  var _o = {
    readContext: Bl,
    use: dn,
    useCallback: zo,
    useContext: Bl,
    useEffect: dc,
    useImperativeHandle: xo,
    useInsertionEffect: bo,
    useLayoutEffect: po,
    useMemo: To,
    useReducer: sc,
    useRef: vo,
    useState: function () {
      return sc(Yt);
    },
    useDebugValue: mc,
    useDeferredValue: function (l, t) {
      var a = bl();
      return el === null ? hc(a, l, t) : Ao(a, el.memoizedState, l, t);
    },
    useTransition: function () {
      var l = sc(Yt)[0],
        t = bl().memoizedState;
      return [typeof l == "boolean" ? l : uu(l), t];
    },
    useSyncExternalStore: Is,
    useId: Oo,
    useHostTransitionStatus: yc,
    useFormState: ho,
    useActionState: ho,
    useOptimistic: function (l, t) {
      var a = bl();
      return el !== null
        ? uo(a, el, l, t)
        : ((a.baseState = l), [l, a.queue.dispatch]);
    },
    useMemoCache: cc,
    useCacheRefresh: Do,
  };
  _o.useEffectEvent = go;
  function pc(l, t, a, e) {
    ((t = l.memoizedState),
      (a = a(e, t)),
      (a = a == null ? t : C({}, t, a)),
      (l.memoizedState = a),
      l.lanes === 0 && (l.updateQueue.baseState = a));
  }
  var Sc = {
    enqueueSetState: function (l, t, a) {
      l = l._reactInternals;
      var e = ut(),
        u = na(e);
      ((u.payload = t),
        a != null && (u.callback = a),
        (t = ia(l, u, e)),
        t !== null && (wl(t, l, e), lu(t, l, e)));
    },
    enqueueReplaceState: function (l, t, a) {
      l = l._reactInternals;
      var e = ut(),
        u = na(e);
      ((u.tag = 1),
        (u.payload = t),
        a != null && (u.callback = a),
        (t = ia(l, u, e)),
        t !== null && (wl(t, l, e), lu(t, l, e)));
    },
    enqueueForceUpdate: function (l, t) {
      l = l._reactInternals;
      var a = ut(),
        e = na(a);
      ((e.tag = 2),
        t != null && (e.callback = t),
        (t = ia(l, e, a)),
        t !== null && (wl(t, l, a), lu(t, l, a)));
    },
  };
  function Ho(l, t, a, e, u, n, i) {
    return (
      (l = l.stateNode),
      typeof l.shouldComponentUpdate == "function"
        ? l.shouldComponentUpdate(e, n, i)
        : t.prototype && t.prototype.isPureReactComponent
          ? !Je(a, e) || !Je(u, n)
          : !0
    );
  }
  function qo(l, t, a, e) {
    ((l = t.state),
      typeof t.componentWillReceiveProps == "function" &&
        t.componentWillReceiveProps(a, e),
      typeof t.UNSAFE_componentWillReceiveProps == "function" &&
        t.UNSAFE_componentWillReceiveProps(a, e),
      t.state !== l && Sc.enqueueReplaceState(t, t.state, null));
  }
  function Ya(l, t) {
    var a = t;
    if ("ref" in t) {
      a = {};
      for (var e in t) e !== "ref" && (a[e] = t[e]);
    }
    if ((l = l.defaultProps)) {
      a === t && (a = C({}, a));
      for (var u in l) a[u] === void 0 && (a[u] = l[u]);
    }
    return a;
  }
  function Ro(l) {
    wu(l);
  }
  function Lo(l) {
    console.error(l);
  }
  function Yo(l) {
    wu(l);
  }
  function gn(l, t) {
    try {
      var a = l.onUncaughtError;
      a(t.value, { componentStack: t.stack });
    } catch (e) {
      setTimeout(function () {
        throw e;
      });
    }
  }
  function Vo(l, t, a) {
    try {
      var e = l.onCaughtError;
      e(a.value, {
        componentStack: a.stack,
        errorBoundary: t.tag === 1 ? t.stateNode : null,
      });
    } catch (u) {
      setTimeout(function () {
        throw u;
      });
    }
  }
  function xc(l, t, a) {
    return (
      (a = na(a)),
      (a.tag = 3),
      (a.payload = { element: null }),
      (a.callback = function () {
        gn(l, t);
      }),
      a
    );
  }
  function Xo(l) {
    return ((l = na(l)), (l.tag = 3), l);
  }
  function Go(l, t, a, e) {
    var u = a.type.getDerivedStateFromError;
    if (typeof u == "function") {
      var n = e.value;
      ((l.payload = function () {
        return u(n);
      }),
        (l.callback = function () {
          Vo(t, a, e);
        }));
    }
    var i = a.stateNode;
    i !== null &&
      typeof i.componentDidCatch == "function" &&
      (l.callback = function () {
        (Vo(t, a, e),
          typeof u != "function" &&
            (da === null ? (da = new Set([this])) : da.add(this)));
        var c = e.stack;
        this.componentDidCatch(e.value, {
          componentStack: c !== null ? c : "",
        });
      });
  }
  function xm(l, t, a, e, u) {
    if (
      ((a.flags |= 32768),
      e !== null && typeof e == "object" && typeof e.then == "function")
    ) {
      if (
        ((t = a.alternate),
        t !== null && oe(t, a, u, !0),
        (a = lt.current),
        a !== null)
      ) {
        switch (a.tag) {
          case 31:
          case 13:
            return (
              ht === null ? Dn() : a.alternate === null && yl === 0 && (yl = 3),
              (a.flags &= -257),
              (a.flags |= 65536),
              (a.lanes = u),
              e === en
                ? (a.flags |= 16384)
                : ((t = a.updateQueue),
                  t === null ? (a.updateQueue = new Set([e])) : t.add(e),
                  Jc(l, e, u)),
              !1
            );
          case 22:
            return (
              (a.flags |= 65536),
              e === en
                ? (a.flags |= 16384)
                : ((t = a.updateQueue),
                  t === null
                    ? ((t = {
                        transitions: null,
                        markerInstances: null,
                        retryQueue: new Set([e]),
                      }),
                      (a.updateQueue = t))
                    : ((a = t.retryQueue),
                      a === null ? (t.retryQueue = new Set([e])) : a.add(e)),
                  Jc(l, e, u)),
              !1
            );
        }
        throw Error(f(435, a.tag));
      }
      return (Jc(l, e, u), Dn(), !1);
    }
    if (k)
      return (
        (t = lt.current),
        t !== null
          ? ((t.flags & 65536) === 0 && (t.flags |= 256),
            (t.flags |= 65536),
            (t.lanes = u),
            e !== Vi && ((l = Error(f(422), { cause: e })), ke(ot(l, a))))
          : (e !== Vi && ((t = Error(f(423), { cause: e })), ke(ot(t, a))),
            (l = l.current.alternate),
            (l.flags |= 65536),
            (u &= -u),
            (l.lanes |= u),
            (e = ot(e, a)),
            (u = xc(l.stateNode, e, u)),
            $i(l, u),
            yl !== 4 && (yl = 2)),
        !1
      );
    var n = Error(f(520), { cause: e });
    if (
      ((n = ot(n, a)),
      hu === null ? (hu = [n]) : hu.push(n),
      yl !== 4 && (yl = 2),
      t === null)
    )
      return !0;
    ((e = ot(e, a)), (a = t));
    do {
      switch (a.tag) {
        case 3:
          return (
            (a.flags |= 65536),
            (l = u & -u),
            (a.lanes |= l),
            (l = xc(a.stateNode, e, l)),
            $i(a, l),
            !1
          );
        case 1:
          if (
            ((t = a.type),
            (n = a.stateNode),
            (a.flags & 128) === 0 &&
              (typeof t.getDerivedStateFromError == "function" ||
                (n !== null &&
                  typeof n.componentDidCatch == "function" &&
                  (da === null || !da.has(n)))))
          )
            return (
              (a.flags |= 65536),
              (u &= -u),
              (a.lanes |= u),
              (u = Xo(u)),
              Go(u, l, a, e),
              $i(a, u),
              !1
            );
      }
      a = a.return;
    } while (a !== null);
    return !1;
  }
  var zc = Error(f(461)),
    xl = !1;
  function _l(l, t, a, e) {
    t.child = l === null ? Ks(t, null, a, e) : Ra(t, l.child, a, e);
  }
  function Qo(l, t, a, e, u) {
    a = a.render;
    var n = t.ref;
    if ("ref" in e) {
      var i = {};
      for (var c in e) c !== "ref" && (i[c] = e[c]);
    } else i = e;
    return (
      Ba(t),
      (e = ec(l, t, a, i, n, u)),
      (c = uc()),
      l !== null && !xl
        ? (nc(l, t, u), Vt(l, t, u))
        : (k && c && Li(t), (t.flags |= 1), _l(l, t, e, u), t.child)
    );
  }
  function Zo(l, t, a, e, u) {
    if (l === null) {
      var n = a.type;
      return typeof n == "function" &&
        !Hi(n) &&
        n.defaultProps === void 0 &&
        a.compare === null
        ? ((t.tag = 15), (t.type = n), Ko(l, t, n, e, u))
        : ((l = $u(a.type, null, e, t, t.mode, u)),
          (l.ref = t.ref),
          (l.return = t),
          (t.child = l));
    }
    if (((n = l.child), !jc(l, u))) {
      var i = n.memoizedProps;
      if (
        ((a = a.compare), (a = a !== null ? a : Je), a(i, e) && l.ref === t.ref)
      )
        return Vt(l, t, u);
    }
    return (
      (t.flags |= 1),
      (l = _t(n, e)),
      (l.ref = t.ref),
      (l.return = t),
      (t.child = l)
    );
  }
  function Ko(l, t, a, e, u) {
    if (l !== null) {
      var n = l.memoizedProps;
      if (Je(n, e) && l.ref === t.ref)
        if (((xl = !1), (t.pendingProps = e = n), jc(l, u)))
          (l.flags & 131072) !== 0 && (xl = !0);
        else return ((t.lanes = l.lanes), Vt(l, t, u));
    }
    return Tc(l, t, a, e, u);
  }
  function Jo(l, t, a, e) {
    var u = e.children,
      n = l !== null ? l.memoizedState : null;
    if (
      (l === null &&
        t.stateNode === null &&
        (t.stateNode = {
          _visibility: 1,
          _pendingMarkers: null,
          _retryCache: null,
          _transitions: null,
        }),
      e.mode === "hidden")
    ) {
      if ((t.flags & 128) !== 0) {
        if (((n = n !== null ? n.baseLanes | a : a), l !== null)) {
          for (e = t.child = l.child, u = 0; e !== null; )
            ((u = u | e.lanes | e.childLanes), (e = e.sibling));
          e = u & ~n;
        } else ((e = 0), (t.child = null));
        return wo(l, t, n, a, e);
      }
      if ((a & 536870912) !== 0)
        ((t.memoizedState = { baseLanes: 0, cachePool: null }),
          l !== null && tn(t, n !== null ? n.cachePool : null),
          n !== null ? Ws(t, n) : Pi(),
          ks(t));
      else
        return (
          (e = t.lanes = 536870912),
          wo(l, t, n !== null ? n.baseLanes | a : a, a, e)
        );
    } else
      n !== null
        ? (tn(t, n.cachePool), Ws(t, n), fa(), (t.memoizedState = null))
        : (l !== null && tn(t, null), Pi(), fa());
    return (_l(l, t, u, a), t.child);
  }
  function cu(l, t) {
    return (
      (l !== null && l.tag === 22) ||
        t.stateNode !== null ||
        (t.stateNode = {
          _visibility: 1,
          _pendingMarkers: null,
          _retryCache: null,
          _transitions: null,
        }),
      t.sibling
    );
  }
  function wo(l, t, a, e, u) {
    var n = wi();
    return (
      (n = n === null ? null : { parent: pl._currentValue, pool: n }),
      (t.memoizedState = { baseLanes: a, cachePool: n }),
      l !== null && tn(t, null),
      Pi(),
      ks(t),
      l !== null && oe(l, t, e, !0),
      (t.childLanes = u),
      null
    );
  }
  function bn(l, t) {
    return (
      (t = Sn({ mode: t.mode, children: t.children }, l.mode)),
      (t.ref = l.ref),
      (l.child = t),
      (t.return = l),
      t
    );
  }
  function Wo(l, t, a) {
    return (
      Ra(t, l.child, null, a),
      (l = bn(t, t.pendingProps)),
      (l.flags |= 2),
      tt(t),
      (t.memoizedState = null),
      l
    );
  }
  function zm(l, t, a) {
    var e = t.pendingProps,
      u = (t.flags & 128) !== 0;
    if (((t.flags &= -129), l === null)) {
      if (k) {
        if (e.mode === "hidden")
          return ((l = bn(t, e)), (t.lanes = 536870912), cu(null, l));
        if (
          (tc(t),
          (l = ol)
            ? ((l = id(l, mt)),
              (l = l !== null && l.data === "&" ? l : null),
              l !== null &&
                ((t.memoizedState = {
                  dehydrated: l,
                  treeContext: la !== null ? { id: Et, overflow: Ct } : null,
                  retryLane: 536870912,
                  hydrationErrors: null,
                }),
                (a = js(l)),
                (a.return = t),
                (t.child = a),
                (Ul = t),
                (ol = null)))
            : (l = null),
          l === null)
        )
          throw aa(t);
        return ((t.lanes = 536870912), null);
      }
      return bn(t, e);
    }
    var n = l.memoizedState;
    if (n !== null) {
      var i = n.dehydrated;
      if ((tc(t), u))
        if (t.flags & 256) ((t.flags &= -257), (t = Wo(l, t, a)));
        else if (t.memoizedState !== null)
          ((t.child = l.child), (t.flags |= 128), (t = null));
        else throw Error(f(558));
      else if (
        (xl || oe(l, t, a, !1), (u = (a & l.childLanes) !== 0), xl || u)
      ) {
        if (
          ((e = il),
          e !== null && ((i = Rf(e, a)), i !== 0 && i !== n.retryLane))
        )
          throw ((n.retryLane = i), Da(l, i), wl(e, l, i), zc);
        (Dn(), (t = Wo(l, t, a)));
      } else
        ((l = n.treeContext),
          (ol = vt(i.nextSibling)),
          (Ul = t),
          (k = !0),
          (ta = null),
          (mt = !1),
          l !== null && Bs(t, l),
          (t = bn(t, e)),
          (t.flags |= 4096));
      return t;
    }
    return (
      (l = _t(l.child, { mode: e.mode, children: e.children })),
      (l.ref = t.ref),
      (t.child = l),
      (l.return = t),
      l
    );
  }
  function pn(l, t) {
    var a = t.ref;
    if (a === null) l !== null && l.ref !== null && (t.flags |= 4194816);
    else {
      if (typeof a != "function" && typeof a != "object") throw Error(f(284));
      (l === null || l.ref !== a) && (t.flags |= 4194816);
    }
  }
  function Tc(l, t, a, e, u) {
    return (
      Ba(t),
      (a = ec(l, t, a, e, void 0, u)),
      (e = uc()),
      l !== null && !xl
        ? (nc(l, t, u), Vt(l, t, u))
        : (k && e && Li(t), (t.flags |= 1), _l(l, t, a, u), t.child)
    );
  }
  function ko(l, t, a, e, u, n) {
    return (
      Ba(t),
      (t.updateQueue = null),
      (a = $s(t, e, a, u)),
      Fs(l),
      (e = uc()),
      l !== null && !xl
        ? (nc(l, t, n), Vt(l, t, n))
        : (k && e && Li(t), (t.flags |= 1), _l(l, t, a, n), t.child)
    );
  }
  function Fo(l, t, a, e, u) {
    if ((Ba(t), t.stateNode === null)) {
      var n = ie,
        i = a.contextType;
      (typeof i == "object" && i !== null && (n = Bl(i)),
        (n = new a(e, n)),
        (t.memoizedState =
          n.state !== null && n.state !== void 0 ? n.state : null),
        (n.updater = Sc),
        (t.stateNode = n),
        (n._reactInternals = t),
        (n = t.stateNode),
        (n.props = e),
        (n.state = t.memoizedState),
        (n.refs = {}),
        ki(t),
        (i = a.contextType),
        (n.context = typeof i == "object" && i !== null ? Bl(i) : ie),
        (n.state = t.memoizedState),
        (i = a.getDerivedStateFromProps),
        typeof i == "function" && (pc(t, a, i, e), (n.state = t.memoizedState)),
        typeof a.getDerivedStateFromProps == "function" ||
          typeof n.getSnapshotBeforeUpdate == "function" ||
          (typeof n.UNSAFE_componentWillMount != "function" &&
            typeof n.componentWillMount != "function") ||
          ((i = n.state),
          typeof n.componentWillMount == "function" && n.componentWillMount(),
          typeof n.UNSAFE_componentWillMount == "function" &&
            n.UNSAFE_componentWillMount(),
          i !== n.state && Sc.enqueueReplaceState(n, n.state, null),
          au(t, e, n, u),
          tu(),
          (n.state = t.memoizedState)),
        typeof n.componentDidMount == "function" && (t.flags |= 4194308),
        (e = !0));
    } else if (l === null) {
      n = t.stateNode;
      var c = t.memoizedProps,
        o = Ya(a, c);
      n.props = o;
      var g = n.context,
        x = a.contextType;
      ((i = ie), typeof x == "object" && x !== null && (i = Bl(x)));
      var A = a.getDerivedStateFromProps;
      ((x =
        typeof A == "function" ||
        typeof n.getSnapshotBeforeUpdate == "function"),
        (c = t.pendingProps !== c),
        x ||
          (typeof n.UNSAFE_componentWillReceiveProps != "function" &&
            typeof n.componentWillReceiveProps != "function") ||
          ((c || g !== i) && qo(t, n, e, i)),
        (ua = !1));
      var b = t.memoizedState;
      ((n.state = b),
        au(t, e, n, u),
        tu(),
        (g = t.memoizedState),
        c || b !== g || ua
          ? (typeof A == "function" && (pc(t, a, A, e), (g = t.memoizedState)),
            (o = ua || Ho(t, a, o, e, b, g, i))
              ? (x ||
                  (typeof n.UNSAFE_componentWillMount != "function" &&
                    typeof n.componentWillMount != "function") ||
                  (typeof n.componentWillMount == "function" &&
                    n.componentWillMount(),
                  typeof n.UNSAFE_componentWillMount == "function" &&
                    n.UNSAFE_componentWillMount()),
                typeof n.componentDidMount == "function" &&
                  (t.flags |= 4194308))
              : (typeof n.componentDidMount == "function" &&
                  (t.flags |= 4194308),
                (t.memoizedProps = e),
                (t.memoizedState = g)),
            (n.props = e),
            (n.state = g),
            (n.context = i),
            (e = o))
          : (typeof n.componentDidMount == "function" && (t.flags |= 4194308),
            (e = !1)));
    } else {
      ((n = t.stateNode),
        Fi(l, t),
        (i = t.memoizedProps),
        (x = Ya(a, i)),
        (n.props = x),
        (A = t.pendingProps),
        (b = n.context),
        (g = a.contextType),
        (o = ie),
        typeof g == "object" && g !== null && (o = Bl(g)),
        (c = a.getDerivedStateFromProps),
        (g =
          typeof c == "function" ||
          typeof n.getSnapshotBeforeUpdate == "function") ||
          (typeof n.UNSAFE_componentWillReceiveProps != "function" &&
            typeof n.componentWillReceiveProps != "function") ||
          ((i !== A || b !== o) && qo(t, n, e, o)),
        (ua = !1),
        (b = t.memoizedState),
        (n.state = b),
        au(t, e, n, u),
        tu());
      var p = t.memoizedState;
      i !== A ||
      b !== p ||
      ua ||
      (l !== null && l.dependencies !== null && Pu(l.dependencies))
        ? (typeof c == "function" && (pc(t, a, c, e), (p = t.memoizedState)),
          (x =
            ua ||
            Ho(t, a, x, e, b, p, o) ||
            (l !== null && l.dependencies !== null && Pu(l.dependencies)))
            ? (g ||
                (typeof n.UNSAFE_componentWillUpdate != "function" &&
                  typeof n.componentWillUpdate != "function") ||
                (typeof n.componentWillUpdate == "function" &&
                  n.componentWillUpdate(e, p, o),
                typeof n.UNSAFE_componentWillUpdate == "function" &&
                  n.UNSAFE_componentWillUpdate(e, p, o)),
              typeof n.componentDidUpdate == "function" && (t.flags |= 4),
              typeof n.getSnapshotBeforeUpdate == "function" &&
                (t.flags |= 1024))
            : (typeof n.componentDidUpdate != "function" ||
                (i === l.memoizedProps && b === l.memoizedState) ||
                (t.flags |= 4),
              typeof n.getSnapshotBeforeUpdate != "function" ||
                (i === l.memoizedProps && b === l.memoizedState) ||
                (t.flags |= 1024),
              (t.memoizedProps = e),
              (t.memoizedState = p)),
          (n.props = e),
          (n.state = p),
          (n.context = o),
          (e = x))
        : (typeof n.componentDidUpdate != "function" ||
            (i === l.memoizedProps && b === l.memoizedState) ||
            (t.flags |= 4),
          typeof n.getSnapshotBeforeUpdate != "function" ||
            (i === l.memoizedProps && b === l.memoizedState) ||
            (t.flags |= 1024),
          (e = !1));
    }
    return (
      (n = e),
      pn(l, t),
      (e = (t.flags & 128) !== 0),
      n || e
        ? ((n = t.stateNode),
          (a =
            e && typeof a.getDerivedStateFromError != "function"
              ? null
              : n.render()),
          (t.flags |= 1),
          l !== null && e
            ? ((t.child = Ra(t, l.child, null, u)),
              (t.child = Ra(t, null, a, u)))
            : _l(l, t, a, u),
          (t.memoizedState = n.state),
          (l = t.child))
        : (l = Vt(l, t, u)),
      l
    );
  }
  function $o(l, t, a, e) {
    return (Na(), (t.flags |= 256), _l(l, t, a, e), t.child);
  }
  var Ac = {
    dehydrated: null,
    treeContext: null,
    retryLane: 0,
    hydrationErrors: null,
  };
  function Ec(l) {
    return { baseLanes: l, cachePool: Ys() };
  }
  function Cc(l, t, a) {
    return ((l = l !== null ? l.childLanes & ~a : 0), t && (l |= et), l);
  }
  function Io(l, t, a) {
    var e = t.pendingProps,
      u = !1,
      n = (t.flags & 128) !== 0,
      i;
    if (
      ((i = n) ||
        (i =
          l !== null && l.memoizedState === null ? !1 : (gl.current & 2) !== 0),
      i && ((u = !0), (t.flags &= -129)),
      (i = (t.flags & 32) !== 0),
      (t.flags &= -33),
      l === null)
    ) {
      if (k) {
        if (
          (u ? ca(t) : fa(),
          (l = ol)
            ? ((l = id(l, mt)),
              (l = l !== null && l.data !== "&" ? l : null),
              l !== null &&
                ((t.memoizedState = {
                  dehydrated: l,
                  treeContext: la !== null ? { id: Et, overflow: Ct } : null,
                  retryLane: 536870912,
                  hydrationErrors: null,
                }),
                (a = js(l)),
                (a.return = t),
                (t.child = a),
                (Ul = t),
                (ol = null)))
            : (l = null),
          l === null)
        )
          throw aa(t);
        return (sf(l) ? (t.lanes = 32) : (t.lanes = 536870912), null);
      }
      var c = e.children;
      return (
        (e = e.fallback),
        u
          ? (fa(),
            (u = t.mode),
            (c = Sn({ mode: "hidden", children: c }, u)),
            (e = ja(e, u, a, null)),
            (c.return = t),
            (e.return = t),
            (c.sibling = e),
            (t.child = c),
            (e = t.child),
            (e.memoizedState = Ec(a)),
            (e.childLanes = Cc(l, i, a)),
            (t.memoizedState = Ac),
            cu(null, e))
          : (ca(t), Mc(t, c))
      );
    }
    var o = l.memoizedState;
    if (o !== null && ((c = o.dehydrated), c !== null)) {
      if (n)
        t.flags & 256
          ? (ca(t), (t.flags &= -257), (t = Oc(l, t, a)))
          : t.memoizedState !== null
            ? (fa(), (t.child = l.child), (t.flags |= 128), (t = null))
            : (fa(),
              (c = e.fallback),
              (u = t.mode),
              (e = Sn({ mode: "visible", children: e.children }, u)),
              (c = ja(c, u, a, null)),
              (c.flags |= 2),
              (e.return = t),
              (c.return = t),
              (e.sibling = c),
              (t.child = e),
              Ra(t, l.child, null, a),
              (e = t.child),
              (e.memoizedState = Ec(a)),
              (e.childLanes = Cc(l, i, a)),
              (t.memoizedState = Ac),
              (t = cu(null, e)));
      else if ((ca(t), sf(c))) {
        if (((i = c.nextSibling && c.nextSibling.dataset), i)) var g = i.dgst;
        ((i = g),
          (e = Error(f(419))),
          (e.stack = ""),
          (e.digest = i),
          ke({ value: e, source: null, stack: null }),
          (t = Oc(l, t, a)));
      } else if (
        (xl || oe(l, t, a, !1), (i = (a & l.childLanes) !== 0), xl || i)
      ) {
        if (
          ((i = il),
          i !== null && ((e = Rf(i, a)), e !== 0 && e !== o.retryLane))
        )
          throw ((o.retryLane = e), Da(l, e), wl(i, l, e), zc);
        (ff(c) || Dn(), (t = Oc(l, t, a)));
      } else
        ff(c)
          ? ((t.flags |= 192), (t.child = l.child), (t = null))
          : ((l = o.treeContext),
            (ol = vt(c.nextSibling)),
            (Ul = t),
            (k = !0),
            (ta = null),
            (mt = !1),
            l !== null && Bs(t, l),
            (t = Mc(t, e.children)),
            (t.flags |= 4096));
      return t;
    }
    return u
      ? (fa(),
        (c = e.fallback),
        (u = t.mode),
        (o = l.child),
        (g = o.sibling),
        (e = _t(o, { mode: "hidden", children: e.children })),
        (e.subtreeFlags = o.subtreeFlags & 65011712),
        g !== null ? (c = _t(g, c)) : ((c = ja(c, u, a, null)), (c.flags |= 2)),
        (c.return = t),
        (e.return = t),
        (e.sibling = c),
        (t.child = e),
        cu(null, e),
        (e = t.child),
        (c = l.child.memoizedState),
        c === null
          ? (c = Ec(a))
          : ((u = c.cachePool),
            u !== null
              ? ((o = pl._currentValue),
                (u = u.parent !== o ? { parent: o, pool: o } : u))
              : (u = Ys()),
            (c = { baseLanes: c.baseLanes | a, cachePool: u })),
        (e.memoizedState = c),
        (e.childLanes = Cc(l, i, a)),
        (t.memoizedState = Ac),
        cu(l.child, e))
      : (ca(t),
        (a = l.child),
        (l = a.sibling),
        (a = _t(a, { mode: "visible", children: e.children })),
        (a.return = t),
        (a.sibling = null),
        l !== null &&
          ((i = t.deletions),
          i === null ? ((t.deletions = [l]), (t.flags |= 16)) : i.push(l)),
        (t.child = a),
        (t.memoizedState = null),
        a);
  }
  function Mc(l, t) {
    return (
      (t = Sn({ mode: "visible", children: t }, l.mode)),
      (t.return = l),
      (l.child = t)
    );
  }
  function Sn(l, t) {
    return ((l = Pl(22, l, null, t)), (l.lanes = 0), l);
  }
  function Oc(l, t, a) {
    return (
      Ra(t, l.child, null, a),
      (l = Mc(t, t.pendingProps.children)),
      (l.flags |= 2),
      (t.memoizedState = null),
      l
    );
  }
  function Po(l, t, a) {
    l.lanes |= t;
    var e = l.alternate;
    (e !== null && (e.lanes |= t), Qi(l.return, t, a));
  }
  function Dc(l, t, a, e, u, n) {
    var i = l.memoizedState;
    i === null
      ? (l.memoizedState = {
          isBackwards: t,
          rendering: null,
          renderingStartTime: 0,
          last: e,
          tail: a,
          tailMode: u,
          treeForkCount: n,
        })
      : ((i.isBackwards = t),
        (i.rendering = null),
        (i.renderingStartTime = 0),
        (i.last = e),
        (i.tail = a),
        (i.tailMode = u),
        (i.treeForkCount = n));
  }
  function lr(l, t, a) {
    var e = t.pendingProps,
      u = e.revealOrder,
      n = e.tail;
    e = e.children;
    var i = gl.current,
      c = (i & 2) !== 0;
    if (
      (c ? ((i = (i & 1) | 2), (t.flags |= 128)) : (i &= 1),
      ll(gl, i),
      _l(l, t, e, a),
      (e = k ? We : 0),
      !c && l !== null && (l.flags & 128) !== 0)
    )
      l: for (l = t.child; l !== null; ) {
        if (l.tag === 13) l.memoizedState !== null && Po(l, a, t);
        else if (l.tag === 19) Po(l, a, t);
        else if (l.child !== null) {
          ((l.child.return = l), (l = l.child));
          continue;
        }
        if (l === t) break l;
        for (; l.sibling === null; ) {
          if (l.return === null || l.return === t) break l;
          l = l.return;
        }
        ((l.sibling.return = l.return), (l = l.sibling));
      }
    switch (u) {
      case "forwards":
        for (a = t.child, u = null; a !== null; )
          ((l = a.alternate),
            l !== null && fn(l) === null && (u = a),
            (a = a.sibling));
        ((a = u),
          a === null
            ? ((u = t.child), (t.child = null))
            : ((u = a.sibling), (a.sibling = null)),
          Dc(t, !1, u, a, n, e));
        break;
      case "backwards":
      case "unstable_legacy-backwards":
        for (a = null, u = t.child, t.child = null; u !== null; ) {
          if (((l = u.alternate), l !== null && fn(l) === null)) {
            t.child = u;
            break;
          }
          ((l = u.sibling), (u.sibling = a), (a = u), (u = l));
        }
        Dc(t, !0, a, null, n, e);
        break;
      case "together":
        Dc(t, !1, null, null, void 0, e);
        break;
      default:
        t.memoizedState = null;
    }
    return t.child;
  }
  function Vt(l, t, a) {
    if (
      (l !== null && (t.dependencies = l.dependencies),
      (ra |= t.lanes),
      (a & t.childLanes) === 0)
    )
      if (l !== null) {
        if ((oe(l, t, a, !1), (a & t.childLanes) === 0)) return null;
      } else return null;
    if (l !== null && t.child !== l.child) throw Error(f(153));
    if (t.child !== null) {
      for (
        l = t.child, a = _t(l, l.pendingProps), t.child = a, a.return = t;
        l.sibling !== null;
      )
        ((l = l.sibling),
          (a = a.sibling = _t(l, l.pendingProps)),
          (a.return = t));
      a.sibling = null;
    }
    return t.child;
  }
  function jc(l, t) {
    return (l.lanes & t) !== 0
      ? !0
      : ((l = l.dependencies), !!(l !== null && Pu(l)));
  }
  function Tm(l, t, a) {
    switch (t.tag) {
      case 3:
        (ju(t, t.stateNode.containerInfo),
          ea(t, pl, l.memoizedState.cache),
          Na());
        break;
      case 27:
      case 5:
        li(t);
        break;
      case 4:
        ju(t, t.stateNode.containerInfo);
        break;
      case 10:
        ea(t, t.type, t.memoizedProps.value);
        break;
      case 31:
        if (t.memoizedState !== null) return ((t.flags |= 128), tc(t), null);
        break;
      case 13:
        var e = t.memoizedState;
        if (e !== null)
          return e.dehydrated !== null
            ? (ca(t), (t.flags |= 128), null)
            : (a & t.child.childLanes) !== 0
              ? Io(l, t, a)
              : (ca(t), (l = Vt(l, t, a)), l !== null ? l.sibling : null);
        ca(t);
        break;
      case 19:
        var u = (l.flags & 128) !== 0;
        if (
          ((e = (a & t.childLanes) !== 0),
          e || (oe(l, t, a, !1), (e = (a & t.childLanes) !== 0)),
          u)
        ) {
          if (e) return lr(l, t, a);
          t.flags |= 128;
        }
        if (
          ((u = t.memoizedState),
          u !== null &&
            ((u.rendering = null), (u.tail = null), (u.lastEffect = null)),
          ll(gl, gl.current),
          e)
        )
          break;
        return null;
      case 22:
        return ((t.lanes = 0), Jo(l, t, a, t.pendingProps));
      case 24:
        ea(t, pl, l.memoizedState.cache);
    }
    return Vt(l, t, a);
  }
  function tr(l, t, a) {
    if (l !== null)
      if (l.memoizedProps !== t.pendingProps) xl = !0;
      else {
        if (!jc(l, a) && (t.flags & 128) === 0) return ((xl = !1), Tm(l, t, a));
        xl = (l.flags & 131072) !== 0;
      }
    else ((xl = !1), k && (t.flags & 1048576) !== 0 && Us(t, We, t.index));
    switch (((t.lanes = 0), t.tag)) {
      case 16:
        l: {
          var e = t.pendingProps;
          if (((l = Ha(t.elementType)), (t.type = l), typeof l == "function"))
            Hi(l)
              ? ((e = Ya(l, e)), (t.tag = 1), (t = Fo(null, t, l, e, a)))
              : ((t.tag = 0), (t = Tc(null, t, l, e, a)));
          else {
            if (l != null) {
              var u = l.$$typeof;
              if (u === zt) {
                ((t.tag = 11), (t = Qo(null, t, l, e, a)));
                break l;
              } else if (u === nt) {
                ((t.tag = 14), (t = Zo(null, t, l, e, a)));
                break l;
              }
            }
            throw ((t = Be(l) || l), Error(f(306, t, "")));
          }
        }
        return t;
      case 0:
        return Tc(l, t, t.type, t.pendingProps, a);
      case 1:
        return ((e = t.type), (u = Ya(e, t.pendingProps)), Fo(l, t, e, u, a));
      case 3:
        l: {
          if ((ju(t, t.stateNode.containerInfo), l === null))
            throw Error(f(387));
          e = t.pendingProps;
          var n = t.memoizedState;
          ((u = n.element), Fi(l, t), au(t, e, null, a));
          var i = t.memoizedState;
          if (
            ((e = i.cache),
            ea(t, pl, e),
            e !== n.cache && Zi(t, [pl], a, !0),
            tu(),
            (e = i.element),
            n.isDehydrated)
          )
            if (
              ((n = { element: e, isDehydrated: !1, cache: i.cache }),
              (t.updateQueue.baseState = n),
              (t.memoizedState = n),
              t.flags & 256)
            ) {
              t = $o(l, t, e, a);
              break l;
            } else if (e !== u) {
              ((u = ot(Error(f(424)), t)), ke(u), (t = $o(l, t, e, a)));
              break l;
            } else
              for (
                l = t.stateNode.containerInfo,
                  l.nodeType === 9
                    ? (l = l.body)
                    : (l = l.nodeName === "HTML" ? l.ownerDocument.body : l),
                  ol = vt(l.firstChild),
                  Ul = t,
                  k = !0,
                  ta = null,
                  mt = !0,
                  a = Ks(t, null, e, a),
                  t.child = a;
                a;
              )
                ((a.flags = (a.flags & -3) | 4096), (a = a.sibling));
          else {
            if ((Na(), e === u)) {
              t = Vt(l, t, a);
              break l;
            }
            _l(l, t, e, a);
          }
          t = t.child;
        }
        return t;
      case 26:
        return (
          pn(l, t),
          l === null
            ? (a = dd(t.type, null, t.pendingProps, null))
              ? (t.memoizedState = a)
              : k ||
                ((a = t.type),
                (l = t.pendingProps),
                (e = qn(Ft.current).createElement(a)),
                (e[Nl] = t),
                (e[Xl] = l),
                Hl(e, a, l),
                Ml(e),
                (t.stateNode = e))
            : (t.memoizedState = dd(
                t.type,
                l.memoizedProps,
                t.pendingProps,
                l.memoizedState,
              )),
          null
        );
      case 27:
        return (
          li(t),
          l === null &&
            k &&
            ((e = t.stateNode = sd(t.type, t.pendingProps, Ft.current)),
            (Ul = t),
            (mt = !0),
            (u = ol),
            ya(t.type) ? ((of = u), (ol = vt(e.firstChild))) : (ol = u)),
          _l(l, t, t.pendingProps.children, a),
          pn(l, t),
          l === null && (t.flags |= 4194304),
          t.child
        );
      case 5:
        return (
          l === null &&
            k &&
            ((u = e = ol) &&
              ((e = Pm(e, t.type, t.pendingProps, mt)),
              e !== null
                ? ((t.stateNode = e),
                  (Ul = t),
                  (ol = vt(e.firstChild)),
                  (mt = !1),
                  (u = !0))
                : (u = !1)),
            u || aa(t)),
          li(t),
          (u = t.type),
          (n = t.pendingProps),
          (i = l !== null ? l.memoizedProps : null),
          (e = n.children),
          uf(u, n) ? (e = null) : i !== null && uf(u, i) && (t.flags |= 32),
          t.memoizedState !== null &&
            ((u = ec(l, t, hm, null, null, a)), (zu._currentValue = u)),
          pn(l, t),
          _l(l, t, e, a),
          t.child
        );
      case 6:
        return (
          l === null &&
            k &&
            ((l = a = ol) &&
              ((a = lh(a, t.pendingProps, mt)),
              a !== null
                ? ((t.stateNode = a), (Ul = t), (ol = null), (l = !0))
                : (l = !1)),
            l || aa(t)),
          null
        );
      case 13:
        return Io(l, t, a);
      case 4:
        return (
          ju(t, t.stateNode.containerInfo),
          (e = t.pendingProps),
          l === null ? (t.child = Ra(t, null, e, a)) : _l(l, t, e, a),
          t.child
        );
      case 11:
        return Qo(l, t, t.type, t.pendingProps, a);
      case 7:
        return (_l(l, t, t.pendingProps, a), t.child);
      case 8:
        return (_l(l, t, t.pendingProps.children, a), t.child);
      case 12:
        return (_l(l, t, t.pendingProps.children, a), t.child);
      case 10:
        return (
          (e = t.pendingProps),
          ea(t, t.type, e.value),
          _l(l, t, e.children, a),
          t.child
        );
      case 9:
        return (
          (u = t.type._context),
          (e = t.pendingProps.children),
          Ba(t),
          (u = Bl(u)),
          (e = e(u)),
          (t.flags |= 1),
          _l(l, t, e, a),
          t.child
        );
      case 14:
        return Zo(l, t, t.type, t.pendingProps, a);
      case 15:
        return Ko(l, t, t.type, t.pendingProps, a);
      case 19:
        return lr(l, t, a);
      case 31:
        return zm(l, t, a);
      case 22:
        return Jo(l, t, a, t.pendingProps);
      case 24:
        return (
          Ba(t),
          (e = Bl(pl)),
          l === null
            ? ((u = wi()),
              u === null &&
                ((u = il),
                (n = Ki()),
                (u.pooledCache = n),
                n.refCount++,
                n !== null && (u.pooledCacheLanes |= a),
                (u = n)),
              (t.memoizedState = { parent: e, cache: u }),
              ki(t),
              ea(t, pl, u))
            : ((l.lanes & a) !== 0 && (Fi(l, t), au(t, null, null, a), tu()),
              (u = l.memoizedState),
              (n = t.memoizedState),
              u.parent !== e
                ? ((u = { parent: e, cache: e }),
                  (t.memoizedState = u),
                  t.lanes === 0 &&
                    (t.memoizedState = t.updateQueue.baseState = u),
                  ea(t, pl, e))
                : ((e = n.cache),
                  ea(t, pl, e),
                  e !== u.cache && Zi(t, [pl], a, !0))),
          _l(l, t, t.pendingProps.children, a),
          t.child
        );
      case 29:
        throw t.pendingProps;
    }
    throw Error(f(156, t.tag));
  }
  function Xt(l) {
    l.flags |= 4;
  }
  function Nc(l, t, a, e, u) {
    if (((t = (l.mode & 32) !== 0) && (t = !1), t)) {
      if (((l.flags |= 16777216), (u & 335544128) === u))
        if (l.stateNode.complete) l.flags |= 8192;
        else if (Or()) l.flags |= 8192;
        else throw ((qa = en), Wi);
    } else l.flags &= -16777217;
  }
  function ar(l, t) {
    if (t.type !== "stylesheet" || (t.state.loading & 4) !== 0)
      l.flags &= -16777217;
    else if (((l.flags |= 16777216), !gd(t)))
      if (Or()) l.flags |= 8192;
      else throw ((qa = en), Wi);
  }
  function xn(l, t) {
    (t !== null && (l.flags |= 4),
      l.flags & 16384 &&
        ((t = l.tag !== 22 ? _f() : 536870912), (l.lanes |= t), (ze |= t)));
  }
  function fu(l, t) {
    if (!k)
      switch (l.tailMode) {
        case "hidden":
          t = l.tail;
          for (var a = null; t !== null; )
            (t.alternate !== null && (a = t), (t = t.sibling));
          a === null ? (l.tail = null) : (a.sibling = null);
          break;
        case "collapsed":
          a = l.tail;
          for (var e = null; a !== null; )
            (a.alternate !== null && (e = a), (a = a.sibling));
          e === null
            ? t || l.tail === null
              ? (l.tail = null)
              : (l.tail.sibling = null)
            : (e.sibling = null);
      }
  }
  function rl(l) {
    var t = l.alternate !== null && l.alternate.child === l.child,
      a = 0,
      e = 0;
    if (t)
      for (var u = l.child; u !== null; )
        ((a |= u.lanes | u.childLanes),
          (e |= u.subtreeFlags & 65011712),
          (e |= u.flags & 65011712),
          (u.return = l),
          (u = u.sibling));
    else
      for (u = l.child; u !== null; )
        ((a |= u.lanes | u.childLanes),
          (e |= u.subtreeFlags),
          (e |= u.flags),
          (u.return = l),
          (u = u.sibling));
    return ((l.subtreeFlags |= e), (l.childLanes = a), t);
  }
  function Am(l, t, a) {
    var e = t.pendingProps;
    switch ((Yi(t), t.tag)) {
      case 16:
      case 15:
      case 0:
      case 11:
      case 7:
      case 8:
      case 12:
      case 9:
      case 14:
        return (rl(t), null);
      case 1:
        return (rl(t), null);
      case 3:
        return (
          (a = t.stateNode),
          (e = null),
          l !== null && (e = l.memoizedState.cache),
          t.memoizedState.cache !== e && (t.flags |= 2048),
          Rt(pl),
          Ja(),
          a.pendingContext &&
            ((a.context = a.pendingContext), (a.pendingContext = null)),
          (l === null || l.child === null) &&
            (se(t)
              ? Xt(t)
              : l === null ||
                (l.memoizedState.isDehydrated && (t.flags & 256) === 0) ||
                ((t.flags |= 1024), Xi())),
          rl(t),
          null
        );
      case 26:
        var u = t.type,
          n = t.memoizedState;
        return (
          l === null
            ? (Xt(t),
              n !== null ? (rl(t), ar(t, n)) : (rl(t), Nc(t, u, null, e, a)))
            : n
              ? n !== l.memoizedState
                ? (Xt(t), rl(t), ar(t, n))
                : (rl(t), (t.flags &= -16777217))
              : ((l = l.memoizedProps),
                l !== e && Xt(t),
                rl(t),
                Nc(t, u, l, e, a)),
          null
        );
      case 27:
        if (
          (Nu(t),
          (a = Ft.current),
          (u = t.type),
          l !== null && t.stateNode != null)
        )
          l.memoizedProps !== e && Xt(t);
        else {
          if (!e) {
            if (t.stateNode === null) throw Error(f(166));
            return (rl(t), null);
          }
          ((l = Cl.current),
            se(t) ? _s(t) : ((l = sd(u, e, a)), (t.stateNode = l), Xt(t)));
        }
        return (rl(t), null);
      case 5:
        if ((Nu(t), (u = t.type), l !== null && t.stateNode != null))
          l.memoizedProps !== e && Xt(t);
        else {
          if (!e) {
            if (t.stateNode === null) throw Error(f(166));
            return (rl(t), null);
          }
          if (((n = Cl.current), se(t))) _s(t);
          else {
            var i = qn(Ft.current);
            switch (n) {
              case 1:
                n = i.createElementNS("http://www.w3.org/2000/svg", u);
                break;
              case 2:
                n = i.createElementNS("http://www.w3.org/1998/Math/MathML", u);
                break;
              default:
                switch (u) {
                  case "svg":
                    n = i.createElementNS("http://www.w3.org/2000/svg", u);
                    break;
                  case "math":
                    n = i.createElementNS(
                      "http://www.w3.org/1998/Math/MathML",
                      u,
                    );
                    break;
                  case "script":
                    ((n = i.createElement("div")),
                      (n.innerHTML = "<script><\/script>"),
                      (n = n.removeChild(n.firstChild)));
                    break;
                  case "select":
                    ((n =
                      typeof e.is == "string"
                        ? i.createElement("select", { is: e.is })
                        : i.createElement("select")),
                      e.multiple
                        ? (n.multiple = !0)
                        : e.size && (n.size = e.size));
                    break;
                  default:
                    n =
                      typeof e.is == "string"
                        ? i.createElement(u, { is: e.is })
                        : i.createElement(u);
                }
            }
            ((n[Nl] = t), (n[Xl] = e));
            l: for (i = t.child; i !== null; ) {
              if (i.tag === 5 || i.tag === 6) n.appendChild(i.stateNode);
              else if (i.tag !== 4 && i.tag !== 27 && i.child !== null) {
                ((i.child.return = i), (i = i.child));
                continue;
              }
              if (i === t) break l;
              for (; i.sibling === null; ) {
                if (i.return === null || i.return === t) break l;
                i = i.return;
              }
              ((i.sibling.return = i.return), (i = i.sibling));
            }
            t.stateNode = n;
            l: switch ((Hl(n, u, e), u)) {
              case "button":
              case "input":
              case "select":
              case "textarea":
                e = !!e.autoFocus;
                break l;
              case "img":
                e = !0;
                break l;
              default:
                e = !1;
            }
            e && Xt(t);
          }
        }
        return (
          rl(t),
          Nc(t, t.type, l === null ? null : l.memoizedProps, t.pendingProps, a),
          null
        );
      case 6:
        if (l && t.stateNode != null) l.memoizedProps !== e && Xt(t);
        else {
          if (typeof e != "string" && t.stateNode === null) throw Error(f(166));
          if (((l = Ft.current), se(t))) {
            if (
              ((l = t.stateNode),
              (a = t.memoizedProps),
              (e = null),
              (u = Ul),
              u !== null)
            )
              switch (u.tag) {
                case 27:
                case 5:
                  e = u.memoizedProps;
              }
            ((l[Nl] = t),
              (l = !!(
                l.nodeValue === a ||
                (e !== null && e.suppressHydrationWarning === !0) ||
                Ir(l.nodeValue, a)
              )),
              l || aa(t, !0));
          } else
            ((l = qn(l).createTextNode(e)), (l[Nl] = t), (t.stateNode = l));
        }
        return (rl(t), null);
      case 31:
        if (((a = t.memoizedState), l === null || l.memoizedState !== null)) {
          if (((e = se(t)), a !== null)) {
            if (l === null) {
              if (!e) throw Error(f(318));
              if (
                ((l = t.memoizedState),
                (l = l !== null ? l.dehydrated : null),
                !l)
              )
                throw Error(f(557));
              l[Nl] = t;
            } else
              (Na(),
                (t.flags & 128) === 0 && (t.memoizedState = null),
                (t.flags |= 4));
            (rl(t), (l = !1));
          } else
            ((a = Xi()),
              l !== null &&
                l.memoizedState !== null &&
                (l.memoizedState.hydrationErrors = a),
              (l = !0));
          if (!l) return t.flags & 256 ? (tt(t), t) : (tt(t), null);
          if ((t.flags & 128) !== 0) throw Error(f(558));
        }
        return (rl(t), null);
      case 13:
        if (
          ((e = t.memoizedState),
          l === null ||
            (l.memoizedState !== null && l.memoizedState.dehydrated !== null))
        ) {
          if (((u = se(t)), e !== null && e.dehydrated !== null)) {
            if (l === null) {
              if (!u) throw Error(f(318));
              if (
                ((u = t.memoizedState),
                (u = u !== null ? u.dehydrated : null),
                !u)
              )
                throw Error(f(317));
              u[Nl] = t;
            } else
              (Na(),
                (t.flags & 128) === 0 && (t.memoizedState = null),
                (t.flags |= 4));
            (rl(t), (u = !1));
          } else
            ((u = Xi()),
              l !== null &&
                l.memoizedState !== null &&
                (l.memoizedState.hydrationErrors = u),
              (u = !0));
          if (!u) return t.flags & 256 ? (tt(t), t) : (tt(t), null);
        }
        return (
          tt(t),
          (t.flags & 128) !== 0
            ? ((t.lanes = a), t)
            : ((a = e !== null),
              (l = l !== null && l.memoizedState !== null),
              a &&
                ((e = t.child),
                (u = null),
                e.alternate !== null &&
                  e.alternate.memoizedState !== null &&
                  e.alternate.memoizedState.cachePool !== null &&
                  (u = e.alternate.memoizedState.cachePool.pool),
                (n = null),
                e.memoizedState !== null &&
                  e.memoizedState.cachePool !== null &&
                  (n = e.memoizedState.cachePool.pool),
                n !== u && (e.flags |= 2048)),
              a !== l && a && (t.child.flags |= 8192),
              xn(t, t.updateQueue),
              rl(t),
              null)
        );
      case 4:
        return (Ja(), l === null && Pc(t.stateNode.containerInfo), rl(t), null);
      case 10:
        return (Rt(t.type), rl(t), null);
      case 19:
        if ((hl(gl), (e = t.memoizedState), e === null)) return (rl(t), null);
        if (((u = (t.flags & 128) !== 0), (n = e.rendering), n === null))
          if (u) fu(e, !1);
          else {
            if (yl !== 0 || (l !== null && (l.flags & 128) !== 0))
              for (l = t.child; l !== null; ) {
                if (((n = fn(l)), n !== null)) {
                  for (
                    t.flags |= 128,
                      fu(e, !1),
                      l = n.updateQueue,
                      t.updateQueue = l,
                      xn(t, l),
                      t.subtreeFlags = 0,
                      l = a,
                      a = t.child;
                    a !== null;
                  )
                    (Ds(a, l), (a = a.sibling));
                  return (
                    ll(gl, (gl.current & 1) | 2),
                    k && Ht(t, e.treeForkCount),
                    t.child
                  );
                }
                l = l.sibling;
              }
            e.tail !== null &&
              kl() > Cn &&
              ((t.flags |= 128), (u = !0), fu(e, !1), (t.lanes = 4194304));
          }
        else {
          if (!u)
            if (((l = fn(n)), l !== null)) {
              if (
                ((t.flags |= 128),
                (u = !0),
                (l = l.updateQueue),
                (t.updateQueue = l),
                xn(t, l),
                fu(e, !0),
                e.tail === null &&
                  e.tailMode === "hidden" &&
                  !n.alternate &&
                  !k)
              )
                return (rl(t), null);
            } else
              2 * kl() - e.renderingStartTime > Cn &&
                a !== 536870912 &&
                ((t.flags |= 128), (u = !0), fu(e, !1), (t.lanes = 4194304));
          e.isBackwards
            ? ((n.sibling = t.child), (t.child = n))
            : ((l = e.last),
              l !== null ? (l.sibling = n) : (t.child = n),
              (e.last = n));
        }
        return e.tail !== null
          ? ((l = e.tail),
            (e.rendering = l),
            (e.tail = l.sibling),
            (e.renderingStartTime = kl()),
            (l.sibling = null),
            (a = gl.current),
            ll(gl, u ? (a & 1) | 2 : a & 1),
            k && Ht(t, e.treeForkCount),
            l)
          : (rl(t), null);
      case 22:
      case 23:
        return (
          tt(t),
          lc(),
          (e = t.memoizedState !== null),
          l !== null
            ? (l.memoizedState !== null) !== e && (t.flags |= 8192)
            : e && (t.flags |= 8192),
          e
            ? (a & 536870912) !== 0 &&
              (t.flags & 128) === 0 &&
              (rl(t), t.subtreeFlags & 6 && (t.flags |= 8192))
            : rl(t),
          (a = t.updateQueue),
          a !== null && xn(t, a.retryQueue),
          (a = null),
          l !== null &&
            l.memoizedState !== null &&
            l.memoizedState.cachePool !== null &&
            (a = l.memoizedState.cachePool.pool),
          (e = null),
          t.memoizedState !== null &&
            t.memoizedState.cachePool !== null &&
            (e = t.memoizedState.cachePool.pool),
          e !== a && (t.flags |= 2048),
          l !== null && hl(_a),
          null
        );
      case 24:
        return (
          (a = null),
          l !== null && (a = l.memoizedState.cache),
          t.memoizedState.cache !== a && (t.flags |= 2048),
          Rt(pl),
          rl(t),
          null
        );
      case 25:
        return null;
      case 30:
        return null;
    }
    throw Error(f(156, t.tag));
  }
  function Em(l, t) {
    switch ((Yi(t), t.tag)) {
      case 1:
        return (
          (l = t.flags),
          l & 65536 ? ((t.flags = (l & -65537) | 128), t) : null
        );
      case 3:
        return (
          Rt(pl),
          Ja(),
          (l = t.flags),
          (l & 65536) !== 0 && (l & 128) === 0
            ? ((t.flags = (l & -65537) | 128), t)
            : null
        );
      case 26:
      case 27:
      case 5:
        return (Nu(t), null);
      case 31:
        if (t.memoizedState !== null) {
          if ((tt(t), t.alternate === null)) throw Error(f(340));
          Na();
        }
        return (
          (l = t.flags),
          l & 65536 ? ((t.flags = (l & -65537) | 128), t) : null
        );
      case 13:
        if (
          (tt(t), (l = t.memoizedState), l !== null && l.dehydrated !== null)
        ) {
          if (t.alternate === null) throw Error(f(340));
          Na();
        }
        return (
          (l = t.flags),
          l & 65536 ? ((t.flags = (l & -65537) | 128), t) : null
        );
      case 19:
        return (hl(gl), null);
      case 4:
        return (Ja(), null);
      case 10:
        return (Rt(t.type), null);
      case 22:
      case 23:
        return (
          tt(t),
          lc(),
          l !== null && hl(_a),
          (l = t.flags),
          l & 65536 ? ((t.flags = (l & -65537) | 128), t) : null
        );
      case 24:
        return (Rt(pl), null);
      case 25:
        return null;
      default:
        return null;
    }
  }
  function er(l, t) {
    switch ((Yi(t), t.tag)) {
      case 3:
        (Rt(pl), Ja());
        break;
      case 26:
      case 27:
      case 5:
        Nu(t);
        break;
      case 4:
        Ja();
        break;
      case 31:
        t.memoizedState !== null && tt(t);
        break;
      case 13:
        tt(t);
        break;
      case 19:
        hl(gl);
        break;
      case 10:
        Rt(t.type);
        break;
      case 22:
      case 23:
        (tt(t), lc(), l !== null && hl(_a));
        break;
      case 24:
        Rt(pl);
    }
  }
  function su(l, t) {
    try {
      var a = t.updateQueue,
        e = a !== null ? a.lastEffect : null;
      if (e !== null) {
        var u = e.next;
        a = u;
        do {
          if ((a.tag & l) === l) {
            e = void 0;
            var n = a.create,
              i = a.inst;
            ((e = n()), (i.destroy = e));
          }
          a = a.next;
        } while (a !== u);
      }
    } catch (c) {
      al(t, t.return, c);
    }
  }
  function sa(l, t, a) {
    try {
      var e = t.updateQueue,
        u = e !== null ? e.lastEffect : null;
      if (u !== null) {
        var n = u.next;
        e = n;
        do {
          if ((e.tag & l) === l) {
            var i = e.inst,
              c = i.destroy;
            if (c !== void 0) {
              ((i.destroy = void 0), (u = t));
              var o = a,
                g = c;
              try {
                g();
              } catch (x) {
                al(u, o, x);
              }
            }
          }
          e = e.next;
        } while (e !== n);
      }
    } catch (x) {
      al(t, t.return, x);
    }
  }
  function ur(l) {
    var t = l.updateQueue;
    if (t !== null) {
      var a = l.stateNode;
      try {
        ws(t, a);
      } catch (e) {
        al(l, l.return, e);
      }
    }
  }
  function nr(l, t, a) {
    ((a.props = Ya(l.type, l.memoizedProps)), (a.state = l.memoizedState));
    try {
      a.componentWillUnmount();
    } catch (e) {
      al(l, t, e);
    }
  }
  function ou(l, t) {
    try {
      var a = l.ref;
      if (a !== null) {
        switch (l.tag) {
          case 26:
          case 27:
          case 5:
            var e = l.stateNode;
            break;
          case 30:
            e = l.stateNode;
            break;
          default:
            e = l.stateNode;
        }
        typeof a == "function" ? (l.refCleanup = a(e)) : (a.current = e);
      }
    } catch (u) {
      al(l, t, u);
    }
  }
  function Mt(l, t) {
    var a = l.ref,
      e = l.refCleanup;
    if (a !== null)
      if (typeof e == "function")
        try {
          e();
        } catch (u) {
          al(l, t, u);
        } finally {
          ((l.refCleanup = null),
            (l = l.alternate),
            l != null && (l.refCleanup = null));
        }
      else if (typeof a == "function")
        try {
          a(null);
        } catch (u) {
          al(l, t, u);
        }
      else a.current = null;
  }
  function ir(l) {
    var t = l.type,
      a = l.memoizedProps,
      e = l.stateNode;
    try {
      l: switch (t) {
        case "button":
        case "input":
        case "select":
        case "textarea":
          a.autoFocus && e.focus();
          break l;
        case "img":
          a.src ? (e.src = a.src) : a.srcSet && (e.srcset = a.srcSet);
      }
    } catch (u) {
      al(l, l.return, u);
    }
  }
  function Uc(l, t, a) {
    try {
      var e = l.stateNode;
      (wm(e, l.type, a, t), (e[Xl] = t));
    } catch (u) {
      al(l, l.return, u);
    }
  }
  function cr(l) {
    return (
      l.tag === 5 ||
      l.tag === 3 ||
      l.tag === 26 ||
      (l.tag === 27 && ya(l.type)) ||
      l.tag === 4
    );
  }
  function Bc(l) {
    l: for (;;) {
      for (; l.sibling === null; ) {
        if (l.return === null || cr(l.return)) return null;
        l = l.return;
      }
      for (
        l.sibling.return = l.return, l = l.sibling;
        l.tag !== 5 && l.tag !== 6 && l.tag !== 18;
      ) {
        if (
          (l.tag === 27 && ya(l.type)) ||
          l.flags & 2 ||
          l.child === null ||
          l.tag === 4
        )
          continue l;
        ((l.child.return = l), (l = l.child));
      }
      if (!(l.flags & 2)) return l.stateNode;
    }
  }
  function _c(l, t, a) {
    var e = l.tag;
    if (e === 5 || e === 6)
      ((l = l.stateNode),
        t
          ? (a.nodeType === 9
              ? a.body
              : a.nodeName === "HTML"
                ? a.ownerDocument.body
                : a
            ).insertBefore(l, t)
          : ((t =
              a.nodeType === 9
                ? a.body
                : a.nodeName === "HTML"
                  ? a.ownerDocument.body
                  : a),
            t.appendChild(l),
            (a = a._reactRootContainer),
            a != null || t.onclick !== null || (t.onclick = Ut)));
    else if (
      e !== 4 &&
      (e === 27 && ya(l.type) && ((a = l.stateNode), (t = null)),
      (l = l.child),
      l !== null)
    )
      for (_c(l, t, a), l = l.sibling; l !== null; )
        (_c(l, t, a), (l = l.sibling));
  }
  function zn(l, t, a) {
    var e = l.tag;
    if (e === 5 || e === 6)
      ((l = l.stateNode), t ? a.insertBefore(l, t) : a.appendChild(l));
    else if (
      e !== 4 &&
      (e === 27 && ya(l.type) && (a = l.stateNode), (l = l.child), l !== null)
    )
      for (zn(l, t, a), l = l.sibling; l !== null; )
        (zn(l, t, a), (l = l.sibling));
  }
  function fr(l) {
    var t = l.stateNode,
      a = l.memoizedProps;
    try {
      for (var e = l.type, u = t.attributes; u.length; )
        t.removeAttributeNode(u[0]);
      (Hl(t, e, a), (t[Nl] = l), (t[Xl] = a));
    } catch (n) {
      al(l, l.return, n);
    }
  }
  var Gt = !1,
    zl = !1,
    Hc = !1,
    sr = typeof WeakSet == "function" ? WeakSet : Set,
    Ol = null;
  function Cm(l, t) {
    if (((l = l.containerInfo), (af = Qn), (l = Ss(l)), Oi(l))) {
      if ("selectionStart" in l)
        var a = { start: l.selectionStart, end: l.selectionEnd };
      else
        l: {
          a = ((a = l.ownerDocument) && a.defaultView) || window;
          var e = a.getSelection && a.getSelection();
          if (e && e.rangeCount !== 0) {
            a = e.anchorNode;
            var u = e.anchorOffset,
              n = e.focusNode;
            e = e.focusOffset;
            try {
              (a.nodeType, n.nodeType);
            } catch {
              a = null;
              break l;
            }
            var i = 0,
              c = -1,
              o = -1,
              g = 0,
              x = 0,
              A = l,
              b = null;
            t: for (;;) {
              for (
                var p;
                A !== a || (u !== 0 && A.nodeType !== 3) || (c = i + u),
                  A !== n || (e !== 0 && A.nodeType !== 3) || (o = i + e),
                  A.nodeType === 3 && (i += A.nodeValue.length),
                  (p = A.firstChild) !== null;
              )
                ((b = A), (A = p));
              for (;;) {
                if (A === l) break t;
                if (
                  (b === a && ++g === u && (c = i),
                  b === n && ++x === e && (o = i),
                  (p = A.nextSibling) !== null)
                )
                  break;
                ((A = b), (b = A.parentNode));
              }
              A = p;
            }
            a = c === -1 || o === -1 ? null : { start: c, end: o };
          } else a = null;
        }
      a = a || { start: 0, end: 0 };
    } else a = null;
    for (
      ef = { focusedElem: l, selectionRange: a }, Qn = !1, Ol = t;
      Ol !== null;
    )
      if (
        ((t = Ol), (l = t.child), (t.subtreeFlags & 1028) !== 0 && l !== null)
      )
        ((l.return = t), (Ol = l));
      else
        for (; Ol !== null; ) {
          switch (((t = Ol), (n = t.alternate), (l = t.flags), t.tag)) {
            case 0:
              if (
                (l & 4) !== 0 &&
                ((l = t.updateQueue),
                (l = l !== null ? l.events : null),
                l !== null)
              )
                for (a = 0; a < l.length; a++)
                  ((u = l[a]), (u.ref.impl = u.nextImpl));
              break;
            case 11:
            case 15:
              break;
            case 1:
              if ((l & 1024) !== 0 && n !== null) {
                ((l = void 0),
                  (a = t),
                  (u = n.memoizedProps),
                  (n = n.memoizedState),
                  (e = a.stateNode));
                try {
                  var _ = Ya(a.type, u);
                  ((l = e.getSnapshotBeforeUpdate(_, n)),
                    (e.__reactInternalSnapshotBeforeUpdate = l));
                } catch (Y) {
                  al(a, a.return, Y);
                }
              }
              break;
            case 3:
              if ((l & 1024) !== 0) {
                if (
                  ((l = t.stateNode.containerInfo), (a = l.nodeType), a === 9)
                )
                  cf(l);
                else if (a === 1)
                  switch (l.nodeName) {
                    case "HEAD":
                    case "HTML":
                    case "BODY":
                      cf(l);
                      break;
                    default:
                      l.textContent = "";
                  }
              }
              break;
            case 5:
            case 26:
            case 27:
            case 6:
            case 4:
            case 17:
              break;
            default:
              if ((l & 1024) !== 0) throw Error(f(163));
          }
          if (((l = t.sibling), l !== null)) {
            ((l.return = t.return), (Ol = l));
            break;
          }
          Ol = t.return;
        }
  }
  function or(l, t, a) {
    var e = a.flags;
    switch (a.tag) {
      case 0:
      case 11:
      case 15:
        (Zt(l, a), e & 4 && su(5, a));
        break;
      case 1:
        if ((Zt(l, a), e & 4))
          if (((l = a.stateNode), t === null))
            try {
              l.componentDidMount();
            } catch (i) {
              al(a, a.return, i);
            }
          else {
            var u = Ya(a.type, t.memoizedProps);
            t = t.memoizedState;
            try {
              l.componentDidUpdate(u, t, l.__reactInternalSnapshotBeforeUpdate);
            } catch (i) {
              al(a, a.return, i);
            }
          }
        (e & 64 && ur(a), e & 512 && ou(a, a.return));
        break;
      case 3:
        if ((Zt(l, a), e & 64 && ((l = a.updateQueue), l !== null))) {
          if (((t = null), a.child !== null))
            switch (a.child.tag) {
              case 27:
              case 5:
                t = a.child.stateNode;
                break;
              case 1:
                t = a.child.stateNode;
            }
          try {
            ws(l, t);
          } catch (i) {
            al(a, a.return, i);
          }
        }
        break;
      case 27:
        t === null && e & 4 && fr(a);
      case 26:
      case 5:
        (Zt(l, a), t === null && e & 4 && ir(a), e & 512 && ou(a, a.return));
        break;
      case 12:
        Zt(l, a);
        break;
      case 31:
        (Zt(l, a), e & 4 && mr(l, a));
        break;
      case 13:
        (Zt(l, a),
          e & 4 && hr(l, a),
          e & 64 &&
            ((l = a.memoizedState),
            l !== null &&
              ((l = l.dehydrated),
              l !== null && ((a = Hm.bind(null, a)), th(l, a)))));
        break;
      case 22:
        if (((e = a.memoizedState !== null || Gt), !e)) {
          ((t = (t !== null && t.memoizedState !== null) || zl), (u = Gt));
          var n = zl;
          ((Gt = e),
            (zl = t) && !n ? Kt(l, a, (a.subtreeFlags & 8772) !== 0) : Zt(l, a),
            (Gt = u),
            (zl = n));
        }
        break;
      case 30:
        break;
      default:
        Zt(l, a);
    }
  }
  function rr(l) {
    var t = l.alternate;
    (t !== null && ((l.alternate = null), rr(t)),
      (l.child = null),
      (l.deletions = null),
      (l.sibling = null),
      l.tag === 5 && ((t = l.stateNode), t !== null && ri(t)),
      (l.stateNode = null),
      (l.return = null),
      (l.dependencies = null),
      (l.memoizedProps = null),
      (l.memoizedState = null),
      (l.pendingProps = null),
      (l.stateNode = null),
      (l.updateQueue = null));
  }
  var ml = null,
    Ql = !1;
  function Qt(l, t, a) {
    for (a = a.child; a !== null; ) (dr(l, t, a), (a = a.sibling));
  }
  function dr(l, t, a) {
    if (Fl && typeof Fl.onCommitFiberUnmount == "function")
      try {
        Fl.onCommitFiberUnmount(_e, a);
      } catch {}
    switch (a.tag) {
      case 26:
        (zl || Mt(a, t),
          Qt(l, t, a),
          a.memoizedState
            ? a.memoizedState.count--
            : a.stateNode && ((a = a.stateNode), a.parentNode.removeChild(a)));
        break;
      case 27:
        zl || Mt(a, t);
        var e = ml,
          u = Ql;
        (ya(a.type) && ((ml = a.stateNode), (Ql = !1)),
          Qt(l, t, a),
          pu(a.stateNode),
          (ml = e),
          (Ql = u));
        break;
      case 5:
        zl || Mt(a, t);
      case 6:
        if (
          ((e = ml),
          (u = Ql),
          (ml = null),
          Qt(l, t, a),
          (ml = e),
          (Ql = u),
          ml !== null)
        )
          if (Ql)
            try {
              (ml.nodeType === 9
                ? ml.body
                : ml.nodeName === "HTML"
                  ? ml.ownerDocument.body
                  : ml
              ).removeChild(a.stateNode);
            } catch (n) {
              al(a, t, n);
            }
          else
            try {
              ml.removeChild(a.stateNode);
            } catch (n) {
              al(a, t, n);
            }
        break;
      case 18:
        ml !== null &&
          (Ql
            ? ((l = ml),
              ud(
                l.nodeType === 9
                  ? l.body
                  : l.nodeName === "HTML"
                    ? l.ownerDocument.body
                    : l,
                a.stateNode,
              ),
              je(l))
            : ud(ml, a.stateNode));
        break;
      case 4:
        ((e = ml),
          (u = Ql),
          (ml = a.stateNode.containerInfo),
          (Ql = !0),
          Qt(l, t, a),
          (ml = e),
          (Ql = u));
        break;
      case 0:
      case 11:
      case 14:
      case 15:
        (sa(2, a, t), zl || sa(4, a, t), Qt(l, t, a));
        break;
      case 1:
        (zl ||
          (Mt(a, t),
          (e = a.stateNode),
          typeof e.componentWillUnmount == "function" && nr(a, t, e)),
          Qt(l, t, a));
        break;
      case 21:
        Qt(l, t, a);
        break;
      case 22:
        ((zl = (e = zl) || a.memoizedState !== null), Qt(l, t, a), (zl = e));
        break;
      default:
        Qt(l, t, a);
    }
  }
  function mr(l, t) {
    if (
      t.memoizedState === null &&
      ((l = t.alternate), l !== null && ((l = l.memoizedState), l !== null))
    ) {
      l = l.dehydrated;
      try {
        je(l);
      } catch (a) {
        al(t, t.return, a);
      }
    }
  }
  function hr(l, t) {
    if (
      t.memoizedState === null &&
      ((l = t.alternate),
      l !== null &&
        ((l = l.memoizedState), l !== null && ((l = l.dehydrated), l !== null)))
    )
      try {
        je(l);
      } catch (a) {
        al(t, t.return, a);
      }
  }
  function Mm(l) {
    switch (l.tag) {
      case 31:
      case 13:
      case 19:
        var t = l.stateNode;
        return (t === null && (t = l.stateNode = new sr()), t);
      case 22:
        return (
          (l = l.stateNode),
          (t = l._retryCache),
          t === null && (t = l._retryCache = new sr()),
          t
        );
      default:
        throw Error(f(435, l.tag));
    }
  }
  function Tn(l, t) {
    var a = Mm(l);
    t.forEach(function (e) {
      if (!a.has(e)) {
        a.add(e);
        var u = qm.bind(null, l, e);
        e.then(u, u);
      }
    });
  }
  function Zl(l, t) {
    var a = t.deletions;
    if (a !== null)
      for (var e = 0; e < a.length; e++) {
        var u = a[e],
          n = l,
          i = t,
          c = i;
        l: for (; c !== null; ) {
          switch (c.tag) {
            case 27:
              if (ya(c.type)) {
                ((ml = c.stateNode), (Ql = !1));
                break l;
              }
              break;
            case 5:
              ((ml = c.stateNode), (Ql = !1));
              break l;
            case 3:
            case 4:
              ((ml = c.stateNode.containerInfo), (Ql = !0));
              break l;
          }
          c = c.return;
        }
        if (ml === null) throw Error(f(160));
        (dr(n, i, u),
          (ml = null),
          (Ql = !1),
          (n = u.alternate),
          n !== null && (n.return = null),
          (u.return = null));
      }
    if (t.subtreeFlags & 13886)
      for (t = t.child; t !== null; ) (vr(t, l), (t = t.sibling));
  }
  var pt = null;
  function vr(l, t) {
    var a = l.alternate,
      e = l.flags;
    switch (l.tag) {
      case 0:
      case 11:
      case 14:
      case 15:
        (Zl(t, l),
          Kl(l),
          e & 4 && (sa(3, l, l.return), su(3, l), sa(5, l, l.return)));
        break;
      case 1:
        (Zl(t, l),
          Kl(l),
          e & 512 && (zl || a === null || Mt(a, a.return)),
          e & 64 &&
            Gt &&
            ((l = l.updateQueue),
            l !== null &&
              ((e = l.callbacks),
              e !== null &&
                ((a = l.shared.hiddenCallbacks),
                (l.shared.hiddenCallbacks = a === null ? e : a.concat(e))))));
        break;
      case 26:
        var u = pt;
        if (
          (Zl(t, l),
          Kl(l),
          e & 512 && (zl || a === null || Mt(a, a.return)),
          e & 4)
        ) {
          var n = a !== null ? a.memoizedState : null;
          if (((e = l.memoizedState), a === null))
            if (e === null)
              if (l.stateNode === null) {
                l: {
                  ((e = l.type),
                    (a = l.memoizedProps),
                    (u = u.ownerDocument || u));
                  t: switch (e) {
                    case "title":
                      ((n = u.getElementsByTagName("title")[0]),
                        (!n ||
                          n[Re] ||
                          n[Nl] ||
                          n.namespaceURI === "http://www.w3.org/2000/svg" ||
                          n.hasAttribute("itemprop")) &&
                          ((n = u.createElement(e)),
                          u.head.insertBefore(
                            n,
                            u.querySelector("head > title"),
                          )),
                        Hl(n, e, a),
                        (n[Nl] = l),
                        Ml(n),
                        (e = n));
                      break l;
                    case "link":
                      var i = vd("link", "href", u).get(e + (a.href || ""));
                      if (i) {
                        for (var c = 0; c < i.length; c++)
                          if (
                            ((n = i[c]),
                            n.getAttribute("href") ===
                              (a.href == null || a.href === ""
                                ? null
                                : a.href) &&
                              n.getAttribute("rel") ===
                                (a.rel == null ? null : a.rel) &&
                              n.getAttribute("title") ===
                                (a.title == null ? null : a.title) &&
                              n.getAttribute("crossorigin") ===
                                (a.crossOrigin == null ? null : a.crossOrigin))
                          ) {
                            i.splice(c, 1);
                            break t;
                          }
                      }
                      ((n = u.createElement(e)),
                        Hl(n, e, a),
                        u.head.appendChild(n));
                      break;
                    case "meta":
                      if (
                        (i = vd("meta", "content", u).get(
                          e + (a.content || ""),
                        ))
                      ) {
                        for (c = 0; c < i.length; c++)
                          if (
                            ((n = i[c]),
                            n.getAttribute("content") ===
                              (a.content == null ? null : "" + a.content) &&
                              n.getAttribute("name") ===
                                (a.name == null ? null : a.name) &&
                              n.getAttribute("property") ===
                                (a.property == null ? null : a.property) &&
                              n.getAttribute("http-equiv") ===
                                (a.httpEquiv == null ? null : a.httpEquiv) &&
                              n.getAttribute("charset") ===
                                (a.charSet == null ? null : a.charSet))
                          ) {
                            i.splice(c, 1);
                            break t;
                          }
                      }
                      ((n = u.createElement(e)),
                        Hl(n, e, a),
                        u.head.appendChild(n));
                      break;
                    default:
                      throw Error(f(468, e));
                  }
                  ((n[Nl] = l), Ml(n), (e = n));
                }
                l.stateNode = e;
              } else yd(u, l.type, l.stateNode);
            else l.stateNode = hd(u, e, l.memoizedProps);
          else
            n !== e
              ? (n === null
                  ? a.stateNode !== null &&
                    ((a = a.stateNode), a.parentNode.removeChild(a))
                  : n.count--,
                e === null
                  ? yd(u, l.type, l.stateNode)
                  : hd(u, e, l.memoizedProps))
              : e === null &&
                l.stateNode !== null &&
                Uc(l, l.memoizedProps, a.memoizedProps);
        }
        break;
      case 27:
        (Zl(t, l),
          Kl(l),
          e & 512 && (zl || a === null || Mt(a, a.return)),
          a !== null && e & 4 && Uc(l, l.memoizedProps, a.memoizedProps));
        break;
      case 5:
        if (
          (Zl(t, l),
          Kl(l),
          e & 512 && (zl || a === null || Mt(a, a.return)),
          l.flags & 32)
        ) {
          u = l.stateNode;
          try {
            Pa(u, "");
          } catch (_) {
            al(l, l.return, _);
          }
        }
        (e & 4 &&
          l.stateNode != null &&
          ((u = l.memoizedProps), Uc(l, u, a !== null ? a.memoizedProps : u)),
          e & 1024 && (Hc = !0));
        break;
      case 6:
        if ((Zl(t, l), Kl(l), e & 4)) {
          if (l.stateNode === null) throw Error(f(162));
          ((e = l.memoizedProps), (a = l.stateNode));
          try {
            a.nodeValue = e;
          } catch (_) {
            al(l, l.return, _);
          }
        }
        break;
      case 3:
        if (
          ((Yn = null),
          (u = pt),
          (pt = Rn(t.containerInfo)),
          Zl(t, l),
          (pt = u),
          Kl(l),
          e & 4 && a !== null && a.memoizedState.isDehydrated)
        )
          try {
            je(t.containerInfo);
          } catch (_) {
            al(l, l.return, _);
          }
        Hc && ((Hc = !1), yr(l));
        break;
      case 4:
        ((e = pt),
          (pt = Rn(l.stateNode.containerInfo)),
          Zl(t, l),
          Kl(l),
          (pt = e));
        break;
      case 12:
        (Zl(t, l), Kl(l));
        break;
      case 31:
        (Zl(t, l),
          Kl(l),
          e & 4 &&
            ((e = l.updateQueue),
            e !== null && ((l.updateQueue = null), Tn(l, e))));
        break;
      case 13:
        (Zl(t, l),
          Kl(l),
          l.child.flags & 8192 &&
            (l.memoizedState !== null) !=
              (a !== null && a.memoizedState !== null) &&
            (En = kl()),
          e & 4 &&
            ((e = l.updateQueue),
            e !== null && ((l.updateQueue = null), Tn(l, e))));
        break;
      case 22:
        u = l.memoizedState !== null;
        var o = a !== null && a.memoizedState !== null,
          g = Gt,
          x = zl;
        if (
          ((Gt = g || u),
          (zl = x || o),
          Zl(t, l),
          (zl = x),
          (Gt = g),
          Kl(l),
          e & 8192)
        )
          l: for (
            t = l.stateNode,
              t._visibility = u ? t._visibility & -2 : t._visibility | 1,
              u && (a === null || o || Gt || zl || Va(l)),
              a = null,
              t = l;
            ;
          ) {
            if (t.tag === 5 || t.tag === 26) {
              if (a === null) {
                o = a = t;
                try {
                  if (((n = o.stateNode), u))
                    ((i = n.style),
                      typeof i.setProperty == "function"
                        ? i.setProperty("display", "none", "important")
                        : (i.display = "none"));
                  else {
                    c = o.stateNode;
                    var A = o.memoizedProps.style,
                      b =
                        A != null && A.hasOwnProperty("display")
                          ? A.display
                          : null;
                    c.style.display =
                      b == null || typeof b == "boolean" ? "" : ("" + b).trim();
                  }
                } catch (_) {
                  al(o, o.return, _);
                }
              }
            } else if (t.tag === 6) {
              if (a === null) {
                o = t;
                try {
                  o.stateNode.nodeValue = u ? "" : o.memoizedProps;
                } catch (_) {
                  al(o, o.return, _);
                }
              }
            } else if (t.tag === 18) {
              if (a === null) {
                o = t;
                try {
                  var p = o.stateNode;
                  u ? nd(p, !0) : nd(o.stateNode, !1);
                } catch (_) {
                  al(o, o.return, _);
                }
              }
            } else if (
              ((t.tag !== 22 && t.tag !== 23) ||
                t.memoizedState === null ||
                t === l) &&
              t.child !== null
            ) {
              ((t.child.return = t), (t = t.child));
              continue;
            }
            if (t === l) break l;
            for (; t.sibling === null; ) {
              if (t.return === null || t.return === l) break l;
              (a === t && (a = null), (t = t.return));
            }
            (a === t && (a = null),
              (t.sibling.return = t.return),
              (t = t.sibling));
          }
        e & 4 &&
          ((e = l.updateQueue),
          e !== null &&
            ((a = e.retryQueue),
            a !== null && ((e.retryQueue = null), Tn(l, a))));
        break;
      case 19:
        (Zl(t, l),
          Kl(l),
          e & 4 &&
            ((e = l.updateQueue),
            e !== null && ((l.updateQueue = null), Tn(l, e))));
        break;
      case 30:
        break;
      case 21:
        break;
      default:
        (Zl(t, l), Kl(l));
    }
  }
  function Kl(l) {
    var t = l.flags;
    if (t & 2) {
      try {
        for (var a, e = l.return; e !== null; ) {
          if (cr(e)) {
            a = e;
            break;
          }
          e = e.return;
        }
        if (a == null) throw Error(f(160));
        switch (a.tag) {
          case 27:
            var u = a.stateNode,
              n = Bc(l);
            zn(l, n, u);
            break;
          case 5:
            var i = a.stateNode;
            a.flags & 32 && (Pa(i, ""), (a.flags &= -33));
            var c = Bc(l);
            zn(l, c, i);
            break;
          case 3:
          case 4:
            var o = a.stateNode.containerInfo,
              g = Bc(l);
            _c(l, g, o);
            break;
          default:
            throw Error(f(161));
        }
      } catch (x) {
        al(l, l.return, x);
      }
      l.flags &= -3;
    }
    t & 4096 && (l.flags &= -4097);
  }
  function yr(l) {
    if (l.subtreeFlags & 1024)
      for (l = l.child; l !== null; ) {
        var t = l;
        (yr(t),
          t.tag === 5 && t.flags & 1024 && t.stateNode.reset(),
          (l = l.sibling));
      }
  }
  function Zt(l, t) {
    if (t.subtreeFlags & 8772)
      for (t = t.child; t !== null; ) (or(l, t.alternate, t), (t = t.sibling));
  }
  function Va(l) {
    for (l = l.child; l !== null; ) {
      var t = l;
      switch (t.tag) {
        case 0:
        case 11:
        case 14:
        case 15:
          (sa(4, t, t.return), Va(t));
          break;
        case 1:
          Mt(t, t.return);
          var a = t.stateNode;
          (typeof a.componentWillUnmount == "function" && nr(t, t.return, a),
            Va(t));
          break;
        case 27:
          pu(t.stateNode);
        case 26:
        case 5:
          (Mt(t, t.return), Va(t));
          break;
        case 22:
          t.memoizedState === null && Va(t);
          break;
        case 30:
          Va(t);
          break;
        default:
          Va(t);
      }
      l = l.sibling;
    }
  }
  function Kt(l, t, a) {
    for (a = a && (t.subtreeFlags & 8772) !== 0, t = t.child; t !== null; ) {
      var e = t.alternate,
        u = l,
        n = t,
        i = n.flags;
      switch (n.tag) {
        case 0:
        case 11:
        case 15:
          (Kt(u, n, a), su(4, n));
          break;
        case 1:
          if (
            (Kt(u, n, a),
            (e = n),
            (u = e.stateNode),
            typeof u.componentDidMount == "function")
          )
            try {
              u.componentDidMount();
            } catch (g) {
              al(e, e.return, g);
            }
          if (((e = n), (u = e.updateQueue), u !== null)) {
            var c = e.stateNode;
            try {
              var o = u.shared.hiddenCallbacks;
              if (o !== null)
                for (u.shared.hiddenCallbacks = null, u = 0; u < o.length; u++)
                  Js(o[u], c);
            } catch (g) {
              al(e, e.return, g);
            }
          }
          (a && i & 64 && ur(n), ou(n, n.return));
          break;
        case 27:
          fr(n);
        case 26:
        case 5:
          (Kt(u, n, a), a && e === null && i & 4 && ir(n), ou(n, n.return));
          break;
        case 12:
          Kt(u, n, a);
          break;
        case 31:
          (Kt(u, n, a), a && i & 4 && mr(u, n));
          break;
        case 13:
          (Kt(u, n, a), a && i & 4 && hr(u, n));
          break;
        case 22:
          (n.memoizedState === null && Kt(u, n, a), ou(n, n.return));
          break;
        case 30:
          break;
        default:
          Kt(u, n, a);
      }
      t = t.sibling;
    }
  }
  function qc(l, t) {
    var a = null;
    (l !== null &&
      l.memoizedState !== null &&
      l.memoizedState.cachePool !== null &&
      (a = l.memoizedState.cachePool.pool),
      (l = null),
      t.memoizedState !== null &&
        t.memoizedState.cachePool !== null &&
        (l = t.memoizedState.cachePool.pool),
      l !== a && (l != null && l.refCount++, a != null && Fe(a)));
  }
  function Rc(l, t) {
    ((l = null),
      t.alternate !== null && (l = t.alternate.memoizedState.cache),
      (t = t.memoizedState.cache),
      t !== l && (t.refCount++, l != null && Fe(l)));
  }
  function St(l, t, a, e) {
    if (t.subtreeFlags & 10256)
      for (t = t.child; t !== null; ) (gr(l, t, a, e), (t = t.sibling));
  }
  function gr(l, t, a, e) {
    var u = t.flags;
    switch (t.tag) {
      case 0:
      case 11:
      case 15:
        (St(l, t, a, e), u & 2048 && su(9, t));
        break;
      case 1:
        St(l, t, a, e);
        break;
      case 3:
        (St(l, t, a, e),
          u & 2048 &&
            ((l = null),
            t.alternate !== null && (l = t.alternate.memoizedState.cache),
            (t = t.memoizedState.cache),
            t !== l && (t.refCount++, l != null && Fe(l))));
        break;
      case 12:
        if (u & 2048) {
          (St(l, t, a, e), (l = t.stateNode));
          try {
            var n = t.memoizedProps,
              i = n.id,
              c = n.onPostCommit;
            typeof c == "function" &&
              c(
                i,
                t.alternate === null ? "mount" : "update",
                l.passiveEffectDuration,
                -0,
              );
          } catch (o) {
            al(t, t.return, o);
          }
        } else St(l, t, a, e);
        break;
      case 31:
        St(l, t, a, e);
        break;
      case 13:
        St(l, t, a, e);
        break;
      case 23:
        break;
      case 22:
        ((n = t.stateNode),
          (i = t.alternate),
          t.memoizedState !== null
            ? n._visibility & 2
              ? St(l, t, a, e)
              : ru(l, t)
            : n._visibility & 2
              ? St(l, t, a, e)
              : ((n._visibility |= 2),
                pe(l, t, a, e, (t.subtreeFlags & 10256) !== 0 || !1)),
          u & 2048 && qc(i, t));
        break;
      case 24:
        (St(l, t, a, e), u & 2048 && Rc(t.alternate, t));
        break;
      default:
        St(l, t, a, e);
    }
  }
  function pe(l, t, a, e, u) {
    for (
      u = u && ((t.subtreeFlags & 10256) !== 0 || !1), t = t.child;
      t !== null;
    ) {
      var n = l,
        i = t,
        c = a,
        o = e,
        g = i.flags;
      switch (i.tag) {
        case 0:
        case 11:
        case 15:
          (pe(n, i, c, o, u), su(8, i));
          break;
        case 23:
          break;
        case 22:
          var x = i.stateNode;
          (i.memoizedState !== null
            ? x._visibility & 2
              ? pe(n, i, c, o, u)
              : ru(n, i)
            : ((x._visibility |= 2), pe(n, i, c, o, u)),
            u && g & 2048 && qc(i.alternate, i));
          break;
        case 24:
          (pe(n, i, c, o, u), u && g & 2048 && Rc(i.alternate, i));
          break;
        default:
          pe(n, i, c, o, u);
      }
      t = t.sibling;
    }
  }
  function ru(l, t) {
    if (t.subtreeFlags & 10256)
      for (t = t.child; t !== null; ) {
        var a = l,
          e = t,
          u = e.flags;
        switch (e.tag) {
          case 22:
            (ru(a, e), u & 2048 && qc(e.alternate, e));
            break;
          case 24:
            (ru(a, e), u & 2048 && Rc(e.alternate, e));
            break;
          default:
            ru(a, e);
        }
        t = t.sibling;
      }
  }
  var du = 8192;
  function Se(l, t, a) {
    if (l.subtreeFlags & du)
      for (l = l.child; l !== null; ) (br(l, t, a), (l = l.sibling));
  }
  function br(l, t, a) {
    switch (l.tag) {
      case 26:
        (Se(l, t, a),
          l.flags & du &&
            l.memoizedState !== null &&
            mh(a, pt, l.memoizedState, l.memoizedProps));
        break;
      case 5:
        Se(l, t, a);
        break;
      case 3:
      case 4:
        var e = pt;
        ((pt = Rn(l.stateNode.containerInfo)), Se(l, t, a), (pt = e));
        break;
      case 22:
        l.memoizedState === null &&
          ((e = l.alternate),
          e !== null && e.memoizedState !== null
            ? ((e = du), (du = 16777216), Se(l, t, a), (du = e))
            : Se(l, t, a));
        break;
      default:
        Se(l, t, a);
    }
  }
  function pr(l) {
    var t = l.alternate;
    if (t !== null && ((l = t.child), l !== null)) {
      t.child = null;
      do ((t = l.sibling), (l.sibling = null), (l = t));
      while (l !== null);
    }
  }
  function mu(l) {
    var t = l.deletions;
    if ((l.flags & 16) !== 0) {
      if (t !== null)
        for (var a = 0; a < t.length; a++) {
          var e = t[a];
          ((Ol = e), xr(e, l));
        }
      pr(l);
    }
    if (l.subtreeFlags & 10256)
      for (l = l.child; l !== null; ) (Sr(l), (l = l.sibling));
  }
  function Sr(l) {
    switch (l.tag) {
      case 0:
      case 11:
      case 15:
        (mu(l), l.flags & 2048 && sa(9, l, l.return));
        break;
      case 3:
        mu(l);
        break;
      case 12:
        mu(l);
        break;
      case 22:
        var t = l.stateNode;
        l.memoizedState !== null &&
        t._visibility & 2 &&
        (l.return === null || l.return.tag !== 13)
          ? ((t._visibility &= -3), An(l))
          : mu(l);
        break;
      default:
        mu(l);
    }
  }
  function An(l) {
    var t = l.deletions;
    if ((l.flags & 16) !== 0) {
      if (t !== null)
        for (var a = 0; a < t.length; a++) {
          var e = t[a];
          ((Ol = e), xr(e, l));
        }
      pr(l);
    }
    for (l = l.child; l !== null; ) {
      switch (((t = l), t.tag)) {
        case 0:
        case 11:
        case 15:
          (sa(8, t, t.return), An(t));
          break;
        case 22:
          ((a = t.stateNode),
            a._visibility & 2 && ((a._visibility &= -3), An(t)));
          break;
        default:
          An(t);
      }
      l = l.sibling;
    }
  }
  function xr(l, t) {
    for (; Ol !== null; ) {
      var a = Ol;
      switch (a.tag) {
        case 0:
        case 11:
        case 15:
          sa(8, a, t);
          break;
        case 23:
        case 22:
          if (a.memoizedState !== null && a.memoizedState.cachePool !== null) {
            var e = a.memoizedState.cachePool.pool;
            e != null && e.refCount++;
          }
          break;
        case 24:
          Fe(a.memoizedState.cache);
      }
      if (((e = a.child), e !== null)) ((e.return = a), (Ol = e));
      else
        l: for (a = l; Ol !== null; ) {
          e = Ol;
          var u = e.sibling,
            n = e.return;
          if ((rr(e), e === a)) {
            Ol = null;
            break l;
          }
          if (u !== null) {
            ((u.return = n), (Ol = u));
            break l;
          }
          Ol = n;
        }
    }
  }
  var Om = {
      getCacheForType: function (l) {
        var t = Bl(pl),
          a = t.data.get(l);
        return (a === void 0 && ((a = l()), t.data.set(l, a)), a);
      },
      cacheSignal: function () {
        return Bl(pl).controller.signal;
      },
    },
    Dm = typeof WeakMap == "function" ? WeakMap : Map,
    P = 0,
    il = null,
    K = null,
    w = 0,
    tl = 0,
    at = null,
    oa = !1,
    xe = !1,
    Lc = !1,
    Jt = 0,
    yl = 0,
    ra = 0,
    Xa = 0,
    Yc = 0,
    et = 0,
    ze = 0,
    hu = null,
    Jl = null,
    Vc = !1,
    En = 0,
    zr = 0,
    Cn = 1 / 0,
    Mn = null,
    da = null,
    Al = 0,
    ma = null,
    Te = null,
    wt = 0,
    Xc = 0,
    Gc = null,
    Tr = null,
    vu = 0,
    Qc = null;
  function ut() {
    return (P & 2) !== 0 && w !== 0 ? w & -w : T.T !== null ? kc() : Lf();
  }
  function Ar() {
    if (et === 0)
      if ((w & 536870912) === 0 || k) {
        var l = _u;
        ((_u <<= 1), (_u & 3932160) === 0 && (_u = 262144), (et = l));
      } else et = 536870912;
    return ((l = lt.current), l !== null && (l.flags |= 32), et);
  }
  function wl(l, t, a) {
    (((l === il && (tl === 2 || tl === 9)) || l.cancelPendingCommit !== null) &&
      (Ae(l, 0), ha(l, w, et, !1)),
      qe(l, a),
      ((P & 2) === 0 || l !== il) &&
        (l === il && ((P & 2) === 0 && (Xa |= a), yl === 4 && ha(l, w, et, !1)),
        Ot(l)));
  }
  function Er(l, t, a) {
    if ((P & 6) !== 0) throw Error(f(327));
    var e = (!a && (t & 127) === 0 && (t & l.expiredLanes) === 0) || He(l, t),
      u = e ? Um(l, t) : Kc(l, t, !0),
      n = e;
    do {
      if (u === 0) {
        xe && !e && ha(l, t, 0, !1);
        break;
      } else {
        if (((a = l.current.alternate), n && !jm(a))) {
          ((u = Kc(l, t, !1)), (n = !1));
          continue;
        }
        if (u === 2) {
          if (((n = t), l.errorRecoveryDisabledLanes & n)) var i = 0;
          else
            ((i = l.pendingLanes & -536870913),
              (i = i !== 0 ? i : i & 536870912 ? 536870912 : 0));
          if (i !== 0) {
            t = i;
            l: {
              var c = l;
              u = hu;
              var o = c.current.memoizedState.isDehydrated;
              if ((o && (Ae(c, i).flags |= 256), (i = Kc(c, i, !1)), i !== 2)) {
                if (Lc && !o) {
                  ((c.errorRecoveryDisabledLanes |= n), (Xa |= n), (u = 4));
                  break l;
                }
                ((n = Jl),
                  (Jl = u),
                  n !== null &&
                    (Jl === null ? (Jl = n) : Jl.push.apply(Jl, n)));
              }
              u = i;
            }
            if (((n = !1), u !== 2)) continue;
          }
        }
        if (u === 1) {
          (Ae(l, 0), ha(l, t, 0, !0));
          break;
        }
        l: {
          switch (((e = l), (n = u), n)) {
            case 0:
            case 1:
              throw Error(f(345));
            case 4:
              if ((t & 4194048) !== t) break;
            case 6:
              ha(e, t, et, !oa);
              break l;
            case 2:
              Jl = null;
              break;
            case 3:
            case 5:
              break;
            default:
              throw Error(f(329));
          }
          if ((t & 62914560) === t && ((u = En + 300 - kl()), 10 < u)) {
            if ((ha(e, t, et, !oa), qu(e, 0, !0) !== 0)) break l;
            ((wt = t),
              (e.timeoutHandle = ad(
                Cr.bind(
                  null,
                  e,
                  a,
                  Jl,
                  Mn,
                  Vc,
                  t,
                  et,
                  Xa,
                  ze,
                  oa,
                  n,
                  "Throttled",
                  -0,
                  0,
                ),
                u,
              )));
            break l;
          }
          Cr(e, a, Jl, Mn, Vc, t, et, Xa, ze, oa, n, null, -0, 0);
        }
      }
      break;
    } while (!0);
    Ot(l);
  }
  function Cr(l, t, a, e, u, n, i, c, o, g, x, A, b, p) {
    if (
      ((l.timeoutHandle = -1),
      (A = t.subtreeFlags),
      A & 8192 || (A & 16785408) === 16785408)
    ) {
      ((A = {
        stylesheets: null,
        count: 0,
        imgCount: 0,
        imgBytes: 0,
        suspenseyImages: [],
        waitingForImages: !0,
        waitingForViewTransition: !1,
        unsuspend: Ut,
      }),
        br(t, n, A));
      var _ =
        (n & 62914560) === n ? En - kl() : (n & 4194048) === n ? zr - kl() : 0;
      if (((_ = hh(A, _)), _ !== null)) {
        ((wt = n),
          (l.cancelPendingCommit = _(
            _r.bind(null, l, t, n, a, e, u, i, c, o, x, A, null, b, p),
          )),
          ha(l, n, i, !g));
        return;
      }
    }
    _r(l, t, n, a, e, u, i, c, o);
  }
  function jm(l) {
    for (var t = l; ; ) {
      var a = t.tag;
      if (
        (a === 0 || a === 11 || a === 15) &&
        t.flags & 16384 &&
        ((a = t.updateQueue), a !== null && ((a = a.stores), a !== null))
      )
        for (var e = 0; e < a.length; e++) {
          var u = a[e],
            n = u.getSnapshot;
          u = u.value;
          try {
            if (!Il(n(), u)) return !1;
          } catch {
            return !1;
          }
        }
      if (((a = t.child), t.subtreeFlags & 16384 && a !== null))
        ((a.return = t), (t = a));
      else {
        if (t === l) break;
        for (; t.sibling === null; ) {
          if (t.return === null || t.return === l) return !0;
          t = t.return;
        }
        ((t.sibling.return = t.return), (t = t.sibling));
      }
    }
    return !0;
  }
  function ha(l, t, a, e) {
    ((t &= ~Yc),
      (t &= ~Xa),
      (l.suspendedLanes |= t),
      (l.pingedLanes &= ~t),
      e && (l.warmLanes |= t),
      (e = l.expirationTimes));
    for (var u = t; 0 < u; ) {
      var n = 31 - $l(u),
        i = 1 << n;
      ((e[n] = -1), (u &= ~i));
    }
    a !== 0 && Hf(l, a, t);
  }
  function On() {
    return (P & 6) === 0 ? (yu(0), !1) : !0;
  }
  function Zc() {
    if (K !== null) {
      if (tl === 0) var l = K.return;
      else ((l = K), (qt = Ua = null), ic(l), (he = null), (Ie = 0), (l = K));
      for (; l !== null; ) (er(l.alternate, l), (l = l.return));
      K = null;
    }
  }
  function Ae(l, t) {
    var a = l.timeoutHandle;
    (a !== -1 && ((l.timeoutHandle = -1), Fm(a)),
      (a = l.cancelPendingCommit),
      a !== null && ((l.cancelPendingCommit = null), a()),
      (wt = 0),
      Zc(),
      (il = l),
      (K = a = _t(l.current, null)),
      (w = t),
      (tl = 0),
      (at = null),
      (oa = !1),
      (xe = He(l, t)),
      (Lc = !1),
      (ze = et = Yc = Xa = ra = yl = 0),
      (Jl = hu = null),
      (Vc = !1),
      (t & 8) !== 0 && (t |= t & 32));
    var e = l.entangledLanes;
    if (e !== 0)
      for (l = l.entanglements, e &= t; 0 < e; ) {
        var u = 31 - $l(e),
          n = 1 << u;
        ((t |= l[u]), (e &= ~n));
      }
    return ((Jt = t), Wu(), a);
  }
  function Mr(l, t) {
    ((Q = null),
      (T.H = iu),
      t === me || t === an
        ? ((t = Gs()), (tl = 3))
        : t === Wi
          ? ((t = Gs()), (tl = 4))
          : (tl =
              t === zc
                ? 8
                : t !== null &&
                    typeof t == "object" &&
                    typeof t.then == "function"
                  ? 6
                  : 1),
      (at = t),
      K === null && ((yl = 1), gn(l, ot(t, l.current))));
  }
  function Or() {
    var l = lt.current;
    return l === null
      ? !0
      : (w & 4194048) === w
        ? ht === null
        : (w & 62914560) === w || (w & 536870912) !== 0
          ? l === ht
          : !1;
  }
  function Dr() {
    var l = T.H;
    return ((T.H = iu), l === null ? iu : l);
  }
  function jr() {
    var l = T.A;
    return ((T.A = Om), l);
  }
  function Dn() {
    ((yl = 4),
      oa || ((w & 4194048) !== w && lt.current !== null) || (xe = !0),
      ((ra & 134217727) === 0 && (Xa & 134217727) === 0) ||
        il === null ||
        ha(il, w, et, !1));
  }
  function Kc(l, t, a) {
    var e = P;
    P |= 2;
    var u = Dr(),
      n = jr();
    ((il !== l || w !== t) && ((Mn = null), Ae(l, t)), (t = !1));
    var i = yl;
    l: do
      try {
        if (tl !== 0 && K !== null) {
          var c = K,
            o = at;
          switch (tl) {
            case 8:
              (Zc(), (i = 6));
              break l;
            case 3:
            case 2:
            case 9:
            case 6:
              lt.current === null && (t = !0);
              var g = tl;
              if (((tl = 0), (at = null), Ee(l, c, o, g), a && xe)) {
                i = 0;
                break l;
              }
              break;
            default:
              ((g = tl), (tl = 0), (at = null), Ee(l, c, o, g));
          }
        }
        (Nm(), (i = yl));
        break;
      } catch (x) {
        Mr(l, x);
      }
    while (!0);
    return (
      t && l.shellSuspendCounter++,
      (qt = Ua = null),
      (P = e),
      (T.H = u),
      (T.A = n),
      K === null && ((il = null), (w = 0), Wu()),
      i
    );
  }
  function Nm() {
    for (; K !== null; ) Nr(K);
  }
  function Um(l, t) {
    var a = P;
    P |= 2;
    var e = Dr(),
      u = jr();
    il !== l || w !== t
      ? ((Mn = null), (Cn = kl() + 500), Ae(l, t))
      : (xe = He(l, t));
    l: do
      try {
        if (tl !== 0 && K !== null) {
          t = K;
          var n = at;
          t: switch (tl) {
            case 1:
              ((tl = 0), (at = null), Ee(l, t, n, 1));
              break;
            case 2:
            case 9:
              if (Vs(n)) {
                ((tl = 0), (at = null), Ur(t));
                break;
              }
              ((t = function () {
                ((tl !== 2 && tl !== 9) || il !== l || (tl = 7), Ot(l));
              }),
                n.then(t, t));
              break l;
            case 3:
              tl = 7;
              break l;
            case 4:
              tl = 5;
              break l;
            case 7:
              Vs(n)
                ? ((tl = 0), (at = null), Ur(t))
                : ((tl = 0), (at = null), Ee(l, t, n, 7));
              break;
            case 5:
              var i = null;
              switch (K.tag) {
                case 26:
                  i = K.memoizedState;
                case 5:
                case 27:
                  var c = K;
                  if (i ? gd(i) : c.stateNode.complete) {
                    ((tl = 0), (at = null));
                    var o = c.sibling;
                    if (o !== null) K = o;
                    else {
                      var g = c.return;
                      g !== null ? ((K = g), jn(g)) : (K = null);
                    }
                    break t;
                  }
              }
              ((tl = 0), (at = null), Ee(l, t, n, 5));
              break;
            case 6:
              ((tl = 0), (at = null), Ee(l, t, n, 6));
              break;
            case 8:
              (Zc(), (yl = 6));
              break l;
            default:
              throw Error(f(462));
          }
        }
        Bm();
        break;
      } catch (x) {
        Mr(l, x);
      }
    while (!0);
    return (
      (qt = Ua = null),
      (T.H = e),
      (T.A = u),
      (P = a),
      K !== null ? 0 : ((il = null), (w = 0), Wu(), yl)
    );
  }
  function Bm() {
    for (; K !== null && !a0(); ) Nr(K);
  }
  function Nr(l) {
    var t = tr(l.alternate, l, Jt);
    ((l.memoizedProps = l.pendingProps), t === null ? jn(l) : (K = t));
  }
  function Ur(l) {
    var t = l,
      a = t.alternate;
    switch (t.tag) {
      case 15:
      case 0:
        t = ko(a, t, t.pendingProps, t.type, void 0, w);
        break;
      case 11:
        t = ko(a, t, t.pendingProps, t.type.render, t.ref, w);
        break;
      case 5:
        ic(t);
      default:
        (er(a, t), (t = K = Ds(t, Jt)), (t = tr(a, t, Jt)));
    }
    ((l.memoizedProps = l.pendingProps), t === null ? jn(l) : (K = t));
  }
  function Ee(l, t, a, e) {
    ((qt = Ua = null), ic(t), (he = null), (Ie = 0));
    var u = t.return;
    try {
      if (xm(l, u, t, a, w)) {
        ((yl = 1), gn(l, ot(a, l.current)), (K = null));
        return;
      }
    } catch (n) {
      if (u !== null) throw ((K = u), n);
      ((yl = 1), gn(l, ot(a, l.current)), (K = null));
      return;
    }
    t.flags & 32768
      ? (k || e === 1
          ? (l = !0)
          : xe || (w & 536870912) !== 0
            ? (l = !1)
            : ((oa = l = !0),
              (e === 2 || e === 9 || e === 3 || e === 6) &&
                ((e = lt.current),
                e !== null && e.tag === 13 && (e.flags |= 16384))),
        Br(t, l))
      : jn(t);
  }
  function jn(l) {
    var t = l;
    do {
      if ((t.flags & 32768) !== 0) {
        Br(t, oa);
        return;
      }
      l = t.return;
      var a = Am(t.alternate, t, Jt);
      if (a !== null) {
        K = a;
        return;
      }
      if (((t = t.sibling), t !== null)) {
        K = t;
        return;
      }
      K = t = l;
    } while (t !== null);
    yl === 0 && (yl = 5);
  }
  function Br(l, t) {
    do {
      var a = Em(l.alternate, l);
      if (a !== null) {
        ((a.flags &= 32767), (K = a));
        return;
      }
      if (
        ((a = l.return),
        a !== null &&
          ((a.flags |= 32768), (a.subtreeFlags = 0), (a.deletions = null)),
        !t && ((l = l.sibling), l !== null))
      ) {
        K = l;
        return;
      }
      K = l = a;
    } while (l !== null);
    ((yl = 6), (K = null));
  }
  function _r(l, t, a, e, u, n, i, c, o) {
    l.cancelPendingCommit = null;
    do Nn();
    while (Al !== 0);
    if ((P & 6) !== 0) throw Error(f(327));
    if (t !== null) {
      if (t === l.current) throw Error(f(177));
      if (
        ((n = t.lanes | t.childLanes),
        (n |= Bi),
        d0(l, a, n, i, c, o),
        l === il && ((K = il = null), (w = 0)),
        (Te = t),
        (ma = l),
        (wt = a),
        (Xc = n),
        (Gc = u),
        (Tr = e),
        (t.subtreeFlags & 10256) !== 0 || (t.flags & 10256) !== 0
          ? ((l.callbackNode = null),
            (l.callbackPriority = 0),
            Rm(Uu, function () {
              return (Yr(), null);
            }))
          : ((l.callbackNode = null), (l.callbackPriority = 0)),
        (e = (t.flags & 13878) !== 0),
        (t.subtreeFlags & 13878) !== 0 || e)
      ) {
        ((e = T.T), (T.T = null), (u = B.p), (B.p = 2), (i = P), (P |= 4));
        try {
          Cm(l, t, a);
        } finally {
          ((P = i), (B.p = u), (T.T = e));
        }
      }
      ((Al = 1), Hr(), qr(), Rr());
    }
  }
  function Hr() {
    if (Al === 1) {
      Al = 0;
      var l = ma,
        t = Te,
        a = (t.flags & 13878) !== 0;
      if ((t.subtreeFlags & 13878) !== 0 || a) {
        ((a = T.T), (T.T = null));
        var e = B.p;
        B.p = 2;
        var u = P;
        P |= 4;
        try {
          vr(t, l);
          var n = ef,
            i = Ss(l.containerInfo),
            c = n.focusedElem,
            o = n.selectionRange;
          if (
            i !== c &&
            c &&
            c.ownerDocument &&
            ps(c.ownerDocument.documentElement, c)
          ) {
            if (o !== null && Oi(c)) {
              var g = o.start,
                x = o.end;
              if ((x === void 0 && (x = g), "selectionStart" in c))
                ((c.selectionStart = g),
                  (c.selectionEnd = Math.min(x, c.value.length)));
              else {
                var A = c.ownerDocument || document,
                  b = (A && A.defaultView) || window;
                if (b.getSelection) {
                  var p = b.getSelection(),
                    _ = c.textContent.length,
                    Y = Math.min(o.start, _),
                    nl = o.end === void 0 ? Y : Math.min(o.end, _);
                  !p.extend && Y > nl && ((i = nl), (nl = Y), (Y = i));
                  var h = bs(c, Y),
                    d = bs(c, nl);
                  if (
                    h &&
                    d &&
                    (p.rangeCount !== 1 ||
                      p.anchorNode !== h.node ||
                      p.anchorOffset !== h.offset ||
                      p.focusNode !== d.node ||
                      p.focusOffset !== d.offset)
                  ) {
                    var y = A.createRange();
                    (y.setStart(h.node, h.offset),
                      p.removeAllRanges(),
                      Y > nl
                        ? (p.addRange(y), p.extend(d.node, d.offset))
                        : (y.setEnd(d.node, d.offset), p.addRange(y)));
                  }
                }
              }
            }
            for (A = [], p = c; (p = p.parentNode); )
              p.nodeType === 1 &&
                A.push({ element: p, left: p.scrollLeft, top: p.scrollTop });
            for (
              typeof c.focus == "function" && c.focus(), c = 0;
              c < A.length;
              c++
            ) {
              var z = A[c];
              ((z.element.scrollLeft = z.left), (z.element.scrollTop = z.top));
            }
          }
          ((Qn = !!af), (ef = af = null));
        } finally {
          ((P = u), (B.p = e), (T.T = a));
        }
      }
      ((l.current = t), (Al = 2));
    }
  }
  function qr() {
    if (Al === 2) {
      Al = 0;
      var l = ma,
        t = Te,
        a = (t.flags & 8772) !== 0;
      if ((t.subtreeFlags & 8772) !== 0 || a) {
        ((a = T.T), (T.T = null));
        var e = B.p;
        B.p = 2;
        var u = P;
        P |= 4;
        try {
          or(l, t.alternate, t);
        } finally {
          ((P = u), (B.p = e), (T.T = a));
        }
      }
      Al = 3;
    }
  }
  function Rr() {
    if (Al === 4 || Al === 3) {
      ((Al = 0), e0());
      var l = ma,
        t = Te,
        a = wt,
        e = Tr;
      (t.subtreeFlags & 10256) !== 0 || (t.flags & 10256) !== 0
        ? (Al = 5)
        : ((Al = 0), (Te = ma = null), Lr(l, l.pendingLanes));
      var u = l.pendingLanes;
      if (
        (u === 0 && (da = null),
        si(a),
        (t = t.stateNode),
        Fl && typeof Fl.onCommitFiberRoot == "function")
      )
        try {
          Fl.onCommitFiberRoot(_e, t, void 0, (t.current.flags & 128) === 128);
        } catch {}
      if (e !== null) {
        ((t = T.T), (u = B.p), (B.p = 2), (T.T = null));
        try {
          for (var n = l.onRecoverableError, i = 0; i < e.length; i++) {
            var c = e[i];
            n(c.value, { componentStack: c.stack });
          }
        } finally {
          ((T.T = t), (B.p = u));
        }
      }
      ((wt & 3) !== 0 && Nn(),
        Ot(l),
        (u = l.pendingLanes),
        (a & 261930) !== 0 && (u & 42) !== 0
          ? l === Qc
            ? vu++
            : ((vu = 0), (Qc = l))
          : (vu = 0),
        yu(0));
    }
  }
  function Lr(l, t) {
    (l.pooledCacheLanes &= t) === 0 &&
      ((t = l.pooledCache), t != null && ((l.pooledCache = null), Fe(t)));
  }
  function Nn() {
    return (Hr(), qr(), Rr(), Yr());
  }
  function Yr() {
    if (Al !== 5) return !1;
    var l = ma,
      t = Xc;
    Xc = 0;
    var a = si(wt),
      e = T.T,
      u = B.p;
    try {
      ((B.p = 32 > a ? 32 : a), (T.T = null), (a = Gc), (Gc = null));
      var n = ma,
        i = wt;
      if (((Al = 0), (Te = ma = null), (wt = 0), (P & 6) !== 0))
        throw Error(f(331));
      var c = P;
      if (
        ((P |= 4),
        Sr(n.current),
        gr(n, n.current, i, a),
        (P = c),
        yu(0, !1),
        Fl && typeof Fl.onPostCommitFiberRoot == "function")
      )
        try {
          Fl.onPostCommitFiberRoot(_e, n);
        } catch {}
      return !0;
    } finally {
      ((B.p = u), (T.T = e), Lr(l, t));
    }
  }
  function Vr(l, t, a) {
    ((t = ot(a, t)),
      (t = xc(l.stateNode, t, 2)),
      (l = ia(l, t, 2)),
      l !== null && (qe(l, 2), Ot(l)));
  }
  function al(l, t, a) {
    if (l.tag === 3) Vr(l, l, a);
    else
      for (; t !== null; ) {
        if (t.tag === 3) {
          Vr(t, l, a);
          break;
        } else if (t.tag === 1) {
          var e = t.stateNode;
          if (
            typeof t.type.getDerivedStateFromError == "function" ||
            (typeof e.componentDidCatch == "function" &&
              (da === null || !da.has(e)))
          ) {
            ((l = ot(a, l)),
              (a = Xo(2)),
              (e = ia(t, a, 2)),
              e !== null && (Go(a, e, t, l), qe(e, 2), Ot(e)));
            break;
          }
        }
        t = t.return;
      }
  }
  function Jc(l, t, a) {
    var e = l.pingCache;
    if (e === null) {
      e = l.pingCache = new Dm();
      var u = new Set();
      e.set(t, u);
    } else ((u = e.get(t)), u === void 0 && ((u = new Set()), e.set(t, u)));
    u.has(a) ||
      ((Lc = !0), u.add(a), (l = _m.bind(null, l, t, a)), t.then(l, l));
  }
  function _m(l, t, a) {
    var e = l.pingCache;
    (e !== null && e.delete(t),
      (l.pingedLanes |= l.suspendedLanes & a),
      (l.warmLanes &= ~a),
      il === l &&
        (w & a) === a &&
        (yl === 4 || (yl === 3 && (w & 62914560) === w && 300 > kl() - En)
          ? (P & 2) === 0 && Ae(l, 0)
          : (Yc |= a),
        ze === w && (ze = 0)),
      Ot(l));
  }
  function Xr(l, t) {
    (t === 0 && (t = _f()), (l = Da(l, t)), l !== null && (qe(l, t), Ot(l)));
  }
  function Hm(l) {
    var t = l.memoizedState,
      a = 0;
    (t !== null && (a = t.retryLane), Xr(l, a));
  }
  function qm(l, t) {
    var a = 0;
    switch (l.tag) {
      case 31:
      case 13:
        var e = l.stateNode,
          u = l.memoizedState;
        u !== null && (a = u.retryLane);
        break;
      case 19:
        e = l.stateNode;
        break;
      case 22:
        e = l.stateNode._retryCache;
        break;
      default:
        throw Error(f(314));
    }
    (e !== null && e.delete(t), Xr(l, a));
  }
  function Rm(l, t) {
    return ni(l, t);
  }
  var Un = null,
    Ce = null,
    wc = !1,
    Bn = !1,
    Wc = !1,
    va = 0;
  function Ot(l) {
    (l !== Ce &&
      l.next === null &&
      (Ce === null ? (Un = Ce = l) : (Ce = Ce.next = l)),
      (Bn = !0),
      wc || ((wc = !0), Ym()));
  }
  function yu(l, t) {
    if (!Wc && Bn) {
      Wc = !0;
      do
        for (var a = !1, e = Un; e !== null; ) {
          if (l !== 0) {
            var u = e.pendingLanes;
            if (u === 0) var n = 0;
            else {
              var i = e.suspendedLanes,
                c = e.pingedLanes;
              ((n = (1 << (31 - $l(42 | l) + 1)) - 1),
                (n &= u & ~(i & ~c)),
                (n = n & 201326741 ? (n & 201326741) | 1 : n ? n | 2 : 0));
            }
            n !== 0 && ((a = !0), Kr(e, n));
          } else
            ((n = w),
              (n = qu(
                e,
                e === il ? n : 0,
                e.cancelPendingCommit !== null || e.timeoutHandle !== -1,
              )),
              (n & 3) === 0 || He(e, n) || ((a = !0), Kr(e, n)));
          e = e.next;
        }
      while (a);
      Wc = !1;
    }
  }
  function Lm() {
    Gr();
  }
  function Gr() {
    Bn = wc = !1;
    var l = 0;
    va !== 0 && km() && (l = va);
    for (var t = kl(), a = null, e = Un; e !== null; ) {
      var u = e.next,
        n = Qr(e, t);
      (n === 0
        ? ((e.next = null),
          a === null ? (Un = u) : (a.next = u),
          u === null && (Ce = a))
        : ((a = e), (l !== 0 || (n & 3) !== 0) && (Bn = !0)),
        (e = u));
    }
    ((Al !== 0 && Al !== 5) || yu(l), va !== 0 && (va = 0));
  }
  function Qr(l, t) {
    for (
      var a = l.suspendedLanes,
        e = l.pingedLanes,
        u = l.expirationTimes,
        n = l.pendingLanes & -62914561;
      0 < n;
    ) {
      var i = 31 - $l(n),
        c = 1 << i,
        o = u[i];
      (o === -1
        ? ((c & a) === 0 || (c & e) !== 0) && (u[i] = r0(c, t))
        : o <= t && (l.expiredLanes |= c),
        (n &= ~c));
    }
    if (
      ((t = il),
      (a = w),
      (a = qu(
        l,
        l === t ? a : 0,
        l.cancelPendingCommit !== null || l.timeoutHandle !== -1,
      )),
      (e = l.callbackNode),
      a === 0 ||
        (l === t && (tl === 2 || tl === 9)) ||
        l.cancelPendingCommit !== null)
    )
      return (
        e !== null && e !== null && ii(e),
        (l.callbackNode = null),
        (l.callbackPriority = 0)
      );
    if ((a & 3) === 0 || He(l, a)) {
      if (((t = a & -a), t === l.callbackPriority)) return t;
      switch ((e !== null && ii(e), si(a))) {
        case 2:
        case 8:
          a = Uf;
          break;
        case 32:
          a = Uu;
          break;
        case 268435456:
          a = Bf;
          break;
        default:
          a = Uu;
      }
      return (
        (e = Zr.bind(null, l)),
        (a = ni(a, e)),
        (l.callbackPriority = t),
        (l.callbackNode = a),
        t
      );
    }
    return (
      e !== null && e !== null && ii(e),
      (l.callbackPriority = 2),
      (l.callbackNode = null),
      2
    );
  }
  function Zr(l, t) {
    if (Al !== 0 && Al !== 5)
      return ((l.callbackNode = null), (l.callbackPriority = 0), null);
    var a = l.callbackNode;
    if (Nn() && l.callbackNode !== a) return null;
    var e = w;
    return (
      (e = qu(
        l,
        l === il ? e : 0,
        l.cancelPendingCommit !== null || l.timeoutHandle !== -1,
      )),
      e === 0
        ? null
        : (Er(l, e, t),
          Qr(l, kl()),
          l.callbackNode != null && l.callbackNode === a
            ? Zr.bind(null, l)
            : null)
    );
  }
  function Kr(l, t) {
    if (Nn()) return null;
    Er(l, t, !0);
  }
  function Ym() {
    $m(function () {
      (P & 6) !== 0 ? ni(Nf, Lm) : Gr();
    });
  }
  function kc() {
    if (va === 0) {
      var l = re;
      (l === 0 && ((l = Bu), (Bu <<= 1), (Bu & 261888) === 0 && (Bu = 256)),
        (va = l));
    }
    return va;
  }
  function Jr(l) {
    return l == null || typeof l == "symbol" || typeof l == "boolean"
      ? null
      : typeof l == "function"
        ? l
        : Vu("" + l);
  }
  function wr(l, t) {
    var a = t.ownerDocument.createElement("input");
    return (
      (a.name = t.name),
      (a.value = t.value),
      l.id && a.setAttribute("form", l.id),
      t.parentNode.insertBefore(a, t),
      (l = new FormData(l)),
      a.parentNode.removeChild(a),
      l
    );
  }
  function Vm(l, t, a, e, u) {
    if (t === "submit" && a && a.stateNode === u) {
      var n = Jr((u[Xl] || null).action),
        i = e.submitter;
      i &&
        ((t = (t = i[Xl] || null)
          ? Jr(t.formAction)
          : i.getAttribute("formAction")),
        t !== null && ((n = t), (i = null)));
      var c = new Zu("action", "action", null, e, u);
      l.push({
        event: c,
        listeners: [
          {
            instance: null,
            listener: function () {
              if (e.defaultPrevented) {
                if (va !== 0) {
                  var o = i ? wr(u, i) : new FormData(u);
                  vc(
                    a,
                    { pending: !0, data: o, method: u.method, action: n },
                    null,
                    o,
                  );
                }
              } else
                typeof n == "function" &&
                  (c.preventDefault(),
                  (o = i ? wr(u, i) : new FormData(u)),
                  vc(
                    a,
                    { pending: !0, data: o, method: u.method, action: n },
                    n,
                    o,
                  ));
            },
            currentTarget: u,
          },
        ],
      });
    }
  }
  for (var Fc = 0; Fc < Ui.length; Fc++) {
    var $c = Ui[Fc],
      Xm = $c.toLowerCase(),
      Gm = $c[0].toUpperCase() + $c.slice(1);
    bt(Xm, "on" + Gm);
  }
  (bt(Ts, "onAnimationEnd"),
    bt(As, "onAnimationIteration"),
    bt(Es, "onAnimationStart"),
    bt("dblclick", "onDoubleClick"),
    bt("focusin", "onFocus"),
    bt("focusout", "onBlur"),
    bt(um, "onTransitionRun"),
    bt(nm, "onTransitionStart"),
    bt(im, "onTransitionCancel"),
    bt(Cs, "onTransitionEnd"),
    $a("onMouseEnter", ["mouseout", "mouseover"]),
    $a("onMouseLeave", ["mouseout", "mouseover"]),
    $a("onPointerEnter", ["pointerout", "pointerover"]),
    $a("onPointerLeave", ["pointerout", "pointerover"]),
    Ea(
      "onChange",
      "change click focusin focusout input keydown keyup selectionchange".split(
        " ",
      ),
    ),
    Ea(
      "onSelect",
      "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
        " ",
      ),
    ),
    Ea("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]),
    Ea(
      "onCompositionEnd",
      "compositionend focusout keydown keypress keyup mousedown".split(" "),
    ),
    Ea(
      "onCompositionStart",
      "compositionstart focusout keydown keypress keyup mousedown".split(" "),
    ),
    Ea(
      "onCompositionUpdate",
      "compositionupdate focusout keydown keypress keyup mousedown".split(" "),
    ));
  var gu =
      "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(
        " ",
      ),
    Qm = new Set(
      "beforetoggle cancel close invalid load scroll scrollend toggle"
        .split(" ")
        .concat(gu),
    );
  function Wr(l, t) {
    t = (t & 4) !== 0;
    for (var a = 0; a < l.length; a++) {
      var e = l[a],
        u = e.event;
      e = e.listeners;
      l: {
        var n = void 0;
        if (t)
          for (var i = e.length - 1; 0 <= i; i--) {
            var c = e[i],
              o = c.instance,
              g = c.currentTarget;
            if (((c = c.listener), o !== n && u.isPropagationStopped()))
              break l;
            ((n = c), (u.currentTarget = g));
            try {
              n(u);
            } catch (x) {
              wu(x);
            }
            ((u.currentTarget = null), (n = o));
          }
        else
          for (i = 0; i < e.length; i++) {
            if (
              ((c = e[i]),
              (o = c.instance),
              (g = c.currentTarget),
              (c = c.listener),
              o !== n && u.isPropagationStopped())
            )
              break l;
            ((n = c), (u.currentTarget = g));
            try {
              n(u);
            } catch (x) {
              wu(x);
            }
            ((u.currentTarget = null), (n = o));
          }
      }
    }
  }
  function J(l, t) {
    var a = t[oi];
    a === void 0 && (a = t[oi] = new Set());
    var e = l + "__bubble";
    a.has(e) || (kr(t, l, 2, !1), a.add(e));
  }
  function Ic(l, t, a) {
    var e = 0;
    (t && (e |= 4), kr(a, l, e, t));
  }
  var _n = "_reactListening" + Math.random().toString(36).slice(2);
  function Pc(l) {
    if (!l[_n]) {
      ((l[_n] = !0),
        Xf.forEach(function (a) {
          a !== "selectionchange" && (Qm.has(a) || Ic(a, !1, l), Ic(a, !0, l));
        }));
      var t = l.nodeType === 9 ? l : l.ownerDocument;
      t === null || t[_n] || ((t[_n] = !0), Ic("selectionchange", !1, t));
    }
  }
  function kr(l, t, a, e) {
    switch (Ad(t)) {
      case 2:
        var u = gh;
        break;
      case 8:
        u = bh;
        break;
      default:
        u = vf;
    }
    ((a = u.bind(null, t, a, l)),
      (u = void 0),
      !pi ||
        (t !== "touchstart" && t !== "touchmove" && t !== "wheel") ||
        (u = !0),
      e
        ? u !== void 0
          ? l.addEventListener(t, a, { capture: !0, passive: u })
          : l.addEventListener(t, a, !0)
        : u !== void 0
          ? l.addEventListener(t, a, { passive: u })
          : l.addEventListener(t, a, !1));
  }
  function lf(l, t, a, e, u) {
    var n = e;
    if ((t & 1) === 0 && (t & 2) === 0 && e !== null)
      l: for (;;) {
        if (e === null) return;
        var i = e.tag;
        if (i === 3 || i === 4) {
          var c = e.stateNode.containerInfo;
          if (c === u) break;
          if (i === 4)
            for (i = e.return; i !== null; ) {
              var o = i.tag;
              if ((o === 3 || o === 4) && i.stateNode.containerInfo === u)
                return;
              i = i.return;
            }
          for (; c !== null; ) {
            if (((i = Wa(c)), i === null)) return;
            if (((o = i.tag), o === 5 || o === 6 || o === 26 || o === 27)) {
              e = n = i;
              continue l;
            }
            c = c.parentNode;
          }
        }
        e = e.return;
      }
    Pf(function () {
      var g = n,
        x = gi(a),
        A = [];
      l: {
        var b = Ms.get(l);
        if (b !== void 0) {
          var p = Zu,
            _ = l;
          switch (l) {
            case "keypress":
              if (Gu(a) === 0) break l;
            case "keydown":
            case "keyup":
              p = q0;
              break;
            case "focusin":
              ((_ = "focus"), (p = Ti));
              break;
            case "focusout":
              ((_ = "blur"), (p = Ti));
              break;
            case "beforeblur":
            case "afterblur":
              p = Ti;
              break;
            case "click":
              if (a.button === 2) break l;
            case "auxclick":
            case "dblclick":
            case "mousedown":
            case "mousemove":
            case "mouseup":
            case "mouseout":
            case "mouseover":
            case "contextmenu":
              p = as;
              break;
            case "drag":
            case "dragend":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "dragstart":
            case "drop":
              p = A0;
              break;
            case "touchcancel":
            case "touchend":
            case "touchmove":
            case "touchstart":
              p = Y0;
              break;
            case Ts:
            case As:
            case Es:
              p = M0;
              break;
            case Cs:
              p = X0;
              break;
            case "scroll":
            case "scrollend":
              p = z0;
              break;
            case "wheel":
              p = Q0;
              break;
            case "copy":
            case "cut":
            case "paste":
              p = D0;
              break;
            case "gotpointercapture":
            case "lostpointercapture":
            case "pointercancel":
            case "pointerdown":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "pointerup":
              p = us;
              break;
            case "toggle":
            case "beforetoggle":
              p = K0;
          }
          var Y = (t & 4) !== 0,
            nl = !Y && (l === "scroll" || l === "scrollend"),
            h = Y ? (b !== null ? b + "Capture" : null) : b;
          Y = [];
          for (var d = g, y; d !== null; ) {
            var z = d;
            if (
              ((y = z.stateNode),
              (z = z.tag),
              (z !== 5 && z !== 26 && z !== 27) ||
                y === null ||
                h === null ||
                ((z = Ye(d, h)), z != null && Y.push(bu(d, z, y))),
              nl)
            )
              break;
            d = d.return;
          }
          0 < Y.length &&
            ((b = new p(b, _, null, a, x)), A.push({ event: b, listeners: Y }));
        }
      }
      if ((t & 7) === 0) {
        l: {
          if (
            ((b = l === "mouseover" || l === "pointerover"),
            (p = l === "mouseout" || l === "pointerout"),
            b &&
              a !== yi &&
              (_ = a.relatedTarget || a.fromElement) &&
              (Wa(_) || _[wa]))
          )
            break l;
          if (
            (p || b) &&
            ((b =
              x.window === x
                ? x
                : (b = x.ownerDocument)
                  ? b.defaultView || b.parentWindow
                  : window),
            p
              ? ((_ = a.relatedTarget || a.toElement),
                (p = g),
                (_ = _ ? Wa(_) : null),
                _ !== null &&
                  ((nl = E(_)),
                  (Y = _.tag),
                  _ !== nl || (Y !== 5 && Y !== 27 && Y !== 6)) &&
                  (_ = null))
              : ((p = null), (_ = g)),
            p !== _)
          ) {
            if (
              ((Y = as),
              (z = "onMouseLeave"),
              (h = "onMouseEnter"),
              (d = "mouse"),
              (l === "pointerout" || l === "pointerover") &&
                ((Y = us),
                (z = "onPointerLeave"),
                (h = "onPointerEnter"),
                (d = "pointer")),
              (nl = p == null ? b : Le(p)),
              (y = _ == null ? b : Le(_)),
              (b = new Y(z, d + "leave", p, a, x)),
              (b.target = nl),
              (b.relatedTarget = y),
              (z = null),
              Wa(x) === g &&
                ((Y = new Y(h, d + "enter", _, a, x)),
                (Y.target = y),
                (Y.relatedTarget = nl),
                (z = Y)),
              (nl = z),
              p && _)
            )
              t: {
                for (Y = Zm, h = p, d = _, y = 0, z = h; z; z = Y(z)) y++;
                z = 0;
                for (var R = d; R; R = Y(R)) z++;
                for (; 0 < y - z; ) ((h = Y(h)), y--);
                for (; 0 < z - y; ) ((d = Y(d)), z--);
                for (; y--; ) {
                  if (h === d || (d !== null && h === d.alternate)) {
                    Y = h;
                    break t;
                  }
                  ((h = Y(h)), (d = Y(d)));
                }
                Y = null;
              }
            else Y = null;
            (p !== null && Fr(A, b, p, Y, !1),
              _ !== null && nl !== null && Fr(A, nl, _, Y, !0));
          }
        }
        l: {
          if (
            ((b = g ? Le(g) : window),
            (p = b.nodeName && b.nodeName.toLowerCase()),
            p === "select" || (p === "input" && b.type === "file"))
          )
            var $ = ds;
          else if (os(b))
            if (ms) $ = tm;
            else {
              $ = P0;
              var q = I0;
            }
          else
            ((p = b.nodeName),
              !p ||
              p.toLowerCase() !== "input" ||
              (b.type !== "checkbox" && b.type !== "radio")
                ? g && vi(g.elementType) && ($ = ds)
                : ($ = lm));
          if ($ && ($ = $(l, g))) {
            rs(A, $, a, x);
            break l;
          }
          (q && q(l, b, g),
            l === "focusout" &&
              g &&
              b.type === "number" &&
              g.memoizedProps.value != null &&
              hi(b, "number", b.value));
        }
        switch (((q = g ? Le(g) : window), l)) {
          case "focusin":
            (os(q) || q.contentEditable === "true") &&
              ((ee = q), (Di = g), (we = null));
            break;
          case "focusout":
            we = Di = ee = null;
            break;
          case "mousedown":
            ji = !0;
            break;
          case "contextmenu":
          case "mouseup":
          case "dragend":
            ((ji = !1), xs(A, a, x));
            break;
          case "selectionchange":
            if (em) break;
          case "keydown":
          case "keyup":
            xs(A, a, x);
        }
        var Z;
        if (Ei)
          l: {
            switch (l) {
              case "compositionstart":
                var W = "onCompositionStart";
                break l;
              case "compositionend":
                W = "onCompositionEnd";
                break l;
              case "compositionupdate":
                W = "onCompositionUpdate";
                break l;
            }
            W = void 0;
          }
        else
          ae
            ? fs(l, a) && (W = "onCompositionEnd")
            : l === "keydown" &&
              a.keyCode === 229 &&
              (W = "onCompositionStart");
        (W &&
          (ns &&
            a.locale !== "ko" &&
            (ae || W !== "onCompositionStart"
              ? W === "onCompositionEnd" && ae && (Z = ls())
              : ((Pt = x),
                (Si = "value" in Pt ? Pt.value : Pt.textContent),
                (ae = !0))),
          (q = Hn(g, W)),
          0 < q.length &&
            ((W = new es(W, l, null, a, x)),
            A.push({ event: W, listeners: q }),
            Z ? (W.data = Z) : ((Z = ss(a)), Z !== null && (W.data = Z)))),
          (Z = w0 ? W0(l, a) : k0(l, a)) &&
            ((W = Hn(g, "onBeforeInput")),
            0 < W.length &&
              ((q = new es("onBeforeInput", "beforeinput", null, a, x)),
              A.push({ event: q, listeners: W }),
              (q.data = Z))),
          Vm(A, l, g, a, x));
      }
      Wr(A, t);
    });
  }
  function bu(l, t, a) {
    return { instance: l, listener: t, currentTarget: a };
  }
  function Hn(l, t) {
    for (var a = t + "Capture", e = []; l !== null; ) {
      var u = l,
        n = u.stateNode;
      if (
        ((u = u.tag),
        (u !== 5 && u !== 26 && u !== 27) ||
          n === null ||
          ((u = Ye(l, a)),
          u != null && e.unshift(bu(l, u, n)),
          (u = Ye(l, t)),
          u != null && e.push(bu(l, u, n))),
        l.tag === 3)
      )
        return e;
      l = l.return;
    }
    return [];
  }
  function Zm(l) {
    if (l === null) return null;
    do l = l.return;
    while (l && l.tag !== 5 && l.tag !== 27);
    return l || null;
  }
  function Fr(l, t, a, e, u) {
    for (var n = t._reactName, i = []; a !== null && a !== e; ) {
      var c = a,
        o = c.alternate,
        g = c.stateNode;
      if (((c = c.tag), o !== null && o === e)) break;
      ((c !== 5 && c !== 26 && c !== 27) ||
        g === null ||
        ((o = g),
        u
          ? ((g = Ye(a, n)), g != null && i.unshift(bu(a, g, o)))
          : u || ((g = Ye(a, n)), g != null && i.push(bu(a, g, o)))),
        (a = a.return));
    }
    i.length !== 0 && l.push({ event: t, listeners: i });
  }
  var Km = /\r\n?/g,
    Jm = /\u0000|\uFFFD/g;
  function $r(l) {
    return (typeof l == "string" ? l : "" + l)
      .replace(
        Km,
        `
`,
      )
      .replace(Jm, "");
  }
  function Ir(l, t) {
    return ((t = $r(t)), $r(l) === t);
  }
  function ul(l, t, a, e, u, n) {
    switch (a) {
      case "children":
        typeof e == "string"
          ? t === "body" || (t === "textarea" && e === "") || Pa(l, e)
          : (typeof e == "number" || typeof e == "bigint") &&
            t !== "body" &&
            Pa(l, "" + e);
        break;
      case "className":
        Lu(l, "class", e);
        break;
      case "tabIndex":
        Lu(l, "tabindex", e);
        break;
      case "dir":
      case "role":
      case "viewBox":
      case "width":
      case "height":
        Lu(l, a, e);
        break;
      case "style":
        $f(l, e, n);
        break;
      case "data":
        if (t !== "object") {
          Lu(l, "data", e);
          break;
        }
      case "src":
      case "href":
        if (e === "" && (t !== "a" || a !== "href")) {
          l.removeAttribute(a);
          break;
        }
        if (
          e == null ||
          typeof e == "function" ||
          typeof e == "symbol" ||
          typeof e == "boolean"
        ) {
          l.removeAttribute(a);
          break;
        }
        ((e = Vu("" + e)), l.setAttribute(a, e));
        break;
      case "action":
      case "formAction":
        if (typeof e == "function") {
          l.setAttribute(
            a,
            "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')",
          );
          break;
        } else
          typeof n == "function" &&
            (a === "formAction"
              ? (t !== "input" && ul(l, t, "name", u.name, u, null),
                ul(l, t, "formEncType", u.formEncType, u, null),
                ul(l, t, "formMethod", u.formMethod, u, null),
                ul(l, t, "formTarget", u.formTarget, u, null))
              : (ul(l, t, "encType", u.encType, u, null),
                ul(l, t, "method", u.method, u, null),
                ul(l, t, "target", u.target, u, null)));
        if (e == null || typeof e == "symbol" || typeof e == "boolean") {
          l.removeAttribute(a);
          break;
        }
        ((e = Vu("" + e)), l.setAttribute(a, e));
        break;
      case "onClick":
        e != null && (l.onclick = Ut);
        break;
      case "onScroll":
        e != null && J("scroll", l);
        break;
      case "onScrollEnd":
        e != null && J("scrollend", l);
        break;
      case "dangerouslySetInnerHTML":
        if (e != null) {
          if (typeof e != "object" || !("__html" in e)) throw Error(f(61));
          if (((a = e.__html), a != null)) {
            if (u.children != null) throw Error(f(60));
            l.innerHTML = a;
          }
        }
        break;
      case "multiple":
        l.multiple = e && typeof e != "function" && typeof e != "symbol";
        break;
      case "muted":
        l.muted = e && typeof e != "function" && typeof e != "symbol";
        break;
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "ref":
        break;
      case "autoFocus":
        break;
      case "xlinkHref":
        if (
          e == null ||
          typeof e == "function" ||
          typeof e == "boolean" ||
          typeof e == "symbol"
        ) {
          l.removeAttribute("xlink:href");
          break;
        }
        ((a = Vu("" + e)),
          l.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", a));
        break;
      case "contentEditable":
      case "spellCheck":
      case "draggable":
      case "value":
      case "autoReverse":
      case "externalResourcesRequired":
      case "focusable":
      case "preserveAlpha":
        e != null && typeof e != "function" && typeof e != "symbol"
          ? l.setAttribute(a, "" + e)
          : l.removeAttribute(a);
        break;
      case "inert":
      case "allowFullScreen":
      case "async":
      case "autoPlay":
      case "controls":
      case "default":
      case "defer":
      case "disabled":
      case "disablePictureInPicture":
      case "disableRemotePlayback":
      case "formNoValidate":
      case "hidden":
      case "loop":
      case "noModule":
      case "noValidate":
      case "open":
      case "playsInline":
      case "readOnly":
      case "required":
      case "reversed":
      case "scoped":
      case "seamless":
      case "itemScope":
        e && typeof e != "function" && typeof e != "symbol"
          ? l.setAttribute(a, "")
          : l.removeAttribute(a);
        break;
      case "capture":
      case "download":
        e === !0
          ? l.setAttribute(a, "")
          : e !== !1 &&
              e != null &&
              typeof e != "function" &&
              typeof e != "symbol"
            ? l.setAttribute(a, e)
            : l.removeAttribute(a);
        break;
      case "cols":
      case "rows":
      case "size":
      case "span":
        e != null &&
        typeof e != "function" &&
        typeof e != "symbol" &&
        !isNaN(e) &&
        1 <= e
          ? l.setAttribute(a, e)
          : l.removeAttribute(a);
        break;
      case "rowSpan":
      case "start":
        e == null || typeof e == "function" || typeof e == "symbol" || isNaN(e)
          ? l.removeAttribute(a)
          : l.setAttribute(a, e);
        break;
      case "popover":
        (J("beforetoggle", l), J("toggle", l), Ru(l, "popover", e));
        break;
      case "xlinkActuate":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:actuate", e);
        break;
      case "xlinkArcrole":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:arcrole", e);
        break;
      case "xlinkRole":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:role", e);
        break;
      case "xlinkShow":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:show", e);
        break;
      case "xlinkTitle":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:title", e);
        break;
      case "xlinkType":
        Nt(l, "http://www.w3.org/1999/xlink", "xlink:type", e);
        break;
      case "xmlBase":
        Nt(l, "http://www.w3.org/XML/1998/namespace", "xml:base", e);
        break;
      case "xmlLang":
        Nt(l, "http://www.w3.org/XML/1998/namespace", "xml:lang", e);
        break;
      case "xmlSpace":
        Nt(l, "http://www.w3.org/XML/1998/namespace", "xml:space", e);
        break;
      case "is":
        Ru(l, "is", e);
        break;
      case "innerText":
      case "textContent":
        break;
      default:
        (!(2 < a.length) ||
          (a[0] !== "o" && a[0] !== "O") ||
          (a[1] !== "n" && a[1] !== "N")) &&
          ((a = S0.get(a) || a), Ru(l, a, e));
    }
  }
  function tf(l, t, a, e, u, n) {
    switch (a) {
      case "style":
        $f(l, e, n);
        break;
      case "dangerouslySetInnerHTML":
        if (e != null) {
          if (typeof e != "object" || !("__html" in e)) throw Error(f(61));
          if (((a = e.__html), a != null)) {
            if (u.children != null) throw Error(f(60));
            l.innerHTML = a;
          }
        }
        break;
      case "children":
        typeof e == "string"
          ? Pa(l, e)
          : (typeof e == "number" || typeof e == "bigint") && Pa(l, "" + e);
        break;
      case "onScroll":
        e != null && J("scroll", l);
        break;
      case "onScrollEnd":
        e != null && J("scrollend", l);
        break;
      case "onClick":
        e != null && (l.onclick = Ut);
        break;
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
      case "innerHTML":
      case "ref":
        break;
      case "innerText":
      case "textContent":
        break;
      default:
        if (!Gf.hasOwnProperty(a))
          l: {
            if (
              a[0] === "o" &&
              a[1] === "n" &&
              ((u = a.endsWith("Capture")),
              (t = a.slice(2, u ? a.length - 7 : void 0)),
              (n = l[Xl] || null),
              (n = n != null ? n[a] : null),
              typeof n == "function" && l.removeEventListener(t, n, u),
              typeof e == "function")
            ) {
              (typeof n != "function" &&
                n !== null &&
                (a in l
                  ? (l[a] = null)
                  : l.hasAttribute(a) && l.removeAttribute(a)),
                l.addEventListener(t, e, u));
              break l;
            }
            a in l
              ? (l[a] = e)
              : e === !0
                ? l.setAttribute(a, "")
                : Ru(l, a, e);
          }
    }
  }
  function Hl(l, t, a) {
    switch (t) {
      case "div":
      case "span":
      case "svg":
      case "path":
      case "a":
      case "g":
      case "p":
      case "li":
        break;
      case "img":
        (J("error", l), J("load", l));
        var e = !1,
          u = !1,
          n;
        for (n in a)
          if (a.hasOwnProperty(n)) {
            var i = a[n];
            if (i != null)
              switch (n) {
                case "src":
                  e = !0;
                  break;
                case "srcSet":
                  u = !0;
                  break;
                case "children":
                case "dangerouslySetInnerHTML":
                  throw Error(f(137, t));
                default:
                  ul(l, t, n, i, a, null);
              }
          }
        (u && ul(l, t, "srcSet", a.srcSet, a, null),
          e && ul(l, t, "src", a.src, a, null));
        return;
      case "input":
        J("invalid", l);
        var c = (n = i = u = null),
          o = null,
          g = null;
        for (e in a)
          if (a.hasOwnProperty(e)) {
            var x = a[e];
            if (x != null)
              switch (e) {
                case "name":
                  u = x;
                  break;
                case "type":
                  i = x;
                  break;
                case "checked":
                  o = x;
                  break;
                case "defaultChecked":
                  g = x;
                  break;
                case "value":
                  n = x;
                  break;
                case "defaultValue":
                  c = x;
                  break;
                case "children":
                case "dangerouslySetInnerHTML":
                  if (x != null) throw Error(f(137, t));
                  break;
                default:
                  ul(l, t, e, x, a, null);
              }
          }
        wf(l, n, c, o, g, i, u, !1);
        return;
      case "select":
        (J("invalid", l), (e = i = n = null));
        for (u in a)
          if (a.hasOwnProperty(u) && ((c = a[u]), c != null))
            switch (u) {
              case "value":
                n = c;
                break;
              case "defaultValue":
                i = c;
                break;
              case "multiple":
                e = c;
              default:
                ul(l, t, u, c, a, null);
            }
        ((t = n),
          (a = i),
          (l.multiple = !!e),
          t != null ? Ia(l, !!e, t, !1) : a != null && Ia(l, !!e, a, !0));
        return;
      case "textarea":
        (J("invalid", l), (n = u = e = null));
        for (i in a)
          if (a.hasOwnProperty(i) && ((c = a[i]), c != null))
            switch (i) {
              case "value":
                e = c;
                break;
              case "defaultValue":
                u = c;
                break;
              case "children":
                n = c;
                break;
              case "dangerouslySetInnerHTML":
                if (c != null) throw Error(f(91));
                break;
              default:
                ul(l, t, i, c, a, null);
            }
        kf(l, e, u, n);
        return;
      case "option":
        for (o in a)
          a.hasOwnProperty(o) &&
            ((e = a[o]), e != null) &&
            (o === "selected"
              ? (l.selected =
                  e && typeof e != "function" && typeof e != "symbol")
              : ul(l, t, o, e, a, null));
        return;
      case "dialog":
        (J("beforetoggle", l), J("toggle", l), J("cancel", l), J("close", l));
        break;
      case "iframe":
      case "object":
        J("load", l);
        break;
      case "video":
      case "audio":
        for (e = 0; e < gu.length; e++) J(gu[e], l);
        break;
      case "image":
        (J("error", l), J("load", l));
        break;
      case "details":
        J("toggle", l);
        break;
      case "embed":
      case "source":
      case "link":
        (J("error", l), J("load", l));
      case "area":
      case "base":
      case "br":
      case "col":
      case "hr":
      case "keygen":
      case "meta":
      case "param":
      case "track":
      case "wbr":
      case "menuitem":
        for (g in a)
          if (a.hasOwnProperty(g) && ((e = a[g]), e != null))
            switch (g) {
              case "children":
              case "dangerouslySetInnerHTML":
                throw Error(f(137, t));
              default:
                ul(l, t, g, e, a, null);
            }
        return;
      default:
        if (vi(t)) {
          for (x in a)
            a.hasOwnProperty(x) &&
              ((e = a[x]), e !== void 0 && tf(l, t, x, e, a, void 0));
          return;
        }
    }
    for (c in a)
      a.hasOwnProperty(c) && ((e = a[c]), e != null && ul(l, t, c, e, a, null));
  }
  function wm(l, t, a, e) {
    switch (t) {
      case "div":
      case "span":
      case "svg":
      case "path":
      case "a":
      case "g":
      case "p":
      case "li":
        break;
      case "input":
        var u = null,
          n = null,
          i = null,
          c = null,
          o = null,
          g = null,
          x = null;
        for (p in a) {
          var A = a[p];
          if (a.hasOwnProperty(p) && A != null)
            switch (p) {
              case "checked":
                break;
              case "value":
                break;
              case "defaultValue":
                o = A;
              default:
                e.hasOwnProperty(p) || ul(l, t, p, null, e, A);
            }
        }
        for (var b in e) {
          var p = e[b];
          if (((A = a[b]), e.hasOwnProperty(b) && (p != null || A != null)))
            switch (b) {
              case "type":
                n = p;
                break;
              case "name":
                u = p;
                break;
              case "checked":
                g = p;
                break;
              case "defaultChecked":
                x = p;
                break;
              case "value":
                i = p;
                break;
              case "defaultValue":
                c = p;
                break;
              case "children":
              case "dangerouslySetInnerHTML":
                if (p != null) throw Error(f(137, t));
                break;
              default:
                p !== A && ul(l, t, b, p, e, A);
            }
        }
        mi(l, i, c, o, g, x, n, u);
        return;
      case "select":
        p = i = c = b = null;
        for (n in a)
          if (((o = a[n]), a.hasOwnProperty(n) && o != null))
            switch (n) {
              case "value":
                break;
              case "multiple":
                p = o;
              default:
                e.hasOwnProperty(n) || ul(l, t, n, null, e, o);
            }
        for (u in e)
          if (
            ((n = e[u]),
            (o = a[u]),
            e.hasOwnProperty(u) && (n != null || o != null))
          )
            switch (u) {
              case "value":
                b = n;
                break;
              case "defaultValue":
                c = n;
                break;
              case "multiple":
                i = n;
              default:
                n !== o && ul(l, t, u, n, e, o);
            }
        ((t = c),
          (a = i),
          (e = p),
          b != null
            ? Ia(l, !!a, b, !1)
            : !!e != !!a &&
              (t != null ? Ia(l, !!a, t, !0) : Ia(l, !!a, a ? [] : "", !1)));
        return;
      case "textarea":
        p = b = null;
        for (c in a)
          if (
            ((u = a[c]),
            a.hasOwnProperty(c) && u != null && !e.hasOwnProperty(c))
          )
            switch (c) {
              case "value":
                break;
              case "children":
                break;
              default:
                ul(l, t, c, null, e, u);
            }
        for (i in e)
          if (
            ((u = e[i]),
            (n = a[i]),
            e.hasOwnProperty(i) && (u != null || n != null))
          )
            switch (i) {
              case "value":
                b = u;
                break;
              case "defaultValue":
                p = u;
                break;
              case "children":
                break;
              case "dangerouslySetInnerHTML":
                if (u != null) throw Error(f(91));
                break;
              default:
                u !== n && ul(l, t, i, u, e, n);
            }
        Wf(l, b, p);
        return;
      case "option":
        for (var _ in a)
          ((b = a[_]),
            a.hasOwnProperty(_) &&
              b != null &&
              !e.hasOwnProperty(_) &&
              (_ === "selected" ? (l.selected = !1) : ul(l, t, _, null, e, b)));
        for (o in e)
          ((b = e[o]),
            (p = a[o]),
            e.hasOwnProperty(o) &&
              b !== p &&
              (b != null || p != null) &&
              (o === "selected"
                ? (l.selected =
                    b && typeof b != "function" && typeof b != "symbol")
                : ul(l, t, o, b, e, p)));
        return;
      case "img":
      case "link":
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "keygen":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
      case "menuitem":
        for (var Y in a)
          ((b = a[Y]),
            a.hasOwnProperty(Y) &&
              b != null &&
              !e.hasOwnProperty(Y) &&
              ul(l, t, Y, null, e, b));
        for (g in e)
          if (
            ((b = e[g]),
            (p = a[g]),
            e.hasOwnProperty(g) && b !== p && (b != null || p != null))
          )
            switch (g) {
              case "children":
              case "dangerouslySetInnerHTML":
                if (b != null) throw Error(f(137, t));
                break;
              default:
                ul(l, t, g, b, e, p);
            }
        return;
      default:
        if (vi(t)) {
          for (var nl in a)
            ((b = a[nl]),
              a.hasOwnProperty(nl) &&
                b !== void 0 &&
                !e.hasOwnProperty(nl) &&
                tf(l, t, nl, void 0, e, b));
          for (x in e)
            ((b = e[x]),
              (p = a[x]),
              !e.hasOwnProperty(x) ||
                b === p ||
                (b === void 0 && p === void 0) ||
                tf(l, t, x, b, e, p));
          return;
        }
    }
    for (var h in a)
      ((b = a[h]),
        a.hasOwnProperty(h) &&
          b != null &&
          !e.hasOwnProperty(h) &&
          ul(l, t, h, null, e, b));
    for (A in e)
      ((b = e[A]),
        (p = a[A]),
        !e.hasOwnProperty(A) ||
          b === p ||
          (b == null && p == null) ||
          ul(l, t, A, b, e, p));
  }
  function Pr(l) {
    switch (l) {
      case "css":
      case "script":
      case "font":
      case "img":
      case "image":
      case "input":
      case "link":
        return !0;
      default:
        return !1;
    }
  }
  function Wm() {
    if (typeof performance.getEntriesByType == "function") {
      for (
        var l = 0, t = 0, a = performance.getEntriesByType("resource"), e = 0;
        e < a.length;
        e++
      ) {
        var u = a[e],
          n = u.transferSize,
          i = u.initiatorType,
          c = u.duration;
        if (n && c && Pr(i)) {
          for (i = 0, c = u.responseEnd, e += 1; e < a.length; e++) {
            var o = a[e],
              g = o.startTime;
            if (g > c) break;
            var x = o.transferSize,
              A = o.initiatorType;
            x &&
              Pr(A) &&
              ((o = o.responseEnd), (i += x * (o < c ? 1 : (c - g) / (o - g))));
          }
          if ((--e, (t += (8 * (n + i)) / (u.duration / 1e3)), l++, 10 < l))
            break;
        }
      }
      if (0 < l) return t / l / 1e6;
    }
    return navigator.connection &&
      ((l = navigator.connection.downlink), typeof l == "number")
      ? l
      : 5;
  }
  var af = null,
    ef = null;
  function qn(l) {
    return l.nodeType === 9 ? l : l.ownerDocument;
  }
  function ld(l) {
    switch (l) {
      case "http://www.w3.org/2000/svg":
        return 1;
      case "http://www.w3.org/1998/Math/MathML":
        return 2;
      default:
        return 0;
    }
  }
  function td(l, t) {
    if (l === 0)
      switch (t) {
        case "svg":
          return 1;
        case "math":
          return 2;
        default:
          return 0;
      }
    return l === 1 && t === "foreignObject" ? 0 : l;
  }
  function uf(l, t) {
    return (
      l === "textarea" ||
      l === "noscript" ||
      typeof t.children == "string" ||
      typeof t.children == "number" ||
      typeof t.children == "bigint" ||
      (typeof t.dangerouslySetInnerHTML == "object" &&
        t.dangerouslySetInnerHTML !== null &&
        t.dangerouslySetInnerHTML.__html != null)
    );
  }
  var nf = null;
  function km() {
    var l = window.event;
    return l && l.type === "popstate"
      ? l === nf
        ? !1
        : ((nf = l), !0)
      : ((nf = null), !1);
  }
  var ad = typeof setTimeout == "function" ? setTimeout : void 0,
    Fm = typeof clearTimeout == "function" ? clearTimeout : void 0,
    ed = typeof Promise == "function" ? Promise : void 0,
    $m =
      typeof queueMicrotask == "function"
        ? queueMicrotask
        : typeof ed < "u"
          ? function (l) {
              return ed.resolve(null).then(l).catch(Im);
            }
          : ad;
  function Im(l) {
    setTimeout(function () {
      throw l;
    });
  }
  function ya(l) {
    return l === "head";
  }
  function ud(l, t) {
    var a = t,
      e = 0;
    do {
      var u = a.nextSibling;
      if ((l.removeChild(a), u && u.nodeType === 8))
        if (((a = u.data), a === "/$" || a === "/&")) {
          if (e === 0) {
            (l.removeChild(u), je(t));
            return;
          }
          e--;
        } else if (
          a === "$" ||
          a === "$?" ||
          a === "$~" ||
          a === "$!" ||
          a === "&"
        )
          e++;
        else if (a === "html") pu(l.ownerDocument.documentElement);
        else if (a === "head") {
          ((a = l.ownerDocument.head), pu(a));
          for (var n = a.firstChild; n; ) {
            var i = n.nextSibling,
              c = n.nodeName;
            (n[Re] ||
              c === "SCRIPT" ||
              c === "STYLE" ||
              (c === "LINK" && n.rel.toLowerCase() === "stylesheet") ||
              a.removeChild(n),
              (n = i));
          }
        } else a === "body" && pu(l.ownerDocument.body);
      a = u;
    } while (a);
    je(t);
  }
  function nd(l, t) {
    var a = l;
    l = 0;
    do {
      var e = a.nextSibling;
      if (
        (a.nodeType === 1
          ? t
            ? ((a._stashedDisplay = a.style.display),
              (a.style.display = "none"))
            : ((a.style.display = a._stashedDisplay || ""),
              a.getAttribute("style") === "" && a.removeAttribute("style"))
          : a.nodeType === 3 &&
            (t
              ? ((a._stashedText = a.nodeValue), (a.nodeValue = ""))
              : (a.nodeValue = a._stashedText || "")),
        e && e.nodeType === 8)
      )
        if (((a = e.data), a === "/$")) {
          if (l === 0) break;
          l--;
        } else (a !== "$" && a !== "$?" && a !== "$~" && a !== "$!") || l++;
      a = e;
    } while (a);
  }
  function cf(l) {
    var t = l.firstChild;
    for (t && t.nodeType === 10 && (t = t.nextSibling); t; ) {
      var a = t;
      switch (((t = t.nextSibling), a.nodeName)) {
        case "HTML":
        case "HEAD":
        case "BODY":
          (cf(a), ri(a));
          continue;
        case "SCRIPT":
        case "STYLE":
          continue;
        case "LINK":
          if (a.rel.toLowerCase() === "stylesheet") continue;
      }
      l.removeChild(a);
    }
  }
  function Pm(l, t, a, e) {
    for (; l.nodeType === 1; ) {
      var u = a;
      if (l.nodeName.toLowerCase() !== t.toLowerCase()) {
        if (!e && (l.nodeName !== "INPUT" || l.type !== "hidden")) break;
      } else if (e) {
        if (!l[Re])
          switch (t) {
            case "meta":
              if (!l.hasAttribute("itemprop")) break;
              return l;
            case "link":
              if (
                ((n = l.getAttribute("rel")),
                n === "stylesheet" && l.hasAttribute("data-precedence"))
              )
                break;
              if (
                n !== u.rel ||
                l.getAttribute("href") !==
                  (u.href == null || u.href === "" ? null : u.href) ||
                l.getAttribute("crossorigin") !==
                  (u.crossOrigin == null ? null : u.crossOrigin) ||
                l.getAttribute("title") !== (u.title == null ? null : u.title)
              )
                break;
              return l;
            case "style":
              if (l.hasAttribute("data-precedence")) break;
              return l;
            case "script":
              if (
                ((n = l.getAttribute("src")),
                (n !== (u.src == null ? null : u.src) ||
                  l.getAttribute("type") !== (u.type == null ? null : u.type) ||
                  l.getAttribute("crossorigin") !==
                    (u.crossOrigin == null ? null : u.crossOrigin)) &&
                  n &&
                  l.hasAttribute("async") &&
                  !l.hasAttribute("itemprop"))
              )
                break;
              return l;
            default:
              return l;
          }
      } else if (t === "input" && l.type === "hidden") {
        var n = u.name == null ? null : "" + u.name;
        if (u.type === "hidden" && l.getAttribute("name") === n) return l;
      } else return l;
      if (((l = vt(l.nextSibling)), l === null)) break;
    }
    return null;
  }
  function lh(l, t, a) {
    if (t === "") return null;
    for (; l.nodeType !== 3; )
      if (
        ((l.nodeType !== 1 || l.nodeName !== "INPUT" || l.type !== "hidden") &&
          !a) ||
        ((l = vt(l.nextSibling)), l === null)
      )
        return null;
    return l;
  }
  function id(l, t) {
    for (; l.nodeType !== 8; )
      if (
        ((l.nodeType !== 1 || l.nodeName !== "INPUT" || l.type !== "hidden") &&
          !t) ||
        ((l = vt(l.nextSibling)), l === null)
      )
        return null;
    return l;
  }
  function ff(l) {
    return l.data === "$?" || l.data === "$~";
  }
  function sf(l) {
    return (
      l.data === "$!" ||
      (l.data === "$?" && l.ownerDocument.readyState !== "loading")
    );
  }
  function th(l, t) {
    var a = l.ownerDocument;
    if (l.data === "$~") l._reactRetry = t;
    else if (l.data !== "$?" || a.readyState !== "loading") t();
    else {
      var e = function () {
        (t(), a.removeEventListener("DOMContentLoaded", e));
      };
      (a.addEventListener("DOMContentLoaded", e), (l._reactRetry = e));
    }
  }
  function vt(l) {
    for (; l != null; l = l.nextSibling) {
      var t = l.nodeType;
      if (t === 1 || t === 3) break;
      if (t === 8) {
        if (
          ((t = l.data),
          t === "$" ||
            t === "$!" ||
            t === "$?" ||
            t === "$~" ||
            t === "&" ||
            t === "F!" ||
            t === "F")
        )
          break;
        if (t === "/$" || t === "/&") return null;
      }
    }
    return l;
  }
  var of = null;
  function cd(l) {
    l = l.nextSibling;
    for (var t = 0; l; ) {
      if (l.nodeType === 8) {
        var a = l.data;
        if (a === "/$" || a === "/&") {
          if (t === 0) return vt(l.nextSibling);
          t--;
        } else
          (a !== "$" && a !== "$!" && a !== "$?" && a !== "$~" && a !== "&") ||
            t++;
      }
      l = l.nextSibling;
    }
    return null;
  }
  function fd(l) {
    l = l.previousSibling;
    for (var t = 0; l; ) {
      if (l.nodeType === 8) {
        var a = l.data;
        if (a === "$" || a === "$!" || a === "$?" || a === "$~" || a === "&") {
          if (t === 0) return l;
          t--;
        } else (a !== "/$" && a !== "/&") || t++;
      }
      l = l.previousSibling;
    }
    return null;
  }
  function sd(l, t, a) {
    switch (((t = qn(a)), l)) {
      case "html":
        if (((l = t.documentElement), !l)) throw Error(f(452));
        return l;
      case "head":
        if (((l = t.head), !l)) throw Error(f(453));
        return l;
      case "body":
        if (((l = t.body), !l)) throw Error(f(454));
        return l;
      default:
        throw Error(f(451));
    }
  }
  function pu(l) {
    for (var t = l.attributes; t.length; ) l.removeAttributeNode(t[0]);
    ri(l);
  }
  var yt = new Map(),
    od = new Set();
  function Rn(l) {
    return typeof l.getRootNode == "function"
      ? l.getRootNode()
      : l.nodeType === 9
        ? l
        : l.ownerDocument;
  }
  var Wt = B.d;
  B.d = { f: ah, r: eh, D: uh, C: nh, L: ih, m: ch, X: sh, S: fh, M: oh };
  function ah() {
    var l = Wt.f(),
      t = On();
    return l || t;
  }
  function eh(l) {
    var t = ka(l);
    t !== null && t.tag === 5 && t.type === "form" ? Mo(t) : Wt.r(l);
  }
  var Me = typeof document > "u" ? null : document;
  function rd(l, t, a) {
    var e = Me;
    if (e && typeof t == "string" && t) {
      var u = ft(t);
      ((u = 'link[rel="' + l + '"][href="' + u + '"]'),
        typeof a == "string" && (u += '[crossorigin="' + a + '"]'),
        od.has(u) ||
          (od.add(u),
          (l = { rel: l, crossOrigin: a, href: t }),
          e.querySelector(u) === null &&
            ((t = e.createElement("link")),
            Hl(t, "link", l),
            Ml(t),
            e.head.appendChild(t))));
    }
  }
  function uh(l) {
    (Wt.D(l), rd("dns-prefetch", l, null));
  }
  function nh(l, t) {
    (Wt.C(l, t), rd("preconnect", l, t));
  }
  function ih(l, t, a) {
    Wt.L(l, t, a);
    var e = Me;
    if (e && l && t) {
      var u = 'link[rel="preload"][as="' + ft(t) + '"]';
      t === "image" && a && a.imageSrcSet
        ? ((u += '[imagesrcset="' + ft(a.imageSrcSet) + '"]'),
          typeof a.imageSizes == "string" &&
            (u += '[imagesizes="' + ft(a.imageSizes) + '"]'))
        : (u += '[href="' + ft(l) + '"]');
      var n = u;
      switch (t) {
        case "style":
          n = Oe(l);
          break;
        case "script":
          n = De(l);
      }
      yt.has(n) ||
        ((l = C(
          {
            rel: "preload",
            href: t === "image" && a && a.imageSrcSet ? void 0 : l,
            as: t,
          },
          a,
        )),
        yt.set(n, l),
        e.querySelector(u) !== null ||
          (t === "style" && e.querySelector(Su(n))) ||
          (t === "script" && e.querySelector(xu(n))) ||
          ((t = e.createElement("link")),
          Hl(t, "link", l),
          Ml(t),
          e.head.appendChild(t)));
    }
  }
  function ch(l, t) {
    Wt.m(l, t);
    var a = Me;
    if (a && l) {
      var e = t && typeof t.as == "string" ? t.as : "script",
        u =
          'link[rel="modulepreload"][as="' + ft(e) + '"][href="' + ft(l) + '"]',
        n = u;
      switch (e) {
        case "audioworklet":
        case "paintworklet":
        case "serviceworker":
        case "sharedworker":
        case "worker":
        case "script":
          n = De(l);
      }
      if (
        !yt.has(n) &&
        ((l = C({ rel: "modulepreload", href: l }, t)),
        yt.set(n, l),
        a.querySelector(u) === null)
      ) {
        switch (e) {
          case "audioworklet":
          case "paintworklet":
          case "serviceworker":
          case "sharedworker":
          case "worker":
          case "script":
            if (a.querySelector(xu(n))) return;
        }
        ((e = a.createElement("link")),
          Hl(e, "link", l),
          Ml(e),
          a.head.appendChild(e));
      }
    }
  }
  function fh(l, t, a) {
    Wt.S(l, t, a);
    var e = Me;
    if (e && l) {
      var u = Fa(e).hoistableStyles,
        n = Oe(l);
      t = t || "default";
      var i = u.get(n);
      if (!i) {
        var c = { loading: 0, preload: null };
        if ((i = e.querySelector(Su(n)))) c.loading = 5;
        else {
          ((l = C({ rel: "stylesheet", href: l, "data-precedence": t }, a)),
            (a = yt.get(n)) && rf(l, a));
          var o = (i = e.createElement("link"));
          (Ml(o),
            Hl(o, "link", l),
            (o._p = new Promise(function (g, x) {
              ((o.onload = g), (o.onerror = x));
            })),
            o.addEventListener("load", function () {
              c.loading |= 1;
            }),
            o.addEventListener("error", function () {
              c.loading |= 2;
            }),
            (c.loading |= 4),
            Ln(i, t, e));
        }
        ((i = { type: "stylesheet", instance: i, count: 1, state: c }),
          u.set(n, i));
      }
    }
  }
  function sh(l, t) {
    Wt.X(l, t);
    var a = Me;
    if (a && l) {
      var e = Fa(a).hoistableScripts,
        u = De(l),
        n = e.get(u);
      n ||
        ((n = a.querySelector(xu(u))),
        n ||
          ((l = C({ src: l, async: !0 }, t)),
          (t = yt.get(u)) && df(l, t),
          (n = a.createElement("script")),
          Ml(n),
          Hl(n, "link", l),
          a.head.appendChild(n)),
        (n = { type: "script", instance: n, count: 1, state: null }),
        e.set(u, n));
    }
  }
  function oh(l, t) {
    Wt.M(l, t);
    var a = Me;
    if (a && l) {
      var e = Fa(a).hoistableScripts,
        u = De(l),
        n = e.get(u);
      n ||
        ((n = a.querySelector(xu(u))),
        n ||
          ((l = C({ src: l, async: !0, type: "module" }, t)),
          (t = yt.get(u)) && df(l, t),
          (n = a.createElement("script")),
          Ml(n),
          Hl(n, "link", l),
          a.head.appendChild(n)),
        (n = { type: "script", instance: n, count: 1, state: null }),
        e.set(u, n));
    }
  }
  function dd(l, t, a, e) {
    var u = (u = Ft.current) ? Rn(u) : null;
    if (!u) throw Error(f(446));
    switch (l) {
      case "meta":
      case "title":
        return null;
      case "style":
        return typeof a.precedence == "string" && typeof a.href == "string"
          ? ((t = Oe(a.href)),
            (a = Fa(u).hoistableStyles),
            (e = a.get(t)),
            e ||
              ((e = { type: "style", instance: null, count: 0, state: null }),
              a.set(t, e)),
            e)
          : { type: "void", instance: null, count: 0, state: null };
      case "link":
        if (
          a.rel === "stylesheet" &&
          typeof a.href == "string" &&
          typeof a.precedence == "string"
        ) {
          l = Oe(a.href);
          var n = Fa(u).hoistableStyles,
            i = n.get(l);
          if (
            (i ||
              ((u = u.ownerDocument || u),
              (i = {
                type: "stylesheet",
                instance: null,
                count: 0,
                state: { loading: 0, preload: null },
              }),
              n.set(l, i),
              (n = u.querySelector(Su(l))) &&
                !n._p &&
                ((i.instance = n), (i.state.loading = 5)),
              yt.has(l) ||
                ((a = {
                  rel: "preload",
                  as: "style",
                  href: a.href,
                  crossOrigin: a.crossOrigin,
                  integrity: a.integrity,
                  media: a.media,
                  hrefLang: a.hrefLang,
                  referrerPolicy: a.referrerPolicy,
                }),
                yt.set(l, a),
                n || rh(u, l, a, i.state))),
            t && e === null)
          )
            throw Error(f(528, ""));
          return i;
        }
        if (t && e !== null) throw Error(f(529, ""));
        return null;
      case "script":
        return (
          (t = a.async),
          (a = a.src),
          typeof a == "string" &&
          t &&
          typeof t != "function" &&
          typeof t != "symbol"
            ? ((t = De(a)),
              (a = Fa(u).hoistableScripts),
              (e = a.get(t)),
              e ||
                ((e = {
                  type: "script",
                  instance: null,
                  count: 0,
                  state: null,
                }),
                a.set(t, e)),
              e)
            : { type: "void", instance: null, count: 0, state: null }
        );
      default:
        throw Error(f(444, l));
    }
  }
  function Oe(l) {
    return 'href="' + ft(l) + '"';
  }
  function Su(l) {
    return 'link[rel="stylesheet"][' + l + "]";
  }
  function md(l) {
    return C({}, l, { "data-precedence": l.precedence, precedence: null });
  }
  function rh(l, t, a, e) {
    l.querySelector('link[rel="preload"][as="style"][' + t + "]")
      ? (e.loading = 1)
      : ((t = l.createElement("link")),
        (e.preload = t),
        t.addEventListener("load", function () {
          return (e.loading |= 1);
        }),
        t.addEventListener("error", function () {
          return (e.loading |= 2);
        }),
        Hl(t, "link", a),
        Ml(t),
        l.head.appendChild(t));
  }
  function De(l) {
    return '[src="' + ft(l) + '"]';
  }
  function xu(l) {
    return "script[async]" + l;
  }
  function hd(l, t, a) {
    if ((t.count++, t.instance === null))
      switch (t.type) {
        case "style":
          var e = l.querySelector('style[data-href~="' + ft(a.href) + '"]');
          if (e) return ((t.instance = e), Ml(e), e);
          var u = C({}, a, {
            "data-href": a.href,
            "data-precedence": a.precedence,
            href: null,
            precedence: null,
          });
          return (
            (e = (l.ownerDocument || l).createElement("style")),
            Ml(e),
            Hl(e, "style", u),
            Ln(e, a.precedence, l),
            (t.instance = e)
          );
        case "stylesheet":
          u = Oe(a.href);
          var n = l.querySelector(Su(u));
          if (n) return ((t.state.loading |= 4), (t.instance = n), Ml(n), n);
          ((e = md(a)),
            (u = yt.get(u)) && rf(e, u),
            (n = (l.ownerDocument || l).createElement("link")),
            Ml(n));
          var i = n;
          return (
            (i._p = new Promise(function (c, o) {
              ((i.onload = c), (i.onerror = o));
            })),
            Hl(n, "link", e),
            (t.state.loading |= 4),
            Ln(n, a.precedence, l),
            (t.instance = n)
          );
        case "script":
          return (
            (n = De(a.src)),
            (u = l.querySelector(xu(n)))
              ? ((t.instance = u), Ml(u), u)
              : ((e = a),
                (u = yt.get(n)) && ((e = C({}, a)), df(e, u)),
                (l = l.ownerDocument || l),
                (u = l.createElement("script")),
                Ml(u),
                Hl(u, "link", e),
                l.head.appendChild(u),
                (t.instance = u))
          );
        case "void":
          return null;
        default:
          throw Error(f(443, t.type));
      }
    else
      t.type === "stylesheet" &&
        (t.state.loading & 4) === 0 &&
        ((e = t.instance), (t.state.loading |= 4), Ln(e, a.precedence, l));
    return t.instance;
  }
  function Ln(l, t, a) {
    for (
      var e = a.querySelectorAll(
          'link[rel="stylesheet"][data-precedence],style[data-precedence]',
        ),
        u = e.length ? e[e.length - 1] : null,
        n = u,
        i = 0;
      i < e.length;
      i++
    ) {
      var c = e[i];
      if (c.dataset.precedence === t) n = c;
      else if (n !== u) break;
    }
    n
      ? n.parentNode.insertBefore(l, n.nextSibling)
      : ((t = a.nodeType === 9 ? a.head : a), t.insertBefore(l, t.firstChild));
  }
  function rf(l, t) {
    (l.crossOrigin == null && (l.crossOrigin = t.crossOrigin),
      l.referrerPolicy == null && (l.referrerPolicy = t.referrerPolicy),
      l.title == null && (l.title = t.title));
  }
  function df(l, t) {
    (l.crossOrigin == null && (l.crossOrigin = t.crossOrigin),
      l.referrerPolicy == null && (l.referrerPolicy = t.referrerPolicy),
      l.integrity == null && (l.integrity = t.integrity));
  }
  var Yn = null;
  function vd(l, t, a) {
    if (Yn === null) {
      var e = new Map(),
        u = (Yn = new Map());
      u.set(a, e);
    } else ((u = Yn), (e = u.get(a)), e || ((e = new Map()), u.set(a, e)));
    if (e.has(l)) return e;
    for (
      e.set(l, null), a = a.getElementsByTagName(l), u = 0;
      u < a.length;
      u++
    ) {
      var n = a[u];
      if (
        !(
          n[Re] ||
          n[Nl] ||
          (l === "link" && n.getAttribute("rel") === "stylesheet")
        ) &&
        n.namespaceURI !== "http://www.w3.org/2000/svg"
      ) {
        var i = n.getAttribute(t) || "";
        i = l + i;
        var c = e.get(i);
        c ? c.push(n) : e.set(i, [n]);
      }
    }
    return e;
  }
  function yd(l, t, a) {
    ((l = l.ownerDocument || l),
      l.head.insertBefore(
        a,
        t === "title" ? l.querySelector("head > title") : null,
      ));
  }
  function dh(l, t, a) {
    if (a === 1 || t.itemProp != null) return !1;
    switch (l) {
      case "meta":
      case "title":
        return !0;
      case "style":
        if (
          typeof t.precedence != "string" ||
          typeof t.href != "string" ||
          t.href === ""
        )
          break;
        return !0;
      case "link":
        if (
          typeof t.rel != "string" ||
          typeof t.href != "string" ||
          t.href === "" ||
          t.onLoad ||
          t.onError
        )
          break;
        return t.rel === "stylesheet"
          ? ((l = t.disabled), typeof t.precedence == "string" && l == null)
          : !0;
      case "script":
        if (
          t.async &&
          typeof t.async != "function" &&
          typeof t.async != "symbol" &&
          !t.onLoad &&
          !t.onError &&
          t.src &&
          typeof t.src == "string"
        )
          return !0;
    }
    return !1;
  }
  function gd(l) {
    return !(l.type === "stylesheet" && (l.state.loading & 3) === 0);
  }
  function mh(l, t, a, e) {
    if (
      a.type === "stylesheet" &&
      (typeof e.media != "string" || matchMedia(e.media).matches !== !1) &&
      (a.state.loading & 4) === 0
    ) {
      if (a.instance === null) {
        var u = Oe(e.href),
          n = t.querySelector(Su(u));
        if (n) {
          ((t = n._p),
            t !== null &&
              typeof t == "object" &&
              typeof t.then == "function" &&
              (l.count++, (l = Vn.bind(l)), t.then(l, l)),
            (a.state.loading |= 4),
            (a.instance = n),
            Ml(n));
          return;
        }
        ((n = t.ownerDocument || t),
          (e = md(e)),
          (u = yt.get(u)) && rf(e, u),
          (n = n.createElement("link")),
          Ml(n));
        var i = n;
        ((i._p = new Promise(function (c, o) {
          ((i.onload = c), (i.onerror = o));
        })),
          Hl(n, "link", e),
          (a.instance = n));
      }
      (l.stylesheets === null && (l.stylesheets = new Map()),
        l.stylesheets.set(a, t),
        (t = a.state.preload) &&
          (a.state.loading & 3) === 0 &&
          (l.count++,
          (a = Vn.bind(l)),
          t.addEventListener("load", a),
          t.addEventListener("error", a)));
    }
  }
  var mf = 0;
  function hh(l, t) {
    return (
      l.stylesheets && l.count === 0 && Gn(l, l.stylesheets),
      0 < l.count || 0 < l.imgCount
        ? function (a) {
            var e = setTimeout(function () {
              if ((l.stylesheets && Gn(l, l.stylesheets), l.unsuspend)) {
                var n = l.unsuspend;
                ((l.unsuspend = null), n());
              }
            }, 6e4 + t);
            0 < l.imgBytes && mf === 0 && (mf = 62500 * Wm());
            var u = setTimeout(
              function () {
                if (
                  ((l.waitingForImages = !1),
                  l.count === 0 &&
                    (l.stylesheets && Gn(l, l.stylesheets), l.unsuspend))
                ) {
                  var n = l.unsuspend;
                  ((l.unsuspend = null), n());
                }
              },
              (l.imgBytes > mf ? 50 : 800) + t,
            );
            return (
              (l.unsuspend = a),
              function () {
                ((l.unsuspend = null), clearTimeout(e), clearTimeout(u));
              }
            );
          }
        : null
    );
  }
  function Vn() {
    if (
      (this.count--,
      this.count === 0 && (this.imgCount === 0 || !this.waitingForImages))
    ) {
      if (this.stylesheets) Gn(this, this.stylesheets);
      else if (this.unsuspend) {
        var l = this.unsuspend;
        ((this.unsuspend = null), l());
      }
    }
  }
  var Xn = null;
  function Gn(l, t) {
    ((l.stylesheets = null),
      l.unsuspend !== null &&
        (l.count++,
        (Xn = new Map()),
        t.forEach(vh, l),
        (Xn = null),
        Vn.call(l)));
  }
  function vh(l, t) {
    if (!(t.state.loading & 4)) {
      var a = Xn.get(l);
      if (a) var e = a.get(null);
      else {
        ((a = new Map()), Xn.set(l, a));
        for (
          var u = l.querySelectorAll(
              "link[data-precedence],style[data-precedence]",
            ),
            n = 0;
          n < u.length;
          n++
        ) {
          var i = u[n];
          (i.nodeName === "LINK" || i.getAttribute("media") !== "not all") &&
            (a.set(i.dataset.precedence, i), (e = i));
        }
        e && a.set(null, e);
      }
      ((u = t.instance),
        (i = u.getAttribute("data-precedence")),
        (n = a.get(i) || e),
        n === e && a.set(null, u),
        a.set(i, u),
        this.count++,
        (e = Vn.bind(this)),
        u.addEventListener("load", e),
        u.addEventListener("error", e),
        n
          ? n.parentNode.insertBefore(u, n.nextSibling)
          : ((l = l.nodeType === 9 ? l.head : l),
            l.insertBefore(u, l.firstChild)),
        (t.state.loading |= 4));
    }
  }
  var zu = {
    $$typeof: Vl,
    Provider: null,
    Consumer: null,
    _currentValue: G,
    _currentValue2: G,
    _threadCount: 0,
  };
  function yh(l, t, a, e, u, n, i, c, o) {
    ((this.tag = 1),
      (this.containerInfo = l),
      (this.pingCache = this.current = this.pendingChildren = null),
      (this.timeoutHandle = -1),
      (this.callbackNode =
        this.next =
        this.pendingContext =
        this.context =
        this.cancelPendingCommit =
          null),
      (this.callbackPriority = 0),
      (this.expirationTimes = ci(-1)),
      (this.entangledLanes =
        this.shellSuspendCounter =
        this.errorRecoveryDisabledLanes =
        this.expiredLanes =
        this.warmLanes =
        this.pingedLanes =
        this.suspendedLanes =
        this.pendingLanes =
          0),
      (this.entanglements = ci(0)),
      (this.hiddenUpdates = ci(null)),
      (this.identifierPrefix = e),
      (this.onUncaughtError = u),
      (this.onCaughtError = n),
      (this.onRecoverableError = i),
      (this.pooledCache = null),
      (this.pooledCacheLanes = 0),
      (this.formState = o),
      (this.incompleteTransitions = new Map()));
  }
  function bd(l, t, a, e, u, n, i, c, o, g, x, A) {
    return (
      (l = new yh(l, t, a, i, o, g, x, A, c)),
      (t = 1),
      n === !0 && (t |= 24),
      (n = Pl(3, null, null, t)),
      (l.current = n),
      (n.stateNode = l),
      (t = Ki()),
      t.refCount++,
      (l.pooledCache = t),
      t.refCount++,
      (n.memoizedState = { element: e, isDehydrated: a, cache: t }),
      ki(n),
      l
    );
  }
  function pd(l) {
    return l ? ((l = ie), l) : ie;
  }
  function Sd(l, t, a, e, u, n) {
    ((u = pd(u)),
      e.context === null ? (e.context = u) : (e.pendingContext = u),
      (e = na(t)),
      (e.payload = { element: a }),
      (n = n === void 0 ? null : n),
      n !== null && (e.callback = n),
      (a = ia(l, e, t)),
      a !== null && (wl(a, l, t), lu(a, l, t)));
  }
  function xd(l, t) {
    if (((l = l.memoizedState), l !== null && l.dehydrated !== null)) {
      var a = l.retryLane;
      l.retryLane = a !== 0 && a < t ? a : t;
    }
  }
  function hf(l, t) {
    (xd(l, t), (l = l.alternate) && xd(l, t));
  }
  function zd(l) {
    if (l.tag === 13 || l.tag === 31) {
      var t = Da(l, 67108864);
      (t !== null && wl(t, l, 67108864), hf(l, 67108864));
    }
  }
  function Td(l) {
    if (l.tag === 13 || l.tag === 31) {
      var t = ut();
      t = fi(t);
      var a = Da(l, t);
      (a !== null && wl(a, l, t), hf(l, t));
    }
  }
  var Qn = !0;
  function gh(l, t, a, e) {
    var u = T.T;
    T.T = null;
    var n = B.p;
    try {
      ((B.p = 2), vf(l, t, a, e));
    } finally {
      ((B.p = n), (T.T = u));
    }
  }
  function bh(l, t, a, e) {
    var u = T.T;
    T.T = null;
    var n = B.p;
    try {
      ((B.p = 8), vf(l, t, a, e));
    } finally {
      ((B.p = n), (T.T = u));
    }
  }
  function vf(l, t, a, e) {
    if (Qn) {
      var u = yf(e);
      if (u === null) (lf(l, t, e, Zn, a), Ed(l, e));
      else if (Sh(u, l, t, a, e)) e.stopPropagation();
      else if ((Ed(l, e), t & 4 && -1 < ph.indexOf(l))) {
        for (; u !== null; ) {
          var n = ka(u);
          if (n !== null)
            switch (n.tag) {
              case 3:
                if (((n = n.stateNode), n.current.memoizedState.isDehydrated)) {
                  var i = Aa(n.pendingLanes);
                  if (i !== 0) {
                    var c = n;
                    for (c.pendingLanes |= 2, c.entangledLanes |= 2; i; ) {
                      var o = 1 << (31 - $l(i));
                      ((c.entanglements[1] |= o), (i &= ~o));
                    }
                    (Ot(n), (P & 6) === 0 && ((Cn = kl() + 500), yu(0)));
                  }
                }
                break;
              case 31:
              case 13:
                ((c = Da(n, 2)), c !== null && wl(c, n, 2), On(), hf(n, 2));
            }
          if (((n = yf(e)), n === null && lf(l, t, e, Zn, a), n === u)) break;
          u = n;
        }
        u !== null && e.stopPropagation();
      } else lf(l, t, e, null, a);
    }
  }
  function yf(l) {
    return ((l = gi(l)), gf(l));
  }
  var Zn = null;
  function gf(l) {
    if (((Zn = null), (l = Wa(l)), l !== null)) {
      var t = E(l);
      if (t === null) l = null;
      else {
        var a = t.tag;
        if (a === 13) {
          if (((l = M(t)), l !== null)) return l;
          l = null;
        } else if (a === 31) {
          if (((l = j(t)), l !== null)) return l;
          l = null;
        } else if (a === 3) {
          if (t.stateNode.current.memoizedState.isDehydrated)
            return t.tag === 3 ? t.stateNode.containerInfo : null;
          l = null;
        } else t !== l && (l = null);
      }
    }
    return ((Zn = l), null);
  }
  function Ad(l) {
    switch (l) {
      case "beforetoggle":
      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 "toggle":
      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 2;
      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 "touchmove":
      case "wheel":
      case "mouseenter":
      case "mouseleave":
      case "pointerenter":
      case "pointerleave":
        return 8;
      case "message":
        switch (u0()) {
          case Nf:
            return 2;
          case Uf:
            return 8;
          case Uu:
          case n0:
            return 32;
          case Bf:
            return 268435456;
          default:
            return 32;
        }
      default:
        return 32;
    }
  }
  var bf = !1,
    ga = null,
    ba = null,
    pa = null,
    Tu = new Map(),
    Au = new Map(),
    Sa = [],
    ph =
      "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".split(
        " ",
      );
  function Ed(l, t) {
    switch (l) {
      case "focusin":
      case "focusout":
        ga = null;
        break;
      case "dragenter":
      case "dragleave":
        ba = null;
        break;
      case "mouseover":
      case "mouseout":
        pa = null;
        break;
      case "pointerover":
      case "pointerout":
        Tu.delete(t.pointerId);
        break;
      case "gotpointercapture":
      case "lostpointercapture":
        Au.delete(t.pointerId);
    }
  }
  function Eu(l, t, a, e, u, n) {
    return l === null || l.nativeEvent !== n
      ? ((l = {
          blockedOn: t,
          domEventName: a,
          eventSystemFlags: e,
          nativeEvent: n,
          targetContainers: [u],
        }),
        t !== null && ((t = ka(t)), t !== null && zd(t)),
        l)
      : ((l.eventSystemFlags |= e),
        (t = l.targetContainers),
        u !== null && t.indexOf(u) === -1 && t.push(u),
        l);
  }
  function Sh(l, t, a, e, u) {
    switch (t) {
      case "focusin":
        return ((ga = Eu(ga, l, t, a, e, u)), !0);
      case "dragenter":
        return ((ba = Eu(ba, l, t, a, e, u)), !0);
      case "mouseover":
        return ((pa = Eu(pa, l, t, a, e, u)), !0);
      case "pointerover":
        var n = u.pointerId;
        return (Tu.set(n, Eu(Tu.get(n) || null, l, t, a, e, u)), !0);
      case "gotpointercapture":
        return (
          (n = u.pointerId),
          Au.set(n, Eu(Au.get(n) || null, l, t, a, e, u)),
          !0
        );
    }
    return !1;
  }
  function Cd(l) {
    var t = Wa(l.target);
    if (t !== null) {
      var a = E(t);
      if (a !== null) {
        if (((t = a.tag), t === 13)) {
          if (((t = M(a)), t !== null)) {
            ((l.blockedOn = t),
              Yf(l.priority, function () {
                Td(a);
              }));
            return;
          }
        } else if (t === 31) {
          if (((t = j(a)), t !== null)) {
            ((l.blockedOn = t),
              Yf(l.priority, function () {
                Td(a);
              }));
            return;
          }
        } else if (t === 3 && a.stateNode.current.memoizedState.isDehydrated) {
          l.blockedOn = a.tag === 3 ? a.stateNode.containerInfo : null;
          return;
        }
      }
    }
    l.blockedOn = null;
  }
  function Kn(l) {
    if (l.blockedOn !== null) return !1;
    for (var t = l.targetContainers; 0 < t.length; ) {
      var a = yf(l.nativeEvent);
      if (a === null) {
        a = l.nativeEvent;
        var e = new a.constructor(a.type, a);
        ((yi = e), a.target.dispatchEvent(e), (yi = null));
      } else return ((t = ka(a)), t !== null && zd(t), (l.blockedOn = a), !1);
      t.shift();
    }
    return !0;
  }
  function Md(l, t, a) {
    Kn(l) && a.delete(t);
  }
  function xh() {
    ((bf = !1),
      ga !== null && Kn(ga) && (ga = null),
      ba !== null && Kn(ba) && (ba = null),
      pa !== null && Kn(pa) && (pa = null),
      Tu.forEach(Md),
      Au.forEach(Md));
  }
  function Jn(l, t) {
    l.blockedOn === t &&
      ((l.blockedOn = null),
      bf ||
        ((bf = !0),
        s.unstable_scheduleCallback(s.unstable_NormalPriority, xh)));
  }
  var wn = null;
  function Od(l) {
    wn !== l &&
      ((wn = l),
      s.unstable_scheduleCallback(s.unstable_NormalPriority, function () {
        wn === l && (wn = null);
        for (var t = 0; t < l.length; t += 3) {
          var a = l[t],
            e = l[t + 1],
            u = l[t + 2];
          if (typeof e != "function") {
            if (gf(e || a) === null) continue;
            break;
          }
          var n = ka(a);
          n !== null &&
            (l.splice(t, 3),
            (t -= 3),
            vc(n, { pending: !0, data: u, method: a.method, action: e }, e, u));
        }
      }));
  }
  function je(l) {
    function t(o) {
      return Jn(o, l);
    }
    (ga !== null && Jn(ga, l),
      ba !== null && Jn(ba, l),
      pa !== null && Jn(pa, l),
      Tu.forEach(t),
      Au.forEach(t));
    for (var a = 0; a < Sa.length; a++) {
      var e = Sa[a];
      e.blockedOn === l && (e.blockedOn = null);
    }
    for (; 0 < Sa.length && ((a = Sa[0]), a.blockedOn === null); )
      (Cd(a), a.blockedOn === null && Sa.shift());
    if (((a = (l.ownerDocument || l).$$reactFormReplay), a != null))
      for (e = 0; e < a.length; e += 3) {
        var u = a[e],
          n = a[e + 1],
          i = u[Xl] || null;
        if (typeof n == "function") i || Od(a);
        else if (i) {
          var c = null;
          if (n && n.hasAttribute("formAction")) {
            if (((u = n), (i = n[Xl] || null))) c = i.formAction;
            else if (gf(u) !== null) continue;
          } else c = i.action;
          (typeof c == "function" ? (a[e + 1] = c) : (a.splice(e, 3), (e -= 3)),
            Od(a));
        }
      }
  }
  function Dd() {
    function l(n) {
      n.canIntercept &&
        n.info === "react-transition" &&
        n.intercept({
          handler: function () {
            return new Promise(function (i) {
              return (u = i);
            });
          },
          focusReset: "manual",
          scroll: "manual",
        });
    }
    function t() {
      (u !== null && (u(), (u = null)), e || setTimeout(a, 20));
    }
    function a() {
      if (!e && !navigation.transition) {
        var n = navigation.currentEntry;
        n &&
          n.url != null &&
          navigation.navigate(n.url, {
            state: n.getState(),
            info: "react-transition",
            history: "replace",
          });
      }
    }
    if (typeof navigation == "object") {
      var e = !1,
        u = null;
      return (
        navigation.addEventListener("navigate", l),
        navigation.addEventListener("navigatesuccess", t),
        navigation.addEventListener("navigateerror", t),
        setTimeout(a, 100),
        function () {
          ((e = !0),
            navigation.removeEventListener("navigate", l),
            navigation.removeEventListener("navigatesuccess", t),
            navigation.removeEventListener("navigateerror", t),
            u !== null && (u(), (u = null)));
        }
      );
    }
  }
  function pf(l) {
    this._internalRoot = l;
  }
  ((Wn.prototype.render = pf.prototype.render =
    function (l) {
      var t = this._internalRoot;
      if (t === null) throw Error(f(409));
      var a = t.current,
        e = ut();
      Sd(a, e, l, t, null, null);
    }),
    (Wn.prototype.unmount = pf.prototype.unmount =
      function () {
        var l = this._internalRoot;
        if (l !== null) {
          this._internalRoot = null;
          var t = l.containerInfo;
          (Sd(l.current, 2, null, l, null, null), On(), (t[wa] = null));
        }
      }));
  function Wn(l) {
    this._internalRoot = l;
  }
  Wn.prototype.unstable_scheduleHydration = function (l) {
    if (l) {
      var t = Lf();
      l = { blockedOn: null, target: l, priority: t };
      for (var a = 0; a < Sa.length && t !== 0 && t < Sa[a].priority; a++);
      (Sa.splice(a, 0, l), a === 0 && Cd(l));
    }
  };
  var jd = v.version;
  if (jd !== "19.2.4") throw Error(f(527, jd, "19.2.4"));
  B.findDOMNode = function (l) {
    var t = l._reactInternals;
    if (t === void 0)
      throw typeof l.render == "function"
        ? Error(f(188))
        : ((l = Object.keys(l).join(",")), Error(f(268, l)));
    return (
      (l = H(t)),
      (l = l !== null ? D(l) : null),
      (l = l === null ? null : l.stateNode),
      l
    );
  };
  var zh = {
    bundleType: 0,
    version: "19.2.4",
    rendererPackageName: "react-dom",
    currentDispatcherRef: T,
    reconcilerVersion: "19.2.4",
  };
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
    var kn = __REACT_DEVTOOLS_GLOBAL_HOOK__;
    if (!kn.isDisabled && kn.supportsFiber)
      try {
        ((_e = kn.inject(zh)), (Fl = kn));
      } catch {}
  }
  return (
    (Cu.createRoot = function (l, t) {
      if (!S(l)) throw Error(f(299));
      var a = !1,
        e = "",
        u = Ro,
        n = Lo,
        i = Yo;
      return (
        t != null &&
          (t.unstable_strictMode === !0 && (a = !0),
          t.identifierPrefix !== void 0 && (e = t.identifierPrefix),
          t.onUncaughtError !== void 0 && (u = t.onUncaughtError),
          t.onCaughtError !== void 0 && (n = t.onCaughtError),
          t.onRecoverableError !== void 0 && (i = t.onRecoverableError)),
        (t = bd(l, 1, !1, null, null, a, e, null, u, n, i, Dd)),
        (l[wa] = t.current),
        Pc(l),
        new pf(t)
      );
    }),
    (Cu.hydrateRoot = function (l, t, a) {
      if (!S(l)) throw Error(f(299));
      var e = !1,
        u = "",
        n = Ro,
        i = Lo,
        c = Yo,
        o = null;
      return (
        a != null &&
          (a.unstable_strictMode === !0 && (e = !0),
          a.identifierPrefix !== void 0 && (u = a.identifierPrefix),
          a.onUncaughtError !== void 0 && (n = a.onUncaughtError),
          a.onCaughtError !== void 0 && (i = a.onCaughtError),
          a.onRecoverableError !== void 0 && (c = a.onRecoverableError),
          a.formState !== void 0 && (o = a.formState)),
        (t = bd(l, 1, !0, t, a ?? null, e, u, o, n, i, c, Dd)),
        (t.context = pd(null)),
        (a = t.current),
        (e = ut()),
        (e = fi(e)),
        (u = na(e)),
        (u.callback = null),
        ia(a, u, e),
        (a = e),
        (t.current.lanes = a),
        qe(t, a),
        Ot(t),
        (l[wa] = t.current),
        Pc(l),
        new Wn(t)
      );
    }),
    (Cu.version = "19.2.4"),
    Cu
  );
}
var Rd;
function Ih() {
  if (Rd) return Sf.exports;
  Rd = 1;
  function s() {
    if (
      !(
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" ||
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"
      )
    )
      try {
        __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s);
      } catch (v) {
        console.error(v);
      }
  }
  return (s(), (Sf.exports = $h()), Sf.exports);
}
var Ph = Ih();
const Zd = Dt((s) => ({
  isFunnel: !0,
  setFunnel: () => s((v) => ({ isFunnel: !v.isFunnel })),
}));
Dt((s) => ({
  isSorting: !0,
  setSorting: () => s((v) => ({ isSorting: !v.isSorting })),
}));
const Kd = Dt((s) => ({
    isTextDark: !1,
    setTextDark: () => s((v) => ({ isTextDark: !v.isTextDark })),
  })),
  Tf = new Map(),
  l1 = (s, v) => {
    if (!s.startsWith("var(")) return v(s);
    const m = s.match(/var\((--[^)]+)\)/)?.[1];
    if (!m) return v("#ccc");
    if (Tf.has(s)) {
      v(Tf.get(s));
      return;
    }
    if (typeof document < "u" && document.documentElement) {
      const f = () => {
        const E = getComputedStyle(document.documentElement)
          .getPropertyValue(m)
          .trim();
        return E ? (Tf.set(s, E), v(E), !0) : !1;
      };
      if (f()) return;
      const S = new MutationObserver(() => {
        f() && S.disconnect();
      });
      S.observe(document.documentElement, { attributes: !0, subtree: !0 });
    } else v("#ccc");
  },
  za = {
    cardVariants: {
      hidden: { opacity: 0, y: 20 },
      visible: { opacity: 1, y: 0 },
    },
    numberVariants: {
      hidden: { opacity: 0, scale: 0.5 },
      visible: {
        opacity: 1,
        scale: 1,
        transition: { type: "spring", stiffness: 100 },
      },
    },
    titleVariants: {
      initial: { y: -20, opacity: 0 },
      animate: {
        y: 0,
        opacity: 1,
        transition: { type: "spring", stiffness: 300, damping: 20 },
      },
      exit: { y: -20, opacity: 0 },
    },
    emptyStateVariants: {
      initial: { scale: 0.8, opacity: 0 },
      animate: {
        scale: 1,
        opacity: 1,
        transition: { type: "spring", stiffness: 200, delay: 0.2 },
      },
      exit: { scale: 0.8, opacity: 0 },
    },
    cardHoverEffect: {
      rest: { backgroundColor: "var(--input)", transition: { duration: 0.3 } },
      hover: {
        backgroundColor: "var(--background-alt)",
        transition: { duration: 0.3 },
      },
    },
    itemTabsVariants: {
      hidden: { opacity: 0, x: -20 },
      visible: (s) => ({
        opacity: 1,
        x: 0,
        transition: { delay: s * 0.1, duration: 0.3 },
      }),
    },
    graphTransitionVariants: {
      enter: {
        opacity: 0,
        scale: 0.9,
        y: 20,
        rotateX: 45,
        filter: "blur(10px)",
      },
      center: {
        opacity: 1,
        scale: 1,
        y: 0,
        rotateX: 0,
        filter: "blur(0px)",
        transition: { filter: { duration: 0.4, ease: "easeOut" } },
      },
      exit: {
        opacity: 0,
        scale: 0.9,
        y: -20,
        rotateX: -45,
        filter: "blur(10px)",
        transition: { filter: { duration: 0.4, ease: "easeIn" } },
      },
    },
    chartContainerVariants: {
      initial: { opacity: 0, y: 20 },
      animate: {
        opacity: 1,
        y: 0,
        transition: { type: "tween", ease: "easeOut", duration: 0.4 },
      },
      exit: {
        opacity: 0,
        y: -20,
        transition: { type: "tween", ease: "easeIn", duration: 0.3 },
      },
    },
    IconsVariants: {
      initial: { scale: 0.9, opacity: 0 },
      animate: { scale: 1, opacity: 1 },
      hover: { scale: 1.1, y: -5 },
      tap: { scale: 0.95 },
    },
    tooltipVariants: {
      hidden: { opacity: 0, y: 10, scale: 0.8 },
      visible: { opacity: 1, y: 0, scale: 1 },
    },
    containerVariantsIcons: {
      initial: { opacity: 0 },
      animate: { opacity: 1, transition: { staggerChildren: 0.1 } },
    },
    containerTabsVariants: {
      initial: { scale: 1 },
      hover: { scale: 1.05 },
      tap: { scale: 0.95 },
    },
    containerNoDataVariants: {
      hidden: { opacity: 0 },
      visible: {
        opacity: 1,
        transition: {
          when: "beforeChildren",
          staggerChildren: 0.1,
          duration: 0.5,
        },
      },
      exit: { opacity: 0, transition: { duration: 0.3 } },
    },
    textVariants: {
      hidden: { y: 10, opacity: 0 },
      visible: {
        y: 0,
        opacity: 1,
        transition: { type: "spring", stiffness: 100 },
      },
    },
  },
  Ka = Dt((s) => ({
    dataOrder: "descending",
    setDataOrder: (v) => s({ dataOrder: v }),
  })),
  Jd = ({ chartType: s = "funnel", mode: v = "value" }) => {
    const { containerNoDataVariants: m, textVariants: f } = za,
      { language: S } = gt(),
      E = () =>
        r.jsx(V.div, {
          className: "w-full h-56 flex flex-col items-center justify-center",
          variants: m,
          initial: "hidden",
          animate: "visible",
          exit: "exit",
          children: r.jsxs("svg", {
            width: "240",
            height: "200",
            viewBox: "0 0 240 200",
            children: [
              r.jsx(V.path, {
                d: "M20,0 L220,0 L180,40 L60,40 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, y: -10 },
                animate: { opacity: 1, y: 0 },
                transition: { duration: 0.5, delay: 0 },
              }),
              r.jsx(V.path, {
                d: "M60,45 L180,45 L160,85 L80,85 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, y: -10 },
                animate: { opacity: 1, y: 0 },
                transition: { duration: 0.5, delay: 0.1 },
              }),
              r.jsx(V.path, {
                d: "M80,90 L160,90 L140,130 L100,130 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, y: -10 },
                animate: { opacity: 1, y: 0 },
                transition: { duration: 0.5, delay: 0.2 },
              }),
              r.jsx(V.path, {
                d: "M100,135 L140,135 L120,175 L120,175 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, y: -10 },
                animate: { opacity: 1, y: 0 },
                transition: { duration: 0.5, delay: 0.3 },
              }),
            ],
          }),
        }),
      M = () =>
        r.jsx(V.div, {
          className: "w-full h-56 flex items-center justify-center",
          variants: m,
          initial: "hidden",
          animate: "visible",
          exit: "exit",
          children: r.jsxs("svg", {
            width: "200",
            height: "200",
            viewBox: "0 0 200 200",
            children: [
              r.jsx(V.circle, {
                cx: "100",
                cy: "100",
                r: "80",
                fill: "none",
                stroke: "#d1d5db",
                strokeWidth: "2",
                initial: { pathLength: 0 },
                animate: { pathLength: 1 },
                transition: { duration: 0.8 },
              }),
              r.jsx(V.path, {
                d: "M100,100 L100,20 A80,80 0 0,1 180,100 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, scale: 0.8 },
                animate: { opacity: 1, scale: 1 },
                transition: { duration: 0.4, delay: 0.3 },
              }),
              r.jsx(V.path, {
                d: "M100,100 L180,100 A80,80 0 0,1 100,180 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, scale: 0.8 },
                animate: { opacity: 1, scale: 1 },
                transition: { duration: 0.4, delay: 0.4 },
              }),
              r.jsx(V.path, {
                d: "M100,100 L100,180 A80,80 0 0,1 20,100 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, scale: 0.8 },
                animate: { opacity: 1, scale: 1 },
                transition: { duration: 0.4, delay: 0.5 },
              }),
              r.jsx(V.path, {
                d: "M100,100 L20,100 A80,80 0 0,1 100,20 Z",
                fill: "#e5e7eb",
                stroke: "#d1d5db",
                strokeWidth: "1",
                initial: { opacity: 0, scale: 0.8 },
                animate: { opacity: 1, scale: 1 },
                transition: { duration: 0.4, delay: 0.6 },
              }),
            ],
          }),
        });
    return r.jsxs("div", {
      className: "p-6 w-full max-w-md flex flex-col items-center",
      children: [
        r.jsx("div", {
          className: "w-full mb-6 relative",
          children: r.jsx(In, {
            mode: "wait",
            children:
              s === "funnel" ? r.jsx(E, {}, "funnel") : r.jsx(M, {}, "pie"),
          }),
        }),
        r.jsxs(V.div, {
          className: "text-center",
          variants: m,
          initial: "hidden",
          animate: "visible",
          children: [
            r.jsx(V.h3, {
              className: "text-xl font-medium text-gray-800 mb-2",
              variants: f,
              children: S.semDadosParaExibir,
            }),
            r.jsxs(V.p, {
              className: "text-gray-500 max-w-xs",
              variants: f,
              children: [
                S.naoExistemValoresParaMontarSeuGrafico,
                s === "funnel" ? S.graficoFunil : S.graficoPizza,
                v === "contact" ? ` ${S.modoContatos}` : S.modoValores,
              ],
            }),
          ],
        }),
      ],
    });
  },
  t1 = `
  .funnel-container text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,
  a1 = `
  .nivo-pie text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,
  Fn = (s) =>
    new Promise((v) => {
      chrome.storage.local.get(s, (m) => {
        v(m[s] && Array.isArray(m[s]) ? m[s] : []);
      });
    }),
  $n = {},
  Af = (s, v) => {
    ($n[s] && clearTimeout($n[s]),
      ($n[s] = window.setTimeout(() => {
        const m = { [s]: v };
        (chrome.storage.local.set(m), ($n[s] = null));
      }, 300)));
  },
  Ld = (s) => (s ? s.toString().replace(/\D/g, "") : ""),
  wd = (s, v) => (!s || !v ? !1 : s === v ? !0 : Ld(s) === Ld(v)),
  Wd = (s) => {
    let v = 0;
    return (
      s.forEach((m) => {
        Array.isArray(m.valNegocio) &&
          m.valNegocio.length > 0 &&
          m.valNegocio.forEach((f) => {
            if (!(!f || !f.valor))
              try {
                const E = f.valor
                    .toString()
                    .replace(/[^\d,.]/g, "")
                    .replace(",", "."),
                  M = parseFloat(E) || 0;
                v += M;
              } catch {}
          });
      }),
      v
    );
  },
  Ef = (s, v) => {
    const m = s.chats?.map((E) => E.id).filter(Boolean) || [];
    if (m.length === 0)
      return {
        value: 0,
        updatedItem: { ...s, profile: 0, profileCalculated: !0 },
      };
    const f = v.filter((E) => E && E.userID && m.some((M) => wd(M, E.userID))),
      S = Wd(f);
    return {
      value: S || 0,
      updatedItem: { ...s, profile: S || 0, profileCalculated: !0 },
    };
  },
  Mu = Dt((s) => ({
    labels: [],
    labelsId: [],
    labelChats: {},
    isLoading: !1,
    error: null,
    fetchLabels: async () => {
      s({ isLoading: !0, error: null });
      try {
        const v = await Nd.Labels("getAllLabels");
        if (!Array.isArray(v))
          throw new Error("O retorno das labels não é um array");
        const m = v.map((j) => ({
            id: j.id,
            name: j.name || `Label ${j.id}`,
            hexColor: j.hexColor || "#cccccc",
            profile: 0,
            chats: [],
          })),
          f = {},
          S = m.map(async (j) => {
            try {
              const O = await Nd.Contact("List", {
                  type: "withLabels",
                  id: j.id,
                }),
                H = O.map((D) => D.id);
              return (
                (f[j.id] = H),
                {
                  ...j,
                  chats: O.map((D) => ({ id: D.id, name: D.name || D.id })),
                }
              );
            } catch (O) {
              return (
                console.error(`Erro ao buscar chats para label ${j.id}:`, O),
                j
              );
            }
          }),
          E = await Promise.all(S),
          M = [...new Set(Object.values(f).flat())];
        s({ labels: E, labelsId: M, labelChats: f, isLoading: !1 });
      } catch (v) {
        (console.error("Erro ao obter labels ou contatos:", v),
          s({
            isLoading: !1,
            error:
              v instanceof Error
                ? v.message
                : "Erro desconhecido ao carregar labels",
          }));
      }
    },
  })),
  e1 = { crm: {}, userTabs: {}, labels: {} },
  ql = Dt((s, v) => ({
    selectedCrmType: "userTabs",
    selectedCrm: null,
    selectedUserTabs: null,
    selectedUserLabels: null,
    crmOptions: [],
    userTabsOptions: [],
    userLabelsOptions: [],
    profiles: [],
    calculatedValues: e1,
    isLoading: !1,
    error: null,
    setSelectedCrmType: (m) => {
      (s({ selectedCrmType: m }),
        requestAnimationFrame(() => {
          v().verifyProfilesAndCalculate();
        }));
    },
    setSelectedCrm: (m) => {
      (s({ selectedCrm: m, selectedCrmType: "traditional" }),
        requestAnimationFrame(() => {
          v().verifyProfilesAndCalculate();
        }));
    },
    setSelectedUserLabels: (m) => {
      (s({ selectedUserLabels: m, selectedCrmType: "labels" }),
        requestAnimationFrame(() => {
          v().verifyProfilesAndCalculate();
        }));
    },
    setSelectedUserTabs: (m) => {
      (s({ selectedUserTabs: m, selectedCrmType: "userTabs" }),
        requestAnimationFrame(() => {
          v().verifyProfilesAndCalculate();
        }));
    },
    verifyProfilesAndCalculate: async () => {
      const { profiles: m } = v();
      if (!m || m.length === 0)
        try {
          const f = await Fn("perfil");
          s({ profiles: f });
        } catch (f) {
          (console.error("Erro ao carregar perfis para verificação:", f),
            s({
              error: f instanceof Error ? f.message : "Erro ao carregar perfis",
            }));
          return;
        }
      v().calculateBusinessValues();
    },
    fetchCrmOptions: async () => {
      if (!v().isLoading) {
        s({ isLoading: !0, error: null });
        try {
          await Mu.getState().fetchLabels();
          const { isLoading: f } = Mu.getState();
          f && (await new Promise((H) => setTimeout(H, 500)));
          const [S, E, M] = await Promise.all([
              Fn("crm"),
              Fn("userTabs"),
              Fn("perfil"),
            ]),
            O = Mu.getState().labels || [];
          (s((H) => {
            const D = {
              crmOptions: S,
              userLabelsOptions: O,
              userTabsOptions: E,
              profiles: M,
              isLoading: !1,
            };
            return (
              !H.selectedCrm &&
                H.selectedCrmType === "traditional" &&
                S.length > 0 &&
                (D.selectedCrm = S[0]),
              !H.selectedUserTabs &&
                H.selectedCrmType === "userTabs" &&
                E.length > 0 &&
                (D.selectedUserTabs = E),
              (H.selectedCrmType === "labels" ||
                (!H.selectedUserLabels && O.length > 0)) &&
                (D.selectedUserLabels = O),
              D
            );
          }),
            requestAnimationFrame(() => {
              v().calculateBusinessValues();
            }));
        } catch (m) {
          (console.error("[ERROR] Fetch CRM Options Error:", m),
            s({
              isLoading: !1,
              error:
                m instanceof Error
                  ? m.message
                  : "Erro desconhecido ao carregar dados",
            }));
        }
      }
    },
    fetchCrmData: async () => {
      try {
        (await v().fetchCrmOptions(), v().setupStorageListeners());
      } catch (m) {
        (s({
          error:
            m instanceof Error
              ? m.message
              : "Erro desconhecido ao carregar dados",
          isLoading: !1,
        }),
          console.error("Erro ao buscar dados do CRM:", m));
      }
    },
    setupStorageListeners: () => {
      (chrome.storage.onChanged.removeListener(f),
        chrome.storage.onChanged.addListener(f));
      let m = null;
      function f(S, E) {
        E === "local" &&
          ["perfil", "crm", "userTabs"].some((j) => S[j]) &&
          (m && clearTimeout(m),
          (m = window.setTimeout(async () => {
            const j = v(),
              O = {};
            let H = !1;
            if (S.perfil) {
              const D = S.perfil.newValue;
              Array.isArray(D) && ((O.profiles = D), (H = !0));
            }
            if (S.crm) {
              const D = S.crm.newValue;
              if (Array.isArray(D)) {
                if (((O.crmOptions = D), j.selectedCrm)) {
                  const C = D.find((U) => U.id === j.selectedCrm?.id);
                  C && (O.selectedCrm = C);
                } else
                  D.length > 0 &&
                    j.selectedCrmType === "traditional" &&
                    (O.selectedCrm = D[0]);
                H = !0;
              }
            }
            if (S.userTabs) {
              const D = S.userTabs.newValue;
              Array.isArray(D) &&
                ((O.userTabsOptions = D),
                j.selectedCrmType === "userTabs" && (O.selectedUserTabs = D),
                (H = !0));
            }
            if (Object.keys(O).length > 0 && (s(O), H)) {
              const { labels: D } = Mu.getState();
              (D &&
                D.length > 0 &&
                s({ userLabelsOptions: D, selectedUserLabels: D }),
                requestAnimationFrame(() => {
                  v().calculateBusinessValues();
                }));
            }
            m = null;
          }, 300)));
      }
    },
    getTabValue: (m) => {
      const {
        selectedCrmType: f,
        calculatedValues: S,
        selectedCrm: E,
        selectedUserTabs: M,
        selectedUserLabels: j,
      } = v();
      return f === "traditional"
        ? (S.crm[m] ?? E?.list.find((O) => O.id === m)?.profile ?? 0)
        : f === "userTabs"
          ? (S.userTabs[m] ?? M?.find((O) => O.id === m)?.profile ?? 0)
          : f === "labels"
            ? (S.labels[m] ?? j?.find((O) => O.id === m)?.profile ?? 0)
            : 0;
    },
    calculateAllCRMValues: () => {
      const { crmOptions: m, profiles: f } = v(),
        S = f || [];
      if (S.length === 0) return;
      const E = {
        crm: { ...v().calculatedValues.crm },
        userTabs: { ...v().calculatedValues.userTabs },
        labels: { ...v().calculatedValues.labels },
      };
      (m.forEach((M) => {
        M.list.forEach((j) => {
          const O = Ef(j, S);
          E.crm[j.id] = O.value;
        });
      }),
        s({ calculatedValues: E }));
    },
    calculateBusinessValues: () => {
      const {
          selectedCrm: m,
          selectedUserTabs: f,
          profiles: S,
          selectedUserLabels: E,
        } = v(),
        M = Mu.getState(),
        { labels: j, labelChats: O } = M,
        H = S || [];
      if (H.length === 0) return;
      const D = {
        crm: { ...v().calculatedValues.crm },
        userTabs: { ...v().calculatedValues.userTabs },
        labels: { ...v().calculatedValues.labels },
      };
      if (m?.list?.length) {
        const U = m.list.map((X) => {
          const L = Ef(X, H);
          return ((D.crm[X.id] = L.value), L.updatedItem);
        });
        (s({ selectedCrm: { ...m, list: U }, calculatedValues: D }),
          Af("calculatedCrm", U));
      }
      if (f?.length) {
        const U = f.map((X) => {
          const L = Ef(X, H);
          return ((D.userTabs[X.id] = L.value), L.updatedItem);
        });
        (s({ selectedUserTabs: U, calculatedValues: D }),
          Af("calculatedUserTabs", U));
      }
      const C = j?.length ? j : E || [];
      if (C.length > 0) {
        const U = C.map((X) => {
          const L = [
            ...new Set([
              ...(X.chats?.map((jl) => jl.id) || []),
              ...(O[X.id] || []),
            ]),
          ];
          if (L.length === 0)
            return { ...X, profile: 0, profileCalculated: !0 };
          const F = H.filter(
              (jl) => jl?.userID && L.some((Tl) => wd(Tl, jl.userID)),
            ),
            Dl = Wd(F);
          return (
            (D.labels[X.id] = Dl || 0),
            { ...X, profile: Dl || 0, profileCalculated: !0 }
          );
        });
        s({ selectedUserLabels: U, calculatedValues: D, userLabelsOptions: U });
      }
      Af("calculatedValues", D);
    },
  })),
  u1 = () => ql.getState().fetchCrmData();
Dt((s) => ({
  isOpen: !1,
  toggle: () => s((v) => ({ isOpen: !v.isOpen })),
  close: () => s({ isOpen: !1 }),
  open: () => s({ isOpen: !0 }),
}));
const kd = Dt((s, v) => ({
    isCaption: !1,
    setIsCaption: () => s((m) => ({ isCaption: !m.isCaption })),
  })),
  Pn = Dt((s, v) => ({
    isContact: !0,
    setIsContact: () => s((m) => ({ isContact: !m.isContact })),
    sortTabs: (m) => {
      const f = v().isContact,
        S = Ka.getState().dataOrder,
        E = Vd.getState().orderLabels;
      if (!Array.isArray(m) || m.length === 0) return [];
      let M = [...m];
      if (
        (S === "original" || S === "inverted") &&
        M[0]?.hasOwnProperty("name") &&
        E?.length > 0
      ) {
        const j = new Map();
        (E.forEach((O, H) => {
          j.set(O, H);
        }),
          M.sort((O, H) =>
            j.has(O.id) && j.has(H.id)
              ? j.get(O.id) - j.get(H.id)
              : j.has(O.id)
                ? -1
                : j.has(H.id)
                  ? 1
                  : 0,
          ),
          S === "inverted" && M.reverse());
      } else
        S !== "original" &&
          (S === "inverted"
            ? M.reverse()
            : M.sort((j, O) => {
                const H = f ? j.chats?.length || 0 : Number(j.profile) || 0,
                  D = f ? O.chats?.length || 0 : Number(O.profile) || 0;
                return S === "ascending" ? H - D : D - H;
              }));
      return M;
    },
  })),
  Of = () => {
    const [s, v] = cl.useState({
        data: [],
        isEmpty: !0,
        isEmptyContact: !0,
        isEmptyValue: !0,
        totalFormatted: "₹ 0.00",
        averageFormatted: "₹ 0.00",
        taxaConversaoPorContato: "₹ 0.00",
        contacts: 0,
        excelData: [],
      }),
      {
        selectedCrm: m,
        selectedUserTabs: f,
        calculatedValues: S,
        selectedCrmType: E,
        selectedUserLabels: M,
      } = ql(),
      { isContact: j } = Pn.getState(),
      { dataOrder: O } = Ka.getState(),
      H = Vd((D) => D.orderLabels);
    return (
      cl.useEffect(() => {
        let D = [];
        E === "traditional" && m?.list
          ? ((D = m.list.map((N) => ({
              id: N.id,
              value: N.chats?.length || 0,
              name: N.name || `Lista ${N.id}`,
            }))),
            m.list.reduce((N, dl) => N + (dl.chats?.length || 0), 0))
          : E === "userTabs" && f
            ? ((D = f.map((N) => ({
                id: N.id,
                value: N.chats?.length || 0,
                name: N.tag || `Aba ${N.id}`,
              }))),
              f.reduce((N, dl) => N + (dl.chats?.length || 0), 0))
            : E === "labels" &&
              M &&
              ((D = M.map((N) => ({
                id: N.id,
                value: N.chats?.length || 0,
                name: N.name || `Etiqueta ${N.id}`,
              }))),
              M.reduce((N, dl) => N + (dl.chats?.length || 0), 0));
        let C = [],
          U = 0;
        E === "traditional" && m?.list
          ? ((C = m.list.map((N) => ({
              id: N.id,
              value: S.crm[N.id] || 0,
              name: N.name || `Lista ${N.id}`,
            }))),
            (U = m.list.reduce((N, dl) => N + (dl.chats?.length || 0), 0)))
          : E === "userTabs" && f
            ? ((C = f.map((N) => ({
                id: N.id,
                value: S.userTabs[N.id] || 0,
                name: N.tag || `Aba ${N.id}`,
              }))),
              (U = f.reduce((N, dl) => N + (dl.chats?.length || 0), 0)))
            : E === "labels" &&
              M &&
              ((C = M.map((N) => ({
                id: N.id,
                value: N.profile || 0,
                name: N.name || `Etiqueta ${N.id}`,
              }))),
              (U = M.reduce((N, dl) => N + (dl.chats?.length || 0), 0)));
        const X = [...D],
          L = [...C];
        if (
          (O === "original" || O === "inverted") &&
          E === "labels" &&
          H?.length > 0
        ) {
          const N = new Map();
          H.forEach((Rl, El) => N.set(Rl, El));
          const dl = (Rl, El) =>
            N.has(Rl.id) && N.has(El.id)
              ? N.get(Rl.id) - N.get(El.id)
              : N.has(Rl.id)
                ? -1
                : N.has(El.id)
                  ? 1
                  : 0;
          (D.sort(dl),
            C.sort(dl),
            O === "inverted" && (D.reverse(), C.reverse()));
        } else if (O !== "original")
          if (O === "inverted")
            ((D = [...X].reverse()), (C = [...L].reverse()));
          else {
            const N = (dl, Rl) =>
              O === "ascending"
                ? dl.value - Rl.value
                : O === "descending"
                  ? Rl.value - dl.value
                  : 0;
            (D.sort(N), C.sort(N));
          }
        const F = j ? D : C,
          Dl = F.filter((N) => N.value > 0),
          jl = C.filter((N) => N.value > 0),
          Tl = jl.reduce((N, dl) => N + dl.value, 0),
          Vl = jl.length ? Tl / C.length : 0,
          zt = U > 0 ? ((jl.length / U) * 100).toFixed(2) + "%" : "0.00%",
          Tt = (N) =>
            N.toLocaleString("en-IN", {
              style: "currency",
              currency: "INR",
              maximumFractionDigits: 2,
            }),
          Wl = D.length === 0 || D.every((N) => N.value === 0),
          nt = C.length === 0 || C.every((N) => N.value === 0);
        v({
          data: Dl,
          isEmpty: j ? Wl : nt,
          isEmptyContact: Wl,
          isEmptyValue: nt,
          totalFormatted: Tt(Tl),
          averageFormatted: Tt(Vl),
          taxaConversaoPorContato: zt,
          contacts: U,
          excelData: F,
        });
      }, [m, f, S, E, j, M, O, JSON.stringify(H)]),
      s
    );
  },
  Fd = () => {
    const [s, v] = cl.useState({
        data: [{ id: "", color: "#ccc" }],
        isEmpty: !0,
        colorMap: { "": "#ccc" },
      }),
      m = ql((M) => M.selectedCrm),
      f = ql((M) => M.selectedUserTabs),
      S = ql((M) => M.selectedCrmType),
      E = ql((M) => M.selectedUserLabels);
    return (
      cl.useEffect(() => {
        let M = [];
        S === "traditional" && m?.list
          ? (M = m.list.map((O) => ({ id: O.id, color: O.hexColor || "#ccc" })))
          : S === "userTabs" && Array.isArray(f)
            ? (typeof window < "u" &&
                document.documentElement.style
                  .getPropertyValue("--primaria")
                  .trim(),
              (M = f.map((O) => ({ id: O.id, color: "var(--primaria)" }))))
            : S === "labels" &&
              Array.isArray(E) &&
              (M = E.map((O) => ({ id: O.id, color: O.hexColor || "#ccc" })));
        const j = !M.length;
        (j && (M = [{ id: "", color: "#ccc" }]),
          v({
            data: M,
            isEmpty: j,
            colorMap: Object.fromEntries(M.map((O) => [O.id, O.color])),
          }));
      }, [m, f, E, S]),
      s
    );
  },
  n1 = () => {
    const { data: s, isEmpty: v } = Of(),
      m = Fd(),
      { isContact: f } = Pn(),
      { isTextDark: S } = Kd(),
      { dataOrder: E } = Ka(),
      [M, j] = cl.useState(null),
      [O, H] = cl.useState({});
    return (
      cl.useEffect(() => {
        if (v || m.data.length === 0) {
          (j(null), H({}));
          return;
        }
        (async () => {
          const C = {};
          await Promise.all(
            m.data.map(
              (L) =>
                new Promise((F) => {
                  l1(L.color, (Dl) => {
                    ((C[L.id] = Dl), F());
                  });
                }),
            ),
          );
          const U = s.map((L) => ({
              id: L.name,
              value: L.value,
              label: L.name,
              originalId: L.id,
            })),
            X = {};
          (U.forEach((L) => {
            X[L.id] = C[L.originalId] || "#ccc";
          }),
            j(U),
            H(X));
        })();
      }, [s, m.data, f, v, E]),
      r.jsxs(r.Fragment, {
        children: [
          r.jsx("style", { children: t1 }),
          r.jsx("div", {
            className: "flex justify-center items-center w-full h-full",
            children: v
              ? r.jsx(Jd, {
                  chartType: "funnel",
                  mode: f ? "contact" : "value",
                })
              : M
                ? r.jsx("div", {
                    className: "funnel-container w-full h-full",
                    children: r.jsx(Uh, {
                      data: M,
                      margin: { top: 20, right: 40, bottom: 20, left: 40 },
                      shapeBlending: 0.1,
                      interpolation: "smooth",
                      colors: (D) => O[D.id] || "#ccc",
                      borderWidth: 8,
                      borderColor: { from: "color", modifiers: [] },
                      borderOpacity: 0.6,
                      labelColor: "white",
                      currentPartSizeExtension: 5,
                      currentBorderWidth: 15,
                      motionConfig: "gentle",
                      direction: "vertical",
                      tooltip: ({ part: D }) =>
                        r.jsxs("div", {
                          style: {
                            background: S ? "black" : "white",
                            color: S ? "white" : "black",
                            padding: "5px 10px",
                            borderRadius: "5px",
                            boxShadow: "0px 2px 5px rgba(0,0,0,0.2)",
                          },
                          children: [
                            r.jsx("strong", { children: D.data.label }),
                            ": ",
                            D.data.value,
                          ],
                        }),
                    }),
                  })
                : r.jsx("div", { children: "Carregando visualização..." }),
          }),
        ],
      })
    );
  },
  i1 = () => {
    const { isCaption: s } = kd(),
      { isTextDark: v } = Kd(),
      { dataOrder: m } = Ka(),
      f = Of(),
      S = Fd(),
      [E, M] = cl.useState([]),
      [j, O] = cl.useState(!1);
    cl.useEffect(() => {
      const D = f?.data?.length > 0,
        C = S?.data?.length > 0;
      if ((O(D && C), !D || !C)) {
        M([]);
        return;
      }
      const U = {};
      S.data.forEach((L) => {
        U[L.id] = L.color;
      });
      const X = f.data.map((L) => ({
        id: L.name,
        value: L.value,
        label: L.name,
        color: U[L.id] || "#ccc",
      }));
      M(X);
    }, [f?.data, S?.data, m]);
    const H = {
      labels: {
        text: {
          fill: "white",
          fontWeight: "bold",
          stroke: "black",
          strokeWidth: 2,
          paintOrder: "stroke",
          strokeLinejoin: "round",
        },
      },
      tooltip: {
        container: {
          background: v ? "black" : "white",
          color: v ? "white" : "black",
          fontSize: 12,
          borderRadius: 5,
          boxShadow: "0px 2px 5px rgba(0,0,0,0.2)",
          padding: "5px 10px",
        },
      },
    };
    return r.jsxs(r.Fragment, {
      children: [
        r.jsx("style", { children: a1 }),
        r.jsx("div", {
          className: "flex justify-center items-center w-full h-full",
          children: j
            ? r.jsx("div", {
                className: "w-full h-full flex justify-center items-center",
                children: r.jsx(Bh, {
                  data: E,
                  margin: { top: 35, right: 20, bottom: 35, left: 20 },
                  innerRadius: 0.5,
                  padAngle: 0.7,
                  cornerRadius: 0,
                  activeOuterRadiusOffset: 8,
                  colors: (D) => D.data.color,
                  borderWidth: 0,
                  borderColor: { from: "color", modifiers: [["darker", 0.2]] },
                  enableArcLinkLabels: s,
                  arcLabelsTextColor: "white",
                  motionConfig: "wobbly",
                  legends: [],
                  theme: H,
                  tooltip: ({ datum: D }) =>
                    r.jsxs("div", {
                      style: {
                        background: v ? "black" : "white",
                        color: v ? "white" : "black",
                        padding: "5px 10px",
                        borderRadius: "5px",
                        boxShadow: "0px 2px 5px rgba(0,0,0,0.2)",
                      },
                      children: [
                        r.jsx("strong", { children: D.label }),
                        ": ",
                        D.value,
                      ],
                    }),
                }),
              })
            : r.jsx("div", {
                className: "w-full h-full flex justify-center items-center",
                children: r.jsx(Jd, { chartType: "pie" }),
              }),
        }),
      ],
    });
  },
  Cf = ({ isSelected: s, onClick: v, icon: m, label: f, count: S }) =>
    r.jsxs("button", {
      onClick: v,
      className: `select-none cursor-pointer flex items-center gap-2 px-4 py-2 rounded-lg transition-all ${s ? "bg-[var(--primaria)] text-white shadow-md" : "dark:bg-[var(--funil-background)] bg-gray-200 text-[var(--text)] hover:bg-opacity-80"}`,
      children: [
        m,
        f,
        r.jsx(V.span, {
          initial: { scale: 0 },
          animate: { scale: 1 },
          className:
            "ml-1 text-xs bg-white bg-opacity-20 rounded-full px-2 py-0.5",
          children: S,
        }),
      ],
    });
function $d(s) {
  return xt({
    attr: { viewBox: "0 0 24 24", fill: "currentColor" },
    child: [
      {
        tag: "path",
        attr: { d: "M10 3a1 1 0 0 1 0 2h-6a1 1 0 1 1 0 -2z" },
        child: [],
      },
      {
        tag: "path",
        attr: { d: "M20 3a1 1 0 0 1 0 2h-6a1 1 0 0 1 0 -2z" },
        child: [],
      },
      {
        tag: "path",
        attr: {
          d: "M8 7a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3z",
        },
        child: [],
      },
      {
        tag: "path",
        attr: {
          d: "M18 7a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3z",
        },
        child: [],
      },
    ],
  })(s);
}
function Mf(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      { tag: "path", attr: { d: "M3 9l4 -4l4 4m-4 -4v14" }, child: [] },
      { tag: "path", attr: { d: "M21 15l-4 4l-4 -4m4 4v-14" }, child: [] },
    ],
  })(s);
}
function c1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      {
        tag: "path",
        attr: {
          d: "M13.5 19h-8.5a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v1.5",
        },
        child: [],
      },
      {
        tag: "path",
        attr: { d: "M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5" },
        child: [],
      },
      { tag: "path", attr: { d: "M19 21v1m0 -8v1" }, child: [] },
    ],
  })(s);
}
function Id(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      { tag: "path", attr: { d: "M4 4l6 0" }, child: [] },
      { tag: "path", attr: { d: "M14 4l6 0" }, child: [] },
      {
        tag: "path",
        attr: {
          d: "M4 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
        },
        child: [],
      },
      {
        tag: "path",
        attr: {
          d: "M14 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
        },
        child: [],
      },
    ],
  })(s);
}
function R1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      {
        tag: "path",
        attr: { d: "M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z" },
        child: [],
      },
      {
        tag: "path",
        attr: { d: "M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z" },
        child: [],
      },
      { tag: "path", attr: { d: "M3 21l2.5 -2.5" }, child: [] },
      { tag: "path", attr: { d: "M18.5 5.5l2.5 -2.5" }, child: [] },
      { tag: "path", attr: { d: "M10 11l-2 2" }, child: [] },
      { tag: "path", attr: { d: "M13 14l-2 2" }, child: [] },
    ],
  })(s);
}
function f1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      {
        tag: "path",
        attr: {
          d: "M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2",
        },
        child: [],
      },
      {
        tag: "path",
        attr: {
          d: "M14.8 8a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1",
        },
        child: [],
      },
      { tag: "path", attr: { d: "M12 6v10" }, child: [] },
    ],
  })(s);
}
function s1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      { tag: "path", attr: { d: "M4 6l7 0" }, child: [] },
      { tag: "path", attr: { d: "M4 12l7 0" }, child: [] },
      { tag: "path", attr: { d: "M4 18l9 0" }, child: [] },
      { tag: "path", attr: { d: "M15 9l3 -3l3 3" }, child: [] },
      { tag: "path", attr: { d: "M18 6l0 12" }, child: [] },
    ],
  })(s);
}
function o1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      { tag: "path", attr: { d: "M4 6l9 0" }, child: [] },
      { tag: "path", attr: { d: "M4 12l7 0" }, child: [] },
      { tag: "path", attr: { d: "M4 18l7 0" }, child: [] },
      { tag: "path", attr: { d: "M15 15l3 3l3 -3" }, child: [] },
      { tag: "path", attr: { d: "M18 6l0 12" }, child: [] },
    ],
  })(s);
}
function L1(s) {
  return xt({
    attr: {
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    child: [
      {
        tag: "path",
        attr: {
          d: "M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5",
        },
        child: [],
      },
      {
        tag: "path",
        attr: {
          d: "M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z",
        },
        child: [],
      },
      { tag: "path", attr: { d: "M16 7h4" }, child: [] },
    ],
  })(s);
}
const r1 = ({ crm: s, isSelected: v, onClick: m }) =>
    r.jsx("div", {
      onClick: m,
      className: "px-3 py-1.5 cursor-pointer transition-all group",
      children: r.jsxs("div", {
        className:
          "flex items-center justify-between rounded-md px-2 py-0.5 group-hover:bg-[var(--input)]",
        children: [
          r.jsxs("div", {
            className: "flex items-center gap-1.5",
            children: [
              r.jsx($d, {
                style: { color: v ? "var(--primaria)" : s.hexColor },
                size: 16,
              }),
              r.jsx("span", {
                className: v
                  ? "text-[var(--primaria)] font-medium"
                  : "text-[var(--text)]",
                children: s.name,
              }),
            ],
          }),
          v && r.jsx(_h, { className: "text-[var(--primaria)]", size: 16 }),
        ],
      }),
    }),
  d1 = () => {
    const {
        selectedCrmType: s,
        setSelectedCrmType: v,
        crmOptions: m,
        userTabsOptions: f,
        selectedCrm: S,
        setSelectedCrm: E,
        userLabelsOptions: M,
      } = ql(),
      { language: j } = gt(),
      { isBusiness: O } = Xd(),
      [H, D] = cl.useState(!1),
      C = () => D(!H),
      U = () => D(!1),
      X = cl.useRef(null);
    (cl.useEffect(() => {
      s === "traditional" && m.length > 0 && !S && E(m[0]);
    }, [s, m, S, E]),
      cl.useEffect(() => {
        const F = (Dl) => {
          X.current && !X.current.contains(Dl.target) && U();
        };
        return (
          document.addEventListener("mousedown", F),
          () => document.removeEventListener("mousedown", F)
        );
      }, [U]));
    const L = cl.useCallback(
      (F) => {
        (v(F),
          F === "traditional" &&
            m.length > 0 &&
            (!S || s !== "traditional") &&
            E(m[0]));
      },
      [v, m, S, s, E],
    );
    return r.jsxs("div", {
      className:
        "p-4 border-b border-[var(--border)] bg-[var(--card-background)]",
      children: [
        r.jsxs("div", {
          className: "flex gap-2 justify-center",
          children: [
            r.jsx(Cf, {
              isSelected: s === "traditional",
              onClick: () => L("traditional"),
              icon: r.jsx(Id, {}),
              label: "CRM",
              count: m.length,
            }),
            r.jsx(Cf, {
              isSelected: s === "userTabs",
              onClick: () => L("userTabs"),
              icon: r.jsx(Gd, {}),
              label: j.abas,
              count: f.length,
            }),
            O &&
              r.jsx(Cf, {
                isSelected: s === "labels",
                onClick: () => L("labels"),
                icon: r.jsx(Qd, {}),
                label: j.etiquetas,
                count: M.length,
              }),
          ],
        }),
        s === "traditional" &&
          m.length > 0 &&
          r.jsx("div", {
            className:
              "mt-4 relative rounded-md bg-[var(--funil-background)] z-[100]",
            ref: X,
            children: r.jsxs(V.div, {
              className: "relative z-[100]",
              initial: { opacity: 0, y: -10 },
              animate: { opacity: 1, y: 0 },
              transition: { duration: 0.3 },
              children: [
                r.jsxs("div", {
                  onClick: C,
                  className:
                    "w-full rounded-lg p-2 border border-[var(--border)] bg-gray-200 dark:bg-[var(--funil-background)] text-[var(--text)] flex items-center justify-between cursor-pointer hover:border-[var(--primaria)] transition-all shadow-sm hover:shadow select-none",
                  children: [
                    r.jsxs("div", {
                      className: "flex items-center gap-2",
                      children: [
                        r.jsx("span", {
                          className:
                            "bg-[var(--primaria)] p-1.5 rounded text-white",
                          children: r.jsx($d, { size: 16 }),
                        }),
                        r.jsx("span", {
                          className: `font-medium ${S ? "" : "text-[var(--text-secondary)]"}`,
                          children: S ? S.name : j.selecioneCRM,
                        }),
                      ],
                    }),
                    r.jsx(V.div, {
                      animate: { rotate: H ? 180 : 0 },
                      transition: { duration: 0.2 },
                      children: r.jsx(Hh, {
                        className: "text-[var(--text-secondary)]",
                      }),
                    }),
                  ],
                }),
                r.jsx(In, {
                  children:
                    H &&
                    r.jsx(V.div, {
                      className:
                        "fixed left-0 right-0 w-full mt-1 bg-gray-100 dark:bg-[var(--card-background)] border border-[var(--border)] rounded-lg shadow-lg z-[9999] overflow-y-auto max-h-64 py-2",
                      style: {
                        width: X.current?.clientWidth,
                        left: X.current?.getBoundingClientRect().left,
                        top:
                          X.current?.getBoundingClientRect().bottom +
                          window.scrollY,
                      },
                      initial: { opacity: 0, y: -10, height: 0 },
                      animate: { opacity: 1, y: 0, height: "auto" },
                      exit: { opacity: 0, y: -10, height: 0 },
                      transition: { duration: 0.2 },
                      children: m.map((F) =>
                        r.jsx(
                          r1,
                          {
                            crm: F,
                            isSelected: S?.id === F.id,
                            onClick: () => {
                              (E(F), U());
                            },
                          },
                          F.id,
                        ),
                      ),
                    }),
                }),
              ],
            }),
          }),
      ],
    });
  };
function Ue(...s) {
  return wh(Wh(s));
}
const Ga = cl.forwardRef(({ className: s, ...v }, m) => {
  const [f, S] = cl.useState("#e9e9ff");
  return (
    cl.useEffect(() => {
      const E = () => {
        const j =
          document.documentElement.getAttribute("data-theme") === "dark";
        S(j ? "#27272a" : "#e9e9ff");
      };
      E();
      const M = new MutationObserver(E);
      return (
        M.observe(document.documentElement, {
          attributes: !0,
          attributeFilter: ["data-theme"],
        }),
        () => M.disconnect()
      );
    }, []),
    r.jsx("div", {
      ref: m,
      style: { border: `1px solid ${f}` },
      className: Ue("rounded-lg bg-card text-card-foreground shadow-sm", s),
      ...v,
    })
  );
});
Ga.displayName = "Card";
const Qa = cl.forwardRef(({ className: s, ...v }, m) =>
  r.jsx("div", {
    ref: m,
    className: Ue("flex flex-col space-y-1.5 p-6", s),
    ...v,
  }),
);
Qa.displayName = "CardHeader";
const Ne = cl.forwardRef(({ className: s, ...v }, m) =>
  r.jsx("div", {
    ref: m,
    className: Ue("text-2xl font-semibold leading-none tracking-tight", s),
    ...v,
  }),
);
Ne.displayName = "CardTitle";
const m1 = cl.forwardRef(({ className: s, ...v }, m) =>
  r.jsx("div", {
    ref: m,
    className: Ue("text-sm text-muted-foreground", s),
    ...v,
  }),
);
m1.displayName = "CardDescription";
const Za = cl.forwardRef(({ className: s, ...v }, m) =>
  r.jsx("div", { ref: m, className: Ue("p-6 pt-0", s), ...v }),
);
Za.displayName = "CardContent";
const h1 = cl.forwardRef(({ className: s, ...v }, m) =>
  r.jsx("div", {
    ref: m,
    className: Ue("flex items-center p-6 pt-0", s),
    ...v,
  }),
);
h1.displayName = "CardFooter";
function v1(s) {
  return xt({
    attr: { viewBox: "0 0 512 512" },
    child: [
      {
        tag: "path",
        attr: {
          d: "M48 87.2c0 5.8 2 11.4 5.6 15.7l152.2 179.8c3.6 4.3 5.6 9.9 5.6 15.7v107c0 10 5.9 18.8 14.6 22l55 19.8c9.6 3.5 19.6-4.3 19.6-15.3V298.3c0-5.8 2-11.4 5.6-15.7l152.2-179.8c3.6-4.3 5.6-9.9 5.6-15.7 0-12.8-9.6-23.2-21.4-23.2H69.4C57.6 64 48 74.4 48 87.2z",
        },
        child: [],
      },
    ],
  })(s);
}
function y1(s) {
  return xt({
    attr: { viewBox: "0 0 24 24" },
    child: [
      {
        tag: "path",
        attr: {
          d: "M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm1 14.915V18h-2v-1.08c-2.339-.367-3-2.002-3-2.92h2c.011.143.159 1 2 1 1.38 0 2-.585 2-1 0-.324 0-1-2-1-3.48 0-4-1.88-4-3 0-1.288 1.029-2.584 3-2.915V6.012h2v1.109c1.734.41 2.4 1.853 2.4 2.879h-1l-1 .018C13.386 9.638 13.185 9 12 9c-1.299 0-2 .516-2 1 0 .374 0 1 2 1 3.48 0 4 1.88 4 3 0 1.288-1.029 2.584-3 2.915z",
        },
        child: [],
      },
    ],
  })(s);
}
const g1 = () => {
    const { dataOrder: s, setDataOrder: v } = Ka(),
      { language: m } = gt(),
      { isFunnel: f, setFunnel: S } = Zd(),
      { containerVariantsIcons: E, IconsVariants: M, tooltipVariants: j } = za,
      { isContact: O, setIsContact: H } = Pn(),
      { isCaption: D, setIsCaption: C } = kd(),
      [U, X] = cl.useState(null),
      L = () => {
        if (s === "original") v("inverted");
        else if (s === "inverted") v("ascending");
        else if (s === "ascending") v("descending");
        else return v("original");
      },
      F = () => {
        switch (s) {
          case "original":
            return r.jsx(Mf, {});
          case "ascending":
            return r.jsx(s1, {});
          case "descending":
            return r.jsx(o1, {});
          case "inverted":
            return r.jsx(Mf, { rotate: 180 });
          default:
            return r.jsx(Mf, {});
        }
      },
      Dl = () => {
        switch (s) {
          case "original":
            return m.ordenacaoOriginal;
          case "ascending":
            return m.ordenacaoCrescente;
          case "descending":
            return m.ordenacaoDecrescente;
          case "inverted":
            return m.ordenacaoInvertida;
          default:
            return m.ordenacaoOriginal;
        }
      },
      jl = [
        {
          id: 0,
          name: f ? m.modoGraficoCircular : m.modoGraficoFunil,
          icon: f ? r.jsx(qh, { size: 20 }) : r.jsx(v1, { size: 20 }),
          func: S,
        },
        {
          id: 1,
          name: O ? m.ordenarPorValor : m.ordenarPorContatos,
          icon: O ? r.jsx(y1, {}) : r.jsx(Rh, {}),
          func: H,
        },
        ...(f ? [{ id: 2, name: Dl(), icon: F(), func: L }] : []),
        ...(f
          ? []
          : [
              {
                id: 3,
                name: D ? m.ativarLegendas : m.desativarLegendas,
                icon: D ? r.jsx(Lh, {}) : r.jsx(Yh, {}),
                func: C,
              },
            ]),
      ];
    return r.jsx(V.ul, {
      className: "flex items-center gap-2 mr-1",
      variants: E,
      initial: "initial",
      animate: "animate",
      children: jl.map((Tl) =>
        r.jsxs(
          V.li,
          {
            variants: M,
            initial: "initial",
            animate: "animate",
            whileHover: "hover",
            whileTap: "tap",
            onHoverStart: () => X(Tl.id),
            onHoverEnd: () => X(null),
            transition: { type: "spring", stiffness: 400, damping: 17 },
            className: "relative",
            children: [
              r.jsx(V.div, {
                className:
                  "flex dark:bg-[var(--funil-background)] bg-gray-200 hover:text-white items-center justify-center rounded-lg p-2 hover:bg-[var(--primaria)] dark:hover:bg-[var(--primaria)] transition duration-300 cursor-pointer",
                onClick: Tl.func,
                whileHover: { boxShadow: "0px 5px 10px rgba(0, 0, 0, 0.2)" },
                children: r.jsx(V.div, {
                  animate: {
                    rotate: (f && Tl.id === 0) || (O && Tl.id === 1) ? 360 : 0,
                  },
                  transition: { duration: 0.5 },
                  children: Tl.icon,
                }),
              }),
              U === Tl.id &&
                r.jsx(V.div, {
                  className:
                    "absolute -bottom-8 left-1/2 transform -translate-x-1/2 bg-[var(--primaria)] text-white px-2 py-1 rounded text-xs whitespace-nowrap z-10",
                  variants: j,
                  initial: "hidden",
                  animate: "visible",
                  exit: "hidden",
                  transition: { duration: 0.2 },
                  children: Tl.name,
                }),
            ],
          },
          Tl.id,
        ),
      ),
    });
  },
  kt = ({ message: s, animate: v, criar: m, function: f }) => {
    const { emptyStateVariants: S } = za,
      { selectedCrmType: E } = ql();
    return r.jsxs(V.div, {
      className:
        "text-[var(--text)] text-center py-12 rounded-xl border border-dashed border-[var(--border)] bg-[var(--background-alt)]",
      variants: S,
      children: [
        r.jsx(V.div, {
          initial: v ? { y: 0 } : { rotate: -5 },
          animate: v ? { y: -10 } : { rotate: 5 },
          transition: {
            duration: v ? 1.5 : 2,
            repeat: 1 / 0,
            repeatType: "reverse",
            ease: "easeInOut",
          },
          className: "inline-block mb-4",
          children:
            E === "labels"
              ? r.jsx(Qd, {
                  size: 48,
                  className: `mx-auto opacity-60 ${v ? "text-[var(--border)]" : "text-[var(--primaria)]"}`,
                })
              : r.jsx(Vh, {
                  size: 48,
                  className: `mx-auto opacity-60 ${v ? "text-[var(--border)]" : "text-[var(--primaria)]"}`,
                }),
        }),
        r.jsx("p", { className: "font-medium", children: s }),
        m &&
          r.jsx("p", {
            className:
              "font-bold text-[var(--primaria)] cursor-pointer hover:underline",
            onClick: f,
            children: m,
          }),
      ],
    });
  },
  Yd = ({ label: s, index: v, delay: m, hexColor: f }) => {
    const { selectedCrmType: S } = ql();
    return r.jsx(V.div, {
      style: { backgroundColor: S === "traditional" ? f : "var(--primaria)" },
      className:
        "text-white flex items-center justify-center text-xs font-medium  bg-[var(--primaria)] px-3 py-1 rounded-md shadow-md whitespace-nowrap overflow-hidden",
      initial: { opacity: 0, x: -10 },
      animate: {
        opacity: 1,
        x: 0,
        transition: { delay: v * 0.08 + m, duration: 0.3, ease: "easeOut" },
      },
      whileHover: {
        scale: 1.03,
        boxShadow: "0 4px 12px rgba(0,0,0,0.12)",
        transition: { duration: 0.2 },
      },
      children: r.jsx(V.span, {
        initial: { opacity: 0 },
        animate: {
          opacity: 1,
          transition: { delay: v * 0.08 + (m + 0.15), duration: 0.25 },
        },
        children: s,
      }),
    });
  },
  b1 = ({ tab: s, index: v, tabColor: m }) => {
    const { language: f } = gt(),
      { selectedCrmType: S, getTabValue: E } = ql(),
      { itemTabsVariants: M, cardHoverEffect: j } = za,
      { dataOrder: O } = Ka(),
      H = (L) =>
        L == null
          ? "0.00"
          : L.toLocaleString("en-IN", { minimumFractionDigits: 2 }),
      D = E(s.id),
      C = s.chats?.length || 0,
      U = () => (S === "userTabs" ? s.tag || "" : s.name || ""),
      X = () =>
        S === "userTabs"
          ? r.jsx(Gd, {
              size: 24,
              style: { color: m },
              className: "drop-shadow-md",
            })
          : S === "labels"
            ? r.jsx(Xh, {
                size: 24,
                style: { color: m },
                className: "drop-shadow-md",
              })
            : r.jsx(Id, {
                size: 24,
                style: { color: m },
                className: "drop-shadow-md",
              });
    return r.jsx(V.li, {
      variants: M,
      custom: v,
      className:
        "rounded-lg border border-[var(--border)] overflow-hidden backdrop-blur-md shadow-md transition-shadow duration-250 hover:shadow-lg",
      children: r.jsxs(V.div, {
        className:
          "!bg-[var(--card-background)] flex items-center p-4 relative",
        initial: "rest",
        whileHover: "hover",
        variants: j,
        children: [
          r.jsx(V.div, {
            className: "absolute left-0 top-0 bottom-0 w-1.5",
            style: { backgroundColor: (S === "labels" && s.hexColor) || m },
            layoutId: `color-bar-${s.id}`,
          }),
          r.jsxs("div", {
            className: "flex items-center gap-3 flex-shrink-0 pl-2 w-1/2",
            children: [
              X(),
              r.jsx(V.span, {
                className:
                  "font-medium text-[var(--text)] truncate max-w-[130px]",
                children: U(),
              }),
            ],
          }),
          r.jsxs("div", {
            className: "flex flex-nowrap justify-end ml-auto w-1/2 gap-4",
            children: [
              r.jsx("div", {
                className: "flex-1 min-w-[120px] flex justify-end",
                children: r.jsx(Yd, {
                  label: `${f.contacts}: ${C}`,
                  index: v,
                  delay: 0.3,
                  hexColor: S === "labels" ? s.hexColor : void 0,
                }),
              }),
              r.jsx("div", {
                className: "flex-1 min-w-[150px] flex justify-end",
                children: r.jsx(Yd, {
                  label: `${f.valor}: ₹${H(D)}`,
                  index: v,
                  delay: 0.4,
                  hexColor: S === "labels" ? s.hexColor : void 0,
                }),
              }),
            ],
          }),
        ],
      }),
    });
  },
  p1 = Dt((s, v) => ({
    getActiveTabs: () => {
      const {
        selectedCrmType: m,
        selectedCrm: f,
        selectedUserTabs: S,
        selectedUserLabels: E,
        userLabelsOptions: M,
      } = ql.getState();
      return m === "traditional"
        ? f
          ? f.list || []
          : []
        : m === "userTabs"
          ? S
            ? S.filter((j) => !j.hide) || []
            : []
          : m === "labels"
            ? E && E.length > 0
              ? E
              : M && M.length > 0
                ? M
                : []
            : [];
    },
    getTabColor: (m) => {
      const { selectedCrmType: f } = ql.getState();
      return f === "traditional" && "hexColor" in m
        ? m.hexColor || "var(--primaria)"
        : f === "labels"
          ? m.hexColor || "#2196F3"
          : "var(--primaria)";
    },
  })),
  S1 = () => {
    const { getActiveTabs: s, getTabColor: v } = p1(),
      { selectedCrm: m, selectedCrmType: f, crmOptions: S } = ql(),
      { containerTabsVariants: E } = za,
      { language: M } = gt(),
      j = S.length === 0,
      O = s(),
      { sortTabs: H } = Pn(),
      D = H(O);
    return x1(f, m, j, O)
      ? z1(f, m, j, M, O)
      : r.jsx("div", {
          className: "overflow-y-auto",
          children: r.jsx(V.ul, {
            className: "p-4 space-y-3 overflow-y-auto",
            initial: "initial",
            animate: "animate",
            exit: "exit",
            variants: E,
            children:
              D.length > 0
                ? D.map((C, U) =>
                    r.jsx(b1, { tab: C, index: U, tabColor: v(C) }, C.id),
                  )
                : r.jsx("p", {
                    className: "text-center text-gray-500",
                    children: M.nenhumaAbaDisponivel,
                  }),
          }),
        });
  };
function x1(s, v, m, f) {
  return f.length === 0 ? !0 : s === "traditional" ? m || (!v && !m) : !1;
}
function z1(s, v, m, f, S) {
  const E = () => chrome.runtime.sendMessage({ message: "CRM" });
  if (S.length === 0)
    switch (s) {
      case "traditional":
        return r.jsx(kt, {
          message: f.nenhumCRMCriado,
          criar: f.criarCRM,
          function: E,
          animate: !0,
        });
      case "userTabs":
        return r.jsx(kt, {
          message: f.nenhumaAbaPlugin,
          criar: f.criarAba,
          function: E,
          animate: !0,
        });
      case "labels":
        return r.jsx(kt, {
          message: f.nenhumaEtiqueta,
          criar: f.verifiqueWhatsAppAbertoOuCrieEtiqueta,
          animate: !0,
        });
      default:
        return r.jsx(kt, {
          message: f.nenhumaAbaDisponivel,
          criar: f.criarCRM,
          function: E,
          animate: !0,
        });
    }
  switch (s) {
    case "traditional":
      return v && m
        ? r.jsx(kt, {
            message: f.nenhumaAbaDoCRMSelecionada,
            criar: f.criarAbaNoCRM,
            function: E,
            animate: !0,
          })
        : m
          ? r.jsx(kt, {
              message: f.nenhumCRMCriado,
              criar: f.criarCRM,
              function: E,
              animate: !0,
            })
          : r.jsx(kt, { message: f.selecioneCRM, animate: !0 });
    case "userTabs":
      return r.jsx(kt, {
        message: f.nenhumaAbaPlugin,
        criar: f.criarAba,
        function: E,
        animate: !0,
      });
    case "labels":
      return r.jsx(kt, {
        message: f.nenhumaEtiqueta,
        criar: f.verifiqueWhatsAppAbertoOuCrieEtiqueta,
        animate: !0,
      });
  }
  return null;
}
function T1() {
  const { selectedCrmType: s } = ql(),
    { language: v } = gt();
  switch (s) {
    case "traditional":
      return `${v.listaDeAbas} (CRM)`;
    case "userTabs":
      return v.CRM_abasCreate;
    case "labels":
      return v.etiquetas;
    default:
      return v.listaDeAbas;
  }
}
const A1 = () => {
    const { containerTabsVariants: s, titleVariants: v } = za;
    return r.jsxs(V.div, {
      className:
        "p-4 rounded-md bg-gray-200 dark:bg-[var(--funil-background)] select-none flex flex-col h-full",
      initial: "initial",
      animate: "animate",
      exit: "exit",
      variants: s,
      children: [
        r.jsxs(V.h2, {
          className:
            "top-0 bg-gray-200 dark:bg-[var(--funil-background)] text-2xl font-bold mb-8 text-[var(--text)] pl-2 border-l-4 border-[var(--primaria)] ml-1 relative z-[10]",
          variants: v,
          children: [
            r.jsx("div", { className: "p-1", children: T1() }),
            r.jsx(V.div, {
              className: "absolute bottom-0 left-0 h-0.5 bg-[var(--primaria)]",
              initial: { width: 0 },
              animate: {
                width: "100%",
                transition: { delay: 0.5, duration: 0.8 },
              },
            }),
          ],
        }),
        r.jsx("div", {
          className: "flex-1 min-h-0 overflow-y-auto",
          children: r.jsx(In, { mode: "wait", children: r.jsx(S1, {}) }),
        }),
      ],
    });
  },
  E1 = () => {
    const { language: s } = gt(),
      { isFunnel: v } = Zd(),
      { dataOrder: m } = Ka(),
      { chartContainerVariants: f, graphTransitionVariants: S } = za;
    return r.jsxs("div", {
      className:
        "grid gap-4 grid-cols-1 min-[1080px]:grid-cols-2 min-h-[18rem] max-h-[36rem]",
      children: [
        r.jsx(V.div, {
          className: "h-full",
          variants: f,
          initial: "initial",
          animate: "animate",
          exit: "exit",
          transition: { duration: 0.15, ease: "easeOut" },
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow h-full flex flex-col min-h-72 max-h-[36rem] rounded-lg ",
            children: [
              r.jsx(Qa, {
                className: "flex items-center justify-between",
                children: r.jsx("div", {
                  className: "flex items-center gap-2",
                  children: r.jsxs(Ne, {
                    className:
                      "select-none text-xl font-semibold text-[var(--text)] gap-4 flex justify-between items-center",
                    children: [
                      v ? s.funilVendas : s.graficoVendas,
                      r.jsx("div", {
                        className: "ml-4",
                        children: r.jsx(g1, {}),
                      }),
                    ],
                  }),
                }),
              }),
              r.jsx(Za, {
                className:
                  "flex-1 mt-5 relative bg-[var(--card-background)] select-none min-h-72 max-h-[36rem] overflow-hidden rounded-lg",
                children: r.jsx(In, {
                  mode: "wait",
                  children: r.jsx(
                    V.div,
                    {
                      initial: "enter",
                      animate: "center",
                      exit: "exit",
                      variants: S,
                      transition: {
                        type: "spring",
                        stiffness: 400,
                        damping: 30,
                        duration: 0.15,
                      },
                      className: "absolute inset-0",
                      style: {
                        transformOrigin: "center center",
                        perspective: "1000px",
                      },
                      children: v
                        ? r.jsx(V.div, {
                            className: "w-full h-full",
                            initial: { rotateY: -90 },
                            animate: { rotateY: 0 },
                            exit: { rotateY: 90 },
                            transition: { duration: 0.1 },
                            children: r.jsx(n1, {}),
                          })
                        : r.jsx(V.div, {
                            className: "w-full h-full overflow-hidden",
                            initial: { rotateY: -90 },
                            animate: { rotateY: 0 },
                            exit: { rotateY: 90 },
                            transition: { duration: 0.1 },
                            children: r.jsx(i1, {}),
                          }),
                    },
                    v ? "funnel" : "pie",
                  ),
                }),
              }),
            ],
          }),
        }),
        r.jsx(V.div, {
          className: "h-full",
          variants: f,
          initial: "initial",
          animate: "animate",
          exit: "exit",
          transition: { duration: 0.15, ease: "easeOut", delay: 0.05 },
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow flex flex-col h-[36rem] rounded-lg",
            children: [
              r.jsx(Qa, { children: r.jsx(d1, {}) }),
              r.jsx(Za, {
                className: "flex-1 overflow-hidden",
                children: r.jsx("div", {
                  className: "w-full h-full overflow-y-auto",
                  children: r.jsx(A1, {}),
                }),
              }),
            ],
          }),
        }),
      ],
    });
  },
  Pd = {
    getCombinedData: () => {
      const s = getComputedStyle(document.documentElement)
          .getPropertyValue("--primaria")
          .trim(),
        v = ql.getState(),
        m = gt.getState().language,
        f = {
          "CRM Tradicional": "#FF6384",
          "Abas de Usuário": s,
          Etiquetas: "#FFCE56",
        },
        { crmOptions: S, userTabsOptions: E, userLabelsOptions: M } = v;
      v.calculateAllCRMValues();
      const j = ql.getState().calculatedValues,
        O = S.flatMap((C) =>
          C.list.map((U) => {
            const X =
                j.crm?.[U.id] ??
                (U.profileCalculated && typeof U.profile == "number"
                  ? U.profile
                  : 0),
              L = U.chats?.length ?? 0;
            return {
              id: U.id,
              name: U.name || `${C.name} - ${U.id}`,
              value: X,
              color: U.hexColor || f["CRM Tradicional"],
              type: "CRM Tradicional",
              contacts: L,
              typeName: m.abas,
            };
          }),
        ),
        H = (E || []).map((C) => {
          const U =
              j.userTabs?.[C.id] ??
              (C.profileCalculated && typeof C.profile == "number"
                ? C.profile
                : 0),
            X = Array.isArray(C.chats) ? C.chats.length : 0;
          return {
            id: C.id,
            name: C.tag || `CRM ${C.id}`,
            value: U,
            color: f["Abas de Usuário"],
            type: "Abas de Usuário",
            contacts: X,
            typeName: m.abas,
          };
        }),
        D = (M || []).map((C) => {
          const U =
              j.labels?.[C.id] ??
              (C.profileCalculated && typeof C.profile == "number"
                ? C.profile
                : 0),
            X = Array.isArray(C.chats) ? C.chats.length : 0;
          return {
            id: C.id,
            name: C.name || `Tag ${C.id}`,
            value: U,
            color: C.hexColor || f.Etiquetas,
            type: "Etiquetas",
            contacts: X,
            typeName: m.etiquetas,
          };
        });
      return { crmData: O, userTabsData: H, labelsData: D };
    },
    exportToExcel: async () => {
      const { language: s } = gt.getState();
      try {
        const {
            crmData: v,
            userTabsData: m,
            labelsData: f,
          } = Pd.getCombinedData(),
          S = getComputedStyle(document.documentElement)
            .getPropertyValue("--primaria")
            .trim(),
          M = (
            await Bd.post(
              `${Oh.backend_utils}api/XLSX/exportFunil`,
              {
                crmData: v,
                userTabsData: m,
                labelsData: f,
                language: s,
                primaryColor: S,
              },
              { headers: { "Content-Type": "application/json" } },
            )
          ).data;
        if (!M.success) throw new Error(M.error || "Erro ao exportar dados");
        const j = atob(M.XLSXbase64),
          O = Array.from(j).map((X) => X.charCodeAt(0)),
          H = new Uint8Array(O),
          D = new Blob([H], {
            type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          }),
          C = window.URL.createObjectURL(D),
          U = document.createElement("a");
        return (
          (U.href = C),
          (U.download = M.filename),
          U.click(),
          window.URL.revokeObjectURL(C),
          Ud({
            type: "Success",
            message: s.funnilExport,
            position: "top-right",
          }),
          !0
        );
      } catch (v) {
        return (
          Ud({
            type: "Error",
            message: s.funnilExportError,
            position: "top-right",
          }),
          Bd.isAxiosError(v)
            ? console.error(
                "[exportToExcel] Erro na API:",
                v.response?.data || v.message,
              )
            : console.error("[exportToExcel] Erro ao exportar:", v),
          !1
        );
      }
    },
  },
  C1 = () => {
    const [s, v] = cl.useState(!1),
      [m, f] = cl.useState(!1),
      { language: S } = gt(),
      E = async () => {
        v(!0);
        try {
          (await Pd.exportToExcel())
            ? (v(!1),
              f(!0),
              setTimeout(() => {
                f(!1);
              }, 2e3))
            : v(!1);
        } catch (M) {
          (console.error("Export failed:", M), v(!1));
        }
      };
    // return r.jsxs("button", {
    //   onClick: E,
    //   disabled: s,
    //   className: `relative flex items-center gap-2 px-4 py-2 rounded-lg bg-[var(--primaria)]  text-white font-medium transition-all duration-500 ease-in-out  hover:bg-[var(--terciaria)] hover:scale-105 active:scale-95 disabled:opacity-75 disabled:cursor-not-allowed disabled:hover:scale-100 select-none ${s ? "scale-95" : ""} ${m ? "scale-105" : ""} `,
    //   children: [
    //     r.jsxs("div", {
    //       className: "relative w-5 h-5",
    //       children: [
    //         r.jsx(Gh, {
    //           className: `absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${s ? "translate-x-2 -translate-y-2 opacity-0" : "translate-x-0 translate-y-0"} ${m ? "opacity-0 scale-0 rotate-45" : "scale-100 rotate-0"} `,
    //         }),
    //         r.jsx(Qh, {
    //           className: `absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${m ? "opacity-100 scale-100 rotate-0" : "opacity-0 scale-0 -rotate-45"} `,
    //         }),
    //       ],
    //     }),
    //     r.jsx("span", {
    //       className: `transition-all duration-300 ease-in-out ${s ? "opacity-75" : ""} ${m ? "scale-105" : ""}`,
    //       children: m ? S.exportado : s ? S.exportando : S.exportarParaExcel,
    //     }),
    //   ],
    // });
  },
  M1 = () => {
    const { language: s } = gt(),
      { cardVariants: v, numberVariants: m } = za,
      {
        totalFormatted: f,
        averageFormatted: S,
        taxaConversaoPorContato: E,
        contacts: M,
      } = Of();
    return r.jsxs("div", {
      className: "select-none grid gap-4 md:grid-cols-2 lg:grid-cols-4",
      children: [
        r.jsx(V.div, {
          variants: v,
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",
            children: [
              r.jsx(Qa, {
                className: "pb-2",
                children: r.jsxs(Ne, {
                  className:
                    "text-sm font-medium text-[var(--text)] flex justify-between items-center",
                  children: [
                    s.contatos,
                    " ",
                    r.jsx(Zh, {
                      className: "text-[var(--primaria)] ml-2 text-xl",
                    }),
                  ],
                }),
              }),
              r.jsx(Za, {
                children: r.jsx(V.div, {
                  variants: m,
                  className: "text-2xl font-bold text-[var(--text)]",
                  children: M,
                }),
              }),
            ],
          }),
        }),
        r.jsx(V.div, {
          variants: v,
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",
            children: [
              r.jsx(Qa, {
                className: "pb-2",
                children: r.jsxs(Ne, {
                  className:
                    "text-sm font-medium text-[var(--text)] flex justify-between items-center",
                  children: [
                    s.taxaConversao,
                    " ",
                    r.jsx(Kh, {
                      className: "text-[var(--primaria)] ml-2 text-xl",
                    }),
                  ],
                }),
              }),
              r.jsx(Za, {
                children: r.jsx(V.div, {
                  variants: m,
                  className: "text-2xl font-bold text-[var(--text)]",
                  children: E,
                }),
              }),
            ],
          }),
        }),
        r.jsx(V.div, {
          variants: v,
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",
            children: [
              r.jsx(Qa, {
                className: "pb-2",
                children: r.jsxs(Ne, {
                  className:
                    "text-sm font-medium text-[var(--text)] flex justify-between items-center",
                  children: [
                    s.receitaMediaAba,
                    " ",
                    r.jsx(c1, {
                      className: "text-[var(--primaria)] ml-2 text-xl",
                    }),
                  ],
                }),
              }),
              r.jsx(Za, {
                children: r.jsx(V.div, {
                  variants: m,
                  className: "text-2xl font-bold text-[var(--text)]",
                  children: S,
                }),
              }),
            ],
          }),
        }),
        r.jsx(V.div, {
          variants: v,
          children: r.jsxs(Ga, {
            className:
              "border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",
            children: [
              r.jsx(Qa, {
                className: "pb-2",
                children: r.jsxs(Ne, {
                  className:
                    "text-sm font-medium text-[var(--text)] flex justify-between items-center",
                  children: [
                    s.receitaTotal,
                    " ",
                    r.jsx(f1, {
                      className: "text-[var(--primaria)] ml-2 text-xl",
                    }),
                  ],
                }),
              }),
              r.jsx(Za, {
                children: r.jsx(V.div, {
                  variants: m,
                  className: "text-2xl font-bold text-[var(--text)]",
                  children: f,
                }),
              }),
            ],
          }),
        }),
      ],
    });
  },
  O1 = () => (
    cl.useEffect(() => {
      u1();
    }, []),
    r.jsx(r.Fragment, {
      children: r.jsx("div", {
        className: "h-full overflow-y-auto",
        children: r.jsx("div", {
          className:
            "p-3 bg-[var(--funil-background)] min-h-full flex flex-col",
          children: r.jsxs(V.div, {
            className: "max-w-7xl mx-auto w-full flex-1 flex flex-col",
            initial: "hidden",
            animate: "visible",
            variants: { visible: { transition: { staggerChildren: 0.1 } } },
            children: [
              r.jsx("div", {
                className: "flex justify-end pb-4",
                children: r.jsx(C1, {}),
              }),
              r.jsx("div", { className: "pb-4", children: r.jsx(M1, {}) }),
              r.jsx(r.Fragment, { children: r.jsx(E1, {}) }),
            ],
          }),
        }),
      }),
    })
  ),
  D1 = () => {
    const { whatsappOpen: s } = Xd(),
      { language: v } = gt();
    return s ? r.jsx(O1, {}) : r.jsx(Jh, { language: v });
  },
  l0 = () => {
    const { is_load: s, config: v } = Dh.getState();
    if (!s) setTimeout(l0, 350);
    else {
      const m = document.createElement("link");
      ((m.rel = "stylesheet"),
        (m.type = "text/css"),
        (m.href = chrome.runtime.getURL(`label/css/${v.nameID}.css`)),
        document.head.appendChild(m),
        (document.querySelector("#title").innerHTML = "Funil CRM"),
        (() => {
          const f = document.querySelector("#app");
          if (!f) throw new Error("Can not find #app");
          Ph.createRoot(f).render(r.jsx(D1, {}));
        })());
    }
  };
l0();
export { L1 as T, R1 as a };
