var sw = Object.defineProperty;
var aw = (e, t, n) => (t in e ? sw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n));
var Xt = (e, t, n) => (aw(e, typeof t != "symbol" ? t + "" : t, n), n);
function lw(e, t) {
  for (var n = 0; n < t.length; n++) {
    const r = t[n];
    if (typeof r != "string" && !Array.isArray(r)) {
      for (const o in r)
        if (o !== "default" && !(o in e)) {
          const i = Object.getOwnPropertyDescriptor(r, o);
          i && Object.defineProperty(e, o, i.get ? i : { enumerable: !0, get: () => r[o] });
        }
    }
  }
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
}
var uw =
  typeof globalThis < "u"
    ? globalThis
    : typeof window < "u"
      ? window
      : typeof global < "u"
        ? global
        : typeof self < "u"
          ? self
          : {};
function Ti(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function Wo(e) {
  if (e.__esModule) return e;
  var t = e.default;
  if (typeof t == "function") {
    var n = function r() {
      return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
    };
    n.prototype = t.prototype;
  } else n = {};
  return (
    Object.defineProperty(n, "__esModule", { value: !0 }),
    Object.keys(e).forEach(function (r) {
      var o = Object.getOwnPropertyDescriptor(e, r);
      Object.defineProperty(
        n,
        r,
        o.get
          ? o
          : {
              enumerable: !0,
              get: function () {
                return e[r];
              },
            }
      );
    }),
    n
  );
}
var ey = { exports: {} },
  ep = {},
  ty = { exports: {} },
  Ye = {};
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Zu = Symbol.for("react.element"),
  cw = Symbol.for("react.portal"),
  dw = Symbol.for("react.fragment"),
  fw = Symbol.for("react.strict_mode"),
  pw = Symbol.for("react.profiler"),
  hw = Symbol.for("react.provider"),
  mw = Symbol.for("react.context"),
  gw = Symbol.for("react.forward_ref"),
  yw = Symbol.for("react.suspense"),
  vw = Symbol.for("react.memo"),
  xw = Symbol.for("react.lazy"),
  X5 = Symbol.iterator;
function bw(e) {
  return e === null || typeof e != "object"
    ? null
    : ((e = (X5 && e[X5]) || e["@@iterator"]), typeof e == "function" ? e : null);
}
var ny = {
    isMounted: function () {
      return !1;
    },
    enqueueForceUpdate: function () {},
    enqueueReplaceState: function () {},
    enqueueSetState: function () {},
  },
  ry = Object.assign,
  oy = {};
function Za(e, t, n) {
  (this.props = e), (this.context = t), (this.refs = oy), (this.updater = n || ny);
}
Za.prototype.isReactComponent = {};
Za.prototype.setState = function (e, t) {
  if (typeof e != "object" && typeof e != "function" && e != null)
    throw Error(
      "setState(...): takes an object of state variables to update or a function which returns an object of state variables."
    );
  this.updater.enqueueSetState(this, e, t, "setState");
};
Za.prototype.forceUpdate = function (e) {
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
};
function iy() {}
iy.prototype = Za.prototype;
function f2(e, t, n) {
  (this.props = e), (this.context = t), (this.refs = oy), (this.updater = n || ny);
}
var p2 = (f2.prototype = new iy());
p2.constructor = f2;
ry(p2, Za.prototype);
p2.isPureReactComponent = !0;
var q5 = Array.isArray,
  sy = Object.prototype.hasOwnProperty,
  h2 = { current: null },
  ay = { key: !0, ref: !0, __self: !0, __source: !0 };
function ly(e, t, n) {
  var r,
    o = {},
    i = null,
    s = null;
  if (t != null)
    for (r in (t.ref !== void 0 && (s = t.ref), t.key !== void 0 && (i = "" + t.key), t))
      sy.call(t, r) && !ay.hasOwnProperty(r) && (o[r] = t[r]);
  var a = arguments.length - 2;
  if (a === 1) o.children = n;
  else if (1 < a) {
    for (var l = Array(a), u = 0; u < a; u++) l[u] = arguments[u + 2];
    o.children = l;
  }
  if (e && e.defaultProps) for (r in ((a = e.defaultProps), a)) o[r] === void 0 && (o[r] = a[r]);
  return { $$typeof: Zu, type: e, key: i, ref: s, props: o, _owner: h2.current };
}
function Cw(e, t) {
  return { $$typeof: Zu, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner };
}
function m2(e) {
  return typeof e == "object" && e !== null && e.$$typeof === Zu;
}
function ww(e) {
  var t = { "=": "=0", ":": "=2" };
  return (
    "$" +
    e.replace(/[=:]/g, function (n) {
      return t[n];
    })
  );
}
var Z5 = /\/+/g;
function e1(e, t) {
  return typeof e == "object" && e !== null && e.key != null ? ww("" + e.key) : t.toString(36);
}
function Sd(e, t, n, r, o) {
  var i = typeof e;
  (i === "undefined" || i === "boolean") && (e = null);
  var s = !1;
  if (e === null) s = !0;
  else
    switch (i) {
      case "string":
      case "number":
        s = !0;
        break;
      case "object":
        switch (e.$$typeof) {
          case Zu:
          case cw:
            s = !0;
        }
    }
  if (s)
    return (
      (s = e),
      (o = o(s)),
      (e = r === "" ? "." + e1(s, 0) : r),
      q5(o)
        ? ((n = ""),
          e != null && (n = e.replace(Z5, "$&/") + "/"),
          Sd(o, t, n, "", function (u) {
            return u;
          }))
        : o != null &&
          (m2(o) &&
            (o = Cw(o, n + (!o.key || (s && s.key === o.key) ? "" : ("" + o.key).replace(Z5, "$&/") + "/") + e)),
          t.push(o)),
      1
    );
  if (((s = 0), (r = r === "" ? "." : r + ":"), q5(e)))
    for (var a = 0; a < e.length; a++) {
      i = e[a];
      var l = r + e1(i, a);
      s += Sd(i, t, n, l, o);
    }
  else if (((l = bw(e)), typeof l == "function"))
    for (e = l.call(e), a = 0; !(i = e.next()).done; ) (i = i.value), (l = r + e1(i, a++)), (s += Sd(i, t, n, l, o));
  else if (i === "object")
    throw (
      ((t = String(e)),
      Error(
        "Objects are not valid as a React child (found: " +
          (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) +
          "). If you meant to render a collection of children, use an array instead."
      ))
    );
  return s;
}
function Dc(e, t, n) {
  if (e == null) return e;
  var r = [],
    o = 0;
  return (
    Sd(e, r, "", "", function (i) {
      return t.call(n, i, o++);
    }),
    r
  );
}
function Sw(e) {
  if (e._status === -1) {
    var t = e._result;
    (t = t()),
      t.then(
        function (n) {
          (e._status === 0 || e._status === -1) && ((e._status = 1), (e._result = n));
        },
        function (n) {
          (e._status === 0 || e._status === -1) && ((e._status = 2), (e._result = n));
        }
      ),
      e._status === -1 && ((e._status = 0), (e._result = t));
  }
  if (e._status === 1) return e._result.default;
  throw e._result;
}
var kn = { current: null },
  kd = { transition: null },
  kw = { ReactCurrentDispatcher: kn, ReactCurrentBatchConfig: kd, ReactCurrentOwner: h2 };
function uy() {
  throw Error("act(...) is not supported in production builds of React.");
}
Ye.Children = {
  map: Dc,
  forEach: function (e, t, n) {
    Dc(
      e,
      function () {
        t.apply(this, arguments);
      },
      n
    );
  },
  count: function (e) {
    var t = 0;
    return (
      Dc(e, function () {
        t++;
      }),
      t
    );
  },
  toArray: function (e) {
    return (
      Dc(e, function (t) {
        return t;
      }) || []
    );
  },
  only: function (e) {
    if (!m2(e)) throw Error("React.Children.only expected to receive a single React element child.");
    return e;
  },
};
Ye.Component = Za;
Ye.Fragment = dw;
Ye.Profiler = pw;
Ye.PureComponent = f2;
Ye.StrictMode = fw;
Ye.Suspense = yw;
Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = kw;
Ye.act = uy;
Ye.cloneElement = function (e, t, n) {
  if (e == null)
    throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
  var r = ry({}, e.props),
    o = e.key,
    i = e.ref,
    s = e._owner;
  if (t != null) {
    if (
      (t.ref !== void 0 && ((i = t.ref), (s = h2.current)),
      t.key !== void 0 && (o = "" + t.key),
      e.type && e.type.defaultProps)
    )
      var a = e.type.defaultProps;
    for (l in t) sy.call(t, l) && !ay.hasOwnProperty(l) && (r[l] = t[l] === void 0 && a !== void 0 ? a[l] : t[l]);
  }
  var l = arguments.length - 2;
  if (l === 1) r.children = n;
  else if (1 < l) {
    a = Array(l);
    for (var u = 0; u < l; u++) a[u] = arguments[u + 2];
    r.children = a;
  }
  return { $$typeof: Zu, type: e.type, key: o, ref: i, props: r, _owner: s };
};
Ye.createContext = function (e) {
  return (
    (e = {
      $$typeof: mw,
      _currentValue: e,
      _currentValue2: e,
      _threadCount: 0,
      Provider: null,
      Consumer: null,
      _defaultValue: null,
      _globalName: null,
    }),
    (e.Provider = { $$typeof: hw, _context: e }),
    (e.Consumer = e)
  );
};
Ye.createElement = ly;
Ye.createFactory = function (e) {
  var t = ly.bind(null, e);
  return (t.type = e), t;
};
Ye.createRef = function () {
  return { current: null };
};
Ye.forwardRef = function (e) {
  return { $$typeof: gw, render: e };
};
Ye.isValidElement = m2;
Ye.lazy = function (e) {
  return { $$typeof: xw, _payload: { _status: -1, _result: e }, _init: Sw };
};
Ye.memo = function (e, t) {
  return { $$typeof: vw, type: e, compare: t === void 0 ? null : t };
};
Ye.startTransition = function (e) {
  var t = kd.transition;
  kd.transition = {};
  try {
    e();
  } finally {
    kd.transition = t;
  }
};
Ye.unstable_act = uy;
Ye.useCallback = function (e, t) {
  return kn.current.useCallback(e, t);
};
Ye.useContext = function (e) {
  return kn.current.useContext(e);
};
Ye.useDebugValue = function () {};
Ye.useDeferredValue = function (e) {
  return kn.current.useDeferredValue(e);
};
Ye.useEffect = function (e, t) {
  return kn.current.useEffect(e, t);
};
Ye.useId = function () {
  return kn.current.useId();
};
Ye.useImperativeHandle = function (e, t, n) {
  return kn.current.useImperativeHandle(e, t, n);
};
Ye.useInsertionEffect = function (e, t) {
  return kn.current.useInsertionEffect(e, t);
};
Ye.useLayoutEffect = function (e, t) {
  return kn.current.useLayoutEffect(e, t);
};
Ye.useMemo = function (e, t) {
  return kn.current.useMemo(e, t);
};
Ye.useReducer = function (e, t, n) {
  return kn.current.useReducer(e, t, n);
};
Ye.useRef = function (e) {
  return kn.current.useRef(e);
};
Ye.useState = function (e) {
  return kn.current.useState(e);
};
Ye.useSyncExternalStore = function (e, t, n) {
  return kn.current.useSyncExternalStore(e, t, n);
};
Ye.useTransition = function () {
  return kn.current.useTransition();
};
Ye.version = "18.3.1";
ty.exports = Ye;
var b = ty.exports;
const De = Ti(b),
  wh = lw({ __proto__: null, default: De }, [b]);
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Tw = b,
  Mw = Symbol.for("react.element"),
  Ew = Symbol.for("react.fragment"),
  Pw = Object.prototype.hasOwnProperty,
  Aw = Tw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
  _w = { key: !0, ref: !0, __self: !0, __source: !0 };
function cy(e, t, n) {
  var r,
    o = {},
    i = null,
    s = null;
  n !== void 0 && (i = "" + n), t.key !== void 0 && (i = "" + t.key), t.ref !== void 0 && (s = t.ref);
  for (r in t) Pw.call(t, r) && !_w.hasOwnProperty(r) && (o[r] = t[r]);
  if (e && e.defaultProps) for (r in ((t = e.defaultProps), t)) o[r] === void 0 && (o[r] = t[r]);
  return { $$typeof: Mw, type: e, key: i, ref: s, props: o, _owner: Aw.current };
}
ep.Fragment = Ew;
ep.jsx = cy;
ep.jsxs = cy;
ey.exports = ep;
var f = ey.exports,
  dy = { exports: {} },
  fy = {};
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Ea = b;
function Dw(e, t) {
  return (e === t && (e !== 0 || 1 / e === 1 / t)) || (e !== e && t !== t);
}
var Rw = typeof Object.is == "function" ? Object.is : Dw,
  Iw = Ea.useState,
  Ow = Ea.useEffect,
  Fw = Ea.useLayoutEffect,
  Lw = Ea.useDebugValue;
function Nw(e, t) {
  var n = t(),
    r = Iw({ inst: { value: n, getSnapshot: t } }),
    o = r[0].inst,
    i = r[1];
  return (
    Fw(
      function () {
        (o.value = n), (o.getSnapshot = t), t1(o) && i({ inst: o });
      },
      [e, n, t]
    ),
    Ow(
      function () {
        return (
          t1(o) && i({ inst: o }),
          e(function () {
            t1(o) && i({ inst: o });
          })
        );
      },
      [e]
    ),
    Lw(n),
    n
  );
}
function t1(e) {
  var t = e.getSnapshot;
  e = e.value;
  try {
    var n = t();
    return !Rw(e, n);
  } catch {
    return !0;
  }
}
function $w(e, t) {
  return t();
}
var Bw = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? $w : Nw;
fy.useSyncExternalStore = Ea.useSyncExternalStore !== void 0 ? Ea.useSyncExternalStore : Bw;
dy.exports = fy;
var jw = dy.exports;
const ri = () => {},
  Pn = ri(),
  n1 = Object,
  rt = (e) => e === Pn,
  qr = (e) => typeof e == "function",
  vi = (e, t) => ({ ...e, ...t }),
  Vw = (e) => qr(e.then),
  Rc = new WeakMap();
let Hw = 0;
const hu = (e) => {
    const t = typeof e,
      n = e && e.constructor,
      r = n == Date;
    let o, i;
    if (n1(e) === e && !r && n != RegExp) {
      if (((o = Rc.get(e)), o)) return o;
      if (((o = ++Hw + "~"), Rc.set(e, o), n == Array)) {
        for (o = "@", i = 0; i < e.length; i++) o += hu(e[i]) + ",";
        Rc.set(e, o);
      }
      if (n == n1) {
        o = "#";
        const s = n1.keys(e).sort();
        for (; !rt((i = s.pop())); ) rt(e[i]) || (o += i + ":" + hu(e[i]) + ",");
        Rc.set(e, o);
      }
    } else o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
    return o;
  },
  To = new WeakMap(),
  r1 = {},
  Ic = {},
  g2 = "undefined",
  tp = typeof window != g2,
  Sh = typeof document != g2,
  zw = () => tp && typeof window.requestAnimationFrame != g2,
  py = (e, t) => {
    const n = To.get(e);
    return [
      () => (!rt(t) && e.get(t)) || r1,
      (r) => {
        if (!rt(t)) {
          const o = e.get(t);
          t in Ic || (Ic[t] = o), n[5](t, vi(o, r), o || r1);
        }
      },
      n[6],
      () => (!rt(t) && t in Ic ? Ic[t] : (!rt(t) && e.get(t)) || r1),
    ];
  };
let kh = !0;
const Ww = () => kh,
  [Th, Mh] =
    tp && window.addEventListener
      ? [window.addEventListener.bind(window), window.removeEventListener.bind(window)]
      : [ri, ri],
  Gw = () => {
    const e = Sh && document.visibilityState;
    return rt(e) || e !== "hidden";
  },
  Uw = (e) => (
    Sh && document.addEventListener("visibilitychange", e),
    Th("focus", e),
    () => {
      Sh && document.removeEventListener("visibilitychange", e), Mh("focus", e);
    }
  ),
  Yw = (e) => {
    const t = () => {
        (kh = !0), e();
      },
      n = () => {
        kh = !1;
      };
    return (
      Th("online", t),
      Th("offline", n),
      () => {
        Mh("online", t), Mh("offline", n);
      }
    );
  },
  Kw = { isOnline: Ww, isVisible: Gw },
  Xw = { initFocus: Uw, initReconnect: Yw },
  J5 = !De.useId,
  mu = !tp || "Deno" in window,
  qw = (e) => (zw() ? window.requestAnimationFrame(e) : setTimeout(e, 1)),
  o1 = mu ? b.useEffect : b.useLayoutEffect,
  i1 = typeof navigator < "u" && navigator.connection,
  Q5 = !mu && i1 && (["slow-2g", "2g"].includes(i1.effectiveType) || i1.saveData),
  y2 = (e) => {
    if (qr(e))
      try {
        e = e();
      } catch {
        e = "";
      }
    const t = e;
    return (e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? hu(e) : ""), [e, t];
  };
let Zw = 0;
const Eh = () => ++Zw,
  hy = 0,
  my = 1,
  gy = 2,
  Jw = 3;
var pl = { __proto__: null, ERROR_REVALIDATE_EVENT: Jw, FOCUS_EVENT: hy, MUTATE_EVENT: gy, RECONNECT_EVENT: my };
async function yy(...e) {
  const [t, n, r, o] = e,
    i = vi({ populateCache: !0, throwOnError: !0 }, typeof o == "boolean" ? { revalidate: o } : o || {});
  let s = i.populateCache;
  const a = i.rollbackOnError;
  let l = i.optimisticData;
  const u = (p) => (typeof a == "function" ? a(p) : a !== !1),
    c = i.throwOnError;
  if (qr(n)) {
    const p = n,
      h = [],
      m = t.keys();
    for (const v of m) !/^\$(inf|sub)\$/.test(v) && p(t.get(v)._k) && h.push(v);
    return Promise.all(h.map(d));
  }
  return d(n);
  async function d(p) {
    const [h] = y2(p);
    if (!h) return;
    const [m, v] = py(t, h),
      [C, y, g, x] = To.get(t),
      w = () => {
        const F = C[h];
        return (qr(i.revalidate) ? i.revalidate(m().data, p) : i.revalidate !== !1) &&
          (delete g[h], delete x[h], F && F[0])
          ? F[0](gy).then(() => m().data)
          : m().data;
      };
    if (e.length < 3) return w();
    let k = r,
      M;
    const T = Eh();
    y[h] = [T, 0];
    const P = !rt(l),
      A = m(),
      D = A.data,
      R = A._c,
      L = rt(R) ? D : R;
    if ((P && ((l = qr(l) ? l(L, D) : l), v({ data: l, _c: L })), qr(k)))
      try {
        k = k(L);
      } catch (F) {
        M = F;
      }
    if (k && Vw(k))
      if (
        ((k = await k.catch((F) => {
          M = F;
        })),
        T !== y[h][0])
      ) {
        if (M) throw M;
        return k;
      } else M && P && u(M) && ((s = !0), v({ data: L, _c: Pn }));
    if (s && !M)
      if (qr(s)) {
        const F = s(k, L);
        v({ data: F, error: Pn, _c: Pn });
      } else v({ data: k, error: Pn, _c: Pn });
    if (
      ((y[h][1] = Eh()),
      Promise.resolve(w()).then(() => {
        v({ _c: Pn });
      }),
      M)
    ) {
      if (c) throw M;
      return;
    }
    return k;
  }
}
const e3 = (e, t) => {
    for (const n in e) e[n][0] && e[n][0](t);
  },
  Qw = (e, t) => {
    if (!To.has(e)) {
      const n = vi(Xw, t),
        r = {},
        o = yy.bind(Pn, e);
      let i = ri;
      const s = {},
        a = (c, d) => {
          const p = s[c] || [];
          return (s[c] = p), p.push(d), () => p.splice(p.indexOf(d), 1);
        },
        l = (c, d, p) => {
          e.set(c, d);
          const h = s[c];
          if (h) for (const m of h) m(d, p);
        },
        u = () => {
          if (!To.has(e) && (To.set(e, [r, {}, {}, {}, o, l, a]), !mu)) {
            const c = n.initFocus(setTimeout.bind(Pn, e3.bind(Pn, r, hy))),
              d = n.initReconnect(setTimeout.bind(Pn, e3.bind(Pn, r, my)));
            i = () => {
              c && c(), d && d(), To.delete(e);
            };
          }
        };
      return u(), [e, o, u, i];
    }
    return [e, To.get(e)[4]];
  },
  eS = (e, t, n, r, o) => {
    const i = n.errorRetryCount,
      s = o.retryCount,
      a = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
    (!rt(i) && s > i) || setTimeout(r, a, o);
  },
  tS = (e, t) => hu(e) == hu(t),
  [vy, nS] = Qw(new Map()),
  rS = vi(
    {
      onLoadingSlow: ri,
      onSuccess: ri,
      onError: ri,
      onErrorRetry: eS,
      onDiscarded: ri,
      revalidateOnFocus: !0,
      revalidateOnReconnect: !0,
      revalidateIfStale: !0,
      shouldRetryOnError: !0,
      errorRetryInterval: Q5 ? 1e4 : 5e3,
      focusThrottleInterval: 5 * 1e3,
      dedupingInterval: 2 * 1e3,
      loadingTimeout: Q5 ? 5e3 : 3e3,
      compare: tS,
      isPaused: () => !1,
      cache: vy,
      mutate: nS,
      fallback: {},
    },
    Kw
  ),
  oS = (e, t) => {
    const n = vi(e, t);
    if (t) {
      const { use: r, fallback: o } = e,
        { use: i, fallback: s } = t;
      r && i && (n.use = r.concat(i)), o && s && (n.fallback = vi(o, s));
    }
    return n;
  },
  iS = b.createContext({}),
  sS = "$inf$",
  xy = tp && window.__SWR_DEVTOOLS_USE__,
  aS = xy ? window.__SWR_DEVTOOLS_USE__ : [],
  lS = () => {
    xy && (window.__SWR_DEVTOOLS_REACT__ = De);
  },
  uS = (e) => (qr(e[1]) ? [e[0], e[1], e[2] || {}] : [e[0], null, (e[1] === null ? e[2] : e[1]) || {}]),
  cS = () => vi(rS, b.useContext(iS)),
  dS = (e) => (t, n, r) =>
    e(
      t,
      n &&
        ((...i) => {
          const [s] = y2(t),
            [, , , a] = To.get(vy);
          if (s.startsWith(sS)) return n(...i);
          const l = a[s];
          return rt(l) ? n(...i) : (delete a[s], l);
        }),
      r
    ),
  fS = aS.concat(dS),
  pS = (e) =>
    function (...n) {
      const r = cS(),
        [o, i, s] = uS(n),
        a = oS(r, s);
      let l = e;
      const { use: u } = a,
        c = (u || []).concat(fS);
      for (let d = c.length; d--; ) l = c[d](l);
      return l(o, i || a.fetcher || null, a);
    },
  hS = (e, t, n) => {
    const r = t[e] || (t[e] = []);
    return (
      r.push(n),
      () => {
        const o = r.indexOf(n);
        o >= 0 && ((r[o] = r[r.length - 1]), r.pop());
      }
    );
  };
lS();
const t3 =
    De.use ||
    ((e) => {
      if (e.status === "pending") throw e;
      if (e.status === "fulfilled") return e.value;
      throw e.status === "rejected"
        ? e.reason
        : ((e.status = "pending"),
          e.then(
            (t) => {
              (e.status = "fulfilled"), (e.value = t);
            },
            (t) => {
              (e.status = "rejected"), (e.reason = t);
            }
          ),
          e);
    }),
  s1 = { dedupe: !0 },
  mS = (e, t, n) => {
    const {
        cache: r,
        compare: o,
        suspense: i,
        fallbackData: s,
        revalidateOnMount: a,
        revalidateIfStale: l,
        refreshInterval: u,
        refreshWhenHidden: c,
        refreshWhenOffline: d,
        keepPreviousData: p,
      } = n,
      [h, m, v, C] = To.get(r),
      [y, g] = y2(e),
      x = b.useRef(!1),
      w = b.useRef(!1),
      k = b.useRef(y),
      M = b.useRef(t),
      T = b.useRef(n),
      P = () => T.current,
      A = () => P().isVisible() && P().isOnline(),
      [D, R, L, F] = py(r, y),
      O = b.useRef({}).current,
      E = rt(s) ? n.fallback[y] : s,
      B = (ne, V) => {
        for (const K in O) {
          const Z = K;
          if (Z === "data") {
            if (!o(ne[Z], V[Z]) && (!rt(ne[Z]) || !o(ae, V[Z]))) return !1;
          } else if (V[Z] !== ne[Z]) return !1;
        }
        return !0;
      },
      j = b.useMemo(() => {
        const ne = !y || !t ? !1 : rt(a) ? (P().isPaused() || i ? !1 : rt(l) ? !0 : l) : a,
          V = (he) => {
            const G = vi(he);
            return delete G._k, ne ? { isValidating: !0, isLoading: !0, ...G } : G;
          },
          K = D(),
          Z = F(),
          ye = V(K),
          Fe = K === Z ? ye : V(Z);
        let le = ye;
        return [
          () => {
            const he = V(D());
            return B(he, le)
              ? ((le.data = he.data),
                (le.isLoading = he.isLoading),
                (le.isValidating = he.isValidating),
                (le.error = he.error),
                le)
              : ((le = he), he);
          },
          () => Fe,
        ];
      }, [r, y]),
      _ = jw.useSyncExternalStore(
        b.useCallback(
          (ne) =>
            L(y, (V, K) => {
              B(K, V) || ne();
            }),
          [r, y]
        ),
        j[0],
        j[1]
      ),
      I = !x.current,
      $ = h[y] && h[y].length > 0,
      J = _.data,
      oe = rt(J) ? E : J,
      pe = _.error,
      z = b.useRef(oe),
      ae = p ? (rt(J) ? z.current : J) : oe,
      me = $ && !rt(pe) ? !1 : I && !rt(a) ? a : P().isPaused() ? !1 : i ? (rt(oe) ? !1 : l) : rt(oe) || l,
      X = !!(y && t && I && me),
      ge = rt(_.isValidating) ? X : _.isValidating,
      Pe = rt(_.isLoading) ? X : _.isLoading,
      _e = b.useCallback(
        async (ne) => {
          const V = M.current;
          if (!y || !V || w.current || P().isPaused()) return !1;
          let K,
            Z,
            ye = !0;
          const Fe = ne || {},
            le = !v[y] || !Fe.dedupe,
            he = () => (J5 ? !w.current && y === k.current && x.current : y === k.current),
            G = { isValidating: !1, isLoading: !1 },
            te = () => {
              R(G);
            },
            we = () => {
              const Te = v[y];
              Te && Te[1] === Z && delete v[y];
            },
            Le = { isValidating: !0 };
          rt(D().data) && (Le.isLoading = !0);
          try {
            if (
              (le &&
                (R(Le),
                n.loadingTimeout &&
                  rt(D().data) &&
                  setTimeout(() => {
                    ye && he() && P().onLoadingSlow(y, n);
                  }, n.loadingTimeout),
                (v[y] = [V(g), Eh()])),
              ([K, Z] = v[y]),
              (K = await K),
              le && setTimeout(we, n.dedupingInterval),
              !v[y] || v[y][1] !== Z)
            )
              return le && he() && P().onDiscarded(y), !1;
            G.error = Pn;
            const Te = m[y];
            if (!rt(Te) && (Z <= Te[0] || Z <= Te[1] || Te[1] === 0)) return te(), le && he() && P().onDiscarded(y), !1;
            const je = D().data;
            (G.data = o(je, K) ? je : K), le && he() && P().onSuccess(K, y, n);
          } catch (Te) {
            we();
            const je = P(),
              { shouldRetryOnError: ut } = je;
            je.isPaused() ||
              ((G.error = Te),
              le &&
                he() &&
                (je.onError(Te, y, je),
                (ut === !0 || (qr(ut) && ut(Te))) &&
                  (!P().revalidateOnFocus || !P().revalidateOnReconnect || A()) &&
                  je.onErrorRetry(
                    Te,
                    y,
                    je,
                    (Xe) => {
                      const Y = h[y];
                      Y && Y[0] && Y[0](pl.ERROR_REVALIDATE_EVENT, Xe);
                    },
                    { retryCount: (Fe.retryCount || 0) + 1, dedupe: !0 }
                  )));
          }
          return (ye = !1), te(), !0;
        },
        [y, r]
      ),
      ie = b.useCallback((...ne) => yy(r, k.current, ...ne), []);
    if (
      (o1(() => {
        (M.current = t), (T.current = n), rt(J) || (z.current = J);
      }),
      o1(() => {
        if (!y) return;
        const ne = _e.bind(Pn, s1);
        let V = 0;
        const Z = hS(y, h, (ye, Fe = {}) => {
          if (ye == pl.FOCUS_EVENT) {
            const le = Date.now();
            P().revalidateOnFocus && le > V && A() && ((V = le + P().focusThrottleInterval), ne());
          } else if (ye == pl.RECONNECT_EVENT) P().revalidateOnReconnect && A() && ne();
          else {
            if (ye == pl.MUTATE_EVENT) return _e();
            if (ye == pl.ERROR_REVALIDATE_EVENT) return _e(Fe);
          }
        });
        return (
          (w.current = !1),
          (k.current = y),
          (x.current = !0),
          R({ _k: g }),
          me && (rt(oe) || mu ? ne() : qw(ne)),
          () => {
            (w.current = !0), Z();
          }
        );
      }, [y]),
      o1(() => {
        let ne;
        function V() {
          const Z = qr(u) ? u(D().data) : u;
          Z && ne !== -1 && (ne = setTimeout(K, Z));
        }
        function K() {
          !D().error && (c || P().isVisible()) && (d || P().isOnline()) ? _e(s1).then(V) : V();
        }
        return (
          V(),
          () => {
            ne && (clearTimeout(ne), (ne = -1));
          }
        );
      }, [u, c, d, y]),
      b.useDebugValue(ae),
      i && rt(oe) && y)
    ) {
      if (!J5 && mu) throw new Error("Fallback data is required when using suspense in SSR.");
      (M.current = t), (T.current = n), (w.current = !1);
      const ne = C[y];
      if (!rt(ne)) {
        const V = ie(ne);
        t3(V);
      }
      if (rt(pe)) {
        const V = _e(s1);
        rt(ae) || ((V.status = "fulfilled"), (V.value = !0)), t3(V);
      } else throw pe;
    }
    return {
      mutate: ie,
      get data() {
        return (O.data = !0), ae;
      },
      get error() {
        return (O.error = !0), pe;
      },
      get isValidating() {
        return (O.isValidating = !0), ge;
      },
      get isLoading() {
        return (O.isLoading = !0), Pe;
      },
    };
  },
  by = pS(mS);
function gS(e) {
  const t = e.items.map((r) => {
      const o = JSON.parse(r.c);
      return { description: r.desc, id: r.id, page: r.p, required: r.req, title: r.title, type: r.typ, content: o };
    }),
    n = {
      fp: e.settings.fp,
      rep: e.settings.rep,
      name: e.settings.name,
      cfg: JSON.parse(e == null ? void 0 : e.settings.cfg),
      lim: e.settings.lim,
      due: e.settings.due,
      delay: e.settings.delay,
      pausable: e.settings.pausable,
    };
  return { cnt: e.cnt, settings: n, questions: t, show_badge: e.show_badge };
}
function Cy(e, t) {
  return function () {
    return e.apply(t, arguments);
  };
}
const { toString: yS } = Object.prototype,
  { getPrototypeOf: v2 } = Object,
  np = ((e) => (t) => {
    const n = yS.call(t);
    return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
  })(Object.create(null)),
  fo = (e) => ((e = e.toLowerCase()), (t) => np(t) === e),
  rp = (e) => (t) => typeof t === e,
  { isArray: Ja } = Array,
  gu = rp("undefined");
function vS(e) {
  return (
    e !== null &&
    !gu(e) &&
    e.constructor !== null &&
    !gu(e.constructor) &&
    ur(e.constructor.isBuffer) &&
    e.constructor.isBuffer(e)
  );
}
const wy = fo("ArrayBuffer");
function xS(e) {
  let t;
  return (
    typeof ArrayBuffer < "u" && ArrayBuffer.isView ? (t = ArrayBuffer.isView(e)) : (t = e && e.buffer && wy(e.buffer)),
    t
  );
}
const bS = rp("string"),
  ur = rp("function"),
  Sy = rp("number"),
  op = (e) => e !== null && typeof e == "object",
  CS = (e) => e === !0 || e === !1,
  Td = (e) => {
    if (np(e) !== "object") return !1;
    const t = v2(e);
    return (
      (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) &&
      !(Symbol.toStringTag in e) &&
      !(Symbol.iterator in e)
    );
  },
  wS = fo("Date"),
  SS = fo("File"),
  kS = fo("Blob"),
  TS = fo("FileList"),
  MS = (e) => op(e) && ur(e.pipe),
  ES = (e) => {
    let t;
    return (
      e &&
      ((typeof FormData == "function" && e instanceof FormData) ||
        (ur(e.append) &&
          ((t = np(e)) === "formdata" || (t === "object" && ur(e.toString) && e.toString() === "[object FormData]"))))
    );
  },
  PS = fo("URLSearchParams"),
  AS = (e) => (e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""));
function Ju(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u") return;
  let r, o;
  if ((typeof e != "object" && (e = [e]), Ja(e))) for (r = 0, o = e.length; r < o; r++) t.call(null, e[r], r, e);
  else {
    const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e),
      s = i.length;
    let a;
    for (r = 0; r < s; r++) (a = i[r]), t.call(null, e[a], a, e);
  }
}
function ky(e, t) {
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length,
    o;
  for (; r-- > 0; ) if (((o = n[r]), t === o.toLowerCase())) return o;
  return null;
}
const Ty = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
  My = (e) => !gu(e) && e !== Ty;
function Ph() {
  const { caseless: e } = (My(this) && this) || {},
    t = {},
    n = (r, o) => {
      const i = (e && ky(t, o)) || o;
      Td(t[i]) && Td(r) ? (t[i] = Ph(t[i], r)) : Td(r) ? (t[i] = Ph({}, r)) : Ja(r) ? (t[i] = r.slice()) : (t[i] = r);
    };
  for (let r = 0, o = arguments.length; r < o; r++) arguments[r] && Ju(arguments[r], n);
  return t;
}
const _S = (e, t, n, { allOwnKeys: r } = {}) => (
    Ju(
      t,
      (o, i) => {
        n && ur(o) ? (e[i] = Cy(o, n)) : (e[i] = o);
      },
      { allOwnKeys: r }
    ),
    e
  ),
  DS = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e),
  RS = (e, t, n, r) => {
    (e.prototype = Object.create(t.prototype, r)),
      (e.prototype.constructor = e),
      Object.defineProperty(e, "super", { value: t.prototype }),
      n && Object.assign(e.prototype, n);
  },
  IS = (e, t, n, r) => {
    let o, i, s;
    const a = {};
    if (((t = t || {}), e == null)) return t;
    do {
      for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
        (s = o[i]), (!r || r(s, e, t)) && !a[s] && ((t[s] = e[s]), (a[s] = !0));
      e = n !== !1 && v2(e);
    } while (e && (!n || n(e, t)) && e !== Object.prototype);
    return t;
  },
  OS = (e, t, n) => {
    (e = String(e)), (n === void 0 || n > e.length) && (n = e.length), (n -= t.length);
    const r = e.indexOf(t, n);
    return r !== -1 && r === n;
  },
  FS = (e) => {
    if (!e) return null;
    if (Ja(e)) return e;
    let t = e.length;
    if (!Sy(t)) return null;
    const n = new Array(t);
    for (; t-- > 0; ) n[t] = e[t];
    return n;
  },
  LS = (
    (e) => (t) =>
      e && t instanceof e
  )(typeof Uint8Array < "u" && v2(Uint8Array)),
  NS = (e, t) => {
    const r = (e && e[Symbol.iterator]).call(e);
    let o;
    for (; (o = r.next()) && !o.done; ) {
      const i = o.value;
      t.call(e, i[0], i[1]);
    }
  },
  $S = (e, t) => {
    let n;
    const r = [];
    for (; (n = e.exec(t)) !== null; ) r.push(n);
    return r;
  },
  BS = fo("HTMLFormElement"),
  jS = (e) =>
    e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (n, r, o) {
      return r.toUpperCase() + o;
    }),
  n3 = (
    ({ hasOwnProperty: e }) =>
    (t, n) =>
      e.call(t, n)
  )(Object.prototype),
  VS = fo("RegExp"),
  Ey = (e, t) => {
    const n = Object.getOwnPropertyDescriptors(e),
      r = {};
    Ju(n, (o, i) => {
      let s;
      (s = t(o, i, e)) !== !1 && (r[i] = s || o);
    }),
      Object.defineProperties(e, r);
  },
  HS = (e) => {
    Ey(e, (t, n) => {
      if (ur(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1;
      const r = e[n];
      if (ur(r)) {
        if (((t.enumerable = !1), "writable" in t)) {
          t.writable = !1;
          return;
        }
        t.set ||
          (t.set = () => {
            throw Error("Can not rewrite read-only method '" + n + "'");
          });
      }
    });
  },
  zS = (e, t) => {
    const n = {},
      r = (o) => {
        o.forEach((i) => {
          n[i] = !0;
        });
      };
    return Ja(e) ? r(e) : r(String(e).split(t)), n;
  },
  WS = () => {},
  GS = (e, t) => ((e = +e), Number.isFinite(e) ? e : t),
  a1 = "abcdefghijklmnopqrstuvwxyz",
  r3 = "0123456789",
  Py = { DIGIT: r3, ALPHA: a1, ALPHA_DIGIT: a1 + a1.toUpperCase() + r3 },
  US = (e = 16, t = Py.ALPHA_DIGIT) => {
    let n = "";
    const { length: r } = t;
    for (; e--; ) n += t[(Math.random() * r) | 0];
    return n;
  };
function YS(e) {
  return !!(e && ur(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
}
const KS = (e) => {
    const t = new Array(10),
      n = (r, o) => {
        if (op(r)) {
          if (t.indexOf(r) >= 0) return;
          if (!("toJSON" in r)) {
            t[o] = r;
            const i = Ja(r) ? [] : {};
            return (
              Ju(r, (s, a) => {
                const l = n(s, o + 1);
                !gu(l) && (i[a] = l);
              }),
              (t[o] = void 0),
              i
            );
          }
        }
        return r;
      };
    return n(e, 0);
  },
  XS = fo("AsyncFunction"),
  qS = (e) => e && (op(e) || ur(e)) && ur(e.then) && ur(e.catch),
  q = {
    isArray: Ja,
    isArrayBuffer: wy,
    isBuffer: vS,
    isFormData: ES,
    isArrayBufferView: xS,
    isString: bS,
    isNumber: Sy,
    isBoolean: CS,
    isObject: op,
    isPlainObject: Td,
    isUndefined: gu,
    isDate: wS,
    isFile: SS,
    isBlob: kS,
    isRegExp: VS,
    isFunction: ur,
    isStream: MS,
    isURLSearchParams: PS,
    isTypedArray: LS,
    isFileList: TS,
    forEach: Ju,
    merge: Ph,
    extend: _S,
    trim: AS,
    stripBOM: DS,
    inherits: RS,
    toFlatObject: IS,
    kindOf: np,
    kindOfTest: fo,
    endsWith: OS,
    toArray: FS,
    forEachEntry: NS,
    matchAll: $S,
    isHTMLForm: BS,
    hasOwnProperty: n3,
    hasOwnProp: n3,
    reduceDescriptors: Ey,
    freezeMethods: HS,
    toObjectSet: zS,
    toCamelCase: jS,
    noop: WS,
    toFiniteNumber: GS,
    findKey: ky,
    global: Ty,
    isContextDefined: My,
    ALPHABET: Py,
    generateString: US,
    isSpecCompliantForm: YS,
    toJSONObject: KS,
    isAsyncFn: XS,
    isThenable: qS,
  };
function Je(e, t, n, r, o) {
  Error.call(this),
    Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error().stack),
    (this.message = e),
    (this.name = "AxiosError"),
    t && (this.code = t),
    n && (this.config = n),
    r && (this.request = r),
    o && (this.response = o);
}
q.inherits(Je, Error, {
  toJSON: function () {
    return {
      message: this.message,
      name: this.name,
      description: this.description,
      number: this.number,
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      config: q.toJSONObject(this.config),
      code: this.code,
      status: this.response && this.response.status ? this.response.status : null,
    };
  },
});
const Ay = Je.prototype,
  _y = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL",
].forEach((e) => {
  _y[e] = { value: e };
});
Object.defineProperties(Je, _y);
Object.defineProperty(Ay, "isAxiosError", { value: !0 });
Je.from = (e, t, n, r, o, i) => {
  const s = Object.create(Ay);
  return (
    q.toFlatObject(
      e,
      s,
      function (l) {
        return l !== Error.prototype;
      },
      (a) => a !== "isAxiosError"
    ),
    Je.call(s, e.message, t, n, r, o),
    (s.cause = e),
    (s.name = e.name),
    i && Object.assign(s, i),
    s
  );
};
const ZS = null;
function Ah(e) {
  return q.isPlainObject(e) || q.isArray(e);
}
function Dy(e) {
  return q.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function o3(e, t, n) {
  return e
    ? e
        .concat(t)
        .map(function (o, i) {
          return (o = Dy(o)), !n && i ? "[" + o + "]" : o;
        })
        .join(n ? "." : "")
    : t;
}
function JS(e) {
  return q.isArray(e) && !e.some(Ah);
}
const QS = q.toFlatObject(q, {}, null, function (t) {
  return /^is[A-Z]/.test(t);
});
function ip(e, t, n) {
  if (!q.isObject(e)) throw new TypeError("target must be an object");
  (t = t || new FormData()),
    (n = q.toFlatObject(n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function (v, C) {
      return !q.isUndefined(C[v]);
    }));
  const r = n.metaTokens,
    o = n.visitor || c,
    i = n.dots,
    s = n.indexes,
    l = (n.Blob || (typeof Blob < "u" && Blob)) && q.isSpecCompliantForm(t);
  if (!q.isFunction(o)) throw new TypeError("visitor must be a function");
  function u(m) {
    if (m === null) return "";
    if (q.isDate(m)) return m.toISOString();
    if (!l && q.isBlob(m)) throw new Je("Blob is not supported. Use a Buffer instead.");
    return q.isArrayBuffer(m) || q.isTypedArray(m)
      ? l && typeof Blob == "function"
        ? new Blob([m])
        : Buffer.from(m)
      : m;
  }
  function c(m, v, C) {
    let y = m;
    if (m && !C && typeof m == "object") {
      if (q.endsWith(v, "{}")) (v = r ? v : v.slice(0, -2)), (m = JSON.stringify(m));
      else if ((q.isArray(m) && JS(m)) || ((q.isFileList(m) || q.endsWith(v, "[]")) && (y = q.toArray(m))))
        return (
          (v = Dy(v)),
          y.forEach(function (x, w) {
            !(q.isUndefined(x) || x === null) && t.append(s === !0 ? o3([v], w, i) : s === null ? v : v + "[]", u(x));
          }),
          !1
        );
    }
    return Ah(m) ? !0 : (t.append(o3(C, v, i), u(m)), !1);
  }
  const d = [],
    p = Object.assign(QS, { defaultVisitor: c, convertValue: u, isVisitable: Ah });
  function h(m, v) {
    if (!q.isUndefined(m)) {
      if (d.indexOf(m) !== -1) throw Error("Circular reference detected in " + v.join("."));
      d.push(m),
        q.forEach(m, function (y, g) {
          (!(q.isUndefined(y) || y === null) && o.call(t, y, q.isString(g) ? g.trim() : g, v, p)) === !0 &&
            h(y, v ? v.concat(g) : [g]);
        }),
        d.pop();
    }
  }
  if (!q.isObject(e)) throw new TypeError("data must be an object");
  return h(e), t;
}
function i3(e) {
  const t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function (r) {
    return t[r];
  });
}
function x2(e, t) {
  (this._pairs = []), e && ip(e, this, t);
}
const Ry = x2.prototype;
Ry.append = function (t, n) {
  this._pairs.push([t, n]);
};
Ry.toString = function (t) {
  const n = t
    ? function (r) {
        return t.call(this, r, i3);
      }
    : i3;
  return this._pairs
    .map(function (o) {
      return n(o[0]) + "=" + n(o[1]);
    }, "")
    .join("&");
};
function ek(e) {
  return encodeURIComponent(e)
    .replace(/%3A/gi, ":")
    .replace(/%24/g, "$")
    .replace(/%2C/gi, ",")
    .replace(/%20/g, "+")
    .replace(/%5B/gi, "[")
    .replace(/%5D/gi, "]");
}
function Iy(e, t, n) {
  if (!t) return e;
  const r = (n && n.encode) || ek,
    o = n && n.serialize;
  let i;
  if ((o ? (i = o(t, n)) : (i = q.isURLSearchParams(t) ? t.toString() : new x2(t, n).toString(r)), i)) {
    const s = e.indexOf("#");
    s !== -1 && (e = e.slice(0, s)), (e += (e.indexOf("?") === -1 ? "?" : "&") + i);
  }
  return e;
}
class s3 {
  constructor() {
    this.handlers = [];
  }
  use(t, n, r) {
    return (
      this.handlers.push({
        fulfilled: t,
        rejected: n,
        synchronous: r ? r.synchronous : !1,
        runWhen: r ? r.runWhen : null,
      }),
      this.handlers.length - 1
    );
  }
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  clear() {
    this.handlers && (this.handlers = []);
  }
  forEach(t) {
    q.forEach(this.handlers, function (r) {
      r !== null && t(r);
    });
  }
}
const Oy = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 },
  tk = typeof URLSearchParams < "u" ? URLSearchParams : x2,
  nk = typeof FormData < "u" ? FormData : null,
  rk = typeof Blob < "u" ? Blob : null,
  ok = {
    isBrowser: !0,
    classes: { URLSearchParams: tk, FormData: nk, Blob: rk },
    protocols: ["http", "https", "file", "blob", "url", "data"],
  },
  Fy = typeof window < "u" && typeof document < "u",
  ik = ((e) => Fy && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product),
  sk = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
  ak = Object.freeze(
    Object.defineProperty(
      { __proto__: null, hasBrowserEnv: Fy, hasStandardBrowserEnv: ik, hasStandardBrowserWebWorkerEnv: sk },
      Symbol.toStringTag,
      { value: "Module" }
    )
  ),
  Qr = { ...ak, ...ok };
function lk(e, t) {
  return ip(
    e,
    new Qr.classes.URLSearchParams(),
    Object.assign(
      {
        visitor: function (n, r, o, i) {
          return Qr.isNode && q.isBuffer(n)
            ? (this.append(r, n.toString("base64")), !1)
            : i.defaultVisitor.apply(this, arguments);
        },
      },
      t
    )
  );
}
function uk(e) {
  return q.matchAll(/\w+|\[(\w*)]/g, e).map((t) => (t[0] === "[]" ? "" : t[1] || t[0]));
}
function ck(e) {
  const t = {},
    n = Object.keys(e);
  let r;
  const o = n.length;
  let i;
  for (r = 0; r < o; r++) (i = n[r]), (t[i] = e[i]);
  return t;
}
function Ly(e) {
  function t(n, r, o, i) {
    let s = n[i++];
    if (s === "__proto__") return !0;
    const a = Number.isFinite(+s),
      l = i >= n.length;
    return (
      (s = !s && q.isArray(o) ? o.length : s),
      l
        ? (q.hasOwnProp(o, s) ? (o[s] = [o[s], r]) : (o[s] = r), !a)
        : ((!o[s] || !q.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && q.isArray(o[s]) && (o[s] = ck(o[s])), !a)
    );
  }
  if (q.isFormData(e) && q.isFunction(e.entries)) {
    const n = {};
    return (
      q.forEachEntry(e, (r, o) => {
        t(uk(r), o, n, 0);
      }),
      n
    );
  }
  return null;
}
function dk(e, t, n) {
  if (q.isString(e))
    try {
      return (t || JSON.parse)(e), q.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError") throw r;
    }
  return (n || JSON.stringify)(e);
}
const Qu = {
  transitional: Oy,
  adapter: ["xhr", "http"],
  transformRequest: [
    function (t, n) {
      const r = n.getContentType() || "",
        o = r.indexOf("application/json") > -1,
        i = q.isObject(t);
      if ((i && q.isHTMLForm(t) && (t = new FormData(t)), q.isFormData(t))) return o ? JSON.stringify(Ly(t)) : t;
      if (q.isArrayBuffer(t) || q.isBuffer(t) || q.isStream(t) || q.isFile(t) || q.isBlob(t)) return t;
      if (q.isArrayBufferView(t)) return t.buffer;
      if (q.isURLSearchParams(t))
        return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
      let a;
      if (i) {
        if (r.indexOf("application/x-www-form-urlencoded") > -1) return lk(t, this.formSerializer).toString();
        if ((a = q.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
          const l = this.env && this.env.FormData;
          return ip(a ? { "files[]": t } : t, l && new l(), this.formSerializer);
        }
      }
      return i || o ? (n.setContentType("application/json", !1), dk(t)) : t;
    },
  ],
  transformResponse: [
    function (t) {
      const n = this.transitional || Qu.transitional,
        r = n && n.forcedJSONParsing,
        o = this.responseType === "json";
      if (t && q.isString(t) && ((r && !this.responseType) || o)) {
        const s = !(n && n.silentJSONParsing) && o;
        try {
          return JSON.parse(t);
        } catch (a) {
          if (s) throw a.name === "SyntaxError" ? Je.from(a, Je.ERR_BAD_RESPONSE, this, null, this.response) : a;
        }
      }
      return t;
    },
  ],
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: { FormData: Qr.classes.FormData, Blob: Qr.classes.Blob },
  validateStatus: function (t) {
    return t >= 200 && t < 300;
  },
  headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } },
};
q.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  Qu.headers[e] = {};
});
const fk = q.toObjectSet([
    "age",
    "authorization",
    "content-length",
    "content-type",
    "etag",
    "expires",
    "from",
    "host",
    "if-modified-since",
    "if-unmodified-since",
    "last-modified",
    "location",
    "max-forwards",
    "proxy-authorization",
    "referer",
    "retry-after",
    "user-agent",
  ]),
  pk = (e) => {
    const t = {};
    let n, r, o;
    return (
      e &&
        e
          .split(
            `
`
          )
          .forEach(function (s) {
            (o = s.indexOf(":")),
              (n = s.substring(0, o).trim().toLowerCase()),
              (r = s.substring(o + 1).trim()),
              !(!n || (t[n] && fk[n])) &&
                (n === "set-cookie" ? (t[n] ? t[n].push(r) : (t[n] = [r])) : (t[n] = t[n] ? t[n] + ", " + r : r));
          }),
      t
    );
  },
  a3 = Symbol("internals");
function hl(e) {
  return e && String(e).trim().toLowerCase();
}
function Md(e) {
  return e === !1 || e == null ? e : q.isArray(e) ? e.map(Md) : String(e);
}
function hk(e) {
  const t = Object.create(null),
    n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; (r = n.exec(e)); ) t[r[1]] = r[2];
  return t;
}
const mk = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function l1(e, t, n, r, o) {
  if (q.isFunction(r)) return r.call(this, t, n);
  if ((o && (t = n), !!q.isString(t))) {
    if (q.isString(r)) return t.indexOf(r) !== -1;
    if (q.isRegExp(r)) return r.test(t);
  }
}
function gk(e) {
  return e
    .trim()
    .toLowerCase()
    .replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function yk(e, t) {
  const n = q.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function (o, i, s) {
        return this[r].call(this, t, o, i, s);
      },
      configurable: !0,
    });
  });
}
class cr {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const o = this;
    function i(a, l, u) {
      const c = hl(l);
      if (!c) throw new Error("header name must be a non-empty string");
      const d = q.findKey(o, c);
      (!d || o[d] === void 0 || u === !0 || (u === void 0 && o[d] !== !1)) && (o[d || l] = Md(a));
    }
    const s = (a, l) => q.forEach(a, (u, c) => i(u, c, l));
    return (
      q.isPlainObject(t) || t instanceof this.constructor
        ? s(t, n)
        : q.isString(t) && (t = t.trim()) && !mk(t)
          ? s(pk(t), n)
          : t != null && i(n, t, r),
      this
    );
  }
  get(t, n) {
    if (((t = hl(t)), t)) {
      const r = q.findKey(this, t);
      if (r) {
        const o = this[r];
        if (!n) return o;
        if (n === !0) return hk(o);
        if (q.isFunction(n)) return n.call(this, o, r);
        if (q.isRegExp(n)) return n.exec(o);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (((t = hl(t)), t)) {
      const r = q.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || l1(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let o = !1;
    function i(s) {
      if (((s = hl(s)), s)) {
        const a = q.findKey(r, s);
        a && (!n || l1(r, r[a], a, n)) && (delete r[a], (o = !0));
      }
    }
    return q.isArray(t) ? t.forEach(i) : i(t), o;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length,
      o = !1;
    for (; r--; ) {
      const i = n[r];
      (!t || l1(this, this[i], i, t, !0)) && (delete this[i], (o = !0));
    }
    return o;
  }
  normalize(t) {
    const n = this,
      r = {};
    return (
      q.forEach(this, (o, i) => {
        const s = q.findKey(r, i);
        if (s) {
          (n[s] = Md(o)), delete n[i];
          return;
        }
        const a = t ? gk(i) : String(i).trim();
        a !== i && delete n[i], (n[a] = Md(o)), (r[a] = !0);
      }),
      this
    );
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = Object.create(null);
    return (
      q.forEach(this, (r, o) => {
        r != null && r !== !1 && (n[o] = t && q.isArray(r) ? r.join(", ") : r);
      }),
      n
    );
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((o) => r.set(o)), r;
  }
  static accessor(t) {
    const r = (this[a3] = this[a3] = { accessors: {} }).accessors,
      o = this.prototype;
    function i(s) {
      const a = hl(s);
      r[a] || (yk(o, s), (r[a] = !0));
    }
    return q.isArray(t) ? t.forEach(i) : i(t), this;
  }
}
cr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
q.reduceDescriptors(cr.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    },
  };
});
q.freezeMethods(cr);
function u1(e, t) {
  const n = this || Qu,
    r = t || n,
    o = cr.from(r.headers);
  let i = r.data;
  return (
    q.forEach(e, function (a) {
      i = a.call(n, i, o.normalize(), t ? t.status : void 0);
    }),
    o.normalize(),
    i
  );
}
function Ny(e) {
  return !!(e && e.__CANCEL__);
}
function ec(e, t, n) {
  Je.call(this, e ?? "canceled", Je.ERR_CANCELED, t, n), (this.name = "CanceledError");
}
q.inherits(ec, Je, { __CANCEL__: !0 });
function vk(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status)
    ? e(n)
    : t(
        new Je(
          "Request failed with status code " + n.status,
          [Je.ERR_BAD_REQUEST, Je.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
          n.config,
          n.request,
          n
        )
      );
}
const xk = Qr.hasStandardBrowserEnv
  ? {
      write(e, t, n, r, o, i) {
        const s = [e + "=" + encodeURIComponent(t)];
        q.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()),
          q.isString(r) && s.push("path=" + r),
          q.isString(o) && s.push("domain=" + o),
          i === !0 && s.push("secure"),
          (document.cookie = s.join("; "));
      },
      read(e) {
        const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
        return t ? decodeURIComponent(t[3]) : null;
      },
      remove(e) {
        this.write(e, "", Date.now() - 864e5);
      },
    }
  : {
      write() {},
      read() {
        return null;
      },
      remove() {},
    };
function bk(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function Ck(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function $y(e, t) {
  return e && !bk(t) ? Ck(e, t) : t;
}
const wk = Qr.hasStandardBrowserEnv
  ? (function () {
      const t = /(msie|trident)/i.test(navigator.userAgent),
        n = document.createElement("a");
      let r;
      function o(i) {
        let s = i;
        return (
          t && (n.setAttribute("href", s), (s = n.href)),
          n.setAttribute("href", s),
          {
            href: n.href,
            protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
            host: n.host,
            search: n.search ? n.search.replace(/^\?/, "") : "",
            hash: n.hash ? n.hash.replace(/^#/, "") : "",
            hostname: n.hostname,
            port: n.port,
            pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname,
          }
        );
      }
      return (
        (r = o(window.location.href)),
        function (s) {
          const a = q.isString(s) ? o(s) : s;
          return a.protocol === r.protocol && a.host === r.host;
        }
      );
    })()
  : (function () {
      return function () {
        return !0;
      };
    })();
function Sk(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return (t && t[1]) || "";
}
function kk(e, t) {
  e = e || 10;
  const n = new Array(e),
    r = new Array(e);
  let o = 0,
    i = 0,
    s;
  return (
    (t = t !== void 0 ? t : 1e3),
    function (l) {
      const u = Date.now(),
        c = r[i];
      s || (s = u), (n[o] = l), (r[o] = u);
      let d = i,
        p = 0;
      for (; d !== o; ) (p += n[d++]), (d = d % e);
      if (((o = (o + 1) % e), o === i && (i = (i + 1) % e), u - s < t)) return;
      const h = c && u - c;
      return h ? Math.round((p * 1e3) / h) : void 0;
    }
  );
}
function l3(e, t) {
  let n = 0;
  const r = kk(50, 250);
  return (o) => {
    const i = o.loaded,
      s = o.lengthComputable ? o.total : void 0,
      a = i - n,
      l = r(a),
      u = i <= s;
    n = i;
    const c = {
      loaded: i,
      total: s,
      progress: s ? i / s : void 0,
      bytes: a,
      rate: l || void 0,
      estimated: l && s && u ? (s - i) / l : void 0,
      event: o,
    };
    (c[t ? "download" : "upload"] = !0), e(c);
  };
}
const Tk = typeof XMLHttpRequest < "u",
  Mk =
    Tk &&
    function (e) {
      return new Promise(function (n, r) {
        let o = e.data;
        const i = cr.from(e.headers).normalize();
        let { responseType: s, withXSRFToken: a } = e,
          l;
        function u() {
          e.cancelToken && e.cancelToken.unsubscribe(l), e.signal && e.signal.removeEventListener("abort", l);
        }
        let c;
        if (q.isFormData(o)) {
          if (Qr.hasStandardBrowserEnv || Qr.hasStandardBrowserWebWorkerEnv) i.setContentType(!1);
          else if ((c = i.getContentType()) !== !1) {
            const [v, ...C] = c
              ? c
                  .split(";")
                  .map((y) => y.trim())
                  .filter(Boolean)
              : [];
            i.setContentType([v || "multipart/form-data", ...C].join("; "));
          }
        }
        let d = new XMLHttpRequest();
        if (e.auth) {
          const v = e.auth.username || "",
            C = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
          i.set("Authorization", "Basic " + btoa(v + ":" + C));
        }
        const p = $y(e.baseURL, e.url);
        d.open(e.method.toUpperCase(), Iy(p, e.params, e.paramsSerializer), !0), (d.timeout = e.timeout);
        function h() {
          if (!d) return;
          const v = cr.from("getAllResponseHeaders" in d && d.getAllResponseHeaders()),
            y = {
              data: !s || s === "text" || s === "json" ? d.responseText : d.response,
              status: d.status,
              statusText: d.statusText,
              headers: v,
              config: e,
              request: d,
            };
          vk(
            function (x) {
              n(x), u();
            },
            function (x) {
              r(x), u();
            },
            y
          ),
            (d = null);
        }
        if (
          ("onloadend" in d
            ? (d.onloadend = h)
            : (d.onreadystatechange = function () {
                !d ||
                  d.readyState !== 4 ||
                  (d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0)) ||
                  setTimeout(h);
              }),
          (d.onabort = function () {
            d && (r(new Je("Request aborted", Je.ECONNABORTED, e, d)), (d = null));
          }),
          (d.onerror = function () {
            r(new Je("Network Error", Je.ERR_NETWORK, e, d)), (d = null);
          }),
          (d.ontimeout = function () {
            let C = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
            const y = e.transitional || Oy;
            e.timeoutErrorMessage && (C = e.timeoutErrorMessage),
              r(new Je(C, y.clarifyTimeoutError ? Je.ETIMEDOUT : Je.ECONNABORTED, e, d)),
              (d = null);
          }),
          Qr.hasStandardBrowserEnv && (a && q.isFunction(a) && (a = a(e)), a || (a !== !1 && wk(p))))
        ) {
          const v = e.xsrfHeaderName && e.xsrfCookieName && xk.read(e.xsrfCookieName);
          v && i.set(e.xsrfHeaderName, v);
        }
        o === void 0 && i.setContentType(null),
          "setRequestHeader" in d &&
            q.forEach(i.toJSON(), function (C, y) {
              d.setRequestHeader(y, C);
            }),
          q.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials),
          s && s !== "json" && (d.responseType = e.responseType),
          typeof e.onDownloadProgress == "function" && d.addEventListener("progress", l3(e.onDownloadProgress, !0)),
          typeof e.onUploadProgress == "function" &&
            d.upload &&
            d.upload.addEventListener("progress", l3(e.onUploadProgress)),
          (e.cancelToken || e.signal) &&
            ((l = (v) => {
              d && (r(!v || v.type ? new ec(null, e, d) : v), d.abort(), (d = null));
            }),
            e.cancelToken && e.cancelToken.subscribe(l),
            e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
        const m = Sk(p);
        if (m && Qr.protocols.indexOf(m) === -1) {
          r(new Je("Unsupported protocol " + m + ":", Je.ERR_BAD_REQUEST, e));
          return;
        }
        d.send(o || null);
      });
    },
  _h = { http: ZS, xhr: Mk };
q.forEach(_h, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {}
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const u3 = (e) => `- ${e}`,
  Ek = (e) => q.isFunction(e) || e === null || e === !1,
  By = {
    getAdapter: (e) => {
      e = q.isArray(e) ? e : [e];
      const { length: t } = e;
      let n, r;
      const o = {};
      for (let i = 0; i < t; i++) {
        n = e[i];
        let s;
        if (((r = n), !Ek(n) && ((r = _h[(s = String(n)).toLowerCase()]), r === void 0)))
          throw new Je(`Unknown adapter '${s}'`);
        if (r) break;
        o[s || "#" + i] = r;
      }
      if (!r) {
        const i = Object.entries(o).map(
          ([a, l]) =>
            `adapter ${a} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
        );
        let s = t
          ? i.length > 1
            ? `since :
` +
              i.map(u3).join(`
`)
            : " " + u3(i[0])
          : "as no adapter specified";
        throw new Je("There is no suitable adapter to dispatch the request " + s, "ERR_NOT_SUPPORT");
      }
      return r;
    },
    adapters: _h,
  };
function c1(e) {
  if ((e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)) throw new ec(null, e);
}
function c3(e) {
  return (
    c1(e),
    (e.headers = cr.from(e.headers)),
    (e.data = u1.call(e, e.transformRequest)),
    ["post", "put", "patch"].indexOf(e.method) !== -1 &&
      e.headers.setContentType("application/x-www-form-urlencoded", !1),
    By.getAdapter(e.adapter || Qu.adapter)(e).then(
      function (r) {
        return c1(e), (r.data = u1.call(e, e.transformResponse, r)), (r.headers = cr.from(r.headers)), r;
      },
      function (r) {
        return (
          Ny(r) ||
            (c1(e),
            r &&
              r.response &&
              ((r.response.data = u1.call(e, e.transformResponse, r.response)),
              (r.response.headers = cr.from(r.response.headers)))),
          Promise.reject(r)
        );
      }
    )
  );
}
const d3 = (e) => (e instanceof cr ? { ...e } : e);
function Pa(e, t) {
  t = t || {};
  const n = {};
  function r(u, c, d) {
    return q.isPlainObject(u) && q.isPlainObject(c)
      ? q.merge.call({ caseless: d }, u, c)
      : q.isPlainObject(c)
        ? q.merge({}, c)
        : q.isArray(c)
          ? c.slice()
          : c;
  }
  function o(u, c, d) {
    if (q.isUndefined(c)) {
      if (!q.isUndefined(u)) return r(void 0, u, d);
    } else return r(u, c, d);
  }
  function i(u, c) {
    if (!q.isUndefined(c)) return r(void 0, c);
  }
  function s(u, c) {
    if (q.isUndefined(c)) {
      if (!q.isUndefined(u)) return r(void 0, u);
    } else return r(void 0, c);
  }
  function a(u, c, d) {
    if (d in t) return r(u, c);
    if (d in e) return r(void 0, u);
  }
  const l = {
    url: i,
    method: i,
    data: i,
    baseURL: s,
    transformRequest: s,
    transformResponse: s,
    paramsSerializer: s,
    timeout: s,
    timeoutMessage: s,
    withCredentials: s,
    withXSRFToken: s,
    adapter: s,
    responseType: s,
    xsrfCookieName: s,
    xsrfHeaderName: s,
    onUploadProgress: s,
    onDownloadProgress: s,
    decompress: s,
    maxContentLength: s,
    maxBodyLength: s,
    beforeRedirect: s,
    transport: s,
    httpAgent: s,
    httpsAgent: s,
    cancelToken: s,
    socketPath: s,
    responseEncoding: s,
    validateStatus: a,
    headers: (u, c) => o(d3(u), d3(c), !0),
  };
  return (
    q.forEach(Object.keys(Object.assign({}, e, t)), function (c) {
      const d = l[c] || o,
        p = d(e[c], t[c], c);
      (q.isUndefined(p) && d !== a) || (n[c] = p);
    }),
    n
  );
}
const jy = "1.6.8",
  b2 = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  b2[e] = function (r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const f3 = {};
b2.transitional = function (t, n, r) {
  function o(i, s) {
    return "[Axios v" + jy + "] Transitional option '" + i + "'" + s + (r ? ". " + r : "");
  }
  return (i, s, a) => {
    if (t === !1) throw new Je(o(s, " has been removed" + (n ? " in " + n : "")), Je.ERR_DEPRECATED);
    return (
      n &&
        !f3[s] &&
        ((f3[s] = !0),
        console.warn(o(s, " has been deprecated since v" + n + " and will be removed in the near future"))),
      t ? t(i, s, a) : !0
    );
  };
};
function Pk(e, t, n) {
  if (typeof e != "object") throw new Je("options must be an object", Je.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let o = r.length;
  for (; o-- > 0; ) {
    const i = r[o],
      s = t[i];
    if (s) {
      const a = e[i],
        l = a === void 0 || s(a, i, e);
      if (l !== !0) throw new Je("option " + i + " must be " + l, Je.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0) throw new Je("Unknown option " + i, Je.ERR_BAD_OPTION);
  }
}
const Dh = { assertOptions: Pk, validators: b2 },
  Xo = Dh.validators;
class Qi {
  constructor(t) {
    (this.defaults = t), (this.interceptors = { request: new s3(), response: new s3() });
  }
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let o;
        Error.captureStackTrace ? Error.captureStackTrace((o = {})) : (o = new Error());
        const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        r.stack
          ? i &&
            !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) &&
            (r.stack +=
              `
` + i)
          : (r.stack = i);
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? ((n = n || {}), (n.url = t)) : (n = t || {}), (n = Pa(this.defaults, n));
    const { transitional: r, paramsSerializer: o, headers: i } = n;
    r !== void 0 &&
      Dh.assertOptions(
        r,
        {
          silentJSONParsing: Xo.transitional(Xo.boolean),
          forcedJSONParsing: Xo.transitional(Xo.boolean),
          clarifyTimeoutError: Xo.transitional(Xo.boolean),
        },
        !1
      ),
      o != null &&
        (q.isFunction(o)
          ? (n.paramsSerializer = { serialize: o })
          : Dh.assertOptions(o, { encode: Xo.function, serialize: Xo.function }, !0)),
      (n.method = (n.method || this.defaults.method || "get").toLowerCase());
    let s = i && q.merge(i.common, i[n.method]);
    i &&
      q.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (m) => {
        delete i[m];
      }),
      (n.headers = cr.concat(s, i));
    const a = [];
    let l = !0;
    this.interceptors.request.forEach(function (v) {
      (typeof v.runWhen == "function" && v.runWhen(n) === !1) ||
        ((l = l && v.synchronous), a.unshift(v.fulfilled, v.rejected));
    });
    const u = [];
    this.interceptors.response.forEach(function (v) {
      u.push(v.fulfilled, v.rejected);
    });
    let c,
      d = 0,
      p;
    if (!l) {
      const m = [c3.bind(this), void 0];
      for (m.unshift.apply(m, a), m.push.apply(m, u), p = m.length, c = Promise.resolve(n); d < p; )
        c = c.then(m[d++], m[d++]);
      return c;
    }
    p = a.length;
    let h = n;
    for (d = 0; d < p; ) {
      const m = a[d++],
        v = a[d++];
      try {
        h = m(h);
      } catch (C) {
        v.call(this, C);
        break;
      }
    }
    try {
      c = c3.call(this, h);
    } catch (m) {
      return Promise.reject(m);
    }
    for (d = 0, p = u.length; d < p; ) c = c.then(u[d++], u[d++]);
    return c;
  }
  getUri(t) {
    t = Pa(this.defaults, t);
    const n = $y(t.baseURL, t.url);
    return Iy(n, t.params, t.paramsSerializer);
  }
}
q.forEach(["delete", "get", "head", "options"], function (t) {
  Qi.prototype[t] = function (n, r) {
    return this.request(Pa(r || {}, { method: t, url: n, data: (r || {}).data }));
  };
});
q.forEach(["post", "put", "patch"], function (t) {
  function n(r) {
    return function (i, s, a) {
      return this.request(
        Pa(a || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: i, data: s })
      );
    };
  }
  (Qi.prototype[t] = n()), (Qi.prototype[t + "Form"] = n(!0));
});
class C2 {
  constructor(t) {
    if (typeof t != "function") throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function (i) {
      n = i;
    });
    const r = this;
    this.promise.then((o) => {
      if (!r._listeners) return;
      let i = r._listeners.length;
      for (; i-- > 0; ) r._listeners[i](o);
      r._listeners = null;
    }),
      (this.promise.then = (o) => {
        let i;
        const s = new Promise((a) => {
          r.subscribe(a), (i = a);
        }).then(o);
        return (
          (s.cancel = function () {
            r.unsubscribe(i);
          }),
          s
        );
      }),
      t(function (i, s, a) {
        r.reason || ((r.reason = new ec(i, s, a)), n(r.reason));
      });
  }
  throwIfRequested() {
    if (this.reason) throw this.reason;
  }
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : (this._listeners = [t]);
  }
  unsubscribe(t) {
    if (!this._listeners) return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  static source() {
    let t;
    return {
      token: new C2(function (o) {
        t = o;
      }),
      cancel: t,
    };
  }
}
function Ak(e) {
  return function (n) {
    return e.apply(null, n);
  };
}
function _k(e) {
  return q.isObject(e) && e.isAxiosError === !0;
}
const Rh = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511,
};
Object.entries(Rh).forEach(([e, t]) => {
  Rh[t] = e;
});
function Vy(e) {
  const t = new Qi(e),
    n = Cy(Qi.prototype.request, t);
  return (
    q.extend(n, Qi.prototype, t, { allOwnKeys: !0 }),
    q.extend(n, t, null, { allOwnKeys: !0 }),
    (n.create = function (o) {
      return Vy(Pa(e, o));
    }),
    n
  );
}
const It = Vy(Qu);
It.Axios = Qi;
It.CanceledError = ec;
It.CancelToken = C2;
It.isCancel = Ny;
It.VERSION = jy;
It.toFormData = ip;
It.AxiosError = Je;
It.Cancel = It.CanceledError;
It.all = function (t) {
  return Promise.all(t);
};
It.spread = Ak;
It.isAxiosError = _k;
It.mergeConfig = Pa;
It.AxiosHeaders = cr;
It.formToJSON = (e) => Ly(q.isHTMLForm(e) ? new FormData(e) : e);
It.getAdapter = By.getAdapter;
It.HttpStatusCode = Rh;
It.default = It;
var Hy = { exports: {} };
(function (e) {
  /*!mobile-detect v1.4.5 2021-03-13*/ /*!@license Copyright 2013, Heinrich Goebl, License: MIT, see https://github.com/hgoebl/mobile-detect.js*/ (function (
    t,
    n
  ) {
    t(function () {
      var r = {};
      (r.mobileDetectRules = {
        phones: {
          iPhone: "\\biPhone\\b|\\biPod\\b",
          BlackBerry: "BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",
          Pixel: "; \\bPixel\\b",
          HTC: "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",
          Nexus: "Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 5X|Nexus 6",
          Dell: "Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",
          Motorola:
            "Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",
          Samsung:
            "\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F|SM-G610F|SM-G981B|SM-G892A|SM-A530F",
          LG: "\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",
          Sony: "SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533|SOV34|601SO|F8332",
          Asus: "Asus.*Galaxy|PadFone.*Mobile",
          Xiaomi:
            "^(?!.*\\bx11\\b).*xiaomi.*$|POCOPHONE F1|MI 8|Redmi Note 9S|Redmi Note 5A Prime|N2G47H|M2001J2G|M2001J2I|M1805E10A|M2004J11G|M1902F1G|M2002J9G|M2004J19G|M2003J6A1G",
          NokiaLumia: "Lumia [0-9]{3,4}",
          Micromax:
            "Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",
          Palm: "PalmSource|Palm",
          Vertu:
            "Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",
          Pantech:
            "PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",
          Fly: "IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",
          Wiko: "KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",
          iMobile: "i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",
          SimValley:
            "\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",
          Wolfgang: "AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",
          Alcatel: "Alcatel",
          Nintendo: "Nintendo (3DS|Switch)",
          Amoi: "Amoi",
          INQ: "INQ",
          OnePlus: "ONEPLUS",
          GenericPhone:
            "Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser",
        },
        tablets: {
          iPad: "iPad|iPad.*Mobile",
          NexusTablet: "Android.*Nexus[\\s]+(7|9|10)",
          GoogleTablet: "Android.*Pixel C",
          SamsungTablet:
            "SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V|SM-P610|SM-T290|SM-T515|SM-T590|SM-T595|SM-T725|SM-T817P|SM-P585N0|SM-T395|SM-T295|SM-T865|SM-P610N|SM-P615|SM-T970|SM-T380|SM-T5950|SM-T905|SM-T231|SM-T500|SM-T860",
          Kindle:
            "Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",
          SurfaceTablet: "Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",
          HPTablet: "HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",
          AsusTablet:
            "^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",
          BlackBerryTablet: "PlayBook|RIM Tablet",
          HTCtablet: "HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",
          MotorolaTablet:
            "xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",
          NookTablet:
            "Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",
          AcerTablet:
            "Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30|A3-A40",
          ToshibaTablet:
            "Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",
          LGTablet: "\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",
          FujitsuTablet: "Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",
          PrestigioTablet:
            "PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",
          LenovoTablet:
            "Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X|TB-X704F|TB-X104F|TB3-X70F|TB-X705F|TB-8504F|TB3-X70L|TB3-710F|TB-X704L",
          DellTablet: "Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",
          YarvikTablet:
            "Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",
          MedionTablet: "Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",
          ArnovaTablet:
            "97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",
          IntensoTablet: "INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",
          IRUTablet: "M702pro",
          MegafonTablet: "MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",
          EbodaTablet: "E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",
          AllViewTablet: "Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",
          ArchosTablet:
            "\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",
          AinolTablet: "NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",
          NokiaLumiaTablet: "Lumia 2520",
          SonyTablet:
            "Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",
          PhilipsTablet: "\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",
          CubeTablet: "Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",
          CobyTablet:
            "MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",
          MIDTablet:
            "M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",
          MSITablet:
            "MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",
          SMiTTablet: "Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",
          RockChipTablet: "Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",
          FlyTablet: "IQ310|Fly Vision",
          bqTablet:
            "Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",
          HuaweiTablet:
            "MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",
          NecTablet: "\\bN-06D|\\bN-08D",
          PantechTablet: "Pantech.*P4100",
          BronchoTablet: "Broncho.*(N701|N708|N802|a710)",
          VersusTablet: "TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",
          ZyncTablet: "z1000|Z99 2G|z930|z990|z909|Z919|z900",
          PositivoTablet: "TB07STA|TB10STA|TB07FTA|TB10FTA",
          NabiTablet: "Android.*\\bNabi",
          KoboTablet: "Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",
          DanewTablet: "DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",
          TexetTablet:
            "NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",
          PlaystationTablet: "Playstation.*(Portable|Vita)",
          TrekstorTablet:
            "ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",
          PyleAudioTablet:
            "\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",
          AdvanTablet:
            "Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",
          DanyTechTablet:
            "Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",
          GalapadTablet: "Android [0-9.]+; [a-z-]+; \\bG1\\b",
          MicromaxTablet: "Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",
          KarbonnTablet: "Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",
          AllFineTablet: "Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",
          PROSCANTablet:
            "\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",
          YONESTablet:
            "BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",
          ChangJiaTablet:
            "TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",
          GUTablet: "TX-A1301|TX-M9002|Q702|kf026",
          PointOfViewTablet:
            "TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",
          OvermaxTablet:
            "OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",
          HCLTablet:
            "HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",
          DPSTablet: "DPS Dream 9|DPS Dual 7",
          VistureTablet: "V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",
          CrestaTablet:
            "CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",
          MediatekTablet: "\\bMT8125|MT8389|MT8135|MT8377\\b",
          ConcordeTablet: "Concorde([ ]+)?Tab|ConCorde ReadMan",
          GoCleverTablet:
            "GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",
          ModecomTablet:
            "FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",
          VoninoTablet:
            "\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",
          ECSTablet: "V07OT2|TM105A|S10OT1|TR10CS1",
          StorexTablet: "eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",
          VodafoneTablet: "SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",
          EssentielBTablet: "Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",
          RossMoorTablet: "RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",
          iMobileTablet: "i-mobile i-note",
          TolinoTablet: "tolino tab [0-9.]+|tolino shine",
          AudioSonicTablet: "\\bC-22Q|T7-QC|T-17B|T-17P\\b",
          AMPETablet: "Android.* A78 ",
          SkkTablet: "Android.* (SKYPAD|PHOENIX|CYCLOPS)",
          TecnoTablet: "TECNO P9|TECNO DP8D",
          JXDTablet:
            "Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",
          iJoyTablet:
            "Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",
          FX2Tablet: "FX2 PAD7|FX2 PAD10",
          XoroTablet:
            "KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",
          ViewsonicTablet:
            "ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",
          VerizonTablet: "QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",
          OdysTablet:
            "LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",
          CaptivaTablet: "CAPTIVA PAD",
          IconbitTablet:
            "NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",
          TeclastTablet:
            "T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",
          OndaTablet:
            "\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",
          JaytechTablet: "TPC-PA762",
          BlaupunktTablet: "Endeavour 800NG|Endeavour 1010",
          DigmaTablet:
            "\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",
          EvolioTablet: "ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",
          LavaTablet: "QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",
          AocTablet: "MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",
          MpmanTablet:
            "MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",
          CelkonTablet: "CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",
          WolderTablet:
            "miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",
          MediacomTablet: "M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",
          MiTablet: "\\bMI PAD\\b|\\bHM NOTE 1W\\b",
          NibiruTablet: "Nibiru M1|Nibiru Jupiter One",
          NexoTablet: "NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",
          LeaderTablet:
            "TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",
          UbislateTablet: "UbiSlate[\\s]?7C",
          PocketBookTablet: "Pocketbook",
          KocasoTablet: "\\b(TB-1207)\\b",
          HisenseTablet: "\\b(F5281|E2371)\\b",
          Hudl: "Hudl HT7S3|Hudl 2",
          TelstraTablet: "T-Hub2",
          GenericTablet:
            "Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107",
        },
        oss: {
          AndroidOS: "Android",
          BlackBerryOS: "blackberry|\\bBB10\\b|rim tablet os",
          PalmOS: "PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",
          SymbianOS: "Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",
          WindowsMobileOS:
            "Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",
          WindowsPhoneOS:
            "Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",
          iOS: "\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",
          iPadOS: "CPU OS 13",
          SailfishOS: "Sailfish",
          MeeGoOS: "MeeGo",
          MaemoOS: "Maemo",
          JavaOS: "J2ME/|\\bMIDP\\b|\\bCLDC\\b",
          webOS: "webOS|hpwOS",
          badaOS: "\\bBada\\b",
          BREWOS: "BREW",
        },
        uas: {
          Chrome: "\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",
          Dolfin: "\\bDolfin\\b",
          Opera: "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",
          Skyfire: "Skyfire",
          Edge: "\\bEdgiOS\\b|Mobile Safari/[.0-9]* Edge",
          IE: "IEMobile|MSIEMobile",
          Firefox: "fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",
          Bolt: "bolt",
          TeaShark: "teashark",
          Blazer: "Blazer",
          Safari: "Version((?!\\bEdgiOS\\b).)*Mobile.*Safari|Safari.*Mobile|MobileSafari",
          WeChat: "\\bMicroMessenger\\b",
          UCBrowser: "UC.*Browser|UCWEB",
          baiduboxapp: "baiduboxapp",
          baidubrowser: "baidubrowser",
          DiigoBrowser: "DiigoBrowser",
          Mercury: "\\bMercury\\b",
          ObigoBrowser: "Obigo",
          NetFront: "NF-Browser",
          GenericBrowser:
            "NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",
          PaleMoon: "Android.*PaleMoon|Mobile.*PaleMoon",
        },
        props: {
          Mobile: "Mobile/[VER]",
          Build: "Build/[VER]",
          Version: "Version/[VER]",
          VendorID: "VendorID/[VER]",
          iPad: "iPad.*CPU[a-z ]+[VER]",
          iPhone: "iPhone.*CPU[a-z ]+[VER]",
          iPod: "iPod.*CPU[a-z ]+[VER]",
          Kindle: "Kindle/[VER]",
          Chrome: ["Chrome/[VER]", "CriOS/[VER]", "CrMo/[VER]"],
          Coast: ["Coast/[VER]"],
          Dolfin: "Dolfin/[VER]",
          Firefox: ["Firefox/[VER]", "FxiOS/[VER]"],
          Fennec: "Fennec/[VER]",
          Edge: "Edge/[VER]",
          IE: ["IEMobile/[VER];", "IEMobile [VER]", "MSIE [VER];", "Trident/[0-9.]+;.*rv:[VER]"],
          NetFront: "NetFront/[VER]",
          NokiaBrowser: "NokiaBrowser/[VER]",
          Opera: [" OPR/[VER]", "Opera Mini/[VER]", "Version/[VER]"],
          "Opera Mini": "Opera Mini/[VER]",
          "Opera Mobi": "Version/[VER]",
          UCBrowser: ["UCWEB[VER]", "UC.*Browser/[VER]"],
          MQQBrowser: "MQQBrowser/[VER]",
          MicroMessenger: "MicroMessenger/[VER]",
          baiduboxapp: "baiduboxapp/[VER]",
          baidubrowser: "baidubrowser/[VER]",
          SamsungBrowser: "SamsungBrowser/[VER]",
          Iron: "Iron/[VER]",
          Safari: ["Version/[VER]", "Safari/[VER]"],
          Skyfire: "Skyfire/[VER]",
          Tizen: "Tizen/[VER]",
          Webkit: "webkit[ /][VER]",
          PaleMoon: "PaleMoon/[VER]",
          SailfishBrowser: "SailfishBrowser/[VER]",
          Gecko: "Gecko/[VER]",
          Trident: "Trident/[VER]",
          Presto: "Presto/[VER]",
          Goanna: "Goanna/[VER]",
          iOS: " \\bi?OS\\b [VER][ ;]{1}",
          Android: "Android [VER]",
          Sailfish: "Sailfish [VER]",
          BlackBerry: ["BlackBerry[\\w]+/[VER]", "BlackBerry.*Version/[VER]", "Version/[VER]"],
          BREW: "BREW [VER]",
          Java: "Java/[VER]",
          "Windows Phone OS": ["Windows Phone OS [VER]", "Windows Phone [VER]"],
          "Windows Phone": "Windows Phone [VER]",
          "Windows CE": "Windows CE/[VER]",
          "Windows NT": "Windows NT [VER]",
          Symbian: ["SymbianOS/[VER]", "Symbian/[VER]"],
          webOS: ["webOS/[VER]", "hpwOS/[VER];"],
        },
        utils: {
          Bot: "Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp|AspiegelBot",
          MobileBot: "Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",
          DesktopMode: "WPDesktop",
          TV: "SonyDTV|HbbTV",
          WebKit: "(webkit)[ /]([\\w.]+)",
          Console: "\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",
          Watch: "SM-V700",
        },
      }),
        (r.detectMobileBrowsers = {
          fullPattern:
            /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,
          shortPattern:
            /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
          tabletPattern: /android|ipad|playbook|silk/i,
        });
      var o = Object.prototype.hasOwnProperty,
        i;
      (r.FALLBACK_PHONE = "UnknownPhone"),
        (r.FALLBACK_TABLET = "UnknownTablet"),
        (r.FALLBACK_MOBILE = "UnknownMobile"),
        (i =
          "isArray" in Array
            ? Array.isArray
            : function (d) {
                return Object.prototype.toString.call(d) === "[object Array]";
              });
      function s(d, p) {
        return d != null && p != null && d.toLowerCase() === p.toLowerCase();
      }
      function a(d, p) {
        var h,
          m,
          v = d.length;
        if (!v || !p) return !1;
        for (h = p.toLowerCase(), m = 0; m < v; ++m) if (h === d[m].toLowerCase()) return !0;
        return !1;
      }
      function l(d) {
        for (var p in d) o.call(d, p) && (d[p] = new RegExp(d[p], "i"));
      }
      function u(d) {
        return (d || "").substr(0, 500);
      }
      (function () {
        var p,
          h,
          m,
          v,
          C,
          y,
          g = r.mobileDetectRules;
        for (p in g.props)
          if (o.call(g.props, p)) {
            for (h = g.props[p], i(h) || (h = [h]), C = h.length, v = 0; v < C; ++v)
              (m = h[v]),
                (y = m.indexOf("[VER]")),
                y >= 0 && (m = m.substring(0, y) + "([\\w._\\+]+)" + m.substring(y + 5)),
                (h[v] = new RegExp(m, "i"));
            g.props[p] = h;
          }
        l(g.oss),
          l(g.phones),
          l(g.tablets),
          l(g.uas),
          l(g.utils),
          (g.oss0 = { WindowsPhoneOS: g.oss.WindowsPhoneOS, WindowsMobileOS: g.oss.WindowsMobileOS });
      })(),
        (r.findMatch = function (d, p) {
          for (var h in d) if (o.call(d, h) && d[h].test(p)) return h;
          return null;
        }),
        (r.findMatches = function (d, p) {
          var h = [];
          for (var m in d) o.call(d, m) && d[m].test(p) && h.push(m);
          return h;
        }),
        (r.getVersionStr = function (d, p) {
          var h = r.mobileDetectRules.props,
            m,
            v,
            C,
            y;
          if (o.call(h, d)) {
            for (m = h[d], C = m.length, v = 0; v < C; ++v) if (((y = m[v].exec(p)), y !== null)) return y[1];
          }
          return null;
        }),
        (r.getVersion = function (d, p) {
          var h = r.getVersionStr(d, p);
          return h ? r.prepareVersionNo(h) : NaN;
        }),
        (r.prepareVersionNo = function (d) {
          var p;
          return (
            (p = d.split(/[a-z._ \/\-]/i)),
            p.length === 1 && (d = p[0]),
            p.length > 1 && ((d = p[0] + "."), p.shift(), (d += p.join(""))),
            Number(d)
          );
        }),
        (r.isMobileFallback = function (d) {
          return r.detectMobileBrowsers.fullPattern.test(d) || r.detectMobileBrowsers.shortPattern.test(d.substr(0, 4));
        }),
        (r.isTabletFallback = function (d) {
          return r.detectMobileBrowsers.tabletPattern.test(d);
        }),
        (r.prepareDetectionCache = function (d, p, h) {
          if (d.mobile === n) {
            var m, v, C;
            if (((v = r.findMatch(r.mobileDetectRules.tablets, p)), v)) {
              (d.mobile = d.tablet = v), (d.phone = null);
              return;
            }
            if (((m = r.findMatch(r.mobileDetectRules.phones, p)), m)) {
              (d.mobile = d.phone = m), (d.tablet = null);
              return;
            }
            r.isMobileFallback(p)
              ? ((C = c.isPhoneSized(h)),
                C === n
                  ? ((d.mobile = r.FALLBACK_MOBILE), (d.tablet = d.phone = null))
                  : C
                    ? ((d.mobile = d.phone = r.FALLBACK_PHONE), (d.tablet = null))
                    : ((d.mobile = d.tablet = r.FALLBACK_TABLET), (d.phone = null)))
              : r.isTabletFallback(p)
                ? ((d.mobile = d.tablet = r.FALLBACK_TABLET), (d.phone = null))
                : (d.mobile = d.tablet = d.phone = null);
          }
        }),
        (r.mobileGrade = function (d) {
          var p = d.mobile() !== null;
          return (d.os("iOS") && d.version("iPad") >= 4.3) ||
            (d.os("iOS") && d.version("iPhone") >= 3.1) ||
            (d.os("iOS") && d.version("iPod") >= 3.1) ||
            (d.version("Android") > 2.1 && d.is("Webkit")) ||
            d.version("Windows Phone OS") >= 7 ||
            (d.is("BlackBerry") && d.version("BlackBerry") >= 6) ||
            d.match("Playbook.*Tablet") ||
            (d.version("webOS") >= 1.4 && d.match("Palm|Pre|Pixi")) ||
            d.match("hp.*TouchPad") ||
            (d.is("Firefox") && d.version("Firefox") >= 12) ||
            (d.is("Chrome") && d.is("AndroidOS") && d.version("Android") >= 4) ||
            (d.is("Skyfire") && d.version("Skyfire") >= 4.1 && d.is("AndroidOS") && d.version("Android") >= 2.3) ||
            (d.is("Opera") && d.version("Opera Mobi") > 11 && d.is("AndroidOS")) ||
            d.is("MeeGoOS") ||
            d.is("Tizen") ||
            (d.is("Dolfin") && d.version("Bada") >= 2) ||
            ((d.is("UC Browser") || d.is("Dolfin")) && d.version("Android") >= 2.3) ||
            d.match("Kindle Fire") ||
            (d.is("Kindle") && d.version("Kindle") >= 3) ||
            (d.is("AndroidOS") && d.is("NookTablet")) ||
            (d.version("Chrome") >= 11 && !p) ||
            (d.version("Safari") >= 5 && !p) ||
            (d.version("Firefox") >= 4 && !p) ||
            (d.version("MSIE") >= 7 && !p) ||
            (d.version("Opera") >= 10 && !p)
            ? "A"
            : (d.os("iOS") && d.version("iPad") < 4.3) ||
                (d.os("iOS") && d.version("iPhone") < 3.1) ||
                (d.os("iOS") && d.version("iPod") < 3.1) ||
                (d.is("Blackberry") && d.version("BlackBerry") >= 5 && d.version("BlackBerry") < 6) ||
                (d.version("Opera Mini") >= 5 &&
                  d.version("Opera Mini") <= 6.5 &&
                  (d.version("Android") >= 2.3 || d.is("iOS"))) ||
                d.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3") ||
                (d.version("Opera Mobi") >= 11 && d.is("SymbianOS"))
              ? "B"
              : (d.version("BlackBerry") < 5 ||
                  d.match("MSIEMobile|Windows CE.*Mobile") ||
                  d.version("Windows Mobile") <= 5.2,
                "C");
        }),
        (r.detectOS = function (d) {
          return r.findMatch(r.mobileDetectRules.oss0, d) || r.findMatch(r.mobileDetectRules.oss, d);
        }),
        (r.getDeviceSmallerSide = function () {
          return window.screen.width < window.screen.height ? window.screen.width : window.screen.height;
        });
      function c(d, p) {
        (this.ua = u(d)), (this._cache = {}), (this.maxPhoneWidth = p || 600);
      }
      return (
        (c.prototype = {
          constructor: c,
          mobile: function () {
            return r.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.mobile;
          },
          phone: function () {
            return r.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.phone;
          },
          tablet: function () {
            return r.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.tablet;
          },
          userAgent: function () {
            return (
              this._cache.userAgent === n && (this._cache.userAgent = r.findMatch(r.mobileDetectRules.uas, this.ua)),
              this._cache.userAgent
            );
          },
          userAgents: function () {
            return (
              this._cache.userAgents === n &&
                (this._cache.userAgents = r.findMatches(r.mobileDetectRules.uas, this.ua)),
              this._cache.userAgents
            );
          },
          os: function () {
            return this._cache.os === n && (this._cache.os = r.detectOS(this.ua)), this._cache.os;
          },
          version: function (d) {
            return r.getVersion(d, this.ua);
          },
          versionStr: function (d) {
            return r.getVersionStr(d, this.ua);
          },
          is: function (d) {
            return (
              a(this.userAgents(), d) ||
              s(d, this.os()) ||
              s(d, this.phone()) ||
              s(d, this.tablet()) ||
              a(r.findMatches(r.mobileDetectRules.utils, this.ua), d)
            );
          },
          match: function (d) {
            return d instanceof RegExp || (d = new RegExp(d, "i")), d.test(this.ua);
          },
          isPhoneSized: function (d) {
            return c.isPhoneSized(d || this.maxPhoneWidth);
          },
          mobileGrade: function () {
            return this._cache.grade === n && (this._cache.grade = r.mobileGrade(this)), this._cache.grade;
          },
        }),
        typeof window < "u" && window.screen
          ? (c.isPhoneSized = function (d) {
              return d < 0 ? n : r.getDeviceSmallerSide() <= d;
            })
          : (c.isPhoneSized = function () {}),
        (c._impl = r),
        (c.version = "1.4.5 2021-03-13"),
        c
      );
    });
  })(
    (function (t) {
      if (e.exports)
        return function (n) {
          e.exports = n();
        };
      if (typeof window < "u")
        return function (n) {
          window.MobileDetect = n();
        };
      throw new Error("unknown environment");
    })()
  );
})(Hy);
var Dk = Hy.exports;
const Rk = Ti(Dk);
var Ik =
    typeof Symbol == "function" && typeof Symbol.iterator == "symbol"
      ? function (e) {
          return typeof e;
        }
      : function (e) {
          return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype
            ? "symbol"
            : typeof e;
        },
  Ok = window.device,
  fe = {},
  Ih = [];
window.device = fe;
var yu = window.document.documentElement,
  Fk = window.navigator.userAgent.toLowerCase(),
  p3 = [
    "googletv",
    "viera",
    "smarttv",
    "internet.tv",
    "netcast",
    "nettv",
    "appletv",
    "boxee",
    "kylo",
    "roku",
    "dlnadoc",
    "pov_tv",
    "hbbtv",
    "ce-html",
  ];
fe.macos = function () {
  return jt("mac");
};
fe.ios = function () {
  return fe.iphone() || fe.ipod() || fe.ipad();
};
fe.iphone = function () {
  return !fe.windows() && jt("iphone");
};
fe.ipod = function () {
  return jt("ipod");
};
fe.ipad = function () {
  var e = navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
  return jt("ipad") || e;
};
fe.android = function () {
  return !fe.windows() && jt("android");
};
fe.androidPhone = function () {
  return fe.android() && jt("mobile");
};
fe.androidTablet = function () {
  return fe.android() && !jt("mobile");
};
fe.blackberry = function () {
  return jt("blackberry") || jt("bb10");
};
fe.blackberryPhone = function () {
  return fe.blackberry() && !jt("tablet");
};
fe.blackberryTablet = function () {
  return fe.blackberry() && jt("tablet");
};
fe.windows = function () {
  return jt("windows");
};
fe.windowsPhone = function () {
  return fe.windows() && jt("phone");
};
fe.windowsTablet = function () {
  return fe.windows() && jt("touch") && !fe.windowsPhone();
};
fe.fxos = function () {
  return (jt("(mobile") || jt("(tablet")) && jt(" rv:");
};
fe.fxosPhone = function () {
  return fe.fxos() && jt("mobile");
};
fe.fxosTablet = function () {
  return fe.fxos() && jt("tablet");
};
fe.meego = function () {
  return jt("meego");
};
fe.cordova = function () {
  return window.cordova && location.protocol === "file:";
};
fe.nodeWebkit = function () {
  return Ik(window.process) === "object";
};
fe.mobile = function () {
  return (
    fe.androidPhone() ||
    fe.iphone() ||
    fe.ipod() ||
    fe.windowsPhone() ||
    fe.blackberryPhone() ||
    fe.fxosPhone() ||
    fe.meego()
  );
};
fe.tablet = function () {
  return fe.ipad() || fe.androidTablet() || fe.blackberryTablet() || fe.windowsTablet() || fe.fxosTablet();
};
fe.desktop = function () {
  return !fe.tablet() && !fe.mobile();
};
fe.television = function () {
  for (var e = 0; e < p3.length; ) {
    if (jt(p3[e])) return !0;
    e++;
  }
  return !1;
};
fe.portrait = function () {
  return screen.orientation && Object.prototype.hasOwnProperty.call(window, "onorientationchange")
    ? w2(screen.orientation.type, "portrait")
    : fe.ios() && Object.prototype.hasOwnProperty.call(window, "orientation")
      ? Math.abs(window.orientation) !== 90
      : window.innerHeight / window.innerWidth > 1;
};
fe.landscape = function () {
  return screen.orientation && Object.prototype.hasOwnProperty.call(window, "onorientationchange")
    ? w2(screen.orientation.type, "landscape")
    : fe.ios() && Object.prototype.hasOwnProperty.call(window, "orientation")
      ? Math.abs(window.orientation) === 90
      : window.innerHeight / window.innerWidth < 1;
};
fe.noConflict = function () {
  return (window.device = Ok), this;
};
function w2(e, t) {
  return e.indexOf(t) !== -1;
}
function jt(e) {
  return w2(Fk, e);
}
function zy(e) {
  return yu.className.match(new RegExp(e, "i"));
}
function Gt(e) {
  var t = null;
  zy(e) || ((t = yu.className.replace(/^\s+|\s+$/g, "")), (yu.className = t + " " + e));
}
function h3(e) {
  zy(e) && (yu.className = yu.className.replace(" " + e, ""));
}
fe.ios()
  ? fe.ipad()
    ? Gt("ios ipad tablet")
    : fe.iphone()
      ? Gt("ios iphone mobile")
      : fe.ipod() && Gt("ios ipod mobile")
  : fe.macos()
    ? Gt("macos desktop")
    : fe.android()
      ? fe.androidTablet()
        ? Gt("android tablet")
        : Gt("android mobile")
      : fe.blackberry()
        ? fe.blackberryTablet()
          ? Gt("blackberry tablet")
          : Gt("blackberry mobile")
        : fe.windows()
          ? fe.windowsTablet()
            ? Gt("windows tablet")
            : fe.windowsPhone()
              ? Gt("windows mobile")
              : Gt("windows desktop")
          : fe.fxos()
            ? fe.fxosTablet()
              ? Gt("fxos tablet")
              : Gt("fxos mobile")
            : fe.meego()
              ? Gt("meego mobile")
              : fe.nodeWebkit()
                ? Gt("node-webkit")
                : fe.television()
                  ? Gt("television")
                  : fe.desktop() && Gt("desktop");
fe.cordova() && Gt("cordova");
function Ed() {
  fe.landscape()
    ? (h3("portrait"), Gt("landscape"), m3("landscape"))
    : (h3("landscape"), Gt("portrait"), m3("portrait")),
    Wy();
}
function m3(e) {
  for (var t = 0; t < Ih.length; t++) Ih[t](e);
}
fe.onChangeOrientation = function (e) {
  typeof e == "function" && Ih.push(e);
};
var Pd = "resize";
Object.prototype.hasOwnProperty.call(window, "onorientationchange") && (Pd = "orientationchange");
window.addEventListener
  ? window.addEventListener(Pd, Ed, !1)
  : window.attachEvent
    ? window.attachEvent(Pd, Ed)
    : (window[Pd] = Ed);
Ed();
function S2(e) {
  for (var t = 0; t < e.length; t++) if (fe[e[t]]()) return e[t];
  return "unknown";
}
fe.type = S2(["mobile", "tablet", "desktop"]);
fe.os = S2([
  "ios",
  "iphone",
  "ipad",
  "ipod",
  "android",
  "blackberry",
  "macos",
  "windows",
  "fxos",
  "meego",
  "television",
]);
function Wy() {
  fe.orientation = S2(["portrait", "landscape"]);
}
Wy();
const Oh = (e) => {
  if (Array.isArray(e)) return e.map(Oh);
  if (!e || typeof e != "object") return e;
  const t = {};
  for (const [n, r] of Object.entries(e)) {
    if (typeof r == "string") {
      t[n] = r.replace("squiz.pena.digital", "storage.yandexcloud.net");
      continue;
    }
    if (typeof r == "object") {
      t[n] = Oh(r);
      continue;
    }
    t[n] = r;
  }
  return t;
};
var Gy = { exports: {} };
/*!
 * Bowser - a browser detector
 * https://github.com/ded/bowser
 * MIT License | (c) Dustin Diaz 2015
 */ (function (e) {
  (function (t, n, r) {
    e.exports ? (e.exports = r()) : (t[n] = r());
  })(uw, "bowser", function () {
    var t = !0;
    function n(u) {
      function c(I) {
        var $ = u.match(I);
        return ($ && $.length > 1 && $[1]) || "";
      }
      function d(I) {
        var $ = u.match(I);
        return ($ && $.length > 1 && $[2]) || "";
      }
      var p = c(/(ipod|iphone|ipad)/i).toLowerCase(),
        h = /like android/i.test(u),
        m = !h && /android/i.test(u),
        v = /nexus\s*[0-6]\s*/i.test(u),
        C = !v && /nexus\s*[0-9]+/i.test(u),
        y = /CrOS/.test(u),
        g = /silk/i.test(u),
        x = /sailfish/i.test(u),
        w = /tizen/i.test(u),
        k = /(web|hpw)(o|0)s/i.test(u),
        M = /windows phone/i.test(u),
        T = !M && /windows/i.test(u),
        P = !p && !g && /macintosh/i.test(u),
        A = !m && !x && !w && !k && /linux/i.test(u),
        D = d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),
        R = c(/version\/(\d+(\.\d+)?)/i),
        L = /tablet/i.test(u) && !/tablet pc/i.test(u),
        F = !L && /[^-]mobi/i.test(u),
        O = /xbox/i.test(u),
        E;
      /opera/i.test(u)
        ? (E = { name: "Opera", opera: t, version: R || c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i) })
        : /opr\/|opios/i.test(u)
          ? (E = { name: "Opera", opera: t, version: c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i) || R })
          : /SamsungBrowser/i.test(u)
            ? (E = {
                name: "Samsung Internet for Android",
                samsungBrowser: t,
                version: R || c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i),
              })
            : /Whale/i.test(u)
              ? (E = { name: "NAVER Whale browser", whale: t, version: c(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i) })
              : /MZBrowser/i.test(u)
                ? (E = { name: "MZ Browser", mzbrowser: t, version: c(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i) })
                : /coast/i.test(u)
                  ? (E = { name: "Opera Coast", coast: t, version: R || c(/(?:coast)[\s\/](\d+(\.\d+)?)/i) })
                  : /focus/i.test(u)
                    ? (E = { name: "Focus", focus: t, version: c(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i) })
                    : /yabrowser/i.test(u)
                      ? (E = {
                          name: "Yandex Browser",
                          yandexbrowser: t,
                          version: R || c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i),
                        })
                      : /ucbrowser/i.test(u)
                        ? (E = { name: "UC Browser", ucbrowser: t, version: c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i) })
                        : /mxios/i.test(u)
                          ? (E = { name: "Maxthon", maxthon: t, version: c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i) })
                          : /epiphany/i.test(u)
                            ? (E = { name: "Epiphany", epiphany: t, version: c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i) })
                            : /puffin/i.test(u)
                              ? (E = { name: "Puffin", puffin: t, version: c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i) })
                              : /sleipnir/i.test(u)
                                ? (E = {
                                    name: "Sleipnir",
                                    sleipnir: t,
                                    version: c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i),
                                  })
                                : /k-meleon/i.test(u)
                                  ? (E = {
                                      name: "K-Meleon",
                                      kMeleon: t,
                                      version: c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i),
                                    })
                                  : M
                                    ? ((E = { name: "Windows Phone", osname: "Windows Phone", windowsphone: t }),
                                      D
                                        ? ((E.msedge = t), (E.version = D))
                                        : ((E.msie = t), (E.version = c(/iemobile\/(\d+(\.\d+)?)/i))))
                                    : /msie|trident/i.test(u)
                                      ? (E = {
                                          name: "Internet Explorer",
                                          msie: t,
                                          version: c(/(?:msie |rv:)(\d+(\.\d+)?)/i),
                                        })
                                      : y
                                        ? (E = {
                                            name: "Chrome",
                                            osname: "Chrome OS",
                                            chromeos: t,
                                            chromeBook: t,
                                            chrome: t,
                                            version: c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i),
                                          })
                                        : /edg([ea]|ios)/i.test(u)
                                          ? (E = { name: "Microsoft Edge", msedge: t, version: D })
                                          : /vivaldi/i.test(u)
                                            ? (E = {
                                                name: "Vivaldi",
                                                vivaldi: t,
                                                version: c(/vivaldi\/(\d+(\.\d+)?)/i) || R,
                                              })
                                            : x
                                              ? (E = {
                                                  name: "Sailfish",
                                                  osname: "Sailfish OS",
                                                  sailfish: t,
                                                  version: c(/sailfish\s?browser\/(\d+(\.\d+)?)/i),
                                                })
                                              : /seamonkey\//i.test(u)
                                                ? (E = {
                                                    name: "SeaMonkey",
                                                    seamonkey: t,
                                                    version: c(/seamonkey\/(\d+(\.\d+)?)/i),
                                                  })
                                                : /firefox|iceweasel|fxios/i.test(u)
                                                  ? ((E = {
                                                      name: "Firefox",
                                                      firefox: t,
                                                      version: c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i),
                                                    }),
                                                    /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(u) &&
                                                      ((E.firefoxos = t), (E.osname = "Firefox OS")))
                                                  : g
                                                    ? (E = {
                                                        name: "Amazon Silk",
                                                        silk: t,
                                                        version: c(/silk\/(\d+(\.\d+)?)/i),
                                                      })
                                                    : /phantom/i.test(u)
                                                      ? (E = {
                                                          name: "PhantomJS",
                                                          phantom: t,
                                                          version: c(/phantomjs\/(\d+(\.\d+)?)/i),
                                                        })
                                                      : /slimerjs/i.test(u)
                                                        ? (E = {
                                                            name: "SlimerJS",
                                                            slimer: t,
                                                            version: c(/slimerjs\/(\d+(\.\d+)?)/i),
                                                          })
                                                        : /blackberry|\bbb\d+/i.test(u) || /rim\stablet/i.test(u)
                                                          ? (E = {
                                                              name: "BlackBerry",
                                                              osname: "BlackBerry OS",
                                                              blackberry: t,
                                                              version: R || c(/blackberry[\d]+\/(\d+(\.\d+)?)/i),
                                                            })
                                                          : k
                                                            ? ((E = {
                                                                name: "WebOS",
                                                                osname: "WebOS",
                                                                webos: t,
                                                                version: R || c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i),
                                                              }),
                                                              /touchpad\//i.test(u) && (E.touchpad = t))
                                                            : /bada/i.test(u)
                                                              ? (E = {
                                                                  name: "Bada",
                                                                  osname: "Bada",
                                                                  bada: t,
                                                                  version: c(/dolfin\/(\d+(\.\d+)?)/i),
                                                                })
                                                              : w
                                                                ? (E = {
                                                                    name: "Tizen",
                                                                    osname: "Tizen",
                                                                    tizen: t,
                                                                    version:
                                                                      c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) || R,
                                                                  })
                                                                : /qupzilla/i.test(u)
                                                                  ? (E = {
                                                                      name: "QupZilla",
                                                                      qupzilla: t,
                                                                      version:
                                                                        c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || R,
                                                                    })
                                                                  : /chromium/i.test(u)
                                                                    ? (E = {
                                                                        name: "Chromium",
                                                                        chromium: t,
                                                                        version:
                                                                          c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) || R,
                                                                      })
                                                                    : /chrome|crios|crmo/i.test(u)
                                                                      ? (E = {
                                                                          name: "Chrome",
                                                                          chrome: t,
                                                                          version: c(
                                                                            /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i
                                                                          ),
                                                                        })
                                                                      : m
                                                                        ? (E = { name: "Android", version: R })
                                                                        : /safari|applewebkit/i.test(u)
                                                                          ? ((E = { name: "Safari", safari: t }),
                                                                            R && (E.version = R))
                                                                          : p
                                                                            ? ((E = {
                                                                                name:
                                                                                  p == "iphone"
                                                                                    ? "iPhone"
                                                                                    : p == "ipad"
                                                                                      ? "iPad"
                                                                                      : "iPod",
                                                                              }),
                                                                              R && (E.version = R))
                                                                            : /googlebot/i.test(u)
                                                                              ? (E = {
                                                                                  name: "Googlebot",
                                                                                  googlebot: t,
                                                                                  version:
                                                                                    c(/googlebot\/(\d+(\.\d+))/i) || R,
                                                                                })
                                                                              : (E = {
                                                                                  name: c(/^(.*)\/(.*) /),
                                                                                  version: d(/^(.*)\/(.*) /),
                                                                                }),
        !E.msedge && /(apple)?webkit/i.test(u)
          ? (/(apple)?webkit\/537\.36/i.test(u)
              ? ((E.name = E.name || "Blink"), (E.blink = t))
              : ((E.name = E.name || "Webkit"), (E.webkit = t)),
            !E.version && R && (E.version = R))
          : !E.opera &&
            /gecko\//i.test(u) &&
            ((E.name = E.name || "Gecko"), (E.gecko = t), (E.version = E.version || c(/gecko\/(\d+(\.\d+)?)/i))),
        !E.windowsphone && (m || E.silk)
          ? ((E.android = t), (E.osname = "Android"))
          : !E.windowsphone && p
            ? ((E[p] = t), (E.ios = t), (E.osname = "iOS"))
            : P
              ? ((E.mac = t), (E.osname = "macOS"))
              : O
                ? ((E.xbox = t), (E.osname = "Xbox"))
                : T
                  ? ((E.windows = t), (E.osname = "Windows"))
                  : A && ((E.linux = t), (E.osname = "Linux"));
      function B(I) {
        switch (I) {
          case "NT":
            return "NT";
          case "XP":
            return "XP";
          case "NT 5.0":
            return "2000";
          case "NT 5.1":
            return "XP";
          case "NT 5.2":
            return "2003";
          case "NT 6.0":
            return "Vista";
          case "NT 6.1":
            return "7";
          case "NT 6.2":
            return "8";
          case "NT 6.3":
            return "8.1";
          case "NT 10.0":
            return "10";
          default:
            return;
        }
      }
      var j = "";
      E.windows
        ? (j = B(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)))
        : E.windowsphone
          ? (j = c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i))
          : E.mac
            ? ((j = c(/Mac OS X (\d+([_\.\s]\d+)*)/i)), (j = j.replace(/[_\s]/g, ".")))
            : p
              ? ((j = c(/os (\d+([_\s]\d+)*) like mac os x/i)), (j = j.replace(/[_\s]/g, ".")))
              : m
                ? (j = c(/android[ \/-](\d+(\.\d+)*)/i))
                : E.webos
                  ? (j = c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i))
                  : E.blackberry
                    ? (j = c(/rim\stablet\sos\s(\d+(\.\d+)*)/i))
                    : E.bada
                      ? (j = c(/bada\/(\d+(\.\d+)*)/i))
                      : E.tizen && (j = c(/tizen[\/\s](\d+(\.\d+)*)/i)),
        j && (E.osversion = j);
      var _ = !E.windows && j.split(".")[0];
      return (
        L || C || p == "ipad" || (m && (_ == 3 || (_ >= 4 && !F))) || E.silk
          ? (E.tablet = t)
          : (F || p == "iphone" || p == "ipod" || m || v || E.blackberry || E.webos || E.bada) && (E.mobile = t),
        E.msedge ||
        (E.msie && E.version >= 10) ||
        (E.yandexbrowser && E.version >= 15) ||
        (E.vivaldi && E.version >= 1) ||
        (E.chrome && E.version >= 20) ||
        (E.samsungBrowser && E.version >= 4) ||
        (E.whale && s([E.version, "1.0"]) === 1) ||
        (E.mzbrowser && s([E.version, "6.0"]) === 1) ||
        (E.focus && s([E.version, "1.0"]) === 1) ||
        (E.firefox && E.version >= 20) ||
        (E.safari && E.version >= 6) ||
        (E.opera && E.version >= 10) ||
        (E.ios && E.osversion && E.osversion.split(".")[0] >= 6) ||
        (E.blackberry && E.version >= 10.1) ||
        (E.chromium && E.version >= 20)
          ? (E.a = t)
          : (E.msie && E.version < 10) ||
              (E.chrome && E.version < 20) ||
              (E.firefox && E.version < 20) ||
              (E.safari && E.version < 6) ||
              (E.opera && E.version < 10) ||
              (E.ios && E.osversion && E.osversion.split(".")[0] < 6) ||
              (E.chromium && E.version < 20)
            ? (E.c = t)
            : (E.x = t),
        E
      );
    }
    var r = n((typeof navigator < "u" && navigator.userAgent) || "");
    r.test = function (u) {
      for (var c = 0; c < u.length; ++c) {
        var d = u[c];
        if (typeof d == "string" && d in r) return !0;
      }
      return !1;
    };
    function o(u) {
      return u.split(".").length;
    }
    function i(u, c) {
      var d = [],
        p;
      if (Array.prototype.map) return Array.prototype.map.call(u, c);
      for (p = 0; p < u.length; p++) d.push(c(u[p]));
      return d;
    }
    function s(u) {
      for (
        var c = Math.max(o(u[0]), o(u[1])),
          d = i(u, function (p) {
            var h = c - o(p);
            return (
              (p = p + new Array(h + 1).join(".0")),
              i(p.split("."), function (m) {
                return new Array(20 - m.length).join("0") + m;
              }).reverse()
            );
          });
        --c >= 0;

      ) {
        if (d[0][c] > d[1][c]) return 1;
        if (d[0][c] === d[1][c]) {
          if (c === 0) return 0;
        } else return -1;
      }
    }
    function a(u, c, d) {
      var p = r;
      typeof c == "string" && ((d = c), (c = void 0)), c === void 0 && (c = !1), d && (p = n(d));
      var h = "" + p.version;
      for (var m in u)
        if (u.hasOwnProperty(m) && p[m]) {
          if (typeof u[m] != "string")
            throw new Error("Browser version in the minVersion map should be a string: " + m + ": " + String(u));
          return s([h, u[m]]) < 0;
        }
      return c;
    }
    function l(u, c, d) {
      return !a(u, c, d);
    }
    return (r.isUnsupportedBrowser = a), (r.compareVersions = s), (r.check = l), (r._detect = n), (r.detect = n), r;
  });
})(Gy);
var Oc = Gy.exports;
let Ze = "https://hbpn.link";
const d1 = location.hostname,
  tc = !(d1 === "s.hbpn.link" || d1.includes("localhost") || d1.includes("127.0.0.1"));
tc || (Ze = "https://s.hbpn.link");
let Ad = "";
const Lk = new Rk(window.navigator.userAgent),
  Mi = navigator.userAgent;
let xi;
Mi.toLowerCase().includes("linux") && (xi = "Linux");
Mi.toLowerCase().includes("windows") && (xi = "Windows");
/iPad|iPhone|iPod/.test(Mi) && (xi = "IOS");
Mi.toLowerCase().includes("macintosh") && (xi = "Mac OS");
xi === void 0 && (xi = Mi);
let Gs;
Oc.name === "Chrome"
  ? (Gs = "Chrome")
  : Oc.name === "Firefox"
    ? (Gs = "Firefox")
    : Oc.name === "Safari"
      ? (Gs = "Safari")
      : Oc.name === "Yandex Browser"
        ? (Gs = "Yandex Browser")
        : (Gs = Mi);
const Uy = fe.type;
let nf = Lk.mobile();
nf === null && (nf = Mi);
const sp = ({ url: e, body: t }) =>
  It(e, {
    data: t,
    headers: {
      "X-Sessionkey": Ad,
      "Content-Type": "multipart/form-data",
      DeviceType: Uy,
      Device: nf,
      OS: xi,
      Browser: Gs,
    },
    method: "POST",
  });
async function Nk(e) {
  try {
    const { data: t, headers: n } = await It(Ze + `/answer/v1.0.0/settings${window.location.search}`, {
        method: "POST",
        headers: {
          "X-Sessionkey": Ad,
          "Content-Type": "application/json",
          DeviceType: Uy,
          Device: nf,
          OS: xi,
          Browser: Mi,
        },
        data: { quiz_id: e, limit: 100, page: 0, need_config: !0 },
      }),
      r = JSON.parse(localStorage.getItem("sessions") || "{}");
    return typeof r[e] == "number" && t.settings.cfg.includes('antifraud":true') && Date.now() - r[e] < 864e5
      ? { data: t, isRecentlyCompleted: !0 }
      : ((Ad = n["x-sessionkey"] ? n["x-sessionkey"] : Ad), { data: t, isRecentlyCompleted: !1 });
  } catch (t) {
    return { data: null, isRecentlyCompleted: !1, error: t };
  }
}
async function $k(e) {
  if (!e) throw new Error("No quiz id");
  const t = await Nk(e),
    n = t.data;
  if (t.error) throw t.error;
  if (!n) throw new Error("Quiz not found");
  const r = Oh(gS(n)),
    o = JSON.parse(
      JSON.stringify({ data: r })
        .replaceAll(/\\" \\"/g, '""')
        .replaceAll(/" "/g, '""')
    ).data;
  return (o.recentlyCompleted = t.isRecentlyCompleted), o;
}
function xn({ questionId: e, body: t, qid: n, preview: r = !1 }) {
  if (r) return;
  const o = new FormData(),
    i = [{ question_id: e, content: t }];
  return (
    o.append("answers", JSON.stringify(i)),
    o.append("qid", n),
    sp({ url: Ze + "/answer/v1.0.0/answer", body: o, method: "POST" })
  );
}
function Bk({ questionId: e, body: t, qid: n }) {
  if (t.preview) return;
  const r = new FormData(),
    o = new File([t.file], t.file.name.replace(/\s/g, "_")),
    i = t.name.replace(/\s/g, "_"),
    s = [{ question_id: e, content: "file:" + i }];
  return (
    r.append("answers", JSON.stringify(s)),
    r.append(i, o),
    r.append("qid", n),
    sp({ url: Ze + "/answer/v1.0.0/answer", body: r, method: "POST" })
  );
}
function Yy({ questionId: e, body: t, qid: n, preview: r }) {
  if (r) return;
  const o = new FormData(),
    i = [{ question_id: e, content: JSON.stringify(t), result: !0, qid: n }];
  return (
    o.append("answers", JSON.stringify(i)),
    o.append("qid", n),
    sp({ url: Ze + "/answer/v1.0.0/answer", body: o, method: "POST" })
  );
}
function jk({ questionId: e, pointsSum: t, qid: n, preview: r }) {
  if (r) return;
  const o = new FormData(),
    i = [{ question_id: e, content: t.toString(), result: !1, qid: n }];
  return (
    o.append("answers", JSON.stringify(i)),
    o.append("qid", n),
    sp({ url: Ze + "/answer/v1.0.0/answer", body: o, method: "POST" })
  );
}
function nc(e, t = !1) {
  return by(t ? null : ["quizData", e], (n) => $k(n[1]), {
    revalidateOnFocus: !1,
    revalidateOnReconnect: !1,
    shouldRetryOnError: !1,
    refreshInterval: 0,
  });
}
const Vk = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
let Hk = (e = 21) => {
  let t = "",
    n = crypto.getRandomValues(new Uint8Array(e));
  for (; e--; ) t += Vk[n[e] & 63];
  return t;
};
var zk = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
const g3 = (e) => {
    let t;
    const n = new Set(),
      r = (c, d) => {
        const p = typeof c == "function" ? c(t) : c;
        if (!Object.is(p, t)) {
          const h = t;
          (t = d ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p)), n.forEach((m) => m(t, h));
        }
      },
      o = () => t,
      l = {
        setState: r,
        getState: o,
        getInitialState: () => u,
        subscribe: (c) => (n.add(c), () => n.delete(c)),
        destroy: () => {
          (zk ? "production" : void 0) !== "production" &&
            console.warn(
              "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
            ),
            n.clear();
        },
      },
      u = (t = e(r, o, l));
    return l;
  },
  Wk = (e) => (e ? g3(e) : g3);
var Ky = { exports: {} },
  Xy = {},
  qy = { exports: {} },
  Zy = {};
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Aa = b;
function Gk(e, t) {
  return (e === t && (e !== 0 || 1 / e === 1 / t)) || (e !== e && t !== t);
}
var Uk = typeof Object.is == "function" ? Object.is : Gk,
  Yk = Aa.useState,
  Kk = Aa.useEffect,
  Xk = Aa.useLayoutEffect,
  qk = Aa.useDebugValue;
function Zk(e, t) {
  var n = t(),
    r = Yk({ inst: { value: n, getSnapshot: t } }),
    o = r[0].inst,
    i = r[1];
  return (
    Xk(
      function () {
        (o.value = n), (o.getSnapshot = t), f1(o) && i({ inst: o });
      },
      [e, n, t]
    ),
    Kk(
      function () {
        return (
          f1(o) && i({ inst: o }),
          e(function () {
            f1(o) && i({ inst: o });
          })
        );
      },
      [e]
    ),
    qk(n),
    n
  );
}
function f1(e) {
  var t = e.getSnapshot;
  e = e.value;
  try {
    var n = t();
    return !Uk(e, n);
  } catch {
    return !0;
  }
}
function Jk(e, t) {
  return t();
}
var Qk = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? Jk : Zk;
Zy.useSyncExternalStore = Aa.useSyncExternalStore !== void 0 ? Aa.useSyncExternalStore : Qk;
qy.exports = Zy;
var eT = qy.exports;
/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var ap = b,
  tT = eT;
function nT(e, t) {
  return (e === t && (e !== 0 || 1 / e === 1 / t)) || (e !== e && t !== t);
}
var rT = typeof Object.is == "function" ? Object.is : nT,
  oT = tT.useSyncExternalStore,
  iT = ap.useRef,
  sT = ap.useEffect,
  aT = ap.useMemo,
  lT = ap.useDebugValue;
Xy.useSyncExternalStoreWithSelector = function (e, t, n, r, o) {
  var i = iT(null);
  if (i.current === null) {
    var s = { hasValue: !1, value: null };
    i.current = s;
  } else s = i.current;
  i = aT(
    function () {
      function l(h) {
        if (!u) {
          if (((u = !0), (c = h), (h = r(h)), o !== void 0 && s.hasValue)) {
            var m = s.value;
            if (o(m, h)) return (d = m);
          }
          return (d = h);
        }
        if (((m = d), rT(c, h))) return m;
        var v = r(h);
        return o !== void 0 && o(m, v) ? m : ((c = h), (d = v));
      }
      var u = !1,
        c,
        d,
        p = n === void 0 ? null : n;
      return [
        function () {
          return l(t());
        },
        p === null
          ? void 0
          : function () {
              return l(p());
            },
      ];
    },
    [t, n, r, o]
  );
  var a = oT(e, i[0], i[1]);
  return (
    sT(
      function () {
        (s.hasValue = !0), (s.value = a);
      },
      [a]
    ),
    lT(a),
    a
  );
};
Ky.exports = Xy;
var uT = Ky.exports;
const cT = Ti(uT);
var dT = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
const { useDebugValue: fT } = De,
  { useSyncExternalStoreWithSelector: pT } = cT;
let y3 = !1;
const hT = (e) => e;
function mT(e, t = hT, n) {
  (dT ? "production" : void 0) !== "production" &&
    n &&
    !y3 &&
    (console.warn(
      "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
    ),
    (y3 = !0));
  const r = pT(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n);
  return fT(r), r;
}
var Jy = Symbol.for("immer-nothing"),
  v3 = Symbol.for("immer-draftable"),
  Wn = Symbol.for("immer-state");
function Dr(e, ...t) {
  throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
var _a = Object.getPrototypeOf;
function Da(e) {
  return !!e && !!e[Wn];
}
function as(e) {
  var t;
  return e ? Qy(e) || Array.isArray(e) || !!e[v3] || !!((t = e.constructor) != null && t[v3]) || up(e) || cp(e) : !1;
}
var gT = Object.prototype.constructor.toString();
function Qy(e) {
  if (!e || typeof e != "object") return !1;
  const t = _a(e);
  if (t === null) return !0;
  const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
  return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === gT;
}
function rf(e, t) {
  lp(e) === 0
    ? Reflect.ownKeys(e).forEach((n) => {
        t(n, e[n], e);
      })
    : e.forEach((n, r) => t(r, n, e));
}
function lp(e) {
  const t = e[Wn];
  return t ? t.type_ : Array.isArray(e) ? 1 : up(e) ? 2 : cp(e) ? 3 : 0;
}
function Fh(e, t) {
  return lp(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
function ev(e, t, n) {
  const r = lp(e);
  r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : (e[t] = n);
}
function yT(e, t) {
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
}
function up(e) {
  return e instanceof Map;
}
function cp(e) {
  return e instanceof Set;
}
function ji(e) {
  return e.copy_ || e.base_;
}
function Lh(e, t) {
  if (up(e)) return new Map(e);
  if (cp(e)) return new Set(e);
  if (Array.isArray(e)) return Array.prototype.slice.call(e);
  const n = Qy(e);
  if (t === !0 || (t === "class_only" && !n)) {
    const r = Object.getOwnPropertyDescriptors(e);
    delete r[Wn];
    let o = Reflect.ownKeys(r);
    for (let i = 0; i < o.length; i++) {
      const s = o[i],
        a = r[s];
      a.writable === !1 && ((a.writable = !0), (a.configurable = !0)),
        (a.get || a.set) && (r[s] = { configurable: !0, writable: !0, enumerable: a.enumerable, value: e[s] });
    }
    return Object.create(_a(e), r);
  } else {
    const r = _a(e);
    if (r !== null && n) return { ...e };
    const o = Object.create(r);
    return Object.assign(o, e);
  }
}
function k2(e, t = !1) {
  return (
    dp(e) ||
      Da(e) ||
      !as(e) ||
      (lp(e) > 1 && (e.set = e.add = e.clear = e.delete = vT),
      Object.freeze(e),
      t && Object.entries(e).forEach(([n, r]) => k2(r, !0))),
    e
  );
}
function vT() {
  Dr(2);
}
function dp(e) {
  return Object.isFrozen(e);
}
var xT = {};
function ls(e) {
  const t = xT[e];
  return t || Dr(0, e), t;
}
var vu;
function tv() {
  return vu;
}
function bT(e, t) {
  return { drafts_: [], parent_: e, immer_: t, canAutoFreeze_: !0, unfinalizedDrafts_: 0 };
}
function x3(e, t) {
  t && (ls("Patches"), (e.patches_ = []), (e.inversePatches_ = []), (e.patchListener_ = t));
}
function Nh(e) {
  $h(e), e.drafts_.forEach(CT), (e.drafts_ = null);
}
function $h(e) {
  e === vu && (vu = e.parent_);
}
function b3(e) {
  return (vu = bT(vu, e));
}
function CT(e) {
  const t = e[Wn];
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : (t.revoked_ = !0);
}
function C3(e, t) {
  t.unfinalizedDrafts_ = t.drafts_.length;
  const n = t.drafts_[0];
  return (
    e !== void 0 && e !== n
      ? (n[Wn].modified_ && (Nh(t), Dr(4)),
        as(e) && ((e = of(t, e)), t.parent_ || sf(t, e)),
        t.patches_ && ls("Patches").generateReplacementPatches_(n[Wn].base_, e, t.patches_, t.inversePatches_))
      : (e = of(t, n, [])),
    Nh(t),
    t.patches_ && t.patchListener_(t.patches_, t.inversePatches_),
    e !== Jy ? e : void 0
  );
}
function of(e, t, n) {
  if (dp(t)) return t;
  const r = t[Wn];
  if (!r) return rf(t, (o, i) => w3(e, r, t, o, i, n)), t;
  if (r.scope_ !== e) return t;
  if (!r.modified_) return sf(e, r.base_, !0), r.base_;
  if (!r.finalized_) {
    (r.finalized_ = !0), r.scope_.unfinalizedDrafts_--;
    const o = r.copy_;
    let i = o,
      s = !1;
    r.type_ === 3 && ((i = new Set(o)), o.clear(), (s = !0)),
      rf(i, (a, l) => w3(e, r, o, a, l, n, s)),
      sf(e, o, !1),
      n && e.patches_ && ls("Patches").generatePatches_(r, n, e.patches_, e.inversePatches_);
  }
  return r.copy_;
}
function w3(e, t, n, r, o, i, s) {
  if (Da(o)) {
    const a = i && t && t.type_ !== 3 && !Fh(t.assigned_, r) ? i.concat(r) : void 0,
      l = of(e, o, a);
    if ((ev(n, r, l), Da(l))) e.canAutoFreeze_ = !1;
    else return;
  } else s && n.add(o);
  if (as(o) && !dp(o)) {
    if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1) return;
    of(e, o),
      (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && sf(e, o);
  }
}
function sf(e, t, n = !1) {
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && k2(t, n);
}
function wT(e, t) {
  const n = Array.isArray(e),
    r = {
      type_: n ? 1 : 0,
      scope_: t ? t.scope_ : tv(),
      modified_: !1,
      finalized_: !1,
      assigned_: {},
      parent_: t,
      base_: e,
      draft_: null,
      copy_: null,
      revoke_: null,
      isManual_: !1,
    };
  let o = r,
    i = T2;
  n && ((o = [r]), (i = xu));
  const { revoke: s, proxy: a } = Proxy.revocable(o, i);
  return (r.draft_ = a), (r.revoke_ = s), a;
}
var T2 = {
    get(e, t) {
      if (t === Wn) return e;
      const n = ji(e);
      if (!Fh(n, t)) return ST(e, n, t);
      const r = n[t];
      return e.finalized_ || !as(r) ? r : r === p1(e.base_, t) ? (h1(e), (e.copy_[t] = jh(r, e))) : r;
    },
    has(e, t) {
      return t in ji(e);
    },
    ownKeys(e) {
      return Reflect.ownKeys(ji(e));
    },
    set(e, t, n) {
      const r = nv(ji(e), t);
      if (r != null && r.set) return r.set.call(e.draft_, n), !0;
      if (!e.modified_) {
        const o = p1(ji(e), t),
          i = o == null ? void 0 : o[Wn];
        if (i && i.base_ === n) return (e.copy_[t] = n), (e.assigned_[t] = !1), !0;
        if (yT(n, o) && (n !== void 0 || Fh(e.base_, t))) return !0;
        h1(e), Bh(e);
      }
      return (
        (e.copy_[t] === n && (n !== void 0 || t in e.copy_)) ||
          (Number.isNaN(n) && Number.isNaN(e.copy_[t])) ||
          ((e.copy_[t] = n), (e.assigned_[t] = !0)),
        !0
      );
    },
    deleteProperty(e, t) {
      return (
        p1(e.base_, t) !== void 0 || t in e.base_ ? ((e.assigned_[t] = !1), h1(e), Bh(e)) : delete e.assigned_[t],
        e.copy_ && delete e.copy_[t],
        !0
      );
    },
    getOwnPropertyDescriptor(e, t) {
      const n = ji(e),
        r = Reflect.getOwnPropertyDescriptor(n, t);
      return (
        r && { writable: !0, configurable: e.type_ !== 1 || t !== "length", enumerable: r.enumerable, value: n[t] }
      );
    },
    defineProperty() {
      Dr(11);
    },
    getPrototypeOf(e) {
      return _a(e.base_);
    },
    setPrototypeOf() {
      Dr(12);
    },
  },
  xu = {};
rf(T2, (e, t) => {
  xu[e] = function () {
    return (arguments[0] = arguments[0][0]), t.apply(this, arguments);
  };
});
xu.deleteProperty = function (e, t) {
  return xu.set.call(this, e, t, void 0);
};
xu.set = function (e, t, n) {
  return T2.set.call(this, e[0], t, n, e[0]);
};
function p1(e, t) {
  const n = e[Wn];
  return (n ? ji(n) : e)[t];
}
function ST(e, t, n) {
  var o;
  const r = nv(t, n);
  return r ? ("value" in r ? r.value : (o = r.get) == null ? void 0 : o.call(e.draft_)) : void 0;
}
function nv(e, t) {
  if (!(t in e)) return;
  let n = _a(e);
  for (; n; ) {
    const r = Object.getOwnPropertyDescriptor(n, t);
    if (r) return r;
    n = _a(n);
  }
}
function Bh(e) {
  e.modified_ || ((e.modified_ = !0), e.parent_ && Bh(e.parent_));
}
function h1(e) {
  e.copy_ || (e.copy_ = Lh(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
var kT = class {
  constructor(e) {
    (this.autoFreeze_ = !0),
      (this.useStrictShallowCopy_ = !1),
      (this.produce = (t, n, r) => {
        if (typeof t == "function" && typeof n != "function") {
          const i = n;
          n = t;
          const s = this;
          return function (l = i, ...u) {
            return s.produce(l, (c) => n.call(this, c, ...u));
          };
        }
        typeof n != "function" && Dr(6), r !== void 0 && typeof r != "function" && Dr(7);
        let o;
        if (as(t)) {
          const i = b3(this),
            s = jh(t, void 0);
          let a = !0;
          try {
            (o = n(s)), (a = !1);
          } finally {
            a ? Nh(i) : $h(i);
          }
          return x3(i, r), C3(o, i);
        } else if (!t || typeof t != "object") {
          if (((o = n(t)), o === void 0 && (o = t), o === Jy && (o = void 0), this.autoFreeze_ && k2(o, !0), r)) {
            const i = [],
              s = [];
            ls("Patches").generateReplacementPatches_(t, o, i, s), r(i, s);
          }
          return o;
        } else Dr(1, t);
      }),
      (this.produceWithPatches = (t, n) => {
        if (typeof t == "function") return (s, ...a) => this.produceWithPatches(s, (l) => t(l, ...a));
        let r, o;
        return [
          this.produce(t, n, (s, a) => {
            (r = s), (o = a);
          }),
          r,
          o,
        ];
      }),
      typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze),
      typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" &&
        this.setUseStrictShallowCopy(e.useStrictShallowCopy);
  }
  createDraft(e) {
    as(e) || Dr(8), Da(e) && (e = TT(e));
    const t = b3(this),
      n = jh(e, void 0);
    return (n[Wn].isManual_ = !0), $h(t), n;
  }
  finishDraft(e, t) {
    const n = e && e[Wn];
    (!n || !n.isManual_) && Dr(9);
    const { scope_: r } = n;
    return x3(r, t), C3(void 0, r);
  }
  setAutoFreeze(e) {
    this.autoFreeze_ = e;
  }
  setUseStrictShallowCopy(e) {
    this.useStrictShallowCopy_ = e;
  }
  applyPatches(e, t) {
    let n;
    for (n = t.length - 1; n >= 0; n--) {
      const o = t[n];
      if (o.path.length === 0 && o.op === "replace") {
        e = o.value;
        break;
      }
    }
    n > -1 && (t = t.slice(n + 1));
    const r = ls("Patches").applyPatches_;
    return Da(e) ? r(e, t) : this.produce(e, (o) => r(o, t));
  }
};
function jh(e, t) {
  const n = up(e) ? ls("MapSet").proxyMap_(e, t) : cp(e) ? ls("MapSet").proxySet_(e, t) : wT(e, t);
  return (t ? t.scope_ : tv()).drafts_.push(n), n;
}
function TT(e) {
  return Da(e) || Dr(10, e), rv(e);
}
function rv(e) {
  if (!as(e) || dp(e)) return e;
  const t = e[Wn];
  let n;
  if (t) {
    if (!t.modified_) return t.base_;
    (t.finalized_ = !0), (n = Lh(e, t.scope_.immer_.useStrictShallowCopy_));
  } else n = Lh(e, !0);
  return (
    rf(n, (r, o) => {
      ev(n, r, rv(o));
    }),
    t && (t.finalized_ = !1),
    n
  );
}
var Gn = new kT(),
  MT = Gn.produce;
Gn.produceWithPatches.bind(Gn);
Gn.setAutoFreeze.bind(Gn);
Gn.setUseStrictShallowCopy.bind(Gn);
Gn.applyPatches.bind(Gn);
Gn.createDraft.bind(Gn);
Gn.finishDraft.bind(Gn);
const ET = (e) => (t, n, r) => (
    (r.setState = (o, i, ...s) => {
      const a = typeof o == "function" ? MT(o) : o;
      return t(a, i, ...s);
    }),
    e(r.setState, n, r)
  ),
  PT = ET;
var m1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
const Vh = new Map(),
  Fc = (e) => {
    const t = Vh.get(e);
    return t ? Object.fromEntries(Object.entries(t.stores).map(([n, r]) => [n, r.getState()])) : {};
  },
  AT = (e, t, n) => {
    if (e === void 0) return { type: "untracked", connection: t.connect(n) };
    const r = Vh.get(n.name);
    if (r) return { type: "tracked", store: e, ...r };
    const o = { connection: t.connect(n), stores: {} };
    return Vh.set(n.name, o), { type: "tracked", store: e, ...o };
  },
  _T =
    (e, t = {}) =>
    (n, r, o) => {
      const { enabled: i, anonymousActionType: s, store: a, ...l } = t;
      let u;
      try {
        u = (i ?? (m1 ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
      } catch {}
      if (!u)
        return (
          (m1 ? "production" : void 0) !== "production" &&
            i &&
            console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),
          e(n, r, o)
        );
      const { connection: c, ...d } = AT(a, u, l);
      let p = !0;
      o.setState = (v, C, y) => {
        const g = n(v, C);
        if (!p) return g;
        const x = y === void 0 ? { type: s || "anonymous" } : typeof y == "string" ? { type: y } : y;
        return a === void 0
          ? (c == null || c.send(x, r()), g)
          : (c == null || c.send({ ...x, type: `${a}/${x.type}` }, { ...Fc(l.name), [a]: o.getState() }), g);
      };
      const h = (...v) => {
          const C = p;
          (p = !1), n(...v), (p = C);
        },
        m = e(o.setState, r, o);
      if (
        (d.type === "untracked"
          ? c == null || c.init(m)
          : ((d.stores[d.store] = o),
            c == null ||
              c.init(
                Object.fromEntries(Object.entries(d.stores).map(([v, C]) => [v, v === d.store ? m : C.getState()]))
              )),
        o.dispatchFromDevtools && typeof o.dispatch == "function")
      ) {
        let v = !1;
        const C = o.dispatch;
        o.dispatch = (...y) => {
          (m1 ? "production" : void 0) !== "production" &&
            y[0].type === "__setState" &&
            !v &&
            (console.warn(
              '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
            ),
            (v = !0)),
            C(...y);
        };
      }
      return (
        c.subscribe((v) => {
          var C;
          switch (v.type) {
            case "ACTION":
              if (typeof v.payload != "string") {
                console.error("[zustand devtools middleware] Unsupported action format");
                return;
              }
              return g1(v.payload, (y) => {
                if (y.type === "__setState") {
                  if (a === void 0) {
                    h(y.state);
                    return;
                  }
                  Object.keys(y.state).length !== 1 &&
                    console.error(`
                    [zustand devtools middleware] Unsupported __setState action format. 
                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
                    `);
                  const g = y.state[a];
                  if (g == null) return;
                  JSON.stringify(o.getState()) !== JSON.stringify(g) && h(g);
                  return;
                }
                o.dispatchFromDevtools && typeof o.dispatch == "function" && o.dispatch(y);
              });
            case "DISPATCH":
              switch (v.payload.type) {
                case "RESET":
                  return (
                    h(m),
                    a === void 0 ? (c == null ? void 0 : c.init(o.getState())) : c == null ? void 0 : c.init(Fc(l.name))
                  );
                case "COMMIT":
                  if (a === void 0) {
                    c == null || c.init(o.getState());
                    return;
                  }
                  return c == null ? void 0 : c.init(Fc(l.name));
                case "ROLLBACK":
                  return g1(v.state, (y) => {
                    if (a === void 0) {
                      h(y), c == null || c.init(o.getState());
                      return;
                    }
                    h(y[a]), c == null || c.init(Fc(l.name));
                  });
                case "JUMP_TO_STATE":
                case "JUMP_TO_ACTION":
                  return g1(v.state, (y) => {
                    if (a === void 0) {
                      h(y);
                      return;
                    }
                    JSON.stringify(o.getState()) !== JSON.stringify(y[a]) && h(y[a]);
                  });
                case "IMPORT_STATE": {
                  const { nextLiftedState: y } = v.payload,
                    g = (C = y.computedStates.slice(-1)[0]) == null ? void 0 : C.state;
                  if (!g) return;
                  h(a === void 0 ? g : g[a]), c == null || c.send(null, y);
                  return;
                }
                case "PAUSE_RECORDING":
                  return (p = !p);
              }
              return;
          }
        }),
        m
      );
    },
  DT = _T,
  g1 = (e, t) => {
    let n;
    try {
      n = JSON.parse(e);
    } catch (r) {
      console.error("[zustand devtools middleware] Could not parse the received json", r);
    }
    n !== void 0 && t(n);
  },
  ov = b.createContext(null);
function Ne(e) {
  const t = b.useContext(ov);
  if (!t) throw new Error("QuizViewStore context is null");
  return mT(t, e);
}
const RT = () =>
    Wk()(
      PT(
        DT(
          (e, t) => ({
            answers: [],
            ownVariants: [],
            points: {},
            pointsSum: 0,
            currentQuizStep: "startpage",
            updateAnswer(n, r, o) {
              e(
                (i) => {
                  const s = i.answers.findIndex((a) => n === a.questionId);
                  s < 0 ? i.answers.push({ questionId: n, answer: r }) : (i.answers[s] = { questionId: n, answer: r }),
                    (i.points = { ...i.points, [n]: o }),
                    (i.pointsSum = Object.values(i.points).reduce((a, l) => a + l));
                },
                !1,
                { type: "updateAnswer", questionId: n, answer: r, points: o }
              );
            },
            deleteAnswer(n) {
              e(
                (r) => {
                  r.answers = r.answers.filter((o) => n !== o.questionId);
                },
                !1,
                { type: "deleteAnswer", questionId: n }
              );
            },
            updateOwnVariant(n, r) {
              e(
                (o) => {
                  const i = o.ownVariants.findIndex((s) => s.id === n);
                  i < 0
                    ? o.ownVariants.push({
                        id: n,
                        variant: { id: n, answer: r, extendedText: "", hints: "", originalImageUrl: "" },
                      })
                    : (o.ownVariants[i].variant.answer = r);
                },
                !1,
                { type: "updateOwnVariant", id: n, answer: r }
              );
            },
            deleteOwnVariant(n) {
              e(
                (r) => {
                  r.ownVariants = r.ownVariants.filter((o) => o.id !== n);
                },
                !1,
                { type: "deleteOwnVariant", id: n }
              );
            },
            setCurrentQuizStep(n) {
              e({ currentQuizStep: n }, !1, { type: "setCurrentQuizStep", step: n });
            },
          }),
          { name: "QuizViewStore-" + Hk(4), enabled: !1, trace: !1 }
        )
      )
    ),
  bu = { black: "#000", white: "#fff" },
  _s = {
    50: "#ffebee",
    100: "#ffcdd2",
    200: "#ef9a9a",
    300: "#e57373",
    400: "#ef5350",
    500: "#f44336",
    600: "#e53935",
    700: "#d32f2f",
    800: "#c62828",
    900: "#b71c1c",
    A100: "#ff8a80",
    A200: "#ff5252",
    A400: "#ff1744",
    A700: "#d50000",
  },
  Ds = {
    50: "#f3e5f5",
    100: "#e1bee7",
    200: "#ce93d8",
    300: "#ba68c8",
    400: "#ab47bc",
    500: "#9c27b0",
    600: "#8e24aa",
    700: "#7b1fa2",
    800: "#6a1b9a",
    900: "#4a148c",
    A100: "#ea80fc",
    A200: "#e040fb",
    A400: "#d500f9",
    A700: "#aa00ff",
  },
  Rs = {
    50: "#e3f2fd",
    100: "#bbdefb",
    200: "#90caf9",
    300: "#64b5f6",
    400: "#42a5f5",
    500: "#2196f3",
    600: "#1e88e5",
    700: "#1976d2",
    800: "#1565c0",
    900: "#0d47a1",
    A100: "#82b1ff",
    A200: "#448aff",
    A400: "#2979ff",
    A700: "#2962ff",
  },
  Is = {
    50: "#e1f5fe",
    100: "#b3e5fc",
    200: "#81d4fa",
    300: "#4fc3f7",
    400: "#29b6f6",
    500: "#03a9f4",
    600: "#039be5",
    700: "#0288d1",
    800: "#0277bd",
    900: "#01579b",
    A100: "#80d8ff",
    A200: "#40c4ff",
    A400: "#00b0ff",
    A700: "#0091ea",
  },
  Os = {
    50: "#e8f5e9",
    100: "#c8e6c9",
    200: "#a5d6a7",
    300: "#81c784",
    400: "#66bb6a",
    500: "#4caf50",
    600: "#43a047",
    700: "#388e3c",
    800: "#2e7d32",
    900: "#1b5e20",
    A100: "#b9f6ca",
    A200: "#69f0ae",
    A400: "#00e676",
    A700: "#00c853",
  },
  ml = {
    50: "#fff3e0",
    100: "#ffe0b2",
    200: "#ffcc80",
    300: "#ffb74d",
    400: "#ffa726",
    500: "#ff9800",
    600: "#fb8c00",
    700: "#f57c00",
    800: "#ef6c00",
    900: "#e65100",
    A100: "#ffd180",
    A200: "#ffab40",
    A400: "#ff9100",
    A700: "#ff6d00",
  },
  IT = {
    50: "#fafafa",
    100: "#f5f5f5",
    200: "#eeeeee",
    300: "#e0e0e0",
    400: "#bdbdbd",
    500: "#9e9e9e",
    600: "#757575",
    700: "#616161",
    800: "#424242",
    900: "#212121",
    A100: "#f5f5f5",
    A200: "#eeeeee",
    A400: "#bdbdbd",
    A700: "#616161",
  };
function Fo(e) {
  let t = "https://mui.com/production-error/?code=" + e;
  for (let n = 1; n < arguments.length; n += 1) t += "&args[]=" + encodeURIComponent(arguments[n]);
  return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
}
const OT = Object.freeze(
    Object.defineProperty({ __proto__: null, default: Fo }, Symbol.toStringTag, { value: "Module" })
  ),
  us = "$$material";
function S() {
  return (
    (S = Object.assign
      ? Object.assign.bind()
      : function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }),
    S.apply(this, arguments)
  );
}
function ee(e, t) {
  if (e == null) return {};
  var n = {};
  for (var r in e)
    if (Object.prototype.hasOwnProperty.call(e, r)) {
      if (t.indexOf(r) >= 0) continue;
      n[r] = e[r];
    }
  return n;
}
function iv(e) {
  var t = Object.create(null);
  return function (n) {
    return t[n] === void 0 && (t[n] = e(n)), t[n];
  };
}
var FT =
    /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
  LT = iv(function (e) {
    return FT.test(e) || (e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91);
  });
function NT(e) {
  if (e.sheet) return e.sheet;
  for (var t = 0; t < document.styleSheets.length; t++)
    if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
}
function $T(e) {
  var t = document.createElement("style");
  return (
    t.setAttribute("data-emotion", e.key),
    e.nonce !== void 0 && t.setAttribute("nonce", e.nonce),
    t.appendChild(document.createTextNode("")),
    t.setAttribute("data-s", ""),
    t
  );
}
var BT = (function () {
    function e(n) {
      var r = this;
      (this._insertTag = function (o) {
        var i;
        r.tags.length === 0
          ? r.insertionPoint
            ? (i = r.insertionPoint.nextSibling)
            : r.prepend
              ? (i = r.container.firstChild)
              : (i = r.before)
          : (i = r.tags[r.tags.length - 1].nextSibling),
          r.container.insertBefore(o, i),
          r.tags.push(o);
      }),
        (this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy),
        (this.tags = []),
        (this.ctr = 0),
        (this.nonce = n.nonce),
        (this.key = n.key),
        (this.container = n.container),
        (this.prepend = n.prepend),
        (this.insertionPoint = n.insertionPoint),
        (this.before = null);
    }
    var t = e.prototype;
    return (
      (t.hydrate = function (r) {
        r.forEach(this._insertTag);
      }),
      (t.insert = function (r) {
        this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag($T(this));
        var o = this.tags[this.tags.length - 1];
        if (this.isSpeedy) {
          var i = NT(o);
          try {
            i.insertRule(r, i.cssRules.length);
          } catch {}
        } else o.appendChild(document.createTextNode(r));
        this.ctr++;
      }),
      (t.flush = function () {
        this.tags.forEach(function (r) {
          return r.parentNode && r.parentNode.removeChild(r);
        }),
          (this.tags = []),
          (this.ctr = 0);
      }),
      e
    );
  })(),
  fn = "-ms-",
  af = "-moz-",
  st = "-webkit-",
  sv = "comm",
  M2 = "rule",
  E2 = "decl",
  jT = "@import",
  av = "@keyframes",
  VT = "@layer",
  HT = Math.abs,
  fp = String.fromCharCode,
  zT = Object.assign;
function WT(e, t) {
  return an(e, 0) ^ 45 ? (((((((t << 2) ^ an(e, 0)) << 2) ^ an(e, 1)) << 2) ^ an(e, 2)) << 2) ^ an(e, 3) : 0;
}
function lv(e) {
  return e.trim();
}
function GT(e, t) {
  return (e = t.exec(e)) ? e[0] : e;
}
function at(e, t, n) {
  return e.replace(t, n);
}
function Hh(e, t) {
  return e.indexOf(t);
}
function an(e, t) {
  return e.charCodeAt(t) | 0;
}
function Cu(e, t, n) {
  return e.slice(t, n);
}
function Yr(e) {
  return e.length;
}
function P2(e) {
  return e.length;
}
function Lc(e, t) {
  return t.push(e), e;
}
function UT(e, t) {
  return e.map(t).join("");
}
var pp = 1,
  Ra = 1,
  uv = 0,
  Ln = 0,
  Ut = 0,
  Qa = "";
function hp(e, t, n, r, o, i, s) {
  return { value: e, root: t, parent: n, type: r, props: o, children: i, line: pp, column: Ra, length: s, return: "" };
}
function gl(e, t) {
  return zT(hp("", null, null, "", null, null, 0), e, { length: -e.length }, t);
}
function YT() {
  return Ut;
}
function KT() {
  return (Ut = Ln > 0 ? an(Qa, --Ln) : 0), Ra--, Ut === 10 && ((Ra = 1), pp--), Ut;
}
function Hn() {
  return (Ut = Ln < uv ? an(Qa, Ln++) : 0), Ra++, Ut === 10 && ((Ra = 1), pp++), Ut;
}
function no() {
  return an(Qa, Ln);
}
function _d() {
  return Ln;
}
function rc(e, t) {
  return Cu(Qa, e, t);
}
function wu(e) {
  switch (e) {
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    case 59:
    case 123:
    case 125:
      return 4;
    case 58:
      return 3;
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
function cv(e) {
  return (pp = Ra = 1), (uv = Yr((Qa = e))), (Ln = 0), [];
}
function dv(e) {
  return (Qa = ""), e;
}
function Dd(e) {
  return lv(rc(Ln - 1, zh(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function XT(e) {
  for (; (Ut = no()) && Ut < 33; ) Hn();
  return wu(e) > 2 || wu(Ut) > 3 ? "" : " ";
}
function qT(e, t) {
  for (; --t && Hn() && !(Ut < 48 || Ut > 102 || (Ut > 57 && Ut < 65) || (Ut > 70 && Ut < 97)); );
  return rc(e, _d() + (t < 6 && no() == 32 && Hn() == 32));
}
function zh(e) {
  for (; Hn(); )
    switch (Ut) {
      case e:
        return Ln;
      case 34:
      case 39:
        e !== 34 && e !== 39 && zh(Ut);
        break;
      case 40:
        e === 41 && zh(e);
        break;
      case 92:
        Hn();
        break;
    }
  return Ln;
}
function ZT(e, t) {
  for (; Hn() && e + Ut !== 57; ) if (e + Ut === 84 && no() === 47) break;
  return "/*" + rc(t, Ln - 1) + "*" + fp(e === 47 ? e : Hn());
}
function JT(e) {
  for (; !wu(no()); ) Hn();
  return rc(e, Ln);
}
function QT(e) {
  return dv(Rd("", null, null, null, [""], (e = cv(e)), 0, [0], e));
}
function Rd(e, t, n, r, o, i, s, a, l) {
  for (
    var u = 0, c = 0, d = s, p = 0, h = 0, m = 0, v = 1, C = 1, y = 1, g = 0, x = "", w = o, k = i, M = r, T = x;
    C;

  )
    switch (((m = g), (g = Hn()))) {
      case 40:
        if (m != 108 && an(T, d - 1) == 58) {
          Hh((T += at(Dd(g), "&", "&\f")), "&\f") != -1 && (y = -1);
          break;
        }
      case 34:
      case 39:
      case 91:
        T += Dd(g);
        break;
      case 9:
      case 10:
      case 13:
      case 32:
        T += XT(m);
        break;
      case 92:
        T += qT(_d() - 1, 7);
        continue;
      case 47:
        switch (no()) {
          case 42:
          case 47:
            Lc(eM(ZT(Hn(), _d()), t, n), l);
            break;
          default:
            T += "/";
        }
        break;
      case 123 * v:
        a[u++] = Yr(T) * y;
      case 125 * v:
      case 59:
      case 0:
        switch (g) {
          case 0:
          case 125:
            C = 0;
          case 59 + c:
            y == -1 && (T = at(T, /\f/g, "")),
              h > 0 && Yr(T) - d && Lc(h > 32 ? k3(T + ";", r, n, d - 1) : k3(at(T, " ", "") + ";", r, n, d - 2), l);
            break;
          case 59:
            T += ";";
          default:
            if ((Lc((M = S3(T, t, n, u, c, o, a, x, (w = []), (k = []), d)), i), g === 123))
              if (c === 0) Rd(T, t, M, M, w, i, d, a, k);
              else
                switch (p === 99 && an(T, 3) === 110 ? 100 : p) {
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    Rd(e, M, M, r && Lc(S3(e, M, M, 0, 0, o, a, x, o, (w = []), d), k), o, k, d, a, r ? w : k);
                    break;
                  default:
                    Rd(T, M, M, M, [""], k, 0, a, k);
                }
        }
        (u = c = h = 0), (v = y = 1), (x = T = ""), (d = s);
        break;
      case 58:
        (d = 1 + Yr(T)), (h = m);
      default:
        if (v < 1) {
          if (g == 123) --v;
          else if (g == 125 && v++ == 0 && KT() == 125) continue;
        }
        switch (((T += fp(g)), g * v)) {
          case 38:
            y = c > 0 ? 1 : ((T += "\f"), -1);
            break;
          case 44:
            (a[u++] = (Yr(T) - 1) * y), (y = 1);
            break;
          case 64:
            no() === 45 && (T += Dd(Hn())), (p = no()), (c = d = Yr((x = T += JT(_d())))), g++;
            break;
          case 45:
            m === 45 && Yr(T) == 2 && (v = 0);
        }
    }
  return i;
}
function S3(e, t, n, r, o, i, s, a, l, u, c) {
  for (var d = o - 1, p = o === 0 ? i : [""], h = P2(p), m = 0, v = 0, C = 0; m < r; ++m)
    for (var y = 0, g = Cu(e, d + 1, (d = HT((v = s[m])))), x = e; y < h; ++y)
      (x = lv(v > 0 ? p[y] + " " + g : at(g, /&\f/g, p[y]))) && (l[C++] = x);
  return hp(e, t, n, o === 0 ? M2 : a, l, u, c);
}
function eM(e, t, n) {
  return hp(e, t, n, sv, fp(YT()), Cu(e, 2, -2), 0);
}
function k3(e, t, n, r) {
  return hp(e, t, n, E2, Cu(e, 0, r), Cu(e, r + 1, -1), r);
}
function da(e, t) {
  for (var n = "", r = P2(e), o = 0; o < r; o++) n += t(e[o], o, e, t) || "";
  return n;
}
function tM(e, t, n, r) {
  switch (e.type) {
    case VT:
      if (e.children.length) break;
    case jT:
    case E2:
      return (e.return = e.return || e.value);
    case sv:
      return "";
    case av:
      return (e.return = e.value + "{" + da(e.children, r) + "}");
    case M2:
      e.value = e.props.join(",");
  }
  return Yr((n = da(e.children, r))) ? (e.return = e.value + "{" + n + "}") : "";
}
function nM(e) {
  var t = P2(e);
  return function (n, r, o, i) {
    for (var s = "", a = 0; a < t; a++) s += e[a](n, r, o, i) || "";
    return s;
  };
}
function rM(e) {
  return function (t) {
    t.root || ((t = t.return) && e(t));
  };
}
var oM = function (t, n, r) {
    for (var o = 0, i = 0; (o = i), (i = no()), o === 38 && i === 12 && (n[r] = 1), !wu(i); ) Hn();
    return rc(t, Ln);
  },
  iM = function (t, n) {
    var r = -1,
      o = 44;
    do
      switch (wu(o)) {
        case 0:
          o === 38 && no() === 12 && (n[r] = 1), (t[r] += oM(Ln - 1, n, r));
          break;
        case 2:
          t[r] += Dd(o);
          break;
        case 4:
          if (o === 44) {
            (t[++r] = no() === 58 ? "&\f" : ""), (n[r] = t[r].length);
            break;
          }
        default:
          t[r] += fp(o);
      }
    while ((o = Hn()));
    return t;
  },
  sM = function (t, n) {
    return dv(iM(cv(t), n));
  },
  T3 = new WeakMap(),
  aM = function (t) {
    if (!(t.type !== "rule" || !t.parent || t.length < 1)) {
      for (var n = t.value, r = t.parent, o = t.column === r.column && t.line === r.line; r.type !== "rule"; )
        if (((r = r.parent), !r)) return;
      if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !T3.get(r)) && !o) {
        T3.set(t, !0);
        for (var i = [], s = sM(n, i), a = r.props, l = 0, u = 0; l < s.length; l++)
          for (var c = 0; c < a.length; c++, u++) t.props[u] = i[l] ? s[l].replace(/&\f/g, a[c]) : a[c] + " " + s[l];
      }
    }
  },
  lM = function (t) {
    if (t.type === "decl") {
      var n = t.value;
      n.charCodeAt(0) === 108 && n.charCodeAt(2) === 98 && ((t.return = ""), (t.value = ""));
    }
  };
function fv(e, t) {
  switch (WT(e, t)) {
    case 5103:
      return st + "print-" + e + e;
    case 5737:
    case 4201:
    case 3177:
    case 3433:
    case 1641:
    case 4457:
    case 2921:
    case 5572:
    case 6356:
    case 5844:
    case 3191:
    case 6645:
    case 3005:
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
    case 4855:
    case 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
      return st + e + e;
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return st + e + af + e + fn + e + e;
    case 6828:
    case 4268:
      return st + e + fn + e + e;
    case 6165:
      return st + e + fn + "flex-" + e + e;
    case 5187:
      return st + e + at(e, /(\w+).+(:[^]+)/, st + "box-$1$2" + fn + "flex-$1$2") + e;
    case 5443:
      return st + e + fn + "flex-item-" + at(e, /flex-|-self/, "") + e;
    case 4675:
      return st + e + fn + "flex-line-pack" + at(e, /align-content|flex-|-self/, "") + e;
    case 5548:
      return st + e + fn + at(e, "shrink", "negative") + e;
    case 5292:
      return st + e + fn + at(e, "basis", "preferred-size") + e;
    case 6060:
      return st + "box-" + at(e, "-grow", "") + st + e + fn + at(e, "grow", "positive") + e;
    case 4554:
      return st + at(e, /([^-])(transform)/g, "$1" + st + "$2") + e;
    case 6187:
      return at(at(at(e, /(zoom-|grab)/, st + "$1"), /(image-set)/, st + "$1"), e, "") + e;
    case 5495:
    case 3959:
      return at(e, /(image-set\([^]*)/, st + "$1$`$1");
    case 4968:
      return (
        at(at(e, /(.+:)(flex-)?(.*)/, st + "box-pack:$3" + fn + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + st + e + e
      );
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return at(e, /(.+)-inline(.+)/, st + "$1$2") + e;
    case 8116:
    case 7059:
    case 5753:
    case 5535:
    case 5445:
    case 5701:
    case 4933:
    case 4677:
    case 5533:
    case 5789:
    case 5021:
    case 4765:
      if (Yr(e) - 1 - t > 6)
        switch (an(e, t + 1)) {
          case 109:
            if (an(e, t + 4) !== 45) break;
          case 102:
            return at(e, /(.+:)(.+)-([^]+)/, "$1" + st + "$2-$3$1" + af + (an(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
          case 115:
            return ~Hh(e, "stretch") ? fv(at(e, "stretch", "fill-available"), t) + e : e;
        }
      break;
    case 4949:
      if (an(e, t + 1) !== 115) break;
    case 6444:
      switch (an(e, Yr(e) - 3 - (~Hh(e, "!important") && 10))) {
        case 107:
          return at(e, ":", ":" + st) + e;
        case 101:
          return (
            at(
              e,
              /(.+:)([^;!]+)(;|!.+)?/,
              "$1" + st + (an(e, 14) === 45 ? "inline-" : "") + "box$3$1" + st + "$2$3$1" + fn + "$2box$3"
            ) + e
          );
      }
      break;
    case 5936:
      switch (an(e, t + 11)) {
        case 114:
          return st + e + fn + at(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
        case 108:
          return st + e + fn + at(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
        case 45:
          return st + e + fn + at(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
      }
      return st + e + fn + e + e;
  }
  return e;
}
var uM = function (t, n, r, o) {
    if (t.length > -1 && !t.return)
      switch (t.type) {
        case E2:
          t.return = fv(t.value, t.length);
          break;
        case av:
          return da([gl(t, { value: at(t.value, "@", "@" + st) })], o);
        case M2:
          if (t.length)
            return UT(t.props, function (i) {
              switch (GT(i, /(::plac\w+|:read-\w+)/)) {
                case ":read-only":
                case ":read-write":
                  return da([gl(t, { props: [at(i, /:(read-\w+)/, ":" + af + "$1")] })], o);
                case "::placeholder":
                  return da(
                    [
                      gl(t, { props: [at(i, /:(plac\w+)/, ":" + st + "input-$1")] }),
                      gl(t, { props: [at(i, /:(plac\w+)/, ":" + af + "$1")] }),
                      gl(t, { props: [at(i, /:(plac\w+)/, fn + "input-$1")] }),
                    ],
                    o
                  );
              }
              return "";
            });
      }
  },
  cM = [uM],
  pv = function (t) {
    var n = t.key;
    if (n === "css") {
      var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
      Array.prototype.forEach.call(r, function (v) {
        var C = v.getAttribute("data-emotion");
        C.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
      });
    }
    var o = t.stylisPlugins || cM,
      i = {},
      s,
      a = [];
    (s = t.container || document.head),
      Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + n + ' "]'), function (v) {
        for (var C = v.getAttribute("data-emotion").split(" "), y = 1; y < C.length; y++) i[C[y]] = !0;
        a.push(v);
      });
    var l,
      u = [aM, lM];
    {
      var c,
        d = [
          tM,
          rM(function (v) {
            c.insert(v);
          }),
        ],
        p = nM(u.concat(o, d)),
        h = function (C) {
          return da(QT(C), p);
        };
      l = function (C, y, g, x) {
        (c = g), h(C ? C + "{" + y.styles + "}" : y.styles), x && (m.inserted[y.name] = !0);
      };
    }
    var m = {
      key: n,
      sheet: new BT({
        key: n,
        container: s,
        nonce: t.nonce,
        speedy: t.speedy,
        prepend: t.prepend,
        insertionPoint: t.insertionPoint,
      }),
      nonce: t.nonce,
      inserted: i,
      registered: {},
      insert: l,
    };
    return m.sheet.hydrate(a), m;
  },
  hv = { exports: {} },
  ht = {};
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var tn = typeof Symbol == "function" && Symbol.for,
  A2 = tn ? Symbol.for("react.element") : 60103,
  _2 = tn ? Symbol.for("react.portal") : 60106,
  mp = tn ? Symbol.for("react.fragment") : 60107,
  gp = tn ? Symbol.for("react.strict_mode") : 60108,
  yp = tn ? Symbol.for("react.profiler") : 60114,
  vp = tn ? Symbol.for("react.provider") : 60109,
  xp = tn ? Symbol.for("react.context") : 60110,
  D2 = tn ? Symbol.for("react.async_mode") : 60111,
  bp = tn ? Symbol.for("react.concurrent_mode") : 60111,
  Cp = tn ? Symbol.for("react.forward_ref") : 60112,
  wp = tn ? Symbol.for("react.suspense") : 60113,
  dM = tn ? Symbol.for("react.suspense_list") : 60120,
  Sp = tn ? Symbol.for("react.memo") : 60115,
  kp = tn ? Symbol.for("react.lazy") : 60116,
  fM = tn ? Symbol.for("react.block") : 60121,
  pM = tn ? Symbol.for("react.fundamental") : 60117,
  hM = tn ? Symbol.for("react.responder") : 60118,
  mM = tn ? Symbol.for("react.scope") : 60119;
function Kn(e) {
  if (typeof e == "object" && e !== null) {
    var t = e.$$typeof;
    switch (t) {
      case A2:
        switch (((e = e.type), e)) {
          case D2:
          case bp:
          case mp:
          case yp:
          case gp:
          case wp:
            return e;
          default:
            switch (((e = e && e.$$typeof), e)) {
              case xp:
              case Cp:
              case kp:
              case Sp:
              case vp:
                return e;
              default:
                return t;
            }
        }
      case _2:
        return t;
    }
  }
}
function mv(e) {
  return Kn(e) === bp;
}
ht.AsyncMode = D2;
ht.ConcurrentMode = bp;
ht.ContextConsumer = xp;
ht.ContextProvider = vp;
ht.Element = A2;
ht.ForwardRef = Cp;
ht.Fragment = mp;
ht.Lazy = kp;
ht.Memo = Sp;
ht.Portal = _2;
ht.Profiler = yp;
ht.StrictMode = gp;
ht.Suspense = wp;
ht.isAsyncMode = function (e) {
  return mv(e) || Kn(e) === D2;
};
ht.isConcurrentMode = mv;
ht.isContextConsumer = function (e) {
  return Kn(e) === xp;
};
ht.isContextProvider = function (e) {
  return Kn(e) === vp;
};
ht.isElement = function (e) {
  return typeof e == "object" && e !== null && e.$$typeof === A2;
};
ht.isForwardRef = function (e) {
  return Kn(e) === Cp;
};
ht.isFragment = function (e) {
  return Kn(e) === mp;
};
ht.isLazy = function (e) {
  return Kn(e) === kp;
};
ht.isMemo = function (e) {
  return Kn(e) === Sp;
};
ht.isPortal = function (e) {
  return Kn(e) === _2;
};
ht.isProfiler = function (e) {
  return Kn(e) === yp;
};
ht.isStrictMode = function (e) {
  return Kn(e) === gp;
};
ht.isSuspense = function (e) {
  return Kn(e) === wp;
};
ht.isValidElementType = function (e) {
  return (
    typeof e == "string" ||
    typeof e == "function" ||
    e === mp ||
    e === bp ||
    e === yp ||
    e === gp ||
    e === wp ||
    e === dM ||
    (typeof e == "object" &&
      e !== null &&
      (e.$$typeof === kp ||
        e.$$typeof === Sp ||
        e.$$typeof === vp ||
        e.$$typeof === xp ||
        e.$$typeof === Cp ||
        e.$$typeof === pM ||
        e.$$typeof === hM ||
        e.$$typeof === mM ||
        e.$$typeof === fM))
  );
};
ht.typeOf = Kn;
hv.exports = ht;
var gM = hv.exports,
  gv = gM,
  yM = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 },
  vM = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 },
  yv = {};
yv[gv.ForwardRef] = yM;
yv[gv.Memo] = vM;
var xM = !0;
function bM(e, t, n) {
  var r = "";
  return (
    n.split(" ").forEach(function (o) {
      e[o] !== void 0 ? t.push(e[o] + ";") : (r += o + " ");
    }),
    r
  );
}
var vv = function (t, n, r) {
    var o = t.key + "-" + n.name;
    (r === !1 || xM === !1) && t.registered[o] === void 0 && (t.registered[o] = n.styles);
  },
  xv = function (t, n, r) {
    vv(t, n, r);
    var o = t.key + "-" + n.name;
    if (t.inserted[n.name] === void 0) {
      var i = n;
      do t.insert(n === i ? "." + o : "", i, t.sheet, !0), (i = i.next);
      while (i !== void 0);
    }
  };
function CM(e) {
  for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
    (n =
      (e.charCodeAt(r) & 255) |
      ((e.charCodeAt(++r) & 255) << 8) |
      ((e.charCodeAt(++r) & 255) << 16) |
      ((e.charCodeAt(++r) & 255) << 24)),
      (n = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)),
      (n ^= n >>> 24),
      (t =
        ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^
        ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)));
  switch (o) {
    case 3:
      t ^= (e.charCodeAt(r + 2) & 255) << 16;
    case 2:
      t ^= (e.charCodeAt(r + 1) & 255) << 8;
    case 1:
      (t ^= e.charCodeAt(r) & 255), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16));
  }
  return (
    (t ^= t >>> 13),
    (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)),
    ((t ^ (t >>> 15)) >>> 0).toString(36)
  );
}
var wM = {
    animationIterationCount: 1,
    aspectRatio: 1,
    borderImageOutset: 1,
    borderImageSlice: 1,
    borderImageWidth: 1,
    boxFlex: 1,
    boxFlexGroup: 1,
    boxOrdinalGroup: 1,
    columnCount: 1,
    columns: 1,
    flex: 1,
    flexGrow: 1,
    flexPositive: 1,
    flexShrink: 1,
    flexNegative: 1,
    flexOrder: 1,
    gridRow: 1,
    gridRowEnd: 1,
    gridRowSpan: 1,
    gridRowStart: 1,
    gridColumn: 1,
    gridColumnEnd: 1,
    gridColumnSpan: 1,
    gridColumnStart: 1,
    msGridRow: 1,
    msGridRowSpan: 1,
    msGridColumn: 1,
    msGridColumnSpan: 1,
    fontWeight: 1,
    lineHeight: 1,
    opacity: 1,
    order: 1,
    orphans: 1,
    tabSize: 1,
    widows: 1,
    zIndex: 1,
    zoom: 1,
    WebkitLineClamp: 1,
    fillOpacity: 1,
    floodOpacity: 1,
    stopOpacity: 1,
    strokeDasharray: 1,
    strokeDashoffset: 1,
    strokeMiterlimit: 1,
    strokeOpacity: 1,
    strokeWidth: 1,
  },
  SM = /[A-Z]|^ms/g,
  kM = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
  bv = function (t) {
    return t.charCodeAt(1) === 45;
  },
  M3 = function (t) {
    return t != null && typeof t != "boolean";
  },
  y1 = iv(function (e) {
    return bv(e) ? e : e.replace(SM, "-$&").toLowerCase();
  }),
  E3 = function (t, n) {
    switch (t) {
      case "animation":
      case "animationName":
        if (typeof n == "string")
          return n.replace(kM, function (r, o, i) {
            return (Kr = { name: o, styles: i, next: Kr }), o;
          });
    }
    return wM[t] !== 1 && !bv(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
  };
function Su(e, t, n) {
  if (n == null) return "";
  if (n.__emotion_styles !== void 0) return n;
  switch (typeof n) {
    case "boolean":
      return "";
    case "object": {
      if (n.anim === 1) return (Kr = { name: n.name, styles: n.styles, next: Kr }), n.name;
      if (n.styles !== void 0) {
        var r = n.next;
        if (r !== void 0) for (; r !== void 0; ) (Kr = { name: r.name, styles: r.styles, next: Kr }), (r = r.next);
        var o = n.styles + ";";
        return o;
      }
      return TM(e, t, n);
    }
    case "function": {
      if (e !== void 0) {
        var i = Kr,
          s = n(e);
        return (Kr = i), Su(e, t, s);
      }
      break;
    }
  }
  if (t == null) return n;
  var a = t[n];
  return a !== void 0 ? a : n;
}
function TM(e, t, n) {
  var r = "";
  if (Array.isArray(n)) for (var o = 0; o < n.length; o++) r += Su(e, t, n[o]) + ";";
  else
    for (var i in n) {
      var s = n[i];
      if (typeof s != "object")
        t != null && t[s] !== void 0 ? (r += i + "{" + t[s] + "}") : M3(s) && (r += y1(i) + ":" + E3(i, s) + ";");
      else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
        for (var a = 0; a < s.length; a++) M3(s[a]) && (r += y1(i) + ":" + E3(i, s[a]) + ";");
      else {
        var l = Su(e, t, s);
        switch (i) {
          case "animation":
          case "animationName": {
            r += y1(i) + ":" + l + ";";
            break;
          }
          default:
            r += i + "{" + l + "}";
        }
      }
    }
  return r;
}
var P3 = /label:\s*([^\s;\n{]+)\s*(;|$)/g,
  Kr,
  R2 = function (t, n, r) {
    if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0) return t[0];
    var o = !0,
      i = "";
    Kr = void 0;
    var s = t[0];
    s == null || s.raw === void 0 ? ((o = !1), (i += Su(r, n, s))) : (i += s[0]);
    for (var a = 1; a < t.length; a++) (i += Su(r, n, t[a])), o && (i += s[a]);
    P3.lastIndex = 0;
    for (var l = "", u; (u = P3.exec(i)) !== null; ) l += "-" + u[1];
    var c = CM(i) + l;
    return { name: c, styles: i, next: Kr };
  },
  MM = function (t) {
    return t();
  },
  Cv = wh.useInsertionEffect ? wh.useInsertionEffect : !1,
  EM = Cv || MM,
  A3 = Cv || b.useLayoutEffect,
  wv = b.createContext(typeof HTMLElement < "u" ? pv({ key: "css" }) : null),
  PM = wv.Provider,
  Sv = function (t) {
    return b.forwardRef(function (n, r) {
      var o = b.useContext(wv);
      return t(n, o, r);
    });
  },
  oc = b.createContext({}),
  v1 = { exports: {} },
  _3;
function kv() {
  return (
    _3 ||
      ((_3 = 1),
      (function (e) {
        function t() {
          return (
            (e.exports = t =
              Object.assign
                ? Object.assign.bind()
                : function (n) {
                    for (var r = 1; r < arguments.length; r++) {
                      var o = arguments[r];
                      for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
                    }
                    return n;
                  }),
            (e.exports.__esModule = !0),
            (e.exports.default = e.exports),
            t.apply(this, arguments)
          );
        }
        (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
      })(v1)),
    v1.exports
  );
}
kv();
var AM = Sv(function (e, t) {
  var n = e.styles,
    r = R2([n], void 0, b.useContext(oc)),
    o = b.useRef();
  return (
    A3(
      function () {
        var i = t.key + "-global",
          s = new t.sheet.constructor({
            key: i,
            nonce: t.sheet.nonce,
            container: t.sheet.container,
            speedy: t.sheet.isSpeedy,
          }),
          a = !1,
          l = document.querySelector('style[data-emotion="' + i + " " + r.name + '"]');
        return (
          t.sheet.tags.length && (s.before = t.sheet.tags[0]),
          l !== null && ((a = !0), l.setAttribute("data-emotion", i), s.hydrate([l])),
          (o.current = [s, a]),
          function () {
            s.flush();
          }
        );
      },
      [t]
    ),
    A3(
      function () {
        var i = o.current,
          s = i[0],
          a = i[1];
        if (a) {
          i[1] = !1;
          return;
        }
        if ((r.next !== void 0 && xv(t, r.next, !0), s.tags.length)) {
          var l = s.tags[s.tags.length - 1].nextElementSibling;
          (s.before = l), s.flush();
        }
        t.insert("", r, s, !1);
      },
      [t, r.name]
    ),
    null
  );
});
function cs() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
  return R2(t);
}
var Go = function () {
    var t = cs.apply(void 0, arguments),
      n = "animation-" + t.name;
    return {
      name: n,
      styles: "@keyframes " + n + "{" + t.styles + "}",
      anim: 1,
      toString: function () {
        return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
      },
    };
  },
  _M = LT,
  DM = function (t) {
    return t !== "theme";
  },
  D3 = function (t) {
    return typeof t == "string" && t.charCodeAt(0) > 96 ? _M : DM;
  },
  R3 = function (t, n, r) {
    var o;
    if (n) {
      var i = n.shouldForwardProp;
      o =
        t.__emotion_forwardProp && i
          ? function (s) {
              return t.__emotion_forwardProp(s) && i(s);
            }
          : i;
    }
    return typeof o != "function" && r && (o = t.__emotion_forwardProp), o;
  },
  RM = function (t) {
    var n = t.cache,
      r = t.serialized,
      o = t.isStringTag;
    return (
      vv(n, r, o),
      EM(function () {
        return xv(n, r, o);
      }),
      null
    );
  },
  IM = function e(t, n) {
    var r = t.__emotion_real === t,
      o = (r && t.__emotion_base) || t,
      i,
      s;
    n !== void 0 && ((i = n.label), (s = n.target));
    var a = R3(t, n, r),
      l = a || D3(o),
      u = !l("as");
    return function () {
      var c = arguments,
        d = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
      if ((i !== void 0 && d.push("label:" + i + ";"), c[0] == null || c[0].raw === void 0)) d.push.apply(d, c);
      else {
        d.push(c[0][0]);
        for (var p = c.length, h = 1; h < p; h++) d.push(c[h], c[0][h]);
      }
      var m = Sv(function (v, C, y) {
        var g = (u && v.as) || o,
          x = "",
          w = [],
          k = v;
        if (v.theme == null) {
          k = {};
          for (var M in v) k[M] = v[M];
          k.theme = b.useContext(oc);
        }
        typeof v.className == "string"
          ? (x = bM(C.registered, w, v.className))
          : v.className != null && (x = v.className + " ");
        var T = R2(d.concat(w), C.registered, k);
        (x += C.key + "-" + T.name), s !== void 0 && (x += " " + s);
        var P = u && a === void 0 ? D3(g) : l,
          A = {};
        for (var D in v) (u && D === "as") || (P(D) && (A[D] = v[D]));
        return (
          (A.className = x),
          (A.ref = y),
          b.createElement(
            b.Fragment,
            null,
            b.createElement(RM, { cache: C, serialized: T, isStringTag: typeof g == "string" }),
            b.createElement(g, A)
          )
        );
      });
      return (
        (m.displayName =
          i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")"),
        (m.defaultProps = t.defaultProps),
        (m.__emotion_real = m),
        (m.__emotion_base = o),
        (m.__emotion_styles = d),
        (m.__emotion_forwardProp = a),
        Object.defineProperty(m, "toString", {
          value: function () {
            return "." + s;
          },
        }),
        (m.withComponent = function (v, C) {
          return e(v, S({}, n, C, { shouldForwardProp: R3(m, C, !0) })).apply(void 0, d);
        }),
        m
      );
    };
  },
  OM = [
    "a",
    "abbr",
    "address",
    "area",
    "article",
    "aside",
    "audio",
    "b",
    "base",
    "bdi",
    "bdo",
    "big",
    "blockquote",
    "body",
    "br",
    "button",
    "canvas",
    "caption",
    "cite",
    "code",
    "col",
    "colgroup",
    "data",
    "datalist",
    "dd",
    "del",
    "details",
    "dfn",
    "dialog",
    "div",
    "dl",
    "dt",
    "em",
    "embed",
    "fieldset",
    "figcaption",
    "figure",
    "footer",
    "form",
    "h1",
    "h2",
    "h3",
    "h4",
    "h5",
    "h6",
    "head",
    "header",
    "hgroup",
    "hr",
    "html",
    "i",
    "iframe",
    "img",
    "input",
    "ins",
    "kbd",
    "keygen",
    "label",
    "legend",
    "li",
    "link",
    "main",
    "map",
    "mark",
    "marquee",
    "menu",
    "menuitem",
    "meta",
    "meter",
    "nav",
    "noscript",
    "object",
    "ol",
    "optgroup",
    "option",
    "output",
    "p",
    "param",
    "picture",
    "pre",
    "progress",
    "q",
    "rp",
    "rt",
    "ruby",
    "s",
    "samp",
    "script",
    "section",
    "select",
    "small",
    "source",
    "span",
    "strong",
    "style",
    "sub",
    "summary",
    "sup",
    "table",
    "tbody",
    "td",
    "textarea",
    "tfoot",
    "th",
    "thead",
    "time",
    "title",
    "tr",
    "track",
    "u",
    "ul",
    "var",
    "video",
    "wbr",
    "circle",
    "clipPath",
    "defs",
    "ellipse",
    "foreignObject",
    "g",
    "image",
    "line",
    "linearGradient",
    "mask",
    "path",
    "pattern",
    "polygon",
    "polyline",
    "radialGradient",
    "rect",
    "stop",
    "svg",
    "text",
    "tspan",
  ],
  Wh = IM.bind();
OM.forEach(function (e) {
  Wh[e] = Wh(e);
});
var Tv = { exports: {} },
  FM = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",
  LM = FM,
  NM = LM;
function Mv() {}
function Ev() {}
Ev.resetWarningCache = Mv;
var $M = function () {
  function e(r, o, i, s, a, l) {
    if (l !== NM) {
      var u = new Error(
        "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
      );
      throw ((u.name = "Invariant Violation"), u);
    }
  }
  e.isRequired = e;
  function t() {
    return e;
  }
  var n = {
    array: e,
    bigint: e,
    bool: e,
    func: e,
    number: e,
    object: e,
    string: e,
    symbol: e,
    any: e,
    arrayOf: t,
    element: e,
    elementType: e,
    instanceOf: t,
    node: e,
    objectOf: t,
    oneOf: t,
    oneOfType: t,
    shape: t,
    exact: t,
    checkPropTypes: Ev,
    resetWarningCache: Mv,
  };
  return (n.PropTypes = n), n;
};
Tv.exports = $M();
var BM = Tv.exports;
const N = Ti(BM);
let Gh;
typeof document == "object" && (Gh = pv({ key: "css", prepend: !0 }));
function jM(e) {
  const { injectFirst: t, children: n } = e;
  return t && Gh ? f.jsx(PM, { value: Gh, children: n }) : n;
}
function VM(e) {
  return e == null || Object.keys(e).length === 0;
}
function Pv(e) {
  const { styles: t, defaultTheme: n = {} } = e,
    r = typeof t == "function" ? (o) => t(VM(o) ? n : o) : t;
  return f.jsx(AM, { styles: r });
}
function I2(e, t) {
  return Wh(e, t);
}
const Av = (e, t) => {
    Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
  },
  HM = Object.freeze(
    Object.defineProperty(
      {
        __proto__: null,
        GlobalStyles: Pv,
        StyledEngineProvider: jM,
        ThemeContext: oc,
        css: cs,
        default: I2,
        internal_processStyles: Av,
        keyframes: Go,
      },
      Symbol.toStringTag,
      { value: "Module" }
    )
  );
function Mo(e) {
  if (typeof e != "object" || e === null) return !1;
  const t = Object.getPrototypeOf(e);
  return (
    (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) &&
    !(Symbol.toStringTag in e) &&
    !(Symbol.iterator in e)
  );
}
function _v(e) {
  if (!Mo(e)) return e;
  const t = {};
  return (
    Object.keys(e).forEach((n) => {
      t[n] = _v(e[n]);
    }),
    t
  );
}
function Cn(e, t, n = { clone: !0 }) {
  const r = n.clone ? S({}, e) : e;
  return (
    Mo(e) &&
      Mo(t) &&
      Object.keys(t).forEach((o) => {
        o !== "__proto__" &&
          (Mo(t[o]) && o in e && Mo(e[o])
            ? (r[o] = Cn(e[o], t[o], n))
            : n.clone
              ? (r[o] = Mo(t[o]) ? _v(t[o]) : t[o])
              : (r[o] = t[o]));
      }),
    r
  );
}
const zM = Object.freeze(
    Object.defineProperty({ __proto__: null, default: Cn, isPlainObject: Mo }, Symbol.toStringTag, { value: "Module" })
  ),
  WM = ["values", "unit", "step"],
  GM = (e) => {
    const t = Object.keys(e).map((n) => ({ key: n, val: e[n] })) || [];
    return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => S({}, n, { [r.key]: r.val }), {});
  };
function Dv(e) {
  const { values: t = { xs: 0, sm: 600, md: 900, lg: 1200, xl: 1536 }, unit: n = "px", step: r = 5 } = e,
    o = ee(e, WM),
    i = GM(t),
    s = Object.keys(i);
  function a(p) {
    return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${n})`;
  }
  function l(p) {
    return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - r / 100}${n})`;
  }
  function u(p, h) {
    const m = s.indexOf(h);
    return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${n}) and (max-width:${(m !== -1 && typeof t[s[m]] == "number" ? t[s[m]] : h) - r / 100}${n})`;
  }
  function c(p) {
    return s.indexOf(p) + 1 < s.length ? u(p, s[s.indexOf(p) + 1]) : a(p);
  }
  function d(p) {
    const h = s.indexOf(p);
    return h === 0
      ? a(s[1])
      : h === s.length - 1
        ? l(s[h])
        : u(p, s[s.indexOf(p) + 1]).replace("@media", "@media not all and");
  }
  return S({ keys: s, values: i, up: a, down: l, between: u, only: c, not: d, unit: n }, o);
}
const UM = { borderRadius: 4 };
function Kl(e, t) {
  return t ? Cn(e, t, { clone: !1 }) : e;
}
const O2 = { xs: 0, sm: 600, md: 900, lg: 1200, xl: 1536 },
  I3 = { keys: ["xs", "sm", "md", "lg", "xl"], up: (e) => `@media (min-width:${O2[e]}px)` };
function Lr(e, t, n) {
  const r = e.theme || {};
  if (Array.isArray(t)) {
    const i = r.breakpoints || I3;
    return t.reduce((s, a, l) => ((s[i.up(i.keys[l])] = n(t[l])), s), {});
  }
  if (typeof t == "object") {
    const i = r.breakpoints || I3;
    return Object.keys(t).reduce((s, a) => {
      if (Object.keys(i.values || O2).indexOf(a) !== -1) {
        const l = i.up(a);
        s[l] = n(t[a], a);
      } else {
        const l = a;
        s[l] = t[l];
      }
      return s;
    }, {});
  }
  return n(t);
}
function Rv(e = {}) {
  var t;
  return (
    ((t = e.keys) == null
      ? void 0
      : t.reduce((r, o) => {
          const i = e.up(o);
          return (r[i] = {}), r;
        }, {})) || {}
  );
}
function Iv(e, t) {
  return e.reduce((n, r) => {
    const o = n[r];
    return (!o || Object.keys(o).length === 0) && delete n[r], n;
  }, t);
}
function YM(e, ...t) {
  const n = Rv(e),
    r = [n, ...t].reduce((o, i) => Cn(o, i), {});
  return Iv(Object.keys(n), r);
}
function KM(e, t) {
  if (typeof e != "object") return {};
  const n = {},
    r = Object.keys(t);
  return (
    Array.isArray(e)
      ? r.forEach((o, i) => {
          i < e.length && (n[o] = !0);
        })
      : r.forEach((o) => {
          e[o] != null && (n[o] = !0);
        }),
    n
  );
}
function x1({ values: e, breakpoints: t, base: n }) {
  const r = n || KM(e, t),
    o = Object.keys(r);
  if (o.length === 0) return e;
  let i;
  return o.reduce(
    (s, a, l) => (
      Array.isArray(e)
        ? ((s[a] = e[l] != null ? e[l] : e[i]), (i = l))
        : typeof e == "object"
          ? ((s[a] = e[a] != null ? e[a] : e[i]), (i = a))
          : (s[a] = e),
      s
    ),
    {}
  );
}
function Q(e) {
  if (typeof e != "string") throw new Error(Fo(7));
  return e.charAt(0).toUpperCase() + e.slice(1);
}
const XM = Object.freeze(
  Object.defineProperty({ __proto__: null, default: Q }, Symbol.toStringTag, { value: "Module" })
);
function Ia(e, t, n = !0) {
  if (!t || typeof t != "string") return null;
  if (e && e.vars && n) {
    const r = `vars.${t}`.split(".").reduce((o, i) => (o && o[i] ? o[i] : null), e);
    if (r != null) return r;
  }
  return t.split(".").reduce((r, o) => (r && r[o] != null ? r[o] : null), e);
}
function lf(e, t, n, r = n) {
  let o;
  return (
    typeof e == "function" ? (o = e(n)) : Array.isArray(e) ? (o = e[n] || r) : (o = Ia(e, n) || r),
    t && (o = t(o, r, e)),
    o
  );
}
function Vt(e) {
  const { prop: t, cssProperty: n = e.prop, themeKey: r, transform: o } = e,
    i = (s) => {
      if (s[t] == null) return null;
      const a = s[t],
        l = s.theme,
        u = Ia(l, r) || {};
      return Lr(s, a, (d) => {
        let p = lf(u, o, d);
        return (
          d === p && typeof d == "string" && (p = lf(u, o, `${t}${d === "default" ? "" : Q(d)}`, d)),
          n === !1 ? p : { [n]: p }
        );
      });
    };
  return (i.propTypes = {}), (i.filterProps = [t]), i;
}
function qM(e) {
  const t = {};
  return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
}
const ZM = { m: "margin", p: "padding" },
  JM = { t: "Top", r: "Right", b: "Bottom", l: "Left", x: ["Left", "Right"], y: ["Top", "Bottom"] },
  O3 = { marginX: "mx", marginY: "my", paddingX: "px", paddingY: "py" },
  QM = qM((e) => {
    if (e.length > 2)
      if (O3[e]) e = O3[e];
      else return [e];
    const [t, n] = e.split(""),
      r = ZM[t],
      o = JM[n] || "";
    return Array.isArray(o) ? o.map((i) => r + i) : [r + o];
  }),
  F2 = [
    "m",
    "mt",
    "mr",
    "mb",
    "ml",
    "mx",
    "my",
    "margin",
    "marginTop",
    "marginRight",
    "marginBottom",
    "marginLeft",
    "marginX",
    "marginY",
    "marginInline",
    "marginInlineStart",
    "marginInlineEnd",
    "marginBlock",
    "marginBlockStart",
    "marginBlockEnd",
  ],
  L2 = [
    "p",
    "pt",
    "pr",
    "pb",
    "pl",
    "px",
    "py",
    "padding",
    "paddingTop",
    "paddingRight",
    "paddingBottom",
    "paddingLeft",
    "paddingX",
    "paddingY",
    "paddingInline",
    "paddingInlineStart",
    "paddingInlineEnd",
    "paddingBlock",
    "paddingBlockStart",
    "paddingBlockEnd",
  ];
[...F2, ...L2];
function ic(e, t, n, r) {
  var o;
  const i = (o = Ia(e, t, !1)) != null ? o : n;
  return typeof i == "number"
    ? (s) => (typeof s == "string" ? s : i * s)
    : Array.isArray(i)
      ? (s) => (typeof s == "string" ? s : i[s])
      : typeof i == "function"
        ? i
        : () => {};
}
function N2(e) {
  return ic(e, "spacing", 8);
}
function ds(e, t) {
  if (typeof t == "string" || t == null) return t;
  const n = Math.abs(t),
    r = e(n);
  return t >= 0 ? r : typeof r == "number" ? -r : `-${r}`;
}
function eE(e, t) {
  return (n) => e.reduce((r, o) => ((r[o] = ds(t, n)), r), {});
}
function tE(e, t, n, r) {
  if (t.indexOf(n) === -1) return null;
  const o = QM(n),
    i = eE(o, r),
    s = e[n];
  return Lr(e, s, i);
}
function Ov(e, t) {
  const n = N2(e.theme);
  return Object.keys(e)
    .map((r) => tE(e, t, r, n))
    .reduce(Kl, {});
}
function Ft(e) {
  return Ov(e, F2);
}
Ft.propTypes = {};
Ft.filterProps = F2;
function Lt(e) {
  return Ov(e, L2);
}
Lt.propTypes = {};
Lt.filterProps = L2;
function nE(e = 8) {
  if (e.mui) return e;
  const t = N2({ spacing: e }),
    n = (...r) =>
      (r.length === 0 ? [1] : r)
        .map((i) => {
          const s = t(i);
          return typeof s == "number" ? `${s}px` : s;
        })
        .join(" ");
  return (n.mui = !0), n;
}
function Tp(...e) {
  const t = e.reduce(
      (r, o) => (
        o.filterProps.forEach((i) => {
          r[i] = o;
        }),
        r
      ),
      {}
    ),
    n = (r) => Object.keys(r).reduce((o, i) => (t[i] ? Kl(o, t[i](r)) : o), {});
  return (n.propTypes = {}), (n.filterProps = e.reduce((r, o) => r.concat(o.filterProps), [])), n;
}
function rr(e) {
  return typeof e != "number" ? e : `${e}px solid`;
}
function xr(e, t) {
  return Vt({ prop: e, themeKey: "borders", transform: t });
}
const rE = xr("border", rr),
  oE = xr("borderTop", rr),
  iE = xr("borderRight", rr),
  sE = xr("borderBottom", rr),
  aE = xr("borderLeft", rr),
  lE = xr("borderColor"),
  uE = xr("borderTopColor"),
  cE = xr("borderRightColor"),
  dE = xr("borderBottomColor"),
  fE = xr("borderLeftColor"),
  pE = xr("outline", rr),
  hE = xr("outlineColor"),
  Mp = (e) => {
    if (e.borderRadius !== void 0 && e.borderRadius !== null) {
      const t = ic(e.theme, "shape.borderRadius", 4),
        n = (r) => ({ borderRadius: ds(t, r) });
      return Lr(e, e.borderRadius, n);
    }
    return null;
  };
Mp.propTypes = {};
Mp.filterProps = ["borderRadius"];
Tp(rE, oE, iE, sE, aE, lE, uE, cE, dE, fE, Mp, pE, hE);
const Ep = (e) => {
  if (e.gap !== void 0 && e.gap !== null) {
    const t = ic(e.theme, "spacing", 8),
      n = (r) => ({ gap: ds(t, r) });
    return Lr(e, e.gap, n);
  }
  return null;
};
Ep.propTypes = {};
Ep.filterProps = ["gap"];
const Pp = (e) => {
  if (e.columnGap !== void 0 && e.columnGap !== null) {
    const t = ic(e.theme, "spacing", 8),
      n = (r) => ({ columnGap: ds(t, r) });
    return Lr(e, e.columnGap, n);
  }
  return null;
};
Pp.propTypes = {};
Pp.filterProps = ["columnGap"];
const Ap = (e) => {
  if (e.rowGap !== void 0 && e.rowGap !== null) {
    const t = ic(e.theme, "spacing", 8),
      n = (r) => ({ rowGap: ds(t, r) });
    return Lr(e, e.rowGap, n);
  }
  return null;
};
Ap.propTypes = {};
Ap.filterProps = ["rowGap"];
const mE = Vt({ prop: "gridColumn" }),
  gE = Vt({ prop: "gridRow" }),
  yE = Vt({ prop: "gridAutoFlow" }),
  vE = Vt({ prop: "gridAutoColumns" }),
  xE = Vt({ prop: "gridAutoRows" }),
  bE = Vt({ prop: "gridTemplateColumns" }),
  CE = Vt({ prop: "gridTemplateRows" }),
  wE = Vt({ prop: "gridTemplateAreas" }),
  SE = Vt({ prop: "gridArea" });
Tp(Ep, Pp, Ap, mE, gE, yE, vE, xE, bE, CE, wE, SE);
function fa(e, t) {
  return t === "grey" ? t : e;
}
const kE = Vt({ prop: "color", themeKey: "palette", transform: fa }),
  TE = Vt({ prop: "bgcolor", cssProperty: "backgroundColor", themeKey: "palette", transform: fa }),
  ME = Vt({ prop: "backgroundColor", themeKey: "palette", transform: fa });
Tp(kE, TE, ME);
function Bn(e) {
  return e <= 1 && e !== 0 ? `${e * 100}%` : e;
}
const EE = Vt({ prop: "width", transform: Bn }),
  $2 = (e) => {
    if (e.maxWidth !== void 0 && e.maxWidth !== null) {
      const t = (n) => {
        var r, o;
        const i =
          ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) || O2[n];
        return i
          ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px"
            ? { maxWidth: `${i}${e.theme.breakpoints.unit}` }
            : { maxWidth: i }
          : { maxWidth: Bn(n) };
      };
      return Lr(e, e.maxWidth, t);
    }
    return null;
  };
$2.filterProps = ["maxWidth"];
const PE = Vt({ prop: "minWidth", transform: Bn }),
  AE = Vt({ prop: "height", transform: Bn }),
  _E = Vt({ prop: "maxHeight", transform: Bn }),
  DE = Vt({ prop: "minHeight", transform: Bn });
Vt({ prop: "size", cssProperty: "width", transform: Bn });
Vt({ prop: "size", cssProperty: "height", transform: Bn });
const RE = Vt({ prop: "boxSizing" });
Tp(EE, $2, PE, AE, _E, DE, RE);
const sc = {
  border: { themeKey: "borders", transform: rr },
  borderTop: { themeKey: "borders", transform: rr },
  borderRight: { themeKey: "borders", transform: rr },
  borderBottom: { themeKey: "borders", transform: rr },
  borderLeft: { themeKey: "borders", transform: rr },
  borderColor: { themeKey: "palette" },
  borderTopColor: { themeKey: "palette" },
  borderRightColor: { themeKey: "palette" },
  borderBottomColor: { themeKey: "palette" },
  borderLeftColor: { themeKey: "palette" },
  outline: { themeKey: "borders", transform: rr },
  outlineColor: { themeKey: "palette" },
  borderRadius: { themeKey: "shape.borderRadius", style: Mp },
  color: { themeKey: "palette", transform: fa },
  bgcolor: { themeKey: "palette", cssProperty: "backgroundColor", transform: fa },
  backgroundColor: { themeKey: "palette", transform: fa },
  p: { style: Lt },
  pt: { style: Lt },
  pr: { style: Lt },
  pb: { style: Lt },
  pl: { style: Lt },
  px: { style: Lt },
  py: { style: Lt },
  padding: { style: Lt },
  paddingTop: { style: Lt },
  paddingRight: { style: Lt },
  paddingBottom: { style: Lt },
  paddingLeft: { style: Lt },
  paddingX: { style: Lt },
  paddingY: { style: Lt },
  paddingInline: { style: Lt },
  paddingInlineStart: { style: Lt },
  paddingInlineEnd: { style: Lt },
  paddingBlock: { style: Lt },
  paddingBlockStart: { style: Lt },
  paddingBlockEnd: { style: Lt },
  m: { style: Ft },
  mt: { style: Ft },
  mr: { style: Ft },
  mb: { style: Ft },
  ml: { style: Ft },
  mx: { style: Ft },
  my: { style: Ft },
  margin: { style: Ft },
  marginTop: { style: Ft },
  marginRight: { style: Ft },
  marginBottom: { style: Ft },
  marginLeft: { style: Ft },
  marginX: { style: Ft },
  marginY: { style: Ft },
  marginInline: { style: Ft },
  marginInlineStart: { style: Ft },
  marginInlineEnd: { style: Ft },
  marginBlock: { style: Ft },
  marginBlockStart: { style: Ft },
  marginBlockEnd: { style: Ft },
  displayPrint: { cssProperty: !1, transform: (e) => ({ "@media print": { display: e } }) },
  display: {},
  overflow: {},
  textOverflow: {},
  visibility: {},
  whiteSpace: {},
  flexBasis: {},
  flexDirection: {},
  flexWrap: {},
  justifyContent: {},
  alignItems: {},
  alignContent: {},
  order: {},
  flex: {},
  flexGrow: {},
  flexShrink: {},
  alignSelf: {},
  justifyItems: {},
  justifySelf: {},
  gap: { style: Ep },
  rowGap: { style: Ap },
  columnGap: { style: Pp },
  gridColumn: {},
  gridRow: {},
  gridAutoFlow: {},
  gridAutoColumns: {},
  gridAutoRows: {},
  gridTemplateColumns: {},
  gridTemplateRows: {},
  gridTemplateAreas: {},
  gridArea: {},
  position: {},
  zIndex: { themeKey: "zIndex" },
  top: {},
  right: {},
  bottom: {},
  left: {},
  boxShadow: { themeKey: "shadows" },
  width: { transform: Bn },
  maxWidth: { style: $2 },
  minWidth: { transform: Bn },
  height: { transform: Bn },
  maxHeight: { transform: Bn },
  minHeight: { transform: Bn },
  boxSizing: {},
  fontFamily: { themeKey: "typography" },
  fontSize: { themeKey: "typography" },
  fontStyle: { themeKey: "typography" },
  fontWeight: { themeKey: "typography" },
  letterSpacing: {},
  textTransform: {},
  lineHeight: {},
  textAlign: {},
  typography: { cssProperty: !1, themeKey: "typography" },
};
function IE(...e) {
  const t = e.reduce((r, o) => r.concat(Object.keys(o)), []),
    n = new Set(t);
  return e.every((r) => n.size === Object.keys(r).length);
}
function OE(e, t) {
  return typeof e == "function" ? e(t) : e;
}
function Fv() {
  function e(n, r, o, i) {
    const s = { [n]: r, theme: o },
      a = i[n];
    if (!a) return { [n]: r };
    const { cssProperty: l = n, themeKey: u, transform: c, style: d } = a;
    if (r == null) return null;
    if (u === "typography" && r === "inherit") return { [n]: r };
    const p = Ia(o, u) || {};
    return d
      ? d(s)
      : Lr(s, r, (m) => {
          let v = lf(p, c, m);
          return (
            m === v && typeof m == "string" && (v = lf(p, c, `${n}${m === "default" ? "" : Q(m)}`, m)),
            l === !1 ? v : { [l]: v }
          );
        });
  }
  function t(n) {
    var r;
    const { sx: o, theme: i = {} } = n || {};
    if (!o) return null;
    const s = (r = i.unstable_sxConfig) != null ? r : sc;
    function a(l) {
      let u = l;
      if (typeof l == "function") u = l(i);
      else if (typeof l != "object") return l;
      if (!u) return null;
      const c = Rv(i.breakpoints),
        d = Object.keys(c);
      let p = c;
      return (
        Object.keys(u).forEach((h) => {
          const m = OE(u[h], i);
          if (m != null)
            if (typeof m == "object")
              if (s[h]) p = Kl(p, e(h, m, i, s));
              else {
                const v = Lr({ theme: i }, m, (C) => ({ [h]: C }));
                IE(v, m) ? (p[h] = t({ sx: m, theme: i })) : (p = Kl(p, v));
              }
            else p = Kl(p, e(h, m, i, s));
        }),
        Iv(d, p)
      );
    }
    return Array.isArray(o) ? o.map(a) : a(o);
  }
  return t;
}
const el = Fv();
el.filterProps = ["sx"];
function Lv(e, t) {
  const n = this;
  return n.vars && typeof n.getColorSchemeSelector == "function"
    ? { [n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t }
    : n.palette.mode === e
      ? t
      : {};
}
const FE = ["breakpoints", "palette", "spacing", "shape"];
function ac(e = {}, ...t) {
  const { breakpoints: n = {}, palette: r = {}, spacing: o, shape: i = {} } = e,
    s = ee(e, FE),
    a = Dv(n),
    l = nE(o);
  let u = Cn(
    {
      breakpoints: a,
      direction: "ltr",
      components: {},
      palette: S({ mode: "light" }, r),
      spacing: l,
      shape: S({}, UM, i),
    },
    s
  );
  return (
    (u.applyStyles = Lv),
    (u = t.reduce((c, d) => Cn(c, d), u)),
    (u.unstable_sxConfig = S({}, sc, s == null ? void 0 : s.unstable_sxConfig)),
    (u.unstable_sx = function (d) {
      return el({ sx: d, theme: this });
    }),
    u
  );
}
const LE = Object.freeze(
  Object.defineProperty(
    { __proto__: null, default: ac, private_createBreakpoints: Dv, unstable_applyStyles: Lv },
    Symbol.toStringTag,
    { value: "Module" }
  )
);
function NE(e) {
  return Object.keys(e).length === 0;
}
function B2(e = null) {
  const t = b.useContext(oc);
  return !t || NE(t) ? e : t;
}
const $E = ac();
function tl(e = $E) {
  return B2(e);
}
function BE({ styles: e, themeId: t, defaultTheme: n = {} }) {
  const r = tl(n),
    o = typeof e == "function" ? e((t && r[t]) || r) : e;
  return f.jsx(Pv, { styles: o });
}
const jE = ["sx"],
  VE = (e) => {
    var t, n;
    const r = { systemProps: {}, otherProps: {} },
      o = (t = e == null || (n = e.theme) == null ? void 0 : n.unstable_sxConfig) != null ? t : sc;
    return (
      Object.keys(e).forEach((i) => {
        o[i] ? (r.systemProps[i] = e[i]) : (r.otherProps[i] = e[i]);
      }),
      r
    );
  };
function _p(e) {
  const { sx: t } = e,
    n = ee(e, jE),
    { systemProps: r, otherProps: o } = VE(n);
  let i;
  return (
    Array.isArray(t)
      ? (i = [r, ...t])
      : typeof t == "function"
        ? (i = (...s) => {
            const a = t(...s);
            return Mo(a) ? S({}, r, a) : r;
          })
        : (i = S({}, r, t)),
    S({}, o, { sx: i })
  );
}
const HE = Object.freeze(
    Object.defineProperty(
      {
        __proto__: null,
        default: el,
        extendSxProp: _p,
        unstable_createStyleFunctionSx: Fv,
        unstable_defaultSxConfig: sc,
      },
      Symbol.toStringTag,
      { value: "Module" }
    )
  ),
  F3 = (e) => e,
  zE = () => {
    let e = F3;
    return {
      configure(t) {
        e = t;
      },
      generate(t) {
        return e(t);
      },
      reset() {
        e = F3;
      },
    };
  },
  j2 = zE();
function Nv(e) {
  var t,
    n,
    r = "";
  if (typeof e == "string" || typeof e == "number") r += e;
  else if (typeof e == "object")
    if (Array.isArray(e)) {
      var o = e.length;
      for (t = 0; t < o; t++) e[t] && (n = Nv(e[t])) && (r && (r += " "), (r += n));
    } else for (n in e) e[n] && (r && (r += " "), (r += n));
  return r;
}
function ue() {
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
    (e = arguments[n]) && (t = Nv(e)) && (r && (r += " "), (r += t));
  return r;
}
const WE = ["className", "component"];
function GE(e = {}) {
  const { themeId: t, defaultTheme: n, defaultClassName: r = "MuiBox-root", generateClassName: o } = e,
    i = I2("div", { shouldForwardProp: (a) => a !== "theme" && a !== "sx" && a !== "as" })(el);
  return b.forwardRef(function (l, u) {
    const c = tl(n),
      d = _p(l),
      { className: p, component: h = "div" } = d,
      m = ee(d, WE);
    return f.jsx(i, S({ as: h, ref: u, className: ue(p, o ? o(r) : r), theme: (t && c[t]) || c }, m));
  });
}
const $v = {
  active: "active",
  checked: "checked",
  completed: "completed",
  disabled: "disabled",
  error: "error",
  expanded: "expanded",
  focused: "focused",
  focusVisible: "focusVisible",
  open: "open",
  readOnly: "readOnly",
  required: "required",
  selected: "selected",
};
function Ae(e, t, n = "Mui") {
  const r = $v[t];
  return r ? `${n}-${r}` : `${j2.generate(e)}-${t}`;
}
function Se(e, t, n = "Mui") {
  const r = {};
  return (
    t.forEach((o) => {
      r[o] = Ae(e, o, n);
    }),
    r
  );
}
var Bv = { exports: {} },
  mt = {};
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var V2 = Symbol.for("react.element"),
  H2 = Symbol.for("react.portal"),
  Dp = Symbol.for("react.fragment"),
  Rp = Symbol.for("react.strict_mode"),
  Ip = Symbol.for("react.profiler"),
  Op = Symbol.for("react.provider"),
  Fp = Symbol.for("react.context"),
  UE = Symbol.for("react.server_context"),
  Lp = Symbol.for("react.forward_ref"),
  Np = Symbol.for("react.suspense"),
  $p = Symbol.for("react.suspense_list"),
  Bp = Symbol.for("react.memo"),
  jp = Symbol.for("react.lazy"),
  YE = Symbol.for("react.offscreen"),
  jv;
jv = Symbol.for("react.module.reference");
function br(e) {
  if (typeof e == "object" && e !== null) {
    var t = e.$$typeof;
    switch (t) {
      case V2:
        switch (((e = e.type), e)) {
          case Dp:
          case Ip:
          case Rp:
          case Np:
          case $p:
            return e;
          default:
            switch (((e = e && e.$$typeof), e)) {
              case UE:
              case Fp:
              case Lp:
              case jp:
              case Bp:
              case Op:
                return e;
              default:
                return t;
            }
        }
      case H2:
        return t;
    }
  }
}
mt.ContextConsumer = Fp;
mt.ContextProvider = Op;
mt.Element = V2;
mt.ForwardRef = Lp;
mt.Fragment = Dp;
mt.Lazy = jp;
mt.Memo = Bp;
mt.Portal = H2;
mt.Profiler = Ip;
mt.StrictMode = Rp;
mt.Suspense = Np;
mt.SuspenseList = $p;
mt.isAsyncMode = function () {
  return !1;
};
mt.isConcurrentMode = function () {
  return !1;
};
mt.isContextConsumer = function (e) {
  return br(e) === Fp;
};
mt.isContextProvider = function (e) {
  return br(e) === Op;
};
mt.isElement = function (e) {
  return typeof e == "object" && e !== null && e.$$typeof === V2;
};
mt.isForwardRef = function (e) {
  return br(e) === Lp;
};
mt.isFragment = function (e) {
  return br(e) === Dp;
};
mt.isLazy = function (e) {
  return br(e) === jp;
};
mt.isMemo = function (e) {
  return br(e) === Bp;
};
mt.isPortal = function (e) {
  return br(e) === H2;
};
mt.isProfiler = function (e) {
  return br(e) === Ip;
};
mt.isStrictMode = function (e) {
  return br(e) === Rp;
};
mt.isSuspense = function (e) {
  return br(e) === Np;
};
mt.isSuspenseList = function (e) {
  return br(e) === $p;
};
mt.isValidElementType = function (e) {
  return (
    typeof e == "string" ||
    typeof e == "function" ||
    e === Dp ||
    e === Ip ||
    e === Rp ||
    e === Np ||
    e === $p ||
    e === YE ||
    (typeof e == "object" &&
      e !== null &&
      (e.$$typeof === jp ||
        e.$$typeof === Bp ||
        e.$$typeof === Op ||
        e.$$typeof === Fp ||
        e.$$typeof === Lp ||
        e.$$typeof === jv ||
        e.getModuleId !== void 0))
  );
};
mt.typeOf = br;
Bv.exports = mt;
var L3 = Bv.exports;
const KE = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
function Vv(e) {
  const t = `${e}`.match(KE);
  return (t && t[1]) || "";
}
function Hv(e, t = "") {
  return e.displayName || e.name || Vv(e) || t;
}
function N3(e, t, n) {
  const r = Hv(t);
  return e.displayName || (r !== "" ? `${n}(${r})` : n);
}
function XE(e) {
  if (e != null) {
    if (typeof e == "string") return e;
    if (typeof e == "function") return Hv(e, "Component");
    if (typeof e == "object")
      switch (e.$$typeof) {
        case L3.ForwardRef:
          return N3(e, e.render, "ForwardRef");
        case L3.Memo:
          return N3(e, e.type, "memo");
        default:
          return;
      }
  }
}
const qE = Object.freeze(
    Object.defineProperty({ __proto__: null, default: XE, getFunctionName: Vv }, Symbol.toStringTag, {
      value: "Module",
    })
  ),
  ZE = ["ownerState"],
  JE = ["variants"],
  QE = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
function eP(e) {
  return Object.keys(e).length === 0;
}
function tP(e) {
  return typeof e == "string" && e.charCodeAt(0) > 96;
}
function b1(e) {
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
}
const nP = ac(),
  rP = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
function Nc({ defaultTheme: e, theme: t, themeId: n }) {
  return eP(t) ? e : t[n] || t;
}
function oP(e) {
  return e ? (t, n) => n[e] : null;
}
function Id(e, t) {
  let { ownerState: n } = t,
    r = ee(t, ZE);
  const o = typeof e == "function" ? e(S({ ownerState: n }, r)) : e;
  if (Array.isArray(o)) return o.flatMap((i) => Id(i, S({ ownerState: n }, r)));
  if (o && typeof o == "object" && Array.isArray(o.variants)) {
    const { variants: i = [] } = o;
    let a = ee(o, JE);
    return (
      i.forEach((l) => {
        let u = !0;
        typeof l.props == "function"
          ? (u = l.props(S({ ownerState: n }, r, n)))
          : Object.keys(l.props).forEach((c) => {
              (n == null ? void 0 : n[c]) !== l.props[c] && r[c] !== l.props[c] && (u = !1);
            }),
          u &&
            (Array.isArray(a) || (a = [a]),
            a.push(typeof l.style == "function" ? l.style(S({ ownerState: n }, r, n)) : l.style));
      }),
      a
    );
  }
  return o;
}
function iP(e = {}) {
  const { themeId: t, defaultTheme: n = nP, rootShouldForwardProp: r = b1, slotShouldForwardProp: o = b1 } = e,
    i = (s) => el(S({}, s, { theme: Nc(S({}, s, { defaultTheme: n, themeId: t })) }));
  return (
    (i.__mui_systemSx = !0),
    (s, a = {}) => {
      Av(s, (k) => k.filter((M) => !(M != null && M.__mui_systemSx)));
      const { name: l, slot: u, skipVariantsResolver: c, skipSx: d, overridesResolver: p = oP(rP(u)) } = a,
        h = ee(a, QE),
        m = c !== void 0 ? c : (u && u !== "Root" && u !== "root") || !1,
        v = d || !1;
      let C,
        y = b1;
      u === "Root" || u === "root" ? (y = r) : u ? (y = o) : tP(s) && (y = void 0);
      const g = I2(s, S({ shouldForwardProp: y, label: C }, h)),
        x = (k) =>
          (typeof k == "function" && k.__emotion_real !== k) || Mo(k)
            ? (M) => Id(k, S({}, M, { theme: Nc({ theme: M.theme, defaultTheme: n, themeId: t }) }))
            : k,
        w = (k, ...M) => {
          let T = x(k);
          const P = M ? M.map(x) : [];
          l &&
            p &&
            P.push((R) => {
              const L = Nc(S({}, R, { defaultTheme: n, themeId: t }));
              if (!L.components || !L.components[l] || !L.components[l].styleOverrides) return null;
              const F = L.components[l].styleOverrides,
                O = {};
              return (
                Object.entries(F).forEach(([E, B]) => {
                  O[E] = Id(B, S({}, R, { theme: L }));
                }),
                p(R, O)
              );
            }),
            l &&
              !m &&
              P.push((R) => {
                var L;
                const F = Nc(S({}, R, { defaultTheme: n, themeId: t })),
                  O = F == null || (L = F.components) == null || (L = L[l]) == null ? void 0 : L.variants;
                return Id({ variants: O }, S({}, R, { theme: F }));
              }),
            v || P.push(i);
          const A = P.length - M.length;
          if (Array.isArray(k) && A > 0) {
            const R = new Array(A).fill("");
            (T = [...k, ...R]), (T.raw = [...k.raw, ...R]);
          }
          const D = g(T, ...P);
          return s.muiName && (D.muiName = s.muiName), D;
        };
      return g.withConfig && (w.withConfig = g.withConfig), w;
    }
  );
}
const sP = iP();
function z2(e, t) {
  const n = S({}, t);
  return (
    Object.keys(e).forEach((r) => {
      if (r.toString().match(/^(components|slots)$/)) n[r] = S({}, e[r], n[r]);
      else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
        const o = e[r] || {},
          i = t[r];
        (n[r] = {}),
          !i || !Object.keys(i)
            ? (n[r] = o)
            : !o || !Object.keys(o)
              ? (n[r] = i)
              : ((n[r] = S({}, i)),
                Object.keys(o).forEach((s) => {
                  n[r][s] = z2(o[s], i[s]);
                }));
      } else n[r] === void 0 && (n[r] = e[r]);
    }),
    n
  );
}
function zv(e) {
  const { theme: t, name: n, props: r } = e;
  return !t || !t.components || !t.components[n] || !t.components[n].defaultProps
    ? r
    : z2(t.components[n].defaultProps, r);
}
function Wv({ props: e, name: t, defaultTheme: n, themeId: r }) {
  let o = tl(n);
  return r && (o = o[r] || o), zv({ theme: o, name: t, props: e });
}
const Kt = typeof window < "u" ? b.useLayoutEffect : b.useEffect;
function aP(e, t, n, r, o) {
  const [i, s] = b.useState(() => (o && n ? n(e).matches : r ? r(e).matches : t));
  return (
    Kt(() => {
      let a = !0;
      if (!n) return;
      const l = n(e),
        u = () => {
          a && s(l.matches);
        };
      return (
        u(),
        l.addListener(u),
        () => {
          (a = !1), l.removeListener(u);
        }
      );
    }, [e, n]),
    i
  );
}
const Gv = b.useSyncExternalStore;
function lP(e, t, n, r, o) {
  const i = b.useCallback(() => t, [t]),
    s = b.useMemo(() => {
      if (o && n) return () => n(e).matches;
      if (r !== null) {
        const { matches: c } = r(e);
        return () => c;
      }
      return i;
    }, [i, e, r, o, n]),
    [a, l] = b.useMemo(() => {
      if (n === null) return [i, () => () => {}];
      const c = n(e);
      return [
        () => c.matches,
        (d) => (
          c.addListener(d),
          () => {
            c.removeListener(d);
          }
        ),
      ];
    }, [i, n, e]);
  return Gv(l, a, s);
}
function xs(e, t = {}) {
  const n = B2(),
    r = typeof window < "u" && typeof window.matchMedia < "u",
    {
      defaultMatches: o = !1,
      matchMedia: i = r ? window.matchMedia : null,
      ssrMatchMedia: s = null,
      noSsr: a = !1,
    } = zv({ name: "MuiUseMediaQuery", props: t, theme: n });
  let l = typeof e == "function" ? e(n) : e;
  return (l = l.replace(/^@media( ?)/m, "")), (Gv !== void 0 ? lP : aP)(l, o, i, s, a);
}
function ei(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
  return Math.max(t, Math.min(e, n));
}
const uP = Object.freeze(
  Object.defineProperty({ __proto__: null, default: ei }, Symbol.toStringTag, { value: "Module" })
);
function cP(e, t = 0, n = 1) {
  return ei(e, t, n);
}
function dP(e) {
  e = e.slice(1);
  const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
  let n = e.match(t);
  return (
    n && n[0].length === 1 && (n = n.map((r) => r + r)),
    n
      ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => (o < 3 ? parseInt(r, 16) : Math.round((parseInt(r, 16) / 255) * 1e3) / 1e3)).join(", ")})`
      : ""
  );
}
function Uv(e) {
  if (e.type) return e;
  if (e.charAt(0) === "#") return Uv(dP(e));
  const t = e.indexOf("("),
    n = e.substring(0, t);
  if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1) throw new Error(Fo(9, e));
  let r = e.substring(t + 1, e.length - 1),
    o;
  if (n === "color") {
    if (
      ((r = r.split(" ")),
      (o = r.shift()),
      r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)),
      ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
    )
      throw new Error(Fo(10, o));
  } else r = r.split(",");
  return (r = r.map((i) => parseFloat(i))), { type: n, values: r, colorSpace: o };
}
function fP(e) {
  const { type: t, colorSpace: n } = e;
  let { values: r } = e;
  return (
    t.indexOf("rgb") !== -1
      ? (r = r.map((o, i) => (i < 3 ? parseInt(o, 10) : o)))
      : t.indexOf("hsl") !== -1 && ((r[1] = `${r[1]}%`), (r[2] = `${r[2]}%`)),
    t.indexOf("color") !== -1 ? (r = `${n} ${r.join(" ")}`) : (r = `${r.join(", ")}`),
    `${t}(${r})`
  );
}
function fs(e, t) {
  return (
    (e = Uv(e)),
    (t = cP(t)),
    (e.type === "rgb" || e.type === "hsl") && (e.type += "a"),
    e.type === "color" ? (e.values[3] = `/${t}`) : (e.values[3] = t),
    fP(e)
  );
}
const Yv = N.oneOfType([N.func, N.object]);
function uf(...e) {
  return e.reduce(
    (t, n) =>
      n == null
        ? t
        : function (...o) {
            t.apply(this, o), n.apply(this, o);
          },
    () => {}
  );
}
function Vp(e, t = 166) {
  let n;
  function r(...o) {
    const i = () => {
      e.apply(this, o);
    };
    clearTimeout(n), (n = setTimeout(i, t));
  }
  return (
    (r.clear = () => {
      clearTimeout(n);
    }),
    r
  );
}
function pP(e, t) {
  return () => null;
}
function Xl(e, t) {
  var n, r;
  return (
    b.isValidElement(e) &&
    t.indexOf(
      (n = e.type.muiName) != null
        ? n
        : (r = e.type) == null || (r = r._payload) == null || (r = r.value) == null
          ? void 0
          : r.muiName
    ) !== -1
  );
}
function Dt(e) {
  return (e && e.ownerDocument) || document;
}
function ao(e) {
  return Dt(e).defaultView || window;
}
function hP(e, t) {
  return () => null;
}
function cf(e, t) {
  typeof e == "function" ? e(t) : e && (e.current = t);
}
let $3 = 0;
function mP(e) {
  const [t, n] = b.useState(e),
    r = e || t;
  return (
    b.useEffect(() => {
      t == null && (($3 += 1), n(`mui-${$3}`));
    }, [t]),
    r
  );
}
const B3 = wh.useId;
function po(e) {
  if (B3 !== void 0) {
    const t = B3();
    return e ?? t;
  }
  return mP(e);
}
function gP(e, t, n, r, o) {
  return null;
}
function Sn({ controlled: e, default: t, name: n, state: r = "value" }) {
  const { current: o } = b.useRef(e !== void 0),
    [i, s] = b.useState(t),
    a = o ? e : i,
    l = b.useCallback((u) => {
      o || s(u);
    }, []);
  return [a, l];
}
function Me(e) {
  const t = b.useRef(e);
  return (
    Kt(() => {
      t.current = e;
    }),
    b.useRef((...n) => (0, t.current)(...n)).current
  );
}
function tt(...e) {
  return b.useMemo(
    () =>
      e.every((t) => t == null)
        ? null
        : (t) => {
            e.forEach((n) => {
              cf(n, t);
            });
          },
    e
  );
}
const j3 = {};
function yP(e, t) {
  const n = b.useRef(j3);
  return n.current === j3 && (n.current = e(t)), n;
}
const vP = [];
function xP(e) {
  b.useEffect(e, vP);
}
class Hp {
  constructor() {
    (this.currentId = null),
      (this.clear = () => {
        this.currentId !== null && (clearTimeout(this.currentId), (this.currentId = null));
      }),
      (this.disposeEffect = () => this.clear);
  }
  static create() {
    return new Hp();
  }
  start(t, n) {
    this.clear(),
      (this.currentId = setTimeout(() => {
        (this.currentId = null), n();
      }, t));
  }
}
function Kv() {
  const e = yP(Hp.create).current;
  return xP(e.disposeEffect), e;
}
let zp = !0,
  Uh = !1;
const bP = new Hp(),
  CP = {
    text: !0,
    search: !0,
    url: !0,
    tel: !0,
    email: !0,
    password: !0,
    number: !0,
    date: !0,
    month: !0,
    week: !0,
    time: !0,
    datetime: !0,
    "datetime-local": !0,
  };
function wP(e) {
  const { type: t, tagName: n } = e;
  return !!((n === "INPUT" && CP[t] && !e.readOnly) || (n === "TEXTAREA" && !e.readOnly) || e.isContentEditable);
}
function SP(e) {
  e.metaKey || e.altKey || e.ctrlKey || (zp = !0);
}
function C1() {
  zp = !1;
}
function kP() {
  this.visibilityState === "hidden" && Uh && (zp = !0);
}
function TP(e) {
  e.addEventListener("keydown", SP, !0),
    e.addEventListener("mousedown", C1, !0),
    e.addEventListener("pointerdown", C1, !0),
    e.addEventListener("touchstart", C1, !0),
    e.addEventListener("visibilitychange", kP, !0);
}
function MP(e) {
  const { target: t } = e;
  try {
    return t.matches(":focus-visible");
  } catch {}
  return zp || wP(t);
}
function lc() {
  const e = b.useCallback((o) => {
      o != null && TP(o.ownerDocument);
    }, []),
    t = b.useRef(!1);
  function n() {
    return t.current
      ? ((Uh = !0),
        bP.start(100, () => {
          Uh = !1;
        }),
        (t.current = !1),
        !0)
      : !1;
  }
  function r(o) {
    return MP(o) ? ((t.current = !0), !0) : !1;
  }
  return { isFocusVisibleRef: t, onFocus: r, onBlur: n, ref: e };
}
function Xv(e) {
  const t = e.documentElement.clientWidth;
  return Math.abs(window.innerWidth - t);
}
const qv = {
  border: 0,
  clip: "rect(0 0 0 0)",
  height: "1px",
  margin: "-1px",
  overflow: "hidden",
  padding: 0,
  position: "absolute",
  whiteSpace: "nowrap",
  width: "1px",
};
function Ee(e, t, n = void 0) {
  const r = {};
  return (
    Object.keys(e).forEach((o) => {
      r[o] = e[o]
        .reduce((i, s) => {
          if (s) {
            const a = t(s);
            a !== "" && i.push(a), n && n[s] && i.push(n[s]);
          }
          return i;
        }, [])
        .join(" ");
    }),
    r
  );
}
const Zv = b.createContext(null);
function Jv() {
  return b.useContext(Zv);
}
const EP = typeof Symbol == "function" && Symbol.for,
  PP = EP ? Symbol.for("mui.nested") : "__THEME_NESTED__";
function AP(e, t) {
  return typeof t == "function" ? t(e) : S({}, e, t);
}
function _P(e) {
  const { children: t, theme: n } = e,
    r = Jv(),
    o = b.useMemo(() => {
      const i = r === null ? n : AP(r, n);
      return i != null && (i[PP] = r !== null), i;
    }, [n, r]);
  return f.jsx(Zv.Provider, { value: o, children: t });
}
const DP = ["value"],
  Qv = b.createContext();
function RP(e) {
  let { value: t } = e,
    n = ee(e, DP);
  return f.jsx(Qv.Provider, S({ value: t ?? !0 }, n));
}
const Wp = () => {
    const e = b.useContext(Qv);
    return e ?? !1;
  },
  V3 = {};
function H3(e, t, n, r = !1) {
  return b.useMemo(() => {
    const o = (e && t[e]) || t;
    if (typeof n == "function") {
      const i = n(o),
        s = e ? S({}, t, { [e]: i }) : i;
      return r ? () => s : s;
    }
    return e ? S({}, t, { [e]: n }) : S({}, t, n);
  }, [e, t, n, r]);
}
function IP(e) {
  const { children: t, theme: n, themeId: r } = e,
    o = B2(V3),
    i = Jv() || V3,
    s = H3(r, o, n),
    a = H3(r, i, n, !0),
    l = s.direction === "rtl";
  return f.jsx(_P, {
    theme: a,
    children: f.jsx(oc.Provider, { value: s, children: f.jsx(RP, { value: l, children: t }) }),
  });
}
const OP = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"],
  FP = ac(),
  LP = sP("div", { name: "MuiStack", slot: "Root", overridesResolver: (e, t) => t.root });
function NP(e) {
  return Wv({ props: e, name: "MuiStack", defaultTheme: FP });
}
function $P(e, t) {
  const n = b.Children.toArray(e).filter(Boolean);
  return n.reduce(
    (r, o, i) => (r.push(o), i < n.length - 1 && r.push(b.cloneElement(t, { key: `separator-${i}` })), r),
    []
  );
}
const BP = (e) => ({ row: "Left", "row-reverse": "Right", column: "Top", "column-reverse": "Bottom" })[e],
  jP = ({ ownerState: e, theme: t }) => {
    let n = S(
      { display: "flex", flexDirection: "column" },
      Lr({ theme: t }, x1({ values: e.direction, breakpoints: t.breakpoints.values }), (r) => ({ flexDirection: r }))
    );
    if (e.spacing) {
      const r = N2(t),
        o = Object.keys(t.breakpoints.values).reduce(
          (l, u) => (
            ((typeof e.spacing == "object" && e.spacing[u] != null) ||
              (typeof e.direction == "object" && e.direction[u] != null)) &&
              (l[u] = !0),
            l
          ),
          {}
        ),
        i = x1({ values: e.direction, base: o }),
        s = x1({ values: e.spacing, base: o });
      typeof i == "object" &&
        Object.keys(i).forEach((l, u, c) => {
          if (!i[l]) {
            const p = u > 0 ? i[c[u - 1]] : "column";
            i[l] = p;
          }
        }),
        (n = Cn(
          n,
          Lr({ theme: t }, s, (l, u) =>
            e.useFlexGap
              ? { gap: ds(r, l) }
              : {
                  "& > :not(style):not(style)": { margin: 0 },
                  "& > :not(style) ~ :not(style)": { [`margin${BP(u ? i[u] : e.direction)}`]: ds(r, l) },
                }
          )
        ));
    }
    return (n = YM(t.breakpoints, n)), n;
  };
function VP(e = {}) {
  const { createStyledComponent: t = LP, useThemeProps: n = NP, componentName: r = "MuiStack" } = e,
    o = () => Ee({ root: ["root"] }, (l) => Ae(r, l), {}),
    i = t(jP);
  return b.forwardRef(function (l, u) {
    const c = n(l),
      d = _p(c),
      {
        component: p = "div",
        direction: h = "column",
        spacing: m = 0,
        divider: v,
        children: C,
        className: y,
        useFlexGap: g = !1,
      } = d,
      x = ee(d, OP),
      w = { direction: h, spacing: m, useFlexGap: g },
      k = o();
    return f.jsx(i, S({ as: p, ownerState: w, ref: u, className: ue(k.root, y) }, x, { children: v ? $P(C, v) : C }));
  });
}
function HP(e, t) {
  return S(
    {
      toolbar: {
        minHeight: 56,
        [e.up("xs")]: { "@media (orientation: landscape)": { minHeight: 48 } },
        [e.up("sm")]: { minHeight: 64 },
      },
    },
    t
  );
}
var Ht = {},
  e4 = { exports: {} };
(function (e) {
  function t(n) {
    return n && n.__esModule ? n : { default: n };
  }
  (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
})(e4);
var W2 = e4.exports;
const zP = Wo(OT),
  WP = Wo(uP);
var t4 = W2;
Object.defineProperty(Ht, "__esModule", { value: !0 });
var lt = (Ht.alpha = i4);
Ht.blend = tA;
Ht.colorChannel = void 0;
var df = (Ht.darken = U2);
Ht.decomposeColor = pr;
Ht.emphasize = s4;
var GP = (Ht.getContrastRatio = qP);
Ht.getLuminance = pf;
Ht.hexToRgb = n4;
Ht.hslToRgb = o4;
var ff = (Ht.lighten = Y2);
Ht.private_safeAlpha = ZP;
Ht.private_safeColorChannel = void 0;
Ht.private_safeDarken = JP;
Ht.private_safeEmphasize = eA;
Ht.private_safeLighten = QP;
Ht.recomposeColor = nl;
Ht.rgbToHex = XP;
var z3 = t4(zP),
  UP = t4(WP);
function G2(e, t = 0, n = 1) {
  return (0, UP.default)(e, t, n);
}
function n4(e) {
  e = e.slice(1);
  const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
  let n = e.match(t);
  return (
    n && n[0].length === 1 && (n = n.map((r) => r + r)),
    n
      ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => (o < 3 ? parseInt(r, 16) : Math.round((parseInt(r, 16) / 255) * 1e3) / 1e3)).join(", ")})`
      : ""
  );
}
function YP(e) {
  const t = e.toString(16);
  return t.length === 1 ? `0${t}` : t;
}
function pr(e) {
  if (e.type) return e;
  if (e.charAt(0) === "#") return pr(n4(e));
  const t = e.indexOf("("),
    n = e.substring(0, t);
  if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1) throw new Error((0, z3.default)(9, e));
  let r = e.substring(t + 1, e.length - 1),
    o;
  if (n === "color") {
    if (
      ((r = r.split(" ")),
      (o = r.shift()),
      r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)),
      ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
    )
      throw new Error((0, z3.default)(10, o));
  } else r = r.split(",");
  return (r = r.map((i) => parseFloat(i))), { type: n, values: r, colorSpace: o };
}
const r4 = (e) => {
  const t = pr(e);
  return t.values
    .slice(0, 3)
    .map((n, r) => (t.type.indexOf("hsl") !== -1 && r !== 0 ? `${n}%` : n))
    .join(" ");
};
Ht.colorChannel = r4;
const KP = (e, t) => {
  try {
    return r4(e);
  } catch {
    return e;
  }
};
Ht.private_safeColorChannel = KP;
function nl(e) {
  const { type: t, colorSpace: n } = e;
  let { values: r } = e;
  return (
    t.indexOf("rgb") !== -1
      ? (r = r.map((o, i) => (i < 3 ? parseInt(o, 10) : o)))
      : t.indexOf("hsl") !== -1 && ((r[1] = `${r[1]}%`), (r[2] = `${r[2]}%`)),
    t.indexOf("color") !== -1 ? (r = `${n} ${r.join(" ")}`) : (r = `${r.join(", ")}`),
    `${t}(${r})`
  );
}
function XP(e) {
  if (e.indexOf("#") === 0) return e;
  const { values: t } = pr(e);
  return `#${t.map((n, r) => YP(r === 3 ? Math.round(255 * n) : n)).join("")}`;
}
function o4(e) {
  e = pr(e);
  const { values: t } = e,
    n = t[0],
    r = t[1] / 100,
    o = t[2] / 100,
    i = r * Math.min(o, 1 - o),
    s = (u, c = (u + n / 30) % 12) => o - i * Math.max(Math.min(c - 3, 9 - c, 1), -1);
  let a = "rgb";
  const l = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
  return e.type === "hsla" && ((a += "a"), l.push(t[3])), nl({ type: a, values: l });
}
function pf(e) {
  e = pr(e);
  let t = e.type === "hsl" || e.type === "hsla" ? pr(o4(e)).values : e.values;
  return (
    (t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4))),
    Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3))
  );
}
function qP(e, t) {
  const n = pf(e),
    r = pf(t);
  return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
}
function i4(e, t) {
  return (
    (e = pr(e)),
    (t = G2(t)),
    (e.type === "rgb" || e.type === "hsl") && (e.type += "a"),
    e.type === "color" ? (e.values[3] = `/${t}`) : (e.values[3] = t),
    nl(e)
  );
}
function ZP(e, t, n) {
  try {
    return i4(e, t);
  } catch {
    return e;
  }
}
function U2(e, t) {
  if (((e = pr(e)), (t = G2(t)), e.type.indexOf("hsl") !== -1)) e.values[2] *= 1 - t;
  else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
    for (let n = 0; n < 3; n += 1) e.values[n] *= 1 - t;
  return nl(e);
}
function JP(e, t, n) {
  try {
    return U2(e, t);
  } catch {
    return e;
  }
}
function Y2(e, t) {
  if (((e = pr(e)), (t = G2(t)), e.type.indexOf("hsl") !== -1)) e.values[2] += (100 - e.values[2]) * t;
  else if (e.type.indexOf("rgb") !== -1) for (let n = 0; n < 3; n += 1) e.values[n] += (255 - e.values[n]) * t;
  else if (e.type.indexOf("color") !== -1) for (let n = 0; n < 3; n += 1) e.values[n] += (1 - e.values[n]) * t;
  return nl(e);
}
function QP(e, t, n) {
  try {
    return Y2(e, t);
  } catch {
    return e;
  }
}
function s4(e, t = 0.15) {
  return pf(e) > 0.5 ? U2(e, t) : Y2(e, t);
}
function eA(e, t, n) {
  try {
    return s4(e, t);
  } catch {
    return e;
  }
}
function tA(e, t, n, r = 1) {
  const o = (l, u) => Math.round((l ** (1 / r) * (1 - n) + u ** (1 / r) * n) ** r),
    i = pr(e),
    s = pr(t),
    a = [o(i.values[0], s.values[0]), o(i.values[1], s.values[1]), o(i.values[2], s.values[2])];
  return nl({ type: "rgb", values: a });
}
const nA = ["mode", "contrastThreshold", "tonalOffset"],
  W3 = {
    text: { primary: "rgba(0, 0, 0, 0.87)", secondary: "rgba(0, 0, 0, 0.6)", disabled: "rgba(0, 0, 0, 0.38)" },
    divider: "rgba(0, 0, 0, 0.12)",
    background: { paper: bu.white, default: bu.white },
    action: {
      active: "rgba(0, 0, 0, 0.54)",
      hover: "rgba(0, 0, 0, 0.04)",
      hoverOpacity: 0.04,
      selected: "rgba(0, 0, 0, 0.08)",
      selectedOpacity: 0.08,
      disabled: "rgba(0, 0, 0, 0.26)",
      disabledBackground: "rgba(0, 0, 0, 0.12)",
      disabledOpacity: 0.38,
      focus: "rgba(0, 0, 0, 0.12)",
      focusOpacity: 0.12,
      activatedOpacity: 0.12,
    },
  },
  w1 = {
    text: {
      primary: bu.white,
      secondary: "rgba(255, 255, 255, 0.7)",
      disabled: "rgba(255, 255, 255, 0.5)",
      icon: "rgba(255, 255, 255, 0.5)",
    },
    divider: "rgba(255, 255, 255, 0.12)",
    background: { paper: "#121212", default: "#121212" },
    action: {
      active: bu.white,
      hover: "rgba(255, 255, 255, 0.08)",
      hoverOpacity: 0.08,
      selected: "rgba(255, 255, 255, 0.16)",
      selectedOpacity: 0.16,
      disabled: "rgba(255, 255, 255, 0.3)",
      disabledBackground: "rgba(255, 255, 255, 0.12)",
      disabledOpacity: 0.38,
      focus: "rgba(255, 255, 255, 0.12)",
      focusOpacity: 0.12,
      activatedOpacity: 0.24,
    },
  };
function G3(e, t, n, r) {
  const o = r.light || r,
    i = r.dark || r * 1.5;
  e[t] ||
    (e.hasOwnProperty(n)
      ? (e[t] = e[n])
      : t === "light"
        ? (e.light = ff(e.main, o))
        : t === "dark" && (e.dark = df(e.main, i)));
}
function rA(e = "light") {
  return e === "dark"
    ? { main: Rs[200], light: Rs[50], dark: Rs[400] }
    : { main: Rs[700], light: Rs[400], dark: Rs[800] };
}
function oA(e = "light") {
  return e === "dark"
    ? { main: Ds[200], light: Ds[50], dark: Ds[400] }
    : { main: Ds[500], light: Ds[300], dark: Ds[700] };
}
function iA(e = "light") {
  return e === "dark"
    ? { main: _s[500], light: _s[300], dark: _s[700] }
    : { main: _s[700], light: _s[400], dark: _s[800] };
}
function sA(e = "light") {
  return e === "dark"
    ? { main: Is[400], light: Is[300], dark: Is[700] }
    : { main: Is[700], light: Is[500], dark: Is[900] };
}
function aA(e = "light") {
  return e === "dark"
    ? { main: Os[400], light: Os[300], dark: Os[700] }
    : { main: Os[800], light: Os[500], dark: Os[900] };
}
function lA(e = "light") {
  return e === "dark"
    ? { main: ml[400], light: ml[300], dark: ml[700] }
    : { main: "#ed6c02", light: ml[500], dark: ml[900] };
}
function uA(e) {
  const { mode: t = "light", contrastThreshold: n = 3, tonalOffset: r = 0.2 } = e,
    o = ee(e, nA),
    i = e.primary || rA(t),
    s = e.secondary || oA(t),
    a = e.error || iA(t),
    l = e.info || sA(t),
    u = e.success || aA(t),
    c = e.warning || lA(t);
  function d(v) {
    return GP(v, w1.text.primary) >= n ? w1.text.primary : W3.text.primary;
  }
  const p = ({ color: v, name: C, mainShade: y = 500, lightShade: g = 300, darkShade: x = 700 }) => {
      if (((v = S({}, v)), !v.main && v[y] && (v.main = v[y]), !v.hasOwnProperty("main")))
        throw new Error(Fo(11, C ? ` (${C})` : "", y));
      if (typeof v.main != "string") throw new Error(Fo(12, C ? ` (${C})` : "", JSON.stringify(v.main)));
      return G3(v, "light", g, r), G3(v, "dark", x, r), v.contrastText || (v.contrastText = d(v.main)), v;
    },
    h = { dark: w1, light: W3 };
  return Cn(
    S(
      {
        common: S({}, bu),
        mode: t,
        primary: p({ color: i, name: "primary" }),
        secondary: p({ color: s, name: "secondary", mainShade: "A400", lightShade: "A200", darkShade: "A700" }),
        error: p({ color: a, name: "error" }),
        warning: p({ color: c, name: "warning" }),
        info: p({ color: l, name: "info" }),
        success: p({ color: u, name: "success" }),
        grey: IT,
        contrastThreshold: n,
        getContrastText: d,
        augmentColor: p,
        tonalOffset: r,
      },
      h[t]
    ),
    o
  );
}
const cA = [
  "fontFamily",
  "fontSize",
  "fontWeightLight",
  "fontWeightRegular",
  "fontWeightMedium",
  "fontWeightBold",
  "htmlFontSize",
  "allVariants",
  "pxToRem",
];
function dA(e) {
  return Math.round(e * 1e5) / 1e5;
}
const U3 = { textTransform: "uppercase" },
  Y3 = '"Roboto", "Helvetica", "Arial", sans-serif';
function fA(e, t) {
  const n = typeof t == "function" ? t(e) : t,
    {
      fontFamily: r = Y3,
      fontSize: o = 14,
      fontWeightLight: i = 300,
      fontWeightRegular: s = 400,
      fontWeightMedium: a = 500,
      fontWeightBold: l = 700,
      htmlFontSize: u = 16,
      allVariants: c,
      pxToRem: d,
    } = n,
    p = ee(n, cA),
    h = o / 14,
    m = d || ((y) => `${(y / u) * h}rem`),
    v = (y, g, x, w, k) =>
      S(
        { fontFamily: r, fontWeight: y, fontSize: m(g), lineHeight: x },
        r === Y3 ? { letterSpacing: `${dA(w / g)}em` } : {},
        k,
        c
      ),
    C = {
      h1: v(i, 96, 1.167, -1.5),
      h2: v(i, 60, 1.2, -0.5),
      h3: v(s, 48, 1.167, 0),
      h4: v(s, 34, 1.235, 0.25),
      h5: v(s, 24, 1.334, 0),
      h6: v(a, 20, 1.6, 0.15),
      subtitle1: v(s, 16, 1.75, 0.15),
      subtitle2: v(a, 14, 1.57, 0.1),
      body1: v(s, 16, 1.5, 0.15),
      body2: v(s, 14, 1.43, 0.15),
      button: v(a, 14, 1.75, 0.4, U3),
      caption: v(s, 12, 1.66, 0.4),
      overline: v(s, 12, 2.66, 1, U3),
      inherit: {
        fontFamily: "inherit",
        fontWeight: "inherit",
        fontSize: "inherit",
        lineHeight: "inherit",
        letterSpacing: "inherit",
      },
    };
  return Cn(
    S(
      {
        htmlFontSize: u,
        pxToRem: m,
        fontFamily: r,
        fontSize: o,
        fontWeightLight: i,
        fontWeightRegular: s,
        fontWeightMedium: a,
        fontWeightBold: l,
      },
      C
    ),
    p,
    { clone: !1 }
  );
}
const pA = 0.2,
  hA = 0.14,
  mA = 0.12;
function Et(...e) {
  return [
    `${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pA})`,
    `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${hA})`,
    `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mA})`,
  ].join(",");
}
const gA = [
    "none",
    Et(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0),
    Et(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0),
    Et(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0),
    Et(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0),
    Et(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0),
    Et(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0),
    Et(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1),
    Et(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2),
    Et(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2),
    Et(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3),
    Et(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3),
    Et(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4),
    Et(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4),
    Et(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4),
    Et(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5),
    Et(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5),
    Et(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5),
    Et(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6),
    Et(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6),
    Et(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7),
    Et(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7),
    Et(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7),
    Et(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8),
    Et(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8),
  ],
  yA = ["duration", "easing", "delay"],
  vA = {
    easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
    easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
    easeIn: "cubic-bezier(0.4, 0, 1, 1)",
    sharp: "cubic-bezier(0.4, 0, 0.6, 1)",
  },
  xA = {
    shortest: 150,
    shorter: 200,
    short: 250,
    standard: 300,
    complex: 375,
    enteringScreen: 225,
    leavingScreen: 195,
  };
function K3(e) {
  return `${Math.round(e)}ms`;
}
function bA(e) {
  if (!e) return 0;
  const t = e / 36;
  return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
}
function CA(e) {
  const t = S({}, vA, e.easing),
    n = S({}, xA, e.duration);
  return S(
    {
      getAutoHeightDuration: bA,
      create: (o = ["all"], i = {}) => {
        const { duration: s = n.standard, easing: a = t.easeInOut, delay: l = 0 } = i;
        return (
          ee(i, yA),
          (Array.isArray(o) ? o : [o])
            .map((u) => `${u} ${typeof s == "string" ? s : K3(s)} ${a} ${typeof l == "string" ? l : K3(l)}`)
            .join(",")
        );
      },
    },
    e,
    { easing: t, duration: n }
  );
}
const wA = {
    mobileStepper: 1e3,
    fab: 1050,
    speedDial: 1050,
    appBar: 1100,
    drawer: 1200,
    modal: 1300,
    snackbar: 1400,
    tooltip: 1500,
  },
  SA = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
function Ct(e = {}, ...t) {
  const { mixins: n = {}, palette: r = {}, transitions: o = {}, typography: i = {} } = e,
    s = ee(e, SA);
  if (e.vars) throw new Error(Fo(18));
  const a = uA(r),
    l = ac(e);
  let u = Cn(l, {
    mixins: HP(l.breakpoints, n),
    palette: a,
    shadows: gA.slice(),
    typography: fA(a, i),
    transitions: CA(o),
    zIndex: S({}, wA),
  });
  return (
    (u = Cn(u, s)),
    (u = t.reduce((c, d) => Cn(c, d), u)),
    (u.unstable_sxConfig = S({}, sc, s == null ? void 0 : s.unstable_sxConfig)),
    (u.unstable_sx = function (d) {
      return el({ sx: d, theme: this });
    }),
    u
  );
}
function kA(e) {
  return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
}
function TA(e) {
  return parseFloat(e);
}
const Gp = Ct();
function Re() {
  const e = tl(Gp);
  return e[us] || e;
}
function ke({ props: e, name: t }) {
  return Wv({ props: e, name: t, defaultTheme: Gp, themeId: us });
}
var uc = {},
  S1 = { exports: {} },
  X3;
function MA() {
  return (
    X3 ||
      ((X3 = 1),
      (function (e) {
        function t(n, r) {
          if (n == null) return {};
          var o = {};
          for (var i in n)
            if (Object.prototype.hasOwnProperty.call(n, i)) {
              if (r.indexOf(i) >= 0) continue;
              o[i] = n[i];
            }
          return o;
        }
        (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
      })(S1)),
    S1.exports
  );
}
const a4 = Wo(HM),
  EA = Wo(zM),
  PA = Wo(XM),
  AA = Wo(qE),
  _A = Wo(LE),
  DA = Wo(HE);
var rl = W2;
Object.defineProperty(uc, "__esModule", { value: !0 });
var RA = (uc.default = GA);
uc.shouldForwardProp = Od;
uc.systemDefaultTheme = void 0;
var tr = rl(kv()),
  Yh = rl(MA()),
  q3 = BA(a4),
  IA = EA;
rl(PA);
rl(AA);
var OA = rl(_A),
  FA = rl(DA);
const LA = ["ownerState"],
  NA = ["variants"],
  $A = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
function l4(e) {
  if (typeof WeakMap != "function") return null;
  var t = new WeakMap(),
    n = new WeakMap();
  return (l4 = function (r) {
    return r ? n : t;
  })(e);
}
function BA(e, t) {
  if (e && e.__esModule) return e;
  if (e === null || (typeof e != "object" && typeof e != "function")) return { default: e };
  var n = l4(t);
  if (n && n.has(e)) return n.get(e);
  var r = { __proto__: null },
    o = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var i in e)
    if (i !== "default" && Object.prototype.hasOwnProperty.call(e, i)) {
      var s = o ? Object.getOwnPropertyDescriptor(e, i) : null;
      s && (s.get || s.set) ? Object.defineProperty(r, i, s) : (r[i] = e[i]);
    }
  return (r.default = e), n && n.set(e, r), r;
}
function jA(e) {
  return Object.keys(e).length === 0;
}
function VA(e) {
  return typeof e == "string" && e.charCodeAt(0) > 96;
}
function Od(e) {
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
}
const HA = (uc.systemDefaultTheme = (0, OA.default)()),
  zA = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
function $c({ defaultTheme: e, theme: t, themeId: n }) {
  return jA(t) ? e : t[n] || t;
}
function WA(e) {
  return e ? (t, n) => n[e] : null;
}
function Fd(e, t) {
  let { ownerState: n } = t,
    r = (0, Yh.default)(t, LA);
  const o = typeof e == "function" ? e((0, tr.default)({ ownerState: n }, r)) : e;
  if (Array.isArray(o)) return o.flatMap((i) => Fd(i, (0, tr.default)({ ownerState: n }, r)));
  if (o && typeof o == "object" && Array.isArray(o.variants)) {
    const { variants: i = [] } = o;
    let a = (0, Yh.default)(o, NA);
    return (
      i.forEach((l) => {
        let u = !0;
        typeof l.props == "function"
          ? (u = l.props((0, tr.default)({ ownerState: n }, r, n)))
          : Object.keys(l.props).forEach((c) => {
              (n == null ? void 0 : n[c]) !== l.props[c] && r[c] !== l.props[c] && (u = !1);
            }),
          u &&
            (Array.isArray(a) || (a = [a]),
            a.push(typeof l.style == "function" ? l.style((0, tr.default)({ ownerState: n }, r, n)) : l.style));
      }),
      a
    );
  }
  return o;
}
function GA(e = {}) {
  const { themeId: t, defaultTheme: n = HA, rootShouldForwardProp: r = Od, slotShouldForwardProp: o = Od } = e,
    i = (s) =>
      (0, FA.default)((0, tr.default)({}, s, { theme: $c((0, tr.default)({}, s, { defaultTheme: n, themeId: t })) }));
  return (
    (i.__mui_systemSx = !0),
    (s, a = {}) => {
      (0, q3.internal_processStyles)(s, (k) => k.filter((M) => !(M != null && M.__mui_systemSx)));
      const { name: l, slot: u, skipVariantsResolver: c, skipSx: d, overridesResolver: p = WA(zA(u)) } = a,
        h = (0, Yh.default)(a, $A),
        m = c !== void 0 ? c : (u && u !== "Root" && u !== "root") || !1,
        v = d || !1;
      let C,
        y = Od;
      u === "Root" || u === "root" ? (y = r) : u ? (y = o) : VA(s) && (y = void 0);
      const g = (0, q3.default)(s, (0, tr.default)({ shouldForwardProp: y, label: C }, h)),
        x = (k) =>
          (typeof k == "function" && k.__emotion_real !== k) || (0, IA.isPlainObject)(k)
            ? (M) => Fd(k, (0, tr.default)({}, M, { theme: $c({ theme: M.theme, defaultTheme: n, themeId: t }) }))
            : k,
        w = (k, ...M) => {
          let T = x(k);
          const P = M ? M.map(x) : [];
          l &&
            p &&
            P.push((R) => {
              const L = $c((0, tr.default)({}, R, { defaultTheme: n, themeId: t }));
              if (!L.components || !L.components[l] || !L.components[l].styleOverrides) return null;
              const F = L.components[l].styleOverrides,
                O = {};
              return (
                Object.entries(F).forEach(([E, B]) => {
                  O[E] = Fd(B, (0, tr.default)({}, R, { theme: L }));
                }),
                p(R, O)
              );
            }),
            l &&
              !m &&
              P.push((R) => {
                var L;
                const F = $c((0, tr.default)({}, R, { defaultTheme: n, themeId: t })),
                  O = F == null || (L = F.components) == null || (L = L[l]) == null ? void 0 : L.variants;
                return Fd({ variants: O }, (0, tr.default)({}, R, { theme: F }));
              }),
            v || P.push(i);
          const A = P.length - M.length;
          if (Array.isArray(k) && A > 0) {
            const R = new Array(A).fill("");
            (T = [...k, ...R]), (T.raw = [...k.raw, ...R]);
          }
          const D = g(T, ...P);
          return s.muiName && (D.muiName = s.muiName), D;
        };
      return g.withConfig && (w.withConfig = g.withConfig), w;
    }
  );
}
function ol(e) {
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
}
const vn = (e) => ol(e) && e !== "classes",
  W = RA({ themeId: us, defaultTheme: Gp, rootShouldForwardProp: vn }),
  UA = ["theme"];
function Oa(e) {
  let { theme: t } = e,
    n = ee(e, UA);
  const r = t[us];
  return f.jsx(IP, S({}, n, { themeId: r ? us : void 0, theme: r || t }));
}
const Z3 = (e) => {
  let t;
  return e < 1 ? (t = 5.11916 * e ** 2) : (t = 4.5 * Math.log(e + 1) + 2), (t / 100).toFixed(2);
};
function YA(e) {
  return Ae("MuiSvgIcon", e);
}
Se("MuiSvgIcon", [
  "root",
  "colorPrimary",
  "colorSecondary",
  "colorAction",
  "colorError",
  "colorDisabled",
  "fontSizeInherit",
  "fontSizeSmall",
  "fontSizeMedium",
  "fontSizeLarge",
]);
const KA = [
    "children",
    "className",
    "color",
    "component",
    "fontSize",
    "htmlColor",
    "inheritViewBox",
    "titleAccess",
    "viewBox",
  ],
  XA = (e) => {
    const { color: t, fontSize: n, classes: r } = e,
      o = { root: ["root", t !== "inherit" && `color${Q(t)}`, `fontSize${Q(n)}`] };
    return Ee(o, YA, r);
  },
  qA = W("svg", {
    name: "MuiSvgIcon",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.color !== "inherit" && t[`color${Q(n.color)}`], t[`fontSize${Q(n.fontSize)}`]];
    },
  })(({ theme: e, ownerState: t }) => {
    var n, r, o, i, s, a, l, u, c, d, p, h, m;
    return {
      userSelect: "none",
      width: "1em",
      height: "1em",
      display: "inline-block",
      fill: t.hasSvgAsChild ? void 0 : "currentColor",
      flexShrink: 0,
      transition:
        (n = e.transitions) == null || (r = n.create) == null
          ? void 0
          : r.call(n, "fill", {
              duration: (o = e.transitions) == null || (o = o.duration) == null ? void 0 : o.shorter,
            }),
      fontSize: {
        inherit: "inherit",
        small: ((i = e.typography) == null || (s = i.pxToRem) == null ? void 0 : s.call(i, 20)) || "1.25rem",
        medium: ((a = e.typography) == null || (l = a.pxToRem) == null ? void 0 : l.call(a, 24)) || "1.5rem",
        large: ((u = e.typography) == null || (c = u.pxToRem) == null ? void 0 : c.call(u, 35)) || "2.1875rem",
      }[t.fontSize],
      color:
        (d = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null
          ? d
          : {
              action: (h = (e.vars || e).palette) == null || (h = h.action) == null ? void 0 : h.active,
              disabled: (m = (e.vars || e).palette) == null || (m = m.action) == null ? void 0 : m.disabled,
              inherit: void 0,
            }[t.color],
    };
  }),
  Kh = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiSvgIcon" }),
      {
        children: o,
        className: i,
        color: s = "inherit",
        component: a = "svg",
        fontSize: l = "medium",
        htmlColor: u,
        inheritViewBox: c = !1,
        titleAccess: d,
        viewBox: p = "0 0 24 24",
      } = r,
      h = ee(r, KA),
      m = b.isValidElement(o) && o.type === "svg",
      v = S({}, r, {
        color: s,
        component: a,
        fontSize: l,
        instanceFontSize: t.fontSize,
        inheritViewBox: c,
        viewBox: p,
        hasSvgAsChild: m,
      }),
      C = {};
    c || (C.viewBox = p);
    const y = XA(v);
    return f.jsxs(
      qA,
      S(
        {
          as: a,
          className: ue(y.root, i),
          focusable: "false",
          color: u,
          "aria-hidden": d ? void 0 : !0,
          role: d ? "img" : void 0,
          ref: n,
        },
        C,
        h,
        m && o.props,
        { ownerState: v, children: [m ? o.props.children : o, d ? f.jsx("title", { children: d }) : null] }
      )
    );
  });
Kh.muiName = "SvgIcon";
function nn(e, t) {
  function n(r, o) {
    return f.jsx(Kh, S({ "data-testid": `${t}Icon`, ref: o }, r, { children: e }));
  }
  return (n.muiName = Kh.muiName), b.memo(b.forwardRef(n));
}
const ZA = {
    configure: (e) => {
      j2.configure(e);
    },
  },
  JA = Object.freeze(
    Object.defineProperty(
      {
        __proto__: null,
        capitalize: Q,
        createChainedFunction: uf,
        createSvgIcon: nn,
        debounce: Vp,
        deprecatedPropType: pP,
        isMuiElement: Xl,
        ownerDocument: Dt,
        ownerWindow: ao,
        requirePropFactory: hP,
        setRef: cf,
        unstable_ClassNameGenerator: ZA,
        unstable_useEnhancedEffect: Kt,
        unstable_useId: po,
        unsupportedProp: gP,
        useControlled: Sn,
        useEventCallback: Me,
        useForkRef: tt,
        useIsFocusVisible: lc,
      },
      Symbol.toStringTag,
      { value: "Module" }
    )
  );
var yt = {};
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var K2 = Symbol.for("react.element"),
  X2 = Symbol.for("react.portal"),
  Up = Symbol.for("react.fragment"),
  Yp = Symbol.for("react.strict_mode"),
  Kp = Symbol.for("react.profiler"),
  Xp = Symbol.for("react.provider"),
  qp = Symbol.for("react.context"),
  QA = Symbol.for("react.server_context"),
  Zp = Symbol.for("react.forward_ref"),
  Jp = Symbol.for("react.suspense"),
  Qp = Symbol.for("react.suspense_list"),
  e0 = Symbol.for("react.memo"),
  t0 = Symbol.for("react.lazy"),
  e_ = Symbol.for("react.offscreen"),
  u4;
u4 = Symbol.for("react.module.reference");
function Cr(e) {
  if (typeof e == "object" && e !== null) {
    var t = e.$$typeof;
    switch (t) {
      case K2:
        switch (((e = e.type), e)) {
          case Up:
          case Kp:
          case Yp:
          case Jp:
          case Qp:
            return e;
          default:
            switch (((e = e && e.$$typeof), e)) {
              case QA:
              case qp:
              case Zp:
              case t0:
              case e0:
              case Xp:
                return e;
              default:
                return t;
            }
        }
      case X2:
        return t;
    }
  }
}
yt.ContextConsumer = qp;
yt.ContextProvider = Xp;
yt.Element = K2;
yt.ForwardRef = Zp;
yt.Fragment = Up;
yt.Lazy = t0;
yt.Memo = e0;
yt.Portal = X2;
yt.Profiler = Kp;
yt.StrictMode = Yp;
yt.Suspense = Jp;
yt.SuspenseList = Qp;
yt.isAsyncMode = function () {
  return !1;
};
yt.isConcurrentMode = function () {
  return !1;
};
yt.isContextConsumer = function (e) {
  return Cr(e) === qp;
};
yt.isContextProvider = function (e) {
  return Cr(e) === Xp;
};
yt.isElement = function (e) {
  return typeof e == "object" && e !== null && e.$$typeof === K2;
};
yt.isForwardRef = function (e) {
  return Cr(e) === Zp;
};
yt.isFragment = function (e) {
  return Cr(e) === Up;
};
yt.isLazy = function (e) {
  return Cr(e) === t0;
};
yt.isMemo = function (e) {
  return Cr(e) === e0;
};
yt.isPortal = function (e) {
  return Cr(e) === X2;
};
yt.isProfiler = function (e) {
  return Cr(e) === Kp;
};
yt.isStrictMode = function (e) {
  return Cr(e) === Yp;
};
yt.isSuspense = function (e) {
  return Cr(e) === Jp;
};
yt.isSuspenseList = function (e) {
  return Cr(e) === Qp;
};
yt.isValidElementType = function (e) {
  return (
    typeof e == "string" ||
    typeof e == "function" ||
    e === Up ||
    e === Kp ||
    e === Yp ||
    e === Jp ||
    e === Qp ||
    e === e_ ||
    (typeof e == "object" &&
      e !== null &&
      (e.$$typeof === t0 ||
        e.$$typeof === e0 ||
        e.$$typeof === Xp ||
        e.$$typeof === qp ||
        e.$$typeof === Zp ||
        e.$$typeof === u4 ||
        e.getModuleId !== void 0))
  );
};
yt.typeOf = Cr;
function t_(e) {
  return ke;
}
function Xh(e, t) {
  return (
    (Xh = Object.setPrototypeOf
      ? Object.setPrototypeOf.bind()
      : function (r, o) {
          return (r.__proto__ = o), r;
        }),
    Xh(e, t)
  );
}
function q2(e, t) {
  (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), Xh(e, t);
}
function n_(e, t) {
  return e.classList
    ? !!t && e.classList.contains(t)
    : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
}
function r_(e, t) {
  e.classList
    ? e.classList.add(t)
    : n_(e, t) ||
      (typeof e.className == "string"
        ? (e.className = e.className + " " + t)
        : e.setAttribute("class", ((e.className && e.className.baseVal) || "") + " " + t));
}
function J3(e, t) {
  return e
    .replace(new RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1")
    .replace(/\s+/g, " ")
    .replace(/^\s*|\s*$/g, "");
}
function o_(e, t) {
  e.classList
    ? e.classList.remove(t)
    : typeof e.className == "string"
      ? (e.className = J3(e.className, t))
      : e.setAttribute("class", J3((e.className && e.className.baseVal) || "", t));
}
var c4 = { exports: {} },
  Xn = {},
  d4 = { exports: {} },
  f4 = {};
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ (function (e) {
  function t(_, I) {
    var $ = _.length;
    _.push(I);
    e: for (; 0 < $; ) {
      var J = ($ - 1) >>> 1,
        oe = _[J];
      if (0 < o(oe, I)) (_[J] = I), (_[$] = oe), ($ = J);
      else break e;
    }
  }
  function n(_) {
    return _.length === 0 ? null : _[0];
  }
  function r(_) {
    if (_.length === 0) return null;
    var I = _[0],
      $ = _.pop();
    if ($ !== I) {
      _[0] = $;
      e: for (var J = 0, oe = _.length, pe = oe >>> 1; J < pe; ) {
        var z = 2 * (J + 1) - 1,
          ae = _[z],
          me = z + 1,
          X = _[me];
        if (0 > o(ae, $))
          me < oe && 0 > o(X, ae) ? ((_[J] = X), (_[me] = $), (J = me)) : ((_[J] = ae), (_[z] = $), (J = z));
        else if (me < oe && 0 > o(X, $)) (_[J] = X), (_[me] = $), (J = me);
        else break e;
      }
    }
    return I;
  }
  function o(_, I) {
    var $ = _.sortIndex - I.sortIndex;
    return $ !== 0 ? $ : _.id - I.id;
  }
  if (typeof performance == "object" && typeof performance.now == "function") {
    var i = performance;
    e.unstable_now = function () {
      return i.now();
    };
  } else {
    var s = Date,
      a = s.now();
    e.unstable_now = function () {
      return s.now() - a;
    };
  }
  var l = [],
    u = [],
    c = 1,
    d = null,
    p = 3,
    h = !1,
    m = !1,
    v = !1,
    C = typeof setTimeout == "function" ? setTimeout : null,
    y = typeof clearTimeout == "function" ? clearTimeout : null,
    g = typeof setImmediate < "u" ? setImmediate : null;
  typeof navigator < "u" &&
    navigator.scheduling !== void 0 &&
    navigator.scheduling.isInputPending !== void 0 &&
    navigator.scheduling.isInputPending.bind(navigator.scheduling);
  function x(_) {
    for (var I = n(u); I !== null; ) {
      if (I.callback === null) r(u);
      else if (I.startTime <= _) r(u), (I.sortIndex = I.expirationTime), t(l, I);
      else break;
      I = n(u);
    }
  }
  function w(_) {
    if (((v = !1), x(_), !m))
      if (n(l) !== null) (m = !0), B(k);
      else {
        var I = n(u);
        I !== null && j(w, I.startTime - _);
      }
  }
  function k(_, I) {
    (m = !1), v && ((v = !1), y(P), (P = -1)), (h = !0);
    var $ = p;
    try {
      for (x(I), d = n(l); d !== null && (!(d.expirationTime > I) || (_ && !R())); ) {
        var J = d.callback;
        if (typeof J == "function") {
          (d.callback = null), (p = d.priorityLevel);
          var oe = J(d.expirationTime <= I);
          (I = e.unstable_now()), typeof oe == "function" ? (d.callback = oe) : d === n(l) && r(l), x(I);
        } else r(l);
        d = n(l);
      }
      if (d !== null) var pe = !0;
      else {
        var z = n(u);
        z !== null && j(w, z.startTime - I), (pe = !1);
      }
      return pe;
    } finally {
      (d = null), (p = $), (h = !1);
    }
  }
  var M = !1,
    T = null,
    P = -1,
    A = 5,
    D = -1;
  function R() {
    return !(e.unstable_now() - D < A);
  }
  function L() {
    if (T !== null) {
      var _ = e.unstable_now();
      D = _;
      var I = !0;
      try {
        I = T(!0, _);
      } finally {
        I ? F() : ((M = !1), (T = null));
      }
    } else M = !1;
  }
  var F;
  if (typeof g == "function")
    F = function () {
      g(L);
    };
  else if (typeof MessageChannel < "u") {
    var O = new MessageChannel(),
      E = O.port2;
    (O.port1.onmessage = L),
      (F = function () {
        E.postMessage(null);
      });
  } else
    F = function () {
      C(L, 0);
    };
  function B(_) {
    (T = _), M || ((M = !0), F());
  }
  function j(_, I) {
    P = C(function () {
      _(e.unstable_now());
    }, I);
  }
  (e.unstable_IdlePriority = 5),
    (e.unstable_ImmediatePriority = 1),
    (e.unstable_LowPriority = 4),
    (e.unstable_NormalPriority = 3),
    (e.unstable_Profiling = null),
    (e.unstable_UserBlockingPriority = 2),
    (e.unstable_cancelCallback = function (_) {
      _.callback = null;
    }),
    (e.unstable_continueExecution = function () {
      m || h || ((m = !0), B(k));
    }),
    (e.unstable_forceFrameRate = function (_) {
      0 > _ || 125 < _
        ? console.error(
            "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
          )
        : (A = 0 < _ ? Math.floor(1e3 / _) : 5);
    }),
    (e.unstable_getCurrentPriorityLevel = function () {
      return p;
    }),
    (e.unstable_getFirstCallbackNode = function () {
      return n(l);
    }),
    (e.unstable_next = function (_) {
      switch (p) {
        case 1:
        case 2:
        case 3:
          var I = 3;
          break;
        default:
          I = p;
      }
      var $ = p;
      p = I;
      try {
        return _();
      } finally {
        p = $;
      }
    }),
    (e.unstable_pauseExecution = function () {}),
    (e.unstable_requestPaint = function () {}),
    (e.unstable_runWithPriority = function (_, I) {
      switch (_) {
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
          break;
        default:
          _ = 3;
      }
      var $ = p;
      p = _;
      try {
        return I();
      } finally {
        p = $;
      }
    }),
    (e.unstable_scheduleCallback = function (_, I, $) {
      var J = e.unstable_now();
      switch (
        (typeof $ == "object" && $ !== null
          ? (($ = $.delay), ($ = typeof $ == "number" && 0 < $ ? J + $ : J))
          : ($ = J),
        _)
      ) {
        case 1:
          var oe = -1;
          break;
        case 2:
          oe = 250;
          break;
        case 5:
          oe = 1073741823;
          break;
        case 4:
          oe = 1e4;
          break;
        default:
          oe = 5e3;
      }
      return (
        (oe = $ + oe),
        (_ = { id: c++, callback: I, priorityLevel: _, startTime: $, expirationTime: oe, sortIndex: -1 }),
        $ > J
          ? ((_.sortIndex = $), t(u, _), n(l) === null && _ === n(u) && (v ? (y(P), (P = -1)) : (v = !0), j(w, $ - J)))
          : ((_.sortIndex = oe), t(l, _), m || h || ((m = !0), B(k))),
        _
      );
    }),
    (e.unstable_shouldYield = R),
    (e.unstable_wrapCallback = function (_) {
      var I = p;
      return function () {
        var $ = p;
        p = I;
        try {
          return _.apply(this, arguments);
        } finally {
          p = $;
        }
      };
    });
})(f4);
d4.exports = f4;
var i_ = d4.exports;
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var s_ = b,
  Un = i_;
function ce(e) {
  for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
    t += "&args[]=" + encodeURIComponent(arguments[n]);
  return (
    "Minified React error #" +
    e +
    "; visit " +
    t +
    " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
  );
}
var p4 = new Set(),
  ku = {};
function bs(e, t) {
  Fa(e, t), Fa(e + "Capture", t);
}
function Fa(e, t) {
  for (ku[e] = t, e = 0; e < t.length; e++) p4.add(t[e]);
}
var Lo = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"),
  qh = Object.prototype.hasOwnProperty,
  a_ =
    /^[: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]*$/,
  Q3 = {},
  e8 = {};
function l_(e) {
  return qh.call(e8, e) ? !0 : qh.call(Q3, e) ? !1 : a_.test(e) ? (e8[e] = !0) : ((Q3[e] = !0), !1);
}
function u_(e, t, n, r) {
  if (n !== null && n.type === 0) return !1;
  switch (typeof t) {
    case "function":
    case "symbol":
      return !0;
    case "boolean":
      return r
        ? !1
        : n !== null
          ? !n.acceptsBooleans
          : ((e = e.toLowerCase().slice(0, 5)), e !== "data-" && e !== "aria-");
    default:
      return !1;
  }
}
function c_(e, t, n, r) {
  if (t === null || typeof t > "u" || u_(e, t, n, r)) return !0;
  if (r) return !1;
  if (n !== null)
    switch (n.type) {
      case 3:
        return !t;
      case 4:
        return t === !1;
      case 5:
        return isNaN(t);
      case 6:
        return isNaN(t) || 1 > t;
    }
  return !1;
}
function Tn(e, t, n, r, o, i, s) {
  (this.acceptsBooleans = t === 2 || t === 3 || t === 4),
    (this.attributeName = r),
    (this.attributeNamespace = o),
    (this.mustUseProperty = n),
    (this.propertyName = e),
    (this.type = t),
    (this.sanitizeURL = i),
    (this.removeEmptyString = s);
}
var un = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style"
  .split(" ")
  .forEach(function (e) {
    un[e] = new Tn(e, 0, !1, e, null, !1, !1);
  });
[
  ["acceptCharset", "accept-charset"],
  ["className", "class"],
  ["htmlFor", "for"],
  ["httpEquiv", "http-equiv"],
].forEach(function (e) {
  var t = e[0];
  un[t] = new Tn(t, 1, !1, e[1], null, !1, !1);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function (e) {
  un[e] = new Tn(e, 2, !1, e.toLowerCase(), null, !1, !1);
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (e) {
  un[e] = new Tn(e, 2, !1, e, null, !1, !1);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope"
  .split(" ")
  .forEach(function (e) {
    un[e] = new Tn(e, 3, !1, e.toLowerCase(), null, !1, !1);
  });
["checked", "multiple", "muted", "selected"].forEach(function (e) {
  un[e] = new Tn(e, 3, !0, e, null, !1, !1);
});
["capture", "download"].forEach(function (e) {
  un[e] = new Tn(e, 4, !1, e, null, !1, !1);
});
["cols", "rows", "size", "span"].forEach(function (e) {
  un[e] = new Tn(e, 6, !1, e, null, !1, !1);
});
["rowSpan", "start"].forEach(function (e) {
  un[e] = new Tn(e, 5, !1, e.toLowerCase(), null, !1, !1);
});
var Z2 = /[\-:]([a-z])/g;
function J2(e) {
  return e[1].toUpperCase();
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height"
  .split(" ")
  .forEach(function (e) {
    var t = e.replace(Z2, J2);
    un[t] = new Tn(t, 1, !1, e, null, !1, !1);
  });
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (e) {
  var t = e.replace(Z2, J2);
  un[t] = new Tn(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
});
["xml:base", "xml:lang", "xml:space"].forEach(function (e) {
  var t = e.replace(Z2, J2);
  un[t] = new Tn(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
});
["tabIndex", "crossOrigin"].forEach(function (e) {
  un[e] = new Tn(e, 1, !1, e.toLowerCase(), null, !1, !1);
});
un.xlinkHref = new Tn("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
["src", "href", "action", "formAction"].forEach(function (e) {
  un[e] = new Tn(e, 1, !1, e.toLowerCase(), null, !0, !0);
});
function Q2(e, t, n, r) {
  var o = un.hasOwnProperty(t) ? un[t] : null;
  (o !== null
    ? o.type !== 0
    : r || !(2 < t.length) || (t[0] !== "o" && t[0] !== "O") || (t[1] !== "n" && t[1] !== "N")) &&
    (c_(t, n, o, r) && (n = null),
    r || o === null
      ? l_(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n))
      : o.mustUseProperty
        ? (e[o.propertyName] = n === null ? (o.type === 3 ? !1 : "") : n)
        : ((t = o.attributeName),
          (r = o.attributeNamespace),
          n === null
            ? e.removeAttribute(t)
            : ((o = o.type),
              (n = o === 3 || (o === 4 && n === !0) ? "" : "" + n),
              r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))));
}
var Uo = s_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
  Bc = Symbol.for("react.element"),
  qs = Symbol.for("react.portal"),
  Zs = Symbol.for("react.fragment"),
  eg = Symbol.for("react.strict_mode"),
  Zh = Symbol.for("react.profiler"),
  h4 = Symbol.for("react.provider"),
  m4 = Symbol.for("react.context"),
  tg = Symbol.for("react.forward_ref"),
  Jh = Symbol.for("react.suspense"),
  Qh = Symbol.for("react.suspense_list"),
  ng = Symbol.for("react.memo"),
  Jo = Symbol.for("react.lazy"),
  g4 = Symbol.for("react.offscreen"),
  t8 = Symbol.iterator;
function yl(e) {
  return e === null || typeof e != "object"
    ? null
    : ((e = (t8 && e[t8]) || e["@@iterator"]), typeof e == "function" ? e : null);
}
var Ot = Object.assign,
  k1;
function Hl(e) {
  if (k1 === void 0)
    try {
      throw Error();
    } catch (n) {
      var t = n.stack.trim().match(/\n( *(at )?)/);
      k1 = (t && t[1]) || "";
    }
  return (
    `
` +
    k1 +
    e
  );
}
var T1 = !1;
function M1(e, t) {
  if (!e || T1) return "";
  T1 = !0;
  var n = Error.prepareStackTrace;
  Error.prepareStackTrace = void 0;
  try {
    if (t)
      if (
        ((t = function () {
          throw Error();
        }),
        Object.defineProperty(t.prototype, "props", {
          set: function () {
            throw Error();
          },
        }),
        typeof Reflect == "object" && Reflect.construct)
      ) {
        try {
          Reflect.construct(t, []);
        } catch (u) {
          var r = u;
        }
        Reflect.construct(e, [], t);
      } else {
        try {
          t.call();
        } catch (u) {
          r = u;
        }
        e.call(t.prototype);
      }
    else {
      try {
        throw Error();
      } catch (u) {
        r = u;
      }
      e();
    }
  } catch (u) {
    if (u && r && typeof u.stack == "string") {
      for (
        var o = u.stack.split(`
`),
          i = r.stack.split(`
`),
          s = o.length - 1,
          a = i.length - 1;
        1 <= s && 0 <= a && o[s] !== i[a];

      )
        a--;
      for (; 1 <= s && 0 <= a; s--, a--)
        if (o[s] !== i[a]) {
          if (s !== 1 || a !== 1)
            do
              if ((s--, a--, 0 > a || o[s] !== i[a])) {
                var l =
                  `
` + o[s].replace(" at new ", " at ");
                return e.displayName && l.includes("<anonymous>") && (l = l.replace("<anonymous>", e.displayName)), l;
              }
            while (1 <= s && 0 <= a);
          break;
        }
    }
  } finally {
    (T1 = !1), (Error.prepareStackTrace = n);
  }
  return (e = e ? e.displayName || e.name : "") ? Hl(e) : "";
}
function d_(e) {
  switch (e.tag) {
    case 5:
      return Hl(e.type);
    case 16:
      return Hl("Lazy");
    case 13:
      return Hl("Suspense");
    case 19:
      return Hl("SuspenseList");
    case 0:
    case 2:
    case 15:
      return (e = M1(e.type, !1)), e;
    case 11:
      return (e = M1(e.type.render, !1)), e;
    case 1:
      return (e = M1(e.type, !0)), e;
    default:
      return "";
  }
}
function em(e) {
  if (e == null) return null;
  if (typeof e == "function") return e.displayName || e.name || null;
  if (typeof e == "string") return e;
  switch (e) {
    case Zs:
      return "Fragment";
    case qs:
      return "Portal";
    case Zh:
      return "Profiler";
    case eg:
      return "StrictMode";
    case Jh:
      return "Suspense";
    case Qh:
      return "SuspenseList";
  }
  if (typeof e == "object")
    switch (e.$$typeof) {
      case m4:
        return (e.displayName || "Context") + ".Consumer";
      case h4:
        return (e._context.displayName || "Context") + ".Provider";
      case tg:
        var t = e.render;
        return (
          (e = e.displayName),
          e || ((e = t.displayName || t.name || ""), (e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef")),
          e
        );
      case ng:
        return (t = e.displayName || null), t !== null ? t : em(e.type) || "Memo";
      case Jo:
        (t = e._payload), (e = e._init);
        try {
          return em(e(t));
        } catch {}
    }
  return null;
}
function f_(e) {
  var t = e.type;
  switch (e.tag) {
    case 24:
      return "Cache";
    case 9:
      return (t.displayName || "Context") + ".Consumer";
    case 10:
      return (t._context.displayName || "Context") + ".Provider";
    case 18:
      return "DehydratedFragment";
    case 11:
      return (
        (e = t.render),
        (e = e.displayName || e.name || ""),
        t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef")
      );
    case 7:
      return "Fragment";
    case 5:
      return t;
    case 4:
      return "Portal";
    case 3:
      return "Root";
    case 6:
      return "Text";
    case 16:
      return em(t);
    case 8:
      return t === eg ? "StrictMode" : "Mode";
    case 22:
      return "Offscreen";
    case 12:
      return "Profiler";
    case 21:
      return "Scope";
    case 13:
      return "Suspense";
    case 19:
      return "SuspenseList";
    case 25:
      return "TracingMarker";
    case 1:
    case 0:
    case 17:
    case 2:
    case 14:
    case 15:
      if (typeof t == "function") return t.displayName || t.name || null;
      if (typeof t == "string") return t;
  }
  return null;
}
function bi(e) {
  switch (typeof e) {
    case "boolean":
    case "number":
    case "string":
    case "undefined":
      return e;
    case "object":
      return e;
    default:
      return "";
  }
}
function y4(e) {
  var t = e.type;
  return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
function p_(e) {
  var t = y4(e) ? "checked" : "value",
    n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t),
    r = "" + e[t];
  if (!e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function") {
    var o = n.get,
      i = n.set;
    return (
      Object.defineProperty(e, t, {
        configurable: !0,
        get: function () {
          return o.call(this);
        },
        set: function (s) {
          (r = "" + s), i.call(this, s);
        },
      }),
      Object.defineProperty(e, t, { enumerable: n.enumerable }),
      {
        getValue: function () {
          return r;
        },
        setValue: function (s) {
          r = "" + s;
        },
        stopTracking: function () {
          (e._valueTracker = null), delete e[t];
        },
      }
    );
  }
}
function jc(e) {
  e._valueTracker || (e._valueTracker = p_(e));
}
function v4(e) {
  if (!e) return !1;
  var t = e._valueTracker;
  if (!t) return !0;
  var n = t.getValue(),
    r = "";
  return e && (r = y4(e) ? (e.checked ? "true" : "false") : e.value), (e = r), e !== n ? (t.setValue(e), !0) : !1;
}
function hf(e) {
  if (((e = e || (typeof document < "u" ? document : void 0)), typeof e > "u")) return null;
  try {
    return e.activeElement || e.body;
  } catch {
    return e.body;
  }
}
function tm(e, t) {
  var n = t.checked;
  return Ot({}, t, {
    defaultChecked: void 0,
    defaultValue: void 0,
    value: void 0,
    checked: n ?? e._wrapperState.initialChecked,
  });
}
function n8(e, t) {
  var n = t.defaultValue == null ? "" : t.defaultValue,
    r = t.checked != null ? t.checked : t.defaultChecked;
  (n = bi(t.value != null ? t.value : n)),
    (e._wrapperState = {
      initialChecked: r,
      initialValue: n,
      controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null,
    });
}
function x4(e, t) {
  (t = t.checked), t != null && Q2(e, "checked", t, !1);
}
function nm(e, t) {
  x4(e, t);
  var n = bi(t.value),
    r = t.type;
  if (n != null)
    r === "number"
      ? ((n === 0 && e.value === "") || e.value != n) && (e.value = "" + n)
      : e.value !== "" + n && (e.value = "" + n);
  else if (r === "submit" || r === "reset") {
    e.removeAttribute("value");
    return;
  }
  t.hasOwnProperty("value") ? rm(e, t.type, n) : t.hasOwnProperty("defaultValue") && rm(e, t.type, bi(t.defaultValue)),
    t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked);
}
function r8(e, t, n) {
  if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
    var r = t.type;
    if (!((r !== "submit" && r !== "reset") || (t.value !== void 0 && t.value !== null))) return;
    (t = "" + e._wrapperState.initialValue), n || t === e.value || (e.value = t), (e.defaultValue = t);
  }
  (n = e.name),
    n !== "" && (e.name = ""),
    (e.defaultChecked = !!e._wrapperState.initialChecked),
    n !== "" && (e.name = n);
}
function rm(e, t, n) {
  (t !== "number" || hf(e.ownerDocument) !== e) &&
    (n == null
      ? (e.defaultValue = "" + e._wrapperState.initialValue)
      : e.defaultValue !== "" + n && (e.defaultValue = "" + n));
}
var zl = Array.isArray;
function pa(e, t, n, r) {
  if (((e = e.options), t)) {
    t = {};
    for (var o = 0; o < n.length; o++) t["$" + n[o]] = !0;
    for (n = 0; n < e.length; n++)
      (o = t.hasOwnProperty("$" + e[n].value)),
        e[n].selected !== o && (e[n].selected = o),
        o && r && (e[n].defaultSelected = !0);
  } else {
    for (n = "" + bi(n), t = null, o = 0; o < e.length; o++) {
      if (e[o].value === n) {
        (e[o].selected = !0), r && (e[o].defaultSelected = !0);
        return;
      }
      t !== null || e[o].disabled || (t = e[o]);
    }
    t !== null && (t.selected = !0);
  }
}
function om(e, t) {
  if (t.dangerouslySetInnerHTML != null) throw Error(ce(91));
  return Ot({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue });
}
function o8(e, t) {
  var n = t.value;
  if (n == null) {
    if (((n = t.children), (t = t.defaultValue), n != null)) {
      if (t != null) throw Error(ce(92));
      if (zl(n)) {
        if (1 < n.length) throw Error(ce(93));
        n = n[0];
      }
      t = n;
    }
    t == null && (t = ""), (n = t);
  }
  e._wrapperState = { initialValue: bi(n) };
}
function b4(e, t) {
  var n = bi(t.value),
    r = bi(t.defaultValue);
  n != null &&
    ((n = "" + n),
    n !== e.value && (e.value = n),
    t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)),
    r != null && (e.defaultValue = "" + r);
}
function i8(e) {
  var t = e.textContent;
  t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t);
}
function C4(e) {
  switch (e) {
    case "svg":
      return "http://www.w3.org/2000/svg";
    case "math":
      return "http://www.w3.org/1998/Math/MathML";
    default:
      return "http://www.w3.org/1999/xhtml";
  }
}
function im(e, t) {
  return e == null || e === "http://www.w3.org/1999/xhtml"
    ? C4(t)
    : e === "http://www.w3.org/2000/svg" && t === "foreignObject"
      ? "http://www.w3.org/1999/xhtml"
      : e;
}
var Vc,
  w4 = (function (e) {
    return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction
      ? function (t, n, r, o) {
          MSApp.execUnsafeLocalFunction(function () {
            return e(t, n, r, o);
          });
        }
      : e;
  })(function (e, t) {
    if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t;
    else {
      for (
        Vc = Vc || document.createElement("div"),
          Vc.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>",
          t = Vc.firstChild;
        e.firstChild;

      )
        e.removeChild(e.firstChild);
      for (; t.firstChild; ) e.appendChild(t.firstChild);
    }
  });
function Tu(e, t) {
  if (t) {
    var n = e.firstChild;
    if (n && n === e.lastChild && n.nodeType === 3) {
      n.nodeValue = t;
      return;
    }
  }
  e.textContent = t;
}
var ql = {
    animationIterationCount: !0,
    aspectRatio: !0,
    borderImageOutset: !0,
    borderImageSlice: !0,
    borderImageWidth: !0,
    boxFlex: !0,
    boxFlexGroup: !0,
    boxOrdinalGroup: !0,
    columnCount: !0,
    columns: !0,
    flex: !0,
    flexGrow: !0,
    flexPositive: !0,
    flexShrink: !0,
    flexNegative: !0,
    flexOrder: !0,
    gridArea: !0,
    gridRow: !0,
    gridRowEnd: !0,
    gridRowSpan: !0,
    gridRowStart: !0,
    gridColumn: !0,
    gridColumnEnd: !0,
    gridColumnSpan: !0,
    gridColumnStart: !0,
    fontWeight: !0,
    lineClamp: !0,
    lineHeight: !0,
    opacity: !0,
    order: !0,
    orphans: !0,
    tabSize: !0,
    widows: !0,
    zIndex: !0,
    zoom: !0,
    fillOpacity: !0,
    floodOpacity: !0,
    stopOpacity: !0,
    strokeDasharray: !0,
    strokeDashoffset: !0,
    strokeMiterlimit: !0,
    strokeOpacity: !0,
    strokeWidth: !0,
  },
  h_ = ["Webkit", "ms", "Moz", "O"];
Object.keys(ql).forEach(function (e) {
  h_.forEach(function (t) {
    (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (ql[t] = ql[e]);
  });
});
function S4(e, t, n) {
  return t == null || typeof t == "boolean" || t === ""
    ? ""
    : n || typeof t != "number" || t === 0 || (ql.hasOwnProperty(e) && ql[e])
      ? ("" + t).trim()
      : t + "px";
}
function k4(e, t) {
  e = e.style;
  for (var n in t)
    if (t.hasOwnProperty(n)) {
      var r = n.indexOf("--") === 0,
        o = S4(n, t[n], r);
      n === "float" && (n = "cssFloat"), r ? e.setProperty(n, o) : (e[n] = o);
    }
}
var m_ = Ot(
  { menuitem: !0 },
  {
    area: !0,
    base: !0,
    br: !0,
    col: !0,
    embed: !0,
    hr: !0,
    img: !0,
    input: !0,
    keygen: !0,
    link: !0,
    meta: !0,
    param: !0,
    source: !0,
    track: !0,
    wbr: !0,
  }
);
function sm(e, t) {
  if (t) {
    if (m_[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(ce(137, e));
    if (t.dangerouslySetInnerHTML != null) {
      if (t.children != null) throw Error(ce(60));
      if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(ce(61));
    }
    if (t.style != null && typeof t.style != "object") throw Error(ce(62));
  }
}
function am(e, t) {
  if (e.indexOf("-") === -1) return typeof t.is == "string";
  switch (e) {
    case "annotation-xml":
    case "color-profile":
    case "font-face":
    case "font-face-src":
    case "font-face-uri":
    case "font-face-format":
    case "font-face-name":
    case "missing-glyph":
      return !1;
    default:
      return !0;
  }
}
var lm = null;
function rg(e) {
  return (
    (e = e.target || e.srcElement || window),
    e.correspondingUseElement && (e = e.correspondingUseElement),
    e.nodeType === 3 ? e.parentNode : e
  );
}
var um = null,
  ha = null,
  ma = null;
function s8(e) {
  if ((e = fc(e))) {
    if (typeof um != "function") throw Error(ce(280));
    var t = e.stateNode;
    t && ((t = s0(t)), um(e.stateNode, e.type, t));
  }
}
function T4(e) {
  ha ? (ma ? ma.push(e) : (ma = [e])) : (ha = e);
}
function M4() {
  if (ha) {
    var e = ha,
      t = ma;
    if (((ma = ha = null), s8(e), t)) for (e = 0; e < t.length; e++) s8(t[e]);
  }
}
function E4(e, t) {
  return e(t);
}
function P4() {}
var E1 = !1;
function A4(e, t, n) {
  if (E1) return e(t, n);
  E1 = !0;
  try {
    return E4(e, t, n);
  } finally {
    (E1 = !1), (ha !== null || ma !== null) && (P4(), M4());
  }
}
function Mu(e, t) {
  var n = e.stateNode;
  if (n === null) return null;
  var r = s0(n);
  if (r === null) return null;
  n = r[t];
  e: switch (t) {
    case "onClick":
    case "onClickCapture":
    case "onDoubleClick":
    case "onDoubleClickCapture":
    case "onMouseDown":
    case "onMouseDownCapture":
    case "onMouseMove":
    case "onMouseMoveCapture":
    case "onMouseUp":
    case "onMouseUpCapture":
    case "onMouseEnter":
      (r = !r.disabled) ||
        ((e = e.type), (r = !(e === "button" || e === "input" || e === "select" || e === "textarea"))),
        (e = !r);
      break e;
    default:
      e = !1;
  }
  if (e) return null;
  if (n && typeof n != "function") throw Error(ce(231, t, typeof n));
  return n;
}
var cm = !1;
if (Lo)
  try {
    var vl = {};
    Object.defineProperty(vl, "passive", {
      get: function () {
        cm = !0;
      },
    }),
      window.addEventListener("test", vl, vl),
      window.removeEventListener("test", vl, vl);
  } catch {
    cm = !1;
  }
function g_(e, t, n, r, o, i, s, a, l) {
  var u = Array.prototype.slice.call(arguments, 3);
  try {
    t.apply(n, u);
  } catch (c) {
    this.onError(c);
  }
}
var Zl = !1,
  mf = null,
  gf = !1,
  dm = null,
  y_ = {
    onError: function (e) {
      (Zl = !0), (mf = e);
    },
  };
function v_(e, t, n, r, o, i, s, a, l) {
  (Zl = !1), (mf = null), g_.apply(y_, arguments);
}
function x_(e, t, n, r, o, i, s, a, l) {
  if ((v_.apply(this, arguments), Zl)) {
    if (Zl) {
      var u = mf;
      (Zl = !1), (mf = null);
    } else throw Error(ce(198));
    gf || ((gf = !0), (dm = u));
  }
}
function Cs(e) {
  var t = e,
    n = e;
  if (e.alternate) for (; t.return; ) t = t.return;
  else {
    e = t;
    do (t = e), t.flags & 4098 && (n = t.return), (e = t.return);
    while (e);
  }
  return t.tag === 3 ? n : null;
}
function _4(e) {
  if (e.tag === 13) {
    var t = e.memoizedState;
    if ((t === null && ((e = e.alternate), e !== null && (t = e.memoizedState)), t !== null)) return t.dehydrated;
  }
  return null;
}
function a8(e) {
  if (Cs(e) !== e) throw Error(ce(188));
}
function b_(e) {
  var t = e.alternate;
  if (!t) {
    if (((t = Cs(e)), t === null)) throw Error(ce(188));
    return t !== e ? null : e;
  }
  for (var n = e, r = t; ; ) {
    var o = n.return;
    if (o === null) break;
    var i = o.alternate;
    if (i === null) {
      if (((r = o.return), r !== null)) {
        n = r;
        continue;
      }
      break;
    }
    if (o.child === i.child) {
      for (i = o.child; i; ) {
        if (i === n) return a8(o), e;
        if (i === r) return a8(o), t;
        i = i.sibling;
      }
      throw Error(ce(188));
    }
    if (n.return !== r.return) (n = o), (r = i);
    else {
      for (var s = !1, a = o.child; a; ) {
        if (a === n) {
          (s = !0), (n = o), (r = i);
          break;
        }
        if (a === r) {
          (s = !0), (r = o), (n = i);
          break;
        }
        a = a.sibling;
      }
      if (!s) {
        for (a = i.child; a; ) {
          if (a === n) {
            (s = !0), (n = i), (r = o);
            break;
          }
          if (a === r) {
            (s = !0), (r = i), (n = o);
            break;
          }
          a = a.sibling;
        }
        if (!s) throw Error(ce(189));
      }
    }
    if (n.alternate !== r) throw Error(ce(190));
  }
  if (n.tag !== 3) throw Error(ce(188));
  return n.stateNode.current === n ? e : t;
}
function D4(e) {
  return (e = b_(e)), e !== null ? R4(e) : null;
}
function R4(e) {
  if (e.tag === 5 || e.tag === 6) return e;
  for (e = e.child; e !== null; ) {
    var t = R4(e);
    if (t !== null) return t;
    e = e.sibling;
  }
  return null;
}
var I4 = Un.unstable_scheduleCallback,
  l8 = Un.unstable_cancelCallback,
  C_ = Un.unstable_shouldYield,
  w_ = Un.unstable_requestPaint,
  Bt = Un.unstable_now,
  S_ = Un.unstable_getCurrentPriorityLevel,
  og = Un.unstable_ImmediatePriority,
  O4 = Un.unstable_UserBlockingPriority,
  yf = Un.unstable_NormalPriority,
  k_ = Un.unstable_LowPriority,
  F4 = Un.unstable_IdlePriority,
  n0 = null,
  ro = null;
function T_(e) {
  if (ro && typeof ro.onCommitFiberRoot == "function")
    try {
      ro.onCommitFiberRoot(n0, e, void 0, (e.current.flags & 128) === 128);
    } catch {}
}
var Or = Math.clz32 ? Math.clz32 : P_,
  M_ = Math.log,
  E_ = Math.LN2;
function P_(e) {
  return (e >>>= 0), e === 0 ? 32 : (31 - ((M_(e) / E_) | 0)) | 0;
}
var Hc = 64,
  zc = 4194304;
function Wl(e) {
  switch (e & -e) {
    case 1:
      return 1;
    case 2:
      return 2;
    case 4:
      return 4;
    case 8:
      return 8;
    case 16:
      return 16;
    case 32:
      return 32;
    case 64:
    case 128:
    case 256:
    case 512:
    case 1024:
    case 2048:
    case 4096:
    case 8192:
    case 16384:
    case 32768:
    case 65536:
    case 131072:
    case 262144:
    case 524288:
    case 1048576:
    case 2097152:
      return e & 4194240;
    case 4194304:
    case 8388608:
    case 16777216:
    case 33554432:
    case 67108864:
      return e & 130023424;
    case 134217728:
      return 134217728;
    case 268435456:
      return 268435456;
    case 536870912:
      return 536870912;
    case 1073741824:
      return 1073741824;
    default:
      return e;
  }
}
function vf(e, t) {
  var n = e.pendingLanes;
  if (n === 0) return 0;
  var r = 0,
    o = e.suspendedLanes,
    i = e.pingedLanes,
    s = n & 268435455;
  if (s !== 0) {
    var a = s & ~o;
    a !== 0 ? (r = Wl(a)) : ((i &= s), i !== 0 && (r = Wl(i)));
  } else (s = n & ~o), s !== 0 ? (r = Wl(s)) : i !== 0 && (r = Wl(i));
  if (r === 0) return 0;
  if (t !== 0 && t !== r && !(t & o) && ((o = r & -r), (i = t & -t), o >= i || (o === 16 && (i & 4194240) !== 0)))
    return t;
  if ((r & 4 && (r |= n & 16), (t = e.entangledLanes), t !== 0))
    for (e = e.entanglements, t &= r; 0 < t; ) (n = 31 - Or(t)), (o = 1 << n), (r |= e[n]), (t &= ~o);
  return r;
}
function A_(e, t) {
  switch (e) {
    case 1:
    case 2:
    case 4:
      return t + 250;
    case 8:
    case 16:
    case 32:
    case 64:
    case 128:
    case 256:
    case 512:
    case 1024:
    case 2048:
    case 4096:
    case 8192:
    case 16384:
    case 32768:
    case 65536:
    case 131072:
    case 262144:
    case 524288:
    case 1048576:
    case 2097152:
      return t + 5e3;
    case 4194304:
    case 8388608:
    case 16777216:
    case 33554432:
    case 67108864:
      return -1;
    case 134217728:
    case 268435456:
    case 536870912:
    case 1073741824:
      return -1;
    default:
      return -1;
  }
}
function __(e, t) {
  for (var n = e.suspendedLanes, r = e.pingedLanes, o = e.expirationTimes, i = e.pendingLanes; 0 < i; ) {
    var s = 31 - Or(i),
      a = 1 << s,
      l = o[s];
    l === -1 ? (!(a & n) || a & r) && (o[s] = A_(a, t)) : l <= t && (e.expiredLanes |= a), (i &= ~a);
  }
}
function fm(e) {
  return (e = e.pendingLanes & -1073741825), e !== 0 ? e : e & 1073741824 ? 1073741824 : 0;
}
function L4() {
  var e = Hc;
  return (Hc <<= 1), !(Hc & 4194240) && (Hc = 64), e;
}
function P1(e) {
  for (var t = [], n = 0; 31 > n; n++) t.push(e);
  return t;
}
function cc(e, t, n) {
  (e.pendingLanes |= t),
    t !== 536870912 && ((e.suspendedLanes = 0), (e.pingedLanes = 0)),
    (e = e.eventTimes),
    (t = 31 - Or(t)),
    (e[t] = n);
}
function D_(e, t) {
  var n = e.pendingLanes & ~t;
  (e.pendingLanes = t),
    (e.suspendedLanes = 0),
    (e.pingedLanes = 0),
    (e.expiredLanes &= t),
    (e.mutableReadLanes &= t),
    (e.entangledLanes &= t),
    (t = e.entanglements);
  var r = e.eventTimes;
  for (e = e.expirationTimes; 0 < n; ) {
    var o = 31 - Or(n),
      i = 1 << o;
    (t[o] = 0), (r[o] = -1), (e[o] = -1), (n &= ~i);
  }
}
function ig(e, t) {
  var n = (e.entangledLanes |= t);
  for (e = e.entanglements; n; ) {
    var r = 31 - Or(n),
      o = 1 << r;
    (o & t) | (e[r] & t) && (e[r] |= t), (n &= ~o);
  }
}
var ft = 0;
function N4(e) {
  return (e &= -e), 1 < e ? (4 < e ? (e & 268435455 ? 16 : 536870912) : 4) : 1;
}
var $4,
  sg,
  B4,
  j4,
  V4,
  pm = !1,
  Wc = [],
  li = null,
  ui = null,
  ci = null,
  Eu = new Map(),
  Pu = new Map(),
  ti = [],
  R_ =
    "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(
      " "
    );
function u8(e, t) {
  switch (e) {
    case "focusin":
    case "focusout":
      li = null;
      break;
    case "dragenter":
    case "dragleave":
      ui = null;
      break;
    case "mouseover":
    case "mouseout":
      ci = null;
      break;
    case "pointerover":
    case "pointerout":
      Eu.delete(t.pointerId);
      break;
    case "gotpointercapture":
    case "lostpointercapture":
      Pu.delete(t.pointerId);
  }
}
function xl(e, t, n, r, o, i) {
  return e === null || e.nativeEvent !== i
    ? ((e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: i, targetContainers: [o] }),
      t !== null && ((t = fc(t)), t !== null && sg(t)),
      e)
    : ((e.eventSystemFlags |= r), (t = e.targetContainers), o !== null && t.indexOf(o) === -1 && t.push(o), e);
}
function I_(e, t, n, r, o) {
  switch (t) {
    case "focusin":
      return (li = xl(li, e, t, n, r, o)), !0;
    case "dragenter":
      return (ui = xl(ui, e, t, n, r, o)), !0;
    case "mouseover":
      return (ci = xl(ci, e, t, n, r, o)), !0;
    case "pointerover":
      var i = o.pointerId;
      return Eu.set(i, xl(Eu.get(i) || null, e, t, n, r, o)), !0;
    case "gotpointercapture":
      return (i = o.pointerId), Pu.set(i, xl(Pu.get(i) || null, e, t, n, r, o)), !0;
  }
  return !1;
}
function H4(e) {
  var t = Yi(e.target);
  if (t !== null) {
    var n = Cs(t);
    if (n !== null) {
      if (((t = n.tag), t === 13)) {
        if (((t = _4(n)), t !== null)) {
          (e.blockedOn = t),
            V4(e.priority, function () {
              B4(n);
            });
          return;
        }
      } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {
        e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;
        return;
      }
    }
  }
  e.blockedOn = null;
}
function Ld(e) {
  if (e.blockedOn !== null) return !1;
  for (var t = e.targetContainers; 0 < t.length; ) {
    var n = hm(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
    if (n === null) {
      n = e.nativeEvent;
      var r = new n.constructor(n.type, n);
      (lm = r), n.target.dispatchEvent(r), (lm = null);
    } else return (t = fc(n)), t !== null && sg(t), (e.blockedOn = n), !1;
    t.shift();
  }
  return !0;
}
function c8(e, t, n) {
  Ld(e) && n.delete(t);
}
function O_() {
  (pm = !1),
    li !== null && Ld(li) && (li = null),
    ui !== null && Ld(ui) && (ui = null),
    ci !== null && Ld(ci) && (ci = null),
    Eu.forEach(c8),
    Pu.forEach(c8);
}
function bl(e, t) {
  e.blockedOn === t &&
    ((e.blockedOn = null), pm || ((pm = !0), Un.unstable_scheduleCallback(Un.unstable_NormalPriority, O_)));
}
function Au(e) {
  function t(o) {
    return bl(o, e);
  }
  if (0 < Wc.length) {
    bl(Wc[0], e);
    for (var n = 1; n < Wc.length; n++) {
      var r = Wc[n];
      r.blockedOn === e && (r.blockedOn = null);
    }
  }
  for (
    li !== null && bl(li, e), ui !== null && bl(ui, e), ci !== null && bl(ci, e), Eu.forEach(t), Pu.forEach(t), n = 0;
    n < ti.length;
    n++
  )
    (r = ti[n]), r.blockedOn === e && (r.blockedOn = null);
  for (; 0 < ti.length && ((n = ti[0]), n.blockedOn === null); ) H4(n), n.blockedOn === null && ti.shift();
}
var ga = Uo.ReactCurrentBatchConfig,
  xf = !0;
function F_(e, t, n, r) {
  var o = ft,
    i = ga.transition;
  ga.transition = null;
  try {
    (ft = 1), ag(e, t, n, r);
  } finally {
    (ft = o), (ga.transition = i);
  }
}
function L_(e, t, n, r) {
  var o = ft,
    i = ga.transition;
  ga.transition = null;
  try {
    (ft = 4), ag(e, t, n, r);
  } finally {
    (ft = o), (ga.transition = i);
  }
}
function ag(e, t, n, r) {
  if (xf) {
    var o = hm(e, t, n, r);
    if (o === null) $1(e, t, r, bf, n), u8(e, r);
    else if (I_(o, e, t, n, r)) r.stopPropagation();
    else if ((u8(e, r), t & 4 && -1 < R_.indexOf(e))) {
      for (; o !== null; ) {
        var i = fc(o);
        if ((i !== null && $4(i), (i = hm(e, t, n, r)), i === null && $1(e, t, r, bf, n), i === o)) break;
        o = i;
      }
      o !== null && r.stopPropagation();
    } else $1(e, t, r, null, n);
  }
}
var bf = null;
function hm(e, t, n, r) {
  if (((bf = null), (e = rg(r)), (e = Yi(e)), e !== null))
    if (((t = Cs(e)), t === null)) e = null;
    else if (((n = t.tag), n === 13)) {
      if (((e = _4(t)), e !== null)) return e;
      e = null;
    } else if (n === 3) {
      if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;
      e = null;
    } else t !== e && (e = null);
  return (bf = e), null;
}
function z4(e) {
  switch (e) {
    case "cancel":
    case "click":
    case "close":
    case "contextmenu":
    case "copy":
    case "cut":
    case "auxclick":
    case "dblclick":
    case "dragend":
    case "dragstart":
    case "drop":
    case "focusin":
    case "focusout":
    case "input":
    case "invalid":
    case "keydown":
    case "keypress":
    case "keyup":
    case "mousedown":
    case "mouseup":
    case "paste":
    case "pause":
    case "play":
    case "pointercancel":
    case "pointerdown":
    case "pointerup":
    case "ratechange":
    case "reset":
    case "resize":
    case "seeked":
    case "submit":
    case "touchcancel":
    case "touchend":
    case "touchstart":
    case "volumechange":
    case "change":
    case "selectionchange":
    case "textInput":
    case "compositionstart":
    case "compositionend":
    case "compositionupdate":
    case "beforeblur":
    case "afterblur":
    case "beforeinput":
    case "blur":
    case "fullscreenchange":
    case "focus":
    case "hashchange":
    case "popstate":
    case "select":
    case "selectstart":
      return 1;
    case "drag":
    case "dragenter":
    case "dragexit":
    case "dragleave":
    case "dragover":
    case "mousemove":
    case "mouseout":
    case "mouseover":
    case "pointermove":
    case "pointerout":
    case "pointerover":
    case "scroll":
    case "toggle":
    case "touchmove":
    case "wheel":
    case "mouseenter":
    case "mouseleave":
    case "pointerenter":
    case "pointerleave":
      return 4;
    case "message":
      switch (S_()) {
        case og:
          return 1;
        case O4:
          return 4;
        case yf:
        case k_:
          return 16;
        case F4:
          return 536870912;
        default:
          return 16;
      }
    default:
      return 16;
  }
}
var oi = null,
  lg = null,
  Nd = null;
function W4() {
  if (Nd) return Nd;
  var e,
    t = lg,
    n = t.length,
    r,
    o = "value" in oi ? oi.value : oi.textContent,
    i = o.length;
  for (e = 0; e < n && t[e] === o[e]; e++);
  var s = n - e;
  for (r = 1; r <= s && t[n - r] === o[i - r]; r++);
  return (Nd = o.slice(e, 1 < r ? 1 - r : void 0));
}
function $d(e) {
  var t = e.keyCode;
  return (
    "charCode" in e ? ((e = e.charCode), e === 0 && t === 13 && (e = 13)) : (e = t),
    e === 10 && (e = 13),
    32 <= e || e === 13 ? e : 0
  );
}
function Gc() {
  return !0;
}
function d8() {
  return !1;
}
function qn(e) {
  function t(n, r, o, i, s) {
    (this._reactName = n),
      (this._targetInst = o),
      (this.type = r),
      (this.nativeEvent = i),
      (this.target = s),
      (this.currentTarget = null);
    for (var a in e) e.hasOwnProperty(a) && ((n = e[a]), (this[a] = n ? n(i) : i[a]));
    return (
      (this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? Gc : d8),
      (this.isPropagationStopped = d8),
      this
    );
  }
  return (
    Ot(t.prototype, {
      preventDefault: function () {
        this.defaultPrevented = !0;
        var n = this.nativeEvent;
        n &&
          (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1),
          (this.isDefaultPrevented = Gc));
      },
      stopPropagation: function () {
        var n = this.nativeEvent;
        n &&
          (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0),
          (this.isPropagationStopped = Gc));
      },
      persist: function () {},
      isPersistent: Gc,
    }),
    t
  );
}
var il = {
    eventPhase: 0,
    bubbles: 0,
    cancelable: 0,
    timeStamp: function (e) {
      return e.timeStamp || Date.now();
    },
    defaultPrevented: 0,
    isTrusted: 0,
  },
  ug = qn(il),
  dc = Ot({}, il, { view: 0, detail: 0 }),
  N_ = qn(dc),
  A1,
  _1,
  Cl,
  r0 = Ot({}, dc, {
    screenX: 0,
    screenY: 0,
    clientX: 0,
    clientY: 0,
    pageX: 0,
    pageY: 0,
    ctrlKey: 0,
    shiftKey: 0,
    altKey: 0,
    metaKey: 0,
    getModifierState: cg,
    button: 0,
    buttons: 0,
    relatedTarget: function (e) {
      return e.relatedTarget === void 0
        ? e.fromElement === e.srcElement
          ? e.toElement
          : e.fromElement
        : e.relatedTarget;
    },
    movementX: function (e) {
      return "movementX" in e
        ? e.movementX
        : (e !== Cl &&
            (Cl && e.type === "mousemove"
              ? ((A1 = e.screenX - Cl.screenX), (_1 = e.screenY - Cl.screenY))
              : (_1 = A1 = 0),
            (Cl = e)),
          A1);
    },
    movementY: function (e) {
      return "movementY" in e ? e.movementY : _1;
    },
  }),
  f8 = qn(r0),
  $_ = Ot({}, r0, { dataTransfer: 0 }),
  B_ = qn($_),
  j_ = Ot({}, dc, { relatedTarget: 0 }),
  D1 = qn(j_),
  V_ = Ot({}, il, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }),
  H_ = qn(V_),
  z_ = Ot({}, il, {
    clipboardData: function (e) {
      return "clipboardData" in e ? e.clipboardData : window.clipboardData;
    },
  }),
  W_ = qn(z_),
  G_ = Ot({}, il, { data: 0 }),
  p8 = qn(G_),
  U_ = {
    Esc: "Escape",
    Spacebar: " ",
    Left: "ArrowLeft",
    Up: "ArrowUp",
    Right: "ArrowRight",
    Down: "ArrowDown",
    Del: "Delete",
    Win: "OS",
    Menu: "ContextMenu",
    Apps: "ContextMenu",
    Scroll: "ScrollLock",
    MozPrintableKey: "Unidentified",
  },
  Y_ = {
    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",
  },
  K_ = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
function X_(e) {
  var t = this.nativeEvent;
  return t.getModifierState ? t.getModifierState(e) : (e = K_[e]) ? !!t[e] : !1;
}
function cg() {
  return X_;
}
var q_ = Ot({}, dc, {
    key: function (e) {
      if (e.key) {
        var t = U_[e.key] || e.key;
        if (t !== "Unidentified") return t;
      }
      return e.type === "keypress"
        ? ((e = $d(e)), e === 13 ? "Enter" : String.fromCharCode(e))
        : e.type === "keydown" || e.type === "keyup"
          ? Y_[e.keyCode] || "Unidentified"
          : "";
    },
    code: 0,
    location: 0,
    ctrlKey: 0,
    shiftKey: 0,
    altKey: 0,
    metaKey: 0,
    repeat: 0,
    locale: 0,
    getModifierState: cg,
    charCode: function (e) {
      return e.type === "keypress" ? $d(e) : 0;
    },
    keyCode: function (e) {
      return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
    },
    which: function (e) {
      return e.type === "keypress" ? $d(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
    },
  }),
  Z_ = qn(q_),
  J_ = Ot({}, r0, {
    pointerId: 0,
    width: 0,
    height: 0,
    pressure: 0,
    tangentialPressure: 0,
    tiltX: 0,
    tiltY: 0,
    twist: 0,
    pointerType: 0,
    isPrimary: 0,
  }),
  h8 = qn(J_),
  Q_ = Ot({}, dc, {
    touches: 0,
    targetTouches: 0,
    changedTouches: 0,
    altKey: 0,
    metaKey: 0,
    ctrlKey: 0,
    shiftKey: 0,
    getModifierState: cg,
  }),
  eD = qn(Q_),
  tD = Ot({}, il, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }),
  nD = qn(tD),
  rD = Ot({}, r0, {
    deltaX: function (e) {
      return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
    },
    deltaY: function (e) {
      return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0;
    },
    deltaZ: 0,
    deltaMode: 0,
  }),
  oD = qn(rD),
  iD = [9, 13, 27, 32],
  dg = Lo && "CompositionEvent" in window,
  Jl = null;
Lo && "documentMode" in document && (Jl = document.documentMode);
var sD = Lo && "TextEvent" in window && !Jl,
  G4 = Lo && (!dg || (Jl && 8 < Jl && 11 >= Jl)),
  m8 = " ",
  g8 = !1;
function U4(e, t) {
  switch (e) {
    case "keyup":
      return iD.indexOf(t.keyCode) !== -1;
    case "keydown":
      return t.keyCode !== 229;
    case "keypress":
    case "mousedown":
    case "focusout":
      return !0;
    default:
      return !1;
  }
}
function Y4(e) {
  return (e = e.detail), typeof e == "object" && "data" in e ? e.data : null;
}
var Js = !1;
function aD(e, t) {
  switch (e) {
    case "compositionend":
      return Y4(t);
    case "keypress":
      return t.which !== 32 ? null : ((g8 = !0), m8);
    case "textInput":
      return (e = t.data), e === m8 && g8 ? null : e;
    default:
      return null;
  }
}
function lD(e, t) {
  if (Js) return e === "compositionend" || (!dg && U4(e, t)) ? ((e = W4()), (Nd = lg = oi = null), (Js = !1), e) : null;
  switch (e) {
    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 G4 && t.locale !== "ko" ? null : t.data;
    default:
      return null;
  }
}
var uD = {
  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 y8(e) {
  var t = e && e.nodeName && e.nodeName.toLowerCase();
  return t === "input" ? !!uD[e.type] : t === "textarea";
}
function K4(e, t, n, r) {
  T4(r),
    (t = Cf(t, "onChange")),
    0 < t.length && ((n = new ug("onChange", "change", null, n, r)), e.push({ event: n, listeners: t }));
}
var Ql = null,
  _u = null;
function cD(e) {
  ix(e, 0);
}
function o0(e) {
  var t = ta(e);
  if (v4(t)) return e;
}
function dD(e, t) {
  if (e === "change") return t;
}
var X4 = !1;
if (Lo) {
  var R1;
  if (Lo) {
    var I1 = "oninput" in document;
    if (!I1) {
      var v8 = document.createElement("div");
      v8.setAttribute("oninput", "return;"), (I1 = typeof v8.oninput == "function");
    }
    R1 = I1;
  } else R1 = !1;
  X4 = R1 && (!document.documentMode || 9 < document.documentMode);
}
function x8() {
  Ql && (Ql.detachEvent("onpropertychange", q4), (_u = Ql = null));
}
function q4(e) {
  if (e.propertyName === "value" && o0(_u)) {
    var t = [];
    K4(t, _u, e, rg(e)), A4(cD, t);
  }
}
function fD(e, t, n) {
  e === "focusin" ? (x8(), (Ql = t), (_u = n), Ql.attachEvent("onpropertychange", q4)) : e === "focusout" && x8();
}
function pD(e) {
  if (e === "selectionchange" || e === "keyup" || e === "keydown") return o0(_u);
}
function hD(e, t) {
  if (e === "click") return o0(t);
}
function mD(e, t) {
  if (e === "input" || e === "change") return o0(t);
}
function gD(e, t) {
  return (e === t && (e !== 0 || 1 / e === 1 / t)) || (e !== e && t !== t);
}
var Nr = typeof Object.is == "function" ? Object.is : gD;
function Du(e, t) {
  if (Nr(e, t)) return !0;
  if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
  var n = Object.keys(e),
    r = Object.keys(t);
  if (n.length !== r.length) return !1;
  for (r = 0; r < n.length; r++) {
    var o = n[r];
    if (!qh.call(t, o) || !Nr(e[o], t[o])) return !1;
  }
  return !0;
}
function b8(e) {
  for (; e && e.firstChild; ) e = e.firstChild;
  return e;
}
function C8(e, t) {
  var n = b8(e);
  e = 0;
  for (var r; n; ) {
    if (n.nodeType === 3) {
      if (((r = e + n.textContent.length), e <= t && r >= t)) return { node: n, offset: t - e };
      e = r;
    }
    e: {
      for (; n; ) {
        if (n.nextSibling) {
          n = n.nextSibling;
          break e;
        }
        n = n.parentNode;
      }
      n = void 0;
    }
    n = b8(n);
  }
}
function Z4(e, t) {
  return e && t
    ? e === t
      ? !0
      : e && e.nodeType === 3
        ? !1
        : t && t.nodeType === 3
          ? Z4(e, t.parentNode)
          : "contains" in e
            ? e.contains(t)
            : e.compareDocumentPosition
              ? !!(e.compareDocumentPosition(t) & 16)
              : !1
    : !1;
}
function J4() {
  for (var e = window, t = hf(); t instanceof e.HTMLIFrameElement; ) {
    try {
      var n = typeof t.contentWindow.location.href == "string";
    } catch {
      n = !1;
    }
    if (n) e = t.contentWindow;
    else break;
    t = hf(e.document);
  }
  return t;
}
function fg(e) {
  var t = e && e.nodeName && e.nodeName.toLowerCase();
  return (
    t &&
    ((t === "input" &&
      (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password")) ||
      t === "textarea" ||
      e.contentEditable === "true")
  );
}
function yD(e) {
  var t = J4(),
    n = e.focusedElem,
    r = e.selectionRange;
  if (t !== n && n && n.ownerDocument && Z4(n.ownerDocument.documentElement, n)) {
    if (r !== null && fg(n)) {
      if (((t = r.start), (e = r.end), e === void 0 && (e = t), "selectionStart" in n))
        (n.selectionStart = t), (n.selectionEnd = Math.min(e, n.value.length));
      else if (((e = ((t = n.ownerDocument || document) && t.defaultView) || window), e.getSelection)) {
        e = e.getSelection();
        var o = n.textContent.length,
          i = Math.min(r.start, o);
        (r = r.end === void 0 ? i : Math.min(r.end, o)),
          !e.extend && i > r && ((o = r), (r = i), (i = o)),
          (o = C8(n, i));
        var s = C8(n, r);
        o &&
          s &&
          (e.rangeCount !== 1 ||
            e.anchorNode !== o.node ||
            e.anchorOffset !== o.offset ||
            e.focusNode !== s.node ||
            e.focusOffset !== s.offset) &&
          ((t = t.createRange()),
          t.setStart(o.node, o.offset),
          e.removeAllRanges(),
          i > r ? (e.addRange(t), e.extend(s.node, s.offset)) : (t.setEnd(s.node, s.offset), e.addRange(t)));
      }
    }
    for (t = [], e = n; (e = e.parentNode); )
      e.nodeType === 1 && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop });
    for (typeof n.focus == "function" && n.focus(), n = 0; n < t.length; n++)
      (e = t[n]), (e.element.scrollLeft = e.left), (e.element.scrollTop = e.top);
  }
}
var vD = Lo && "documentMode" in document && 11 >= document.documentMode,
  Qs = null,
  mm = null,
  eu = null,
  gm = !1;
function w8(e, t, n) {
  var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
  gm ||
    Qs == null ||
    Qs !== hf(r) ||
    ((r = Qs),
    "selectionStart" in r && fg(r)
      ? (r = { start: r.selectionStart, end: r.selectionEnd })
      : ((r = ((r.ownerDocument && r.ownerDocument.defaultView) || window).getSelection()),
        (r = {
          anchorNode: r.anchorNode,
          anchorOffset: r.anchorOffset,
          focusNode: r.focusNode,
          focusOffset: r.focusOffset,
        })),
    (eu && Du(eu, r)) ||
      ((eu = r),
      (r = Cf(mm, "onSelect")),
      0 < r.length &&
        ((t = new ug("onSelect", "select", null, t, n)), e.push({ event: t, listeners: r }), (t.target = Qs))));
}
function Uc(e, t) {
  var n = {};
  return (n[e.toLowerCase()] = t.toLowerCase()), (n["Webkit" + e] = "webkit" + t), (n["Moz" + e] = "moz" + t), n;
}
var ea = {
    animationend: Uc("Animation", "AnimationEnd"),
    animationiteration: Uc("Animation", "AnimationIteration"),
    animationstart: Uc("Animation", "AnimationStart"),
    transitionend: Uc("Transition", "TransitionEnd"),
  },
  O1 = {},
  Q4 = {};
Lo &&
  ((Q4 = document.createElement("div").style),
  "AnimationEvent" in window ||
    (delete ea.animationend.animation, delete ea.animationiteration.animation, delete ea.animationstart.animation),
  "TransitionEvent" in window || delete ea.transitionend.transition);
function i0(e) {
  if (O1[e]) return O1[e];
  if (!ea[e]) return e;
  var t = ea[e],
    n;
  for (n in t) if (t.hasOwnProperty(n) && n in Q4) return (O1[e] = t[n]);
  return e;
}
var ex = i0("animationend"),
  tx = i0("animationiteration"),
  nx = i0("animationstart"),
  rx = i0("transitionend"),
  ox = new Map(),
  S8 =
    "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(
      " "
    );
function Ei(e, t) {
  ox.set(e, t), bs(t, [e]);
}
for (var F1 = 0; F1 < S8.length; F1++) {
  var L1 = S8[F1],
    xD = L1.toLowerCase(),
    bD = L1[0].toUpperCase() + L1.slice(1);
  Ei(xD, "on" + bD);
}
Ei(ex, "onAnimationEnd");
Ei(tx, "onAnimationIteration");
Ei(nx, "onAnimationStart");
Ei("dblclick", "onDoubleClick");
Ei("focusin", "onFocus");
Ei("focusout", "onBlur");
Ei(rx, "onTransitionEnd");
Fa("onMouseEnter", ["mouseout", "mouseover"]);
Fa("onMouseLeave", ["mouseout", "mouseover"]);
Fa("onPointerEnter", ["pointerout", "pointerover"]);
Fa("onPointerLeave", ["pointerout", "pointerover"]);
bs("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
bs("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
bs("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
bs("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
bs("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
bs("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var Gl =
    "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(
      " "
    ),
  CD = new Set("cancel close invalid load scroll toggle".split(" ").concat(Gl));
function k8(e, t, n) {
  var r = e.type || "unknown-event";
  (e.currentTarget = n), x_(r, t, void 0, e), (e.currentTarget = null);
}
function ix(e, t) {
  t = (t & 4) !== 0;
  for (var n = 0; n < e.length; n++) {
    var r = e[n],
      o = r.event;
    r = r.listeners;
    e: {
      var i = void 0;
      if (t)
        for (var s = r.length - 1; 0 <= s; s--) {
          var a = r[s],
            l = a.instance,
            u = a.currentTarget;
          if (((a = a.listener), l !== i && o.isPropagationStopped())) break e;
          k8(o, a, u), (i = l);
        }
      else
        for (s = 0; s < r.length; s++) {
          if (
            ((a = r[s]), (l = a.instance), (u = a.currentTarget), (a = a.listener), l !== i && o.isPropagationStopped())
          )
            break e;
          k8(o, a, u), (i = l);
        }
    }
  }
  if (gf) throw ((e = dm), (gf = !1), (dm = null), e);
}
function St(e, t) {
  var n = t[Cm];
  n === void 0 && (n = t[Cm] = new Set());
  var r = e + "__bubble";
  n.has(r) || (sx(t, e, 2, !1), n.add(r));
}
function N1(e, t, n) {
  var r = 0;
  t && (r |= 4), sx(n, e, r, t);
}
var Yc = "_reactListening" + Math.random().toString(36).slice(2);
function Ru(e) {
  if (!e[Yc]) {
    (e[Yc] = !0),
      p4.forEach(function (n) {
        n !== "selectionchange" && (CD.has(n) || N1(n, !1, e), N1(n, !0, e));
      });
    var t = e.nodeType === 9 ? e : e.ownerDocument;
    t === null || t[Yc] || ((t[Yc] = !0), N1("selectionchange", !1, t));
  }
}
function sx(e, t, n, r) {
  switch (z4(t)) {
    case 1:
      var o = F_;
      break;
    case 4:
      o = L_;
      break;
    default:
      o = ag;
  }
  (n = o.bind(null, t, n, e)),
    (o = void 0),
    !cm || (t !== "touchstart" && t !== "touchmove" && t !== "wheel") || (o = !0),
    r
      ? o !== void 0
        ? e.addEventListener(t, n, { capture: !0, passive: o })
        : e.addEventListener(t, n, !0)
      : o !== void 0
        ? e.addEventListener(t, n, { passive: o })
        : e.addEventListener(t, n, !1);
}
function $1(e, t, n, r, o) {
  var i = r;
  if (!(t & 1) && !(t & 2) && r !== null)
    e: for (;;) {
      if (r === null) return;
      var s = r.tag;
      if (s === 3 || s === 4) {
        var a = r.stateNode.containerInfo;
        if (a === o || (a.nodeType === 8 && a.parentNode === o)) break;
        if (s === 4)
          for (s = r.return; s !== null; ) {
            var l = s.tag;
            if (
              (l === 3 || l === 4) &&
              ((l = s.stateNode.containerInfo), l === o || (l.nodeType === 8 && l.parentNode === o))
            )
              return;
            s = s.return;
          }
        for (; a !== null; ) {
          if (((s = Yi(a)), s === null)) return;
          if (((l = s.tag), l === 5 || l === 6)) {
            r = i = s;
            continue e;
          }
          a = a.parentNode;
        }
      }
      r = r.return;
    }
  A4(function () {
    var u = i,
      c = rg(n),
      d = [];
    e: {
      var p = ox.get(e);
      if (p !== void 0) {
        var h = ug,
          m = e;
        switch (e) {
          case "keypress":
            if ($d(n) === 0) break e;
          case "keydown":
          case "keyup":
            h = Z_;
            break;
          case "focusin":
            (m = "focus"), (h = D1);
            break;
          case "focusout":
            (m = "blur"), (h = D1);
            break;
          case "beforeblur":
          case "afterblur":
            h = D1;
            break;
          case "click":
            if (n.button === 2) break e;
          case "auxclick":
          case "dblclick":
          case "mousedown":
          case "mousemove":
          case "mouseup":
          case "mouseout":
          case "mouseover":
          case "contextmenu":
            h = f8;
            break;
          case "drag":
          case "dragend":
          case "dragenter":
          case "dragexit":
          case "dragleave":
          case "dragover":
          case "dragstart":
          case "drop":
            h = B_;
            break;
          case "touchcancel":
          case "touchend":
          case "touchmove":
          case "touchstart":
            h = eD;
            break;
          case ex:
          case tx:
          case nx:
            h = H_;
            break;
          case rx:
            h = nD;
            break;
          case "scroll":
            h = N_;
            break;
          case "wheel":
            h = oD;
            break;
          case "copy":
          case "cut":
          case "paste":
            h = W_;
            break;
          case "gotpointercapture":
          case "lostpointercapture":
          case "pointercancel":
          case "pointerdown":
          case "pointermove":
          case "pointerout":
          case "pointerover":
          case "pointerup":
            h = h8;
        }
        var v = (t & 4) !== 0,
          C = !v && e === "scroll",
          y = v ? (p !== null ? p + "Capture" : null) : p;
        v = [];
        for (var g = u, x; g !== null; ) {
          x = g;
          var w = x.stateNode;
          if (
            (x.tag === 5 && w !== null && ((x = w), y !== null && ((w = Mu(g, y)), w != null && v.push(Iu(g, w, x)))),
            C)
          )
            break;
          g = g.return;
        }
        0 < v.length && ((p = new h(p, m, null, n, c)), d.push({ event: p, listeners: v }));
      }
    }
    if (!(t & 7)) {
      e: {
        if (
          ((p = e === "mouseover" || e === "pointerover"),
          (h = e === "mouseout" || e === "pointerout"),
          p && n !== lm && (m = n.relatedTarget || n.fromElement) && (Yi(m) || m[No]))
        )
          break e;
        if (
          (h || p) &&
          ((p = c.window === c ? c : (p = c.ownerDocument) ? p.defaultView || p.parentWindow : window),
          h
            ? ((m = n.relatedTarget || n.toElement),
              (h = u),
              (m = m ? Yi(m) : null),
              m !== null && ((C = Cs(m)), m !== C || (m.tag !== 5 && m.tag !== 6)) && (m = null))
            : ((h = null), (m = u)),
          h !== m)
        ) {
          if (
            ((v = f8),
            (w = "onMouseLeave"),
            (y = "onMouseEnter"),
            (g = "mouse"),
            (e === "pointerout" || e === "pointerover") &&
              ((v = h8), (w = "onPointerLeave"), (y = "onPointerEnter"), (g = "pointer")),
            (C = h == null ? p : ta(h)),
            (x = m == null ? p : ta(m)),
            (p = new v(w, g + "leave", h, n, c)),
            (p.target = C),
            (p.relatedTarget = x),
            (w = null),
            Yi(c) === u && ((v = new v(y, g + "enter", m, n, c)), (v.target = x), (v.relatedTarget = C), (w = v)),
            (C = w),
            h && m)
          )
            t: {
              for (v = h, y = m, g = 0, x = v; x; x = Fs(x)) g++;
              for (x = 0, w = y; w; w = Fs(w)) x++;
              for (; 0 < g - x; ) (v = Fs(v)), g--;
              for (; 0 < x - g; ) (y = Fs(y)), x--;
              for (; g--; ) {
                if (v === y || (y !== null && v === y.alternate)) break t;
                (v = Fs(v)), (y = Fs(y));
              }
              v = null;
            }
          else v = null;
          h !== null && T8(d, p, h, v, !1), m !== null && C !== null && T8(d, C, m, v, !0);
        }
      }
      e: {
        if (
          ((p = u ? ta(u) : window),
          (h = p.nodeName && p.nodeName.toLowerCase()),
          h === "select" || (h === "input" && p.type === "file"))
        )
          var k = dD;
        else if (y8(p))
          if (X4) k = mD;
          else {
            k = pD;
            var M = fD;
          }
        else
          (h = p.nodeName) && h.toLowerCase() === "input" && (p.type === "checkbox" || p.type === "radio") && (k = hD);
        if (k && (k = k(e, u))) {
          K4(d, k, n, c);
          break e;
        }
        M && M(e, p, u),
          e === "focusout" && (M = p._wrapperState) && M.controlled && p.type === "number" && rm(p, "number", p.value);
      }
      switch (((M = u ? ta(u) : window), e)) {
        case "focusin":
          (y8(M) || M.contentEditable === "true") && ((Qs = M), (mm = u), (eu = null));
          break;
        case "focusout":
          eu = mm = Qs = null;
          break;
        case "mousedown":
          gm = !0;
          break;
        case "contextmenu":
        case "mouseup":
        case "dragend":
          (gm = !1), w8(d, n, c);
          break;
        case "selectionchange":
          if (vD) break;
        case "keydown":
        case "keyup":
          w8(d, n, c);
      }
      var T;
      if (dg)
        e: {
          switch (e) {
            case "compositionstart":
              var P = "onCompositionStart";
              break e;
            case "compositionend":
              P = "onCompositionEnd";
              break e;
            case "compositionupdate":
              P = "onCompositionUpdate";
              break e;
          }
          P = void 0;
        }
      else
        Js ? U4(e, n) && (P = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (P = "onCompositionStart");
      P &&
        (G4 &&
          n.locale !== "ko" &&
          (Js || P !== "onCompositionStart"
            ? P === "onCompositionEnd" && Js && (T = W4())
            : ((oi = c), (lg = "value" in oi ? oi.value : oi.textContent), (Js = !0))),
        (M = Cf(u, P)),
        0 < M.length &&
          ((P = new p8(P, e, null, n, c)),
          d.push({ event: P, listeners: M }),
          T ? (P.data = T) : ((T = Y4(n)), T !== null && (P.data = T)))),
        (T = sD ? aD(e, n) : lD(e, n)) &&
          ((u = Cf(u, "onBeforeInput")),
          0 < u.length &&
            ((c = new p8("onBeforeInput", "beforeinput", null, n, c)),
            d.push({ event: c, listeners: u }),
            (c.data = T)));
    }
    ix(d, t);
  });
}
function Iu(e, t, n) {
  return { instance: e, listener: t, currentTarget: n };
}
function Cf(e, t) {
  for (var n = t + "Capture", r = []; e !== null; ) {
    var o = e,
      i = o.stateNode;
    o.tag === 5 &&
      i !== null &&
      ((o = i), (i = Mu(e, n)), i != null && r.unshift(Iu(e, i, o)), (i = Mu(e, t)), i != null && r.push(Iu(e, i, o))),
      (e = e.return);
  }
  return r;
}
function Fs(e) {
  if (e === null) return null;
  do e = e.return;
  while (e && e.tag !== 5);
  return e || null;
}
function T8(e, t, n, r, o) {
  for (var i = t._reactName, s = []; n !== null && n !== r; ) {
    var a = n,
      l = a.alternate,
      u = a.stateNode;
    if (l !== null && l === r) break;
    a.tag === 5 &&
      u !== null &&
      ((a = u),
      o
        ? ((l = Mu(n, i)), l != null && s.unshift(Iu(n, l, a)))
        : o || ((l = Mu(n, i)), l != null && s.push(Iu(n, l, a)))),
      (n = n.return);
  }
  s.length !== 0 && e.push({ event: t, listeners: s });
}
var wD = /\r\n?/g,
  SD = /\u0000|\uFFFD/g;
function M8(e) {
  return (typeof e == "string" ? e : "" + e)
    .replace(
      wD,
      `
`
    )
    .replace(SD, "");
}
function Kc(e, t, n) {
  if (((t = M8(t)), M8(e) !== t && n)) throw Error(ce(425));
}
function wf() {}
var ym = null,
  vm = null;
function xm(e, t) {
  return (
    e === "textarea" ||
    e === "noscript" ||
    typeof t.children == "string" ||
    typeof t.children == "number" ||
    (typeof t.dangerouslySetInnerHTML == "object" &&
      t.dangerouslySetInnerHTML !== null &&
      t.dangerouslySetInnerHTML.__html != null)
  );
}
var bm = typeof setTimeout == "function" ? setTimeout : void 0,
  kD = typeof clearTimeout == "function" ? clearTimeout : void 0,
  E8 = typeof Promise == "function" ? Promise : void 0,
  TD =
    typeof queueMicrotask == "function"
      ? queueMicrotask
      : typeof E8 < "u"
        ? function (e) {
            return E8.resolve(null).then(e).catch(MD);
          }
        : bm;
function MD(e) {
  setTimeout(function () {
    throw e;
  });
}
function B1(e, t) {
  var n = t,
    r = 0;
  do {
    var o = n.nextSibling;
    if ((e.removeChild(n), o && o.nodeType === 8))
      if (((n = o.data), n === "/$")) {
        if (r === 0) {
          e.removeChild(o), Au(t);
          return;
        }
        r--;
      } else (n !== "$" && n !== "$?" && n !== "$!") || r++;
    n = o;
  } while (n);
  Au(t);
}
function di(e) {
  for (; e != null; e = e.nextSibling) {
    var t = e.nodeType;
    if (t === 1 || t === 3) break;
    if (t === 8) {
      if (((t = e.data), t === "$" || t === "$!" || t === "$?")) break;
      if (t === "/$") return null;
    }
  }
  return e;
}
function P8(e) {
  e = e.previousSibling;
  for (var t = 0; e; ) {
    if (e.nodeType === 8) {
      var n = e.data;
      if (n === "$" || n === "$!" || n === "$?") {
        if (t === 0) return e;
        t--;
      } else n === "/$" && t++;
    }
    e = e.previousSibling;
  }
  return null;
}
var sl = Math.random().toString(36).slice(2),
  Zr = "__reactFiber$" + sl,
  Ou = "__reactProps$" + sl,
  No = "__reactContainer$" + sl,
  Cm = "__reactEvents$" + sl,
  ED = "__reactListeners$" + sl,
  PD = "__reactHandles$" + sl;
function Yi(e) {
  var t = e[Zr];
  if (t) return t;
  for (var n = e.parentNode; n; ) {
    if ((t = n[No] || n[Zr])) {
      if (((n = t.alternate), t.child !== null || (n !== null && n.child !== null)))
        for (e = P8(e); e !== null; ) {
          if ((n = e[Zr])) return n;
          e = P8(e);
        }
      return t;
    }
    (e = n), (n = e.parentNode);
  }
  return null;
}
function fc(e) {
  return (e = e[Zr] || e[No]), !e || (e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3) ? null : e;
}
function ta(e) {
  if (e.tag === 5 || e.tag === 6) return e.stateNode;
  throw Error(ce(33));
}
function s0(e) {
  return e[Ou] || null;
}
var wm = [],
  na = -1;
function Pi(e) {
  return { current: e };
}
function kt(e) {
  0 > na || ((e.current = wm[na]), (wm[na] = null), na--);
}
function bt(e, t) {
  na++, (wm[na] = e.current), (e.current = t);
}
var Ci = {},
  yn = Pi(Ci),
  Dn = Pi(!1),
  ps = Ci;
function La(e, t) {
  var n = e.type.contextTypes;
  if (!n) return Ci;
  var r = e.stateNode;
  if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext;
  var o = {},
    i;
  for (i in n) o[i] = t[i];
  return (
    r &&
      ((e = e.stateNode),
      (e.__reactInternalMemoizedUnmaskedChildContext = t),
      (e.__reactInternalMemoizedMaskedChildContext = o)),
    o
  );
}
function Rn(e) {
  return (e = e.childContextTypes), e != null;
}
function Sf() {
  kt(Dn), kt(yn);
}
function A8(e, t, n) {
  if (yn.current !== Ci) throw Error(ce(168));
  bt(yn, t), bt(Dn, n);
}
function ax(e, t, n) {
  var r = e.stateNode;
  if (((t = t.childContextTypes), typeof r.getChildContext != "function")) return n;
  r = r.getChildContext();
  for (var o in r) if (!(o in t)) throw Error(ce(108, f_(e) || "Unknown", o));
  return Ot({}, n, r);
}
function kf(e) {
  return (
    (e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || Ci),
    (ps = yn.current),
    bt(yn, e),
    bt(Dn, Dn.current),
    !0
  );
}
function _8(e, t, n) {
  var r = e.stateNode;
  if (!r) throw Error(ce(169));
  n ? ((e = ax(e, t, ps)), (r.__reactInternalMemoizedMergedChildContext = e), kt(Dn), kt(yn), bt(yn, e)) : kt(Dn),
    bt(Dn, n);
}
var ko = null,
  a0 = !1,
  j1 = !1;
function lx(e) {
  ko === null ? (ko = [e]) : ko.push(e);
}
function AD(e) {
  (a0 = !0), lx(e);
}
function Ai() {
  if (!j1 && ko !== null) {
    j1 = !0;
    var e = 0,
      t = ft;
    try {
      var n = ko;
      for (ft = 1; e < n.length; e++) {
        var r = n[e];
        do r = r(!0);
        while (r !== null);
      }
      (ko = null), (a0 = !1);
    } catch (o) {
      throw (ko !== null && (ko = ko.slice(e + 1)), I4(og, Ai), o);
    } finally {
      (ft = t), (j1 = !1);
    }
  }
  return null;
}
var ra = [],
  oa = 0,
  Tf = null,
  Mf = 0,
  or = [],
  ir = 0,
  hs = null,
  Po = 1,
  Ao = "";
function Vi(e, t) {
  (ra[oa++] = Mf), (ra[oa++] = Tf), (Tf = e), (Mf = t);
}
function ux(e, t, n) {
  (or[ir++] = Po), (or[ir++] = Ao), (or[ir++] = hs), (hs = e);
  var r = Po;
  e = Ao;
  var o = 32 - Or(r) - 1;
  (r &= ~(1 << o)), (n += 1);
  var i = 32 - Or(t) + o;
  if (30 < i) {
    var s = o - (o % 5);
    (i = (r & ((1 << s) - 1)).toString(32)),
      (r >>= s),
      (o -= s),
      (Po = (1 << (32 - Or(t) + o)) | (n << o) | r),
      (Ao = i + e);
  } else (Po = (1 << i) | (n << o) | r), (Ao = e);
}
function pg(e) {
  e.return !== null && (Vi(e, 1), ux(e, 1, 0));
}
function hg(e) {
  for (; e === Tf; ) (Tf = ra[--oa]), (ra[oa] = null), (Mf = ra[--oa]), (ra[oa] = null);
  for (; e === hs; )
    (hs = or[--ir]), (or[ir] = null), (Ao = or[--ir]), (or[ir] = null), (Po = or[--ir]), (or[ir] = null);
}
var zn = null,
  jn = null,
  At = !1,
  _r = null;
function cx(e, t) {
  var n = ar(5, null, null, 0);
  (n.elementType = "DELETED"),
    (n.stateNode = t),
    (n.return = e),
    (t = e.deletions),
    t === null ? ((e.deletions = [n]), (e.flags |= 16)) : t.push(n);
}
function D8(e, t) {
  switch (e.tag) {
    case 5:
      var n = e.type;
      return (
        (t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t),
        t !== null ? ((e.stateNode = t), (zn = e), (jn = di(t.firstChild)), !0) : !1
      );
    case 6:
      return (
        (t = e.pendingProps === "" || t.nodeType !== 3 ? null : t),
        t !== null ? ((e.stateNode = t), (zn = e), (jn = null), !0) : !1
      );
    case 13:
      return (
        (t = t.nodeType !== 8 ? null : t),
        t !== null
          ? ((n = hs !== null ? { id: Po, overflow: Ao } : null),
            (e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }),
            (n = ar(18, null, null, 0)),
            (n.stateNode = t),
            (n.return = e),
            (e.child = n),
            (zn = e),
            (jn = null),
            !0)
          : !1
      );
    default:
      return !1;
  }
}
function Sm(e) {
  return (e.mode & 1) !== 0 && (e.flags & 128) === 0;
}
function km(e) {
  if (At) {
    var t = jn;
    if (t) {
      var n = t;
      if (!D8(e, t)) {
        if (Sm(e)) throw Error(ce(418));
        t = di(n.nextSibling);
        var r = zn;
        t && D8(e, t) ? cx(r, n) : ((e.flags = (e.flags & -4097) | 2), (At = !1), (zn = e));
      }
    } else {
      if (Sm(e)) throw Error(ce(418));
      (e.flags = (e.flags & -4097) | 2), (At = !1), (zn = e);
    }
  }
}
function R8(e) {
  for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return;
  zn = e;
}
function Xc(e) {
  if (e !== zn) return !1;
  if (!At) return R8(e), (At = !0), !1;
  var t;
  if (
    ((t = e.tag !== 3) &&
      !(t = e.tag !== 5) &&
      ((t = e.type), (t = t !== "head" && t !== "body" && !xm(e.type, e.memoizedProps))),
    t && (t = jn))
  ) {
    if (Sm(e)) throw (dx(), Error(ce(418)));
    for (; t; ) cx(e, t), (t = di(t.nextSibling));
  }
  if ((R8(e), e.tag === 13)) {
    if (((e = e.memoizedState), (e = e !== null ? e.dehydrated : null), !e)) throw Error(ce(317));
    e: {
      for (e = e.nextSibling, t = 0; e; ) {
        if (e.nodeType === 8) {
          var n = e.data;
          if (n === "/$") {
            if (t === 0) {
              jn = di(e.nextSibling);
              break e;
            }
            t--;
          } else (n !== "$" && n !== "$!" && n !== "$?") || t++;
        }
        e = e.nextSibling;
      }
      jn = null;
    }
  } else jn = zn ? di(e.stateNode.nextSibling) : null;
  return !0;
}
function dx() {
  for (var e = jn; e; ) e = di(e.nextSibling);
}
function Na() {
  (jn = zn = null), (At = !1);
}
function mg(e) {
  _r === null ? (_r = [e]) : _r.push(e);
}
var _D = Uo.ReactCurrentBatchConfig;
function wl(e, t, n) {
  if (((e = n.ref), e !== null && typeof e != "function" && typeof e != "object")) {
    if (n._owner) {
      if (((n = n._owner), n)) {
        if (n.tag !== 1) throw Error(ce(309));
        var r = n.stateNode;
      }
      if (!r) throw Error(ce(147, e));
      var o = r,
        i = "" + e;
      return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === i
        ? t.ref
        : ((t = function (s) {
            var a = o.refs;
            s === null ? delete a[i] : (a[i] = s);
          }),
          (t._stringRef = i),
          t);
    }
    if (typeof e != "string") throw Error(ce(284));
    if (!n._owner) throw Error(ce(290, e));
  }
  return e;
}
function qc(e, t) {
  throw (
    ((e = Object.prototype.toString.call(t)),
    Error(ce(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)))
  );
}
function I8(e) {
  var t = e._init;
  return t(e._payload);
}
function fx(e) {
  function t(y, g) {
    if (e) {
      var x = y.deletions;
      x === null ? ((y.deletions = [g]), (y.flags |= 16)) : x.push(g);
    }
  }
  function n(y, g) {
    if (!e) return null;
    for (; g !== null; ) t(y, g), (g = g.sibling);
    return null;
  }
  function r(y, g) {
    for (y = new Map(); g !== null; ) g.key !== null ? y.set(g.key, g) : y.set(g.index, g), (g = g.sibling);
    return y;
  }
  function o(y, g) {
    return (y = mi(y, g)), (y.index = 0), (y.sibling = null), y;
  }
  function i(y, g, x) {
    return (
      (y.index = x),
      e
        ? ((x = y.alternate), x !== null ? ((x = x.index), x < g ? ((y.flags |= 2), g) : x) : ((y.flags |= 2), g))
        : ((y.flags |= 1048576), g)
    );
  }
  function s(y) {
    return e && y.alternate === null && (y.flags |= 2), y;
  }
  function a(y, g, x, w) {
    return g === null || g.tag !== 6 ? ((g = Y1(x, y.mode, w)), (g.return = y), g) : ((g = o(g, x)), (g.return = y), g);
  }
  function l(y, g, x, w) {
    var k = x.type;
    return k === Zs
      ? c(y, g, x.props.children, w, x.key)
      : g !== null &&
          (g.elementType === k || (typeof k == "object" && k !== null && k.$$typeof === Jo && I8(k) === g.type))
        ? ((w = o(g, x.props)), (w.ref = wl(y, g, x)), (w.return = y), w)
        : ((w = Gd(x.type, x.key, x.props, null, y.mode, w)), (w.ref = wl(y, g, x)), (w.return = y), w);
  }
  function u(y, g, x, w) {
    return g === null ||
      g.tag !== 4 ||
      g.stateNode.containerInfo !== x.containerInfo ||
      g.stateNode.implementation !== x.implementation
      ? ((g = K1(x, y.mode, w)), (g.return = y), g)
      : ((g = o(g, x.children || [])), (g.return = y), g);
  }
  function c(y, g, x, w, k) {
    return g === null || g.tag !== 7
      ? ((g = ts(x, y.mode, w, k)), (g.return = y), g)
      : ((g = o(g, x)), (g.return = y), g);
  }
  function d(y, g, x) {
    if ((typeof g == "string" && g !== "") || typeof g == "number")
      return (g = Y1("" + g, y.mode, x)), (g.return = y), g;
    if (typeof g == "object" && g !== null) {
      switch (g.$$typeof) {
        case Bc:
          return (x = Gd(g.type, g.key, g.props, null, y.mode, x)), (x.ref = wl(y, null, g)), (x.return = y), x;
        case qs:
          return (g = K1(g, y.mode, x)), (g.return = y), g;
        case Jo:
          var w = g._init;
          return d(y, w(g._payload), x);
      }
      if (zl(g) || yl(g)) return (g = ts(g, y.mode, x, null)), (g.return = y), g;
      qc(y, g);
    }
    return null;
  }
  function p(y, g, x, w) {
    var k = g !== null ? g.key : null;
    if ((typeof x == "string" && x !== "") || typeof x == "number") return k !== null ? null : a(y, g, "" + x, w);
    if (typeof x == "object" && x !== null) {
      switch (x.$$typeof) {
        case Bc:
          return x.key === k ? l(y, g, x, w) : null;
        case qs:
          return x.key === k ? u(y, g, x, w) : null;
        case Jo:
          return (k = x._init), p(y, g, k(x._payload), w);
      }
      if (zl(x) || yl(x)) return k !== null ? null : c(y, g, x, w, null);
      qc(y, x);
    }
    return null;
  }
  function h(y, g, x, w, k) {
    if ((typeof w == "string" && w !== "") || typeof w == "number") return (y = y.get(x) || null), a(g, y, "" + w, k);
    if (typeof w == "object" && w !== null) {
      switch (w.$$typeof) {
        case Bc:
          return (y = y.get(w.key === null ? x : w.key) || null), l(g, y, w, k);
        case qs:
          return (y = y.get(w.key === null ? x : w.key) || null), u(g, y, w, k);
        case Jo:
          var M = w._init;
          return h(y, g, x, M(w._payload), k);
      }
      if (zl(w) || yl(w)) return (y = y.get(x) || null), c(g, y, w, k, null);
      qc(g, w);
    }
    return null;
  }
  function m(y, g, x, w) {
    for (var k = null, M = null, T = g, P = (g = 0), A = null; T !== null && P < x.length; P++) {
      T.index > P ? ((A = T), (T = null)) : (A = T.sibling);
      var D = p(y, T, x[P], w);
      if (D === null) {
        T === null && (T = A);
        break;
      }
      e && T && D.alternate === null && t(y, T),
        (g = i(D, g, P)),
        M === null ? (k = D) : (M.sibling = D),
        (M = D),
        (T = A);
    }
    if (P === x.length) return n(y, T), At && Vi(y, P), k;
    if (T === null) {
      for (; P < x.length; P++)
        (T = d(y, x[P], w)), T !== null && ((g = i(T, g, P)), M === null ? (k = T) : (M.sibling = T), (M = T));
      return At && Vi(y, P), k;
    }
    for (T = r(y, T); P < x.length; P++)
      (A = h(T, y, P, x[P], w)),
        A !== null &&
          (e && A.alternate !== null && T.delete(A.key === null ? P : A.key),
          (g = i(A, g, P)),
          M === null ? (k = A) : (M.sibling = A),
          (M = A));
    return (
      e &&
        T.forEach(function (R) {
          return t(y, R);
        }),
      At && Vi(y, P),
      k
    );
  }
  function v(y, g, x, w) {
    var k = yl(x);
    if (typeof k != "function") throw Error(ce(150));
    if (((x = k.call(x)), x == null)) throw Error(ce(151));
    for (var M = (k = null), T = g, P = (g = 0), A = null, D = x.next(); T !== null && !D.done; P++, D = x.next()) {
      T.index > P ? ((A = T), (T = null)) : (A = T.sibling);
      var R = p(y, T, D.value, w);
      if (R === null) {
        T === null && (T = A);
        break;
      }
      e && T && R.alternate === null && t(y, T),
        (g = i(R, g, P)),
        M === null ? (k = R) : (M.sibling = R),
        (M = R),
        (T = A);
    }
    if (D.done) return n(y, T), At && Vi(y, P), k;
    if (T === null) {
      for (; !D.done; P++, D = x.next())
        (D = d(y, D.value, w)), D !== null && ((g = i(D, g, P)), M === null ? (k = D) : (M.sibling = D), (M = D));
      return At && Vi(y, P), k;
    }
    for (T = r(y, T); !D.done; P++, D = x.next())
      (D = h(T, y, P, D.value, w)),
        D !== null &&
          (e && D.alternate !== null && T.delete(D.key === null ? P : D.key),
          (g = i(D, g, P)),
          M === null ? (k = D) : (M.sibling = D),
          (M = D));
    return (
      e &&
        T.forEach(function (L) {
          return t(y, L);
        }),
      At && Vi(y, P),
      k
    );
  }
  function C(y, g, x, w) {
    if (
      (typeof x == "object" && x !== null && x.type === Zs && x.key === null && (x = x.props.children),
      typeof x == "object" && x !== null)
    ) {
      switch (x.$$typeof) {
        case Bc:
          e: {
            for (var k = x.key, M = g; M !== null; ) {
              if (M.key === k) {
                if (((k = x.type), k === Zs)) {
                  if (M.tag === 7) {
                    n(y, M.sibling), (g = o(M, x.props.children)), (g.return = y), (y = g);
                    break e;
                  }
                } else if (
                  M.elementType === k ||
                  (typeof k == "object" && k !== null && k.$$typeof === Jo && I8(k) === M.type)
                ) {
                  n(y, M.sibling), (g = o(M, x.props)), (g.ref = wl(y, M, x)), (g.return = y), (y = g);
                  break e;
                }
                n(y, M);
                break;
              } else t(y, M);
              M = M.sibling;
            }
            x.type === Zs
              ? ((g = ts(x.props.children, y.mode, w, x.key)), (g.return = y), (y = g))
              : ((w = Gd(x.type, x.key, x.props, null, y.mode, w)), (w.ref = wl(y, g, x)), (w.return = y), (y = w));
          }
          return s(y);
        case qs:
          e: {
            for (M = x.key; g !== null; ) {
              if (g.key === M)
                if (
                  g.tag === 4 &&
                  g.stateNode.containerInfo === x.containerInfo &&
                  g.stateNode.implementation === x.implementation
                ) {
                  n(y, g.sibling), (g = o(g, x.children || [])), (g.return = y), (y = g);
                  break e;
                } else {
                  n(y, g);
                  break;
                }
              else t(y, g);
              g = g.sibling;
            }
            (g = K1(x, y.mode, w)), (g.return = y), (y = g);
          }
          return s(y);
        case Jo:
          return (M = x._init), C(y, g, M(x._payload), w);
      }
      if (zl(x)) return m(y, g, x, w);
      if (yl(x)) return v(y, g, x, w);
      qc(y, x);
    }
    return (typeof x == "string" && x !== "") || typeof x == "number"
      ? ((x = "" + x),
        g !== null && g.tag === 6
          ? (n(y, g.sibling), (g = o(g, x)), (g.return = y), (y = g))
          : (n(y, g), (g = Y1(x, y.mode, w)), (g.return = y), (y = g)),
        s(y))
      : n(y, g);
  }
  return C;
}
var $a = fx(!0),
  px = fx(!1),
  Ef = Pi(null),
  Pf = null,
  ia = null,
  gg = null;
function yg() {
  gg = ia = Pf = null;
}
function vg(e) {
  var t = Ef.current;
  kt(Ef), (e._currentValue = t);
}
function Tm(e, t, n) {
  for (; e !== null; ) {
    var r = e.alternate;
    if (
      ((e.childLanes & t) !== t
        ? ((e.childLanes |= t), r !== null && (r.childLanes |= t))
        : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t),
      e === n)
    )
      break;
    e = e.return;
  }
}
function ya(e, t) {
  (Pf = e),
    (gg = ia = null),
    (e = e.dependencies),
    e !== null && e.firstContext !== null && (e.lanes & t && (_n = !0), (e.firstContext = null));
}
function hr(e) {
  var t = e._currentValue;
  if (gg !== e)
    if (((e = { context: e, memoizedValue: t, next: null }), ia === null)) {
      if (Pf === null) throw Error(ce(308));
      (ia = e), (Pf.dependencies = { lanes: 0, firstContext: e });
    } else ia = ia.next = e;
  return t;
}
var Ki = null;
function xg(e) {
  Ki === null ? (Ki = [e]) : Ki.push(e);
}
function hx(e, t, n, r) {
  var o = t.interleaved;
  return o === null ? ((n.next = n), xg(t)) : ((n.next = o.next), (o.next = n)), (t.interleaved = n), $o(e, r);
}
function $o(e, t) {
  e.lanes |= t;
  var n = e.alternate;
  for (n !== null && (n.lanes |= t), n = e, e = e.return; e !== null; )
    (e.childLanes |= t), (n = e.alternate), n !== null && (n.childLanes |= t), (n = e), (e = e.return);
  return n.tag === 3 ? n.stateNode : null;
}
var Qo = !1;
function bg(e) {
  e.updateQueue = {
    baseState: e.memoizedState,
    firstBaseUpdate: null,
    lastBaseUpdate: null,
    shared: { pending: null, interleaved: null, lanes: 0 },
    effects: null,
  };
}
function mx(e, t) {
  (e = e.updateQueue),
    t.updateQueue === e &&
      (t.updateQueue = {
        baseState: e.baseState,
        firstBaseUpdate: e.firstBaseUpdate,
        lastBaseUpdate: e.lastBaseUpdate,
        shared: e.shared,
        effects: e.effects,
      });
}
function Ro(e, t) {
  return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null };
}
function fi(e, t, n) {
  var r = e.updateQueue;
  if (r === null) return null;
  if (((r = r.shared), et & 2)) {
    var o = r.pending;
    return o === null ? (t.next = t) : ((t.next = o.next), (o.next = t)), (r.pending = t), $o(e, n);
  }
  return (
    (o = r.interleaved),
    o === null ? ((t.next = t), xg(r)) : ((t.next = o.next), (o.next = t)),
    (r.interleaved = t),
    $o(e, n)
  );
}
function Bd(e, t, n) {
  if (((t = t.updateQueue), t !== null && ((t = t.shared), (n & 4194240) !== 0))) {
    var r = t.lanes;
    (r &= e.pendingLanes), (n |= r), (t.lanes = n), ig(e, n);
  }
}
function O8(e, t) {
  var n = e.updateQueue,
    r = e.alternate;
  if (r !== null && ((r = r.updateQueue), n === r)) {
    var o = null,
      i = null;
    if (((n = n.firstBaseUpdate), n !== null)) {
      do {
        var s = {
          eventTime: n.eventTime,
          lane: n.lane,
          tag: n.tag,
          payload: n.payload,
          callback: n.callback,
          next: null,
        };
        i === null ? (o = i = s) : (i = i.next = s), (n = n.next);
      } while (n !== null);
      i === null ? (o = i = t) : (i = i.next = t);
    } else o = i = t;
    (n = { baseState: r.baseState, firstBaseUpdate: o, lastBaseUpdate: i, shared: r.shared, effects: r.effects }),
      (e.updateQueue = n);
    return;
  }
  (e = n.lastBaseUpdate), e === null ? (n.firstBaseUpdate = t) : (e.next = t), (n.lastBaseUpdate = t);
}
function Af(e, t, n, r) {
  var o = e.updateQueue;
  Qo = !1;
  var i = o.firstBaseUpdate,
    s = o.lastBaseUpdate,
    a = o.shared.pending;
  if (a !== null) {
    o.shared.pending = null;
    var l = a,
      u = l.next;
    (l.next = null), s === null ? (i = u) : (s.next = u), (s = l);
    var c = e.alternate;
    c !== null &&
      ((c = c.updateQueue),
      (a = c.lastBaseUpdate),
      a !== s && (a === null ? (c.firstBaseUpdate = u) : (a.next = u), (c.lastBaseUpdate = l)));
  }
  if (i !== null) {
    var d = o.baseState;
    (s = 0), (c = u = l = null), (a = i);
    do {
      var p = a.lane,
        h = a.eventTime;
      if ((r & p) === p) {
        c !== null &&
          (c = c.next = { eventTime: h, lane: 0, tag: a.tag, payload: a.payload, callback: a.callback, next: null });
        e: {
          var m = e,
            v = a;
          switch (((p = t), (h = n), v.tag)) {
            case 1:
              if (((m = v.payload), typeof m == "function")) {
                d = m.call(h, d, p);
                break e;
              }
              d = m;
              break e;
            case 3:
              m.flags = (m.flags & -65537) | 128;
            case 0:
              if (((m = v.payload), (p = typeof m == "function" ? m.call(h, d, p) : m), p == null)) break e;
              d = Ot({}, d, p);
              break e;
            case 2:
              Qo = !0;
          }
        }
        a.callback !== null &&
          a.lane !== 0 &&
          ((e.flags |= 64), (p = o.effects), p === null ? (o.effects = [a]) : p.push(a));
      } else
        (h = { eventTime: h, lane: p, tag: a.tag, payload: a.payload, callback: a.callback, next: null }),
          c === null ? ((u = c = h), (l = d)) : (c = c.next = h),
          (s |= p);
      if (((a = a.next), a === null)) {
        if (((a = o.shared.pending), a === null)) break;
        (p = a), (a = p.next), (p.next = null), (o.lastBaseUpdate = p), (o.shared.pending = null);
      }
    } while (!0);
    if (
      (c === null && (l = d),
      (o.baseState = l),
      (o.firstBaseUpdate = u),
      (o.lastBaseUpdate = c),
      (t = o.shared.interleaved),
      t !== null)
    ) {
      o = t;
      do (s |= o.lane), (o = o.next);
      while (o !== t);
    } else i === null && (o.shared.lanes = 0);
    (gs |= s), (e.lanes = s), (e.memoizedState = d);
  }
}
function F8(e, t, n) {
  if (((e = t.effects), (t.effects = null), e !== null))
    for (t = 0; t < e.length; t++) {
      var r = e[t],
        o = r.callback;
      if (o !== null) {
        if (((r.callback = null), (r = n), typeof o != "function")) throw Error(ce(191, o));
        o.call(r);
      }
    }
}
var pc = {},
  oo = Pi(pc),
  Fu = Pi(pc),
  Lu = Pi(pc);
function Xi(e) {
  if (e === pc) throw Error(ce(174));
  return e;
}
function Cg(e, t) {
  switch ((bt(Lu, t), bt(Fu, e), bt(oo, pc), (e = t.nodeType), e)) {
    case 9:
    case 11:
      t = (t = t.documentElement) ? t.namespaceURI : im(null, "");
      break;
    default:
      (e = e === 8 ? t.parentNode : t), (t = e.namespaceURI || null), (e = e.tagName), (t = im(t, e));
  }
  kt(oo), bt(oo, t);
}
function Ba() {
  kt(oo), kt(Fu), kt(Lu);
}
function gx(e) {
  Xi(Lu.current);
  var t = Xi(oo.current),
    n = im(t, e.type);
  t !== n && (bt(Fu, e), bt(oo, n));
}
function wg(e) {
  Fu.current === e && (kt(oo), kt(Fu));
}
var _t = Pi(0);
function _f(e) {
  for (var t = e; t !== null; ) {
    if (t.tag === 13) {
      var n = t.memoizedState;
      if (n !== null && ((n = n.dehydrated), n === null || n.data === "$?" || n.data === "$!")) return t;
    } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) {
      if (t.flags & 128) return t;
    } else if (t.child !== null) {
      (t.child.return = t), (t = t.child);
      continue;
    }
    if (t === e) break;
    for (; t.sibling === null; ) {
      if (t.return === null || t.return === e) return null;
      t = t.return;
    }
    (t.sibling.return = t.return), (t = t.sibling);
  }
  return null;
}
var V1 = [];
function Sg() {
  for (var e = 0; e < V1.length; e++) V1[e]._workInProgressVersionPrimary = null;
  V1.length = 0;
}
var jd = Uo.ReactCurrentDispatcher,
  H1 = Uo.ReactCurrentBatchConfig,
  ms = 0,
  Rt = null,
  qt = null,
  Qt = null,
  Df = !1,
  tu = !1,
  Nu = 0,
  DD = 0;
function cn() {
  throw Error(ce(321));
}
function kg(e, t) {
  if (t === null) return !1;
  for (var n = 0; n < t.length && n < e.length; n++) if (!Nr(e[n], t[n])) return !1;
  return !0;
}
function Tg(e, t, n, r, o, i) {
  if (
    ((ms = i),
    (Rt = t),
    (t.memoizedState = null),
    (t.updateQueue = null),
    (t.lanes = 0),
    (jd.current = e === null || e.memoizedState === null ? FD : LD),
    (e = n(r, o)),
    tu)
  ) {
    i = 0;
    do {
      if (((tu = !1), (Nu = 0), 25 <= i)) throw Error(ce(301));
      (i += 1), (Qt = qt = null), (t.updateQueue = null), (jd.current = ND), (e = n(r, o));
    } while (tu);
  }
  if (((jd.current = Rf), (t = qt !== null && qt.next !== null), (ms = 0), (Qt = qt = Rt = null), (Df = !1), t))
    throw Error(ce(300));
  return e;
}
function Mg() {
  var e = Nu !== 0;
  return (Nu = 0), e;
}
function Ur() {
  var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
  return Qt === null ? (Rt.memoizedState = Qt = e) : (Qt = Qt.next = e), Qt;
}
function mr() {
  if (qt === null) {
    var e = Rt.alternate;
    e = e !== null ? e.memoizedState : null;
  } else e = qt.next;
  var t = Qt === null ? Rt.memoizedState : Qt.next;
  if (t !== null) (Qt = t), (qt = e);
  else {
    if (e === null) throw Error(ce(310));
    (qt = e),
      (e = {
        memoizedState: qt.memoizedState,
        baseState: qt.baseState,
        baseQueue: qt.baseQueue,
        queue: qt.queue,
        next: null,
      }),
      Qt === null ? (Rt.memoizedState = Qt = e) : (Qt = Qt.next = e);
  }
  return Qt;
}
function $u(e, t) {
  return typeof t == "function" ? t(e) : t;
}
function z1(e) {
  var t = mr(),
    n = t.queue;
  if (n === null) throw Error(ce(311));
  n.lastRenderedReducer = e;
  var r = qt,
    o = r.baseQueue,
    i = n.pending;
  if (i !== null) {
    if (o !== null) {
      var s = o.next;
      (o.next = i.next), (i.next = s);
    }
    (r.baseQueue = o = i), (n.pending = null);
  }
  if (o !== null) {
    (i = o.next), (r = r.baseState);
    var a = (s = null),
      l = null,
      u = i;
    do {
      var c = u.lane;
      if ((ms & c) === c)
        l !== null &&
          (l = l.next =
            { lane: 0, action: u.action, hasEagerState: u.hasEagerState, eagerState: u.eagerState, next: null }),
          (r = u.hasEagerState ? u.eagerState : e(r, u.action));
      else {
        var d = { lane: c, action: u.action, hasEagerState: u.hasEagerState, eagerState: u.eagerState, next: null };
        l === null ? ((a = l = d), (s = r)) : (l = l.next = d), (Rt.lanes |= c), (gs |= c);
      }
      u = u.next;
    } while (u !== null && u !== i);
    l === null ? (s = r) : (l.next = a),
      Nr(r, t.memoizedState) || (_n = !0),
      (t.memoizedState = r),
      (t.baseState = s),
      (t.baseQueue = l),
      (n.lastRenderedState = r);
  }
  if (((e = n.interleaved), e !== null)) {
    o = e;
    do (i = o.lane), (Rt.lanes |= i), (gs |= i), (o = o.next);
    while (o !== e);
  } else o === null && (n.lanes = 0);
  return [t.memoizedState, n.dispatch];
}
function W1(e) {
  var t = mr(),
    n = t.queue;
  if (n === null) throw Error(ce(311));
  n.lastRenderedReducer = e;
  var r = n.dispatch,
    o = n.pending,
    i = t.memoizedState;
  if (o !== null) {
    n.pending = null;
    var s = (o = o.next);
    do (i = e(i, s.action)), (s = s.next);
    while (s !== o);
    Nr(i, t.memoizedState) || (_n = !0),
      (t.memoizedState = i),
      t.baseQueue === null && (t.baseState = i),
      (n.lastRenderedState = i);
  }
  return [i, r];
}
function yx() {}
function vx(e, t) {
  var n = Rt,
    r = mr(),
    o = t(),
    i = !Nr(r.memoizedState, o);
  if (
    (i && ((r.memoizedState = o), (_n = !0)),
    (r = r.queue),
    Eg(Cx.bind(null, n, r, e), [e]),
    r.getSnapshot !== t || i || (Qt !== null && Qt.memoizedState.tag & 1))
  ) {
    if (((n.flags |= 2048), Bu(9, bx.bind(null, n, r, o, t), void 0, null), en === null)) throw Error(ce(349));
    ms & 30 || xx(n, t, o);
  }
  return o;
}
function xx(e, t, n) {
  (e.flags |= 16384),
    (e = { getSnapshot: t, value: n }),
    (t = Rt.updateQueue),
    t === null
      ? ((t = { lastEffect: null, stores: null }), (Rt.updateQueue = t), (t.stores = [e]))
      : ((n = t.stores), n === null ? (t.stores = [e]) : n.push(e));
}
function bx(e, t, n, r) {
  (t.value = n), (t.getSnapshot = r), wx(t) && Sx(e);
}
function Cx(e, t, n) {
  return n(function () {
    wx(t) && Sx(e);
  });
}
function wx(e) {
  var t = e.getSnapshot;
  e = e.value;
  try {
    var n = t();
    return !Nr(e, n);
  } catch {
    return !0;
  }
}
function Sx(e) {
  var t = $o(e, 1);
  t !== null && Fr(t, e, 1, -1);
}
function L8(e) {
  var t = Ur();
  return (
    typeof e == "function" && (e = e()),
    (t.memoizedState = t.baseState = e),
    (e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: $u, lastRenderedState: e }),
    (t.queue = e),
    (e = e.dispatch = OD.bind(null, Rt, e)),
    [t.memoizedState, e]
  );
}
function Bu(e, t, n, r) {
  return (
    (e = { tag: e, create: t, destroy: n, deps: r, next: null }),
    (t = Rt.updateQueue),
    t === null
      ? ((t = { lastEffect: null, stores: null }), (Rt.updateQueue = t), (t.lastEffect = e.next = e))
      : ((n = t.lastEffect),
        n === null ? (t.lastEffect = e.next = e) : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e))),
    e
  );
}
function kx() {
  return mr().memoizedState;
}
function Vd(e, t, n, r) {
  var o = Ur();
  (Rt.flags |= e), (o.memoizedState = Bu(1 | t, n, void 0, r === void 0 ? null : r));
}
function l0(e, t, n, r) {
  var o = mr();
  r = r === void 0 ? null : r;
  var i = void 0;
  if (qt !== null) {
    var s = qt.memoizedState;
    if (((i = s.destroy), r !== null && kg(r, s.deps))) {
      o.memoizedState = Bu(t, n, i, r);
      return;
    }
  }
  (Rt.flags |= e), (o.memoizedState = Bu(1 | t, n, i, r));
}
function N8(e, t) {
  return Vd(8390656, 8, e, t);
}
function Eg(e, t) {
  return l0(2048, 8, e, t);
}
function Tx(e, t) {
  return l0(4, 2, e, t);
}
function Mx(e, t) {
  return l0(4, 4, e, t);
}
function Ex(e, t) {
  if (typeof t == "function")
    return (
      (e = e()),
      t(e),
      function () {
        t(null);
      }
    );
  if (t != null)
    return (
      (e = e()),
      (t.current = e),
      function () {
        t.current = null;
      }
    );
}
function Px(e, t, n) {
  return (n = n != null ? n.concat([e]) : null), l0(4, 4, Ex.bind(null, t, e), n);
}
function Pg() {}
function Ax(e, t) {
  var n = mr();
  t = t === void 0 ? null : t;
  var r = n.memoizedState;
  return r !== null && t !== null && kg(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e);
}
function _x(e, t) {
  var n = mr();
  t = t === void 0 ? null : t;
  var r = n.memoizedState;
  return r !== null && t !== null && kg(t, r[1]) ? r[0] : ((e = e()), (n.memoizedState = [e, t]), e);
}
function Dx(e, t, n) {
  return ms & 21
    ? (Nr(n, t) || ((n = L4()), (Rt.lanes |= n), (gs |= n), (e.baseState = !0)), t)
    : (e.baseState && ((e.baseState = !1), (_n = !0)), (e.memoizedState = n));
}
function RD(e, t) {
  var n = ft;
  (ft = n !== 0 && 4 > n ? n : 4), e(!0);
  var r = H1.transition;
  H1.transition = {};
  try {
    e(!1), t();
  } finally {
    (ft = n), (H1.transition = r);
  }
}
function Rx() {
  return mr().memoizedState;
}
function ID(e, t, n) {
  var r = hi(e);
  if (((n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }), Ix(e))) Ox(t, n);
  else if (((n = hx(e, t, n, r)), n !== null)) {
    var o = wn();
    Fr(n, e, r, o), Fx(n, t, r);
  }
}
function OD(e, t, n) {
  var r = hi(e),
    o = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null };
  if (Ix(e)) Ox(t, o);
  else {
    var i = e.alternate;
    if (e.lanes === 0 && (i === null || i.lanes === 0) && ((i = t.lastRenderedReducer), i !== null))
      try {
        var s = t.lastRenderedState,
          a = i(s, n);
        if (((o.hasEagerState = !0), (o.eagerState = a), Nr(a, s))) {
          var l = t.interleaved;
          l === null ? ((o.next = o), xg(t)) : ((o.next = l.next), (l.next = o)), (t.interleaved = o);
          return;
        }
      } catch {
      } finally {
      }
    (n = hx(e, t, o, r)), n !== null && ((o = wn()), Fr(n, e, r, o), Fx(n, t, r));
  }
}
function Ix(e) {
  var t = e.alternate;
  return e === Rt || (t !== null && t === Rt);
}
function Ox(e, t) {
  tu = Df = !0;
  var n = e.pending;
  n === null ? (t.next = t) : ((t.next = n.next), (n.next = t)), (e.pending = t);
}
function Fx(e, t, n) {
  if (n & 4194240) {
    var r = t.lanes;
    (r &= e.pendingLanes), (n |= r), (t.lanes = n), ig(e, n);
  }
}
var Rf = {
    readContext: hr,
    useCallback: cn,
    useContext: cn,
    useEffect: cn,
    useImperativeHandle: cn,
    useInsertionEffect: cn,
    useLayoutEffect: cn,
    useMemo: cn,
    useReducer: cn,
    useRef: cn,
    useState: cn,
    useDebugValue: cn,
    useDeferredValue: cn,
    useTransition: cn,
    useMutableSource: cn,
    useSyncExternalStore: cn,
    useId: cn,
    unstable_isNewReconciler: !1,
  },
  FD = {
    readContext: hr,
    useCallback: function (e, t) {
      return (Ur().memoizedState = [e, t === void 0 ? null : t]), e;
    },
    useContext: hr,
    useEffect: N8,
    useImperativeHandle: function (e, t, n) {
      return (n = n != null ? n.concat([e]) : null), Vd(4194308, 4, Ex.bind(null, t, e), n);
    },
    useLayoutEffect: function (e, t) {
      return Vd(4194308, 4, e, t);
    },
    useInsertionEffect: function (e, t) {
      return Vd(4, 2, e, t);
    },
    useMemo: function (e, t) {
      var n = Ur();
      return (t = t === void 0 ? null : t), (e = e()), (n.memoizedState = [e, t]), e;
    },
    useReducer: function (e, t, n) {
      var r = Ur();
      return (
        (t = n !== void 0 ? n(t) : t),
        (r.memoizedState = r.baseState = t),
        (e = {
          pending: null,
          interleaved: null,
          lanes: 0,
          dispatch: null,
          lastRenderedReducer: e,
          lastRenderedState: t,
        }),
        (r.queue = e),
        (e = e.dispatch = ID.bind(null, Rt, e)),
        [r.memoizedState, e]
      );
    },
    useRef: function (e) {
      var t = Ur();
      return (e = { current: e }), (t.memoizedState = e);
    },
    useState: L8,
    useDebugValue: Pg,
    useDeferredValue: function (e) {
      return (Ur().memoizedState = e);
    },
    useTransition: function () {
      var e = L8(!1),
        t = e[0];
      return (e = RD.bind(null, e[1])), (Ur().memoizedState = e), [t, e];
    },
    useMutableSource: function () {},
    useSyncExternalStore: function (e, t, n) {
      var r = Rt,
        o = Ur();
      if (At) {
        if (n === void 0) throw Error(ce(407));
        n = n();
      } else {
        if (((n = t()), en === null)) throw Error(ce(349));
        ms & 30 || xx(r, t, n);
      }
      o.memoizedState = n;
      var i = { value: n, getSnapshot: t };
      return (
        (o.queue = i),
        N8(Cx.bind(null, r, i, e), [e]),
        (r.flags |= 2048),
        Bu(9, bx.bind(null, r, i, n, t), void 0, null),
        n
      );
    },
    useId: function () {
      var e = Ur(),
        t = en.identifierPrefix;
      if (At) {
        var n = Ao,
          r = Po;
        (n = (r & ~(1 << (32 - Or(r) - 1))).toString(32) + n),
          (t = ":" + t + "R" + n),
          (n = Nu++),
          0 < n && (t += "H" + n.toString(32)),
          (t += ":");
      } else (n = DD++), (t = ":" + t + "r" + n.toString(32) + ":");
      return (e.memoizedState = t);
    },
    unstable_isNewReconciler: !1,
  },
  LD = {
    readContext: hr,
    useCallback: Ax,
    useContext: hr,
    useEffect: Eg,
    useImperativeHandle: Px,
    useInsertionEffect: Tx,
    useLayoutEffect: Mx,
    useMemo: _x,
    useReducer: z1,
    useRef: kx,
    useState: function () {
      return z1($u);
    },
    useDebugValue: Pg,
    useDeferredValue: function (e) {
      var t = mr();
      return Dx(t, qt.memoizedState, e);
    },
    useTransition: function () {
      var e = z1($u)[0],
        t = mr().memoizedState;
      return [e, t];
    },
    useMutableSource: yx,
    useSyncExternalStore: vx,
    useId: Rx,
    unstable_isNewReconciler: !1,
  },
  ND = {
    readContext: hr,
    useCallback: Ax,
    useContext: hr,
    useEffect: Eg,
    useImperativeHandle: Px,
    useInsertionEffect: Tx,
    useLayoutEffect: Mx,
    useMemo: _x,
    useReducer: W1,
    useRef: kx,
    useState: function () {
      return W1($u);
    },
    useDebugValue: Pg,
    useDeferredValue: function (e) {
      var t = mr();
      return qt === null ? (t.memoizedState = e) : Dx(t, qt.memoizedState, e);
    },
    useTransition: function () {
      var e = W1($u)[0],
        t = mr().memoizedState;
      return [e, t];
    },
    useMutableSource: yx,
    useSyncExternalStore: vx,
    useId: Rx,
    unstable_isNewReconciler: !1,
  };
function Pr(e, t) {
  if (e && e.defaultProps) {
    (t = Ot({}, t)), (e = e.defaultProps);
    for (var n in e) t[n] === void 0 && (t[n] = e[n]);
    return t;
  }
  return t;
}
function Mm(e, t, n, r) {
  (t = e.memoizedState),
    (n = n(r, t)),
    (n = n == null ? t : Ot({}, t, n)),
    (e.memoizedState = n),
    e.lanes === 0 && (e.updateQueue.baseState = n);
}
var u0 = {
  isMounted: function (e) {
    return (e = e._reactInternals) ? Cs(e) === e : !1;
  },
  enqueueSetState: function (e, t, n) {
    e = e._reactInternals;
    var r = wn(),
      o = hi(e),
      i = Ro(r, o);
    (i.payload = t), n != null && (i.callback = n), (t = fi(e, i, o)), t !== null && (Fr(t, e, o, r), Bd(t, e, o));
  },
  enqueueReplaceState: function (e, t, n) {
    e = e._reactInternals;
    var r = wn(),
      o = hi(e),
      i = Ro(r, o);
    (i.tag = 1),
      (i.payload = t),
      n != null && (i.callback = n),
      (t = fi(e, i, o)),
      t !== null && (Fr(t, e, o, r), Bd(t, e, o));
  },
  enqueueForceUpdate: function (e, t) {
    e = e._reactInternals;
    var n = wn(),
      r = hi(e),
      o = Ro(n, r);
    (o.tag = 2), t != null && (o.callback = t), (t = fi(e, o, r)), t !== null && (Fr(t, e, r, n), Bd(t, e, r));
  },
};
function $8(e, t, n, r, o, i, s) {
  return (
    (e = e.stateNode),
    typeof e.shouldComponentUpdate == "function"
      ? e.shouldComponentUpdate(r, i, s)
      : t.prototype && t.prototype.isPureReactComponent
        ? !Du(n, r) || !Du(o, i)
        : !0
  );
}
function Lx(e, t, n) {
  var r = !1,
    o = Ci,
    i = t.contextType;
  return (
    typeof i == "object" && i !== null
      ? (i = hr(i))
      : ((o = Rn(t) ? ps : yn.current), (r = t.contextTypes), (i = (r = r != null) ? La(e, o) : Ci)),
    (t = new t(n, i)),
    (e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null),
    (t.updater = u0),
    (e.stateNode = t),
    (t._reactInternals = e),
    r &&
      ((e = e.stateNode),
      (e.__reactInternalMemoizedUnmaskedChildContext = o),
      (e.__reactInternalMemoizedMaskedChildContext = i)),
    t
  );
}
function B8(e, t, n, r) {
  (e = t.state),
    typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r),
    typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r),
    t.state !== e && u0.enqueueReplaceState(t, t.state, null);
}
function Em(e, t, n, r) {
  var o = e.stateNode;
  (o.props = n), (o.state = e.memoizedState), (o.refs = {}), bg(e);
  var i = t.contextType;
  typeof i == "object" && i !== null ? (o.context = hr(i)) : ((i = Rn(t) ? ps : yn.current), (o.context = La(e, i))),
    (o.state = e.memoizedState),
    (i = t.getDerivedStateFromProps),
    typeof i == "function" && (Mm(e, t, i, n), (o.state = e.memoizedState)),
    typeof t.getDerivedStateFromProps == "function" ||
      typeof o.getSnapshotBeforeUpdate == "function" ||
      (typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function") ||
      ((t = o.state),
      typeof o.componentWillMount == "function" && o.componentWillMount(),
      typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount(),
      t !== o.state && u0.enqueueReplaceState(o, o.state, null),
      Af(e, n, o, r),
      (o.state = e.memoizedState)),
    typeof o.componentDidMount == "function" && (e.flags |= 4194308);
}
function ja(e, t) {
  try {
    var n = "",
      r = t;
    do (n += d_(r)), (r = r.return);
    while (r);
    var o = n;
  } catch (i) {
    o =
      `
Error generating stack: ` +
      i.message +
      `
` +
      i.stack;
  }
  return { value: e, source: t, stack: o, digest: null };
}
function G1(e, t, n) {
  return { value: e, source: null, stack: n ?? null, digest: t ?? null };
}
function Pm(e, t) {
  try {
    console.error(t.value);
  } catch (n) {
    setTimeout(function () {
      throw n;
    });
  }
}
var $D = typeof WeakMap == "function" ? WeakMap : Map;
function Nx(e, t, n) {
  (n = Ro(-1, n)), (n.tag = 3), (n.payload = { element: null });
  var r = t.value;
  return (
    (n.callback = function () {
      Of || ((Of = !0), ($m = r)), Pm(e, t);
    }),
    n
  );
}
function $x(e, t, n) {
  (n = Ro(-1, n)), (n.tag = 3);
  var r = e.type.getDerivedStateFromError;
  if (typeof r == "function") {
    var o = t.value;
    (n.payload = function () {
      return r(o);
    }),
      (n.callback = function () {
        Pm(e, t);
      });
  }
  var i = e.stateNode;
  return (
    i !== null &&
      typeof i.componentDidCatch == "function" &&
      (n.callback = function () {
        Pm(e, t), typeof r != "function" && (pi === null ? (pi = new Set([this])) : pi.add(this));
        var s = t.stack;
        this.componentDidCatch(t.value, { componentStack: s !== null ? s : "" });
      }),
    n
  );
}
function j8(e, t, n) {
  var r = e.pingCache;
  if (r === null) {
    r = e.pingCache = new $D();
    var o = new Set();
    r.set(t, o);
  } else (o = r.get(t)), o === void 0 && ((o = new Set()), r.set(t, o));
  o.has(n) || (o.add(n), (e = JD.bind(null, e, t, n)), t.then(e, e));
}
function V8(e) {
  do {
    var t;
    if (((t = e.tag === 13) && ((t = e.memoizedState), (t = t !== null ? t.dehydrated !== null : !0)), t)) return e;
    e = e.return;
  } while (e !== null);
  return null;
}
function H8(e, t, n, r, o) {
  return e.mode & 1
    ? ((e.flags |= 65536), (e.lanes = o), e)
    : (e === t
        ? (e.flags |= 65536)
        : ((e.flags |= 128),
          (n.flags |= 131072),
          (n.flags &= -52805),
          n.tag === 1 && (n.alternate === null ? (n.tag = 17) : ((t = Ro(-1, 1)), (t.tag = 2), fi(n, t, 1))),
          (n.lanes |= 1)),
      e);
}
var BD = Uo.ReactCurrentOwner,
  _n = !1;
function bn(e, t, n, r) {
  t.child = e === null ? px(t, null, n, r) : $a(t, e.child, n, r);
}
function z8(e, t, n, r, o) {
  n = n.render;
  var i = t.ref;
  return (
    ya(t, o),
    (r = Tg(e, t, n, r, i, o)),
    (n = Mg()),
    e !== null && !_n
      ? ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~o), Bo(e, t, o))
      : (At && n && pg(t), (t.flags |= 1), bn(e, t, r, o), t.child)
  );
}
function W8(e, t, n, r, o) {
  if (e === null) {
    var i = n.type;
    return typeof i == "function" &&
      !Lg(i) &&
      i.defaultProps === void 0 &&
      n.compare === null &&
      n.defaultProps === void 0
      ? ((t.tag = 15), (t.type = i), Bx(e, t, i, r, o))
      : ((e = Gd(n.type, null, r, t, t.mode, o)), (e.ref = t.ref), (e.return = t), (t.child = e));
  }
  if (((i = e.child), !(e.lanes & o))) {
    var s = i.memoizedProps;
    if (((n = n.compare), (n = n !== null ? n : Du), n(s, r) && e.ref === t.ref)) return Bo(e, t, o);
  }
  return (t.flags |= 1), (e = mi(i, r)), (e.ref = t.ref), (e.return = t), (t.child = e);
}
function Bx(e, t, n, r, o) {
  if (e !== null) {
    var i = e.memoizedProps;
    if (Du(i, r) && e.ref === t.ref)
      if (((_n = !1), (t.pendingProps = r = i), (e.lanes & o) !== 0)) e.flags & 131072 && (_n = !0);
      else return (t.lanes = e.lanes), Bo(e, t, o);
  }
  return Am(e, t, n, r, o);
}
function jx(e, t, n) {
  var r = t.pendingProps,
    o = r.children,
    i = e !== null ? e.memoizedState : null;
  if (r.mode === "hidden")
    if (!(t.mode & 1)) (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), bt(aa, Nn), (Nn |= n);
    else {
      if (!(n & 1073741824))
        return (
          (e = i !== null ? i.baseLanes | n : n),
          (t.lanes = t.childLanes = 1073741824),
          (t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }),
          (t.updateQueue = null),
          bt(aa, Nn),
          (Nn |= e),
          null
        );
      (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }),
        (r = i !== null ? i.baseLanes : n),
        bt(aa, Nn),
        (Nn |= r);
    }
  else i !== null ? ((r = i.baseLanes | n), (t.memoizedState = null)) : (r = n), bt(aa, Nn), (Nn |= r);
  return bn(e, t, o, n), t.child;
}
function Vx(e, t) {
  var n = t.ref;
  ((e === null && n !== null) || (e !== null && e.ref !== n)) && ((t.flags |= 512), (t.flags |= 2097152));
}
function Am(e, t, n, r, o) {
  var i = Rn(n) ? ps : yn.current;
  return (
    (i = La(t, i)),
    ya(t, o),
    (n = Tg(e, t, n, r, i, o)),
    (r = Mg()),
    e !== null && !_n
      ? ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~o), Bo(e, t, o))
      : (At && r && pg(t), (t.flags |= 1), bn(e, t, n, o), t.child)
  );
}
function G8(e, t, n, r, o) {
  if (Rn(n)) {
    var i = !0;
    kf(t);
  } else i = !1;
  if ((ya(t, o), t.stateNode === null)) Hd(e, t), Lx(t, n, r), Em(t, n, r, o), (r = !0);
  else if (e === null) {
    var s = t.stateNode,
      a = t.memoizedProps;
    s.props = a;
    var l = s.context,
      u = n.contextType;
    typeof u == "object" && u !== null ? (u = hr(u)) : ((u = Rn(n) ? ps : yn.current), (u = La(t, u)));
    var c = n.getDerivedStateFromProps,
      d = typeof c == "function" || typeof s.getSnapshotBeforeUpdate == "function";
    d ||
      (typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function") ||
      ((a !== r || l !== u) && B8(t, s, r, u)),
      (Qo = !1);
    var p = t.memoizedState;
    (s.state = p),
      Af(t, r, s, o),
      (l = t.memoizedState),
      a !== r || p !== l || Dn.current || Qo
        ? (typeof c == "function" && (Mm(t, n, c, r), (l = t.memoizedState)),
          (a = Qo || $8(t, n, a, r, p, l, u))
            ? (d ||
                (typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function") ||
                (typeof s.componentWillMount == "function" && s.componentWillMount(),
                typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()),
              typeof s.componentDidMount == "function" && (t.flags |= 4194308))
            : (typeof s.componentDidMount == "function" && (t.flags |= 4194308),
              (t.memoizedProps = r),
              (t.memoizedState = l)),
          (s.props = r),
          (s.state = l),
          (s.context = u),
          (r = a))
        : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), (r = !1));
  } else {
    (s = t.stateNode),
      mx(e, t),
      (a = t.memoizedProps),
      (u = t.type === t.elementType ? a : Pr(t.type, a)),
      (s.props = u),
      (d = t.pendingProps),
      (p = s.context),
      (l = n.contextType),
      typeof l == "object" && l !== null ? (l = hr(l)) : ((l = Rn(n) ? ps : yn.current), (l = La(t, l)));
    var h = n.getDerivedStateFromProps;
    (c = typeof h == "function" || typeof s.getSnapshotBeforeUpdate == "function") ||
      (typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function") ||
      ((a !== d || p !== l) && B8(t, s, r, l)),
      (Qo = !1),
      (p = t.memoizedState),
      (s.state = p),
      Af(t, r, s, o);
    var m = t.memoizedState;
    a !== d || p !== m || Dn.current || Qo
      ? (typeof h == "function" && (Mm(t, n, h, r), (m = t.memoizedState)),
        (u = Qo || $8(t, n, u, r, p, m, l) || !1)
          ? (c ||
              (typeof s.UNSAFE_componentWillUpdate != "function" && typeof s.componentWillUpdate != "function") ||
              (typeof s.componentWillUpdate == "function" && s.componentWillUpdate(r, m, l),
              typeof s.UNSAFE_componentWillUpdate == "function" && s.UNSAFE_componentWillUpdate(r, m, l)),
            typeof s.componentDidUpdate == "function" && (t.flags |= 4),
            typeof s.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024))
          : (typeof s.componentDidUpdate != "function" ||
              (a === e.memoizedProps && p === e.memoizedState) ||
              (t.flags |= 4),
            typeof s.getSnapshotBeforeUpdate != "function" ||
              (a === e.memoizedProps && p === e.memoizedState) ||
              (t.flags |= 1024),
            (t.memoizedProps = r),
            (t.memoizedState = m)),
        (s.props = r),
        (s.state = m),
        (s.context = l),
        (r = u))
      : (typeof s.componentDidUpdate != "function" ||
          (a === e.memoizedProps && p === e.memoizedState) ||
          (t.flags |= 4),
        typeof s.getSnapshotBeforeUpdate != "function" ||
          (a === e.memoizedProps && p === e.memoizedState) ||
          (t.flags |= 1024),
        (r = !1));
  }
  return _m(e, t, n, r, i, o);
}
function _m(e, t, n, r, o, i) {
  Vx(e, t);
  var s = (t.flags & 128) !== 0;
  if (!r && !s) return o && _8(t, n, !1), Bo(e, t, i);
  (r = t.stateNode), (BD.current = t);
  var a = s && typeof n.getDerivedStateFromError != "function" ? null : r.render();
  return (
    (t.flags |= 1),
    e !== null && s ? ((t.child = $a(t, e.child, null, i)), (t.child = $a(t, null, a, i))) : bn(e, t, a, i),
    (t.memoizedState = r.state),
    o && _8(t, n, !0),
    t.child
  );
}
function Hx(e) {
  var t = e.stateNode;
  t.pendingContext ? A8(e, t.pendingContext, t.pendingContext !== t.context) : t.context && A8(e, t.context, !1),
    Cg(e, t.containerInfo);
}
function U8(e, t, n, r, o) {
  return Na(), mg(o), (t.flags |= 256), bn(e, t, n, r), t.child;
}
var Dm = { dehydrated: null, treeContext: null, retryLane: 0 };
function Rm(e) {
  return { baseLanes: e, cachePool: null, transitions: null };
}
function zx(e, t, n) {
  var r = t.pendingProps,
    o = _t.current,
    i = !1,
    s = (t.flags & 128) !== 0,
    a;
  if (
    ((a = s) || (a = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0),
    a ? ((i = !0), (t.flags &= -129)) : (e === null || e.memoizedState !== null) && (o |= 1),
    bt(_t, o & 1),
    e === null)
  )
    return (
      km(t),
      (e = t.memoizedState),
      e !== null && ((e = e.dehydrated), e !== null)
        ? (t.mode & 1 ? (e.data === "$!" ? (t.lanes = 8) : (t.lanes = 1073741824)) : (t.lanes = 1), null)
        : ((s = r.children),
          (e = r.fallback),
          i
            ? ((r = t.mode),
              (i = t.child),
              (s = { mode: "hidden", children: s }),
              !(r & 1) && i !== null ? ((i.childLanes = 0), (i.pendingProps = s)) : (i = f0(s, r, 0, null)),
              (e = ts(e, r, n, null)),
              (i.return = t),
              (e.return = t),
              (i.sibling = e),
              (t.child = i),
              (t.child.memoizedState = Rm(n)),
              (t.memoizedState = Dm),
              e)
            : Ag(t, s))
    );
  if (((o = e.memoizedState), o !== null && ((a = o.dehydrated), a !== null))) return jD(e, t, s, r, a, o, n);
  if (i) {
    (i = r.fallback), (s = t.mode), (o = e.child), (a = o.sibling);
    var l = { mode: "hidden", children: r.children };
    return (
      !(s & 1) && t.child !== o
        ? ((r = t.child), (r.childLanes = 0), (r.pendingProps = l), (t.deletions = null))
        : ((r = mi(o, l)), (r.subtreeFlags = o.subtreeFlags & 14680064)),
      a !== null ? (i = mi(a, i)) : ((i = ts(i, s, n, null)), (i.flags |= 2)),
      (i.return = t),
      (r.return = t),
      (r.sibling = i),
      (t.child = r),
      (r = i),
      (i = t.child),
      (s = e.child.memoizedState),
      (s = s === null ? Rm(n) : { baseLanes: s.baseLanes | n, cachePool: null, transitions: s.transitions }),
      (i.memoizedState = s),
      (i.childLanes = e.childLanes & ~n),
      (t.memoizedState = Dm),
      r
    );
  }
  return (
    (i = e.child),
    (e = i.sibling),
    (r = mi(i, { mode: "visible", children: r.children })),
    !(t.mode & 1) && (r.lanes = n),
    (r.return = t),
    (r.sibling = null),
    e !== null && ((n = t.deletions), n === null ? ((t.deletions = [e]), (t.flags |= 16)) : n.push(e)),
    (t.child = r),
    (t.memoizedState = null),
    r
  );
}
function Ag(e, t) {
  return (t = f0({ mode: "visible", children: t }, e.mode, 0, null)), (t.return = e), (e.child = t);
}
function Zc(e, t, n, r) {
  return (
    r !== null && mg(r),
    $a(t, e.child, null, n),
    (e = Ag(t, t.pendingProps.children)),
    (e.flags |= 2),
    (t.memoizedState = null),
    e
  );
}
function jD(e, t, n, r, o, i, s) {
  if (n)
    return t.flags & 256
      ? ((t.flags &= -257), (r = G1(Error(ce(422)))), Zc(e, t, s, r))
      : t.memoizedState !== null
        ? ((t.child = e.child), (t.flags |= 128), null)
        : ((i = r.fallback),
          (o = t.mode),
          (r = f0({ mode: "visible", children: r.children }, o, 0, null)),
          (i = ts(i, o, s, null)),
          (i.flags |= 2),
          (r.return = t),
          (i.return = t),
          (r.sibling = i),
          (t.child = r),
          t.mode & 1 && $a(t, e.child, null, s),
          (t.child.memoizedState = Rm(s)),
          (t.memoizedState = Dm),
          i);
  if (!(t.mode & 1)) return Zc(e, t, s, null);
  if (o.data === "$!") {
    if (((r = o.nextSibling && o.nextSibling.dataset), r)) var a = r.dgst;
    return (r = a), (i = Error(ce(419))), (r = G1(i, r, void 0)), Zc(e, t, s, r);
  }
  if (((a = (s & e.childLanes) !== 0), _n || a)) {
    if (((r = en), r !== null)) {
      switch (s & -s) {
        case 4:
          o = 2;
          break;
        case 16:
          o = 8;
          break;
        case 64:
        case 128:
        case 256:
        case 512:
        case 1024:
        case 2048:
        case 4096:
        case 8192:
        case 16384:
        case 32768:
        case 65536:
        case 131072:
        case 262144:
        case 524288:
        case 1048576:
        case 2097152:
        case 4194304:
        case 8388608:
        case 16777216:
        case 33554432:
        case 67108864:
          o = 32;
          break;
        case 536870912:
          o = 268435456;
          break;
        default:
          o = 0;
      }
      (o = o & (r.suspendedLanes | s) ? 0 : o),
        o !== 0 && o !== i.retryLane && ((i.retryLane = o), $o(e, o), Fr(r, e, o, -1));
    }
    return Fg(), (r = G1(Error(ce(421)))), Zc(e, t, s, r);
  }
  return o.data === "$?"
    ? ((t.flags |= 128), (t.child = e.child), (t = QD.bind(null, e)), (o._reactRetry = t), null)
    : ((e = i.treeContext),
      (jn = di(o.nextSibling)),
      (zn = t),
      (At = !0),
      (_r = null),
      e !== null && ((or[ir++] = Po), (or[ir++] = Ao), (or[ir++] = hs), (Po = e.id), (Ao = e.overflow), (hs = t)),
      (t = Ag(t, r.children)),
      (t.flags |= 4096),
      t);
}
function Y8(e, t, n) {
  e.lanes |= t;
  var r = e.alternate;
  r !== null && (r.lanes |= t), Tm(e.return, t, n);
}
function U1(e, t, n, r, o) {
  var i = e.memoizedState;
  i === null
    ? (e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: o })
    : ((i.isBackwards = t),
      (i.rendering = null),
      (i.renderingStartTime = 0),
      (i.last = r),
      (i.tail = n),
      (i.tailMode = o));
}
function Wx(e, t, n) {
  var r = t.pendingProps,
    o = r.revealOrder,
    i = r.tail;
  if ((bn(e, t, r.children, n), (r = _t.current), r & 2)) (r = (r & 1) | 2), (t.flags |= 128);
  else {
    if (e !== null && e.flags & 128)
      e: for (e = t.child; e !== null; ) {
        if (e.tag === 13) e.memoizedState !== null && Y8(e, n, t);
        else if (e.tag === 19) Y8(e, n, t);
        else if (e.child !== null) {
          (e.child.return = e), (e = e.child);
          continue;
        }
        if (e === t) break e;
        for (; e.sibling === null; ) {
          if (e.return === null || e.return === t) break e;
          e = e.return;
        }
        (e.sibling.return = e.return), (e = e.sibling);
      }
    r &= 1;
  }
  if ((bt(_t, r), !(t.mode & 1))) t.memoizedState = null;
  else
    switch (o) {
      case "forwards":
        for (n = t.child, o = null; n !== null; )
          (e = n.alternate), e !== null && _f(e) === null && (o = n), (n = n.sibling);
        (n = o),
          n === null ? ((o = t.child), (t.child = null)) : ((o = n.sibling), (n.sibling = null)),
          U1(t, !1, o, n, i);
        break;
      case "backwards":
        for (n = null, o = t.child, t.child = null; o !== null; ) {
          if (((e = o.alternate), e !== null && _f(e) === null)) {
            t.child = o;
            break;
          }
          (e = o.sibling), (o.sibling = n), (n = o), (o = e);
        }
        U1(t, !0, n, null, i);
        break;
      case "together":
        U1(t, !1, null, null, void 0);
        break;
      default:
        t.memoizedState = null;
    }
  return t.child;
}
function Hd(e, t) {
  !(t.mode & 1) && e !== null && ((e.alternate = null), (t.alternate = null), (t.flags |= 2));
}
function Bo(e, t, n) {
  if ((e !== null && (t.dependencies = e.dependencies), (gs |= t.lanes), !(n & t.childLanes))) return null;
  if (e !== null && t.child !== e.child) throw Error(ce(153));
  if (t.child !== null) {
    for (e = t.child, n = mi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; )
      (e = e.sibling), (n = n.sibling = mi(e, e.pendingProps)), (n.return = t);
    n.sibling = null;
  }
  return t.child;
}
function VD(e, t, n) {
  switch (t.tag) {
    case 3:
      Hx(t), Na();
      break;
    case 5:
      gx(t);
      break;
    case 1:
      Rn(t.type) && kf(t);
      break;
    case 4:
      Cg(t, t.stateNode.containerInfo);
      break;
    case 10:
      var r = t.type._context,
        o = t.memoizedProps.value;
      bt(Ef, r._currentValue), (r._currentValue = o);
      break;
    case 13:
      if (((r = t.memoizedState), r !== null))
        return r.dehydrated !== null
          ? (bt(_t, _t.current & 1), (t.flags |= 128), null)
          : n & t.child.childLanes
            ? zx(e, t, n)
            : (bt(_t, _t.current & 1), (e = Bo(e, t, n)), e !== null ? e.sibling : null);
      bt(_t, _t.current & 1);
      break;
    case 19:
      if (((r = (n & t.childLanes) !== 0), e.flags & 128)) {
        if (r) return Wx(e, t, n);
        t.flags |= 128;
      }
      if (
        ((o = t.memoizedState),
        o !== null && ((o.rendering = null), (o.tail = null), (o.lastEffect = null)),
        bt(_t, _t.current),
        r)
      )
        break;
      return null;
    case 22:
    case 23:
      return (t.lanes = 0), jx(e, t, n);
  }
  return Bo(e, t, n);
}
var Gx, Im, Ux, Yx;
Gx = function (e, t) {
  for (var n = t.child; n !== null; ) {
    if (n.tag === 5 || n.tag === 6) e.appendChild(n.stateNode);
    else if (n.tag !== 4 && n.child !== null) {
      (n.child.return = n), (n = n.child);
      continue;
    }
    if (n === t) break;
    for (; n.sibling === null; ) {
      if (n.return === null || n.return === t) return;
      n = n.return;
    }
    (n.sibling.return = n.return), (n = n.sibling);
  }
};
Im = function () {};
Ux = function (e, t, n, r) {
  var o = e.memoizedProps;
  if (o !== r) {
    (e = t.stateNode), Xi(oo.current);
    var i = null;
    switch (n) {
      case "input":
        (o = tm(e, o)), (r = tm(e, r)), (i = []);
        break;
      case "select":
        (o = Ot({}, o, { value: void 0 })), (r = Ot({}, r, { value: void 0 })), (i = []);
        break;
      case "textarea":
        (o = om(e, o)), (r = om(e, r)), (i = []);
        break;
      default:
        typeof o.onClick != "function" && typeof r.onClick == "function" && (e.onclick = wf);
    }
    sm(n, r);
    var s;
    n = null;
    for (u in o)
      if (!r.hasOwnProperty(u) && o.hasOwnProperty(u) && o[u] != null)
        if (u === "style") {
          var a = o[u];
          for (s in a) a.hasOwnProperty(s) && (n || (n = {}), (n[s] = ""));
        } else
          u !== "dangerouslySetInnerHTML" &&
            u !== "children" &&
            u !== "suppressContentEditableWarning" &&
            u !== "suppressHydrationWarning" &&
            u !== "autoFocus" &&
            (ku.hasOwnProperty(u) ? i || (i = []) : (i = i || []).push(u, null));
    for (u in r) {
      var l = r[u];
      if (((a = o != null ? o[u] : void 0), r.hasOwnProperty(u) && l !== a && (l != null || a != null)))
        if (u === "style")
          if (a) {
            for (s in a) !a.hasOwnProperty(s) || (l && l.hasOwnProperty(s)) || (n || (n = {}), (n[s] = ""));
            for (s in l) l.hasOwnProperty(s) && a[s] !== l[s] && (n || (n = {}), (n[s] = l[s]));
          } else n || (i || (i = []), i.push(u, n)), (n = l);
        else
          u === "dangerouslySetInnerHTML"
            ? ((l = l ? l.__html : void 0),
              (a = a ? a.__html : void 0),
              l != null && a !== l && (i = i || []).push(u, l))
            : u === "children"
              ? (typeof l != "string" && typeof l != "number") || (i = i || []).push(u, "" + l)
              : u !== "suppressContentEditableWarning" &&
                u !== "suppressHydrationWarning" &&
                (ku.hasOwnProperty(u)
                  ? (l != null && u === "onScroll" && St("scroll", e), i || a === l || (i = []))
                  : (i = i || []).push(u, l));
    }
    n && (i = i || []).push("style", n);
    var u = i;
    (t.updateQueue = u) && (t.flags |= 4);
  }
};
Yx = function (e, t, n, r) {
  n !== r && (t.flags |= 4);
};
function Sl(e, t) {
  if (!At)
    switch (e.tailMode) {
      case "hidden":
        t = e.tail;
        for (var n = null; t !== null; ) t.alternate !== null && (n = t), (t = t.sibling);
        n === null ? (e.tail = null) : (n.sibling = null);
        break;
      case "collapsed":
        n = e.tail;
        for (var r = null; n !== null; ) n.alternate !== null && (r = n), (n = n.sibling);
        r === null ? (t || e.tail === null ? (e.tail = null) : (e.tail.sibling = null)) : (r.sibling = null);
    }
}
function dn(e) {
  var t = e.alternate !== null && e.alternate.child === e.child,
    n = 0,
    r = 0;
  if (t)
    for (var o = e.child; o !== null; )
      (n |= o.lanes | o.childLanes),
        (r |= o.subtreeFlags & 14680064),
        (r |= o.flags & 14680064),
        (o.return = e),
        (o = o.sibling);
  else
    for (o = e.child; o !== null; )
      (n |= o.lanes | o.childLanes), (r |= o.subtreeFlags), (r |= o.flags), (o.return = e), (o = o.sibling);
  return (e.subtreeFlags |= r), (e.childLanes = n), t;
}
function HD(e, t, n) {
  var r = t.pendingProps;
  switch ((hg(t), t.tag)) {
    case 2:
    case 16:
    case 15:
    case 0:
    case 11:
    case 7:
    case 8:
    case 12:
    case 9:
    case 14:
      return dn(t), null;
    case 1:
      return Rn(t.type) && Sf(), dn(t), null;
    case 3:
      return (
        (r = t.stateNode),
        Ba(),
        kt(Dn),
        kt(yn),
        Sg(),
        r.pendingContext && ((r.context = r.pendingContext), (r.pendingContext = null)),
        (e === null || e.child === null) &&
          (Xc(t)
            ? (t.flags |= 4)
            : e === null ||
              (e.memoizedState.isDehydrated && !(t.flags & 256)) ||
              ((t.flags |= 1024), _r !== null && (Vm(_r), (_r = null)))),
        Im(e, t),
        dn(t),
        null
      );
    case 5:
      wg(t);
      var o = Xi(Lu.current);
      if (((n = t.type), e !== null && t.stateNode != null))
        Ux(e, t, n, r, o), e.ref !== t.ref && ((t.flags |= 512), (t.flags |= 2097152));
      else {
        if (!r) {
          if (t.stateNode === null) throw Error(ce(166));
          return dn(t), null;
        }
        if (((e = Xi(oo.current)), Xc(t))) {
          (r = t.stateNode), (n = t.type);
          var i = t.memoizedProps;
          switch (((r[Zr] = t), (r[Ou] = i), (e = (t.mode & 1) !== 0), n)) {
            case "dialog":
              St("cancel", r), St("close", r);
              break;
            case "iframe":
            case "object":
            case "embed":
              St("load", r);
              break;
            case "video":
            case "audio":
              for (o = 0; o < Gl.length; o++) St(Gl[o], r);
              break;
            case "source":
              St("error", r);
              break;
            case "img":
            case "image":
            case "link":
              St("error", r), St("load", r);
              break;
            case "details":
              St("toggle", r);
              break;
            case "input":
              n8(r, i), St("invalid", r);
              break;
            case "select":
              (r._wrapperState = { wasMultiple: !!i.multiple }), St("invalid", r);
              break;
            case "textarea":
              o8(r, i), St("invalid", r);
          }
          sm(n, i), (o = null);
          for (var s in i)
            if (i.hasOwnProperty(s)) {
              var a = i[s];
              s === "children"
                ? typeof a == "string"
                  ? r.textContent !== a &&
                    (i.suppressHydrationWarning !== !0 && Kc(r.textContent, a, e), (o = ["children", a]))
                  : typeof a == "number" &&
                    r.textContent !== "" + a &&
                    (i.suppressHydrationWarning !== !0 && Kc(r.textContent, a, e), (o = ["children", "" + a]))
                : ku.hasOwnProperty(s) && a != null && s === "onScroll" && St("scroll", r);
            }
          switch (n) {
            case "input":
              jc(r), r8(r, i, !0);
              break;
            case "textarea":
              jc(r), i8(r);
              break;
            case "select":
            case "option":
              break;
            default:
              typeof i.onClick == "function" && (r.onclick = wf);
          }
          (r = o), (t.updateQueue = r), r !== null && (t.flags |= 4);
        } else {
          (s = o.nodeType === 9 ? o : o.ownerDocument),
            e === "http://www.w3.org/1999/xhtml" && (e = C4(n)),
            e === "http://www.w3.org/1999/xhtml"
              ? n === "script"
                ? ((e = s.createElement("div")), (e.innerHTML = "<script></script>"), (e = e.removeChild(e.firstChild)))
                : typeof r.is == "string"
                  ? (e = s.createElement(n, { is: r.is }))
                  : ((e = s.createElement(n)),
                    n === "select" && ((s = e), r.multiple ? (s.multiple = !0) : r.size && (s.size = r.size)))
              : (e = s.createElementNS(e, n)),
            (e[Zr] = t),
            (e[Ou] = r),
            Gx(e, t, !1, !1),
            (t.stateNode = e);
          e: {
            switch (((s = am(n, r)), n)) {
              case "dialog":
                St("cancel", e), St("close", e), (o = r);
                break;
              case "iframe":
              case "object":
              case "embed":
                St("load", e), (o = r);
                break;
              case "video":
              case "audio":
                for (o = 0; o < Gl.length; o++) St(Gl[o], e);
                o = r;
                break;
              case "source":
                St("error", e), (o = r);
                break;
              case "img":
              case "image":
              case "link":
                St("error", e), St("load", e), (o = r);
                break;
              case "details":
                St("toggle", e), (o = r);
                break;
              case "input":
                n8(e, r), (o = tm(e, r)), St("invalid", e);
                break;
              case "option":
                o = r;
                break;
              case "select":
                (e._wrapperState = { wasMultiple: !!r.multiple }), (o = Ot({}, r, { value: void 0 })), St("invalid", e);
                break;
              case "textarea":
                o8(e, r), (o = om(e, r)), St("invalid", e);
                break;
              default:
                o = r;
            }
            sm(n, o), (a = o);
            for (i in a)
              if (a.hasOwnProperty(i)) {
                var l = a[i];
                i === "style"
                  ? k4(e, l)
                  : i === "dangerouslySetInnerHTML"
                    ? ((l = l ? l.__html : void 0), l != null && w4(e, l))
                    : i === "children"
                      ? typeof l == "string"
                        ? (n !== "textarea" || l !== "") && Tu(e, l)
                        : typeof l == "number" && Tu(e, "" + l)
                      : i !== "suppressContentEditableWarning" &&
                        i !== "suppressHydrationWarning" &&
                        i !== "autoFocus" &&
                        (ku.hasOwnProperty(i)
                          ? l != null && i === "onScroll" && St("scroll", e)
                          : l != null && Q2(e, i, l, s));
              }
            switch (n) {
              case "input":
                jc(e), r8(e, r, !1);
                break;
              case "textarea":
                jc(e), i8(e);
                break;
              case "option":
                r.value != null && e.setAttribute("value", "" + bi(r.value));
                break;
              case "select":
                (e.multiple = !!r.multiple),
                  (i = r.value),
                  i != null
                    ? pa(e, !!r.multiple, i, !1)
                    : r.defaultValue != null && pa(e, !!r.multiple, r.defaultValue, !0);
                break;
              default:
                typeof o.onClick == "function" && (e.onclick = wf);
            }
            switch (n) {
              case "button":
              case "input":
              case "select":
              case "textarea":
                r = !!r.autoFocus;
                break e;
              case "img":
                r = !0;
                break e;
              default:
                r = !1;
            }
          }
          r && (t.flags |= 4);
        }
        t.ref !== null && ((t.flags |= 512), (t.flags |= 2097152));
      }
      return dn(t), null;
    case 6:
      if (e && t.stateNode != null) Yx(e, t, e.memoizedProps, r);
      else {
        if (typeof r != "string" && t.stateNode === null) throw Error(ce(166));
        if (((n = Xi(Lu.current)), Xi(oo.current), Xc(t))) {
          if (
            ((r = t.stateNode), (n = t.memoizedProps), (r[Zr] = t), (i = r.nodeValue !== n) && ((e = zn), e !== null))
          )
            switch (e.tag) {
              case 3:
                Kc(r.nodeValue, n, (e.mode & 1) !== 0);
                break;
              case 5:
                e.memoizedProps.suppressHydrationWarning !== !0 && Kc(r.nodeValue, n, (e.mode & 1) !== 0);
            }
          i && (t.flags |= 4);
        } else (r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r)), (r[Zr] = t), (t.stateNode = r);
      }
      return dn(t), null;
    case 13:
      if (
        (kt(_t), (r = t.memoizedState), e === null || (e.memoizedState !== null && e.memoizedState.dehydrated !== null))
      ) {
        if (At && jn !== null && t.mode & 1 && !(t.flags & 128)) dx(), Na(), (t.flags |= 98560), (i = !1);
        else if (((i = Xc(t)), r !== null && r.dehydrated !== null)) {
          if (e === null) {
            if (!i) throw Error(ce(318));
            if (((i = t.memoizedState), (i = i !== null ? i.dehydrated : null), !i)) throw Error(ce(317));
            i[Zr] = t;
          } else Na(), !(t.flags & 128) && (t.memoizedState = null), (t.flags |= 4);
          dn(t), (i = !1);
        } else _r !== null && (Vm(_r), (_r = null)), (i = !0);
        if (!i) return t.flags & 65536 ? t : null;
      }
      return t.flags & 128
        ? ((t.lanes = n), t)
        : ((r = r !== null),
          r !== (e !== null && e.memoizedState !== null) &&
            r &&
            ((t.child.flags |= 8192), t.mode & 1 && (e === null || _t.current & 1 ? Zt === 0 && (Zt = 3) : Fg())),
          t.updateQueue !== null && (t.flags |= 4),
          dn(t),
          null);
    case 4:
      return Ba(), Im(e, t), e === null && Ru(t.stateNode.containerInfo), dn(t), null;
    case 10:
      return vg(t.type._context), dn(t), null;
    case 17:
      return Rn(t.type) && Sf(), dn(t), null;
    case 19:
      if ((kt(_t), (i = t.memoizedState), i === null)) return dn(t), null;
      if (((r = (t.flags & 128) !== 0), (s = i.rendering), s === null))
        if (r) Sl(i, !1);
        else {
          if (Zt !== 0 || (e !== null && e.flags & 128))
            for (e = t.child; e !== null; ) {
              if (((s = _f(e)), s !== null)) {
                for (
                  t.flags |= 128,
                    Sl(i, !1),
                    r = s.updateQueue,
                    r !== null && ((t.updateQueue = r), (t.flags |= 4)),
                    t.subtreeFlags = 0,
                    r = n,
                    n = t.child;
                  n !== null;

                )
                  (i = n),
                    (e = r),
                    (i.flags &= 14680066),
                    (s = i.alternate),
                    s === null
                      ? ((i.childLanes = 0),
                        (i.lanes = e),
                        (i.child = null),
                        (i.subtreeFlags = 0),
                        (i.memoizedProps = null),
                        (i.memoizedState = null),
                        (i.updateQueue = null),
                        (i.dependencies = null),
                        (i.stateNode = null))
                      : ((i.childLanes = s.childLanes),
                        (i.lanes = s.lanes),
                        (i.child = s.child),
                        (i.subtreeFlags = 0),
                        (i.deletions = null),
                        (i.memoizedProps = s.memoizedProps),
                        (i.memoizedState = s.memoizedState),
                        (i.updateQueue = s.updateQueue),
                        (i.type = s.type),
                        (e = s.dependencies),
                        (i.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext })),
                    (n = n.sibling);
                return bt(_t, (_t.current & 1) | 2), t.child;
              }
              e = e.sibling;
            }
          i.tail !== null && Bt() > Va && ((t.flags |= 128), (r = !0), Sl(i, !1), (t.lanes = 4194304));
        }
      else {
        if (!r)
          if (((e = _f(s)), e !== null)) {
            if (
              ((t.flags |= 128),
              (r = !0),
              (n = e.updateQueue),
              n !== null && ((t.updateQueue = n), (t.flags |= 4)),
              Sl(i, !0),
              i.tail === null && i.tailMode === "hidden" && !s.alternate && !At)
            )
              return dn(t), null;
          } else
            2 * Bt() - i.renderingStartTime > Va &&
              n !== 1073741824 &&
              ((t.flags |= 128), (r = !0), Sl(i, !1), (t.lanes = 4194304));
        i.isBackwards
          ? ((s.sibling = t.child), (t.child = s))
          : ((n = i.last), n !== null ? (n.sibling = s) : (t.child = s), (i.last = s));
      }
      return i.tail !== null
        ? ((t = i.tail),
          (i.rendering = t),
          (i.tail = t.sibling),
          (i.renderingStartTime = Bt()),
          (t.sibling = null),
          (n = _t.current),
          bt(_t, r ? (n & 1) | 2 : n & 1),
          t)
        : (dn(t), null);
    case 22:
    case 23:
      return (
        Og(),
        (r = t.memoizedState !== null),
        e !== null && (e.memoizedState !== null) !== r && (t.flags |= 8192),
        r && t.mode & 1 ? Nn & 1073741824 && (dn(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : dn(t),
        null
      );
    case 24:
      return null;
    case 25:
      return null;
  }
  throw Error(ce(156, t.tag));
}
function zD(e, t) {
  switch ((hg(t), t.tag)) {
    case 1:
      return Rn(t.type) && Sf(), (e = t.flags), e & 65536 ? ((t.flags = (e & -65537) | 128), t) : null;
    case 3:
      return (
        Ba(), kt(Dn), kt(yn), Sg(), (e = t.flags), e & 65536 && !(e & 128) ? ((t.flags = (e & -65537) | 128), t) : null
      );
    case 5:
      return wg(t), null;
    case 13:
      if ((kt(_t), (e = t.memoizedState), e !== null && e.dehydrated !== null)) {
        if (t.alternate === null) throw Error(ce(340));
        Na();
      }
      return (e = t.flags), e & 65536 ? ((t.flags = (e & -65537) | 128), t) : null;
    case 19:
      return kt(_t), null;
    case 4:
      return Ba(), null;
    case 10:
      return vg(t.type._context), null;
    case 22:
    case 23:
      return Og(), null;
    case 24:
      return null;
    default:
      return null;
  }
}
var Jc = !1,
  pn = !1,
  WD = typeof WeakSet == "function" ? WeakSet : Set,
  Ce = null;
function sa(e, t) {
  var n = e.ref;
  if (n !== null)
    if (typeof n == "function")
      try {
        n(null);
      } catch (r) {
        Nt(e, t, r);
      }
    else n.current = null;
}
function Om(e, t, n) {
  try {
    n();
  } catch (r) {
    Nt(e, t, r);
  }
}
var K8 = !1;
function GD(e, t) {
  if (((ym = xf), (e = J4()), fg(e))) {
    if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd };
    else
      e: {
        n = ((n = e.ownerDocument) && n.defaultView) || window;
        var r = n.getSelection && n.getSelection();
        if (r && r.rangeCount !== 0) {
          n = r.anchorNode;
          var o = r.anchorOffset,
            i = r.focusNode;
          r = r.focusOffset;
          try {
            n.nodeType, i.nodeType;
          } catch {
            n = null;
            break e;
          }
          var s = 0,
            a = -1,
            l = -1,
            u = 0,
            c = 0,
            d = e,
            p = null;
          t: for (;;) {
            for (
              var h;
              d !== n || (o !== 0 && d.nodeType !== 3) || (a = s + o),
                d !== i || (r !== 0 && d.nodeType !== 3) || (l = s + r),
                d.nodeType === 3 && (s += d.nodeValue.length),
                (h = d.firstChild) !== null;

            )
              (p = d), (d = h);
            for (;;) {
              if (d === e) break t;
              if ((p === n && ++u === o && (a = s), p === i && ++c === r && (l = s), (h = d.nextSibling) !== null))
                break;
              (d = p), (p = d.parentNode);
            }
            d = h;
          }
          n = a === -1 || l === -1 ? null : { start: a, end: l };
        } else n = null;
      }
    n = n || { start: 0, end: 0 };
  } else n = null;
  for (vm = { focusedElem: e, selectionRange: n }, xf = !1, Ce = t; Ce !== null; )
    if (((t = Ce), (e = t.child), (t.subtreeFlags & 1028) !== 0 && e !== null)) (e.return = t), (Ce = e);
    else
      for (; Ce !== null; ) {
        t = Ce;
        try {
          var m = t.alternate;
          if (t.flags & 1024)
            switch (t.tag) {
              case 0:
              case 11:
              case 15:
                break;
              case 1:
                if (m !== null) {
                  var v = m.memoizedProps,
                    C = m.memoizedState,
                    y = t.stateNode,
                    g = y.getSnapshotBeforeUpdate(t.elementType === t.type ? v : Pr(t.type, v), C);
                  y.__reactInternalSnapshotBeforeUpdate = g;
                }
                break;
              case 3:
                var x = t.stateNode.containerInfo;
                x.nodeType === 1
                  ? (x.textContent = "")
                  : x.nodeType === 9 && x.documentElement && x.removeChild(x.documentElement);
                break;
              case 5:
              case 6:
              case 4:
              case 17:
                break;
              default:
                throw Error(ce(163));
            }
        } catch (w) {
          Nt(t, t.return, w);
        }
        if (((e = t.sibling), e !== null)) {
          (e.return = t.return), (Ce = e);
          break;
        }
        Ce = t.return;
      }
  return (m = K8), (K8 = !1), m;
}
function nu(e, t, n) {
  var r = t.updateQueue;
  if (((r = r !== null ? r.lastEffect : null), r !== null)) {
    var o = (r = r.next);
    do {
      if ((o.tag & e) === e) {
        var i = o.destroy;
        (o.destroy = void 0), i !== void 0 && Om(t, n, i);
      }
      o = o.next;
    } while (o !== r);
  }
}
function c0(e, t) {
  if (((t = t.updateQueue), (t = t !== null ? t.lastEffect : null), t !== null)) {
    var n = (t = t.next);
    do {
      if ((n.tag & e) === e) {
        var r = n.create;
        n.destroy = r();
      }
      n = n.next;
    } while (n !== t);
  }
}
function Fm(e) {
  var t = e.ref;
  if (t !== null) {
    var n = e.stateNode;
    switch (e.tag) {
      case 5:
        e = n;
        break;
      default:
        e = n;
    }
    typeof t == "function" ? t(e) : (t.current = e);
  }
}
function Kx(e) {
  var t = e.alternate;
  t !== null && ((e.alternate = null), Kx(t)),
    (e.child = null),
    (e.deletions = null),
    (e.sibling = null),
    e.tag === 5 &&
      ((t = e.stateNode), t !== null && (delete t[Zr], delete t[Ou], delete t[Cm], delete t[ED], delete t[PD])),
    (e.stateNode = null),
    (e.return = null),
    (e.dependencies = null),
    (e.memoizedProps = null),
    (e.memoizedState = null),
    (e.pendingProps = null),
    (e.stateNode = null),
    (e.updateQueue = null);
}
function Xx(e) {
  return e.tag === 5 || e.tag === 3 || e.tag === 4;
}
function X8(e) {
  e: for (;;) {
    for (; e.sibling === null; ) {
      if (e.return === null || Xx(e.return)) return null;
      e = e.return;
    }
    for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18; ) {
      if (e.flags & 2 || e.child === null || e.tag === 4) continue e;
      (e.child.return = e), (e = e.child);
    }
    if (!(e.flags & 2)) return e.stateNode;
  }
}
function Lm(e, t, n) {
  var r = e.tag;
  if (r === 5 || r === 6)
    (e = e.stateNode),
      t
        ? n.nodeType === 8
          ? n.parentNode.insertBefore(e, t)
          : n.insertBefore(e, t)
        : (n.nodeType === 8 ? ((t = n.parentNode), t.insertBefore(e, n)) : ((t = n), t.appendChild(e)),
          (n = n._reactRootContainer),
          n != null || t.onclick !== null || (t.onclick = wf));
  else if (r !== 4 && ((e = e.child), e !== null))
    for (Lm(e, t, n), e = e.sibling; e !== null; ) Lm(e, t, n), (e = e.sibling);
}
function Nm(e, t, n) {
  var r = e.tag;
  if (r === 5 || r === 6) (e = e.stateNode), t ? n.insertBefore(e, t) : n.appendChild(e);
  else if (r !== 4 && ((e = e.child), e !== null))
    for (Nm(e, t, n), e = e.sibling; e !== null; ) Nm(e, t, n), (e = e.sibling);
}
var sn = null,
  Ar = !1;
function qo(e, t, n) {
  for (n = n.child; n !== null; ) qx(e, t, n), (n = n.sibling);
}
function qx(e, t, n) {
  if (ro && typeof ro.onCommitFiberUnmount == "function")
    try {
      ro.onCommitFiberUnmount(n0, n);
    } catch {}
  switch (n.tag) {
    case 5:
      pn || sa(n, t);
    case 6:
      var r = sn,
        o = Ar;
      (sn = null),
        qo(e, t, n),
        (sn = r),
        (Ar = o),
        sn !== null &&
          (Ar
            ? ((e = sn), (n = n.stateNode), e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n))
            : sn.removeChild(n.stateNode));
      break;
    case 18:
      sn !== null &&
        (Ar
          ? ((e = sn), (n = n.stateNode), e.nodeType === 8 ? B1(e.parentNode, n) : e.nodeType === 1 && B1(e, n), Au(e))
          : B1(sn, n.stateNode));
      break;
    case 4:
      (r = sn), (o = Ar), (sn = n.stateNode.containerInfo), (Ar = !0), qo(e, t, n), (sn = r), (Ar = o);
      break;
    case 0:
    case 11:
    case 14:
    case 15:
      if (!pn && ((r = n.updateQueue), r !== null && ((r = r.lastEffect), r !== null))) {
        o = r = r.next;
        do {
          var i = o,
            s = i.destroy;
          (i = i.tag), s !== void 0 && (i & 2 || i & 4) && Om(n, t, s), (o = o.next);
        } while (o !== r);
      }
      qo(e, t, n);
      break;
    case 1:
      if (!pn && (sa(n, t), (r = n.stateNode), typeof r.componentWillUnmount == "function"))
        try {
          (r.props = n.memoizedProps), (r.state = n.memoizedState), r.componentWillUnmount();
        } catch (a) {
          Nt(n, t, a);
        }
      qo(e, t, n);
      break;
    case 21:
      qo(e, t, n);
      break;
    case 22:
      n.mode & 1 ? ((pn = (r = pn) || n.memoizedState !== null), qo(e, t, n), (pn = r)) : qo(e, t, n);
      break;
    default:
      qo(e, t, n);
  }
}
function q8(e) {
  var t = e.updateQueue;
  if (t !== null) {
    e.updateQueue = null;
    var n = e.stateNode;
    n === null && (n = e.stateNode = new WD()),
      t.forEach(function (r) {
        var o = eR.bind(null, e, r);
        n.has(r) || (n.add(r), r.then(o, o));
      });
  }
}
function Tr(e, t) {
  var n = t.deletions;
  if (n !== null)
    for (var r = 0; r < n.length; r++) {
      var o = n[r];
      try {
        var i = e,
          s = t,
          a = s;
        e: for (; a !== null; ) {
          switch (a.tag) {
            case 5:
              (sn = a.stateNode), (Ar = !1);
              break e;
            case 3:
              (sn = a.stateNode.containerInfo), (Ar = !0);
              break e;
            case 4:
              (sn = a.stateNode.containerInfo), (Ar = !0);
              break e;
          }
          a = a.return;
        }
        if (sn === null) throw Error(ce(160));
        qx(i, s, o), (sn = null), (Ar = !1);
        var l = o.alternate;
        l !== null && (l.return = null), (o.return = null);
      } catch (u) {
        Nt(o, t, u);
      }
    }
  if (t.subtreeFlags & 12854) for (t = t.child; t !== null; ) Zx(t, e), (t = t.sibling);
}
function Zx(e, t) {
  var n = e.alternate,
    r = e.flags;
  switch (e.tag) {
    case 0:
    case 11:
    case 14:
    case 15:
      if ((Tr(t, e), Wr(e), r & 4)) {
        try {
          nu(3, e, e.return), c0(3, e);
        } catch (v) {
          Nt(e, e.return, v);
        }
        try {
          nu(5, e, e.return);
        } catch (v) {
          Nt(e, e.return, v);
        }
      }
      break;
    case 1:
      Tr(t, e), Wr(e), r & 512 && n !== null && sa(n, n.return);
      break;
    case 5:
      if ((Tr(t, e), Wr(e), r & 512 && n !== null && sa(n, n.return), e.flags & 32)) {
        var o = e.stateNode;
        try {
          Tu(o, "");
        } catch (v) {
          Nt(e, e.return, v);
        }
      }
      if (r & 4 && ((o = e.stateNode), o != null)) {
        var i = e.memoizedProps,
          s = n !== null ? n.memoizedProps : i,
          a = e.type,
          l = e.updateQueue;
        if (((e.updateQueue = null), l !== null))
          try {
            a === "input" && i.type === "radio" && i.name != null && x4(o, i), am(a, s);
            var u = am(a, i);
            for (s = 0; s < l.length; s += 2) {
              var c = l[s],
                d = l[s + 1];
              c === "style"
                ? k4(o, d)
                : c === "dangerouslySetInnerHTML"
                  ? w4(o, d)
                  : c === "children"
                    ? Tu(o, d)
                    : Q2(o, c, d, u);
            }
            switch (a) {
              case "input":
                nm(o, i);
                break;
              case "textarea":
                b4(o, i);
                break;
              case "select":
                var p = o._wrapperState.wasMultiple;
                o._wrapperState.wasMultiple = !!i.multiple;
                var h = i.value;
                h != null
                  ? pa(o, !!i.multiple, h, !1)
                  : p !== !!i.multiple &&
                    (i.defaultValue != null
                      ? pa(o, !!i.multiple, i.defaultValue, !0)
                      : pa(o, !!i.multiple, i.multiple ? [] : "", !1));
            }
            o[Ou] = i;
          } catch (v) {
            Nt(e, e.return, v);
          }
      }
      break;
    case 6:
      if ((Tr(t, e), Wr(e), r & 4)) {
        if (e.stateNode === null) throw Error(ce(162));
        (o = e.stateNode), (i = e.memoizedProps);
        try {
          o.nodeValue = i;
        } catch (v) {
          Nt(e, e.return, v);
        }
      }
      break;
    case 3:
      if ((Tr(t, e), Wr(e), r & 4 && n !== null && n.memoizedState.isDehydrated))
        try {
          Au(t.containerInfo);
        } catch (v) {
          Nt(e, e.return, v);
        }
      break;
    case 4:
      Tr(t, e), Wr(e);
      break;
    case 13:
      Tr(t, e),
        Wr(e),
        (o = e.child),
        o.flags & 8192 &&
          ((i = o.memoizedState !== null),
          (o.stateNode.isHidden = i),
          !i || (o.alternate !== null && o.alternate.memoizedState !== null) || (Rg = Bt())),
        r & 4 && q8(e);
      break;
    case 22:
      if (
        ((c = n !== null && n.memoizedState !== null),
        e.mode & 1 ? ((pn = (u = pn) || c), Tr(t, e), (pn = u)) : Tr(t, e),
        Wr(e),
        r & 8192)
      ) {
        if (((u = e.memoizedState !== null), (e.stateNode.isHidden = u) && !c && e.mode & 1))
          for (Ce = e, c = e.child; c !== null; ) {
            for (d = Ce = c; Ce !== null; ) {
              switch (((p = Ce), (h = p.child), p.tag)) {
                case 0:
                case 11:
                case 14:
                case 15:
                  nu(4, p, p.return);
                  break;
                case 1:
                  sa(p, p.return);
                  var m = p.stateNode;
                  if (typeof m.componentWillUnmount == "function") {
                    (r = p), (n = p.return);
                    try {
                      (t = r), (m.props = t.memoizedProps), (m.state = t.memoizedState), m.componentWillUnmount();
                    } catch (v) {
                      Nt(r, n, v);
                    }
                  }
                  break;
                case 5:
                  sa(p, p.return);
                  break;
                case 22:
                  if (p.memoizedState !== null) {
                    J8(d);
                    continue;
                  }
              }
              h !== null ? ((h.return = p), (Ce = h)) : J8(d);
            }
            c = c.sibling;
          }
        e: for (c = null, d = e; ; ) {
          if (d.tag === 5) {
            if (c === null) {
              c = d;
              try {
                (o = d.stateNode),
                  u
                    ? ((i = o.style),
                      typeof i.setProperty == "function"
                        ? i.setProperty("display", "none", "important")
                        : (i.display = "none"))
                    : ((a = d.stateNode),
                      (l = d.memoizedProps.style),
                      (s = l != null && l.hasOwnProperty("display") ? l.display : null),
                      (a.style.display = S4("display", s)));
              } catch (v) {
                Nt(e, e.return, v);
              }
            }
          } else if (d.tag === 6) {
            if (c === null)
              try {
                d.stateNode.nodeValue = u ? "" : d.memoizedProps;
              } catch (v) {
                Nt(e, e.return, v);
              }
          } else if (((d.tag !== 22 && d.tag !== 23) || d.memoizedState === null || d === e) && d.child !== null) {
            (d.child.return = d), (d = d.child);
            continue;
          }
          if (d === e) break e;
          for (; d.sibling === null; ) {
            if (d.return === null || d.return === e) break e;
            c === d && (c = null), (d = d.return);
          }
          c === d && (c = null), (d.sibling.return = d.return), (d = d.sibling);
        }
      }
      break;
    case 19:
      Tr(t, e), Wr(e), r & 4 && q8(e);
      break;
    case 21:
      break;
    default:
      Tr(t, e), Wr(e);
  }
}
function Wr(e) {
  var t = e.flags;
  if (t & 2) {
    try {
      e: {
        for (var n = e.return; n !== null; ) {
          if (Xx(n)) {
            var r = n;
            break e;
          }
          n = n.return;
        }
        throw Error(ce(160));
      }
      switch (r.tag) {
        case 5:
          var o = r.stateNode;
          r.flags & 32 && (Tu(o, ""), (r.flags &= -33));
          var i = X8(e);
          Nm(e, i, o);
          break;
        case 3:
        case 4:
          var s = r.stateNode.containerInfo,
            a = X8(e);
          Lm(e, a, s);
          break;
        default:
          throw Error(ce(161));
      }
    } catch (l) {
      Nt(e, e.return, l);
    }
    e.flags &= -3;
  }
  t & 4096 && (e.flags &= -4097);
}
function UD(e, t, n) {
  (Ce = e), Jx(e);
}
function Jx(e, t, n) {
  for (var r = (e.mode & 1) !== 0; Ce !== null; ) {
    var o = Ce,
      i = o.child;
    if (o.tag === 22 && r) {
      var s = o.memoizedState !== null || Jc;
      if (!s) {
        var a = o.alternate,
          l = (a !== null && a.memoizedState !== null) || pn;
        a = Jc;
        var u = pn;
        if (((Jc = s), (pn = l) && !u))
          for (Ce = o; Ce !== null; )
            (s = Ce),
              (l = s.child),
              s.tag === 22 && s.memoizedState !== null ? Q8(o) : l !== null ? ((l.return = s), (Ce = l)) : Q8(o);
        for (; i !== null; ) (Ce = i), Jx(i), (i = i.sibling);
        (Ce = o), (Jc = a), (pn = u);
      }
      Z8(e);
    } else o.subtreeFlags & 8772 && i !== null ? ((i.return = o), (Ce = i)) : Z8(e);
  }
}
function Z8(e) {
  for (; Ce !== null; ) {
    var t = Ce;
    if (t.flags & 8772) {
      var n = t.alternate;
      try {
        if (t.flags & 8772)
          switch (t.tag) {
            case 0:
            case 11:
            case 15:
              pn || c0(5, t);
              break;
            case 1:
              var r = t.stateNode;
              if (t.flags & 4 && !pn)
                if (n === null) r.componentDidMount();
                else {
                  var o = t.elementType === t.type ? n.memoizedProps : Pr(t.type, n.memoizedProps);
                  r.componentDidUpdate(o, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate);
                }
              var i = t.updateQueue;
              i !== null && F8(t, i, r);
              break;
            case 3:
              var s = t.updateQueue;
              if (s !== null) {
                if (((n = null), t.child !== null))
                  switch (t.child.tag) {
                    case 5:
                      n = t.child.stateNode;
                      break;
                    case 1:
                      n = t.child.stateNode;
                  }
                F8(t, s, n);
              }
              break;
            case 5:
              var a = t.stateNode;
              if (n === null && t.flags & 4) {
                n = a;
                var l = t.memoizedProps;
                switch (t.type) {
                  case "button":
                  case "input":
                  case "select":
                  case "textarea":
                    l.autoFocus && n.focus();
                    break;
                  case "img":
                    l.src && (n.src = l.src);
                }
              }
              break;
            case 6:
              break;
            case 4:
              break;
            case 12:
              break;
            case 13:
              if (t.memoizedState === null) {
                var u = t.alternate;
                if (u !== null) {
                  var c = u.memoizedState;
                  if (c !== null) {
                    var d = c.dehydrated;
                    d !== null && Au(d);
                  }
                }
              }
              break;
            case 19:
            case 17:
            case 21:
            case 22:
            case 23:
            case 25:
              break;
            default:
              throw Error(ce(163));
          }
        pn || (t.flags & 512 && Fm(t));
      } catch (p) {
        Nt(t, t.return, p);
      }
    }
    if (t === e) {
      Ce = null;
      break;
    }
    if (((n = t.sibling), n !== null)) {
      (n.return = t.return), (Ce = n);
      break;
    }
    Ce = t.return;
  }
}
function J8(e) {
  for (; Ce !== null; ) {
    var t = Ce;
    if (t === e) {
      Ce = null;
      break;
    }
    var n = t.sibling;
    if (n !== null) {
      (n.return = t.return), (Ce = n);
      break;
    }
    Ce = t.return;
  }
}
function Q8(e) {
  for (; Ce !== null; ) {
    var t = Ce;
    try {
      switch (t.tag) {
        case 0:
        case 11:
        case 15:
          var n = t.return;
          try {
            c0(4, t);
          } catch (l) {
            Nt(t, n, l);
          }
          break;
        case 1:
          var r = t.stateNode;
          if (typeof r.componentDidMount == "function") {
            var o = t.return;
            try {
              r.componentDidMount();
            } catch (l) {
              Nt(t, o, l);
            }
          }
          var i = t.return;
          try {
            Fm(t);
          } catch (l) {
            Nt(t, i, l);
          }
          break;
        case 5:
          var s = t.return;
          try {
            Fm(t);
          } catch (l) {
            Nt(t, s, l);
          }
      }
    } catch (l) {
      Nt(t, t.return, l);
    }
    if (t === e) {
      Ce = null;
      break;
    }
    var a = t.sibling;
    if (a !== null) {
      (a.return = t.return), (Ce = a);
      break;
    }
    Ce = t.return;
  }
}
var YD = Math.ceil,
  If = Uo.ReactCurrentDispatcher,
  _g = Uo.ReactCurrentOwner,
  dr = Uo.ReactCurrentBatchConfig,
  et = 0,
  en = null,
  Yt = null,
  ln = 0,
  Nn = 0,
  aa = Pi(0),
  Zt = 0,
  ju = null,
  gs = 0,
  d0 = 0,
  Dg = 0,
  ru = null,
  An = null,
  Rg = 0,
  Va = 1 / 0,
  wo = null,
  Of = !1,
  $m = null,
  pi = null,
  Qc = !1,
  ii = null,
  Ff = 0,
  ou = 0,
  Bm = null,
  zd = -1,
  Wd = 0;
function wn() {
  return et & 6 ? Bt() : zd !== -1 ? zd : (zd = Bt());
}
function hi(e) {
  return e.mode & 1
    ? et & 2 && ln !== 0
      ? ln & -ln
      : _D.transition !== null
        ? (Wd === 0 && (Wd = L4()), Wd)
        : ((e = ft), e !== 0 || ((e = window.event), (e = e === void 0 ? 16 : z4(e.type))), e)
    : 1;
}
function Fr(e, t, n, r) {
  if (50 < ou) throw ((ou = 0), (Bm = null), Error(ce(185)));
  cc(e, n, r),
    (!(et & 2) || e !== en) &&
      (e === en && (!(et & 2) && (d0 |= n), Zt === 4 && ni(e, ln)),
      In(e, r),
      n === 1 && et === 0 && !(t.mode & 1) && ((Va = Bt() + 500), a0 && Ai()));
}
function In(e, t) {
  var n = e.callbackNode;
  __(e, t);
  var r = vf(e, e === en ? ln : 0);
  if (r === 0) n !== null && l8(n), (e.callbackNode = null), (e.callbackPriority = 0);
  else if (((t = r & -r), e.callbackPriority !== t)) {
    if ((n != null && l8(n), t === 1))
      e.tag === 0 ? AD(e7.bind(null, e)) : lx(e7.bind(null, e)),
        TD(function () {
          !(et & 6) && Ai();
        }),
        (n = null);
    else {
      switch (N4(r)) {
        case 1:
          n = og;
          break;
        case 4:
          n = O4;
          break;
        case 16:
          n = yf;
          break;
        case 536870912:
          n = F4;
          break;
        default:
          n = yf;
      }
      n = s9(n, Qx.bind(null, e));
    }
    (e.callbackPriority = t), (e.callbackNode = n);
  }
}
function Qx(e, t) {
  if (((zd = -1), (Wd = 0), et & 6)) throw Error(ce(327));
  var n = e.callbackNode;
  if (va() && e.callbackNode !== n) return null;
  var r = vf(e, e === en ? ln : 0);
  if (r === 0) return null;
  if (r & 30 || r & e.expiredLanes || t) t = Lf(e, r);
  else {
    t = r;
    var o = et;
    et |= 2;
    var i = t9();
    (en !== e || ln !== t) && ((wo = null), (Va = Bt() + 500), es(e, t));
    do
      try {
        qD();
        break;
      } catch (a) {
        e9(e, a);
      }
    while (!0);
    yg(), (If.current = i), (et = o), Yt !== null ? (t = 0) : ((en = null), (ln = 0), (t = Zt));
  }
  if (t !== 0) {
    if ((t === 2 && ((o = fm(e)), o !== 0 && ((r = o), (t = jm(e, o)))), t === 1))
      throw ((n = ju), es(e, 0), ni(e, r), In(e, Bt()), n);
    if (t === 6) ni(e, r);
    else {
      if (
        ((o = e.current.alternate),
        !(r & 30) &&
          !KD(o) &&
          ((t = Lf(e, r)), t === 2 && ((i = fm(e)), i !== 0 && ((r = i), (t = jm(e, i)))), t === 1))
      )
        throw ((n = ju), es(e, 0), ni(e, r), In(e, Bt()), n);
      switch (((e.finishedWork = o), (e.finishedLanes = r), t)) {
        case 0:
        case 1:
          throw Error(ce(345));
        case 2:
          Hi(e, An, wo);
          break;
        case 3:
          if ((ni(e, r), (r & 130023424) === r && ((t = Rg + 500 - Bt()), 10 < t))) {
            if (vf(e, 0) !== 0) break;
            if (((o = e.suspendedLanes), (o & r) !== r)) {
              wn(), (e.pingedLanes |= e.suspendedLanes & o);
              break;
            }
            e.timeoutHandle = bm(Hi.bind(null, e, An, wo), t);
            break;
          }
          Hi(e, An, wo);
          break;
        case 4:
          if ((ni(e, r), (r & 4194240) === r)) break;
          for (t = e.eventTimes, o = -1; 0 < r; ) {
            var s = 31 - Or(r);
            (i = 1 << s), (s = t[s]), s > o && (o = s), (r &= ~i);
          }
          if (
            ((r = o),
            (r = Bt() - r),
            (r =
              (120 > r
                ? 120
                : 480 > r
                  ? 480
                  : 1080 > r
                    ? 1080
                    : 1920 > r
                      ? 1920
                      : 3e3 > r
                        ? 3e3
                        : 4320 > r
                          ? 4320
                          : 1960 * YD(r / 1960)) - r),
            10 < r)
          ) {
            e.timeoutHandle = bm(Hi.bind(null, e, An, wo), r);
            break;
          }
          Hi(e, An, wo);
          break;
        case 5:
          Hi(e, An, wo);
          break;
        default:
          throw Error(ce(329));
      }
    }
  }
  return In(e, Bt()), e.callbackNode === n ? Qx.bind(null, e) : null;
}
function jm(e, t) {
  var n = ru;
  return (
    e.current.memoizedState.isDehydrated && (es(e, t).flags |= 256),
    (e = Lf(e, t)),
    e !== 2 && ((t = An), (An = n), t !== null && Vm(t)),
    e
  );
}
function Vm(e) {
  An === null ? (An = e) : An.push.apply(An, e);
}
function KD(e) {
  for (var t = e; ; ) {
    if (t.flags & 16384) {
      var n = t.updateQueue;
      if (n !== null && ((n = n.stores), n !== null))
        for (var r = 0; r < n.length; r++) {
          var o = n[r],
            i = o.getSnapshot;
          o = o.value;
          try {
            if (!Nr(i(), o)) return !1;
          } catch {
            return !1;
          }
        }
    }
    if (((n = t.child), t.subtreeFlags & 16384 && n !== null)) (n.return = t), (t = n);
    else {
      if (t === e) break;
      for (; t.sibling === null; ) {
        if (t.return === null || t.return === e) return !0;
        t = t.return;
      }
      (t.sibling.return = t.return), (t = t.sibling);
    }
  }
  return !0;
}
function ni(e, t) {
  for (t &= ~Dg, t &= ~d0, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) {
    var n = 31 - Or(t),
      r = 1 << n;
    (e[n] = -1), (t &= ~r);
  }
}
function e7(e) {
  if (et & 6) throw Error(ce(327));
  va();
  var t = vf(e, 0);
  if (!(t & 1)) return In(e, Bt()), null;
  var n = Lf(e, t);
  if (e.tag !== 0 && n === 2) {
    var r = fm(e);
    r !== 0 && ((t = r), (n = jm(e, r)));
  }
  if (n === 1) throw ((n = ju), es(e, 0), ni(e, t), In(e, Bt()), n);
  if (n === 6) throw Error(ce(345));
  return (e.finishedWork = e.current.alternate), (e.finishedLanes = t), Hi(e, An, wo), In(e, Bt()), null;
}
function Ig(e, t) {
  var n = et;
  et |= 1;
  try {
    return e(t);
  } finally {
    (et = n), et === 0 && ((Va = Bt() + 500), a0 && Ai());
  }
}
function ys(e) {
  ii !== null && ii.tag === 0 && !(et & 6) && va();
  var t = et;
  et |= 1;
  var n = dr.transition,
    r = ft;
  try {
    if (((dr.transition = null), (ft = 1), e)) return e();
  } finally {
    (ft = r), (dr.transition = n), (et = t), !(et & 6) && Ai();
  }
}
function Og() {
  (Nn = aa.current), kt(aa);
}
function es(e, t) {
  (e.finishedWork = null), (e.finishedLanes = 0);
  var n = e.timeoutHandle;
  if ((n !== -1 && ((e.timeoutHandle = -1), kD(n)), Yt !== null))
    for (n = Yt.return; n !== null; ) {
      var r = n;
      switch ((hg(r), r.tag)) {
        case 1:
          (r = r.type.childContextTypes), r != null && Sf();
          break;
        case 3:
          Ba(), kt(Dn), kt(yn), Sg();
          break;
        case 5:
          wg(r);
          break;
        case 4:
          Ba();
          break;
        case 13:
          kt(_t);
          break;
        case 19:
          kt(_t);
          break;
        case 10:
          vg(r.type._context);
          break;
        case 22:
        case 23:
          Og();
      }
      n = n.return;
    }
  if (
    ((en = e),
    (Yt = e = mi(e.current, null)),
    (ln = Nn = t),
    (Zt = 0),
    (ju = null),
    (Dg = d0 = gs = 0),
    (An = ru = null),
    Ki !== null)
  ) {
    for (t = 0; t < Ki.length; t++)
      if (((n = Ki[t]), (r = n.interleaved), r !== null)) {
        n.interleaved = null;
        var o = r.next,
          i = n.pending;
        if (i !== null) {
          var s = i.next;
          (i.next = o), (r.next = s);
        }
        n.pending = r;
      }
    Ki = null;
  }
  return e;
}
function e9(e, t) {
  do {
    var n = Yt;
    try {
      if ((yg(), (jd.current = Rf), Df)) {
        for (var r = Rt.memoizedState; r !== null; ) {
          var o = r.queue;
          o !== null && (o.pending = null), (r = r.next);
        }
        Df = !1;
      }
      if (
        ((ms = 0), (Qt = qt = Rt = null), (tu = !1), (Nu = 0), (_g.current = null), n === null || n.return === null)
      ) {
        (Zt = 1), (ju = t), (Yt = null);
        break;
      }
      e: {
        var i = e,
          s = n.return,
          a = n,
          l = t;
        if (((t = ln), (a.flags |= 32768), l !== null && typeof l == "object" && typeof l.then == "function")) {
          var u = l,
            c = a,
            d = c.tag;
          if (!(c.mode & 1) && (d === 0 || d === 11 || d === 15)) {
            var p = c.alternate;
            p
              ? ((c.updateQueue = p.updateQueue), (c.memoizedState = p.memoizedState), (c.lanes = p.lanes))
              : ((c.updateQueue = null), (c.memoizedState = null));
          }
          var h = V8(s);
          if (h !== null) {
            (h.flags &= -257), H8(h, s, a, i, t), h.mode & 1 && j8(i, u, t), (t = h), (l = u);
            var m = t.updateQueue;
            if (m === null) {
              var v = new Set();
              v.add(l), (t.updateQueue = v);
            } else m.add(l);
            break e;
          } else {
            if (!(t & 1)) {
              j8(i, u, t), Fg();
              break e;
            }
            l = Error(ce(426));
          }
        } else if (At && a.mode & 1) {
          var C = V8(s);
          if (C !== null) {
            !(C.flags & 65536) && (C.flags |= 256), H8(C, s, a, i, t), mg(ja(l, a));
            break e;
          }
        }
        (i = l = ja(l, a)), Zt !== 4 && (Zt = 2), ru === null ? (ru = [i]) : ru.push(i), (i = s);
        do {
          switch (i.tag) {
            case 3:
              (i.flags |= 65536), (t &= -t), (i.lanes |= t);
              var y = Nx(i, l, t);
              O8(i, y);
              break e;
            case 1:
              a = l;
              var g = i.type,
                x = i.stateNode;
              if (
                !(i.flags & 128) &&
                (typeof g.getDerivedStateFromError == "function" ||
                  (x !== null && typeof x.componentDidCatch == "function" && (pi === null || !pi.has(x))))
              ) {
                (i.flags |= 65536), (t &= -t), (i.lanes |= t);
                var w = $x(i, a, t);
                O8(i, w);
                break e;
              }
          }
          i = i.return;
        } while (i !== null);
      }
      r9(n);
    } catch (k) {
      (t = k), Yt === n && n !== null && (Yt = n = n.return);
      continue;
    }
    break;
  } while (!0);
}
function t9() {
  var e = If.current;
  return (If.current = Rf), e === null ? Rf : e;
}
function Fg() {
  (Zt === 0 || Zt === 3 || Zt === 2) && (Zt = 4), en === null || (!(gs & 268435455) && !(d0 & 268435455)) || ni(en, ln);
}
function Lf(e, t) {
  var n = et;
  et |= 2;
  var r = t9();
  (en !== e || ln !== t) && ((wo = null), es(e, t));
  do
    try {
      XD();
      break;
    } catch (o) {
      e9(e, o);
    }
  while (!0);
  if ((yg(), (et = n), (If.current = r), Yt !== null)) throw Error(ce(261));
  return (en = null), (ln = 0), Zt;
}
function XD() {
  for (; Yt !== null; ) n9(Yt);
}
function qD() {
  for (; Yt !== null && !C_(); ) n9(Yt);
}
function n9(e) {
  var t = i9(e.alternate, e, Nn);
  (e.memoizedProps = e.pendingProps), t === null ? r9(e) : (Yt = t), (_g.current = null);
}
function r9(e) {
  var t = e;
  do {
    var n = t.alternate;
    if (((e = t.return), t.flags & 32768)) {
      if (((n = zD(n, t)), n !== null)) {
        (n.flags &= 32767), (Yt = n);
        return;
      }
      if (e !== null) (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null);
      else {
        (Zt = 6), (Yt = null);
        return;
      }
    } else if (((n = HD(n, t, Nn)), n !== null)) {
      Yt = n;
      return;
    }
    if (((t = t.sibling), t !== null)) {
      Yt = t;
      return;
    }
    Yt = t = e;
  } while (t !== null);
  Zt === 0 && (Zt = 5);
}
function Hi(e, t, n) {
  var r = ft,
    o = dr.transition;
  try {
    (dr.transition = null), (ft = 1), ZD(e, t, n, r);
  } finally {
    (dr.transition = o), (ft = r);
  }
  return null;
}
function ZD(e, t, n, r) {
  do va();
  while (ii !== null);
  if (et & 6) throw Error(ce(327));
  n = e.finishedWork;
  var o = e.finishedLanes;
  if (n === null) return null;
  if (((e.finishedWork = null), (e.finishedLanes = 0), n === e.current)) throw Error(ce(177));
  (e.callbackNode = null), (e.callbackPriority = 0);
  var i = n.lanes | n.childLanes;
  if (
    (D_(e, i),
    e === en && ((Yt = en = null), (ln = 0)),
    (!(n.subtreeFlags & 2064) && !(n.flags & 2064)) ||
      Qc ||
      ((Qc = !0),
      s9(yf, function () {
        return va(), null;
      })),
    (i = (n.flags & 15990) !== 0),
    n.subtreeFlags & 15990 || i)
  ) {
    (i = dr.transition), (dr.transition = null);
    var s = ft;
    ft = 1;
    var a = et;
    (et |= 4),
      (_g.current = null),
      GD(e, n),
      Zx(n, e),
      yD(vm),
      (xf = !!ym),
      (vm = ym = null),
      (e.current = n),
      UD(n),
      w_(),
      (et = a),
      (ft = s),
      (dr.transition = i);
  } else e.current = n;
  if (
    (Qc && ((Qc = !1), (ii = e), (Ff = o)),
    (i = e.pendingLanes),
    i === 0 && (pi = null),
    T_(n.stateNode),
    In(e, Bt()),
    t !== null)
  )
    for (r = e.onRecoverableError, n = 0; n < t.length; n++)
      (o = t[n]), r(o.value, { componentStack: o.stack, digest: o.digest });
  if (Of) throw ((Of = !1), (e = $m), ($m = null), e);
  return (
    Ff & 1 && e.tag !== 0 && va(),
    (i = e.pendingLanes),
    i & 1 ? (e === Bm ? ou++ : ((ou = 0), (Bm = e))) : (ou = 0),
    Ai(),
    null
  );
}
function va() {
  if (ii !== null) {
    var e = N4(Ff),
      t = dr.transition,
      n = ft;
    try {
      if (((dr.transition = null), (ft = 16 > e ? 16 : e), ii === null)) var r = !1;
      else {
        if (((e = ii), (ii = null), (Ff = 0), et & 6)) throw Error(ce(331));
        var o = et;
        for (et |= 4, Ce = e.current; Ce !== null; ) {
          var i = Ce,
            s = i.child;
          if (Ce.flags & 16) {
            var a = i.deletions;
            if (a !== null) {
              for (var l = 0; l < a.length; l++) {
                var u = a[l];
                for (Ce = u; Ce !== null; ) {
                  var c = Ce;
                  switch (c.tag) {
                    case 0:
                    case 11:
                    case 15:
                      nu(8, c, i);
                  }
                  var d = c.child;
                  if (d !== null) (d.return = c), (Ce = d);
                  else
                    for (; Ce !== null; ) {
                      c = Ce;
                      var p = c.sibling,
                        h = c.return;
                      if ((Kx(c), c === u)) {
                        Ce = null;
                        break;
                      }
                      if (p !== null) {
                        (p.return = h), (Ce = p);
                        break;
                      }
                      Ce = h;
                    }
                }
              }
              var m = i.alternate;
              if (m !== null) {
                var v = m.child;
                if (v !== null) {
                  m.child = null;
                  do {
                    var C = v.sibling;
                    (v.sibling = null), (v = C);
                  } while (v !== null);
                }
              }
              Ce = i;
            }
          }
          if (i.subtreeFlags & 2064 && s !== null) (s.return = i), (Ce = s);
          else
            e: for (; Ce !== null; ) {
              if (((i = Ce), i.flags & 2048))
                switch (i.tag) {
                  case 0:
                  case 11:
                  case 15:
                    nu(9, i, i.return);
                }
              var y = i.sibling;
              if (y !== null) {
                (y.return = i.return), (Ce = y);
                break e;
              }
              Ce = i.return;
            }
        }
        var g = e.current;
        for (Ce = g; Ce !== null; ) {
          s = Ce;
          var x = s.child;
          if (s.subtreeFlags & 2064 && x !== null) (x.return = s), (Ce = x);
          else
            e: for (s = g; Ce !== null; ) {
              if (((a = Ce), a.flags & 2048))
                try {
                  switch (a.tag) {
                    case 0:
                    case 11:
                    case 15:
                      c0(9, a);
                  }
                } catch (k) {
                  Nt(a, a.return, k);
                }
              if (a === s) {
                Ce = null;
                break e;
              }
              var w = a.sibling;
              if (w !== null) {
                (w.return = a.return), (Ce = w);
                break e;
              }
              Ce = a.return;
            }
        }
        if (((et = o), Ai(), ro && typeof ro.onPostCommitFiberRoot == "function"))
          try {
            ro.onPostCommitFiberRoot(n0, e);
          } catch {}
        r = !0;
      }
      return r;
    } finally {
      (ft = n), (dr.transition = t);
    }
  }
  return !1;
}
function t7(e, t, n) {
  (t = ja(n, t)), (t = Nx(e, t, 1)), (e = fi(e, t, 1)), (t = wn()), e !== null && (cc(e, 1, t), In(e, t));
}
function Nt(e, t, n) {
  if (e.tag === 3) t7(e, e, n);
  else
    for (; t !== null; ) {
      if (t.tag === 3) {
        t7(t, e, n);
        break;
      } else if (t.tag === 1) {
        var r = t.stateNode;
        if (
          typeof t.type.getDerivedStateFromError == "function" ||
          (typeof r.componentDidCatch == "function" && (pi === null || !pi.has(r)))
        ) {
          (e = ja(n, e)), (e = $x(t, e, 1)), (t = fi(t, e, 1)), (e = wn()), t !== null && (cc(t, 1, e), In(t, e));
          break;
        }
      }
      t = t.return;
    }
}
function JD(e, t, n) {
  var r = e.pingCache;
  r !== null && r.delete(t),
    (t = wn()),
    (e.pingedLanes |= e.suspendedLanes & n),
    en === e &&
      (ln & n) === n &&
      (Zt === 4 || (Zt === 3 && (ln & 130023424) === ln && 500 > Bt() - Rg) ? es(e, 0) : (Dg |= n)),
    In(e, t);
}
function o9(e, t) {
  t === 0 && (e.mode & 1 ? ((t = zc), (zc <<= 1), !(zc & 130023424) && (zc = 4194304)) : (t = 1));
  var n = wn();
  (e = $o(e, t)), e !== null && (cc(e, t, n), In(e, n));
}
function QD(e) {
  var t = e.memoizedState,
    n = 0;
  t !== null && (n = t.retryLane), o9(e, n);
}
function eR(e, t) {
  var n = 0;
  switch (e.tag) {
    case 13:
      var r = e.stateNode,
        o = e.memoizedState;
      o !== null && (n = o.retryLane);
      break;
    case 19:
      r = e.stateNode;
      break;
    default:
      throw Error(ce(314));
  }
  r !== null && r.delete(t), o9(e, n);
}
var i9;
i9 = function (e, t, n) {
  if (e !== null)
    if (e.memoizedProps !== t.pendingProps || Dn.current) _n = !0;
    else {
      if (!(e.lanes & n) && !(t.flags & 128)) return (_n = !1), VD(e, t, n);
      _n = !!(e.flags & 131072);
    }
  else (_n = !1), At && t.flags & 1048576 && ux(t, Mf, t.index);
  switch (((t.lanes = 0), t.tag)) {
    case 2:
      var r = t.type;
      Hd(e, t), (e = t.pendingProps);
      var o = La(t, yn.current);
      ya(t, n), (o = Tg(null, t, r, e, o, n));
      var i = Mg();
      return (
        (t.flags |= 1),
        typeof o == "object" && o !== null && typeof o.render == "function" && o.$$typeof === void 0
          ? ((t.tag = 1),
            (t.memoizedState = null),
            (t.updateQueue = null),
            Rn(r) ? ((i = !0), kf(t)) : (i = !1),
            (t.memoizedState = o.state !== null && o.state !== void 0 ? o.state : null),
            bg(t),
            (o.updater = u0),
            (t.stateNode = o),
            (o._reactInternals = t),
            Em(t, r, e, n),
            (t = _m(null, t, r, !0, i, n)))
          : ((t.tag = 0), At && i && pg(t), bn(null, t, o, n), (t = t.child)),
        t
      );
    case 16:
      r = t.elementType;
      e: {
        switch (
          (Hd(e, t),
          (e = t.pendingProps),
          (o = r._init),
          (r = o(r._payload)),
          (t.type = r),
          (o = t.tag = nR(r)),
          (e = Pr(r, e)),
          o)
        ) {
          case 0:
            t = Am(null, t, r, e, n);
            break e;
          case 1:
            t = G8(null, t, r, e, n);
            break e;
          case 11:
            t = z8(null, t, r, e, n);
            break e;
          case 14:
            t = W8(null, t, r, Pr(r.type, e), n);
            break e;
        }
        throw Error(ce(306, r, ""));
      }
      return t;
    case 0:
      return (r = t.type), (o = t.pendingProps), (o = t.elementType === r ? o : Pr(r, o)), Am(e, t, r, o, n);
    case 1:
      return (r = t.type), (o = t.pendingProps), (o = t.elementType === r ? o : Pr(r, o)), G8(e, t, r, o, n);
    case 3:
      e: {
        if ((Hx(t), e === null)) throw Error(ce(387));
        (r = t.pendingProps), (i = t.memoizedState), (o = i.element), mx(e, t), Af(t, r, null, n);
        var s = t.memoizedState;
        if (((r = s.element), i.isDehydrated))
          if (
            ((i = {
              element: r,
              isDehydrated: !1,
              cache: s.cache,
              pendingSuspenseBoundaries: s.pendingSuspenseBoundaries,
              transitions: s.transitions,
            }),
            (t.updateQueue.baseState = i),
            (t.memoizedState = i),
            t.flags & 256)
          ) {
            (o = ja(Error(ce(423)), t)), (t = U8(e, t, r, n, o));
            break e;
          } else if (r !== o) {
            (o = ja(Error(ce(424)), t)), (t = U8(e, t, r, n, o));
            break e;
          } else
            for (
              jn = di(t.stateNode.containerInfo.firstChild),
                zn = t,
                At = !0,
                _r = null,
                n = px(t, null, r, n),
                t.child = n;
              n;

            )
              (n.flags = (n.flags & -3) | 4096), (n = n.sibling);
        else {
          if ((Na(), r === o)) {
            t = Bo(e, t, n);
            break e;
          }
          bn(e, t, r, n);
        }
        t = t.child;
      }
      return t;
    case 5:
      return (
        gx(t),
        e === null && km(t),
        (r = t.type),
        (o = t.pendingProps),
        (i = e !== null ? e.memoizedProps : null),
        (s = o.children),
        xm(r, o) ? (s = null) : i !== null && xm(r, i) && (t.flags |= 32),
        Vx(e, t),
        bn(e, t, s, n),
        t.child
      );
    case 6:
      return e === null && km(t), null;
    case 13:
      return zx(e, t, n);
    case 4:
      return (
        Cg(t, t.stateNode.containerInfo),
        (r = t.pendingProps),
        e === null ? (t.child = $a(t, null, r, n)) : bn(e, t, r, n),
        t.child
      );
    case 11:
      return (r = t.type), (o = t.pendingProps), (o = t.elementType === r ? o : Pr(r, o)), z8(e, t, r, o, n);
    case 7:
      return bn(e, t, t.pendingProps, n), t.child;
    case 8:
      return bn(e, t, t.pendingProps.children, n), t.child;
    case 12:
      return bn(e, t, t.pendingProps.children, n), t.child;
    case 10:
      e: {
        if (
          ((r = t.type._context),
          (o = t.pendingProps),
          (i = t.memoizedProps),
          (s = o.value),
          bt(Ef, r._currentValue),
          (r._currentValue = s),
          i !== null)
        )
          if (Nr(i.value, s)) {
            if (i.children === o.children && !Dn.current) {
              t = Bo(e, t, n);
              break e;
            }
          } else
            for (i = t.child, i !== null && (i.return = t); i !== null; ) {
              var a = i.dependencies;
              if (a !== null) {
                s = i.child;
                for (var l = a.firstContext; l !== null; ) {
                  if (l.context === r) {
                    if (i.tag === 1) {
                      (l = Ro(-1, n & -n)), (l.tag = 2);
                      var u = i.updateQueue;
                      if (u !== null) {
                        u = u.shared;
                        var c = u.pending;
                        c === null ? (l.next = l) : ((l.next = c.next), (c.next = l)), (u.pending = l);
                      }
                    }
                    (i.lanes |= n), (l = i.alternate), l !== null && (l.lanes |= n), Tm(i.return, n, t), (a.lanes |= n);
                    break;
                  }
                  l = l.next;
                }
              } else if (i.tag === 10) s = i.type === t.type ? null : i.child;
              else if (i.tag === 18) {
                if (((s = i.return), s === null)) throw Error(ce(341));
                (s.lanes |= n), (a = s.alternate), a !== null && (a.lanes |= n), Tm(s, n, t), (s = i.sibling);
              } else s = i.child;
              if (s !== null) s.return = i;
              else
                for (s = i; s !== null; ) {
                  if (s === t) {
                    s = null;
                    break;
                  }
                  if (((i = s.sibling), i !== null)) {
                    (i.return = s.return), (s = i);
                    break;
                  }
                  s = s.return;
                }
              i = s;
            }
        bn(e, t, o.children, n), (t = t.child);
      }
      return t;
    case 9:
      return (
        (o = t.type),
        (r = t.pendingProps.children),
        ya(t, n),
        (o = hr(o)),
        (r = r(o)),
        (t.flags |= 1),
        bn(e, t, r, n),
        t.child
      );
    case 14:
      return (r = t.type), (o = Pr(r, t.pendingProps)), (o = Pr(r.type, o)), W8(e, t, r, o, n);
    case 15:
      return Bx(e, t, t.type, t.pendingProps, n);
    case 17:
      return (
        (r = t.type),
        (o = t.pendingProps),
        (o = t.elementType === r ? o : Pr(r, o)),
        Hd(e, t),
        (t.tag = 1),
        Rn(r) ? ((e = !0), kf(t)) : (e = !1),
        ya(t, n),
        Lx(t, r, o),
        Em(t, r, o, n),
        _m(null, t, r, !0, e, n)
      );
    case 19:
      return Wx(e, t, n);
    case 22:
      return jx(e, t, n);
  }
  throw Error(ce(156, t.tag));
};
function s9(e, t) {
  return I4(e, t);
}
function tR(e, t, n, r) {
  (this.tag = e),
    (this.key = n),
    (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null),
    (this.index = 0),
    (this.ref = null),
    (this.pendingProps = t),
    (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null),
    (this.mode = r),
    (this.subtreeFlags = this.flags = 0),
    (this.deletions = null),
    (this.childLanes = this.lanes = 0),
    (this.alternate = null);
}
function ar(e, t, n, r) {
  return new tR(e, t, n, r);
}
function Lg(e) {
  return (e = e.prototype), !(!e || !e.isReactComponent);
}
function nR(e) {
  if (typeof e == "function") return Lg(e) ? 1 : 0;
  if (e != null) {
    if (((e = e.$$typeof), e === tg)) return 11;
    if (e === ng) return 14;
  }
  return 2;
}
function mi(e, t) {
  var n = e.alternate;
  return (
    n === null
      ? ((n = ar(e.tag, t, e.key, e.mode)),
        (n.elementType = e.elementType),
        (n.type = e.type),
        (n.stateNode = e.stateNode),
        (n.alternate = e),
        (e.alternate = n))
      : ((n.pendingProps = t), (n.type = e.type), (n.flags = 0), (n.subtreeFlags = 0), (n.deletions = null)),
    (n.flags = e.flags & 14680064),
    (n.childLanes = e.childLanes),
    (n.lanes = e.lanes),
    (n.child = e.child),
    (n.memoizedProps = e.memoizedProps),
    (n.memoizedState = e.memoizedState),
    (n.updateQueue = e.updateQueue),
    (t = e.dependencies),
    (n.dependencies = t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }),
    (n.sibling = e.sibling),
    (n.index = e.index),
    (n.ref = e.ref),
    n
  );
}
function Gd(e, t, n, r, o, i) {
  var s = 2;
  if (((r = e), typeof e == "function")) Lg(e) && (s = 1);
  else if (typeof e == "string") s = 5;
  else
    e: switch (e) {
      case Zs:
        return ts(n.children, o, i, t);
      case eg:
        (s = 8), (o |= 8);
        break;
      case Zh:
        return (e = ar(12, n, t, o | 2)), (e.elementType = Zh), (e.lanes = i), e;
      case Jh:
        return (e = ar(13, n, t, o)), (e.elementType = Jh), (e.lanes = i), e;
      case Qh:
        return (e = ar(19, n, t, o)), (e.elementType = Qh), (e.lanes = i), e;
      case g4:
        return f0(n, o, i, t);
      default:
        if (typeof e == "object" && e !== null)
          switch (e.$$typeof) {
            case h4:
              s = 10;
              break e;
            case m4:
              s = 9;
              break e;
            case tg:
              s = 11;
              break e;
            case ng:
              s = 14;
              break e;
            case Jo:
              (s = 16), (r = null);
              break e;
          }
        throw Error(ce(130, e == null ? e : typeof e, ""));
    }
  return (t = ar(s, n, t, o)), (t.elementType = e), (t.type = r), (t.lanes = i), t;
}
function ts(e, t, n, r) {
  return (e = ar(7, e, r, t)), (e.lanes = n), e;
}
function f0(e, t, n, r) {
  return (e = ar(22, e, r, t)), (e.elementType = g4), (e.lanes = n), (e.stateNode = { isHidden: !1 }), e;
}
function Y1(e, t, n) {
  return (e = ar(6, e, null, t)), (e.lanes = n), e;
}
function K1(e, t, n) {
  return (
    (t = ar(4, e.children !== null ? e.children : [], e.key, t)),
    (t.lanes = n),
    (t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }),
    t
  );
}
function rR(e, t, n, r, o) {
  (this.tag = t),
    (this.containerInfo = e),
    (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null),
    (this.timeoutHandle = -1),
    (this.callbackNode = this.pendingContext = this.context = null),
    (this.callbackPriority = 0),
    (this.eventTimes = P1(0)),
    (this.expirationTimes = P1(-1)),
    (this.entangledLanes =
      this.finishedLanes =
      this.mutableReadLanes =
      this.expiredLanes =
      this.pingedLanes =
      this.suspendedLanes =
      this.pendingLanes =
        0),
    (this.entanglements = P1(0)),
    (this.identifierPrefix = r),
    (this.onRecoverableError = o),
    (this.mutableSourceEagerHydrationData = null);
}
function Ng(e, t, n, r, o, i, s, a, l) {
  return (
    (e = new rR(e, t, n, a, l)),
    t === 1 ? ((t = 1), i === !0 && (t |= 8)) : (t = 0),
    (i = ar(3, null, null, t)),
    (e.current = i),
    (i.stateNode = e),
    (i.memoizedState = {
      element: r,
      isDehydrated: n,
      cache: null,
      transitions: null,
      pendingSuspenseBoundaries: null,
    }),
    bg(i),
    e
  );
}
function oR(e, t, n) {
  var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
  return { $$typeof: qs, key: r == null ? null : "" + r, children: e, containerInfo: t, implementation: n };
}
function a9(e) {
  if (!e) return Ci;
  e = e._reactInternals;
  e: {
    if (Cs(e) !== e || e.tag !== 1) throw Error(ce(170));
    var t = e;
    do {
      switch (t.tag) {
        case 3:
          t = t.stateNode.context;
          break e;
        case 1:
          if (Rn(t.type)) {
            t = t.stateNode.__reactInternalMemoizedMergedChildContext;
            break e;
          }
      }
      t = t.return;
    } while (t !== null);
    throw Error(ce(171));
  }
  if (e.tag === 1) {
    var n = e.type;
    if (Rn(n)) return ax(e, n, t);
  }
  return t;
}
function l9(e, t, n, r, o, i, s, a, l) {
  return (
    (e = Ng(n, r, !0, e, o, i, s, a, l)),
    (e.context = a9(null)),
    (n = e.current),
    (r = wn()),
    (o = hi(n)),
    (i = Ro(r, o)),
    (i.callback = t ?? null),
    fi(n, i, o),
    (e.current.lanes = o),
    cc(e, o, r),
    In(e, r),
    e
  );
}
function p0(e, t, n, r) {
  var o = t.current,
    i = wn(),
    s = hi(o);
  return (
    (n = a9(n)),
    t.context === null ? (t.context = n) : (t.pendingContext = n),
    (t = Ro(i, s)),
    (t.payload = { element: e }),
    (r = r === void 0 ? null : r),
    r !== null && (t.callback = r),
    (e = fi(o, t, s)),
    e !== null && (Fr(e, o, s, i), Bd(e, o, s)),
    s
  );
}
function Nf(e) {
  if (((e = e.current), !e.child)) return null;
  switch (e.child.tag) {
    case 5:
      return e.child.stateNode;
    default:
      return e.child.stateNode;
  }
}
function n7(e, t) {
  if (((e = e.memoizedState), e !== null && e.dehydrated !== null)) {
    var n = e.retryLane;
    e.retryLane = n !== 0 && n < t ? n : t;
  }
}
function $g(e, t) {
  n7(e, t), (e = e.alternate) && n7(e, t);
}
function iR() {
  return null;
}
var u9 =
  typeof reportError == "function"
    ? reportError
    : function (e) {
        console.error(e);
      };
function Bg(e) {
  this._internalRoot = e;
}
h0.prototype.render = Bg.prototype.render = function (e) {
  var t = this._internalRoot;
  if (t === null) throw Error(ce(409));
  p0(e, t, null, null);
};
h0.prototype.unmount = Bg.prototype.unmount = function () {
  var e = this._internalRoot;
  if (e !== null) {
    this._internalRoot = null;
    var t = e.containerInfo;
    ys(function () {
      p0(null, e, null, null);
    }),
      (t[No] = null);
  }
};
function h0(e) {
  this._internalRoot = e;
}
h0.prototype.unstable_scheduleHydration = function (e) {
  if (e) {
    var t = j4();
    e = { blockedOn: null, target: e, priority: t };
    for (var n = 0; n < ti.length && t !== 0 && t < ti[n].priority; n++);
    ti.splice(n, 0, e), n === 0 && H4(e);
  }
};
function jg(e) {
  return !(!e || (e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11));
}
function m0(e) {
  return !(
    !e ||
    (e.nodeType !== 1 &&
      e.nodeType !== 9 &&
      e.nodeType !== 11 &&
      (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable "))
  );
}
function r7() {}
function sR(e, t, n, r, o) {
  if (o) {
    if (typeof r == "function") {
      var i = r;
      r = function () {
        var u = Nf(s);
        i.call(u);
      };
    }
    var s = l9(t, r, e, 0, null, !1, !1, "", r7);
    return (e._reactRootContainer = s), (e[No] = s.current), Ru(e.nodeType === 8 ? e.parentNode : e), ys(), s;
  }
  for (; (o = e.lastChild); ) e.removeChild(o);
  if (typeof r == "function") {
    var a = r;
    r = function () {
      var u = Nf(l);
      a.call(u);
    };
  }
  var l = Ng(e, 0, !1, null, null, !1, !1, "", r7);
  return (
    (e._reactRootContainer = l),
    (e[No] = l.current),
    Ru(e.nodeType === 8 ? e.parentNode : e),
    ys(function () {
      p0(t, l, n, r);
    }),
    l
  );
}
function g0(e, t, n, r, o) {
  var i = n._reactRootContainer;
  if (i) {
    var s = i;
    if (typeof o == "function") {
      var a = o;
      o = function () {
        var l = Nf(s);
        a.call(l);
      };
    }
    p0(t, s, e, o);
  } else s = sR(n, t, e, o, r);
  return Nf(s);
}
$4 = function (e) {
  switch (e.tag) {
    case 3:
      var t = e.stateNode;
      if (t.current.memoizedState.isDehydrated) {
        var n = Wl(t.pendingLanes);
        n !== 0 && (ig(t, n | 1), In(t, Bt()), !(et & 6) && ((Va = Bt() + 500), Ai()));
      }
      break;
    case 13:
      ys(function () {
        var r = $o(e, 1);
        if (r !== null) {
          var o = wn();
          Fr(r, e, 1, o);
        }
      }),
        $g(e, 1);
  }
};
sg = function (e) {
  if (e.tag === 13) {
    var t = $o(e, 134217728);
    if (t !== null) {
      var n = wn();
      Fr(t, e, 134217728, n);
    }
    $g(e, 134217728);
  }
};
B4 = function (e) {
  if (e.tag === 13) {
    var t = hi(e),
      n = $o(e, t);
    if (n !== null) {
      var r = wn();
      Fr(n, e, t, r);
    }
    $g(e, t);
  }
};
j4 = function () {
  return ft;
};
V4 = function (e, t) {
  var n = ft;
  try {
    return (ft = e), t();
  } finally {
    ft = n;
  }
};
um = function (e, t, n) {
  switch (t) {
    case "input":
      if ((nm(e, n), (t = n.name), n.type === "radio" && t != null)) {
        for (n = e; n.parentNode; ) n = n.parentNode;
        for (
          n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), t = 0;
          t < n.length;
          t++
        ) {
          var r = n[t];
          if (r !== e && r.form === e.form) {
            var o = s0(r);
            if (!o) throw Error(ce(90));
            v4(r), nm(r, o);
          }
        }
      }
      break;
    case "textarea":
      b4(e, n);
      break;
    case "select":
      (t = n.value), t != null && pa(e, !!n.multiple, t, !1);
  }
};
E4 = Ig;
P4 = ys;
var aR = { usingClientEntryPoint: !1, Events: [fc, ta, s0, T4, M4, Ig] },
  kl = { findFiberByHostInstance: Yi, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" },
  lR = {
    bundleType: kl.bundleType,
    version: kl.version,
    rendererPackageName: kl.rendererPackageName,
    rendererConfig: kl.rendererConfig,
    overrideHookState: null,
    overrideHookStateDeletePath: null,
    overrideHookStateRenamePath: null,
    overrideProps: null,
    overridePropsDeletePath: null,
    overridePropsRenamePath: null,
    setErrorHandler: null,
    setSuspenseHandler: null,
    scheduleUpdate: null,
    currentDispatcherRef: Uo.ReactCurrentDispatcher,
    findHostInstanceByFiber: function (e) {
      return (e = D4(e)), e === null ? null : e.stateNode;
    },
    findFiberByHostInstance: kl.findFiberByHostInstance || iR,
    findHostInstancesForRefresh: null,
    scheduleRefresh: null,
    scheduleRoot: null,
    setRefreshHandler: null,
    getCurrentFiber: null,
    reconcilerVersion: "18.3.1-next-f1338f8080-20240426",
  };
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
  var ed = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  if (!ed.isDisabled && ed.supportsFiber)
    try {
      (n0 = ed.inject(lR)), (ro = ed);
    } catch {}
}
Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = aR;
Xn.createPortal = function (e, t) {
  var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
  if (!jg(t)) throw Error(ce(200));
  return oR(e, t, null, n);
};
Xn.createRoot = function (e, t) {
  if (!jg(e)) throw Error(ce(299));
  var n = !1,
    r = "",
    o = u9;
  return (
    t != null &&
      (t.unstable_strictMode === !0 && (n = !0),
      t.identifierPrefix !== void 0 && (r = t.identifierPrefix),
      t.onRecoverableError !== void 0 && (o = t.onRecoverableError)),
    (t = Ng(e, 1, !1, null, null, n, !1, r, o)),
    (e[No] = t.current),
    Ru(e.nodeType === 8 ? e.parentNode : e),
    new Bg(t)
  );
};
Xn.findDOMNode = function (e) {
  if (e == null) return null;
  if (e.nodeType === 1) return e;
  var t = e._reactInternals;
  if (t === void 0)
    throw typeof e.render == "function" ? Error(ce(188)) : ((e = Object.keys(e).join(",")), Error(ce(268, e)));
  return (e = D4(t)), (e = e === null ? null : e.stateNode), e;
};
Xn.flushSync = function (e) {
  return ys(e);
};
Xn.hydrate = function (e, t, n) {
  if (!m0(t)) throw Error(ce(200));
  return g0(null, e, t, !0, n);
};
Xn.hydrateRoot = function (e, t, n) {
  if (!jg(e)) throw Error(ce(405));
  var r = (n != null && n.hydratedSources) || null,
    o = !1,
    i = "",
    s = u9;
  if (
    (n != null &&
      (n.unstable_strictMode === !0 && (o = !0),
      n.identifierPrefix !== void 0 && (i = n.identifierPrefix),
      n.onRecoverableError !== void 0 && (s = n.onRecoverableError)),
    (t = l9(t, null, e, 1, n ?? null, o, !1, i, s)),
    (e[No] = t.current),
    Ru(e),
    r)
  )
    for (e = 0; e < r.length; e++)
      (n = r[e]),
        (o = n._getVersion),
        (o = o(n._source)),
        t.mutableSourceEagerHydrationData == null
          ? (t.mutableSourceEagerHydrationData = [n, o])
          : t.mutableSourceEagerHydrationData.push(n, o);
  return new h0(t);
};
Xn.render = function (e, t, n) {
  if (!m0(t)) throw Error(ce(200));
  return g0(null, e, t, !1, n);
};
Xn.unmountComponentAtNode = function (e) {
  if (!m0(e)) throw Error(ce(40));
  return e._reactRootContainer
    ? (ys(function () {
        g0(null, null, e, !1, function () {
          (e._reactRootContainer = null), (e[No] = null);
        });
      }),
      !0)
    : !1;
};
Xn.unstable_batchedUpdates = Ig;
Xn.unstable_renderSubtreeIntoContainer = function (e, t, n, r) {
  if (!m0(n)) throw Error(ce(200));
  if (e == null || e._reactInternals === void 0) throw Error(ce(38));
  return g0(e, t, n, !1, r);
};
Xn.version = "18.3.1-next-f1338f8080-20240426";
function c9() {
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"))
    try {
      __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c9);
    } catch (e) {
      console.error(e);
    }
}
c9(), (c4.exports = Xn);
var ws = c4.exports;
const td = Ti(ws),
  o7 = { disabled: !1 },
  $f = De.createContext(null);
var d9 = function (t) {
    return t.scrollTop;
  },
  Ul = "unmounted",
  zi = "exited",
  Wi = "entering",
  Us = "entered",
  Hm = "exiting",
  wr = (function (e) {
    q2(t, e);
    function t(r, o) {
      var i;
      i = e.call(this, r, o) || this;
      var s = o,
        a = s && !s.isMounting ? r.enter : r.appear,
        l;
      return (
        (i.appearStatus = null),
        r.in
          ? a
            ? ((l = zi), (i.appearStatus = Wi))
            : (l = Us)
          : r.unmountOnExit || r.mountOnEnter
            ? (l = Ul)
            : (l = zi),
        (i.state = { status: l }),
        (i.nextCallback = null),
        i
      );
    }
    t.getDerivedStateFromProps = function (o, i) {
      var s = o.in;
      return s && i.status === Ul ? { status: zi } : null;
    };
    var n = t.prototype;
    return (
      (n.componentDidMount = function () {
        this.updateStatus(!0, this.appearStatus);
      }),
      (n.componentDidUpdate = function (o) {
        var i = null;
        if (o !== this.props) {
          var s = this.state.status;
          this.props.in ? s !== Wi && s !== Us && (i = Wi) : (s === Wi || s === Us) && (i = Hm);
        }
        this.updateStatus(!1, i);
      }),
      (n.componentWillUnmount = function () {
        this.cancelNextCallback();
      }),
      (n.getTimeouts = function () {
        var o = this.props.timeout,
          i,
          s,
          a;
        return (
          (i = s = a = o),
          o != null && typeof o != "number" && ((i = o.exit), (s = o.enter), (a = o.appear !== void 0 ? o.appear : s)),
          { exit: i, enter: s, appear: a }
        );
      }),
      (n.updateStatus = function (o, i) {
        if ((o === void 0 && (o = !1), i !== null))
          if ((this.cancelNextCallback(), i === Wi)) {
            if (this.props.unmountOnExit || this.props.mountOnEnter) {
              var s = this.props.nodeRef ? this.props.nodeRef.current : td.findDOMNode(this);
              s && d9(s);
            }
            this.performEnter(o);
          } else this.performExit();
        else this.props.unmountOnExit && this.state.status === zi && this.setState({ status: Ul });
      }),
      (n.performEnter = function (o) {
        var i = this,
          s = this.props.enter,
          a = this.context ? this.context.isMounting : o,
          l = this.props.nodeRef ? [a] : [td.findDOMNode(this), a],
          u = l[0],
          c = l[1],
          d = this.getTimeouts(),
          p = a ? d.appear : d.enter;
        if ((!o && !s) || o7.disabled) {
          this.safeSetState({ status: Us }, function () {
            i.props.onEntered(u);
          });
          return;
        }
        this.props.onEnter(u, c),
          this.safeSetState({ status: Wi }, function () {
            i.props.onEntering(u, c),
              i.onTransitionEnd(p, function () {
                i.safeSetState({ status: Us }, function () {
                  i.props.onEntered(u, c);
                });
              });
          });
      }),
      (n.performExit = function () {
        var o = this,
          i = this.props.exit,
          s = this.getTimeouts(),
          a = this.props.nodeRef ? void 0 : td.findDOMNode(this);
        if (!i || o7.disabled) {
          this.safeSetState({ status: zi }, function () {
            o.props.onExited(a);
          });
          return;
        }
        this.props.onExit(a),
          this.safeSetState({ status: Hm }, function () {
            o.props.onExiting(a),
              o.onTransitionEnd(s.exit, function () {
                o.safeSetState({ status: zi }, function () {
                  o.props.onExited(a);
                });
              });
          });
      }),
      (n.cancelNextCallback = function () {
        this.nextCallback !== null && (this.nextCallback.cancel(), (this.nextCallback = null));
      }),
      (n.safeSetState = function (o, i) {
        (i = this.setNextCallback(i)), this.setState(o, i);
      }),
      (n.setNextCallback = function (o) {
        var i = this,
          s = !0;
        return (
          (this.nextCallback = function (a) {
            s && ((s = !1), (i.nextCallback = null), o(a));
          }),
          (this.nextCallback.cancel = function () {
            s = !1;
          }),
          this.nextCallback
        );
      }),
      (n.onTransitionEnd = function (o, i) {
        this.setNextCallback(i);
        var s = this.props.nodeRef ? this.props.nodeRef.current : td.findDOMNode(this),
          a = o == null && !this.props.addEndListener;
        if (!s || a) {
          setTimeout(this.nextCallback, 0);
          return;
        }
        if (this.props.addEndListener) {
          var l = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback],
            u = l[0],
            c = l[1];
          this.props.addEndListener(u, c);
        }
        o != null && setTimeout(this.nextCallback, o);
      }),
      (n.render = function () {
        var o = this.state.status;
        if (o === Ul) return null;
        var i = this.props,
          s = i.children;
        i.in,
          i.mountOnEnter,
          i.unmountOnExit,
          i.appear,
          i.enter,
          i.exit,
          i.timeout,
          i.addEndListener,
          i.onEnter,
          i.onEntering,
          i.onEntered,
          i.onExit,
          i.onExiting,
          i.onExited,
          i.nodeRef;
        var a = ee(i, [
          "children",
          "in",
          "mountOnEnter",
          "unmountOnExit",
          "appear",
          "enter",
          "exit",
          "timeout",
          "addEndListener",
          "onEnter",
          "onEntering",
          "onEntered",
          "onExit",
          "onExiting",
          "onExited",
          "nodeRef",
        ]);
        return De.createElement(
          $f.Provider,
          { value: null },
          typeof s == "function" ? s(o, a) : De.cloneElement(De.Children.only(s), a)
        );
      }),
      t
    );
  })(De.Component);
wr.contextType = $f;
wr.propTypes = {};
function Ls() {}
wr.defaultProps = {
  in: !1,
  mountOnEnter: !1,
  unmountOnExit: !1,
  appear: !1,
  enter: !0,
  exit: !0,
  onEnter: Ls,
  onEntering: Ls,
  onEntered: Ls,
  onExit: Ls,
  onExiting: Ls,
  onExited: Ls,
};
wr.UNMOUNTED = Ul;
wr.EXITED = zi;
wr.ENTERING = Wi;
wr.ENTERED = Us;
wr.EXITING = Hm;
var uR = function (t, n) {
    return (
      t &&
      n &&
      n.split(" ").forEach(function (r) {
        return r_(t, r);
      })
    );
  },
  X1 = function (t, n) {
    return (
      t &&
      n &&
      n.split(" ").forEach(function (r) {
        return o_(t, r);
      })
    );
  },
  Vg = (function (e) {
    q2(t, e);
    function t() {
      for (var r, o = arguments.length, i = new Array(o), s = 0; s < o; s++) i[s] = arguments[s];
      return (
        (r = e.call.apply(e, [this].concat(i)) || this),
        (r.appliedClasses = { appear: {}, enter: {}, exit: {} }),
        (r.onEnter = function (a, l) {
          var u = r.resolveArguments(a, l),
            c = u[0],
            d = u[1];
          r.removeClasses(c, "exit"),
            r.addClass(c, d ? "appear" : "enter", "base"),
            r.props.onEnter && r.props.onEnter(a, l);
        }),
        (r.onEntering = function (a, l) {
          var u = r.resolveArguments(a, l),
            c = u[0],
            d = u[1],
            p = d ? "appear" : "enter";
          r.addClass(c, p, "active"), r.props.onEntering && r.props.onEntering(a, l);
        }),
        (r.onEntered = function (a, l) {
          var u = r.resolveArguments(a, l),
            c = u[0],
            d = u[1],
            p = d ? "appear" : "enter";
          r.removeClasses(c, p), r.addClass(c, p, "done"), r.props.onEntered && r.props.onEntered(a, l);
        }),
        (r.onExit = function (a) {
          var l = r.resolveArguments(a),
            u = l[0];
          r.removeClasses(u, "appear"),
            r.removeClasses(u, "enter"),
            r.addClass(u, "exit", "base"),
            r.props.onExit && r.props.onExit(a);
        }),
        (r.onExiting = function (a) {
          var l = r.resolveArguments(a),
            u = l[0];
          r.addClass(u, "exit", "active"), r.props.onExiting && r.props.onExiting(a);
        }),
        (r.onExited = function (a) {
          var l = r.resolveArguments(a),
            u = l[0];
          r.removeClasses(u, "exit"), r.addClass(u, "exit", "done"), r.props.onExited && r.props.onExited(a);
        }),
        (r.resolveArguments = function (a, l) {
          return r.props.nodeRef ? [r.props.nodeRef.current, a] : [a, l];
        }),
        (r.getClassNames = function (a) {
          var l = r.props.classNames,
            u = typeof l == "string",
            c = u && l ? l + "-" : "",
            d = u ? "" + c + a : l[a],
            p = u ? d + "-active" : l[a + "Active"],
            h = u ? d + "-done" : l[a + "Done"];
          return { baseClassName: d, activeClassName: p, doneClassName: h };
        }),
        r
      );
    }
    var n = t.prototype;
    return (
      (n.addClass = function (o, i, s) {
        var a = this.getClassNames(i)[s + "ClassName"],
          l = this.getClassNames("enter"),
          u = l.doneClassName;
        i === "appear" && s === "done" && u && (a += " " + u),
          s === "active" && o && d9(o),
          a && ((this.appliedClasses[i][s] = a), uR(o, a));
      }),
      (n.removeClasses = function (o, i) {
        var s = this.appliedClasses[i],
          a = s.base,
          l = s.active,
          u = s.done;
        (this.appliedClasses[i] = {}), a && X1(o, a), l && X1(o, l), u && X1(o, u);
      }),
      (n.render = function () {
        var o = this.props;
        o.classNames;
        var i = ee(o, ["classNames"]);
        return De.createElement(
          wr,
          S({}, i, {
            onEnter: this.onEnter,
            onEntered: this.onEntered,
            onEntering: this.onEntering,
            onExit: this.onExit,
            onExiting: this.onExiting,
            onExited: this.onExited,
          })
        );
      }),
      t
    );
  })(De.Component);
Vg.defaultProps = { classNames: "" };
Vg.propTypes = {};
function cR(e) {
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return e;
}
function Hg(e, t) {
  var n = function (i) {
      return t && b.isValidElement(i) ? t(i) : i;
    },
    r = Object.create(null);
  return (
    e &&
      b.Children.map(e, function (o) {
        return o;
      }).forEach(function (o) {
        r[o.key] = n(o);
      }),
    r
  );
}
function dR(e, t) {
  (e = e || {}), (t = t || {});
  function n(c) {
    return c in t ? t[c] : e[c];
  }
  var r = Object.create(null),
    o = [];
  for (var i in e) i in t ? o.length && ((r[i] = o), (o = [])) : o.push(i);
  var s,
    a = {};
  for (var l in t) {
    if (r[l])
      for (s = 0; s < r[l].length; s++) {
        var u = r[l][s];
        a[r[l][s]] = n(u);
      }
    a[l] = n(l);
  }
  for (s = 0; s < o.length; s++) a[o[s]] = n(o[s]);
  return a;
}
function qi(e, t, n) {
  return n[t] != null ? n[t] : e.props[t];
}
function fR(e, t) {
  return Hg(e.children, function (n) {
    return b.cloneElement(n, {
      onExited: t.bind(null, n),
      in: !0,
      appear: qi(n, "appear", e),
      enter: qi(n, "enter", e),
      exit: qi(n, "exit", e),
    });
  });
}
function pR(e, t, n) {
  var r = Hg(e.children),
    o = dR(t, r);
  return (
    Object.keys(o).forEach(function (i) {
      var s = o[i];
      if (b.isValidElement(s)) {
        var a = i in t,
          l = i in r,
          u = t[i],
          c = b.isValidElement(u) && !u.props.in;
        l && (!a || c)
          ? (o[i] = b.cloneElement(s, {
              onExited: n.bind(null, s),
              in: !0,
              exit: qi(s, "exit", e),
              enter: qi(s, "enter", e),
            }))
          : !l && a && !c
            ? (o[i] = b.cloneElement(s, { in: !1 }))
            : l &&
              a &&
              b.isValidElement(u) &&
              (o[i] = b.cloneElement(s, {
                onExited: n.bind(null, s),
                in: u.props.in,
                exit: qi(s, "exit", e),
                enter: qi(s, "enter", e),
              }));
      }
    }),
    o
  );
}
var hR =
    Object.values ||
    function (e) {
      return Object.keys(e).map(function (t) {
        return e[t];
      });
    },
  mR = {
    component: "div",
    childFactory: function (t) {
      return t;
    },
  },
  hc = (function (e) {
    q2(t, e);
    function t(r, o) {
      var i;
      i = e.call(this, r, o) || this;
      var s = i.handleExited.bind(cR(i));
      return (i.state = { contextValue: { isMounting: !0 }, handleExited: s, firstRender: !0 }), i;
    }
    var n = t.prototype;
    return (
      (n.componentDidMount = function () {
        (this.mounted = !0), this.setState({ contextValue: { isMounting: !1 } });
      }),
      (n.componentWillUnmount = function () {
        this.mounted = !1;
      }),
      (t.getDerivedStateFromProps = function (o, i) {
        var s = i.children,
          a = i.handleExited,
          l = i.firstRender;
        return { children: l ? fR(o, a) : pR(o, s, a), firstRender: !1 };
      }),
      (n.handleExited = function (o, i) {
        var s = Hg(this.props.children);
        o.key in s ||
          (o.props.onExited && o.props.onExited(i),
          this.mounted &&
            this.setState(function (a) {
              var l = S({}, a.children);
              return delete l[o.key], { children: l };
            }));
      }),
      (n.render = function () {
        var o = this.props,
          i = o.component,
          s = o.childFactory,
          a = ee(o, ["component", "childFactory"]),
          l = this.state.contextValue,
          u = hR(this.state.children).map(s);
        return (
          delete a.appear,
          delete a.enter,
          delete a.exit,
          i === null
            ? De.createElement($f.Provider, { value: l }, u)
            : De.createElement($f.Provider, { value: l }, De.createElement(i, a, u))
        );
      }),
      t
    );
  })(De.Component);
hc.propTypes = {};
hc.defaultProps = mR;
const zg = (e) => e.scrollTop;
function Ha(e, t) {
  var n, r;
  const { timeout: o, easing: i, style: s = {} } = e;
  return {
    duration: (n = s.transitionDuration) != null ? n : typeof o == "number" ? o : o[t.mode] || 0,
    easing: (r = s.transitionTimingFunction) != null ? r : typeof i == "object" ? i[t.mode] : i,
    delay: s.transitionDelay,
  };
}
function gR(e) {
  return Ae("MuiPaper", e);
}
Se("MuiPaper", [
  "root",
  "rounded",
  "outlined",
  "elevation",
  "elevation0",
  "elevation1",
  "elevation2",
  "elevation3",
  "elevation4",
  "elevation5",
  "elevation6",
  "elevation7",
  "elevation8",
  "elevation9",
  "elevation10",
  "elevation11",
  "elevation12",
  "elevation13",
  "elevation14",
  "elevation15",
  "elevation16",
  "elevation17",
  "elevation18",
  "elevation19",
  "elevation20",
  "elevation21",
  "elevation22",
  "elevation23",
  "elevation24",
]);
const yR = ["className", "component", "elevation", "square", "variant"],
  vR = (e) => {
    const { square: t, elevation: n, variant: r, classes: o } = e,
      i = { root: ["root", r, !t && "rounded", r === "elevation" && `elevation${n}`] };
    return Ee(i, gR, o);
  },
  xR = W("div", {
    name: "MuiPaper",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, t[n.variant], !n.square && t.rounded, n.variant === "elevation" && t[`elevation${n.elevation}`]];
    },
  })(({ theme: e, ownerState: t }) => {
    var n;
    return S(
      {
        backgroundColor: (e.vars || e).palette.background.paper,
        color: (e.vars || e).palette.text.primary,
        transition: e.transitions.create("box-shadow"),
      },
      !t.square && { borderRadius: e.shape.borderRadius },
      t.variant === "outlined" && { border: `1px solid ${(e.vars || e).palette.divider}` },
      t.variant === "elevation" &&
        S(
          { boxShadow: (e.vars || e).shadows[t.elevation] },
          !e.vars &&
            e.palette.mode === "dark" && {
              backgroundImage: `linear-gradient(${lt("#fff", Z3(t.elevation))}, ${lt("#fff", Z3(t.elevation))})`,
            },
          e.vars && { backgroundImage: (n = e.vars.overlays) == null ? void 0 : n[t.elevation] }
        )
    );
  }),
  Ss = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiPaper" }),
      { className: o, component: i = "div", elevation: s = 1, square: a = !1, variant: l = "elevation" } = r,
      u = ee(r, yR),
      c = S({}, r, { component: i, elevation: s, square: a, variant: l }),
      d = vR(c);
    return f.jsx(xR, S({ as: i, ownerState: c, className: ue(d.root, o), ref: n }, u));
  });
function io(e) {
  return typeof e == "string";
}
function bR(e, t, n) {
  return e === void 0 || io(e) ? t : S({}, t, { ownerState: S({}, t.ownerState, n) });
}
function CR(e, t, n = (r, o) => r === o) {
  return e.length === t.length && e.every((r, o) => n(r, t[o]));
}
const wR = { disableDefaultClasses: !1 },
  SR = b.createContext(wR);
function kR(e) {
  const { disableDefaultClasses: t } = b.useContext(SR);
  return (n) => (t ? "" : e(n));
}
function iu(e, t = []) {
  if (e === void 0) return {};
  const n = {};
  return (
    Object.keys(e)
      .filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r))
      .forEach((r) => {
        n[r] = e[r];
      }),
    n
  );
}
function Wg(e, t, n) {
  return typeof e == "function" ? e(t, n) : e;
}
function i7(e) {
  if (e === void 0) return {};
  const t = {};
  return (
    Object.keys(e)
      .filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function"))
      .forEach((n) => {
        t[n] = e[n];
      }),
    t
  );
}
function TR(e) {
  const { getSlotProps: t, additionalProps: n, externalSlotProps: r, externalForwardedProps: o, className: i } = e;
  if (!t) {
    const h = ue(
        n == null ? void 0 : n.className,
        i,
        o == null ? void 0 : o.className,
        r == null ? void 0 : r.className
      ),
      m = S({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style),
      v = S({}, n, o, r);
    return (
      h.length > 0 && (v.className = h), Object.keys(m).length > 0 && (v.style = m), { props: v, internalRef: void 0 }
    );
  }
  const s = iu(S({}, o, r)),
    a = i7(r),
    l = i7(o),
    u = t(s),
    c = ue(
      u == null ? void 0 : u.className,
      n == null ? void 0 : n.className,
      i,
      o == null ? void 0 : o.className,
      r == null ? void 0 : r.className
    ),
    d = S(
      {},
      u == null ? void 0 : u.style,
      n == null ? void 0 : n.style,
      o == null ? void 0 : o.style,
      r == null ? void 0 : r.style
    ),
    p = S({}, u, n, l, a);
  return (
    c.length > 0 && (p.className = c), Object.keys(d).length > 0 && (p.style = d), { props: p, internalRef: u.ref }
  );
}
const MR = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
function qe(e) {
  var t;
  const { elementType: n, externalSlotProps: r, ownerState: o, skipResolvingSlotProps: i = !1 } = e,
    s = ee(e, MR),
    a = i ? {} : Wg(r, o),
    { props: l, internalRef: u } = TR(S({}, s, { externalSlotProps: a })),
    c = tt(u, a == null ? void 0 : a.ref, (t = e.additionalProps) == null ? void 0 : t.ref);
  return bR(n, S({}, l, { ref: c }), o);
}
function ER(e) {
  const {
      className: t,
      classes: n,
      pulsate: r = !1,
      rippleX: o,
      rippleY: i,
      rippleSize: s,
      in: a,
      onExited: l,
      timeout: u,
    } = e,
    [c, d] = b.useState(!1),
    p = ue(t, n.ripple, n.rippleVisible, r && n.ripplePulsate),
    h = { width: s, height: s, top: -(s / 2) + i, left: -(s / 2) + o },
    m = ue(n.child, c && n.childLeaving, r && n.childPulsate);
  return (
    !a && !c && d(!0),
    b.useEffect(() => {
      if (!a && l != null) {
        const v = setTimeout(l, u);
        return () => {
          clearTimeout(v);
        };
      }
    }, [l, a, u]),
    f.jsx("span", { className: p, style: h, children: f.jsx("span", { className: m }) })
  );
}
const nr = Se("MuiTouchRipple", [
    "root",
    "ripple",
    "rippleVisible",
    "ripplePulsate",
    "child",
    "childLeaving",
    "childPulsate",
  ]),
  PR = ["center", "classes", "className"];
let y0 = (e) => e,
  s7,
  a7,
  l7,
  u7;
const zm = 550,
  AR = 80,
  _R = Go(
    s7 ||
      (s7 = y0`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)
  ),
  DR = Go(
    a7 ||
      (a7 = y0`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)
  ),
  RR = Go(
    l7 ||
      (l7 = y0`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)
  ),
  IR = W("span", { name: "MuiTouchRipple", slot: "Root" })({
    overflow: "hidden",
    pointerEvents: "none",
    position: "absolute",
    zIndex: 0,
    top: 0,
    right: 0,
    bottom: 0,
    left: 0,
    borderRadius: "inherit",
  }),
  OR = W(ER, { name: "MuiTouchRipple", slot: "Ripple" })(
    u7 ||
      (u7 = y0`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),
    nr.rippleVisible,
    _R,
    zm,
    ({ theme: e }) => e.transitions.easing.easeInOut,
    nr.ripplePulsate,
    ({ theme: e }) => e.transitions.duration.shorter,
    nr.child,
    nr.childLeaving,
    DR,
    zm,
    ({ theme: e }) => e.transitions.easing.easeInOut,
    nr.childPulsate,
    RR,
    ({ theme: e }) => e.transitions.easing.easeInOut
  ),
  FR = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiTouchRipple" }),
      { center: o = !1, classes: i = {}, className: s } = r,
      a = ee(r, PR),
      [l, u] = b.useState([]),
      c = b.useRef(0),
      d = b.useRef(null);
    b.useEffect(() => {
      d.current && (d.current(), (d.current = null));
    }, [l]);
    const p = b.useRef(!1),
      h = Kv(),
      m = b.useRef(null),
      v = b.useRef(null),
      C = b.useCallback(
        (w) => {
          const { pulsate: k, rippleX: M, rippleY: T, rippleSize: P, cb: A } = w;
          u((D) => [
            ...D,
            f.jsx(
              OR,
              {
                classes: {
                  ripple: ue(i.ripple, nr.ripple),
                  rippleVisible: ue(i.rippleVisible, nr.rippleVisible),
                  ripplePulsate: ue(i.ripplePulsate, nr.ripplePulsate),
                  child: ue(i.child, nr.child),
                  childLeaving: ue(i.childLeaving, nr.childLeaving),
                  childPulsate: ue(i.childPulsate, nr.childPulsate),
                },
                timeout: zm,
                pulsate: k,
                rippleX: M,
                rippleY: T,
                rippleSize: P,
              },
              c.current
            ),
          ]),
            (c.current += 1),
            (d.current = A);
        },
        [i]
      ),
      y = b.useCallback(
        (w = {}, k = {}, M = () => {}) => {
          const { pulsate: T = !1, center: P = o || k.pulsate, fakeElement: A = !1 } = k;
          if ((w == null ? void 0 : w.type) === "mousedown" && p.current) {
            p.current = !1;
            return;
          }
          (w == null ? void 0 : w.type) === "touchstart" && (p.current = !0);
          const D = A ? null : v.current,
            R = D ? D.getBoundingClientRect() : { width: 0, height: 0, left: 0, top: 0 };
          let L, F, O;
          if (P || w === void 0 || (w.clientX === 0 && w.clientY === 0) || (!w.clientX && !w.touches))
            (L = Math.round(R.width / 2)), (F = Math.round(R.height / 2));
          else {
            const { clientX: E, clientY: B } = w.touches && w.touches.length > 0 ? w.touches[0] : w;
            (L = Math.round(E - R.left)), (F = Math.round(B - R.top));
          }
          if (P) (O = Math.sqrt((2 * R.width ** 2 + R.height ** 2) / 3)), O % 2 === 0 && (O += 1);
          else {
            const E = Math.max(Math.abs((D ? D.clientWidth : 0) - L), L) * 2 + 2,
              B = Math.max(Math.abs((D ? D.clientHeight : 0) - F), F) * 2 + 2;
            O = Math.sqrt(E ** 2 + B ** 2);
          }
          w != null && w.touches
            ? m.current === null &&
              ((m.current = () => {
                C({ pulsate: T, rippleX: L, rippleY: F, rippleSize: O, cb: M });
              }),
              h.start(AR, () => {
                m.current && (m.current(), (m.current = null));
              }))
            : C({ pulsate: T, rippleX: L, rippleY: F, rippleSize: O, cb: M });
        },
        [o, C, h]
      ),
      g = b.useCallback(() => {
        y({}, { pulsate: !0 });
      }, [y]),
      x = b.useCallback(
        (w, k) => {
          if ((h.clear(), (w == null ? void 0 : w.type) === "touchend" && m.current)) {
            m.current(),
              (m.current = null),
              h.start(0, () => {
                x(w, k);
              });
            return;
          }
          (m.current = null), u((M) => (M.length > 0 ? M.slice(1) : M)), (d.current = k);
        },
        [h]
      );
    return (
      b.useImperativeHandle(n, () => ({ pulsate: g, start: y, stop: x }), [g, y, x]),
      f.jsx(
        IR,
        S({ className: ue(nr.root, i.root, s), ref: v }, a, {
          children: f.jsx(hc, { component: null, exit: !0, children: l }),
        })
      )
    );
  });
function LR(e) {
  return Ae("MuiButtonBase", e);
}
const NR = Se("MuiButtonBase", ["root", "disabled", "focusVisible"]),
  $R = [
    "action",
    "centerRipple",
    "children",
    "className",
    "component",
    "disabled",
    "disableRipple",
    "disableTouchRipple",
    "focusRipple",
    "focusVisibleClassName",
    "LinkComponent",
    "onBlur",
    "onClick",
    "onContextMenu",
    "onDragLeave",
    "onFocus",
    "onFocusVisible",
    "onKeyDown",
    "onKeyUp",
    "onMouseDown",
    "onMouseLeave",
    "onMouseUp",
    "onTouchEnd",
    "onTouchMove",
    "onTouchStart",
    "tabIndex",
    "TouchRippleProps",
    "touchRippleRef",
    "type",
  ],
  BR = (e) => {
    const { disabled: t, focusVisible: n, focusVisibleClassName: r, classes: o } = e,
      s = Ee({ root: ["root", t && "disabled", n && "focusVisible"] }, LR, o);
    return n && r && (s.root += ` ${r}`), s;
  },
  jR = W("button", { name: "MuiButtonBase", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "inline-flex",
    alignItems: "center",
    justifyContent: "center",
    position: "relative",
    boxSizing: "border-box",
    WebkitTapHighlightColor: "transparent",
    backgroundColor: "transparent",
    outline: 0,
    border: 0,
    margin: 0,
    borderRadius: 0,
    padding: 0,
    cursor: "pointer",
    userSelect: "none",
    verticalAlign: "middle",
    MozAppearance: "none",
    WebkitAppearance: "none",
    textDecoration: "none",
    color: "inherit",
    "&::-moz-focus-inner": { borderStyle: "none" },
    [`&.${NR.disabled}`]: { pointerEvents: "none", cursor: "default" },
    "@media print": { colorAdjust: "exact" },
  }),
  $r = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiButtonBase" }),
      {
        action: o,
        centerRipple: i = !1,
        children: s,
        className: a,
        component: l = "button",
        disabled: u = !1,
        disableRipple: c = !1,
        disableTouchRipple: d = !1,
        focusRipple: p = !1,
        LinkComponent: h = "a",
        onBlur: m,
        onClick: v,
        onContextMenu: C,
        onDragLeave: y,
        onFocus: g,
        onFocusVisible: x,
        onKeyDown: w,
        onKeyUp: k,
        onMouseDown: M,
        onMouseLeave: T,
        onMouseUp: P,
        onTouchEnd: A,
        onTouchMove: D,
        onTouchStart: R,
        tabIndex: L = 0,
        TouchRippleProps: F,
        touchRippleRef: O,
        type: E,
      } = r,
      B = ee(r, $R),
      j = b.useRef(null),
      _ = b.useRef(null),
      I = tt(_, O),
      { isFocusVisibleRef: $, onFocus: J, onBlur: oe, ref: pe } = lc(),
      [z, ae] = b.useState(!1);
    u && z && ae(!1),
      b.useImperativeHandle(
        o,
        () => ({
          focusVisible: () => {
            ae(!0), j.current.focus();
          },
        }),
        []
      );
    const [me, X] = b.useState(!1);
    b.useEffect(() => {
      X(!0);
    }, []);
    const ge = me && !c && !u;
    b.useEffect(() => {
      z && p && !c && me && _.current.pulsate();
    }, [c, p, z, me]);
    function Pe(U, ve, He = d) {
      return Me((Ve) => (ve && ve(Ve), !He && _.current && _.current[U](Ve), !0));
    }
    const _e = Pe("start", M),
      ie = Pe("stop", C),
      ne = Pe("stop", y),
      V = Pe("stop", P),
      K = Pe("stop", (U) => {
        z && U.preventDefault(), T && T(U);
      }),
      Z = Pe("start", R),
      ye = Pe("stop", A),
      Fe = Pe("stop", D),
      le = Pe(
        "stop",
        (U) => {
          oe(U), $.current === !1 && ae(!1), m && m(U);
        },
        !1
      ),
      he = Me((U) => {
        j.current || (j.current = U.currentTarget), J(U), $.current === !0 && (ae(!0), x && x(U)), g && g(U);
      }),
      G = () => {
        const U = j.current;
        return l && l !== "button" && !(U.tagName === "A" && U.href);
      },
      te = b.useRef(!1),
      we = Me((U) => {
        p &&
          !te.current &&
          z &&
          _.current &&
          U.key === " " &&
          ((te.current = !0),
          _.current.stop(U, () => {
            _.current.start(U);
          })),
          U.target === U.currentTarget && G() && U.key === " " && U.preventDefault(),
          w && w(U),
          U.target === U.currentTarget && G() && U.key === "Enter" && !u && (U.preventDefault(), v && v(U));
      }),
      Le = Me((U) => {
        p &&
          U.key === " " &&
          _.current &&
          z &&
          !U.defaultPrevented &&
          ((te.current = !1),
          _.current.stop(U, () => {
            _.current.pulsate(U);
          })),
          k && k(U),
          v && U.target === U.currentTarget && G() && U.key === " " && !U.defaultPrevented && v(U);
      });
    let Te = l;
    Te === "button" && (B.href || B.to) && (Te = h);
    const je = {};
    Te === "button"
      ? ((je.type = E === void 0 ? "button" : E), (je.disabled = u))
      : (!B.href && !B.to && (je.role = "button"), u && (je["aria-disabled"] = u));
    const ut = tt(n, pe, j),
      Xe = S({}, r, {
        centerRipple: i,
        component: l,
        disabled: u,
        disableRipple: c,
        disableTouchRipple: d,
        focusRipple: p,
        tabIndex: L,
        focusVisible: z,
      }),
      Y = BR(Xe);
    return f.jsxs(
      jR,
      S(
        {
          as: Te,
          className: ue(Y.root, a),
          ownerState: Xe,
          onBlur: le,
          onClick: v,
          onContextMenu: ie,
          onFocus: he,
          onKeyDown: we,
          onKeyUp: Le,
          onMouseDown: _e,
          onMouseLeave: K,
          onMouseUp: V,
          onDragLeave: ne,
          onTouchEnd: ye,
          onTouchMove: Fe,
          onTouchStart: Z,
          ref: ut,
          tabIndex: u ? -1 : L,
          type: E,
        },
        je,
        B,
        { children: [s, ge ? f.jsx(FR, S({ ref: I, center: i }, F)) : null] }
      )
    );
  });
function VR(e) {
  return Ae("MuiIconButton", e);
}
const HR = Se("MuiIconButton", [
    "root",
    "disabled",
    "colorInherit",
    "colorPrimary",
    "colorSecondary",
    "colorError",
    "colorInfo",
    "colorSuccess",
    "colorWarning",
    "edgeStart",
    "edgeEnd",
    "sizeSmall",
    "sizeMedium",
    "sizeLarge",
  ]),
  zR = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"],
  WR = (e) => {
    const { classes: t, disabled: n, color: r, edge: o, size: i } = e,
      s = { root: ["root", n && "disabled", r !== "default" && `color${Q(r)}`, o && `edge${Q(o)}`, `size${Q(i)}`] };
    return Ee(s, VR, t);
  },
  GR = W($r, {
    name: "MuiIconButton",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        n.color !== "default" && t[`color${Q(n.color)}`],
        n.edge && t[`edge${Q(n.edge)}`],
        t[`size${Q(n.size)}`],
      ];
    },
  })(
    ({ theme: e, ownerState: t }) =>
      S(
        {
          textAlign: "center",
          flex: "0 0 auto",
          fontSize: e.typography.pxToRem(24),
          padding: 8,
          borderRadius: "50%",
          overflow: "visible",
          color: (e.vars || e).palette.action.active,
          transition: e.transitions.create("background-color", { duration: e.transitions.duration.shortest }),
        },
        !t.disableRipple && {
          "&:hover": {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`
              : lt(e.palette.action.active, e.palette.action.hoverOpacity),
            "@media (hover: none)": { backgroundColor: "transparent" },
          },
        },
        t.edge === "start" && { marginLeft: t.size === "small" ? -3 : -12 },
        t.edge === "end" && { marginRight: t.size === "small" ? -3 : -12 }
      ),
    ({ theme: e, ownerState: t }) => {
      var n;
      const r = (n = (e.vars || e).palette) == null ? void 0 : n[t.color];
      return S(
        {},
        t.color === "inherit" && { color: "inherit" },
        t.color !== "inherit" &&
          t.color !== "default" &&
          S(
            { color: r == null ? void 0 : r.main },
            !t.disableRipple && {
              "&:hover": S(
                {},
                r && {
                  backgroundColor: e.vars
                    ? `rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`
                    : lt(r.main, e.palette.action.hoverOpacity),
                },
                { "@media (hover: none)": { backgroundColor: "transparent" } }
              ),
            }
          ),
        t.size === "small" && { padding: 5, fontSize: e.typography.pxToRem(18) },
        t.size === "large" && { padding: 12, fontSize: e.typography.pxToRem(28) },
        { [`&.${HR.disabled}`]: { backgroundColor: "transparent", color: (e.vars || e).palette.action.disabled } }
      );
    }
  ),
  _i = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiIconButton" }),
      {
        edge: o = !1,
        children: i,
        className: s,
        color: a = "default",
        disabled: l = !1,
        disableFocusRipple: u = !1,
        size: c = "medium",
      } = r,
      d = ee(r, zR),
      p = S({}, r, { edge: o, color: a, disabled: l, disableFocusRipple: u, size: c }),
      h = WR(p);
    return f.jsx(
      GR,
      S({ className: ue(h.root, s), centerRipple: !0, focusRipple: !u, disabled: l, ref: n }, d, {
        ownerState: p,
        children: i,
      })
    );
  });
function UR(e) {
  return Ae("MuiTypography", e);
}
Se("MuiTypography", [
  "root",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "subtitle1",
  "subtitle2",
  "body1",
  "body2",
  "inherit",
  "button",
  "caption",
  "overline",
  "alignLeft",
  "alignRight",
  "alignCenter",
  "alignJustify",
  "noWrap",
  "gutterBottom",
  "paragraph",
]);
const YR = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"],
  KR = (e) => {
    const { align: t, gutterBottom: n, noWrap: r, paragraph: o, variant: i, classes: s } = e,
      a = {
        root: [
          "root",
          i,
          e.align !== "inherit" && `align${Q(t)}`,
          n && "gutterBottom",
          r && "noWrap",
          o && "paragraph",
        ],
      };
    return Ee(a, UR, s);
  },
  XR = W("span", {
    name: "MuiTypography",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        n.variant && t[n.variant],
        n.align !== "inherit" && t[`align${Q(n.align)}`],
        n.noWrap && t.noWrap,
        n.gutterBottom && t.gutterBottom,
        n.paragraph && t.paragraph,
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { margin: 0 },
      t.variant === "inherit" && { font: "inherit" },
      t.variant !== "inherit" && e.typography[t.variant],
      t.align !== "inherit" && { textAlign: t.align },
      t.noWrap && { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
      t.gutterBottom && { marginBottom: "0.35em" },
      t.paragraph && { marginBottom: 16 }
    )
  ),
  c7 = {
    h1: "h1",
    h2: "h2",
    h3: "h3",
    h4: "h4",
    h5: "h5",
    h6: "h6",
    subtitle1: "h6",
    subtitle2: "h6",
    body1: "p",
    body2: "p",
    inherit: "p",
  },
  qR = {
    primary: "primary.main",
    textPrimary: "text.primary",
    secondary: "secondary.main",
    textSecondary: "text.secondary",
    error: "error.main",
  },
  ZR = (e) => qR[e] || e,
  xe = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiTypography" }),
      o = ZR(r.color),
      i = _p(S({}, r, { color: o })),
      {
        align: s = "inherit",
        className: a,
        component: l,
        gutterBottom: u = !1,
        noWrap: c = !1,
        paragraph: d = !1,
        variant: p = "body1",
        variantMapping: h = c7,
      } = i,
      m = ee(i, YR),
      v = S({}, i, {
        align: s,
        color: o,
        className: a,
        component: l,
        gutterBottom: u,
        noWrap: c,
        paragraph: d,
        variant: p,
        variantMapping: h,
      }),
      C = l || (d ? "p" : h[p] || c7[p]) || "span",
      y = KR(v);
    return f.jsx(XR, S({ as: C, ref: n, ownerState: v, className: ue(y.root, a) }, m));
  }),
  f9 = "base";
function JR(e) {
  return `${f9}--${e}`;
}
function QR(e, t) {
  return `${f9}-${e}-${t}`;
}
function p9(e, t) {
  const n = $v[t];
  return n ? JR(n) : QR(e, t);
}
function eI(e, t) {
  const n = {};
  return (
    t.forEach((r) => {
      n[r] = p9(e, r);
    }),
    n
  );
}
const tI = [
  "input",
  "select",
  "textarea",
  "a[href]",
  "button",
  "[tabindex]",
  "audio[controls]",
  "video[controls]",
  '[contenteditable]:not([contenteditable="false"])',
].join(",");
function nI(e) {
  const t = parseInt(e.getAttribute("tabindex") || "", 10);
  return Number.isNaN(t)
    ? e.contentEditable === "true" ||
      ((e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") &&
        e.getAttribute("tabindex") === null)
      ? 0
      : e.tabIndex
    : t;
}
function rI(e) {
  if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name) return !1;
  const t = (r) => e.ownerDocument.querySelector(`input[type="radio"]${r}`);
  let n = t(`[name="${e.name}"]:checked`);
  return n || (n = t(`[name="${e.name}"]`)), n !== e;
}
function oI(e) {
  return !(e.disabled || (e.tagName === "INPUT" && e.type === "hidden") || rI(e));
}
function iI(e) {
  const t = [],
    n = [];
  return (
    Array.from(e.querySelectorAll(tI)).forEach((r, o) => {
      const i = nI(r);
      i === -1 || !oI(r) || (i === 0 ? t.push(r) : n.push({ documentOrder: o, tabIndex: i, node: r }));
    }),
    n
      .sort((r, o) => (r.tabIndex === o.tabIndex ? r.documentOrder - o.documentOrder : r.tabIndex - o.tabIndex))
      .map((r) => r.node)
      .concat(t)
  );
}
function sI() {
  return !0;
}
function h9(e) {
  const {
      children: t,
      disableAutoFocus: n = !1,
      disableEnforceFocus: r = !1,
      disableRestoreFocus: o = !1,
      getTabbable: i = iI,
      isEnabled: s = sI,
      open: a,
    } = e,
    l = b.useRef(!1),
    u = b.useRef(null),
    c = b.useRef(null),
    d = b.useRef(null),
    p = b.useRef(null),
    h = b.useRef(!1),
    m = b.useRef(null),
    v = tt(t.ref, m),
    C = b.useRef(null);
  b.useEffect(() => {
    !a || !m.current || (h.current = !n);
  }, [n, a]),
    b.useEffect(() => {
      if (!a || !m.current) return;
      const x = Dt(m.current);
      return (
        m.current.contains(x.activeElement) ||
          (m.current.hasAttribute("tabIndex") || m.current.setAttribute("tabIndex", "-1"),
          h.current && m.current.focus()),
        () => {
          o || (d.current && d.current.focus && ((l.current = !0), d.current.focus()), (d.current = null));
        }
      );
    }, [a]),
    b.useEffect(() => {
      if (!a || !m.current) return;
      const x = Dt(m.current),
        w = (T) => {
          (C.current = T),
            !(r || !s() || T.key !== "Tab") &&
              x.activeElement === m.current &&
              T.shiftKey &&
              ((l.current = !0), c.current && c.current.focus());
        },
        k = () => {
          const T = m.current;
          if (T === null) return;
          if (!x.hasFocus() || !s() || l.current) {
            l.current = !1;
            return;
          }
          if (T.contains(x.activeElement) || (r && x.activeElement !== u.current && x.activeElement !== c.current))
            return;
          if (x.activeElement !== p.current) p.current = null;
          else if (p.current !== null) return;
          if (!h.current) return;
          let P = [];
          if (((x.activeElement === u.current || x.activeElement === c.current) && (P = i(m.current)), P.length > 0)) {
            var A, D;
            const R = !!((A = C.current) != null && A.shiftKey && ((D = C.current) == null ? void 0 : D.key) === "Tab"),
              L = P[0],
              F = P[P.length - 1];
            typeof L != "string" && typeof F != "string" && (R ? F.focus() : L.focus());
          } else T.focus();
        };
      x.addEventListener("focusin", k), x.addEventListener("keydown", w, !0);
      const M = setInterval(() => {
        x.activeElement && x.activeElement.tagName === "BODY" && k();
      }, 50);
      return () => {
        clearInterval(M), x.removeEventListener("focusin", k), x.removeEventListener("keydown", w, !0);
      };
    }, [n, r, o, s, a, i]);
  const y = (x) => {
      d.current === null && (d.current = x.relatedTarget), (h.current = !0), (p.current = x.target);
      const w = t.props.onFocus;
      w && w(x);
    },
    g = (x) => {
      d.current === null && (d.current = x.relatedTarget), (h.current = !0);
    };
  return f.jsxs(b.Fragment, {
    children: [
      f.jsx("div", { tabIndex: a ? 0 : -1, onFocus: g, ref: u, "data-testid": "sentinelStart" }),
      b.cloneElement(t, { ref: v, onFocus: y }),
      f.jsx("div", { tabIndex: a ? 0 : -1, onFocus: g, ref: c, "data-testid": "sentinelEnd" }),
    ],
  });
}
function aI(e) {
  return typeof e == "function" ? e() : e;
}
const m9 = b.forwardRef(function (t, n) {
  const { children: r, container: o, disablePortal: i = !1 } = t,
    [s, a] = b.useState(null),
    l = tt(b.isValidElement(r) ? r.ref : null, n);
  if (
    (Kt(() => {
      i || a(aI(o) || document.body);
    }, [o, i]),
    Kt(() => {
      if (s && !i)
        return (
          cf(n, s),
          () => {
            cf(n, null);
          }
        );
    }, [n, s, i]),
    i)
  ) {
    if (b.isValidElement(r)) {
      const u = { ref: l };
      return b.cloneElement(r, u);
    }
    return f.jsx(b.Fragment, { children: r });
  }
  return f.jsx(b.Fragment, { children: s && ws.createPortal(r, s) });
});
function lI(e) {
  const t = Dt(e);
  return t.body === e ? ao(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
}
function su(e, t) {
  t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
}
function d7(e) {
  return parseInt(ao(e).getComputedStyle(e).paddingRight, 10) || 0;
}
function uI(e) {
  const n =
      [
        "TEMPLATE",
        "SCRIPT",
        "STYLE",
        "LINK",
        "MAP",
        "META",
        "NOSCRIPT",
        "PICTURE",
        "COL",
        "COLGROUP",
        "PARAM",
        "SLOT",
        "SOURCE",
        "TRACK",
      ].indexOf(e.tagName) !== -1,
    r = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
  return n || r;
}
function f7(e, t, n, r, o) {
  const i = [t, n, ...r];
  [].forEach.call(e.children, (s) => {
    const a = i.indexOf(s) === -1,
      l = !uI(s);
    a && l && su(s, o);
  });
}
function q1(e, t) {
  let n = -1;
  return e.some((r, o) => (t(r) ? ((n = o), !0) : !1)), n;
}
function cI(e, t) {
  const n = [],
    r = e.container;
  if (!t.disableScrollLock) {
    if (lI(r)) {
      const s = Xv(Dt(r));
      n.push({ value: r.style.paddingRight, property: "padding-right", el: r }),
        (r.style.paddingRight = `${d7(r) + s}px`);
      const a = Dt(r).querySelectorAll(".mui-fixed");
      [].forEach.call(a, (l) => {
        n.push({ value: l.style.paddingRight, property: "padding-right", el: l }),
          (l.style.paddingRight = `${d7(l) + s}px`);
      });
    }
    let i;
    if (r.parentNode instanceof DocumentFragment) i = Dt(r).body;
    else {
      const s = r.parentElement,
        a = ao(r);
      i = (s == null ? void 0 : s.nodeName) === "HTML" && a.getComputedStyle(s).overflowY === "scroll" ? s : r;
    }
    n.push(
      { value: i.style.overflow, property: "overflow", el: i },
      { value: i.style.overflowX, property: "overflow-x", el: i },
      { value: i.style.overflowY, property: "overflow-y", el: i }
    ),
      (i.style.overflow = "hidden");
  }
  return () => {
    n.forEach(({ value: i, el: s, property: a }) => {
      i ? s.style.setProperty(a, i) : s.style.removeProperty(a);
    });
  };
}
function dI(e) {
  const t = [];
  return (
    [].forEach.call(e.children, (n) => {
      n.getAttribute("aria-hidden") === "true" && t.push(n);
    }),
    t
  );
}
class fI {
  constructor() {
    (this.containers = void 0), (this.modals = void 0), (this.modals = []), (this.containers = []);
  }
  add(t, n) {
    let r = this.modals.indexOf(t);
    if (r !== -1) return r;
    (r = this.modals.length), this.modals.push(t), t.modalRef && su(t.modalRef, !1);
    const o = dI(n);
    f7(n, t.mount, t.modalRef, o, !0);
    const i = q1(this.containers, (s) => s.container === n);
    return i !== -1
      ? (this.containers[i].modals.push(t), r)
      : (this.containers.push({ modals: [t], container: n, restore: null, hiddenSiblings: o }), r);
  }
  mount(t, n) {
    const r = q1(this.containers, (i) => i.modals.indexOf(t) !== -1),
      o = this.containers[r];
    o.restore || (o.restore = cI(o, n));
  }
  remove(t, n = !0) {
    const r = this.modals.indexOf(t);
    if (r === -1) return r;
    const o = q1(this.containers, (s) => s.modals.indexOf(t) !== -1),
      i = this.containers[o];
    if ((i.modals.splice(i.modals.indexOf(t), 1), this.modals.splice(r, 1), i.modals.length === 0))
      i.restore && i.restore(),
        t.modalRef && su(t.modalRef, n),
        f7(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1),
        this.containers.splice(o, 1);
    else {
      const s = i.modals[i.modals.length - 1];
      s.modalRef && su(s.modalRef, !1);
    }
    return r;
  }
  isTopModal(t) {
    return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
  }
}
function pI(e) {
  return typeof e == "function" ? e() : e;
}
function hI(e) {
  return e ? e.props.hasOwnProperty("in") : !1;
}
const mI = new fI();
function gI(e) {
  const {
      container: t,
      disableEscapeKeyDown: n = !1,
      disableScrollLock: r = !1,
      manager: o = mI,
      closeAfterTransition: i = !1,
      onTransitionEnter: s,
      onTransitionExited: a,
      children: l,
      onClose: u,
      open: c,
      rootRef: d,
    } = e,
    p = b.useRef({}),
    h = b.useRef(null),
    m = b.useRef(null),
    v = tt(m, d),
    [C, y] = b.useState(!c),
    g = hI(l);
  let x = !0;
  (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (x = !1);
  const w = () => Dt(h.current),
    k = () => ((p.current.modalRef = m.current), (p.current.mount = h.current), p.current),
    M = () => {
      o.mount(k(), { disableScrollLock: r }), m.current && (m.current.scrollTop = 0);
    },
    T = Me(() => {
      const B = pI(t) || w().body;
      o.add(k(), B), m.current && M();
    }),
    P = b.useCallback(() => o.isTopModal(k()), [o]),
    A = Me((B) => {
      (h.current = B), B && (c && P() ? M() : m.current && su(m.current, x));
    }),
    D = b.useCallback(() => {
      o.remove(k(), x);
    }, [x, o]);
  b.useEffect(
    () => () => {
      D();
    },
    [D]
  ),
    b.useEffect(() => {
      c ? T() : (!g || !i) && D();
    }, [c, D, g, i, T]);
  const R = (B) => (j) => {
      var _;
      (_ = B.onKeyDown) == null || _.call(B, j),
        !(j.key !== "Escape" || j.which === 229 || !P()) && (n || (j.stopPropagation(), u && u(j, "escapeKeyDown")));
    },
    L = (B) => (j) => {
      var _;
      (_ = B.onClick) == null || _.call(B, j), j.target === j.currentTarget && u && u(j, "backdropClick");
    };
  return {
    getRootProps: (B = {}) => {
      const j = iu(e);
      delete j.onTransitionEnter, delete j.onTransitionExited;
      const _ = S({}, j, B);
      return S({ role: "presentation" }, _, { onKeyDown: R(_), ref: v });
    },
    getBackdropProps: (B = {}) => {
      const j = B;
      return S({ "aria-hidden": !0 }, j, { onClick: L(j), open: c });
    },
    getTransitionProps: () => {
      const B = () => {
          y(!1), s && s();
        },
        j = () => {
          y(!0), a && a(), i && D();
        };
      return {
        onEnter: uf(B, l == null ? void 0 : l.props.onEnter),
        onExited: uf(j, l == null ? void 0 : l.props.onExited),
      };
    },
    rootRef: v,
    portalRef: A,
    isTopModal: P,
    exited: C,
    hasTransition: g,
  };
}
var On = "top",
  gr = "bottom",
  yr = "right",
  Fn = "left",
  Gg = "auto",
  mc = [On, gr, yr, Fn],
  za = "start",
  Vu = "end",
  yI = "clippingParents",
  g9 = "viewport",
  Tl = "popper",
  vI = "reference",
  p7 = mc.reduce(function (e, t) {
    return e.concat([t + "-" + za, t + "-" + Vu]);
  }, []),
  y9 = [].concat(mc, [Gg]).reduce(function (e, t) {
    return e.concat([t, t + "-" + za, t + "-" + Vu]);
  }, []),
  xI = "beforeRead",
  bI = "read",
  CI = "afterRead",
  wI = "beforeMain",
  SI = "main",
  kI = "afterMain",
  TI = "beforeWrite",
  MI = "write",
  EI = "afterWrite",
  PI = [xI, bI, CI, wI, SI, kI, TI, MI, EI];
function lo(e) {
  return e ? (e.nodeName || "").toLowerCase() : null;
}
function Yn(e) {
  if (e == null) return window;
  if (e.toString() !== "[object Window]") {
    var t = e.ownerDocument;
    return (t && t.defaultView) || window;
  }
  return e;
}
function vs(e) {
  var t = Yn(e).Element;
  return e instanceof t || e instanceof Element;
}
function fr(e) {
  var t = Yn(e).HTMLElement;
  return e instanceof t || e instanceof HTMLElement;
}
function Ug(e) {
  if (typeof ShadowRoot > "u") return !1;
  var t = Yn(e).ShadowRoot;
  return e instanceof t || e instanceof ShadowRoot;
}
function AI(e) {
  var t = e.state;
  Object.keys(t.elements).forEach(function (n) {
    var r = t.styles[n] || {},
      o = t.attributes[n] || {},
      i = t.elements[n];
    !fr(i) ||
      !lo(i) ||
      (Object.assign(i.style, r),
      Object.keys(o).forEach(function (s) {
        var a = o[s];
        a === !1 ? i.removeAttribute(s) : i.setAttribute(s, a === !0 ? "" : a);
      }));
  });
}
function _I(e) {
  var t = e.state,
    n = {
      popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" },
      arrow: { position: "absolute" },
      reference: {},
    };
  return (
    Object.assign(t.elements.popper.style, n.popper),
    (t.styles = n),
    t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow),
    function () {
      Object.keys(t.elements).forEach(function (r) {
        var o = t.elements[r],
          i = t.attributes[r] || {},
          s = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]),
          a = s.reduce(function (l, u) {
            return (l[u] = ""), l;
          }, {});
        !fr(o) ||
          !lo(o) ||
          (Object.assign(o.style, a),
          Object.keys(i).forEach(function (l) {
            o.removeAttribute(l);
          }));
      });
    }
  );
}
const DI = { name: "applyStyles", enabled: !0, phase: "write", fn: AI, effect: _I, requires: ["computeStyles"] };
function so(e) {
  return e.split("-")[0];
}
var ns = Math.max,
  Bf = Math.min,
  Wa = Math.round;
function Wm() {
  var e = navigator.userAgentData;
  return e != null && e.brands && Array.isArray(e.brands)
    ? e.brands
        .map(function (t) {
          return t.brand + "/" + t.version;
        })
        .join(" ")
    : navigator.userAgent;
}
function v9() {
  return !/^((?!chrome|android).)*safari/i.test(Wm());
}
function Ga(e, t, n) {
  t === void 0 && (t = !1), n === void 0 && (n = !1);
  var r = e.getBoundingClientRect(),
    o = 1,
    i = 1;
  t &&
    fr(e) &&
    ((o = (e.offsetWidth > 0 && Wa(r.width) / e.offsetWidth) || 1),
    (i = (e.offsetHeight > 0 && Wa(r.height) / e.offsetHeight) || 1));
  var s = vs(e) ? Yn(e) : window,
    a = s.visualViewport,
    l = !v9() && n,
    u = (r.left + (l && a ? a.offsetLeft : 0)) / o,
    c = (r.top + (l && a ? a.offsetTop : 0)) / i,
    d = r.width / o,
    p = r.height / i;
  return { width: d, height: p, top: c, right: u + d, bottom: c + p, left: u, x: u, y: c };
}
function Yg(e) {
  var t = Ga(e),
    n = e.offsetWidth,
    r = e.offsetHeight;
  return (
    Math.abs(t.width - n) <= 1 && (n = t.width),
    Math.abs(t.height - r) <= 1 && (r = t.height),
    { x: e.offsetLeft, y: e.offsetTop, width: n, height: r }
  );
}
function x9(e, t) {
  var n = t.getRootNode && t.getRootNode();
  if (e.contains(t)) return !0;
  if (n && Ug(n)) {
    var r = t;
    do {
      if (r && e.isSameNode(r)) return !0;
      r = r.parentNode || r.host;
    } while (r);
  }
  return !1;
}
function jo(e) {
  return Yn(e).getComputedStyle(e);
}
function RI(e) {
  return ["table", "td", "th"].indexOf(lo(e)) >= 0;
}
function Di(e) {
  return ((vs(e) ? e.ownerDocument : e.document) || window.document).documentElement;
}
function v0(e) {
  return lo(e) === "html" ? e : e.assignedSlot || e.parentNode || (Ug(e) ? e.host : null) || Di(e);
}
function h7(e) {
  return !fr(e) || jo(e).position === "fixed" ? null : e.offsetParent;
}
function II(e) {
  var t = /firefox/i.test(Wm()),
    n = /Trident/i.test(Wm());
  if (n && fr(e)) {
    var r = jo(e);
    if (r.position === "fixed") return null;
  }
  var o = v0(e);
  for (Ug(o) && (o = o.host); fr(o) && ["html", "body"].indexOf(lo(o)) < 0; ) {
    var i = jo(o);
    if (
      i.transform !== "none" ||
      i.perspective !== "none" ||
      i.contain === "paint" ||
      ["transform", "perspective"].indexOf(i.willChange) !== -1 ||
      (t && i.willChange === "filter") ||
      (t && i.filter && i.filter !== "none")
    )
      return o;
    o = o.parentNode;
  }
  return null;
}
function gc(e) {
  for (var t = Yn(e), n = h7(e); n && RI(n) && jo(n).position === "static"; ) n = h7(n);
  return n && (lo(n) === "html" || (lo(n) === "body" && jo(n).position === "static")) ? t : n || II(e) || t;
}
function Kg(e) {
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
function au(e, t, n) {
  return ns(e, Bf(t, n));
}
function OI(e, t, n) {
  var r = au(e, t, n);
  return r > n ? n : r;
}
function b9() {
  return { top: 0, right: 0, bottom: 0, left: 0 };
}
function C9(e) {
  return Object.assign({}, b9(), e);
}
function w9(e, t) {
  return t.reduce(function (n, r) {
    return (n[r] = e), n;
  }, {});
}
var FI = function (t, n) {
  return (
    (t = typeof t == "function" ? t(Object.assign({}, n.rects, { placement: n.placement })) : t),
    C9(typeof t != "number" ? t : w9(t, mc))
  );
};
function LI(e) {
  var t,
    n = e.state,
    r = e.name,
    o = e.options,
    i = n.elements.arrow,
    s = n.modifiersData.popperOffsets,
    a = so(n.placement),
    l = Kg(a),
    u = [Fn, yr].indexOf(a) >= 0,
    c = u ? "height" : "width";
  if (!(!i || !s)) {
    var d = FI(o.padding, n),
      p = Yg(i),
      h = l === "y" ? On : Fn,
      m = l === "y" ? gr : yr,
      v = n.rects.reference[c] + n.rects.reference[l] - s[l] - n.rects.popper[c],
      C = s[l] - n.rects.reference[l],
      y = gc(i),
      g = y ? (l === "y" ? y.clientHeight || 0 : y.clientWidth || 0) : 0,
      x = v / 2 - C / 2,
      w = d[h],
      k = g - p[c] - d[m],
      M = g / 2 - p[c] / 2 + x,
      T = au(w, M, k),
      P = l;
    n.modifiersData[r] = ((t = {}), (t[P] = T), (t.centerOffset = T - M), t);
  }
}
function NI(e) {
  var t = e.state,
    n = e.options,
    r = n.element,
    o = r === void 0 ? "[data-popper-arrow]" : r;
  o != null &&
    ((typeof o == "string" && ((o = t.elements.popper.querySelector(o)), !o)) ||
      (x9(t.elements.popper, o) && (t.elements.arrow = o)));
}
const $I = {
  name: "arrow",
  enabled: !0,
  phase: "main",
  fn: LI,
  effect: NI,
  requires: ["popperOffsets"],
  requiresIfExists: ["preventOverflow"],
};
function Ua(e) {
  return e.split("-")[1];
}
var BI = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function jI(e, t) {
  var n = e.x,
    r = e.y,
    o = t.devicePixelRatio || 1;
  return { x: Wa(n * o) / o || 0, y: Wa(r * o) / o || 0 };
}
function m7(e) {
  var t,
    n = e.popper,
    r = e.popperRect,
    o = e.placement,
    i = e.variation,
    s = e.offsets,
    a = e.position,
    l = e.gpuAcceleration,
    u = e.adaptive,
    c = e.roundOffsets,
    d = e.isFixed,
    p = s.x,
    h = p === void 0 ? 0 : p,
    m = s.y,
    v = m === void 0 ? 0 : m,
    C = typeof c == "function" ? c({ x: h, y: v }) : { x: h, y: v };
  (h = C.x), (v = C.y);
  var y = s.hasOwnProperty("x"),
    g = s.hasOwnProperty("y"),
    x = Fn,
    w = On,
    k = window;
  if (u) {
    var M = gc(n),
      T = "clientHeight",
      P = "clientWidth";
    if (
      (M === Yn(n) &&
        ((M = Di(n)), jo(M).position !== "static" && a === "absolute" && ((T = "scrollHeight"), (P = "scrollWidth"))),
      (M = M),
      o === On || ((o === Fn || o === yr) && i === Vu))
    ) {
      w = gr;
      var A = d && M === k && k.visualViewport ? k.visualViewport.height : M[T];
      (v -= A - r.height), (v *= l ? 1 : -1);
    }
    if (o === Fn || ((o === On || o === gr) && i === Vu)) {
      x = yr;
      var D = d && M === k && k.visualViewport ? k.visualViewport.width : M[P];
      (h -= D - r.width), (h *= l ? 1 : -1);
    }
  }
  var R = Object.assign({ position: a }, u && BI),
    L = c === !0 ? jI({ x: h, y: v }, Yn(n)) : { x: h, y: v };
  if (((h = L.x), (v = L.y), l)) {
    var F;
    return Object.assign(
      {},
      R,
      ((F = {}),
      (F[w] = g ? "0" : ""),
      (F[x] = y ? "0" : ""),
      (F.transform =
        (k.devicePixelRatio || 1) <= 1
          ? "translate(" + h + "px, " + v + "px)"
          : "translate3d(" + h + "px, " + v + "px, 0)"),
      F)
    );
  }
  return Object.assign(
    {},
    R,
    ((t = {}), (t[w] = g ? v + "px" : ""), (t[x] = y ? h + "px" : ""), (t.transform = ""), t)
  );
}
function VI(e) {
  var t = e.state,
    n = e.options,
    r = n.gpuAcceleration,
    o = r === void 0 ? !0 : r,
    i = n.adaptive,
    s = i === void 0 ? !0 : i,
    a = n.roundOffsets,
    l = a === void 0 ? !0 : a,
    u = {
      placement: so(t.placement),
      variation: Ua(t.placement),
      popper: t.elements.popper,
      popperRect: t.rects.popper,
      gpuAcceleration: o,
      isFixed: t.options.strategy === "fixed",
    };
  t.modifiersData.popperOffsets != null &&
    (t.styles.popper = Object.assign(
      {},
      t.styles.popper,
      m7(
        Object.assign({}, u, {
          offsets: t.modifiersData.popperOffsets,
          position: t.options.strategy,
          adaptive: s,
          roundOffsets: l,
        })
      )
    )),
    t.modifiersData.arrow != null &&
      (t.styles.arrow = Object.assign(
        {},
        t.styles.arrow,
        m7(
          Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: l })
        )
      )),
    (t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement }));
}
const HI = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: VI, data: {} };
var nd = { passive: !0 };
function zI(e) {
  var t = e.state,
    n = e.instance,
    r = e.options,
    o = r.scroll,
    i = o === void 0 ? !0 : o,
    s = r.resize,
    a = s === void 0 ? !0 : s,
    l = Yn(t.elements.popper),
    u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
  return (
    i &&
      u.forEach(function (c) {
        c.addEventListener("scroll", n.update, nd);
      }),
    a && l.addEventListener("resize", n.update, nd),
    function () {
      i &&
        u.forEach(function (c) {
          c.removeEventListener("scroll", n.update, nd);
        }),
        a && l.removeEventListener("resize", n.update, nd);
    }
  );
}
const WI = { name: "eventListeners", enabled: !0, phase: "write", fn: function () {}, effect: zI, data: {} };
var GI = { left: "right", right: "left", bottom: "top", top: "bottom" };
function Ud(e) {
  return e.replace(/left|right|bottom|top/g, function (t) {
    return GI[t];
  });
}
var UI = { start: "end", end: "start" };
function g7(e) {
  return e.replace(/start|end/g, function (t) {
    return UI[t];
  });
}
function Xg(e) {
  var t = Yn(e),
    n = t.pageXOffset,
    r = t.pageYOffset;
  return { scrollLeft: n, scrollTop: r };
}
function qg(e) {
  return Ga(Di(e)).left + Xg(e).scrollLeft;
}
function YI(e, t) {
  var n = Yn(e),
    r = Di(e),
    o = n.visualViewport,
    i = r.clientWidth,
    s = r.clientHeight,
    a = 0,
    l = 0;
  if (o) {
    (i = o.width), (s = o.height);
    var u = v9();
    (u || (!u && t === "fixed")) && ((a = o.offsetLeft), (l = o.offsetTop));
  }
  return { width: i, height: s, x: a + qg(e), y: l };
}
function KI(e) {
  var t,
    n = Di(e),
    r = Xg(e),
    o = (t = e.ownerDocument) == null ? void 0 : t.body,
    i = ns(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0),
    s = ns(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0),
    a = -r.scrollLeft + qg(e),
    l = -r.scrollTop;
  return (
    jo(o || n).direction === "rtl" && (a += ns(n.clientWidth, o ? o.clientWidth : 0) - i),
    { width: i, height: s, x: a, y: l }
  );
}
function Zg(e) {
  var t = jo(e),
    n = t.overflow,
    r = t.overflowX,
    o = t.overflowY;
  return /auto|scroll|overlay|hidden/.test(n + o + r);
}
function S9(e) {
  return ["html", "body", "#document"].indexOf(lo(e)) >= 0 ? e.ownerDocument.body : fr(e) && Zg(e) ? e : S9(v0(e));
}
function lu(e, t) {
  var n;
  t === void 0 && (t = []);
  var r = S9(e),
    o = r === ((n = e.ownerDocument) == null ? void 0 : n.body),
    i = Yn(r),
    s = o ? [i].concat(i.visualViewport || [], Zg(r) ? r : []) : r,
    a = t.concat(s);
  return o ? a : a.concat(lu(v0(s)));
}
function Gm(e) {
  return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
}
function XI(e, t) {
  var n = Ga(e, !1, t === "fixed");
  return (
    (n.top = n.top + e.clientTop),
    (n.left = n.left + e.clientLeft),
    (n.bottom = n.top + e.clientHeight),
    (n.right = n.left + e.clientWidth),
    (n.width = e.clientWidth),
    (n.height = e.clientHeight),
    (n.x = n.left),
    (n.y = n.top),
    n
  );
}
function y7(e, t, n) {
  return t === g9 ? Gm(YI(e, n)) : vs(t) ? XI(t, n) : Gm(KI(Di(e)));
}
function qI(e) {
  var t = lu(v0(e)),
    n = ["absolute", "fixed"].indexOf(jo(e).position) >= 0,
    r = n && fr(e) ? gc(e) : e;
  return vs(r)
    ? t.filter(function (o) {
        return vs(o) && x9(o, r) && lo(o) !== "body";
      })
    : [];
}
function ZI(e, t, n, r) {
  var o = t === "clippingParents" ? qI(e) : [].concat(t),
    i = [].concat(o, [n]),
    s = i[0],
    a = i.reduce(
      function (l, u) {
        var c = y7(e, u, r);
        return (
          (l.top = ns(c.top, l.top)),
          (l.right = Bf(c.right, l.right)),
          (l.bottom = Bf(c.bottom, l.bottom)),
          (l.left = ns(c.left, l.left)),
          l
        );
      },
      y7(e, s, r)
    );
  return (a.width = a.right - a.left), (a.height = a.bottom - a.top), (a.x = a.left), (a.y = a.top), a;
}
function k9(e) {
  var t = e.reference,
    n = e.element,
    r = e.placement,
    o = r ? so(r) : null,
    i = r ? Ua(r) : null,
    s = t.x + t.width / 2 - n.width / 2,
    a = t.y + t.height / 2 - n.height / 2,
    l;
  switch (o) {
    case On:
      l = { x: s, y: t.y - n.height };
      break;
    case gr:
      l = { x: s, y: t.y + t.height };
      break;
    case yr:
      l = { x: t.x + t.width, y: a };
      break;
    case Fn:
      l = { x: t.x - n.width, y: a };
      break;
    default:
      l = { x: t.x, y: t.y };
  }
  var u = o ? Kg(o) : null;
  if (u != null) {
    var c = u === "y" ? "height" : "width";
    switch (i) {
      case za:
        l[u] = l[u] - (t[c] / 2 - n[c] / 2);
        break;
      case Vu:
        l[u] = l[u] + (t[c] / 2 - n[c] / 2);
        break;
    }
  }
  return l;
}
function Hu(e, t) {
  t === void 0 && (t = {});
  var n = t,
    r = n.placement,
    o = r === void 0 ? e.placement : r,
    i = n.strategy,
    s = i === void 0 ? e.strategy : i,
    a = n.boundary,
    l = a === void 0 ? yI : a,
    u = n.rootBoundary,
    c = u === void 0 ? g9 : u,
    d = n.elementContext,
    p = d === void 0 ? Tl : d,
    h = n.altBoundary,
    m = h === void 0 ? !1 : h,
    v = n.padding,
    C = v === void 0 ? 0 : v,
    y = C9(typeof C != "number" ? C : w9(C, mc)),
    g = p === Tl ? vI : Tl,
    x = e.rects.popper,
    w = e.elements[m ? g : p],
    k = ZI(vs(w) ? w : w.contextElement || Di(e.elements.popper), l, c, s),
    M = Ga(e.elements.reference),
    T = k9({ reference: M, element: x, strategy: "absolute", placement: o }),
    P = Gm(Object.assign({}, x, T)),
    A = p === Tl ? P : M,
    D = {
      top: k.top - A.top + y.top,
      bottom: A.bottom - k.bottom + y.bottom,
      left: k.left - A.left + y.left,
      right: A.right - k.right + y.right,
    },
    R = e.modifiersData.offset;
  if (p === Tl && R) {
    var L = R[o];
    Object.keys(D).forEach(function (F) {
      var O = [yr, gr].indexOf(F) >= 0 ? 1 : -1,
        E = [On, gr].indexOf(F) >= 0 ? "y" : "x";
      D[F] += L[E] * O;
    });
  }
  return D;
}
function JI(e, t) {
  t === void 0 && (t = {});
  var n = t,
    r = n.placement,
    o = n.boundary,
    i = n.rootBoundary,
    s = n.padding,
    a = n.flipVariations,
    l = n.allowedAutoPlacements,
    u = l === void 0 ? y9 : l,
    c = Ua(r),
    d = c
      ? a
        ? p7
        : p7.filter(function (m) {
            return Ua(m) === c;
          })
      : mc,
    p = d.filter(function (m) {
      return u.indexOf(m) >= 0;
    });
  p.length === 0 && (p = d);
  var h = p.reduce(function (m, v) {
    return (m[v] = Hu(e, { placement: v, boundary: o, rootBoundary: i, padding: s })[so(v)]), m;
  }, {});
  return Object.keys(h).sort(function (m, v) {
    return h[m] - h[v];
  });
}
function QI(e) {
  if (so(e) === Gg) return [];
  var t = Ud(e);
  return [g7(e), t, g7(t)];
}
function eO(e) {
  var t = e.state,
    n = e.options,
    r = e.name;
  if (!t.modifiersData[r]._skip) {
    for (
      var o = n.mainAxis,
        i = o === void 0 ? !0 : o,
        s = n.altAxis,
        a = s === void 0 ? !0 : s,
        l = n.fallbackPlacements,
        u = n.padding,
        c = n.boundary,
        d = n.rootBoundary,
        p = n.altBoundary,
        h = n.flipVariations,
        m = h === void 0 ? !0 : h,
        v = n.allowedAutoPlacements,
        C = t.options.placement,
        y = so(C),
        g = y === C,
        x = l || (g || !m ? [Ud(C)] : QI(C)),
        w = [C].concat(x).reduce(function (z, ae) {
          return z.concat(
            so(ae) === Gg
              ? JI(t, {
                  placement: ae,
                  boundary: c,
                  rootBoundary: d,
                  padding: u,
                  flipVariations: m,
                  allowedAutoPlacements: v,
                })
              : ae
          );
        }, []),
        k = t.rects.reference,
        M = t.rects.popper,
        T = new Map(),
        P = !0,
        A = w[0],
        D = 0;
      D < w.length;
      D++
    ) {
      var R = w[D],
        L = so(R),
        F = Ua(R) === za,
        O = [On, gr].indexOf(L) >= 0,
        E = O ? "width" : "height",
        B = Hu(t, { placement: R, boundary: c, rootBoundary: d, altBoundary: p, padding: u }),
        j = O ? (F ? yr : Fn) : F ? gr : On;
      k[E] > M[E] && (j = Ud(j));
      var _ = Ud(j),
        I = [];
      if (
        (i && I.push(B[L] <= 0),
        a && I.push(B[j] <= 0, B[_] <= 0),
        I.every(function (z) {
          return z;
        }))
      ) {
        (A = R), (P = !1);
        break;
      }
      T.set(R, I);
    }
    if (P)
      for (
        var $ = m ? 3 : 1,
          J = function (ae) {
            var me = w.find(function (X) {
              var ge = T.get(X);
              if (ge)
                return ge.slice(0, ae).every(function (Pe) {
                  return Pe;
                });
            });
            if (me) return (A = me), "break";
          },
          oe = $;
        oe > 0;
        oe--
      ) {
        var pe = J(oe);
        if (pe === "break") break;
      }
    t.placement !== A && ((t.modifiersData[r]._skip = !0), (t.placement = A), (t.reset = !0));
  }
}
const tO = { name: "flip", enabled: !0, phase: "main", fn: eO, requiresIfExists: ["offset"], data: { _skip: !1 } };
function v7(e, t, n) {
  return (
    n === void 0 && (n = { x: 0, y: 0 }),
    {
      top: e.top - t.height - n.y,
      right: e.right - t.width + n.x,
      bottom: e.bottom - t.height + n.y,
      left: e.left - t.width - n.x,
    }
  );
}
function x7(e) {
  return [On, yr, gr, Fn].some(function (t) {
    return e[t] >= 0;
  });
}
function nO(e) {
  var t = e.state,
    n = e.name,
    r = t.rects.reference,
    o = t.rects.popper,
    i = t.modifiersData.preventOverflow,
    s = Hu(t, { elementContext: "reference" }),
    a = Hu(t, { altBoundary: !0 }),
    l = v7(s, r),
    u = v7(a, o, i),
    c = x7(l),
    d = x7(u);
  (t.modifiersData[n] = {
    referenceClippingOffsets: l,
    popperEscapeOffsets: u,
    isReferenceHidden: c,
    hasPopperEscaped: d,
  }),
    (t.attributes.popper = Object.assign({}, t.attributes.popper, {
      "data-popper-reference-hidden": c,
      "data-popper-escaped": d,
    }));
}
const rO = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: nO };
function oO(e, t, n) {
  var r = so(e),
    o = [Fn, On].indexOf(r) >= 0 ? -1 : 1,
    i = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n,
    s = i[0],
    a = i[1];
  return (s = s || 0), (a = (a || 0) * o), [Fn, yr].indexOf(r) >= 0 ? { x: a, y: s } : { x: s, y: a };
}
function iO(e) {
  var t = e.state,
    n = e.options,
    r = e.name,
    o = n.offset,
    i = o === void 0 ? [0, 0] : o,
    s = y9.reduce(function (c, d) {
      return (c[d] = oO(d, t.rects, i)), c;
    }, {}),
    a = s[t.placement],
    l = a.x,
    u = a.y;
  t.modifiersData.popperOffsets != null &&
    ((t.modifiersData.popperOffsets.x += l), (t.modifiersData.popperOffsets.y += u)),
    (t.modifiersData[r] = s);
}
const sO = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: iO };
function aO(e) {
  var t = e.state,
    n = e.name;
  t.modifiersData[n] = k9({
    reference: t.rects.reference,
    element: t.rects.popper,
    strategy: "absolute",
    placement: t.placement,
  });
}
const lO = { name: "popperOffsets", enabled: !0, phase: "read", fn: aO, data: {} };
function uO(e) {
  return e === "x" ? "y" : "x";
}
function cO(e) {
  var t = e.state,
    n = e.options,
    r = e.name,
    o = n.mainAxis,
    i = o === void 0 ? !0 : o,
    s = n.altAxis,
    a = s === void 0 ? !1 : s,
    l = n.boundary,
    u = n.rootBoundary,
    c = n.altBoundary,
    d = n.padding,
    p = n.tether,
    h = p === void 0 ? !0 : p,
    m = n.tetherOffset,
    v = m === void 0 ? 0 : m,
    C = Hu(t, { boundary: l, rootBoundary: u, padding: d, altBoundary: c }),
    y = so(t.placement),
    g = Ua(t.placement),
    x = !g,
    w = Kg(y),
    k = uO(w),
    M = t.modifiersData.popperOffsets,
    T = t.rects.reference,
    P = t.rects.popper,
    A = typeof v == "function" ? v(Object.assign({}, t.rects, { placement: t.placement })) : v,
    D = typeof A == "number" ? { mainAxis: A, altAxis: A } : Object.assign({ mainAxis: 0, altAxis: 0 }, A),
    R = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
    L = { x: 0, y: 0 };
  if (M) {
    if (i) {
      var F,
        O = w === "y" ? On : Fn,
        E = w === "y" ? gr : yr,
        B = w === "y" ? "height" : "width",
        j = M[w],
        _ = j + C[O],
        I = j - C[E],
        $ = h ? -P[B] / 2 : 0,
        J = g === za ? T[B] : P[B],
        oe = g === za ? -P[B] : -T[B],
        pe = t.elements.arrow,
        z = h && pe ? Yg(pe) : { width: 0, height: 0 },
        ae = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : b9(),
        me = ae[O],
        X = ae[E],
        ge = au(0, T[B], z[B]),
        Pe = x ? T[B] / 2 - $ - ge - me - D.mainAxis : J - ge - me - D.mainAxis,
        _e = x ? -T[B] / 2 + $ + ge + X + D.mainAxis : oe + ge + X + D.mainAxis,
        ie = t.elements.arrow && gc(t.elements.arrow),
        ne = ie ? (w === "y" ? ie.clientTop || 0 : ie.clientLeft || 0) : 0,
        V = (F = R == null ? void 0 : R[w]) != null ? F : 0,
        K = j + Pe - V - ne,
        Z = j + _e - V,
        ye = au(h ? Bf(_, K) : _, j, h ? ns(I, Z) : I);
      (M[w] = ye), (L[w] = ye - j);
    }
    if (a) {
      var Fe,
        le = w === "x" ? On : Fn,
        he = w === "x" ? gr : yr,
        G = M[k],
        te = k === "y" ? "height" : "width",
        we = G + C[le],
        Le = G - C[he],
        Te = [On, Fn].indexOf(y) !== -1,
        je = (Fe = R == null ? void 0 : R[k]) != null ? Fe : 0,
        ut = Te ? we : G - T[te] - P[te] - je + D.altAxis,
        Xe = Te ? G + T[te] + P[te] - je - D.altAxis : Le,
        Y = h && Te ? OI(ut, G, Xe) : au(h ? ut : we, G, h ? Xe : Le);
      (M[k] = Y), (L[k] = Y - G);
    }
    t.modifiersData[r] = L;
  }
}
const dO = { name: "preventOverflow", enabled: !0, phase: "main", fn: cO, requiresIfExists: ["offset"] };
function fO(e) {
  return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
}
function pO(e) {
  return e === Yn(e) || !fr(e) ? Xg(e) : fO(e);
}
function hO(e) {
  var t = e.getBoundingClientRect(),
    n = Wa(t.width) / e.offsetWidth || 1,
    r = Wa(t.height) / e.offsetHeight || 1;
  return n !== 1 || r !== 1;
}
function mO(e, t, n) {
  n === void 0 && (n = !1);
  var r = fr(t),
    o = fr(t) && hO(t),
    i = Di(t),
    s = Ga(e, o, n),
    a = { scrollLeft: 0, scrollTop: 0 },
    l = { x: 0, y: 0 };
  return (
    (r || (!r && !n)) &&
      ((lo(t) !== "body" || Zg(i)) && (a = pO(t)),
      fr(t) ? ((l = Ga(t, !0)), (l.x += t.clientLeft), (l.y += t.clientTop)) : i && (l.x = qg(i))),
    { x: s.left + a.scrollLeft - l.x, y: s.top + a.scrollTop - l.y, width: s.width, height: s.height }
  );
}
function gO(e) {
  var t = new Map(),
    n = new Set(),
    r = [];
  e.forEach(function (i) {
    t.set(i.name, i);
  });
  function o(i) {
    n.add(i.name);
    var s = [].concat(i.requires || [], i.requiresIfExists || []);
    s.forEach(function (a) {
      if (!n.has(a)) {
        var l = t.get(a);
        l && o(l);
      }
    }),
      r.push(i);
  }
  return (
    e.forEach(function (i) {
      n.has(i.name) || o(i);
    }),
    r
  );
}
function yO(e) {
  var t = gO(e);
  return PI.reduce(function (n, r) {
    return n.concat(
      t.filter(function (o) {
        return o.phase === r;
      })
    );
  }, []);
}
function vO(e) {
  var t;
  return function () {
    return (
      t ||
        (t = new Promise(function (n) {
          Promise.resolve().then(function () {
            (t = void 0), n(e());
          });
        })),
      t
    );
  };
}
function xO(e) {
  var t = e.reduce(function (n, r) {
    var o = n[r.name];
    return (
      (n[r.name] = o
        ? Object.assign({}, o, r, {
            options: Object.assign({}, o.options, r.options),
            data: Object.assign({}, o.data, r.data),
          })
        : r),
      n
    );
  }, {});
  return Object.keys(t).map(function (n) {
    return t[n];
  });
}
var b7 = { placement: "bottom", modifiers: [], strategy: "absolute" };
function C7() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
  return !t.some(function (r) {
    return !(r && typeof r.getBoundingClientRect == "function");
  });
}
function bO(e) {
  e === void 0 && (e = {});
  var t = e,
    n = t.defaultModifiers,
    r = n === void 0 ? [] : n,
    o = t.defaultOptions,
    i = o === void 0 ? b7 : o;
  return function (a, l, u) {
    u === void 0 && (u = i);
    var c = {
        placement: "bottom",
        orderedModifiers: [],
        options: Object.assign({}, b7, i),
        modifiersData: {},
        elements: { reference: a, popper: l },
        attributes: {},
        styles: {},
      },
      d = [],
      p = !1,
      h = {
        state: c,
        setOptions: function (y) {
          var g = typeof y == "function" ? y(c.options) : y;
          v(),
            (c.options = Object.assign({}, i, c.options, g)),
            (c.scrollParents = {
              reference: vs(a) ? lu(a) : a.contextElement ? lu(a.contextElement) : [],
              popper: lu(l),
            });
          var x = yO(xO([].concat(r, c.options.modifiers)));
          return (
            (c.orderedModifiers = x.filter(function (w) {
              return w.enabled;
            })),
            m(),
            h.update()
          );
        },
        forceUpdate: function () {
          if (!p) {
            var y = c.elements,
              g = y.reference,
              x = y.popper;
            if (C7(g, x)) {
              (c.rects = { reference: mO(g, gc(x), c.options.strategy === "fixed"), popper: Yg(x) }),
                (c.reset = !1),
                (c.placement = c.options.placement),
                c.orderedModifiers.forEach(function (D) {
                  return (c.modifiersData[D.name] = Object.assign({}, D.data));
                });
              for (var w = 0; w < c.orderedModifiers.length; w++) {
                if (c.reset === !0) {
                  (c.reset = !1), (w = -1);
                  continue;
                }
                var k = c.orderedModifiers[w],
                  M = k.fn,
                  T = k.options,
                  P = T === void 0 ? {} : T,
                  A = k.name;
                typeof M == "function" && (c = M({ state: c, options: P, name: A, instance: h }) || c);
              }
            }
          }
        },
        update: vO(function () {
          return new Promise(function (C) {
            h.forceUpdate(), C(c);
          });
        }),
        destroy: function () {
          v(), (p = !0);
        },
      };
    if (!C7(a, l)) return h;
    h.setOptions(u).then(function (C) {
      !p && u.onFirstUpdate && u.onFirstUpdate(C);
    });
    function m() {
      c.orderedModifiers.forEach(function (C) {
        var y = C.name,
          g = C.options,
          x = g === void 0 ? {} : g,
          w = C.effect;
        if (typeof w == "function") {
          var k = w({ state: c, name: y, instance: h, options: x }),
            M = function () {};
          d.push(k || M);
        }
      });
    }
    function v() {
      d.forEach(function (C) {
        return C();
      }),
        (d = []);
    }
    return h;
  };
}
var CO = [WI, lO, HI, DI, sO, tO, dO, $I, rO],
  wO = bO({ defaultModifiers: CO });
const T9 = "Popper";
function SO(e) {
  return p9(T9, e);
}
eI(T9, ["root"]);
const kO = [
    "anchorEl",
    "children",
    "direction",
    "disablePortal",
    "modifiers",
    "open",
    "placement",
    "popperOptions",
    "popperRef",
    "slotProps",
    "slots",
    "TransitionProps",
    "ownerState",
  ],
  TO = [
    "anchorEl",
    "children",
    "container",
    "direction",
    "disablePortal",
    "keepMounted",
    "modifiers",
    "open",
    "placement",
    "popperOptions",
    "popperRef",
    "style",
    "transition",
    "slotProps",
    "slots",
  ];
function MO(e, t) {
  if (t === "ltr") return e;
  switch (e) {
    case "bottom-end":
      return "bottom-start";
    case "bottom-start":
      return "bottom-end";
    case "top-end":
      return "top-start";
    case "top-start":
      return "top-end";
    default:
      return e;
  }
}
function Um(e) {
  return typeof e == "function" ? e() : e;
}
function EO(e) {
  return e.nodeType !== void 0;
}
const PO = () => Ee({ root: ["root"] }, kR(SO)),
  AO = {},
  _O = b.forwardRef(function (t, n) {
    var r;
    const {
        anchorEl: o,
        children: i,
        direction: s,
        disablePortal: a,
        modifiers: l,
        open: u,
        placement: c,
        popperOptions: d,
        popperRef: p,
        slotProps: h = {},
        slots: m = {},
        TransitionProps: v,
      } = t,
      C = ee(t, kO),
      y = b.useRef(null),
      g = tt(y, n),
      x = b.useRef(null),
      w = tt(x, p),
      k = b.useRef(w);
    Kt(() => {
      k.current = w;
    }, [w]),
      b.useImperativeHandle(p, () => x.current, []);
    const M = MO(c, s),
      [T, P] = b.useState(M),
      [A, D] = b.useState(Um(o));
    b.useEffect(() => {
      x.current && x.current.forceUpdate();
    }),
      b.useEffect(() => {
        o && D(Um(o));
      }, [o]),
      Kt(() => {
        if (!A || !u) return;
        const E = (_) => {
          P(_.placement);
        };
        let B = [
          { name: "preventOverflow", options: { altBoundary: a } },
          { name: "flip", options: { altBoundary: a } },
          {
            name: "onUpdate",
            enabled: !0,
            phase: "afterWrite",
            fn: ({ state: _ }) => {
              E(_);
            },
          },
        ];
        l != null && (B = B.concat(l)), d && d.modifiers != null && (B = B.concat(d.modifiers));
        const j = wO(A, y.current, S({ placement: M }, d, { modifiers: B }));
        return (
          k.current(j),
          () => {
            j.destroy(), k.current(null);
          }
        );
      }, [A, a, l, u, d, M]);
    const R = { placement: T };
    v !== null && (R.TransitionProps = v);
    const L = PO(),
      F = (r = m.root) != null ? r : "div",
      O = qe({
        elementType: F,
        externalSlotProps: h.root,
        externalForwardedProps: C,
        additionalProps: { role: "tooltip", ref: g },
        ownerState: t,
        className: L.root,
      });
    return f.jsx(F, S({}, O, { children: typeof i == "function" ? i(R) : i }));
  }),
  DO = b.forwardRef(function (t, n) {
    const {
        anchorEl: r,
        children: o,
        container: i,
        direction: s = "ltr",
        disablePortal: a = !1,
        keepMounted: l = !1,
        modifiers: u,
        open: c,
        placement: d = "bottom",
        popperOptions: p = AO,
        popperRef: h,
        style: m,
        transition: v = !1,
        slotProps: C = {},
        slots: y = {},
      } = t,
      g = ee(t, TO),
      [x, w] = b.useState(!0),
      k = () => {
        w(!1);
      },
      M = () => {
        w(!0);
      };
    if (!l && !c && (!v || x)) return null;
    let T;
    if (i) T = i;
    else if (r) {
      const D = Um(r);
      T = D && EO(D) ? Dt(D).body : Dt(null).body;
    }
    const P = !c && l && (!v || x) ? "none" : void 0,
      A = v ? { in: c, onEnter: k, onExited: M } : void 0;
    return f.jsx(m9, {
      disablePortal: a,
      container: T,
      children: f.jsx(
        _O,
        S(
          {
            anchorEl: r,
            direction: s,
            disablePortal: a,
            modifiers: u,
            ref: n,
            open: v ? !x : c,
            placement: d,
            popperOptions: p,
            popperRef: h,
            slotProps: C,
            slots: y,
          },
          g,
          { style: S({ position: "fixed", top: 0, left: 0, display: P }, m), TransitionProps: A, children: o }
        )
      ),
    });
  }),
  RO = 2;
function M9(e, t) {
  return e - t;
}
function w7(e, t) {
  var n;
  const { index: r } =
    (n = e.reduce((o, i, s) => {
      const a = Math.abs(t - i);
      return o === null || a < o.distance || a === o.distance ? { distance: a, index: s } : o;
    }, null)) != null
      ? n
      : {};
  return r;
}
function rd(e, t) {
  if (t.current !== void 0 && e.changedTouches) {
    const n = e;
    for (let r = 0; r < n.changedTouches.length; r += 1) {
      const o = n.changedTouches[r];
      if (o.identifier === t.current) return { x: o.clientX, y: o.clientY };
    }
    return !1;
  }
  return { x: e.clientX, y: e.clientY };
}
function jf(e, t, n) {
  return ((e - t) * 100) / (n - t);
}
function IO(e, t, n) {
  return (n - t) * e + t;
}
function OO(e) {
  if (Math.abs(e) < 1) {
    const n = e.toExponential().split("e-"),
      r = n[0].split(".")[1];
    return (r ? r.length : 0) + parseInt(n[1], 10);
  }
  const t = e.toString().split(".")[1];
  return t ? t.length : 0;
}
function FO(e, t, n) {
  const r = Math.round((e - n) / t) * t + n;
  return Number(r.toFixed(OO(t)));
}
function S7({ values: e, newValue: t, index: n }) {
  const r = e.slice();
  return (r[n] = t), r.sort(M9);
}
function od({ sliderRef: e, activeIndex: t, setActive: n }) {
  var r, o;
  const i = Dt(e.current);
  if (
    !((r = e.current) != null && r.contains(i.activeElement)) ||
    Number(i == null || (o = i.activeElement) == null ? void 0 : o.getAttribute("data-index")) !== t
  ) {
    var s;
    (s = e.current) == null || s.querySelector(`[type="range"][data-index="${t}"]`).focus();
  }
  n && n(t);
}
function id(e, t) {
  return typeof e == "number" && typeof t == "number"
    ? e === t
    : typeof e == "object" && typeof t == "object"
      ? CR(e, t)
      : !1;
}
const LO = {
    horizontal: { offset: (e) => ({ left: `${e}%` }), leap: (e) => ({ width: `${e}%` }) },
    "horizontal-reverse": { offset: (e) => ({ right: `${e}%` }), leap: (e) => ({ width: `${e}%` }) },
    vertical: { offset: (e) => ({ bottom: `${e}%` }), leap: (e) => ({ height: `${e}%` }) },
  },
  NO = (e) => e;
let sd;
function k7() {
  return (
    sd === void 0 &&
      (typeof CSS < "u" && typeof CSS.supports == "function" ? (sd = CSS.supports("touch-action", "none")) : (sd = !0)),
    sd
  );
}
function $O(e) {
  const {
      "aria-labelledby": t,
      defaultValue: n,
      disabled: r = !1,
      disableSwap: o = !1,
      isRtl: i = !1,
      marks: s = !1,
      max: a = 100,
      min: l = 0,
      name: u,
      onChange: c,
      onChangeCommitted: d,
      orientation: p = "horizontal",
      rootRef: h,
      scale: m = NO,
      step: v = 1,
      shiftStep: C = 10,
      tabIndex: y,
      value: g,
    } = e,
    x = b.useRef(),
    [w, k] = b.useState(-1),
    [M, T] = b.useState(-1),
    [P, A] = b.useState(!1),
    D = b.useRef(0),
    [R, L] = Sn({ controlled: g, default: n ?? l, name: "Slider" }),
    F =
      c &&
      ((Y, U, ve) => {
        const He = Y.nativeEvent || Y,
          Ve = new He.constructor(He.type, He);
        Object.defineProperty(Ve, "target", { writable: !0, value: { value: U, name: u } }), c(Ve, U, ve);
      }),
    O = Array.isArray(R);
  let E = O ? R.slice().sort(M9) : [R];
  E = E.map((Y) => (Y == null ? l : ei(Y, l, a)));
  const B =
      s === !0 && v !== null ? [...Array(Math.floor((a - l) / v) + 1)].map((Y, U) => ({ value: l + v * U })) : s || [],
    j = B.map((Y) => Y.value),
    { isFocusVisibleRef: _, onBlur: I, onFocus: $, ref: J } = lc(),
    [oe, pe] = b.useState(-1),
    z = b.useRef(),
    ae = tt(J, z),
    me = tt(h, ae),
    X = (Y) => (U) => {
      var ve;
      const He = Number(U.currentTarget.getAttribute("data-index"));
      $(U), _.current === !0 && pe(He), T(He), Y == null || (ve = Y.onFocus) == null || ve.call(Y, U);
    },
    ge = (Y) => (U) => {
      var ve;
      I(U), _.current === !1 && pe(-1), T(-1), Y == null || (ve = Y.onBlur) == null || ve.call(Y, U);
    },
    Pe = (Y, U) => {
      const ve = Number(Y.currentTarget.getAttribute("data-index")),
        He = E[ve],
        Ve = j.indexOf(He);
      let se = U;
      if (B && v == null) {
        const Ge = j[j.length - 1];
        se > Ge ? (se = Ge) : se < j[0] ? (se = j[0]) : (se = se < He ? j[Ve - 1] : j[Ve + 1]);
      }
      if (((se = ei(se, l, a)), O)) {
        o && (se = ei(se, E[ve - 1] || -1 / 0, E[ve + 1] || 1 / 0));
        const Ge = se;
        se = S7({ values: E, newValue: se, index: ve });
        let ct = ve;
        o || (ct = se.indexOf(Ge)), od({ sliderRef: z, activeIndex: ct });
      }
      L(se), pe(ve), F && !id(se, R) && F(Y, se, ve), d && d(Y, se);
    },
    _e = (Y) => (U) => {
      var ve;
      if (v !== null) {
        const He = Number(U.currentTarget.getAttribute("data-index")),
          Ve = E[He];
        let se = null;
        ((U.key === "ArrowLeft" || U.key === "ArrowDown") && U.shiftKey) || U.key === "PageDown"
          ? (se = Math.max(Ve - C, l))
          : (((U.key === "ArrowRight" || U.key === "ArrowUp") && U.shiftKey) || U.key === "PageUp") &&
            (se = Math.min(Ve + C, a)),
          se !== null && (Pe(U, se), U.preventDefault());
      }
      Y == null || (ve = Y.onKeyDown) == null || ve.call(Y, U);
    };
  Kt(() => {
    if (r && z.current.contains(document.activeElement)) {
      var Y;
      (Y = document.activeElement) == null || Y.blur();
    }
  }, [r]),
    r && w !== -1 && k(-1),
    r && oe !== -1 && pe(-1);
  const ie = (Y) => (U) => {
      var ve;
      (ve = Y.onChange) == null || ve.call(Y, U), Pe(U, U.target.valueAsNumber);
    },
    ne = b.useRef();
  let V = p;
  i && p === "horizontal" && (V += "-reverse");
  const K = ({ finger: Y, move: U = !1 }) => {
      const { current: ve } = z,
        { width: He, height: Ve, bottom: se, left: Ge } = ve.getBoundingClientRect();
      let ct;
      V.indexOf("vertical") === 0 ? (ct = (se - Y.y) / Ve) : (ct = (Y.x - Ge) / He),
        V.indexOf("-reverse") !== -1 && (ct = 1 - ct);
      let Ue;
      if (((Ue = IO(ct, l, a)), v)) Ue = FO(Ue, v, l);
      else {
        const zr = w7(j, Ue);
        Ue = j[zr];
      }
      Ue = ei(Ue, l, a);
      let rn = 0;
      if (O) {
        U ? (rn = ne.current) : (rn = w7(E, Ue)), o && (Ue = ei(Ue, E[rn - 1] || -1 / 0, E[rn + 1] || 1 / 0));
        const zr = Ue;
        (Ue = S7({ values: E, newValue: Ue, index: rn })), (o && U) || ((rn = Ue.indexOf(zr)), (ne.current = rn));
      }
      return { newValue: Ue, activeIndex: rn };
    },
    Z = Me((Y) => {
      const U = rd(Y, x);
      if (!U) return;
      if (((D.current += 1), Y.type === "mousemove" && Y.buttons === 0)) {
        ye(Y);
        return;
      }
      const { newValue: ve, activeIndex: He } = K({ finger: U, move: !0 });
      od({ sliderRef: z, activeIndex: He, setActive: k }),
        L(ve),
        !P && D.current > RO && A(!0),
        F && !id(ve, R) && F(Y, ve, He);
    }),
    ye = Me((Y) => {
      const U = rd(Y, x);
      if ((A(!1), !U)) return;
      const { newValue: ve } = K({ finger: U, move: !0 });
      k(-1), Y.type === "touchend" && T(-1), d && d(Y, ve), (x.current = void 0), le();
    }),
    Fe = Me((Y) => {
      if (r) return;
      k7() || Y.preventDefault();
      const U = Y.changedTouches[0];
      U != null && (x.current = U.identifier);
      const ve = rd(Y, x);
      if (ve !== !1) {
        const { newValue: Ve, activeIndex: se } = K({ finger: ve });
        od({ sliderRef: z, activeIndex: se, setActive: k }), L(Ve), F && !id(Ve, R) && F(Y, Ve, se);
      }
      D.current = 0;
      const He = Dt(z.current);
      He.addEventListener("touchmove", Z, { passive: !0 }), He.addEventListener("touchend", ye, { passive: !0 });
    }),
    le = b.useCallback(() => {
      const Y = Dt(z.current);
      Y.removeEventListener("mousemove", Z),
        Y.removeEventListener("mouseup", ye),
        Y.removeEventListener("touchmove", Z),
        Y.removeEventListener("touchend", ye);
    }, [ye, Z]);
  b.useEffect(() => {
    const { current: Y } = z;
    return (
      Y.addEventListener("touchstart", Fe, { passive: k7() }),
      () => {
        Y.removeEventListener("touchstart", Fe), le();
      }
    );
  }, [le, Fe]),
    b.useEffect(() => {
      r && le();
    }, [r, le]);
  const he = (Y) => (U) => {
      var ve;
      if (((ve = Y.onMouseDown) == null || ve.call(Y, U), r || U.defaultPrevented || U.button !== 0)) return;
      U.preventDefault();
      const He = rd(U, x);
      if (He !== !1) {
        const { newValue: se, activeIndex: Ge } = K({ finger: He });
        od({ sliderRef: z, activeIndex: Ge, setActive: k }), L(se), F && !id(se, R) && F(U, se, Ge);
      }
      D.current = 0;
      const Ve = Dt(z.current);
      Ve.addEventListener("mousemove", Z, { passive: !0 }), Ve.addEventListener("mouseup", ye);
    },
    G = jf(O ? E[0] : l, l, a),
    te = jf(E[E.length - 1], l, a) - G,
    we = (Y = {}) => {
      const U = iu(Y),
        ve = { onMouseDown: he(U || {}) },
        He = S({}, U, ve);
      return S({}, Y, { ref: me }, He);
    },
    Le = (Y) => (U) => {
      var ve;
      (ve = Y.onMouseOver) == null || ve.call(Y, U);
      const He = Number(U.currentTarget.getAttribute("data-index"));
      T(He);
    },
    Te = (Y) => (U) => {
      var ve;
      (ve = Y.onMouseLeave) == null || ve.call(Y, U), T(-1);
    };
  return {
    active: w,
    axis: V,
    axisProps: LO,
    dragging: P,
    focusedThumbIndex: oe,
    getHiddenInputProps: (Y = {}) => {
      var U;
      const ve = iu(Y),
        He = { onChange: ie(ve || {}), onFocus: X(ve || {}), onBlur: ge(ve || {}), onKeyDown: _e(ve || {}) },
        Ve = S({}, ve, He);
      return S(
        {
          tabIndex: y,
          "aria-labelledby": t,
          "aria-orientation": p,
          "aria-valuemax": m(a),
          "aria-valuemin": m(l),
          name: u,
          type: "range",
          min: e.min,
          max: e.max,
          step: e.step === null && e.marks ? "any" : (U = e.step) != null ? U : void 0,
          disabled: r,
        },
        Y,
        Ve,
        { style: S({}, qv, { direction: i ? "rtl" : "ltr", width: "100%", height: "100%" }) }
      );
    },
    getRootProps: we,
    getThumbProps: (Y = {}) => {
      const U = iu(Y),
        ve = { onMouseOver: Le(U || {}), onMouseLeave: Te(U || {}) };
      return S({}, Y, U, ve);
    },
    marks: B,
    open: M,
    range: O,
    rootRef: me,
    trackLeap: te,
    trackOffset: G,
    values: E,
    getThumbStyle: (Y) => ({ pointerEvents: w !== -1 && w !== Y ? "none" : void 0 }),
  };
}
const BO = ["onChange", "maxRows", "minRows", "style", "value"];
function ad(e) {
  return parseInt(e, 10) || 0;
}
const jO = {
  shadow: {
    visibility: "hidden",
    position: "absolute",
    overflow: "hidden",
    height: 0,
    top: 0,
    left: 0,
    transform: "translateZ(0)",
  },
};
function VO(e) {
  return e == null || Object.keys(e).length === 0 || (e.outerHeightStyle === 0 && !e.overflowing);
}
const yc = b.forwardRef(function (t, n) {
  const { onChange: r, maxRows: o, minRows: i = 1, style: s, value: a } = t,
    l = ee(t, BO),
    { current: u } = b.useRef(a != null),
    c = b.useRef(null),
    d = tt(n, c),
    p = b.useRef(null),
    h = b.useCallback(() => {
      const C = c.current,
        g = ao(C).getComputedStyle(C);
      if (g.width === "0px") return { outerHeightStyle: 0, overflowing: !1 };
      const x = p.current;
      (x.style.width = g.width),
        (x.value = C.value || t.placeholder || "x"),
        x.value.slice(-1) ===
          `
` && (x.value += " ");
      const w = g.boxSizing,
        k = ad(g.paddingBottom) + ad(g.paddingTop),
        M = ad(g.borderBottomWidth) + ad(g.borderTopWidth),
        T = x.scrollHeight;
      x.value = "x";
      const P = x.scrollHeight;
      let A = T;
      i && (A = Math.max(Number(i) * P, A)), o && (A = Math.min(Number(o) * P, A)), (A = Math.max(A, P));
      const D = A + (w === "border-box" ? k + M : 0),
        R = Math.abs(A - T) <= 1;
      return { outerHeightStyle: D, overflowing: R };
    }, [o, i, t.placeholder]),
    m = b.useCallback(() => {
      const C = h();
      if (VO(C)) return;
      const y = c.current;
      (y.style.height = `${C.outerHeightStyle}px`), (y.style.overflow = C.overflowing ? "hidden" : "");
    }, [h]);
  Kt(() => {
    const C = () => {
      m();
    };
    let y;
    const g = Vp(C),
      x = c.current,
      w = ao(x);
    w.addEventListener("resize", g);
    let k;
    return (
      typeof ResizeObserver < "u" && ((k = new ResizeObserver(C)), k.observe(x)),
      () => {
        g.clear(), cancelAnimationFrame(y), w.removeEventListener("resize", g), k && k.disconnect();
      }
    );
  }, [h, m]),
    Kt(() => {
      m();
    });
  const v = (C) => {
    u || m(), r && r(C);
  };
  return f.jsxs(b.Fragment, {
    children: [
      f.jsx("textarea", S({ value: a, onChange: v, ref: d, rows: i, style: s }, l)),
      f.jsx("textarea", {
        "aria-hidden": !0,
        className: t.className,
        readOnly: !0,
        ref: p,
        tabIndex: -1,
        style: S({}, jO.shadow, s, { paddingTop: 0, paddingBottom: 0 }),
      }),
    ],
  });
});
var Jg = {};
Object.defineProperty(Jg, "__esModule", { value: !0 });
var E9 = (Jg.default = void 0),
  HO = WO(b),
  zO = a4;
function P9(e) {
  if (typeof WeakMap != "function") return null;
  var t = new WeakMap(),
    n = new WeakMap();
  return (P9 = function (r) {
    return r ? n : t;
  })(e);
}
function WO(e, t) {
  if (e && e.__esModule) return e;
  if (e === null || (typeof e != "object" && typeof e != "function")) return { default: e };
  var n = P9(t);
  if (n && n.has(e)) return n.get(e);
  var r = { __proto__: null },
    o = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var i in e)
    if (i !== "default" && Object.prototype.hasOwnProperty.call(e, i)) {
      var s = o ? Object.getOwnPropertyDescriptor(e, i) : null;
      s && (s.get || s.set) ? Object.defineProperty(r, i, s) : (r[i] = e[i]);
    }
  return (r.default = e), n && n.set(e, r), r;
}
function GO(e) {
  return Object.keys(e).length === 0;
}
function UO(e = null) {
  const t = HO.useContext(zO.ThemeContext);
  return !t || GO(t) ? e : t;
}
E9 = Jg.default = UO;
const YO = [
    "anchorEl",
    "component",
    "components",
    "componentsProps",
    "container",
    "disablePortal",
    "keepMounted",
    "modifiers",
    "open",
    "placement",
    "popperOptions",
    "popperRef",
    "transition",
    "slots",
    "slotProps",
  ],
  KO = W(DO, { name: "MuiPopper", slot: "Root", overridesResolver: (e, t) => t.root })({}),
  XO = b.forwardRef(function (t, n) {
    var r;
    const o = E9(),
      i = ke({ props: t, name: "MuiPopper" }),
      {
        anchorEl: s,
        component: a,
        components: l,
        componentsProps: u,
        container: c,
        disablePortal: d,
        keepMounted: p,
        modifiers: h,
        open: m,
        placement: v,
        popperOptions: C,
        popperRef: y,
        transition: g,
        slots: x,
        slotProps: w,
      } = i,
      k = ee(i, YO),
      M = (r = x == null ? void 0 : x.root) != null ? r : l == null ? void 0 : l.Root,
      T = S(
        {
          anchorEl: s,
          container: c,
          disablePortal: d,
          keepMounted: p,
          modifiers: h,
          open: m,
          placement: v,
          popperOptions: C,
          popperRef: y,
          transition: g,
        },
        k
      );
    return f.jsx(
      KO,
      S({ as: a, direction: o == null ? void 0 : o.direction, slots: { root: M }, slotProps: w ?? u }, T, { ref: n })
    );
  }),
  qO = nn(
    f.jsx("path", {
      d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z",
    }),
    "Cancel"
  );
function ZO(e) {
  return Ae("MuiChip", e);
}
const nt = Se("MuiChip", [
    "root",
    "sizeSmall",
    "sizeMedium",
    "colorError",
    "colorInfo",
    "colorPrimary",
    "colorSecondary",
    "colorSuccess",
    "colorWarning",
    "disabled",
    "clickable",
    "clickableColorPrimary",
    "clickableColorSecondary",
    "deletable",
    "deletableColorPrimary",
    "deletableColorSecondary",
    "outlined",
    "filled",
    "outlinedPrimary",
    "outlinedSecondary",
    "filledPrimary",
    "filledSecondary",
    "avatar",
    "avatarSmall",
    "avatarMedium",
    "avatarColorPrimary",
    "avatarColorSecondary",
    "icon",
    "iconSmall",
    "iconMedium",
    "iconColorPrimary",
    "iconColorSecondary",
    "label",
    "labelSmall",
    "labelMedium",
    "deleteIcon",
    "deleteIconSmall",
    "deleteIconMedium",
    "deleteIconColorPrimary",
    "deleteIconColorSecondary",
    "deleteIconOutlinedColorPrimary",
    "deleteIconOutlinedColorSecondary",
    "deleteIconFilledColorPrimary",
    "deleteIconFilledColorSecondary",
    "focusVisible",
  ]),
  JO = [
    "avatar",
    "className",
    "clickable",
    "color",
    "component",
    "deleteIcon",
    "disabled",
    "icon",
    "label",
    "onClick",
    "onDelete",
    "onKeyDown",
    "onKeyUp",
    "size",
    "variant",
    "tabIndex",
    "skipFocusWhenDisabled",
  ],
  QO = (e) => {
    const { classes: t, disabled: n, size: r, color: o, iconColor: i, onDelete: s, clickable: a, variant: l } = e,
      u = {
        root: [
          "root",
          l,
          n && "disabled",
          `size${Q(r)}`,
          `color${Q(o)}`,
          a && "clickable",
          a && `clickableColor${Q(o)}`,
          s && "deletable",
          s && `deletableColor${Q(o)}`,
          `${l}${Q(o)}`,
        ],
        label: ["label", `label${Q(r)}`],
        avatar: ["avatar", `avatar${Q(r)}`, `avatarColor${Q(o)}`],
        icon: ["icon", `icon${Q(r)}`, `iconColor${Q(i)}`],
        deleteIcon: ["deleteIcon", `deleteIcon${Q(r)}`, `deleteIconColor${Q(o)}`, `deleteIcon${Q(l)}Color${Q(o)}`],
      };
    return Ee(u, ZO, t);
  },
  eF = W("div", {
    name: "MuiChip",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e,
        { color: r, iconColor: o, clickable: i, onDelete: s, size: a, variant: l } = n;
      return [
        { [`& .${nt.avatar}`]: t.avatar },
        { [`& .${nt.avatar}`]: t[`avatar${Q(a)}`] },
        { [`& .${nt.avatar}`]: t[`avatarColor${Q(r)}`] },
        { [`& .${nt.icon}`]: t.icon },
        { [`& .${nt.icon}`]: t[`icon${Q(a)}`] },
        { [`& .${nt.icon}`]: t[`iconColor${Q(o)}`] },
        { [`& .${nt.deleteIcon}`]: t.deleteIcon },
        { [`& .${nt.deleteIcon}`]: t[`deleteIcon${Q(a)}`] },
        { [`& .${nt.deleteIcon}`]: t[`deleteIconColor${Q(r)}`] },
        { [`& .${nt.deleteIcon}`]: t[`deleteIcon${Q(l)}Color${Q(r)}`] },
        t.root,
        t[`size${Q(a)}`],
        t[`color${Q(r)}`],
        i && t.clickable,
        i && r !== "default" && t[`clickableColor${Q(r)})`],
        s && t.deletable,
        s && r !== "default" && t[`deletableColor${Q(r)}`],
        t[l],
        t[`${l}${Q(r)}`],
      ];
    },
  })(
    ({ theme: e, ownerState: t }) => {
      const n = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
      return S(
        {
          maxWidth: "100%",
          fontFamily: e.typography.fontFamily,
          fontSize: e.typography.pxToRem(13),
          display: "inline-flex",
          alignItems: "center",
          justifyContent: "center",
          height: 32,
          color: (e.vars || e).palette.text.primary,
          backgroundColor: (e.vars || e).palette.action.selected,
          borderRadius: 32 / 2,
          whiteSpace: "nowrap",
          transition: e.transitions.create(["background-color", "box-shadow"]),
          cursor: "unset",
          outline: 0,
          textDecoration: "none",
          border: 0,
          padding: 0,
          verticalAlign: "middle",
          boxSizing: "border-box",
          [`&.${nt.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity, pointerEvents: "none" },
          [`& .${nt.avatar}`]: {
            marginLeft: 5,
            marginRight: -6,
            width: 24,
            height: 24,
            color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : n,
            fontSize: e.typography.pxToRem(12),
          },
          [`& .${nt.avatarColorPrimary}`]: {
            color: (e.vars || e).palette.primary.contrastText,
            backgroundColor: (e.vars || e).palette.primary.dark,
          },
          [`& .${nt.avatarColorSecondary}`]: {
            color: (e.vars || e).palette.secondary.contrastText,
            backgroundColor: (e.vars || e).palette.secondary.dark,
          },
          [`& .${nt.avatarSmall}`]: {
            marginLeft: 4,
            marginRight: -4,
            width: 18,
            height: 18,
            fontSize: e.typography.pxToRem(10),
          },
          [`& .${nt.icon}`]: S(
            { marginLeft: 5, marginRight: -6 },
            t.size === "small" && { fontSize: 18, marginLeft: 4, marginRight: -4 },
            t.iconColor === t.color &&
              S(
                { color: e.vars ? e.vars.palette.Chip.defaultIconColor : n },
                t.color !== "default" && { color: "inherit" }
              )
          ),
          [`& .${nt.deleteIcon}`]: S(
            {
              WebkitTapHighlightColor: "transparent",
              color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : lt(e.palette.text.primary, 0.26),
              fontSize: 22,
              cursor: "pointer",
              margin: "0 5px 0 -6px",
              "&:hover": {
                color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : lt(e.palette.text.primary, 0.4),
              },
            },
            t.size === "small" && { fontSize: 16, marginRight: 4, marginLeft: -4 },
            t.color !== "default" && {
              color: e.vars
                ? `rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`
                : lt(e.palette[t.color].contrastText, 0.7),
              "&:hover, &:active": { color: (e.vars || e).palette[t.color].contrastText },
            }
          ),
        },
        t.size === "small" && { height: 24 },
        t.color !== "default" && {
          backgroundColor: (e.vars || e).palette[t.color].main,
          color: (e.vars || e).palette[t.color].contrastText,
        },
        t.onDelete && {
          [`&.${nt.focusVisible}`]: {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`
              : lt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity),
          },
        },
        t.onDelete &&
          t.color !== "default" && {
            [`&.${nt.focusVisible}`]: { backgroundColor: (e.vars || e).palette[t.color].dark },
          }
      );
    },
    ({ theme: e, ownerState: t }) =>
      S(
        {},
        t.clickable && {
          userSelect: "none",
          WebkitTapHighlightColor: "transparent",
          cursor: "pointer",
          "&:hover": {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`
              : lt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
          },
          [`&.${nt.focusVisible}`]: {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`
              : lt(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity),
          },
          "&:active": { boxShadow: (e.vars || e).shadows[1] },
        },
        t.clickable &&
          t.color !== "default" && {
            [`&:hover, &.${nt.focusVisible}`]: { backgroundColor: (e.vars || e).palette[t.color].dark },
          }
      ),
    ({ theme: e, ownerState: t }) =>
      S(
        {},
        t.variant === "outlined" && {
          backgroundColor: "transparent",
          border: e.vars
            ? `1px solid ${e.vars.palette.Chip.defaultBorder}`
            : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
          [`&.${nt.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
          [`&.${nt.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
          [`& .${nt.avatar}`]: { marginLeft: 4 },
          [`& .${nt.avatarSmall}`]: { marginLeft: 2 },
          [`& .${nt.icon}`]: { marginLeft: 4 },
          [`& .${nt.iconSmall}`]: { marginLeft: 2 },
          [`& .${nt.deleteIcon}`]: { marginRight: 5 },
          [`& .${nt.deleteIconSmall}`]: { marginRight: 3 },
        },
        t.variant === "outlined" &&
          t.color !== "default" && {
            color: (e.vars || e).palette[t.color].main,
            border: `1px solid ${e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / 0.7)` : lt(e.palette[t.color].main, 0.7)}`,
            [`&.${nt.clickable}:hover`]: {
              backgroundColor: e.vars
                ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`
                : lt(e.palette[t.color].main, e.palette.action.hoverOpacity),
            },
            [`&.${nt.focusVisible}`]: {
              backgroundColor: e.vars
                ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`
                : lt(e.palette[t.color].main, e.palette.action.focusOpacity),
            },
            [`& .${nt.deleteIcon}`]: {
              color: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / 0.7)` : lt(e.palette[t.color].main, 0.7),
              "&:hover, &:active": { color: (e.vars || e).palette[t.color].main },
            },
          }
      )
  ),
  tF = W("span", {
    name: "MuiChip",
    slot: "Label",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e,
        { size: r } = n;
      return [t.label, t[`label${Q(r)}`]];
    },
  })(({ ownerState: e }) =>
    S(
      { overflow: "hidden", textOverflow: "ellipsis", paddingLeft: 12, paddingRight: 12, whiteSpace: "nowrap" },
      e.variant === "outlined" && { paddingLeft: 11, paddingRight: 11 },
      e.size === "small" && { paddingLeft: 8, paddingRight: 8 },
      e.size === "small" && e.variant === "outlined" && { paddingLeft: 7, paddingRight: 7 }
    )
  );
function T7(e) {
  return e.key === "Backspace" || e.key === "Delete";
}
const nF = b.forwardRef(function (t, n) {
  const r = ke({ props: t, name: "MuiChip" }),
    {
      avatar: o,
      className: i,
      clickable: s,
      color: a = "default",
      component: l,
      deleteIcon: u,
      disabled: c = !1,
      icon: d,
      label: p,
      onClick: h,
      onDelete: m,
      onKeyDown: v,
      onKeyUp: C,
      size: y = "medium",
      variant: g = "filled",
      tabIndex: x,
      skipFocusWhenDisabled: w = !1,
    } = r,
    k = ee(r, JO),
    M = b.useRef(null),
    T = tt(M, n),
    P = (I) => {
      I.stopPropagation(), m && m(I);
    },
    A = (I) => {
      I.currentTarget === I.target && T7(I) && I.preventDefault(), v && v(I);
    },
    D = (I) => {
      I.currentTarget === I.target && (m && T7(I) ? m(I) : I.key === "Escape" && M.current && M.current.blur()),
        C && C(I);
    },
    R = s !== !1 && h ? !0 : s,
    L = R || m ? $r : l || "div",
    F = S({}, r, {
      component: L,
      disabled: c,
      size: y,
      color: a,
      iconColor: (b.isValidElement(d) && d.props.color) || a,
      onDelete: !!m,
      clickable: R,
      variant: g,
    }),
    O = QO(F),
    E = L === $r ? S({ component: l || "div", focusVisibleClassName: O.focusVisible }, m && { disableRipple: !0 }) : {};
  let B = null;
  m &&
    (B =
      u && b.isValidElement(u)
        ? b.cloneElement(u, { className: ue(u.props.className, O.deleteIcon), onClick: P })
        : f.jsx(qO, { className: ue(O.deleteIcon), onClick: P }));
  let j = null;
  o && b.isValidElement(o) && (j = b.cloneElement(o, { className: ue(O.avatar, o.props.className) }));
  let _ = null;
  return (
    d && b.isValidElement(d) && (_ = b.cloneElement(d, { className: ue(O.icon, d.props.className) })),
    f.jsxs(
      eF,
      S(
        {
          as: L,
          className: ue(O.root, i),
          disabled: R && c ? !0 : void 0,
          onClick: h,
          onKeyDown: A,
          onKeyUp: D,
          ref: T,
          tabIndex: w && c ? -1 : x,
          ownerState: F,
        },
        E,
        k,
        { children: [j || _, f.jsx(tF, { className: ue(O.label), ownerState: F, children: p }), B] }
      )
    )
  );
});
function Ri({ props: e, states: t, muiFormControl: n }) {
  return t.reduce((r, o) => ((r[o] = e[o]), n && typeof e[o] > "u" && (r[o] = n[o]), r), {});
}
const x0 = b.createContext(void 0);
function ho() {
  return b.useContext(x0);
}
function A9(e) {
  return f.jsx(BE, S({}, e, { defaultTheme: Gp, themeId: us }));
}
function M7(e) {
  return e != null && !(Array.isArray(e) && e.length === 0);
}
function Vf(e, t = !1) {
  return e && ((M7(e.value) && e.value !== "") || (t && M7(e.defaultValue) && e.defaultValue !== ""));
}
function rF(e) {
  return e.startAdornment;
}
function oF(e) {
  return Ae("MuiInputBase", e);
}
const Ya = Se("MuiInputBase", [
    "root",
    "formControl",
    "focused",
    "disabled",
    "adornedStart",
    "adornedEnd",
    "error",
    "sizeSmall",
    "multiline",
    "colorSecondary",
    "fullWidth",
    "hiddenLabel",
    "readOnly",
    "input",
    "inputSizeSmall",
    "inputMultiline",
    "inputTypeSearch",
    "inputAdornedStart",
    "inputAdornedEnd",
    "inputHiddenLabel",
  ]),
  iF = [
    "aria-describedby",
    "autoComplete",
    "autoFocus",
    "className",
    "color",
    "components",
    "componentsProps",
    "defaultValue",
    "disabled",
    "disableInjectingGlobalStyles",
    "endAdornment",
    "error",
    "fullWidth",
    "id",
    "inputComponent",
    "inputProps",
    "inputRef",
    "margin",
    "maxRows",
    "minRows",
    "multiline",
    "name",
    "onBlur",
    "onChange",
    "onClick",
    "onFocus",
    "onKeyDown",
    "onKeyUp",
    "placeholder",
    "readOnly",
    "renderSuffix",
    "rows",
    "size",
    "slotProps",
    "slots",
    "startAdornment",
    "type",
    "value",
  ],
  b0 = (e, t) => {
    const { ownerState: n } = e;
    return [
      t.root,
      n.formControl && t.formControl,
      n.startAdornment && t.adornedStart,
      n.endAdornment && t.adornedEnd,
      n.error && t.error,
      n.size === "small" && t.sizeSmall,
      n.multiline && t.multiline,
      n.color && t[`color${Q(n.color)}`],
      n.fullWidth && t.fullWidth,
      n.hiddenLabel && t.hiddenLabel,
    ];
  },
  C0 = (e, t) => {
    const { ownerState: n } = e;
    return [
      t.input,
      n.size === "small" && t.inputSizeSmall,
      n.multiline && t.inputMultiline,
      n.type === "search" && t.inputTypeSearch,
      n.startAdornment && t.inputAdornedStart,
      n.endAdornment && t.inputAdornedEnd,
      n.hiddenLabel && t.inputHiddenLabel,
    ];
  },
  sF = (e) => {
    const {
        classes: t,
        color: n,
        disabled: r,
        error: o,
        endAdornment: i,
        focused: s,
        formControl: a,
        fullWidth: l,
        hiddenLabel: u,
        multiline: c,
        readOnly: d,
        size: p,
        startAdornment: h,
        type: m,
      } = e,
      v = {
        root: [
          "root",
          `color${Q(n)}`,
          r && "disabled",
          o && "error",
          l && "fullWidth",
          s && "focused",
          a && "formControl",
          p && p !== "medium" && `size${Q(p)}`,
          c && "multiline",
          h && "adornedStart",
          i && "adornedEnd",
          u && "hiddenLabel",
          d && "readOnly",
        ],
        input: [
          "input",
          r && "disabled",
          m === "search" && "inputTypeSearch",
          c && "inputMultiline",
          p === "small" && "inputSizeSmall",
          u && "inputHiddenLabel",
          h && "inputAdornedStart",
          i && "inputAdornedEnd",
          d && "readOnly",
        ],
      };
    return Ee(v, oF, t);
  },
  w0 = W("div", { name: "MuiInputBase", slot: "Root", overridesResolver: b0 })(({ theme: e, ownerState: t }) =>
    S(
      {},
      e.typography.body1,
      {
        color: (e.vars || e).palette.text.primary,
        lineHeight: "1.4375em",
        boxSizing: "border-box",
        position: "relative",
        cursor: "text",
        display: "inline-flex",
        alignItems: "center",
        [`&.${Ya.disabled}`]: { color: (e.vars || e).palette.text.disabled, cursor: "default" },
      },
      t.multiline && S({ padding: "4px 0 5px" }, t.size === "small" && { paddingTop: 1 }),
      t.fullWidth && { width: "100%" }
    )
  ),
  S0 = W("input", { name: "MuiInputBase", slot: "Input", overridesResolver: C0 })(({ theme: e, ownerState: t }) => {
    const n = e.palette.mode === "light",
      r = S(
        { color: "currentColor" },
        e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: n ? 0.42 : 0.5 },
        { transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }) }
      ),
      o = { opacity: "0" },
      i = e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: n ? 0.42 : 0.5 };
    return S(
      {
        font: "inherit",
        letterSpacing: "inherit",
        color: "currentColor",
        padding: "4px 0 5px",
        border: 0,
        boxSizing: "content-box",
        background: "none",
        height: "1.4375em",
        margin: 0,
        WebkitTapHighlightColor: "transparent",
        display: "block",
        minWidth: 0,
        width: "100%",
        animationName: "mui-auto-fill-cancel",
        animationDuration: "10ms",
        "&::-webkit-input-placeholder": r,
        "&::-moz-placeholder": r,
        "&:-ms-input-placeholder": r,
        "&::-ms-input-placeholder": r,
        "&:focus": { outline: 0 },
        "&:invalid": { boxShadow: "none" },
        "&::-webkit-search-decoration": { WebkitAppearance: "none" },
        [`label[data-shrink=false] + .${Ya.formControl} &`]: {
          "&::-webkit-input-placeholder": o,
          "&::-moz-placeholder": o,
          "&:-ms-input-placeholder": o,
          "&::-ms-input-placeholder": o,
          "&:focus::-webkit-input-placeholder": i,
          "&:focus::-moz-placeholder": i,
          "&:focus:-ms-input-placeholder": i,
          "&:focus::-ms-input-placeholder": i,
        },
        [`&.${Ya.disabled}`]: { opacity: 1, WebkitTextFillColor: (e.vars || e).palette.text.disabled },
        "&:-webkit-autofill": { animationDuration: "5000s", animationName: "mui-auto-fill" },
      },
      t.size === "small" && { paddingTop: 1 },
      t.multiline && { height: "auto", resize: "none", padding: 0, paddingTop: 0 },
      t.type === "search" && { MozAppearance: "textfield" }
    );
  }),
  aF = f.jsx(A9, {
    styles: {
      "@keyframes mui-auto-fill": { from: { display: "block" } },
      "@keyframes mui-auto-fill-cancel": { from: { display: "block" } },
    },
  }),
  lF = b.forwardRef(function (t, n) {
    var r;
    const o = ke({ props: t, name: "MuiInputBase" }),
      {
        "aria-describedby": i,
        autoComplete: s,
        autoFocus: a,
        className: l,
        components: u = {},
        componentsProps: c = {},
        defaultValue: d,
        disabled: p,
        disableInjectingGlobalStyles: h,
        endAdornment: m,
        fullWidth: v = !1,
        id: C,
        inputComponent: y = "input",
        inputProps: g = {},
        inputRef: x,
        maxRows: w,
        minRows: k,
        multiline: M = !1,
        name: T,
        onBlur: P,
        onChange: A,
        onClick: D,
        onFocus: R,
        onKeyDown: L,
        onKeyUp: F,
        placeholder: O,
        readOnly: E,
        renderSuffix: B,
        rows: j,
        slotProps: _ = {},
        slots: I = {},
        startAdornment: $,
        type: J = "text",
        value: oe,
      } = o,
      pe = ee(o, iF),
      z = g.value != null ? g.value : oe,
      { current: ae } = b.useRef(z != null),
      me = b.useRef(),
      X = b.useCallback((Y) => {}, []),
      ge = tt(me, x, g.ref, X),
      [Pe, _e] = b.useState(!1),
      ie = ho(),
      ne = Ri({
        props: o,
        muiFormControl: ie,
        states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"],
      });
    (ne.focused = ie ? ie.focused : Pe),
      b.useEffect(() => {
        !ie && p && Pe && (_e(!1), P && P());
      }, [ie, p, Pe, P]);
    const V = ie && ie.onFilled,
      K = ie && ie.onEmpty,
      Z = b.useCallback(
        (Y) => {
          Vf(Y) ? V && V() : K && K();
        },
        [V, K]
      );
    Kt(() => {
      ae && Z({ value: z });
    }, [z, Z, ae]);
    const ye = (Y) => {
        if (ne.disabled) {
          Y.stopPropagation();
          return;
        }
        R && R(Y), g.onFocus && g.onFocus(Y), ie && ie.onFocus ? ie.onFocus(Y) : _e(!0);
      },
      Fe = (Y) => {
        P && P(Y), g.onBlur && g.onBlur(Y), ie && ie.onBlur ? ie.onBlur(Y) : _e(!1);
      },
      le = (Y, ...U) => {
        if (!ae) {
          const ve = Y.target || me.current;
          if (ve == null) throw new Error(Fo(1));
          Z({ value: ve.value });
        }
        g.onChange && g.onChange(Y, ...U), A && A(Y, ...U);
      };
    b.useEffect(() => {
      Z(me.current);
    }, []);
    const he = (Y) => {
      me.current && Y.currentTarget === Y.target && me.current.focus(), D && D(Y);
    };
    let G = y,
      te = g;
    M &&
      G === "input" &&
      (j
        ? (te = S({ type: void 0, minRows: j, maxRows: j }, te))
        : (te = S({ type: void 0, maxRows: w, minRows: k }, te)),
      (G = yc));
    const we = (Y) => {
      Z(Y.animationName === "mui-auto-fill-cancel" ? me.current : { value: "x" });
    };
    b.useEffect(() => {
      ie && ie.setAdornedStart(!!$);
    }, [ie, $]);
    const Le = S({}, o, {
        color: ne.color || "primary",
        disabled: ne.disabled,
        endAdornment: m,
        error: ne.error,
        focused: ne.focused,
        formControl: ie,
        fullWidth: v,
        hiddenLabel: ne.hiddenLabel,
        multiline: M,
        size: ne.size,
        startAdornment: $,
        type: J,
      }),
      Te = sF(Le),
      je = I.root || u.Root || w0,
      ut = _.root || c.root || {},
      Xe = I.input || u.Input || S0;
    return (
      (te = S({}, te, (r = _.input) != null ? r : c.input)),
      f.jsxs(b.Fragment, {
        children: [
          !h && aF,
          f.jsxs(
            je,
            S({}, ut, !io(je) && { ownerState: S({}, Le, ut.ownerState) }, { ref: n, onClick: he }, pe, {
              className: ue(Te.root, ut.className, l, E && "MuiInputBase-readOnly"),
              children: [
                $,
                f.jsx(x0.Provider, {
                  value: null,
                  children: f.jsx(
                    Xe,
                    S(
                      {
                        ownerState: Le,
                        "aria-invalid": ne.error,
                        "aria-describedby": i,
                        autoComplete: s,
                        autoFocus: a,
                        defaultValue: d,
                        disabled: ne.disabled,
                        id: C,
                        onAnimationStart: we,
                        name: T,
                        placeholder: O,
                        readOnly: E,
                        required: ne.required,
                        rows: j,
                        value: z,
                        onKeyDown: L,
                        onKeyUp: F,
                        type: J,
                      },
                      te,
                      !io(Xe) && { as: G, ownerState: S({}, Le, te.ownerState) },
                      {
                        ref: ge,
                        className: ue(Te.input, te.className, E && "MuiInputBase-readOnly"),
                        onBlur: Fe,
                        onChange: le,
                        onFocus: ye,
                      }
                    )
                  ),
                }),
                m,
                B ? B(S({}, ne, { startAdornment: $ })) : null,
              ],
            })
          ),
        ],
      })
    );
  }),
  Qg = lF;
function uF(e) {
  return Ae("MuiInput", e);
}
const Ml = S({}, Ya, Se("MuiInput", ["root", "underline", "input"]));
function cF(e) {
  return Ae("MuiOutlinedInput", e);
}
const Zo = S({}, Ya, Se("MuiOutlinedInput", ["root", "notchedOutline", "input"]));
function dF(e) {
  return Ae("MuiFilledInput", e);
}
const Ni = S({}, Ya, Se("MuiFilledInput", ["root", "underline", "input"])),
  fF = nn(f.jsx("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown"),
  pF = [
    "addEndListener",
    "appear",
    "children",
    "easing",
    "in",
    "onEnter",
    "onEntered",
    "onEntering",
    "onExit",
    "onExited",
    "onExiting",
    "style",
    "timeout",
    "TransitionComponent",
  ],
  hF = { entering: { opacity: 1 }, entered: { opacity: 1 } },
  Ii = b.forwardRef(function (t, n) {
    const r = Re(),
      o = { enter: r.transitions.duration.enteringScreen, exit: r.transitions.duration.leavingScreen },
      {
        addEndListener: i,
        appear: s = !0,
        children: a,
        easing: l,
        in: u,
        onEnter: c,
        onEntered: d,
        onEntering: p,
        onExit: h,
        onExited: m,
        onExiting: v,
        style: C,
        timeout: y = o,
        TransitionComponent: g = wr,
      } = t,
      x = ee(t, pF),
      w = b.useRef(null),
      k = tt(w, a.ref, n),
      M = (O) => (E) => {
        if (O) {
          const B = w.current;
          E === void 0 ? O(B) : O(B, E);
        }
      },
      T = M(p),
      P = M((O, E) => {
        zg(O);
        const B = Ha({ style: C, timeout: y, easing: l }, { mode: "enter" });
        (O.style.webkitTransition = r.transitions.create("opacity", B)),
          (O.style.transition = r.transitions.create("opacity", B)),
          c && c(O, E);
      }),
      A = M(d),
      D = M(v),
      R = M((O) => {
        const E = Ha({ style: C, timeout: y, easing: l }, { mode: "exit" });
        (O.style.webkitTransition = r.transitions.create("opacity", E)),
          (O.style.transition = r.transitions.create("opacity", E)),
          h && h(O);
      }),
      L = M(m),
      F = (O) => {
        i && i(w.current, O);
      };
    return f.jsx(
      g,
      S(
        {
          appear: s,
          in: u,
          nodeRef: w,
          onEnter: P,
          onEntered: A,
          onEntering: T,
          onExit: R,
          onExited: L,
          onExiting: D,
          addEndListener: F,
          timeout: y,
        },
        x,
        {
          children: (O, E) =>
            b.cloneElement(
              a,
              S(
                {
                  style: S(
                    { opacity: 0, visibility: O === "exited" && !u ? "hidden" : void 0 },
                    hF[O],
                    C,
                    a.props.style
                  ),
                  ref: k,
                },
                E
              )
            ),
        }
      )
    );
  });
function mF(e) {
  return Ae("MuiBackdrop", e);
}
Se("MuiBackdrop", ["root", "invisible"]);
const gF = [
    "children",
    "className",
    "component",
    "components",
    "componentsProps",
    "invisible",
    "open",
    "slotProps",
    "slots",
    "TransitionComponent",
    "transitionDuration",
  ],
  yF = (e) => {
    const { classes: t, invisible: n } = e;
    return Ee({ root: ["root", n && "invisible"] }, mF, t);
  },
  vF = W("div", {
    name: "MuiBackdrop",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.invisible && t.invisible];
    },
  })(({ ownerState: e }) =>
    S(
      {
        position: "fixed",
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
        right: 0,
        bottom: 0,
        top: 0,
        left: 0,
        backgroundColor: "rgba(0, 0, 0, 0.5)",
        WebkitTapHighlightColor: "transparent",
      },
      e.invisible && { backgroundColor: "transparent" }
    )
  ),
  _9 = b.forwardRef(function (t, n) {
    var r, o, i;
    const s = ke({ props: t, name: "MuiBackdrop" }),
      {
        children: a,
        className: l,
        component: u = "div",
        components: c = {},
        componentsProps: d = {},
        invisible: p = !1,
        open: h,
        slotProps: m = {},
        slots: v = {},
        TransitionComponent: C = Ii,
        transitionDuration: y,
      } = s,
      g = ee(s, gF),
      x = S({}, s, { component: u, invisible: p }),
      w = yF(x),
      k = (r = m.root) != null ? r : d.root;
    return f.jsx(
      C,
      S({ in: h, timeout: y }, g, {
        children: f.jsx(
          vF,
          S({ "aria-hidden": !0 }, k, {
            as: (o = (i = v.root) != null ? i : c.Root) != null ? o : u,
            className: ue(w.root, l, k == null ? void 0 : k.className),
            ownerState: S({}, x, k == null ? void 0 : k.ownerState),
            classes: w,
            ref: n,
            children: a,
          })
        ),
      })
    );
  }),
  xF = Se("MuiBox", ["root"]),
  bF = Ct(),
  H = GE({ themeId: us, defaultTheme: bF, defaultClassName: xF.root, generateClassName: j2.generate });
function CF(e) {
  return Ae("MuiButton", e);
}
const ld = Se("MuiButton", [
    "root",
    "text",
    "textInherit",
    "textPrimary",
    "textSecondary",
    "textSuccess",
    "textError",
    "textInfo",
    "textWarning",
    "outlined",
    "outlinedInherit",
    "outlinedPrimary",
    "outlinedSecondary",
    "outlinedSuccess",
    "outlinedError",
    "outlinedInfo",
    "outlinedWarning",
    "contained",
    "containedInherit",
    "containedPrimary",
    "containedSecondary",
    "containedSuccess",
    "containedError",
    "containedInfo",
    "containedWarning",
    "disableElevation",
    "focusVisible",
    "disabled",
    "colorInherit",
    "colorPrimary",
    "colorSecondary",
    "colorSuccess",
    "colorError",
    "colorInfo",
    "colorWarning",
    "textSizeSmall",
    "textSizeMedium",
    "textSizeLarge",
    "outlinedSizeSmall",
    "outlinedSizeMedium",
    "outlinedSizeLarge",
    "containedSizeSmall",
    "containedSizeMedium",
    "containedSizeLarge",
    "sizeMedium",
    "sizeSmall",
    "sizeLarge",
    "fullWidth",
    "startIcon",
    "endIcon",
    "icon",
    "iconSizeSmall",
    "iconSizeMedium",
    "iconSizeLarge",
  ]),
  wF = b.createContext({}),
  SF = b.createContext(void 0),
  kF = [
    "children",
    "color",
    "component",
    "className",
    "disabled",
    "disableElevation",
    "disableFocusRipple",
    "endIcon",
    "focusVisibleClassName",
    "fullWidth",
    "size",
    "startIcon",
    "type",
    "variant",
  ],
  TF = (e) => {
    const { color: t, disableElevation: n, fullWidth: r, size: o, variant: i, classes: s } = e,
      a = {
        root: [
          "root",
          i,
          `${i}${Q(t)}`,
          `size${Q(o)}`,
          `${i}Size${Q(o)}`,
          `color${Q(t)}`,
          n && "disableElevation",
          r && "fullWidth",
        ],
        label: ["label"],
        startIcon: ["icon", "startIcon", `iconSize${Q(o)}`],
        endIcon: ["icon", "endIcon", `iconSize${Q(o)}`],
      },
      l = Ee(a, CF, s);
    return S({}, s, l);
  },
  D9 = (e) =>
    S(
      {},
      e.size === "small" && { "& > *:nth-of-type(1)": { fontSize: 18 } },
      e.size === "medium" && { "& > *:nth-of-type(1)": { fontSize: 20 } },
      e.size === "large" && { "& > *:nth-of-type(1)": { fontSize: 22 } }
    ),
  MF = W($r, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiButton",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        t[n.variant],
        t[`${n.variant}${Q(n.color)}`],
        t[`size${Q(n.size)}`],
        t[`${n.variant}Size${Q(n.size)}`],
        n.color === "inherit" && t.colorInherit,
        n.disableElevation && t.disableElevation,
        n.fullWidth && t.fullWidth,
      ];
    },
  })(
    ({ theme: e, ownerState: t }) => {
      var n, r;
      const o = e.palette.mode === "light" ? e.palette.grey[300] : e.palette.grey[800],
        i = e.palette.mode === "light" ? e.palette.grey.A100 : e.palette.grey[700];
      return S(
        {},
        e.typography.button,
        {
          minWidth: 64,
          padding: "6px 16px",
          borderRadius: (e.vars || e).shape.borderRadius,
          transition: e.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
            duration: e.transitions.duration.short,
          }),
          "&:hover": S(
            {
              textDecoration: "none",
              backgroundColor: e.vars
                ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`
                : lt(e.palette.text.primary, e.palette.action.hoverOpacity),
              "@media (hover: none)": { backgroundColor: "transparent" },
            },
            t.variant === "text" &&
              t.color !== "inherit" && {
                backgroundColor: e.vars
                  ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`
                  : lt(e.palette[t.color].main, e.palette.action.hoverOpacity),
                "@media (hover: none)": { backgroundColor: "transparent" },
              },
            t.variant === "outlined" &&
              t.color !== "inherit" && {
                border: `1px solid ${(e.vars || e).palette[t.color].main}`,
                backgroundColor: e.vars
                  ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`
                  : lt(e.palette[t.color].main, e.palette.action.hoverOpacity),
                "@media (hover: none)": { backgroundColor: "transparent" },
              },
            t.variant === "contained" && {
              backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedHoverBg : i,
              boxShadow: (e.vars || e).shadows[4],
              "@media (hover: none)": {
                boxShadow: (e.vars || e).shadows[2],
                backgroundColor: (e.vars || e).palette.grey[300],
              },
            },
            t.variant === "contained" &&
              t.color !== "inherit" && {
                backgroundColor: (e.vars || e).palette[t.color].dark,
                "@media (hover: none)": { backgroundColor: (e.vars || e).palette[t.color].main },
              }
          ),
          "&:active": S({}, t.variant === "contained" && { boxShadow: (e.vars || e).shadows[8] }),
          [`&.${ld.focusVisible}`]: S({}, t.variant === "contained" && { boxShadow: (e.vars || e).shadows[6] }),
          [`&.${ld.disabled}`]: S(
            { color: (e.vars || e).palette.action.disabled },
            t.variant === "outlined" && { border: `1px solid ${(e.vars || e).palette.action.disabledBackground}` },
            t.variant === "contained" && {
              color: (e.vars || e).palette.action.disabled,
              boxShadow: (e.vars || e).shadows[0],
              backgroundColor: (e.vars || e).palette.action.disabledBackground,
            }
          ),
        },
        t.variant === "text" && { padding: "6px 8px" },
        t.variant === "text" && t.color !== "inherit" && { color: (e.vars || e).palette[t.color].main },
        t.variant === "outlined" && { padding: "5px 15px", border: "1px solid currentColor" },
        t.variant === "outlined" &&
          t.color !== "inherit" && {
            color: (e.vars || e).palette[t.color].main,
            border: e.vars
              ? `1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`
              : `1px solid ${lt(e.palette[t.color].main, 0.5)}`,
          },
        t.variant === "contained" && {
          color: e.vars
            ? e.vars.palette.text.primary
            : (n = (r = e.palette).getContrastText) == null
              ? void 0
              : n.call(r, e.palette.grey[300]),
          backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedBg : o,
          boxShadow: (e.vars || e).shadows[2],
        },
        t.variant === "contained" &&
          t.color !== "inherit" && {
            color: (e.vars || e).palette[t.color].contrastText,
            backgroundColor: (e.vars || e).palette[t.color].main,
          },
        t.color === "inherit" && { color: "inherit", borderColor: "currentColor" },
        t.size === "small" && t.variant === "text" && { padding: "4px 5px", fontSize: e.typography.pxToRem(13) },
        t.size === "large" && t.variant === "text" && { padding: "8px 11px", fontSize: e.typography.pxToRem(15) },
        t.size === "small" && t.variant === "outlined" && { padding: "3px 9px", fontSize: e.typography.pxToRem(13) },
        t.size === "large" && t.variant === "outlined" && { padding: "7px 21px", fontSize: e.typography.pxToRem(15) },
        t.size === "small" && t.variant === "contained" && { padding: "4px 10px", fontSize: e.typography.pxToRem(13) },
        t.size === "large" && t.variant === "contained" && { padding: "8px 22px", fontSize: e.typography.pxToRem(15) },
        t.fullWidth && { width: "100%" }
      );
    },
    ({ ownerState: e }) =>
      e.disableElevation && {
        boxShadow: "none",
        "&:hover": { boxShadow: "none" },
        [`&.${ld.focusVisible}`]: { boxShadow: "none" },
        "&:active": { boxShadow: "none" },
        [`&.${ld.disabled}`]: { boxShadow: "none" },
      }
  ),
  EF = W("span", {
    name: "MuiButton",
    slot: "StartIcon",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.startIcon, t[`iconSize${Q(n.size)}`]];
    },
  })(({ ownerState: e }) =>
    S({ display: "inherit", marginRight: 8, marginLeft: -4 }, e.size === "small" && { marginLeft: -2 }, D9(e))
  ),
  PF = W("span", {
    name: "MuiButton",
    slot: "EndIcon",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.endIcon, t[`iconSize${Q(n.size)}`]];
    },
  })(({ ownerState: e }) =>
    S({ display: "inherit", marginRight: -4, marginLeft: 8 }, e.size === "small" && { marginRight: -2 }, D9(e))
  ),
  Vn = b.forwardRef(function (t, n) {
    const r = b.useContext(wF),
      o = b.useContext(SF),
      i = z2(r, t),
      s = ke({ props: i, name: "MuiButton" }),
      {
        children: a,
        color: l = "primary",
        component: u = "button",
        className: c,
        disabled: d = !1,
        disableElevation: p = !1,
        disableFocusRipple: h = !1,
        endIcon: m,
        focusVisibleClassName: v,
        fullWidth: C = !1,
        size: y = "medium",
        startIcon: g,
        type: x,
        variant: w = "text",
      } = s,
      k = ee(s, kF),
      M = S({}, s, {
        color: l,
        component: u,
        disabled: d,
        disableElevation: p,
        disableFocusRipple: h,
        fullWidth: C,
        size: y,
        type: x,
        variant: w,
      }),
      T = TF(M),
      P = g && f.jsx(EF, { className: T.startIcon, ownerState: M, children: g }),
      A = m && f.jsx(PF, { className: T.endIcon, ownerState: M, children: m }),
      D = o || "";
    return f.jsxs(
      MF,
      S(
        {
          ownerState: M,
          className: ue(r.className, T.root, c, D),
          component: u,
          disabled: d,
          focusRipple: !h,
          focusVisibleClassName: ue(T.focusVisible, v),
          ref: n,
          type: x,
        },
        k,
        { classes: T, children: [P, a, A] }
      )
    );
  });
function AF(e) {
  return Ae("PrivateSwitchBase", e);
}
Se("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
const _F = [
    "autoFocus",
    "checked",
    "checkedIcon",
    "className",
    "defaultChecked",
    "disabled",
    "disableFocusRipple",
    "edge",
    "icon",
    "id",
    "inputProps",
    "inputRef",
    "name",
    "onBlur",
    "onChange",
    "onFocus",
    "readOnly",
    "required",
    "tabIndex",
    "type",
    "value",
  ],
  DF = (e) => {
    const { classes: t, checked: n, disabled: r, edge: o } = e,
      i = { root: ["root", n && "checked", r && "disabled", o && `edge${Q(o)}`], input: ["input"] };
    return Ee(i, AF, t);
  },
  RF = W($r)(({ ownerState: e }) =>
    S(
      { padding: 9, borderRadius: "50%" },
      e.edge === "start" && { marginLeft: e.size === "small" ? -3 : -12 },
      e.edge === "end" && { marginRight: e.size === "small" ? -3 : -12 }
    )
  ),
  IF = W("input", { shouldForwardProp: vn })({
    cursor: "inherit",
    position: "absolute",
    opacity: 0,
    width: "100%",
    height: "100%",
    top: 0,
    left: 0,
    margin: 0,
    padding: 0,
    zIndex: 1,
  }),
  R9 = b.forwardRef(function (t, n) {
    const {
        autoFocus: r,
        checked: o,
        checkedIcon: i,
        className: s,
        defaultChecked: a,
        disabled: l,
        disableFocusRipple: u = !1,
        edge: c = !1,
        icon: d,
        id: p,
        inputProps: h,
        inputRef: m,
        name: v,
        onBlur: C,
        onChange: y,
        onFocus: g,
        readOnly: x,
        required: w = !1,
        tabIndex: k,
        type: M,
        value: T,
      } = t,
      P = ee(t, _F),
      [A, D] = Sn({ controlled: o, default: !!a, name: "SwitchBase", state: "checked" }),
      R = ho(),
      L = (I) => {
        g && g(I), R && R.onFocus && R.onFocus(I);
      },
      F = (I) => {
        C && C(I), R && R.onBlur && R.onBlur(I);
      },
      O = (I) => {
        if (I.nativeEvent.defaultPrevented) return;
        const $ = I.target.checked;
        D($), y && y(I, $);
      };
    let E = l;
    R && typeof E > "u" && (E = R.disabled);
    const B = M === "checkbox" || M === "radio",
      j = S({}, t, { checked: A, disabled: E, disableFocusRipple: u, edge: c }),
      _ = DF(j);
    return f.jsxs(
      RF,
      S(
        {
          component: "span",
          className: ue(_.root, s),
          centerRipple: !0,
          focusRipple: !u,
          disabled: E,
          tabIndex: null,
          role: void 0,
          onFocus: L,
          onBlur: F,
          ownerState: j,
          ref: n,
        },
        P,
        {
          children: [
            f.jsx(
              IF,
              S(
                {
                  autoFocus: r,
                  checked: o,
                  defaultChecked: a,
                  className: _.input,
                  disabled: E,
                  id: B ? p : void 0,
                  name: v,
                  onChange: O,
                  readOnly: x,
                  ref: m,
                  required: w,
                  ownerState: j,
                  tabIndex: k,
                  type: M,
                },
                M === "checkbox" && T === void 0 ? {} : { value: T },
                h
              )
            ),
            A ? i : d,
          ],
        }
      )
    );
  }),
  OF = nn(
    f.jsx("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }),
    "CheckBoxOutlineBlank"
  ),
  FF = nn(
    f.jsx("path", {
      d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
    }),
    "CheckBox"
  ),
  LF = nn(
    f.jsx("path", {
      d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z",
    }),
    "IndeterminateCheckBox"
  );
function NF(e) {
  return Ae("MuiCheckbox", e);
}
const Z1 = Se("MuiCheckbox", [
    "root",
    "checked",
    "disabled",
    "indeterminate",
    "colorPrimary",
    "colorSecondary",
    "sizeSmall",
    "sizeMedium",
  ]),
  $F = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"],
  BF = (e) => {
    const { classes: t, indeterminate: n, color: r, size: o } = e,
      i = { root: ["root", n && "indeterminate", `color${Q(r)}`, `size${Q(o)}`] },
      s = Ee(i, NF, t);
    return S({}, t, s);
  },
  jF = W(R9, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiCheckbox",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        n.indeterminate && t.indeterminate,
        t[`size${Q(n.size)}`],
        n.color !== "default" && t[`color${Q(n.color)}`],
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { color: (e.vars || e).palette.text.secondary },
      !t.disableRipple && {
        "&:hover": {
          backgroundColor: e.vars
            ? `rgba(${t.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`
            : lt(
                t.color === "default" ? e.palette.action.active : e.palette[t.color].main,
                e.palette.action.hoverOpacity
              ),
          "@media (hover: none)": { backgroundColor: "transparent" },
        },
      },
      t.color !== "default" && {
        [`&.${Z1.checked}, &.${Z1.indeterminate}`]: { color: (e.vars || e).palette[t.color].main },
        [`&.${Z1.disabled}`]: { color: (e.vars || e).palette.action.disabled },
      }
    )
  ),
  VF = f.jsx(FF, {}),
  HF = f.jsx(OF, {}),
  zF = f.jsx(LF, {}),
  e5 = b.forwardRef(function (t, n) {
    var r, o;
    const i = ke({ props: t, name: "MuiCheckbox" }),
      {
        checkedIcon: s = VF,
        color: a = "primary",
        icon: l = HF,
        indeterminate: u = !1,
        indeterminateIcon: c = zF,
        inputProps: d,
        size: p = "medium",
        className: h,
      } = i,
      m = ee(i, $F),
      v = u ? c : l,
      C = u ? c : s,
      y = S({}, i, { color: a, indeterminate: u, size: p }),
      g = BF(y);
    return f.jsx(
      jF,
      S(
        {
          type: "checkbox",
          inputProps: S({ "data-indeterminate": u }, d),
          icon: b.cloneElement(v, { fontSize: (r = v.props.fontSize) != null ? r : p }),
          checkedIcon: b.cloneElement(C, { fontSize: (o = C.props.fontSize) != null ? o : p }),
          ownerState: y,
          ref: n,
          className: ue(g.root, h),
        },
        m,
        { classes: g }
      )
    );
  }),
  I9 = (e, t) =>
    S(
      {
        WebkitFontSmoothing: "antialiased",
        MozOsxFontSmoothing: "grayscale",
        boxSizing: "border-box",
        WebkitTextSizeAdjust: "100%",
      },
      t && !e.vars && { colorScheme: e.palette.mode }
    ),
  O9 = (e) =>
    S({ color: (e.vars || e).palette.text.primary }, e.typography.body1, {
      backgroundColor: (e.vars || e).palette.background.default,
      "@media print": { backgroundColor: (e.vars || e).palette.common.white },
    }),
  WF = (e, t = !1) => {
    var n;
    const r = {};
    t &&
      e.colorSchemes &&
      Object.entries(e.colorSchemes).forEach(([s, a]) => {
        var l;
        r[e.getColorSchemeSelector(s).replace(/\s*&/, "")] = { colorScheme: (l = a.palette) == null ? void 0 : l.mode };
      });
    let o = S(
      {
        html: I9(e, t),
        "*, *::before, *::after": { boxSizing: "inherit" },
        "strong, b": { fontWeight: e.typography.fontWeightBold },
        body: S({ margin: 0 }, O9(e), { "&::backdrop": { backgroundColor: (e.vars || e).palette.background.default } }),
      },
      r
    );
    const i = (n = e.components) == null || (n = n.MuiCssBaseline) == null ? void 0 : n.styleOverrides;
    return i && (o = [o, i]), o;
  };
function GF(e) {
  const t = ke({ props: e, name: "MuiCssBaseline" }),
    { children: n, enableColorScheme: r = !1 } = t;
  return f.jsxs(b.Fragment, { children: [f.jsx(A9, { styles: (o) => WF(o, r) }), n] });
}
function UF(e) {
  return Ae("MuiModal", e);
}
Se("MuiModal", ["root", "hidden", "backdrop"]);
const YF = [
    "BackdropComponent",
    "BackdropProps",
    "classes",
    "className",
    "closeAfterTransition",
    "children",
    "container",
    "component",
    "components",
    "componentsProps",
    "disableAutoFocus",
    "disableEnforceFocus",
    "disableEscapeKeyDown",
    "disablePortal",
    "disableRestoreFocus",
    "disableScrollLock",
    "hideBackdrop",
    "keepMounted",
    "onBackdropClick",
    "onClose",
    "onTransitionEnter",
    "onTransitionExited",
    "open",
    "slotProps",
    "slots",
    "theme",
  ],
  KF = (e) => {
    const { open: t, exited: n, classes: r } = e;
    return Ee({ root: ["root", !t && n && "hidden"], backdrop: ["backdrop"] }, UF, r);
  },
  XF = W("div", {
    name: "MuiModal",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, !n.open && n.exited && t.hidden];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { position: "fixed", zIndex: (e.vars || e).zIndex.modal, right: 0, bottom: 0, top: 0, left: 0 },
      !t.open && t.exited && { visibility: "hidden" }
    )
  ),
  qF = W(_9, { name: "MuiModal", slot: "Backdrop", overridesResolver: (e, t) => t.backdrop })({ zIndex: -1 }),
  t5 = b.forwardRef(function (t, n) {
    var r, o, i, s, a, l;
    const u = ke({ name: "MuiModal", props: t }),
      {
        BackdropComponent: c = qF,
        BackdropProps: d,
        className: p,
        closeAfterTransition: h = !1,
        children: m,
        container: v,
        component: C,
        components: y = {},
        componentsProps: g = {},
        disableAutoFocus: x = !1,
        disableEnforceFocus: w = !1,
        disableEscapeKeyDown: k = !1,
        disablePortal: M = !1,
        disableRestoreFocus: T = !1,
        disableScrollLock: P = !1,
        hideBackdrop: A = !1,
        keepMounted: D = !1,
        onBackdropClick: R,
        open: L,
        slotProps: F,
        slots: O,
      } = u,
      E = ee(u, YF),
      B = S({}, u, {
        closeAfterTransition: h,
        disableAutoFocus: x,
        disableEnforceFocus: w,
        disableEscapeKeyDown: k,
        disablePortal: M,
        disableRestoreFocus: T,
        disableScrollLock: P,
        hideBackdrop: A,
        keepMounted: D,
      }),
      {
        getRootProps: j,
        getBackdropProps: _,
        getTransitionProps: I,
        portalRef: $,
        isTopModal: J,
        exited: oe,
        hasTransition: pe,
      } = gI(S({}, B, { rootRef: n })),
      z = S({}, B, { exited: oe }),
      ae = KF(z),
      me = {};
    if ((m.props.tabIndex === void 0 && (me.tabIndex = "-1"), pe)) {
      const { onEnter: V, onExited: K } = I();
      (me.onEnter = V), (me.onExited = K);
    }
    const X = (r = (o = O == null ? void 0 : O.root) != null ? o : y.Root) != null ? r : XF,
      ge = (i = (s = O == null ? void 0 : O.backdrop) != null ? s : y.Backdrop) != null ? i : c,
      Pe = (a = F == null ? void 0 : F.root) != null ? a : g.root,
      _e = (l = F == null ? void 0 : F.backdrop) != null ? l : g.backdrop,
      ie = qe({
        elementType: X,
        externalSlotProps: Pe,
        externalForwardedProps: E,
        getSlotProps: j,
        additionalProps: { ref: n, as: C },
        ownerState: z,
        className: ue(
          p,
          Pe == null ? void 0 : Pe.className,
          ae == null ? void 0 : ae.root,
          !z.open && z.exited && (ae == null ? void 0 : ae.hidden)
        ),
      }),
      ne = qe({
        elementType: ge,
        externalSlotProps: _e,
        additionalProps: d,
        getSlotProps: (V) =>
          _(
            S({}, V, {
              onClick: (K) => {
                R && R(K), V != null && V.onClick && V.onClick(K);
              },
            })
          ),
        className: ue(
          _e == null ? void 0 : _e.className,
          d == null ? void 0 : d.className,
          ae == null ? void 0 : ae.backdrop
        ),
        ownerState: z,
      });
    return !D && !L && (!pe || oe)
      ? null
      : f.jsx(m9, {
          ref: $,
          container: v,
          disablePortal: M,
          children: f.jsxs(
            X,
            S({}, ie, {
              children: [
                !A && c ? f.jsx(ge, S({}, ne)) : null,
                f.jsx(h9, {
                  disableEnforceFocus: w,
                  disableAutoFocus: x,
                  disableRestoreFocus: T,
                  isEnabled: J,
                  open: L,
                  children: b.cloneElement(m, me),
                }),
              ],
            })
          ),
        });
  });
function ZF(e) {
  return Ae("MuiDialog", e);
}
const uu = Se("MuiDialog", [
    "root",
    "scrollPaper",
    "scrollBody",
    "container",
    "paper",
    "paperScrollPaper",
    "paperScrollBody",
    "paperWidthFalse",
    "paperWidthXs",
    "paperWidthSm",
    "paperWidthMd",
    "paperWidthLg",
    "paperWidthXl",
    "paperFullWidth",
    "paperFullScreen",
  ]),
  JF = b.createContext({}),
  QF = [
    "aria-describedby",
    "aria-labelledby",
    "BackdropComponent",
    "BackdropProps",
    "children",
    "className",
    "disableEscapeKeyDown",
    "fullScreen",
    "fullWidth",
    "maxWidth",
    "onBackdropClick",
    "onClick",
    "onClose",
    "open",
    "PaperComponent",
    "PaperProps",
    "scroll",
    "TransitionComponent",
    "transitionDuration",
    "TransitionProps",
  ],
  eL = W(_9, { name: "MuiDialog", slot: "Backdrop", overrides: (e, t) => t.backdrop })({ zIndex: -1 }),
  tL = (e) => {
    const { classes: t, scroll: n, maxWidth: r, fullWidth: o, fullScreen: i } = e,
      s = {
        root: ["root"],
        container: ["container", `scroll${Q(n)}`],
        paper: [
          "paper",
          `paperScroll${Q(n)}`,
          `paperWidth${Q(String(r))}`,
          o && "paperFullWidth",
          i && "paperFullScreen",
        ],
      };
    return Ee(s, ZF, t);
  },
  nL = W(t5, { name: "MuiDialog", slot: "Root", overridesResolver: (e, t) => t.root })({
    "@media print": { position: "absolute" },
  }),
  rL = W("div", {
    name: "MuiDialog",
    slot: "Container",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.container, t[`scroll${Q(n.scroll)}`]];
    },
  })(({ ownerState: e }) =>
    S(
      { height: "100%", "@media print": { height: "auto" }, outline: 0 },
      e.scroll === "paper" && { display: "flex", justifyContent: "center", alignItems: "center" },
      e.scroll === "body" && {
        overflowY: "auto",
        overflowX: "hidden",
        textAlign: "center",
        "&::after": { content: '""', display: "inline-block", verticalAlign: "middle", height: "100%", width: "0" },
      }
    )
  ),
  oL = W(Ss, {
    name: "MuiDialog",
    slot: "Paper",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.paper,
        t[`scrollPaper${Q(n.scroll)}`],
        t[`paperWidth${Q(String(n.maxWidth))}`],
        n.fullWidth && t.paperFullWidth,
        n.fullScreen && t.paperFullScreen,
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        margin: 32,
        position: "relative",
        overflowY: "auto",
        "@media print": { overflowY: "visible", boxShadow: "none" },
      },
      t.scroll === "paper" && { display: "flex", flexDirection: "column", maxHeight: "calc(100% - 64px)" },
      t.scroll === "body" && { display: "inline-block", verticalAlign: "middle", textAlign: "left" },
      !t.maxWidth && { maxWidth: "calc(100% - 64px)" },
      t.maxWidth === "xs" && {
        maxWidth:
          e.breakpoints.unit === "px"
            ? Math.max(e.breakpoints.values.xs, 444)
            : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
        [`&.${uu.paperScrollBody}`]: {
          [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: { maxWidth: "calc(100% - 64px)" },
        },
      },
      t.maxWidth &&
        t.maxWidth !== "xs" && {
          maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
          [`&.${uu.paperScrollBody}`]: {
            [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: { maxWidth: "calc(100% - 64px)" },
          },
        },
      t.fullWidth && { width: "calc(100% - 64px)" },
      t.fullScreen && {
        margin: 0,
        width: "100%",
        maxWidth: "100%",
        height: "100%",
        maxHeight: "none",
        borderRadius: 0,
        [`&.${uu.paperScrollBody}`]: { margin: 0, maxWidth: "100%" },
      }
    )
  ),
  F9 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiDialog" }),
      o = Re(),
      i = { enter: o.transitions.duration.enteringScreen, exit: o.transitions.duration.leavingScreen },
      {
        "aria-describedby": s,
        "aria-labelledby": a,
        BackdropComponent: l,
        BackdropProps: u,
        children: c,
        className: d,
        disableEscapeKeyDown: p = !1,
        fullScreen: h = !1,
        fullWidth: m = !1,
        maxWidth: v = "sm",
        onBackdropClick: C,
        onClick: y,
        onClose: g,
        open: x,
        PaperComponent: w = Ss,
        PaperProps: k = {},
        scroll: M = "paper",
        TransitionComponent: T = Ii,
        transitionDuration: P = i,
        TransitionProps: A,
      } = r,
      D = ee(r, QF),
      R = S({}, r, { disableEscapeKeyDown: p, fullScreen: h, fullWidth: m, maxWidth: v, scroll: M }),
      L = tL(R),
      F = b.useRef(),
      O = (_) => {
        F.current = _.target === _.currentTarget;
      },
      E = (_) => {
        y && y(_), F.current && ((F.current = null), C && C(_), g && g(_, "backdropClick"));
      },
      B = po(a),
      j = b.useMemo(() => ({ titleId: B }), [B]);
    return f.jsx(
      nL,
      S(
        {
          className: ue(L.root, d),
          closeAfterTransition: !0,
          components: { Backdrop: eL },
          componentsProps: { backdrop: S({ transitionDuration: P, as: l }, u) },
          disableEscapeKeyDown: p,
          onClose: g,
          open: x,
          ref: n,
          onClick: E,
          ownerState: R,
        },
        D,
        {
          children: f.jsx(
            T,
            S({ appear: !0, in: x, timeout: P, role: "presentation" }, A, {
              children: f.jsx(rL, {
                className: ue(L.container),
                onMouseDown: O,
                ownerState: R,
                children: f.jsx(
                  oL,
                  S({ as: w, elevation: 24, role: "dialog", "aria-describedby": s, "aria-labelledby": B }, k, {
                    className: ue(L.paper, k.className),
                    ownerState: R,
                    children: f.jsx(JF.Provider, { value: j, children: c }),
                  })
                ),
              }),
            })
          ),
        }
      )
    );
  });
function iL(e) {
  return Ae("MuiDialogActions", e);
}
Se("MuiDialogActions", ["root", "spacing"]);
const sL = ["className", "disableSpacing"],
  aL = (e) => {
    const { classes: t, disableSpacing: n } = e;
    return Ee({ root: ["root", !n && "spacing"] }, iL, t);
  },
  lL = W("div", {
    name: "MuiDialogActions",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, !n.disableSpacing && t.spacing];
    },
  })(({ ownerState: e }) =>
    S(
      { display: "flex", alignItems: "center", padding: 8, justifyContent: "flex-end", flex: "0 0 auto" },
      !e.disableSpacing && { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }
    )
  ),
  uL = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiDialogActions" }),
      { className: o, disableSpacing: i = !1 } = r,
      s = ee(r, sL),
      a = S({}, r, { disableSpacing: i }),
      l = aL(a);
    return f.jsx(lL, S({ className: ue(l.root, o), ownerState: a, ref: n }, s));
  });
function cL(e) {
  return Ae("MuiDialogContent", e);
}
Se("MuiDialogContent", ["root", "dividers"]);
const dL = Se("MuiDialogTitle", ["root"]),
  fL = ["className", "dividers"],
  pL = (e) => {
    const { classes: t, dividers: n } = e;
    return Ee({ root: ["root", n && "dividers"] }, cL, t);
  },
  hL = W("div", {
    name: "MuiDialogContent",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.dividers && t.dividers];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { flex: "1 1 auto", WebkitOverflowScrolling: "touch", overflowY: "auto", padding: "20px 24px" },
      t.dividers
        ? {
            padding: "16px 24px",
            borderTop: `1px solid ${(e.vars || e).palette.divider}`,
            borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
          }
        : { [`.${dL.root} + &`]: { paddingTop: 0 } }
    )
  ),
  mL = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiDialogContent" }),
      { className: o, dividers: i = !1 } = r,
      s = ee(r, fL),
      a = S({}, r, { dividers: i }),
      l = pL(a);
    return f.jsx(hL, S({ className: ue(l.root, o), ownerState: a, ref: n }, s));
  }),
  E7 = Se("MuiDivider", [
    "root",
    "absolute",
    "fullWidth",
    "inset",
    "middle",
    "flexItem",
    "light",
    "vertical",
    "withChildren",
    "withChildrenVertical",
    "textAlignRight",
    "textAlignLeft",
    "wrapper",
    "wrapperVertical",
  ]),
  gL = [
    "addEndListener",
    "appear",
    "children",
    "container",
    "direction",
    "easing",
    "in",
    "onEnter",
    "onEntered",
    "onEntering",
    "onExit",
    "onExited",
    "onExiting",
    "style",
    "timeout",
    "TransitionComponent",
  ];
function yL(e, t, n) {
  const r = t.getBoundingClientRect(),
    o = n && n.getBoundingClientRect(),
    i = ao(t);
  let s;
  if (t.fakeTransform) s = t.fakeTransform;
  else {
    const u = i.getComputedStyle(t);
    s = u.getPropertyValue("-webkit-transform") || u.getPropertyValue("transform");
  }
  let a = 0,
    l = 0;
  if (s && s !== "none" && typeof s == "string") {
    const u = s.split("(")[1].split(")")[0].split(",");
    (a = parseInt(u[4], 10)), (l = parseInt(u[5], 10));
  }
  return e === "left"
    ? o
      ? `translateX(${o.right + a - r.left}px)`
      : `translateX(${i.innerWidth + a - r.left}px)`
    : e === "right"
      ? o
        ? `translateX(-${r.right - o.left - a}px)`
        : `translateX(-${r.left + r.width - a}px)`
      : e === "up"
        ? o
          ? `translateY(${o.bottom + l - r.top}px)`
          : `translateY(${i.innerHeight + l - r.top}px)`
        : o
          ? `translateY(-${r.top - o.top + r.height - l}px)`
          : `translateY(-${r.top + r.height - l}px)`;
}
function vL(e) {
  return typeof e == "function" ? e() : e;
}
function ud(e, t, n) {
  const r = vL(n),
    o = yL(e, t, r);
  o && ((t.style.webkitTransform = o), (t.style.transform = o));
}
const xL = b.forwardRef(function (t, n) {
    const r = Re(),
      o = { enter: r.transitions.easing.easeOut, exit: r.transitions.easing.sharp },
      i = { enter: r.transitions.duration.enteringScreen, exit: r.transitions.duration.leavingScreen },
      {
        addEndListener: s,
        appear: a = !0,
        children: l,
        container: u,
        direction: c = "down",
        easing: d = o,
        in: p,
        onEnter: h,
        onEntered: m,
        onEntering: v,
        onExit: C,
        onExited: y,
        onExiting: g,
        style: x,
        timeout: w = i,
        TransitionComponent: k = wr,
      } = t,
      M = ee(t, gL),
      T = b.useRef(null),
      P = tt(l.ref, T, n),
      A = (_) => (I) => {
        _ && (I === void 0 ? _(T.current) : _(T.current, I));
      },
      D = A((_, I) => {
        ud(c, _, u), zg(_), h && h(_, I);
      }),
      R = A((_, I) => {
        const $ = Ha({ timeout: w, style: x, easing: d }, { mode: "enter" });
        (_.style.webkitTransition = r.transitions.create("-webkit-transform", S({}, $))),
          (_.style.transition = r.transitions.create("transform", S({}, $))),
          (_.style.webkitTransform = "none"),
          (_.style.transform = "none"),
          v && v(_, I);
      }),
      L = A(m),
      F = A(g),
      O = A((_) => {
        const I = Ha({ timeout: w, style: x, easing: d }, { mode: "exit" });
        (_.style.webkitTransition = r.transitions.create("-webkit-transform", I)),
          (_.style.transition = r.transitions.create("transform", I)),
          ud(c, _, u),
          C && C(_);
      }),
      E = A((_) => {
        (_.style.webkitTransition = ""), (_.style.transition = ""), y && y(_);
      }),
      B = (_) => {
        s && s(T.current, _);
      },
      j = b.useCallback(() => {
        T.current && ud(c, T.current, u);
      }, [c, u]);
    return (
      b.useEffect(() => {
        if (p || c === "down" || c === "right") return;
        const _ = Vp(() => {
            T.current && ud(c, T.current, u);
          }),
          I = ao(T.current);
        return (
          I.addEventListener("resize", _),
          () => {
            _.clear(), I.removeEventListener("resize", _);
          }
        );
      }, [c, p, u]),
      b.useEffect(() => {
        p || j();
      }, [p, j]),
      f.jsx(
        k,
        S(
          {
            nodeRef: T,
            onEnter: D,
            onEntered: L,
            onEntering: R,
            onExit: O,
            onExited: E,
            onExiting: F,
            addEndListener: B,
            appear: a,
            in: p,
            timeout: w,
          },
          M,
          {
            children: (_, I) =>
              b.cloneElement(
                l,
                S({ ref: P, style: S({ visibility: _ === "exited" && !p ? "hidden" : void 0 }, x, l.props.style) }, I)
              ),
          }
        )
      )
    );
  }),
  bL = [
    "disableUnderline",
    "components",
    "componentsProps",
    "fullWidth",
    "hiddenLabel",
    "inputComponent",
    "multiline",
    "slotProps",
    "slots",
    "type",
  ],
  CL = (e) => {
    const { classes: t, disableUnderline: n } = e,
      o = Ee({ root: ["root", !n && "underline"], input: ["input"] }, dF, t);
    return S({}, t, o);
  },
  wL = W(w0, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiFilledInput",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [...b0(e, t), !n.disableUnderline && t.underline];
    },
  })(({ theme: e, ownerState: t }) => {
    var n;
    const r = e.palette.mode === "light",
      o = r ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)",
      i = r ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)",
      s = r ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)",
      a = r ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
    return S(
      {
        position: "relative",
        backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i,
        borderTopLeftRadius: (e.vars || e).shape.borderRadius,
        borderTopRightRadius: (e.vars || e).shape.borderRadius,
        transition: e.transitions.create("background-color", {
          duration: e.transitions.duration.shorter,
          easing: e.transitions.easing.easeOut,
        }),
        "&:hover": {
          backgroundColor: e.vars ? e.vars.palette.FilledInput.hoverBg : s,
          "@media (hover: none)": { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i },
        },
        [`&.${Ni.focused}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i },
        [`&.${Ni.disabled}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.disabledBg : a },
      },
      !t.disableUnderline && {
        "&::after": {
          borderBottom: `2px solid ${(n = (e.vars || e).palette[t.color || "primary"]) == null ? void 0 : n.main}`,
          left: 0,
          bottom: 0,
          content: '""',
          position: "absolute",
          right: 0,
          transform: "scaleX(0)",
          transition: e.transitions.create("transform", {
            duration: e.transitions.duration.shorter,
            easing: e.transitions.easing.easeOut,
          }),
          pointerEvents: "none",
        },
        [`&.${Ni.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
        [`&.${Ni.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
        "&::before": {
          borderBottom: `1px solid ${e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})` : o}`,
          left: 0,
          bottom: 0,
          content: '"\\00a0"',
          position: "absolute",
          right: 0,
          transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
          pointerEvents: "none",
        },
        [`&:hover:not(.${Ni.disabled}, .${Ni.error}):before`]: {
          borderBottom: `1px solid ${(e.vars || e).palette.text.primary}`,
        },
        [`&.${Ni.disabled}:before`]: { borderBottomStyle: "dotted" },
      },
      t.startAdornment && { paddingLeft: 12 },
      t.endAdornment && { paddingRight: 12 },
      t.multiline &&
        S(
          { padding: "25px 12px 8px" },
          t.size === "small" && { paddingTop: 21, paddingBottom: 4 },
          t.hiddenLabel && { paddingTop: 16, paddingBottom: 17 },
          t.hiddenLabel && t.size === "small" && { paddingTop: 8, paddingBottom: 9 }
        )
    );
  }),
  SL = W(S0, { name: "MuiFilledInput", slot: "Input", overridesResolver: C0 })(({ theme: e, ownerState: t }) =>
    S(
      { paddingTop: 25, paddingRight: 12, paddingBottom: 8, paddingLeft: 12 },
      !e.vars && {
        "&:-webkit-autofill": {
          WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
          WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
          caretColor: e.palette.mode === "light" ? null : "#fff",
          borderTopLeftRadius: "inherit",
          borderTopRightRadius: "inherit",
        },
      },
      e.vars && {
        "&:-webkit-autofill": { borderTopLeftRadius: "inherit", borderTopRightRadius: "inherit" },
        [e.getColorSchemeSelector("dark")]: {
          "&:-webkit-autofill": {
            WebkitBoxShadow: "0 0 0 100px #266798 inset",
            WebkitTextFillColor: "#fff",
            caretColor: "#fff",
          },
        },
      },
      t.size === "small" && { paddingTop: 21, paddingBottom: 4 },
      t.hiddenLabel && { paddingTop: 16, paddingBottom: 17 },
      t.startAdornment && { paddingLeft: 0 },
      t.endAdornment && { paddingRight: 0 },
      t.hiddenLabel && t.size === "small" && { paddingTop: 8, paddingBottom: 9 },
      t.multiline && { paddingTop: 0, paddingBottom: 0, paddingLeft: 0, paddingRight: 0 }
    )
  ),
  n5 = b.forwardRef(function (t, n) {
    var r, o, i, s;
    const a = ke({ props: t, name: "MuiFilledInput" }),
      {
        components: l = {},
        componentsProps: u,
        fullWidth: c = !1,
        inputComponent: d = "input",
        multiline: p = !1,
        slotProps: h,
        slots: m = {},
        type: v = "text",
      } = a,
      C = ee(a, bL),
      y = S({}, a, { fullWidth: c, inputComponent: d, multiline: p, type: v }),
      g = CL(a),
      x = { root: { ownerState: y }, input: { ownerState: y } },
      w = h ?? u ? Cn(x, h ?? u) : x,
      k = (r = (o = m.root) != null ? o : l.Root) != null ? r : wL,
      M = (i = (s = m.input) != null ? s : l.Input) != null ? i : SL;
    return f.jsx(
      Qg,
      S(
        {
          slots: { root: k, input: M },
          componentsProps: w,
          fullWidth: c,
          inputComponent: d,
          multiline: p,
          ref: n,
          type: v,
        },
        C,
        { classes: g }
      )
    );
  });
n5.muiName = "Input";
function kL(e) {
  return Ae("MuiFormControl", e);
}
Se("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
const TL = [
    "children",
    "className",
    "color",
    "component",
    "disabled",
    "error",
    "focused",
    "fullWidth",
    "hiddenLabel",
    "margin",
    "required",
    "size",
    "variant",
  ],
  ML = (e) => {
    const { classes: t, margin: n, fullWidth: r } = e,
      o = { root: ["root", n !== "none" && `margin${Q(n)}`, r && "fullWidth"] };
    return Ee(o, kL, t);
  },
  EL = W("div", {
    name: "MuiFormControl",
    slot: "Root",
    overridesResolver: ({ ownerState: e }, t) => S({}, t.root, t[`margin${Q(e.margin)}`], e.fullWidth && t.fullWidth),
  })(({ ownerState: e }) =>
    S(
      {
        display: "inline-flex",
        flexDirection: "column",
        position: "relative",
        minWidth: 0,
        padding: 0,
        margin: 0,
        border: 0,
        verticalAlign: "top",
      },
      e.margin === "normal" && { marginTop: 16, marginBottom: 8 },
      e.margin === "dense" && { marginTop: 8, marginBottom: 4 },
      e.fullWidth && { width: "100%" }
    )
  ),
  vc = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiFormControl" }),
      {
        children: o,
        className: i,
        color: s = "primary",
        component: a = "div",
        disabled: l = !1,
        error: u = !1,
        focused: c,
        fullWidth: d = !1,
        hiddenLabel: p = !1,
        margin: h = "none",
        required: m = !1,
        size: v = "medium",
        variant: C = "outlined",
      } = r,
      y = ee(r, TL),
      g = S({}, r, {
        color: s,
        component: a,
        disabled: l,
        error: u,
        fullWidth: d,
        hiddenLabel: p,
        margin: h,
        required: m,
        size: v,
        variant: C,
      }),
      x = ML(g),
      [w, k] = b.useState(() => {
        let F = !1;
        return (
          o &&
            b.Children.forEach(o, (O) => {
              if (!Xl(O, ["Input", "Select"])) return;
              const E = Xl(O, ["Select"]) ? O.props.input : O;
              E && rF(E.props) && (F = !0);
            }),
          F
        );
      }),
      [M, T] = b.useState(() => {
        let F = !1;
        return (
          o &&
            b.Children.forEach(o, (O) => {
              Xl(O, ["Input", "Select"]) && (Vf(O.props, !0) || Vf(O.props.inputProps, !0)) && (F = !0);
            }),
          F
        );
      }),
      [P, A] = b.useState(!1);
    l && P && A(!1);
    const D = c !== void 0 && !l ? c : P;
    let R;
    const L = b.useMemo(
      () => ({
        adornedStart: w,
        setAdornedStart: k,
        color: s,
        disabled: l,
        error: u,
        filled: M,
        focused: D,
        fullWidth: d,
        hiddenLabel: p,
        size: v,
        onBlur: () => {
          A(!1);
        },
        onEmpty: () => {
          T(!1);
        },
        onFilled: () => {
          T(!0);
        },
        onFocus: () => {
          A(!0);
        },
        registerEffect: R,
        required: m,
        variant: C,
      }),
      [w, s, l, u, M, D, d, p, R, m, v, C]
    );
    return f.jsx(x0.Provider, {
      value: L,
      children: f.jsx(EL, S({ as: a, ownerState: g, className: ue(x.root, i), ref: n }, y, { children: o })),
    });
  }),
  PL = VP({
    createStyledComponent: W("div", { name: "MuiStack", slot: "Root", overridesResolver: (e, t) => t.root }),
    useThemeProps: (e) => ke({ props: e, name: "MuiStack" }),
  });
function AL(e) {
  return Ae("MuiFormControlLabel", e);
}
const Yl = Se("MuiFormControlLabel", [
    "root",
    "labelPlacementStart",
    "labelPlacementTop",
    "labelPlacementBottom",
    "disabled",
    "label",
    "error",
    "required",
    "asterisk",
  ]),
  _L = [
    "checked",
    "className",
    "componentsProps",
    "control",
    "disabled",
    "disableTypography",
    "inputRef",
    "label",
    "labelPlacement",
    "name",
    "onChange",
    "required",
    "slotProps",
    "value",
  ],
  DL = (e) => {
    const { classes: t, disabled: n, labelPlacement: r, error: o, required: i } = e,
      s = {
        root: ["root", n && "disabled", `labelPlacement${Q(r)}`, o && "error", i && "required"],
        label: ["label", n && "disabled"],
        asterisk: ["asterisk", o && "error"],
      };
    return Ee(s, AL, t);
  },
  RL = W("label", {
    name: "MuiFormControlLabel",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [{ [`& .${Yl.label}`]: t.label }, t.root, t[`labelPlacement${Q(n.labelPlacement)}`]];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "inline-flex",
        alignItems: "center",
        cursor: "pointer",
        verticalAlign: "middle",
        WebkitTapHighlightColor: "transparent",
        marginLeft: -11,
        marginRight: 16,
        [`&.${Yl.disabled}`]: { cursor: "default" },
      },
      t.labelPlacement === "start" && { flexDirection: "row-reverse", marginLeft: 16, marginRight: -11 },
      t.labelPlacement === "top" && { flexDirection: "column-reverse", marginLeft: 16 },
      t.labelPlacement === "bottom" && { flexDirection: "column", marginLeft: 16 },
      { [`& .${Yl.label}`]: { [`&.${Yl.disabled}`]: { color: (e.vars || e).palette.text.disabled } } }
    )
  ),
  IL = W("span", { name: "MuiFormControlLabel", slot: "Asterisk", overridesResolver: (e, t) => t.asterisk })(
    ({ theme: e }) => ({ [`&.${Yl.error}`]: { color: (e.vars || e).palette.error.main } })
  ),
  Ka = b.forwardRef(function (t, n) {
    var r, o;
    const i = ke({ props: t, name: "MuiFormControlLabel" }),
      {
        className: s,
        componentsProps: a = {},
        control: l,
        disabled: u,
        disableTypography: c,
        label: d,
        labelPlacement: p = "end",
        required: h,
        slotProps: m = {},
      } = i,
      v = ee(i, _L),
      C = ho(),
      y = (r = u ?? l.props.disabled) != null ? r : C == null ? void 0 : C.disabled,
      g = h ?? l.props.required,
      x = { disabled: y, required: g };
    ["checked", "name", "onChange", "value", "inputRef"].forEach((A) => {
      typeof l.props[A] > "u" && typeof i[A] < "u" && (x[A] = i[A]);
    });
    const w = Ri({ props: i, muiFormControl: C, states: ["error"] }),
      k = S({}, i, { disabled: y, labelPlacement: p, required: g, error: w.error }),
      M = DL(k),
      T = (o = m.typography) != null ? o : a.typography;
    let P = d;
    return (
      P != null &&
        P.type !== xe &&
        !c &&
        (P = f.jsx(
          xe,
          S({ component: "span" }, T, { className: ue(M.label, T == null ? void 0 : T.className), children: P })
        )),
      f.jsxs(
        RL,
        S({ className: ue(M.root, s), ownerState: k, ref: n }, v, {
          children: [
            b.cloneElement(l, x),
            g
              ? f.jsxs(PL, {
                  display: "block",
                  children: [
                    P,
                    f.jsxs(IL, { ownerState: k, "aria-hidden": !0, className: M.asterisk, children: [" ", "*"] }),
                  ],
                })
              : P,
          ],
        })
      )
    );
  });
function OL(e) {
  return Ae("MuiFormGroup", e);
}
Se("MuiFormGroup", ["root", "row", "error"]);
const FL = ["className", "row"],
  LL = (e) => {
    const { classes: t, row: n, error: r } = e;
    return Ee({ root: ["root", n && "row", r && "error"] }, OL, t);
  },
  NL = W("div", {
    name: "MuiFormGroup",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.row && t.row];
    },
  })(({ ownerState: e }) =>
    S({ display: "flex", flexDirection: "column", flexWrap: "wrap" }, e.row && { flexDirection: "row" })
  ),
  L9 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiFormGroup" }),
      { className: o, row: i = !1 } = r,
      s = ee(r, FL),
      a = ho(),
      l = Ri({ props: r, muiFormControl: a, states: ["error"] }),
      u = S({}, r, { row: i, error: l.error }),
      c = LL(u);
    return f.jsx(NL, S({ className: ue(c.root, o), ownerState: u, ref: n }, s));
  });
function $L(e) {
  return Ae("MuiFormHelperText", e);
}
const P7 = Se("MuiFormHelperText", [
  "root",
  "error",
  "disabled",
  "sizeSmall",
  "sizeMedium",
  "contained",
  "focused",
  "filled",
  "required",
]);
var A7;
const BL = [
    "children",
    "className",
    "component",
    "disabled",
    "error",
    "filled",
    "focused",
    "margin",
    "required",
    "variant",
  ],
  jL = (e) => {
    const { classes: t, contained: n, size: r, disabled: o, error: i, filled: s, focused: a, required: l } = e,
      u = {
        root: [
          "root",
          o && "disabled",
          i && "error",
          r && `size${Q(r)}`,
          n && "contained",
          a && "focused",
          s && "filled",
          l && "required",
        ],
      };
    return Ee(u, $L, t);
  },
  VL = W("p", {
    name: "MuiFormHelperText",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.size && t[`size${Q(n.size)}`], n.contained && t.contained, n.filled && t.filled];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { color: (e.vars || e).palette.text.secondary },
      e.typography.caption,
      {
        textAlign: "left",
        marginTop: 3,
        marginRight: 0,
        marginBottom: 0,
        marginLeft: 0,
        [`&.${P7.disabled}`]: { color: (e.vars || e).palette.text.disabled },
        [`&.${P7.error}`]: { color: (e.vars || e).palette.error.main },
      },
      t.size === "small" && { marginTop: 4 },
      t.contained && { marginLeft: 14, marginRight: 14 }
    )
  ),
  HL = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiFormHelperText" }),
      { children: o, className: i, component: s = "p" } = r,
      a = ee(r, BL),
      l = ho(),
      u = Ri({
        props: r,
        muiFormControl: l,
        states: ["variant", "size", "disabled", "error", "filled", "focused", "required"],
      }),
      c = S({}, r, {
        component: s,
        contained: u.variant === "filled" || u.variant === "outlined",
        variant: u.variant,
        size: u.size,
        disabled: u.disabled,
        error: u.error,
        filled: u.filled,
        focused: u.focused,
        required: u.required,
      }),
      d = jL(c);
    return f.jsx(
      VL,
      S({ as: s, ownerState: c, className: ue(d.root, i), ref: n }, a, {
        children: o === " " ? A7 || (A7 = f.jsx("span", { className: "notranslate", children: "​" })) : o,
      })
    );
  });
function zL(e) {
  return Ae("MuiFormLabel", e);
}
const cu = Se("MuiFormLabel", [
    "root",
    "colorSecondary",
    "focused",
    "disabled",
    "error",
    "filled",
    "required",
    "asterisk",
  ]),
  WL = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"],
  GL = (e) => {
    const { classes: t, color: n, focused: r, disabled: o, error: i, filled: s, required: a } = e,
      l = {
        root: ["root", `color${Q(n)}`, o && "disabled", i && "error", s && "filled", r && "focused", a && "required"],
        asterisk: ["asterisk", i && "error"],
      };
    return Ee(l, zL, t);
  },
  UL = W("label", {
    name: "MuiFormLabel",
    slot: "Root",
    overridesResolver: ({ ownerState: e }, t) =>
      S({}, t.root, e.color === "secondary" && t.colorSecondary, e.filled && t.filled),
  })(({ theme: e, ownerState: t }) =>
    S({ color: (e.vars || e).palette.text.secondary }, e.typography.body1, {
      lineHeight: "1.4375em",
      padding: 0,
      position: "relative",
      [`&.${cu.focused}`]: { color: (e.vars || e).palette[t.color].main },
      [`&.${cu.disabled}`]: { color: (e.vars || e).palette.text.disabled },
      [`&.${cu.error}`]: { color: (e.vars || e).palette.error.main },
    })
  ),
  YL = W("span", { name: "MuiFormLabel", slot: "Asterisk", overridesResolver: (e, t) => t.asterisk })(
    ({ theme: e }) => ({ [`&.${cu.error}`]: { color: (e.vars || e).palette.error.main } })
  ),
  KL = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiFormLabel" }),
      { children: o, className: i, component: s = "label" } = r,
      a = ee(r, WL),
      l = ho(),
      u = Ri({ props: r, muiFormControl: l, states: ["color", "required", "focused", "disabled", "error", "filled"] }),
      c = S({}, r, {
        color: u.color || "primary",
        component: s,
        disabled: u.disabled,
        error: u.error,
        filled: u.filled,
        focused: u.focused,
        required: u.required,
      }),
      d = GL(c);
    return f.jsxs(
      UL,
      S({ as: s, ownerState: c, className: ue(d.root, i), ref: n }, a, {
        children: [
          o,
          u.required && f.jsxs(YL, { ownerState: c, "aria-hidden": !0, className: d.asterisk, children: [" ", "*"] }),
        ],
      })
    );
  }),
  XL = [
    "addEndListener",
    "appear",
    "children",
    "easing",
    "in",
    "onEnter",
    "onEntered",
    "onEntering",
    "onExit",
    "onExited",
    "onExiting",
    "style",
    "timeout",
    "TransitionComponent",
  ];
function Ym(e) {
  return `scale(${e}, ${e ** 2})`;
}
const qL = { entering: { opacity: 1, transform: Ym(1) }, entered: { opacity: 1, transform: "none" } },
  J1 =
    typeof navigator < "u" &&
    /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) &&
    /(os |version\/)15(.|_)4/i.test(navigator.userAgent),
  r5 = b.forwardRef(function (t, n) {
    const {
        addEndListener: r,
        appear: o = !0,
        children: i,
        easing: s,
        in: a,
        onEnter: l,
        onEntered: u,
        onEntering: c,
        onExit: d,
        onExited: p,
        onExiting: h,
        style: m,
        timeout: v = "auto",
        TransitionComponent: C = wr,
      } = t,
      y = ee(t, XL),
      g = Kv(),
      x = b.useRef(),
      w = Re(),
      k = b.useRef(null),
      M = tt(k, i.ref, n),
      T = (E) => (B) => {
        if (E) {
          const j = k.current;
          B === void 0 ? E(j) : E(j, B);
        }
      },
      P = T(c),
      A = T((E, B) => {
        zg(E);
        const { duration: j, delay: _, easing: I } = Ha({ style: m, timeout: v, easing: s }, { mode: "enter" });
        let $;
        v === "auto" ? (($ = w.transitions.getAutoHeightDuration(E.clientHeight)), (x.current = $)) : ($ = j),
          (E.style.transition = [
            w.transitions.create("opacity", { duration: $, delay: _ }),
            w.transitions.create("transform", { duration: J1 ? $ : $ * 0.666, delay: _, easing: I }),
          ].join(",")),
          l && l(E, B);
      }),
      D = T(u),
      R = T(h),
      L = T((E) => {
        const { duration: B, delay: j, easing: _ } = Ha({ style: m, timeout: v, easing: s }, { mode: "exit" });
        let I;
        v === "auto" ? ((I = w.transitions.getAutoHeightDuration(E.clientHeight)), (x.current = I)) : (I = B),
          (E.style.transition = [
            w.transitions.create("opacity", { duration: I, delay: j }),
            w.transitions.create("transform", {
              duration: J1 ? I : I * 0.666,
              delay: J1 ? j : j || I * 0.333,
              easing: _,
            }),
          ].join(",")),
          (E.style.opacity = 0),
          (E.style.transform = Ym(0.75)),
          d && d(E);
      }),
      F = T(p),
      O = (E) => {
        v === "auto" && g.start(x.current || 0, E), r && r(k.current, E);
      };
    return f.jsx(
      C,
      S(
        {
          appear: o,
          in: a,
          nodeRef: k,
          onEnter: A,
          onEntered: D,
          onEntering: P,
          onExit: L,
          onExited: F,
          onExiting: R,
          addEndListener: O,
          timeout: v === "auto" ? null : v,
        },
        y,
        {
          children: (E, B) =>
            b.cloneElement(
              i,
              S(
                {
                  style: S(
                    { opacity: 0, transform: Ym(0.75), visibility: E === "exited" && !a ? "hidden" : void 0 },
                    qL[E],
                    m,
                    i.props.style
                  ),
                  ref: M,
                },
                B
              )
            ),
        }
      )
    );
  });
r5.muiSupportAuto = !0;
const ZL = [
    "disableUnderline",
    "components",
    "componentsProps",
    "fullWidth",
    "inputComponent",
    "multiline",
    "slotProps",
    "slots",
    "type",
  ],
  JL = (e) => {
    const { classes: t, disableUnderline: n } = e,
      o = Ee({ root: ["root", !n && "underline"], input: ["input"] }, uF, t);
    return S({}, t, o);
  },
  QL = W(w0, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiInput",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [...b0(e, t), !n.disableUnderline && t.underline];
    },
  })(({ theme: e, ownerState: t }) => {
    let r = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
    return (
      e.vars && (r = `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),
      S(
        { position: "relative" },
        t.formControl && { "label + &": { marginTop: 16 } },
        !t.disableUnderline && {
          "&::after": {
            borderBottom: `2px solid ${(e.vars || e).palette[t.color].main}`,
            left: 0,
            bottom: 0,
            content: '""',
            position: "absolute",
            right: 0,
            transform: "scaleX(0)",
            transition: e.transitions.create("transform", {
              duration: e.transitions.duration.shorter,
              easing: e.transitions.easing.easeOut,
            }),
            pointerEvents: "none",
          },
          [`&.${Ml.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
          [`&.${Ml.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
          "&::before": {
            borderBottom: `1px solid ${r}`,
            left: 0,
            bottom: 0,
            content: '"\\00a0"',
            position: "absolute",
            right: 0,
            transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
            pointerEvents: "none",
          },
          [`&:hover:not(.${Ml.disabled}, .${Ml.error}):before`]: {
            borderBottom: `2px solid ${(e.vars || e).palette.text.primary}`,
            "@media (hover: none)": { borderBottom: `1px solid ${r}` },
          },
          [`&.${Ml.disabled}:before`]: { borderBottomStyle: "dotted" },
        }
      )
    );
  }),
  eN = W(S0, { name: "MuiInput", slot: "Input", overridesResolver: C0 })({}),
  ks = b.forwardRef(function (t, n) {
    var r, o, i, s;
    const a = ke({ props: t, name: "MuiInput" }),
      {
        disableUnderline: l,
        components: u = {},
        componentsProps: c,
        fullWidth: d = !1,
        inputComponent: p = "input",
        multiline: h = !1,
        slotProps: m,
        slots: v = {},
        type: C = "text",
      } = a,
      y = ee(a, ZL),
      g = JL(a),
      w = { root: { ownerState: { disableUnderline: l } } },
      k = m ?? c ? Cn(m ?? c, w) : w,
      M = (r = (o = v.root) != null ? o : u.Root) != null ? r : QL,
      T = (i = (s = v.input) != null ? s : u.Input) != null ? i : eN;
    return f.jsx(
      Qg,
      S(
        { slots: { root: M, input: T }, slotProps: k, fullWidth: d, inputComponent: p, multiline: h, ref: n, type: C },
        y,
        { classes: g }
      )
    );
  });
ks.muiName = "Input";
function tN(e) {
  return Ae("MuiInputAdornment", e);
}
const _7 = Se("MuiInputAdornment", [
  "root",
  "filled",
  "standard",
  "outlined",
  "positionStart",
  "positionEnd",
  "disablePointerEvents",
  "hiddenLabel",
  "sizeSmall",
]);
var D7;
const nN = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"],
  rN = (e, t) => {
    const { ownerState: n } = e;
    return [
      t.root,
      t[`position${Q(n.position)}`],
      n.disablePointerEvents === !0 && t.disablePointerEvents,
      t[n.variant],
    ];
  },
  oN = (e) => {
    const { classes: t, disablePointerEvents: n, hiddenLabel: r, position: o, size: i, variant: s } = e,
      a = {
        root: ["root", n && "disablePointerEvents", o && `position${Q(o)}`, s, r && "hiddenLabel", i && `size${Q(i)}`],
      };
    return Ee(a, tN, t);
  },
  iN = W("div", { name: "MuiInputAdornment", slot: "Root", overridesResolver: rN })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "flex",
        height: "0.01em",
        maxHeight: "2em",
        alignItems: "center",
        whiteSpace: "nowrap",
        color: (e.vars || e).palette.action.active,
      },
      t.variant === "filled" && { [`&.${_7.positionStart}&:not(.${_7.hiddenLabel})`]: { marginTop: 16 } },
      t.position === "start" && { marginRight: 8 },
      t.position === "end" && { marginLeft: 8 },
      t.disablePointerEvents === !0 && { pointerEvents: "none" }
    )
  ),
  Hf = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiInputAdornment" }),
      {
        children: o,
        className: i,
        component: s = "div",
        disablePointerEvents: a = !1,
        disableTypography: l = !1,
        position: u,
        variant: c,
      } = r,
      d = ee(r, nN),
      p = ho() || {};
    let h = c;
    c && p.variant, p && !h && (h = p.variant);
    const m = S({}, r, { hiddenLabel: p.hiddenLabel, size: p.size, disablePointerEvents: a, position: u, variant: h }),
      v = oN(m);
    return f.jsx(x0.Provider, {
      value: null,
      children: f.jsx(
        iN,
        S({ as: s, ownerState: m, className: ue(v.root, i), ref: n }, d, {
          children:
            typeof o == "string" && !l
              ? f.jsx(xe, { color: "text.secondary", children: o })
              : f.jsxs(b.Fragment, {
                  children: [
                    u === "start" ? D7 || (D7 = f.jsx("span", { className: "notranslate", children: "​" })) : null,
                    o,
                  ],
                }),
        })
      ),
    });
  });
function sN(e) {
  return Ae("MuiInputLabel", e);
}
Se("MuiInputLabel", [
  "root",
  "focused",
  "disabled",
  "error",
  "required",
  "asterisk",
  "formControl",
  "sizeSmall",
  "shrink",
  "animated",
  "standard",
  "filled",
  "outlined",
]);
const aN = ["disableAnimation", "margin", "shrink", "variant", "className"],
  lN = (e) => {
    const { classes: t, formControl: n, size: r, shrink: o, disableAnimation: i, variant: s, required: a } = e,
      l = {
        root: ["root", n && "formControl", !i && "animated", o && "shrink", r && r !== "normal" && `size${Q(r)}`, s],
        asterisk: [a && "asterisk"],
      },
      u = Ee(l, sN, t);
    return S({}, t, u);
  },
  uN = W(KL, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiInputLabel",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        { [`& .${cu.asterisk}`]: t.asterisk },
        t.root,
        n.formControl && t.formControl,
        n.size === "small" && t.sizeSmall,
        n.shrink && t.shrink,
        !n.disableAnimation && t.animated,
        n.focused && t.focused,
        t[n.variant],
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "block",
        transformOrigin: "top left",
        whiteSpace: "nowrap",
        overflow: "hidden",
        textOverflow: "ellipsis",
        maxWidth: "100%",
      },
      t.formControl && { position: "absolute", left: 0, top: 0, transform: "translate(0, 20px) scale(1)" },
      t.size === "small" && { transform: "translate(0, 17px) scale(1)" },
      t.shrink && { transform: "translate(0, -1.5px) scale(0.75)", transformOrigin: "top left", maxWidth: "133%" },
      !t.disableAnimation && {
        transition: e.transitions.create(["color", "transform", "max-width"], {
          duration: e.transitions.duration.shorter,
          easing: e.transitions.easing.easeOut,
        }),
      },
      t.variant === "filled" &&
        S(
          {
            zIndex: 1,
            pointerEvents: "none",
            transform: "translate(12px, 16px) scale(1)",
            maxWidth: "calc(100% - 24px)",
          },
          t.size === "small" && { transform: "translate(12px, 13px) scale(1)" },
          t.shrink &&
            S(
              {
                userSelect: "none",
                pointerEvents: "auto",
                transform: "translate(12px, 7px) scale(0.75)",
                maxWidth: "calc(133% - 24px)",
              },
              t.size === "small" && { transform: "translate(12px, 4px) scale(0.75)" }
            )
        ),
      t.variant === "outlined" &&
        S(
          {
            zIndex: 1,
            pointerEvents: "none",
            transform: "translate(14px, 16px) scale(1)",
            maxWidth: "calc(100% - 24px)",
          },
          t.size === "small" && { transform: "translate(14px, 9px) scale(1)" },
          t.shrink && {
            userSelect: "none",
            pointerEvents: "auto",
            maxWidth: "calc(133% - 32px)",
            transform: "translate(14px, -9px) scale(0.75)",
          }
        )
    )
  ),
  cN = b.forwardRef(function (t, n) {
    const r = ke({ name: "MuiInputLabel", props: t }),
      { disableAnimation: o = !1, shrink: i, className: s } = r,
      a = ee(r, aN),
      l = ho();
    let u = i;
    typeof u > "u" && l && (u = l.filled || l.focused || l.adornedStart);
    const c = Ri({ props: r, muiFormControl: l, states: ["size", "variant", "required", "focused"] }),
      d = S({}, r, {
        disableAnimation: o,
        formControl: l,
        shrink: u,
        size: c.size,
        variant: c.variant,
        required: c.required,
        focused: c.focused,
      }),
      p = lN(d);
    return f.jsx(uN, S({ "data-shrink": u, ownerState: d, ref: n, className: ue(p.root, s) }, a, { classes: p }));
  });
function dN(e) {
  return Ae("MuiLinearProgress", e);
}
Se("MuiLinearProgress", [
  "root",
  "colorPrimary",
  "colorSecondary",
  "determinate",
  "indeterminate",
  "buffer",
  "query",
  "dashed",
  "dashedColorPrimary",
  "dashedColorSecondary",
  "bar",
  "barColorPrimary",
  "barColorSecondary",
  "bar1Indeterminate",
  "bar1Determinate",
  "bar1Buffer",
  "bar2Indeterminate",
  "bar2Buffer",
]);
const fN = ["className", "color", "value", "valueBuffer", "variant"];
let al = (e) => e,
  R7,
  I7,
  O7,
  F7,
  L7,
  N7;
const Km = 4,
  pN = Go(
    R7 ||
      (R7 = al`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)
  ),
  hN = Go(
    I7 ||
      (I7 = al`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)
  ),
  mN = Go(
    O7 ||
      (O7 = al`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)
  ),
  gN = (e) => {
    const { classes: t, variant: n, color: r } = e,
      o = {
        root: ["root", `color${Q(r)}`, n],
        dashed: ["dashed", `dashedColor${Q(r)}`],
        bar1: [
          "bar",
          `barColor${Q(r)}`,
          (n === "indeterminate" || n === "query") && "bar1Indeterminate",
          n === "determinate" && "bar1Determinate",
          n === "buffer" && "bar1Buffer",
        ],
        bar2: [
          "bar",
          n !== "buffer" && `barColor${Q(r)}`,
          n === "buffer" && `color${Q(r)}`,
          (n === "indeterminate" || n === "query") && "bar2Indeterminate",
          n === "buffer" && "bar2Buffer",
        ],
      };
    return Ee(o, dN, t);
  },
  o5 = (e, t) =>
    t === "inherit"
      ? "currentColor"
      : e.vars
        ? e.vars.palette.LinearProgress[`${t}Bg`]
        : e.palette.mode === "light"
          ? ff(e.palette[t].main, 0.62)
          : df(e.palette[t].main, 0.5),
  yN = W("span", {
    name: "MuiLinearProgress",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, t[`color${Q(n.color)}`], t[n.variant]];
    },
  })(({ ownerState: e, theme: t }) =>
    S(
      {
        position: "relative",
        overflow: "hidden",
        display: "block",
        height: 4,
        zIndex: 0,
        "@media print": { colorAdjust: "exact" },
        backgroundColor: o5(t, e.color),
      },
      e.color === "inherit" &&
        e.variant !== "buffer" && {
          backgroundColor: "none",
          "&::before": {
            content: '""',
            position: "absolute",
            left: 0,
            top: 0,
            right: 0,
            bottom: 0,
            backgroundColor: "currentColor",
            opacity: 0.3,
          },
        },
      e.variant === "buffer" && { backgroundColor: "transparent" },
      e.variant === "query" && { transform: "rotate(180deg)" }
    )
  ),
  vN = W("span", {
    name: "MuiLinearProgress",
    slot: "Dashed",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.dashed, t[`dashedColor${Q(n.color)}`]];
    },
  })(
    ({ ownerState: e, theme: t }) => {
      const n = o5(t, e.color);
      return S(
        { position: "absolute", marginTop: 0, height: "100%", width: "100%" },
        e.color === "inherit" && { opacity: 0.3 },
        {
          backgroundImage: `radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,
          backgroundSize: "10px 10px",
          backgroundPosition: "0 -23px",
        }
      );
    },
    cs(
      F7 ||
        (F7 = al`
    animation: ${0} 3s infinite linear;
  `),
      mN
    )
  ),
  xN = W("span", {
    name: "MuiLinearProgress",
    slot: "Bar1",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.bar,
        t[`barColor${Q(n.color)}`],
        (n.variant === "indeterminate" || n.variant === "query") && t.bar1Indeterminate,
        n.variant === "determinate" && t.bar1Determinate,
        n.variant === "buffer" && t.bar1Buffer,
      ];
    },
  })(
    ({ ownerState: e, theme: t }) =>
      S(
        {
          width: "100%",
          position: "absolute",
          left: 0,
          bottom: 0,
          top: 0,
          transition: "transform 0.2s linear",
          transformOrigin: "left",
          backgroundColor: e.color === "inherit" ? "currentColor" : (t.vars || t).palette[e.color].main,
        },
        e.variant === "determinate" && { transition: `transform .${Km}s linear` },
        e.variant === "buffer" && { zIndex: 1, transition: `transform .${Km}s linear` }
      ),
    ({ ownerState: e }) =>
      (e.variant === "indeterminate" || e.variant === "query") &&
      cs(
        L7 ||
          (L7 = al`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),
        pN
      )
  ),
  bN = W("span", {
    name: "MuiLinearProgress",
    slot: "Bar2",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.bar,
        t[`barColor${Q(n.color)}`],
        (n.variant === "indeterminate" || n.variant === "query") && t.bar2Indeterminate,
        n.variant === "buffer" && t.bar2Buffer,
      ];
    },
  })(
    ({ ownerState: e, theme: t }) =>
      S(
        {
          width: "100%",
          position: "absolute",
          left: 0,
          bottom: 0,
          top: 0,
          transition: "transform 0.2s linear",
          transformOrigin: "left",
        },
        e.variant !== "buffer" && {
          backgroundColor: e.color === "inherit" ? "currentColor" : (t.vars || t).palette[e.color].main,
        },
        e.color === "inherit" && { opacity: 0.3 },
        e.variant === "buffer" && { backgroundColor: o5(t, e.color), transition: `transform .${Km}s linear` }
      ),
    ({ ownerState: e }) =>
      (e.variant === "indeterminate" || e.variant === "query") &&
      cs(
        N7 ||
          (N7 = al`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),
        hN
      )
  ),
  CN = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiLinearProgress" }),
      { className: o, color: i = "primary", value: s, valueBuffer: a, variant: l = "indeterminate" } = r,
      u = ee(r, fN),
      c = S({}, r, { color: i, variant: l }),
      d = gN(c),
      p = Wp(),
      h = {},
      m = { bar1: {}, bar2: {} };
    if ((l === "determinate" || l === "buffer") && s !== void 0) {
      (h["aria-valuenow"] = Math.round(s)), (h["aria-valuemin"] = 0), (h["aria-valuemax"] = 100);
      let v = s - 100;
      p && (v = -v), (m.bar1.transform = `translateX(${v}%)`);
    }
    if (l === "buffer" && a !== void 0) {
      let v = (a || 0) - 100;
      p && (v = -v), (m.bar2.transform = `translateX(${v}%)`);
    }
    return f.jsxs(
      yN,
      S({ className: ue(d.root, o), ownerState: c, role: "progressbar" }, h, { ref: n }, u, {
        children: [
          l === "buffer" ? f.jsx(vN, { className: d.dashed, ownerState: c }) : null,
          f.jsx(xN, { className: d.bar1, ownerState: c, style: m.bar1 }),
          l === "determinate" ? null : f.jsx(bN, { className: d.bar2, ownerState: c, style: m.bar2 }),
        ],
      })
    );
  });
function wN(e) {
  return Ae("MuiLink", e);
}
const SN = Se("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]),
  N9 = {
    primary: "primary.main",
    textPrimary: "text.primary",
    secondary: "secondary.main",
    textSecondary: "text.secondary",
    error: "error.main",
  },
  kN = (e) => N9[e] || e,
  TN = ({ theme: e, ownerState: t }) => {
    const n = kN(t.color),
      r = Ia(e, `palette.${n}`, !1) || t.color,
      o = Ia(e, `palette.${n}Channel`);
    return "vars" in e && o ? `rgba(${o} / 0.4)` : lt(r, 0.4);
  },
  MN = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"],
  EN = (e) => {
    const { classes: t, component: n, focusVisible: r, underline: o } = e,
      i = { root: ["root", `underline${Q(o)}`, n === "button" && "button", r && "focusVisible"] };
    return Ee(i, wN, t);
  },
  PN = W(xe, {
    name: "MuiLink",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, t[`underline${Q(n.underline)}`], n.component === "button" && t.button];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {},
      t.underline === "none" && { textDecoration: "none" },
      t.underline === "hover" && { textDecoration: "none", "&:hover": { textDecoration: "underline" } },
      t.underline === "always" &&
        S(
          { textDecoration: "underline" },
          t.color !== "inherit" && { textDecorationColor: TN({ theme: e, ownerState: t }) },
          { "&:hover": { textDecorationColor: "inherit" } }
        ),
      t.component === "button" && {
        position: "relative",
        WebkitTapHighlightColor: "transparent",
        backgroundColor: "transparent",
        outline: 0,
        border: 0,
        margin: 0,
        borderRadius: 0,
        padding: 0,
        cursor: "pointer",
        userSelect: "none",
        verticalAlign: "middle",
        MozAppearance: "none",
        WebkitAppearance: "none",
        "&::-moz-focus-inner": { borderStyle: "none" },
        [`&.${SN.focusVisible}`]: { outline: "auto" },
      }
    )
  ),
  rs = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiLink" }),
      {
        className: o,
        color: i = "primary",
        component: s = "a",
        onBlur: a,
        onFocus: l,
        TypographyClasses: u,
        underline: c = "always",
        variant: d = "inherit",
        sx: p,
      } = r,
      h = ee(r, MN),
      { isFocusVisibleRef: m, onBlur: v, onFocus: C, ref: y } = lc(),
      [g, x] = b.useState(!1),
      w = tt(n, y),
      k = (A) => {
        v(A), m.current === !1 && x(!1), a && a(A);
      },
      M = (A) => {
        C(A), m.current === !0 && x(!0), l && l(A);
      },
      T = S({}, r, { color: i, component: s, focusVisible: g, underline: c, variant: d }),
      P = EN(T);
    return f.jsx(
      PN,
      S(
        {
          color: i,
          className: ue(P.root, o),
          classes: u,
          component: s,
          onBlur: k,
          onFocus: M,
          ref: w,
          ownerState: T,
          variant: d,
          sx: [...(Object.keys(N9).includes(i) ? [] : [{ color: i }]), ...(Array.isArray(p) ? p : [p])],
        },
        h
      )
    );
  }),
  os = b.createContext({});
function AN(e) {
  return Ae("MuiList", e);
}
Se("MuiList", ["root", "padding", "dense", "subheader"]);
const _N = ["children", "className", "component", "dense", "disablePadding", "subheader"],
  DN = (e) => {
    const { classes: t, disablePadding: n, dense: r, subheader: o } = e;
    return Ee({ root: ["root", !n && "padding", r && "dense", o && "subheader"] }, AN, t);
  },
  RN = W("ul", {
    name: "MuiList",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, !n.disablePadding && t.padding, n.dense && t.dense, n.subheader && t.subheader];
    },
  })(({ ownerState: e }) =>
    S(
      { listStyle: "none", margin: 0, padding: 0, position: "relative" },
      !e.disablePadding && { paddingTop: 8, paddingBottom: 8 },
      e.subheader && { paddingTop: 0 }
    )
  ),
  $9 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiList" }),
      { children: o, className: i, component: s = "ul", dense: a = !1, disablePadding: l = !1, subheader: u } = r,
      c = ee(r, _N),
      d = b.useMemo(() => ({ dense: a }), [a]),
      p = S({}, r, { component: s, dense: a, disablePadding: l }),
      h = DN(p);
    return f.jsx(os.Provider, {
      value: d,
      children: f.jsxs(RN, S({ as: s, className: ue(h.root, i), ref: n, ownerState: p }, c, { children: [u, o] })),
    });
  });
function IN(e) {
  return Ae("MuiListItem", e);
}
const Ys = Se("MuiListItem", [
    "root",
    "container",
    "focusVisible",
    "dense",
    "alignItemsFlexStart",
    "disabled",
    "divider",
    "gutters",
    "padding",
    "button",
    "secondaryAction",
    "selected",
  ]),
  ON = Se("MuiListItemButton", [
    "root",
    "focusVisible",
    "dense",
    "alignItemsFlexStart",
    "disabled",
    "divider",
    "gutters",
    "selected",
  ]);
function FN(e) {
  return Ae("MuiListItemSecondaryAction", e);
}
Se("MuiListItemSecondaryAction", ["root", "disableGutters"]);
const LN = ["className"],
  NN = (e) => {
    const { disableGutters: t, classes: n } = e;
    return Ee({ root: ["root", t && "disableGutters"] }, FN, n);
  },
  $N = W("div", {
    name: "MuiListItemSecondaryAction",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.disableGutters && t.disableGutters];
    },
  })(({ ownerState: e }) =>
    S({ position: "absolute", right: 16, top: "50%", transform: "translateY(-50%)" }, e.disableGutters && { right: 0 })
  ),
  B9 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiListItemSecondaryAction" }),
      { className: o } = r,
      i = ee(r, LN),
      s = b.useContext(os),
      a = S({}, r, { disableGutters: s.disableGutters }),
      l = NN(a);
    return f.jsx($N, S({ className: ue(l.root, o), ownerState: a, ref: n }, i));
  });
B9.muiName = "ListItemSecondaryAction";
const BN = ["className"],
  jN = [
    "alignItems",
    "autoFocus",
    "button",
    "children",
    "className",
    "component",
    "components",
    "componentsProps",
    "ContainerComponent",
    "ContainerProps",
    "dense",
    "disabled",
    "disableGutters",
    "disablePadding",
    "divider",
    "focusVisibleClassName",
    "secondaryAction",
    "selected",
    "slotProps",
    "slots",
  ],
  VN = (e, t) => {
    const { ownerState: n } = e;
    return [
      t.root,
      n.dense && t.dense,
      n.alignItems === "flex-start" && t.alignItemsFlexStart,
      n.divider && t.divider,
      !n.disableGutters && t.gutters,
      !n.disablePadding && t.padding,
      n.button && t.button,
      n.hasSecondaryAction && t.secondaryAction,
    ];
  },
  HN = (e) => {
    const {
      alignItems: t,
      button: n,
      classes: r,
      dense: o,
      disabled: i,
      disableGutters: s,
      disablePadding: a,
      divider: l,
      hasSecondaryAction: u,
      selected: c,
    } = e;
    return Ee(
      {
        root: [
          "root",
          o && "dense",
          !s && "gutters",
          !a && "padding",
          l && "divider",
          i && "disabled",
          n && "button",
          t === "flex-start" && "alignItemsFlexStart",
          u && "secondaryAction",
          c && "selected",
        ],
        container: ["container"],
      },
      IN,
      r
    );
  },
  zN = W("div", { name: "MuiListItem", slot: "Root", overridesResolver: VN })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "flex",
        justifyContent: "flex-start",
        alignItems: "center",
        position: "relative",
        textDecoration: "none",
        width: "100%",
        boxSizing: "border-box",
        textAlign: "left",
      },
      !t.disablePadding &&
        S(
          { paddingTop: 8, paddingBottom: 8 },
          t.dense && { paddingTop: 4, paddingBottom: 4 },
          !t.disableGutters && { paddingLeft: 16, paddingRight: 16 },
          !!t.secondaryAction && { paddingRight: 48 }
        ),
      !!t.secondaryAction && { [`& > .${ON.root}`]: { paddingRight: 48 } },
      {
        [`&.${Ys.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
        [`&.${Ys.selected}`]: {
          backgroundColor: e.vars
            ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`
            : lt(e.palette.primary.main, e.palette.action.selectedOpacity),
          [`&.${Ys.focusVisible}`]: {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`
              : lt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity),
          },
        },
        [`&.${Ys.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
      },
      t.alignItems === "flex-start" && { alignItems: "flex-start" },
      t.divider && { borderBottom: `1px solid ${(e.vars || e).palette.divider}`, backgroundClip: "padding-box" },
      t.button && {
        transition: e.transitions.create("background-color", { duration: e.transitions.duration.shortest }),
        "&:hover": {
          textDecoration: "none",
          backgroundColor: (e.vars || e).palette.action.hover,
          "@media (hover: none)": { backgroundColor: "transparent" },
        },
        [`&.${Ys.selected}:hover`]: {
          backgroundColor: e.vars
            ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`
            : lt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
          "@media (hover: none)": {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`
              : lt(e.palette.primary.main, e.palette.action.selectedOpacity),
          },
        },
      },
      t.hasSecondaryAction && { paddingRight: 48 }
    )
  ),
  WN = W("li", { name: "MuiListItem", slot: "Container", overridesResolver: (e, t) => t.container })({
    position: "relative",
  }),
  GN = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiListItem" }),
      {
        alignItems: o = "center",
        autoFocus: i = !1,
        button: s = !1,
        children: a,
        className: l,
        component: u,
        components: c = {},
        componentsProps: d = {},
        ContainerComponent: p = "li",
        ContainerProps: { className: h } = {},
        dense: m = !1,
        disabled: v = !1,
        disableGutters: C = !1,
        disablePadding: y = !1,
        divider: g = !1,
        focusVisibleClassName: x,
        secondaryAction: w,
        selected: k = !1,
        slotProps: M = {},
        slots: T = {},
      } = r,
      P = ee(r.ContainerProps, BN),
      A = ee(r, jN),
      D = b.useContext(os),
      R = b.useMemo(() => ({ dense: m || D.dense || !1, alignItems: o, disableGutters: C }), [o, D.dense, m, C]),
      L = b.useRef(null);
    Kt(() => {
      i && L.current && L.current.focus();
    }, [i]);
    const F = b.Children.toArray(a),
      O = F.length && Xl(F[F.length - 1], ["ListItemSecondaryAction"]),
      E = S({}, r, {
        alignItems: o,
        autoFocus: i,
        button: s,
        dense: R.dense,
        disabled: v,
        disableGutters: C,
        disablePadding: y,
        divider: g,
        hasSecondaryAction: O,
        selected: k,
      }),
      B = HN(E),
      j = tt(L, n),
      _ = T.root || c.Root || zN,
      I = M.root || d.root || {},
      $ = S({ className: ue(B.root, I.className, l), disabled: v }, A);
    let J = u || "li";
    return (
      s && (($.component = u || "div"), ($.focusVisibleClassName = ue(Ys.focusVisible, x)), (J = $r)),
      O
        ? ((J = !$.component && !u ? "div" : J),
          p === "li" && (J === "li" ? (J = "div") : $.component === "li" && ($.component = "div")),
          f.jsx(os.Provider, {
            value: R,
            children: f.jsxs(
              WN,
              S({ as: p, className: ue(B.container, h), ref: j, ownerState: E }, P, {
                children: [
                  f.jsx(_, S({}, I, !io(_) && { as: J, ownerState: S({}, E, I.ownerState) }, $, { children: F })),
                  F.pop(),
                ],
              })
            ),
          }))
        : f.jsx(os.Provider, {
            value: R,
            children: f.jsxs(
              _,
              S({}, I, { as: J, ref: j }, !io(_) && { ownerState: S({}, E, I.ownerState) }, $, {
                children: [F, w && f.jsx(B9, { children: w })],
              })
            ),
          })
    );
  }),
  $7 = Se("MuiListItemIcon", ["root", "alignItemsFlexStart"]),
  B7 = Se("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]),
  UN = [
    "actions",
    "autoFocus",
    "autoFocusItem",
    "children",
    "className",
    "disabledItemsFocusable",
    "disableListWrap",
    "onKeyDown",
    "variant",
  ];
function Q1(e, t, n) {
  return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : e.firstChild;
}
function j7(e, t, n) {
  return e === t
    ? n
      ? e.firstChild
      : e.lastChild
    : t && t.previousElementSibling
      ? t.previousElementSibling
      : n
        ? null
        : e.lastChild;
}
function j9(e, t) {
  if (t === void 0) return !0;
  let n = e.innerText;
  return (
    n === void 0 && (n = e.textContent),
    (n = n.trim().toLowerCase()),
    n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.indexOf(t.keys.join("")) === 0
  );
}
function El(e, t, n, r, o, i) {
  let s = !1,
    a = o(e, t, t ? n : !1);
  for (; a; ) {
    if (a === e.firstChild) {
      if (s) return !1;
      s = !0;
    }
    const l = r ? !1 : a.disabled || a.getAttribute("aria-disabled") === "true";
    if (!a.hasAttribute("tabindex") || !j9(a, i) || l) a = o(e, a, n);
    else return a.focus(), !0;
  }
  return !1;
}
const YN = b.forwardRef(function (t, n) {
  const {
      actions: r,
      autoFocus: o = !1,
      autoFocusItem: i = !1,
      children: s,
      className: a,
      disabledItemsFocusable: l = !1,
      disableListWrap: u = !1,
      onKeyDown: c,
      variant: d = "selectedMenu",
    } = t,
    p = ee(t, UN),
    h = b.useRef(null),
    m = b.useRef({ keys: [], repeating: !0, previousKeyMatched: !0, lastTime: null });
  Kt(() => {
    o && h.current.focus();
  }, [o]),
    b.useImperativeHandle(
      r,
      () => ({
        adjustStyleForScrollbar: (x, { direction: w }) => {
          const k = !h.current.style.width;
          if (x.clientHeight < h.current.clientHeight && k) {
            const M = `${Xv(Dt(x))}px`;
            (h.current.style[w === "rtl" ? "paddingLeft" : "paddingRight"] = M),
              (h.current.style.width = `calc(100% + ${M})`);
          }
          return h.current;
        },
      }),
      []
    );
  const v = (x) => {
      const w = h.current,
        k = x.key,
        M = Dt(w).activeElement;
      if (k === "ArrowDown") x.preventDefault(), El(w, M, u, l, Q1);
      else if (k === "ArrowUp") x.preventDefault(), El(w, M, u, l, j7);
      else if (k === "Home") x.preventDefault(), El(w, null, u, l, Q1);
      else if (k === "End") x.preventDefault(), El(w, null, u, l, j7);
      else if (k.length === 1) {
        const T = m.current,
          P = k.toLowerCase(),
          A = performance.now();
        T.keys.length > 0 &&
          (A - T.lastTime > 500
            ? ((T.keys = []), (T.repeating = !0), (T.previousKeyMatched = !0))
            : T.repeating && P !== T.keys[0] && (T.repeating = !1)),
          (T.lastTime = A),
          T.keys.push(P);
        const D = M && !T.repeating && j9(M, T);
        T.previousKeyMatched && (D || El(w, M, !1, l, Q1, T)) ? x.preventDefault() : (T.previousKeyMatched = !1);
      }
      c && c(x);
    },
    C = tt(h, n);
  let y = -1;
  b.Children.forEach(s, (x, w) => {
    if (!b.isValidElement(x)) {
      y === w && ((y += 1), y >= s.length && (y = -1));
      return;
    }
    x.props.disabled || (((d === "selectedMenu" && x.props.selected) || y === -1) && (y = w)),
      y === w &&
        (x.props.disabled || x.props.muiSkipListHighlight || x.type.muiSkipListHighlight) &&
        ((y += 1), y >= s.length && (y = -1));
  });
  const g = b.Children.map(s, (x, w) => {
    if (w === y) {
      const k = {};
      return (
        i && (k.autoFocus = !0),
        x.props.tabIndex === void 0 && d === "selectedMenu" && (k.tabIndex = 0),
        b.cloneElement(x, k)
      );
    }
    return x;
  });
  return f.jsx($9, S({ role: "menu", ref: C, className: a, onKeyDown: v, tabIndex: o ? 0 : -1 }, p, { children: g }));
});
function KN(e) {
  return Ae("MuiPopover", e);
}
Se("MuiPopover", ["root", "paper"]);
const XN = ["onEntering"],
  qN = [
    "action",
    "anchorEl",
    "anchorOrigin",
    "anchorPosition",
    "anchorReference",
    "children",
    "className",
    "container",
    "elevation",
    "marginThreshold",
    "open",
    "PaperProps",
    "slots",
    "slotProps",
    "transformOrigin",
    "TransitionComponent",
    "transitionDuration",
    "TransitionProps",
    "disableScrollLock",
  ],
  ZN = ["slotProps"];
function V7(e, t) {
  let n = 0;
  return typeof t == "number" ? (n = t) : t === "center" ? (n = e.height / 2) : t === "bottom" && (n = e.height), n;
}
function H7(e, t) {
  let n = 0;
  return typeof t == "number" ? (n = t) : t === "center" ? (n = e.width / 2) : t === "right" && (n = e.width), n;
}
function z7(e) {
  return [e.horizontal, e.vertical].map((t) => (typeof t == "number" ? `${t}px` : t)).join(" ");
}
function eh(e) {
  return typeof e == "function" ? e() : e;
}
const JN = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], paper: ["paper"] }, KN, t);
  },
  QN = W(t5, { name: "MuiPopover", slot: "Root", overridesResolver: (e, t) => t.root })({}),
  V9 = W(Ss, { name: "MuiPopover", slot: "Paper", overridesResolver: (e, t) => t.paper })({
    position: "absolute",
    overflowY: "auto",
    overflowX: "hidden",
    minWidth: 16,
    minHeight: 16,
    maxWidth: "calc(100% - 32px)",
    maxHeight: "calc(100% - 32px)",
    outline: 0,
  }),
  e$ = b.forwardRef(function (t, n) {
    var r, o, i;
    const s = ke({ props: t, name: "MuiPopover" }),
      {
        action: a,
        anchorEl: l,
        anchorOrigin: u = { vertical: "top", horizontal: "left" },
        anchorPosition: c,
        anchorReference: d = "anchorEl",
        children: p,
        className: h,
        container: m,
        elevation: v = 8,
        marginThreshold: C = 16,
        open: y,
        PaperProps: g = {},
        slots: x,
        slotProps: w,
        transformOrigin: k = { vertical: "top", horizontal: "left" },
        TransitionComponent: M = r5,
        transitionDuration: T = "auto",
        TransitionProps: { onEntering: P } = {},
        disableScrollLock: A = !1,
      } = s,
      D = ee(s.TransitionProps, XN),
      R = ee(s, qN),
      L = (r = w == null ? void 0 : w.paper) != null ? r : g,
      F = b.useRef(),
      O = tt(F, L.ref),
      E = S({}, s, {
        anchorOrigin: u,
        anchorReference: d,
        elevation: v,
        marginThreshold: C,
        externalPaperSlotProps: L,
        transformOrigin: k,
        TransitionComponent: M,
        transitionDuration: T,
        TransitionProps: D,
      }),
      B = JN(E),
      j = b.useCallback(() => {
        if (d === "anchorPosition") return c;
        const V = eh(l),
          Z = (V && V.nodeType === 1 ? V : Dt(F.current).body).getBoundingClientRect();
        return { top: Z.top + V7(Z, u.vertical), left: Z.left + H7(Z, u.horizontal) };
      }, [l, u.horizontal, u.vertical, c, d]),
      _ = b.useCallback(
        (V) => ({ vertical: V7(V, k.vertical), horizontal: H7(V, k.horizontal) }),
        [k.horizontal, k.vertical]
      ),
      I = b.useCallback(
        (V) => {
          const K = { width: V.offsetWidth, height: V.offsetHeight },
            Z = _(K);
          if (d === "none") return { top: null, left: null, transformOrigin: z7(Z) };
          const ye = j();
          let Fe = ye.top - Z.vertical,
            le = ye.left - Z.horizontal;
          const he = Fe + K.height,
            G = le + K.width,
            te = ao(eh(l)),
            we = te.innerHeight - C,
            Le = te.innerWidth - C;
          if (C !== null && Fe < C) {
            const Te = Fe - C;
            (Fe -= Te), (Z.vertical += Te);
          } else if (C !== null && he > we) {
            const Te = he - we;
            (Fe -= Te), (Z.vertical += Te);
          }
          if (C !== null && le < C) {
            const Te = le - C;
            (le -= Te), (Z.horizontal += Te);
          } else if (G > Le) {
            const Te = G - Le;
            (le -= Te), (Z.horizontal += Te);
          }
          return { top: `${Math.round(Fe)}px`, left: `${Math.round(le)}px`, transformOrigin: z7(Z) };
        },
        [l, d, j, _, C]
      ),
      [$, J] = b.useState(y),
      oe = b.useCallback(() => {
        const V = F.current;
        if (!V) return;
        const K = I(V);
        K.top !== null && (V.style.top = K.top),
          K.left !== null && (V.style.left = K.left),
          (V.style.transformOrigin = K.transformOrigin),
          J(!0);
      }, [I]);
    b.useEffect(
      () => (A && window.addEventListener("scroll", oe), () => window.removeEventListener("scroll", oe)),
      [l, A, oe]
    );
    const pe = (V, K) => {
        P && P(V, K), oe();
      },
      z = () => {
        J(!1);
      };
    b.useEffect(() => {
      y && oe();
    }),
      b.useImperativeHandle(
        a,
        () =>
          y
            ? {
                updatePosition: () => {
                  oe();
                },
              }
            : null,
        [y, oe]
      ),
      b.useEffect(() => {
        if (!y) return;
        const V = Vp(() => {
            oe();
          }),
          K = ao(l);
        return (
          K.addEventListener("resize", V),
          () => {
            V.clear(), K.removeEventListener("resize", V);
          }
        );
      }, [l, y, oe]);
    let ae = T;
    T === "auto" && !M.muiSupportAuto && (ae = void 0);
    const me = m || (l ? Dt(eh(l)).body : void 0),
      X = (o = x == null ? void 0 : x.root) != null ? o : QN,
      ge = (i = x == null ? void 0 : x.paper) != null ? i : V9,
      Pe = qe({
        elementType: ge,
        externalSlotProps: S({}, L, { style: $ ? L.style : S({}, L.style, { opacity: 0 }) }),
        additionalProps: { elevation: v, ref: O },
        ownerState: E,
        className: ue(B.paper, L == null ? void 0 : L.className),
      }),
      _e = qe({
        elementType: X,
        externalSlotProps: (w == null ? void 0 : w.root) || {},
        externalForwardedProps: R,
        additionalProps: { ref: n, slotProps: { backdrop: { invisible: !0 } }, container: me, open: y },
        ownerState: E,
        className: ue(B.root, h),
      }),
      { slotProps: ie } = _e,
      ne = ee(_e, ZN);
    return f.jsx(
      X,
      S({}, ne, !io(X) && { slotProps: ie, disableScrollLock: A }, {
        children: f.jsx(
          M,
          S({ appear: !0, in: y, onEntering: pe, onExited: z, timeout: ae }, D, {
            children: f.jsx(ge, S({}, Pe, { children: p })),
          })
        ),
      })
    );
  });
function t$(e) {
  return Ae("MuiMenu", e);
}
Se("MuiMenu", ["root", "paper", "list"]);
const n$ = ["onEntering"],
  r$ = [
    "autoFocus",
    "children",
    "className",
    "disableAutoFocusItem",
    "MenuListProps",
    "onClose",
    "open",
    "PaperProps",
    "PopoverClasses",
    "transitionDuration",
    "TransitionProps",
    "variant",
    "slots",
    "slotProps",
  ],
  o$ = { vertical: "top", horizontal: "right" },
  i$ = { vertical: "top", horizontal: "left" },
  s$ = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], paper: ["paper"], list: ["list"] }, t$, t);
  },
  a$ = W(e$, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiMenu",
    slot: "Root",
    overridesResolver: (e, t) => t.root,
  })({}),
  l$ = W(V9, { name: "MuiMenu", slot: "Paper", overridesResolver: (e, t) => t.paper })({
    maxHeight: "calc(100% - 96px)",
    WebkitOverflowScrolling: "touch",
  }),
  u$ = W(YN, { name: "MuiMenu", slot: "List", overridesResolver: (e, t) => t.list })({ outline: 0 }),
  c$ = b.forwardRef(function (t, n) {
    var r, o;
    const i = ke({ props: t, name: "MuiMenu" }),
      {
        autoFocus: s = !0,
        children: a,
        className: l,
        disableAutoFocusItem: u = !1,
        MenuListProps: c = {},
        onClose: d,
        open: p,
        PaperProps: h = {},
        PopoverClasses: m,
        transitionDuration: v = "auto",
        TransitionProps: { onEntering: C } = {},
        variant: y = "selectedMenu",
        slots: g = {},
        slotProps: x = {},
      } = i,
      w = ee(i.TransitionProps, n$),
      k = ee(i, r$),
      M = Wp(),
      T = S({}, i, {
        autoFocus: s,
        disableAutoFocusItem: u,
        MenuListProps: c,
        onEntering: C,
        PaperProps: h,
        transitionDuration: v,
        TransitionProps: w,
        variant: y,
      }),
      P = s$(T),
      A = s && !u && p,
      D = b.useRef(null),
      R = (_, I) => {
        D.current && D.current.adjustStyleForScrollbar(_, { direction: M ? "rtl" : "ltr" }), C && C(_, I);
      },
      L = (_) => {
        _.key === "Tab" && (_.preventDefault(), d && d(_, "tabKeyDown"));
      };
    let F = -1;
    b.Children.map(a, (_, I) => {
      b.isValidElement(_) &&
        (_.props.disabled || (((y === "selectedMenu" && _.props.selected) || F === -1) && (F = I)));
    });
    const O = (r = g.paper) != null ? r : l$,
      E = (o = x.paper) != null ? o : h,
      B = qe({ elementType: g.root, externalSlotProps: x.root, ownerState: T, className: [P.root, l] }),
      j = qe({ elementType: O, externalSlotProps: E, ownerState: T, className: P.paper });
    return f.jsx(
      a$,
      S(
        {
          onClose: d,
          anchorOrigin: { vertical: "bottom", horizontal: M ? "right" : "left" },
          transformOrigin: M ? o$ : i$,
          slots: { paper: O, root: g.root },
          slotProps: { root: B, paper: j },
          open: p,
          ref: n,
          transitionDuration: v,
          TransitionProps: S({ onEntering: R }, w),
          ownerState: T,
        },
        k,
        {
          classes: m,
          children: f.jsx(
            u$,
            S({ onKeyDown: L, actions: D, autoFocus: s && (F === -1 || u), autoFocusItem: A, variant: y }, c, {
              className: ue(P.list, c.className),
              children: a,
            })
          ),
        }
      )
    );
  });
function d$(e) {
  return Ae("MuiMenuItem", e);
}
const Pl = Se("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]),
  f$ = [
    "autoFocus",
    "component",
    "dense",
    "divider",
    "disableGutters",
    "focusVisibleClassName",
    "role",
    "tabIndex",
    "className",
  ],
  p$ = (e, t) => {
    const { ownerState: n } = e;
    return [t.root, n.dense && t.dense, n.divider && t.divider, !n.disableGutters && t.gutters];
  },
  h$ = (e) => {
    const { disabled: t, dense: n, divider: r, disableGutters: o, selected: i, classes: s } = e,
      l = Ee(
        { root: ["root", n && "dense", t && "disabled", !o && "gutters", r && "divider", i && "selected"] },
        d$,
        s
      );
    return S({}, s, l);
  },
  m$ = W($r, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiMenuItem",
    slot: "Root",
    overridesResolver: p$,
  })(({ theme: e, ownerState: t }) =>
    S(
      {},
      e.typography.body1,
      {
        display: "flex",
        justifyContent: "flex-start",
        alignItems: "center",
        position: "relative",
        textDecoration: "none",
        minHeight: 48,
        paddingTop: 6,
        paddingBottom: 6,
        boxSizing: "border-box",
        whiteSpace: "nowrap",
      },
      !t.disableGutters && { paddingLeft: 16, paddingRight: 16 },
      t.divider && { borderBottom: `1px solid ${(e.vars || e).palette.divider}`, backgroundClip: "padding-box" },
      {
        "&:hover": {
          textDecoration: "none",
          backgroundColor: (e.vars || e).palette.action.hover,
          "@media (hover: none)": { backgroundColor: "transparent" },
        },
        [`&.${Pl.selected}`]: {
          backgroundColor: e.vars
            ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`
            : lt(e.palette.primary.main, e.palette.action.selectedOpacity),
          [`&.${Pl.focusVisible}`]: {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`
              : lt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity),
          },
        },
        [`&.${Pl.selected}:hover`]: {
          backgroundColor: e.vars
            ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`
            : lt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
          "@media (hover: none)": {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`
              : lt(e.palette.primary.main, e.palette.action.selectedOpacity),
          },
        },
        [`&.${Pl.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
        [`&.${Pl.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
        [`& + .${E7.root}`]: { marginTop: e.spacing(1), marginBottom: e.spacing(1) },
        [`& + .${E7.inset}`]: { marginLeft: 52 },
        [`& .${B7.root}`]: { marginTop: 0, marginBottom: 0 },
        [`& .${B7.inset}`]: { paddingLeft: 36 },
        [`& .${$7.root}`]: { minWidth: 36 },
      },
      !t.dense && { [e.breakpoints.up("sm")]: { minHeight: "auto" } },
      t.dense &&
        S({ minHeight: 32, paddingTop: 4, paddingBottom: 4 }, e.typography.body2, {
          [`& .${$7.root} svg`]: { fontSize: "1.25rem" },
        })
    )
  ),
  i5 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiMenuItem" }),
      {
        autoFocus: o = !1,
        component: i = "li",
        dense: s = !1,
        divider: a = !1,
        disableGutters: l = !1,
        focusVisibleClassName: u,
        role: c = "menuitem",
        tabIndex: d,
        className: p,
      } = r,
      h = ee(r, f$),
      m = b.useContext(os),
      v = b.useMemo(() => ({ dense: s || m.dense || !1, disableGutters: l }), [m.dense, s, l]),
      C = b.useRef(null);
    Kt(() => {
      o && C.current && C.current.focus();
    }, [o]);
    const y = S({}, r, { dense: v.dense, divider: a, disableGutters: l }),
      g = h$(r),
      x = tt(C, n);
    let w;
    return (
      r.disabled || (w = d !== void 0 ? d : -1),
      f.jsx(os.Provider, {
        value: v,
        children: f.jsx(
          m$,
          S(
            {
              ref: x,
              role: c,
              tabIndex: w,
              component: i,
              focusVisibleClassName: ue(g.focusVisible, u),
              className: ue(g.root, p),
            },
            h,
            { ownerState: y, classes: g }
          )
        ),
      })
    );
  });
function g$(e) {
  return Ae("MuiMobileStepper", e);
}
Se("MuiMobileStepper", [
  "root",
  "positionBottom",
  "positionTop",
  "positionStatic",
  "dots",
  "dot",
  "dotActive",
  "progress",
]);
const y$ = [
    "activeStep",
    "backButton",
    "className",
    "LinearProgressProps",
    "nextButton",
    "position",
    "steps",
    "variant",
  ],
  v$ = (e) => {
    const { classes: t, position: n } = e,
      r = {
        root: ["root", `position${Q(n)}`],
        dots: ["dots"],
        dot: ["dot"],
        dotActive: ["dotActive"],
        progress: ["progress"],
      };
    return Ee(r, g$, t);
  },
  x$ = W(Ss, {
    name: "MuiMobileStepper",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, t[`position${Q(n.position)}`]];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "flex",
        flexDirection: "row",
        justifyContent: "space-between",
        alignItems: "center",
        background: (e.vars || e).palette.background.default,
        padding: 8,
      },
      t.position === "bottom" && {
        position: "fixed",
        bottom: 0,
        left: 0,
        right: 0,
        zIndex: (e.vars || e).zIndex.mobileStepper,
      },
      t.position === "top" && {
        position: "fixed",
        top: 0,
        left: 0,
        right: 0,
        zIndex: (e.vars || e).zIndex.mobileStepper,
      }
    )
  ),
  b$ = W("div", { name: "MuiMobileStepper", slot: "Dots", overridesResolver: (e, t) => t.dots })(({ ownerState: e }) =>
    S({}, e.variant === "dots" && { display: "flex", flexDirection: "row" })
  ),
  C$ = W("div", {
    name: "MuiMobileStepper",
    slot: "Dot",
    shouldForwardProp: (e) => ol(e) && e !== "dotActive",
    overridesResolver: (e, t) => {
      const { dotActive: n } = e;
      return [t.dot, n && t.dotActive];
    },
  })(({ theme: e, ownerState: t, dotActive: n }) =>
    S(
      {},
      t.variant === "dots" &&
        S(
          {
            transition: e.transitions.create("background-color", { duration: e.transitions.duration.shortest }),
            backgroundColor: (e.vars || e).palette.action.disabled,
            borderRadius: "50%",
            width: 8,
            height: 8,
            margin: "0 2px",
          },
          n && { backgroundColor: (e.vars || e).palette.primary.main }
        )
    )
  ),
  w$ = W(CN, { name: "MuiMobileStepper", slot: "Progress", overridesResolver: (e, t) => t.progress })(
    ({ ownerState: e }) => S({}, e.variant === "progress" && { width: "50%" })
  ),
  S$ = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiMobileStepper" }),
      {
        activeStep: o = 0,
        backButton: i,
        className: s,
        LinearProgressProps: a,
        nextButton: l,
        position: u = "bottom",
        steps: c,
        variant: d = "dots",
      } = r,
      p = ee(r, y$),
      h = S({}, r, { activeStep: o, position: u, variant: d });
    let m;
    d === "progress" && (c === 1 ? (m = 100) : (m = Math.ceil((o / (c - 1)) * 100)));
    const v = v$(h);
    return f.jsxs(
      x$,
      S({ square: !0, elevation: 0, className: ue(v.root, s), ref: n, ownerState: h }, p, {
        children: [
          i,
          d === "text" && f.jsxs(b.Fragment, { children: [o + 1, " / ", c] }),
          d === "dots" &&
            f.jsx(b$, {
              ownerState: h,
              className: v.dots,
              children: [...new Array(c)].map((C, y) =>
                f.jsx(C$, { className: ue(v.dot, y === o && v.dotActive), ownerState: h, dotActive: y === o }, y)
              ),
            }),
          d === "progress" &&
            f.jsx(w$, S({ ownerState: h, className: v.progress, variant: "determinate", value: m }, a)),
          l,
        ],
      })
    );
  });
function k$(e) {
  return Ae("MuiNativeSelect", e);
}
const s5 = Se("MuiNativeSelect", [
    "root",
    "select",
    "multiple",
    "filled",
    "outlined",
    "standard",
    "disabled",
    "icon",
    "iconOpen",
    "iconFilled",
    "iconOutlined",
    "iconStandard",
    "nativeInput",
    "error",
  ]),
  T$ = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"],
  M$ = (e) => {
    const { classes: t, variant: n, disabled: r, multiple: o, open: i, error: s } = e,
      a = {
        select: ["select", n, r && "disabled", o && "multiple", s && "error"],
        icon: ["icon", `icon${Q(n)}`, i && "iconOpen", r && "disabled"],
      };
    return Ee(a, k$, t);
  },
  H9 = ({ ownerState: e, theme: t }) =>
    S(
      {
        MozAppearance: "none",
        WebkitAppearance: "none",
        userSelect: "none",
        borderRadius: 0,
        cursor: "pointer",
        "&:focus": S(
          {},
          t.vars
            ? { backgroundColor: `rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)` }
            : { backgroundColor: t.palette.mode === "light" ? "rgba(0, 0, 0, 0.05)" : "rgba(255, 255, 255, 0.05)" },
          { borderRadius: 0 }
        ),
        "&::-ms-expand": { display: "none" },
        [`&.${s5.disabled}`]: { cursor: "default" },
        "&[multiple]": { height: "auto" },
        "&:not([multiple]) option, &:not([multiple]) optgroup": {
          backgroundColor: (t.vars || t).palette.background.paper,
        },
        "&&&": { paddingRight: 24, minWidth: 16 },
      },
      e.variant === "filled" && { "&&&": { paddingRight: 32 } },
      e.variant === "outlined" && {
        borderRadius: (t.vars || t).shape.borderRadius,
        "&:focus": { borderRadius: (t.vars || t).shape.borderRadius },
        "&&&": { paddingRight: 32 },
      }
    ),
  E$ = W("select", {
    name: "MuiNativeSelect",
    slot: "Select",
    shouldForwardProp: vn,
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.select, t[n.variant], n.error && t.error, { [`&.${s5.multiple}`]: t.multiple }];
    },
  })(H9),
  z9 = ({ ownerState: e, theme: t }) =>
    S(
      {
        position: "absolute",
        right: 0,
        top: "calc(50% - .5em)",
        pointerEvents: "none",
        color: (t.vars || t).palette.action.active,
        [`&.${s5.disabled}`]: { color: (t.vars || t).palette.action.disabled },
      },
      e.open && { transform: "rotate(180deg)" },
      e.variant === "filled" && { right: 7 },
      e.variant === "outlined" && { right: 7 }
    ),
  P$ = W("svg", {
    name: "MuiNativeSelect",
    slot: "Icon",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.icon, n.variant && t[`icon${Q(n.variant)}`], n.open && t.iconOpen];
    },
  })(z9),
  A$ = b.forwardRef(function (t, n) {
    const { className: r, disabled: o, error: i, IconComponent: s, inputRef: a, variant: l = "standard" } = t,
      u = ee(t, T$),
      c = S({}, t, { disabled: o, variant: l, error: i }),
      d = M$(c);
    return f.jsxs(b.Fragment, {
      children: [
        f.jsx(E$, S({ ownerState: c, className: ue(d.select, r), disabled: o, ref: a || n }, u)),
        t.multiple ? null : f.jsx(P$, { as: s, ownerState: c, className: d.icon }),
      ],
    });
  });
var W7;
const _$ = ["children", "classes", "className", "label", "notched"],
  D$ = W("fieldset", { shouldForwardProp: vn })({
    textAlign: "left",
    position: "absolute",
    bottom: 0,
    right: 0,
    top: -5,
    left: 0,
    margin: 0,
    padding: "0 8px",
    pointerEvents: "none",
    borderRadius: "inherit",
    borderStyle: "solid",
    borderWidth: 1,
    overflow: "hidden",
    minWidth: "0%",
  }),
  R$ = W("legend", { shouldForwardProp: vn })(({ ownerState: e, theme: t }) =>
    S(
      { float: "unset", width: "auto", overflow: "hidden" },
      !e.withLabel && {
        padding: 0,
        lineHeight: "11px",
        transition: t.transitions.create("width", { duration: 150, easing: t.transitions.easing.easeOut }),
      },
      e.withLabel &&
        S(
          {
            display: "block",
            padding: 0,
            height: 11,
            fontSize: "0.75em",
            visibility: "hidden",
            maxWidth: 0.01,
            transition: t.transitions.create("max-width", { duration: 50, easing: t.transitions.easing.easeOut }),
            whiteSpace: "nowrap",
            "& > span": { paddingLeft: 5, paddingRight: 5, display: "inline-block", opacity: 0, visibility: "visible" },
          },
          e.notched && {
            maxWidth: "100%",
            transition: t.transitions.create("max-width", {
              duration: 100,
              easing: t.transitions.easing.easeOut,
              delay: 50,
            }),
          }
        )
    )
  );
function I$(e) {
  const { className: t, label: n, notched: r } = e,
    o = ee(e, _$),
    i = n != null && n !== "",
    s = S({}, e, { notched: r, withLabel: i });
  return f.jsx(
    D$,
    S({ "aria-hidden": !0, className: t, ownerState: s }, o, {
      children: f.jsx(R$, {
        ownerState: s,
        children: i
          ? f.jsx("span", { children: n })
          : W7 || (W7 = f.jsx("span", { className: "notranslate", children: "​" })),
      }),
    })
  );
}
const O$ = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"],
  F$ = (e) => {
    const { classes: t } = e,
      r = Ee({ root: ["root"], notchedOutline: ["notchedOutline"], input: ["input"] }, cF, t);
    return S({}, t, r);
  },
  L$ = W(w0, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiOutlinedInput",
    slot: "Root",
    overridesResolver: b0,
  })(({ theme: e, ownerState: t }) => {
    const n = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
    return S(
      {
        position: "relative",
        borderRadius: (e.vars || e).shape.borderRadius,
        [`&:hover .${Zo.notchedOutline}`]: { borderColor: (e.vars || e).palette.text.primary },
        "@media (hover: none)": {
          [`&:hover .${Zo.notchedOutline}`]: {
            borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : n,
          },
        },
        [`&.${Zo.focused} .${Zo.notchedOutline}`]: { borderColor: (e.vars || e).palette[t.color].main, borderWidth: 2 },
        [`&.${Zo.error} .${Zo.notchedOutline}`]: { borderColor: (e.vars || e).palette.error.main },
        [`&.${Zo.disabled} .${Zo.notchedOutline}`]: { borderColor: (e.vars || e).palette.action.disabled },
      },
      t.startAdornment && { paddingLeft: 14 },
      t.endAdornment && { paddingRight: 14 },
      t.multiline && S({ padding: "16.5px 14px" }, t.size === "small" && { padding: "8.5px 14px" })
    );
  }),
  N$ = W(I$, { name: "MuiOutlinedInput", slot: "NotchedOutline", overridesResolver: (e, t) => t.notchedOutline })(
    ({ theme: e }) => {
      const t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
      return { borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : t };
    }
  ),
  $$ = W(S0, { name: "MuiOutlinedInput", slot: "Input", overridesResolver: C0 })(({ theme: e, ownerState: t }) =>
    S(
      { padding: "16.5px 14px" },
      !e.vars && {
        "&:-webkit-autofill": {
          WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
          WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
          caretColor: e.palette.mode === "light" ? null : "#fff",
          borderRadius: "inherit",
        },
      },
      e.vars && {
        "&:-webkit-autofill": { borderRadius: "inherit" },
        [e.getColorSchemeSelector("dark")]: {
          "&:-webkit-autofill": {
            WebkitBoxShadow: "0 0 0 100px #266798 inset",
            WebkitTextFillColor: "#fff",
            caretColor: "#fff",
          },
        },
      },
      t.size === "small" && { padding: "8.5px 14px" },
      t.multiline && { padding: 0 },
      t.startAdornment && { paddingLeft: 0 },
      t.endAdornment && { paddingRight: 0 }
    )
  ),
  a5 = b.forwardRef(function (t, n) {
    var r, o, i, s, a;
    const l = ke({ props: t, name: "MuiOutlinedInput" }),
      {
        components: u = {},
        fullWidth: c = !1,
        inputComponent: d = "input",
        label: p,
        multiline: h = !1,
        notched: m,
        slots: v = {},
        type: C = "text",
      } = l,
      y = ee(l, O$),
      g = F$(l),
      x = ho(),
      w = Ri({
        props: l,
        muiFormControl: x,
        states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"],
      }),
      k = S({}, l, {
        color: w.color || "primary",
        disabled: w.disabled,
        error: w.error,
        focused: w.focused,
        formControl: x,
        fullWidth: c,
        hiddenLabel: w.hiddenLabel,
        multiline: h,
        size: w.size,
        type: C,
      }),
      M = (r = (o = v.root) != null ? o : u.Root) != null ? r : L$,
      T = (i = (s = v.input) != null ? s : u.Input) != null ? i : $$;
    return f.jsx(
      Qg,
      S(
        {
          slots: { root: M, input: T },
          renderSuffix: (P) =>
            f.jsx(N$, {
              ownerState: k,
              className: g.notchedOutline,
              label:
                p != null && p !== "" && w.required ? a || (a = f.jsxs(b.Fragment, { children: [p, " ", "*"] })) : p,
              notched: typeof m < "u" ? m : !!(P.startAdornment || P.filled || P.focused),
            }),
          fullWidth: c,
          inputComponent: d,
          multiline: h,
          ref: n,
          type: C,
        },
        y,
        { classes: S({}, g, { notchedOutline: null }) }
      )
    );
  });
a5.muiName = "Input";
const B$ = nn(
    f.jsx("path", {
      d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z",
    }),
    "RadioButtonUnchecked"
  ),
  j$ = nn(
    f.jsx("path", {
      d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z",
    }),
    "RadioButtonChecked"
  ),
  V$ = W("span", { shouldForwardProp: vn })({ position: "relative", display: "flex" }),
  H$ = W(B$)({ transform: "scale(1)" }),
  z$ = W(j$)(({ theme: e, ownerState: t }) =>
    S(
      {
        left: 0,
        position: "absolute",
        transform: "scale(0)",
        transition: e.transitions.create("transform", {
          easing: e.transitions.easing.easeIn,
          duration: e.transitions.duration.shortest,
        }),
      },
      t.checked && {
        transform: "scale(1)",
        transition: e.transitions.create("transform", {
          easing: e.transitions.easing.easeOut,
          duration: e.transitions.duration.shortest,
        }),
      }
    )
  );
function W9(e) {
  const { checked: t = !1, classes: n = {}, fontSize: r } = e,
    o = S({}, e, { checked: t });
  return f.jsxs(V$, {
    className: n.root,
    ownerState: o,
    children: [
      f.jsx(H$, { fontSize: r, className: n.background, ownerState: o }),
      f.jsx(z$, { fontSize: r, className: n.dot, ownerState: o }),
    ],
  });
}
const G9 = b.createContext(void 0);
function W$() {
  return b.useContext(G9);
}
function G$(e) {
  return Ae("MuiRadio", e);
}
const G7 = Se("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary", "sizeSmall"]),
  U$ = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"],
  Y$ = (e) => {
    const { classes: t, color: n, size: r } = e,
      o = { root: ["root", `color${Q(n)}`, r !== "medium" && `size${Q(r)}`] };
    return S({}, t, Ee(o, G$, t));
  },
  K$ = W(R9, {
    shouldForwardProp: (e) => vn(e) || e === "classes",
    name: "MuiRadio",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.root, n.size !== "medium" && t[`size${Q(n.size)}`], t[`color${Q(n.color)}`]];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      { color: (e.vars || e).palette.text.secondary },
      !t.disableRipple && {
        "&:hover": {
          backgroundColor: e.vars
            ? `rgba(${t.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`
            : lt(
                t.color === "default" ? e.palette.action.active : e.palette[t.color].main,
                e.palette.action.hoverOpacity
              ),
          "@media (hover: none)": { backgroundColor: "transparent" },
        },
      },
      t.color !== "default" && { [`&.${G7.checked}`]: { color: (e.vars || e).palette[t.color].main } },
      { [`&.${G7.disabled}`]: { color: (e.vars || e).palette.action.disabled } }
    )
  );
function X$(e, t) {
  return typeof t == "object" && t !== null ? e === t : String(e) === String(t);
}
const U7 = f.jsx(W9, { checked: !0 }),
  Y7 = f.jsx(W9, {}),
  Xa = b.forwardRef(function (t, n) {
    var r, o;
    const i = ke({ props: t, name: "MuiRadio" }),
      {
        checked: s,
        checkedIcon: a = U7,
        color: l = "primary",
        icon: u = Y7,
        name: c,
        onChange: d,
        size: p = "medium",
        className: h,
      } = i,
      m = ee(i, U$),
      v = S({}, i, { color: l, size: p }),
      C = Y$(v),
      y = W$();
    let g = s;
    const x = uf(d, y && y.onChange);
    let w = c;
    return (
      y && (typeof g > "u" && (g = X$(y.value, i.value)), typeof w > "u" && (w = y.name)),
      f.jsx(
        K$,
        S(
          {
            type: "radio",
            icon: b.cloneElement(u, { fontSize: (r = Y7.props.fontSize) != null ? r : p }),
            checkedIcon: b.cloneElement(a, { fontSize: (o = U7.props.fontSize) != null ? o : p }),
            ownerState: v,
            classes: C,
            name: w,
            checked: g,
            onChange: x,
            ref: n,
            className: ue(C.root, h),
          },
          m
        )
      )
    );
  });
function q$(e) {
  return Ae("MuiRadioGroup", e);
}
Se("MuiRadioGroup", ["root", "row", "error"]);
const Z$ = ["actions", "children", "className", "defaultValue", "name", "onChange", "value"],
  J$ = (e) => {
    const { classes: t, row: n, error: r } = e;
    return Ee({ root: ["root", n && "row", r && "error"] }, q$, t);
  },
  k0 = b.forwardRef(function (t, n) {
    const { actions: r, children: o, className: i, defaultValue: s, name: a, onChange: l, value: u } = t,
      c = ee(t, Z$),
      d = b.useRef(null),
      p = J$(t),
      [h, m] = Sn({ controlled: u, default: s, name: "RadioGroup" });
    b.useImperativeHandle(
      r,
      () => ({
        focus: () => {
          let g = d.current.querySelector("input:not(:disabled):checked");
          g || (g = d.current.querySelector("input:not(:disabled)")), g && g.focus();
        },
      }),
      []
    );
    const v = tt(n, d),
      C = po(a),
      y = b.useMemo(
        () => ({
          name: C,
          onChange(g) {
            m(g.target.value), l && l(g, g.target.value);
          },
          value: h,
        }),
        [C, l, m, h]
      );
    return f.jsx(G9.Provider, {
      value: y,
      children: f.jsx(L9, S({ role: "radiogroup", ref: v, className: ue(p.root, i) }, c, { children: o })),
    });
  }),
  Q$ = nn(
    f.jsx("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }),
    "Star"
  ),
  eB = nn(
    f.jsx("path", {
      d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",
    }),
    "StarBorder"
  );
function tB(e) {
  return Ae("MuiRating", e);
}
const Al = Se("MuiRating", [
    "root",
    "sizeSmall",
    "sizeMedium",
    "sizeLarge",
    "readOnly",
    "disabled",
    "focusVisible",
    "visuallyHidden",
    "pristine",
    "label",
    "labelEmptyValueActive",
    "icon",
    "iconEmpty",
    "iconFilled",
    "iconHover",
    "iconFocus",
    "iconActive",
    "decimal",
  ]),
  nB = ["value"],
  rB = [
    "className",
    "defaultValue",
    "disabled",
    "emptyIcon",
    "emptyLabelText",
    "getLabelText",
    "highlightSelectedOnly",
    "icon",
    "IconContainerComponent",
    "max",
    "name",
    "onChange",
    "onChangeActive",
    "onMouseLeave",
    "onMouseMove",
    "precision",
    "readOnly",
    "size",
    "value",
  ];
function oB(e) {
  const t = e.toString().split(".")[1];
  return t ? t.length : 0;
}
function th(e, t) {
  if (e == null) return e;
  const n = Math.round(e / t) * t;
  return Number(n.toFixed(oB(t)));
}
const iB = (e) => {
    const { classes: t, size: n, readOnly: r, disabled: o, emptyValueFocused: i, focusVisible: s } = e,
      a = {
        root: ["root", `size${Q(n)}`, o && "disabled", s && "focusVisible", r && "readOnly"],
        label: ["label", "pristine"],
        labelEmptyValue: [i && "labelEmptyValueActive"],
        icon: ["icon"],
        iconEmpty: ["iconEmpty"],
        iconFilled: ["iconFilled"],
        iconHover: ["iconHover"],
        iconFocus: ["iconFocus"],
        iconActive: ["iconActive"],
        decimal: ["decimal"],
        visuallyHidden: ["visuallyHidden"],
      };
    return Ee(a, tB, t);
  },
  sB = W("span", {
    name: "MuiRating",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        { [`& .${Al.visuallyHidden}`]: t.visuallyHidden },
        t.root,
        t[`size${Q(n.size)}`],
        n.readOnly && t.readOnly,
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "inline-flex",
        position: "relative",
        fontSize: e.typography.pxToRem(24),
        color: "#faaf00",
        cursor: "pointer",
        textAlign: "left",
        width: "min-content",
        WebkitTapHighlightColor: "transparent",
        [`&.${Al.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity, pointerEvents: "none" },
        [`&.${Al.focusVisible} .${Al.iconActive}`]: { outline: "1px solid #999" },
        [`& .${Al.visuallyHidden}`]: qv,
      },
      t.size === "small" && { fontSize: e.typography.pxToRem(18) },
      t.size === "large" && { fontSize: e.typography.pxToRem(30) },
      t.readOnly && { pointerEvents: "none" }
    )
  ),
  U9 = W("label", {
    name: "MuiRating",
    slot: "Label",
    overridesResolver: ({ ownerState: e }, t) => [t.label, e.emptyValueFocused && t.labelEmptyValueActive],
  })(({ ownerState: e }) =>
    S(
      { cursor: "inherit" },
      e.emptyValueFocused && { top: 0, bottom: 0, position: "absolute", outline: "1px solid #999", width: "100%" }
    )
  ),
  aB = W("span", {
    name: "MuiRating",
    slot: "Icon",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.icon,
        n.iconEmpty && t.iconEmpty,
        n.iconFilled && t.iconFilled,
        n.iconHover && t.iconHover,
        n.iconFocus && t.iconFocus,
        n.iconActive && t.iconActive,
      ];
    },
  })(({ theme: e, ownerState: t }) =>
    S(
      {
        display: "flex",
        transition: e.transitions.create("transform", { duration: e.transitions.duration.shortest }),
        pointerEvents: "none",
      },
      t.iconActive && { transform: "scale(1.2)" },
      t.iconEmpty && { color: (e.vars || e).palette.action.disabled }
    )
  ),
  lB = W("span", {
    name: "MuiRating",
    slot: "Decimal",
    shouldForwardProp: (e) => ol(e) && e !== "iconActive",
    overridesResolver: (e, t) => {
      const { iconActive: n } = e;
      return [t.decimal, n && t.iconActive];
    },
  })(({ iconActive: e }) => S({ position: "relative" }, e && { transform: "scale(1.2)" }));
function uB(e) {
  const t = ee(e, nB);
  return f.jsx("span", S({}, t));
}
function K7(e) {
  const {
      classes: t,
      disabled: n,
      emptyIcon: r,
      focus: o,
      getLabelText: i,
      highlightSelectedOnly: s,
      hover: a,
      icon: l,
      IconContainerComponent: u,
      isActive: c,
      itemValue: d,
      labelProps: p,
      name: h,
      onBlur: m,
      onChange: v,
      onClick: C,
      onFocus: y,
      readOnly: g,
      ownerState: x,
      ratingValue: w,
      ratingValueRounded: k,
    } = e,
    M = s ? d === w : d <= w,
    T = d <= a,
    P = d <= o,
    A = d === k,
    D = po(),
    R = f.jsx(aB, {
      as: u,
      value: d,
      className: ue(t.icon, M ? t.iconFilled : t.iconEmpty, T && t.iconHover, P && t.iconFocus, c && t.iconActive),
      ownerState: S({}, x, { iconEmpty: !M, iconFilled: M, iconHover: T, iconFocus: P, iconActive: c }),
      children: r && !M ? r : l,
    });
  return g
    ? f.jsx("span", S({}, p, { children: R }))
    : f.jsxs(b.Fragment, {
        children: [
          f.jsxs(
            U9,
            S({ ownerState: S({}, x, { emptyValueFocused: void 0 }), htmlFor: D }, p, {
              children: [R, f.jsx("span", { className: t.visuallyHidden, children: i(d) })],
            })
          ),
          f.jsx("input", {
            className: t.visuallyHidden,
            onFocus: y,
            onBlur: m,
            onChange: v,
            onClick: C,
            disabled: n,
            value: d,
            id: D,
            type: "radio",
            name: h,
            checked: A,
          }),
        ],
      });
}
const cB = f.jsx(Q$, { fontSize: "inherit" }),
  dB = f.jsx(eB, { fontSize: "inherit" });
function fB(e) {
  return `${e} Star${e !== 1 ? "s" : ""}`;
}
const pB = b.forwardRef(function (t, n) {
  const r = ke({ name: "MuiRating", props: t }),
    {
      className: o,
      defaultValue: i = null,
      disabled: s = !1,
      emptyIcon: a = dB,
      emptyLabelText: l = "Empty",
      getLabelText: u = fB,
      highlightSelectedOnly: c = !1,
      icon: d = cB,
      IconContainerComponent: p = uB,
      max: h = 5,
      name: m,
      onChange: v,
      onChangeActive: C,
      onMouseLeave: y,
      onMouseMove: g,
      precision: x = 1,
      readOnly: w = !1,
      size: k = "medium",
      value: M,
    } = r,
    T = ee(r, rB),
    P = po(m),
    [A, D] = Sn({ controlled: M, default: i, name: "Rating" }),
    R = th(A, x),
    L = Wp(),
    [{ hover: F, focus: O }, E] = b.useState({ hover: -1, focus: -1 });
  let B = R;
  F !== -1 && (B = F), O !== -1 && (B = O);
  const { isFocusVisibleRef: j, onBlur: _, onFocus: I, ref: $ } = lc(),
    [J, oe] = b.useState(!1),
    pe = b.useRef(),
    z = tt($, pe, n),
    ae = (Z) => {
      g && g(Z);
      const ye = pe.current,
        { right: Fe, left: le, width: he } = ye.getBoundingClientRect();
      let G;
      L ? (G = (Fe - Z.clientX) / he) : (G = (Z.clientX - le) / he);
      let te = th(h * G + x / 2, x);
      (te = ei(te, x, h)),
        E((we) => (we.hover === te && we.focus === te ? we : { hover: te, focus: te })),
        oe(!1),
        C && F !== te && C(Z, te);
    },
    me = (Z) => {
      y && y(Z);
      const ye = -1;
      E({ hover: ye, focus: ye }), C && F !== ye && C(Z, ye);
    },
    X = (Z) => {
      let ye = Z.target.value === "" ? null : parseFloat(Z.target.value);
      F !== -1 && (ye = F), D(ye), v && v(Z, ye);
    },
    ge = (Z) => {
      (Z.clientX === 0 && Z.clientY === 0) ||
        (E({ hover: -1, focus: -1 }), D(null), v && parseFloat(Z.target.value) === R && v(Z, null));
    },
    Pe = (Z) => {
      I(Z), j.current === !0 && oe(!0);
      const ye = parseFloat(Z.target.value);
      E((Fe) => ({ hover: Fe.hover, focus: ye }));
    },
    _e = (Z) => {
      if (F !== -1) return;
      _(Z), j.current === !1 && oe(!1);
      const ye = -1;
      E((Fe) => ({ hover: Fe.hover, focus: ye }));
    },
    [ie, ne] = b.useState(!1),
    V = S({}, r, {
      defaultValue: i,
      disabled: s,
      emptyIcon: a,
      emptyLabelText: l,
      emptyValueFocused: ie,
      focusVisible: J,
      getLabelText: u,
      icon: d,
      IconContainerComponent: p,
      max: h,
      precision: x,
      readOnly: w,
      size: k,
    }),
    K = iB(V);
  return f.jsxs(
    sB,
    S(
      {
        ref: z,
        onMouseMove: ae,
        onMouseLeave: me,
        className: ue(K.root, o, w && "MuiRating-readOnly"),
        ownerState: V,
        role: w ? "img" : null,
        "aria-label": w ? u(B) : null,
      },
      T,
      {
        children: [
          Array.from(new Array(h)).map((Z, ye) => {
            const Fe = ye + 1,
              le = {
                classes: K,
                disabled: s,
                emptyIcon: a,
                focus: O,
                getLabelText: u,
                highlightSelectedOnly: c,
                hover: F,
                icon: d,
                IconContainerComponent: p,
                name: P,
                onBlur: _e,
                onChange: X,
                onClick: ge,
                onFocus: Pe,
                ratingValue: B,
                ratingValueRounded: R,
                readOnly: w,
                ownerState: V,
              },
              he = Fe === Math.ceil(B) && (F !== -1 || O !== -1);
            if (x < 1) {
              const G = Array.from(new Array(1 / x));
              return f.jsx(
                lB,
                {
                  className: ue(K.decimal, he && K.iconActive),
                  ownerState: V,
                  iconActive: he,
                  children: G.map((te, we) => {
                    const Le = th(Fe - 1 + (we + 1) * x, x);
                    return f.jsx(
                      K7,
                      S({}, le, {
                        isActive: !1,
                        itemValue: Le,
                        labelProps: {
                          style:
                            G.length - 1 === we
                              ? {}
                              : {
                                  width: Le === B ? `${(we + 1) * x * 100}%` : "0%",
                                  overflow: "hidden",
                                  position: "absolute",
                                },
                        },
                      }),
                      Le
                    );
                  }),
                },
                Fe
              );
            }
            return f.jsx(K7, S({}, le, { isActive: he, itemValue: Fe }), Fe);
          }),
          !w &&
            !s &&
            f.jsxs(U9, {
              className: ue(K.label, K.labelEmptyValue),
              ownerState: V,
              children: [
                f.jsx("input", {
                  className: K.visuallyHidden,
                  value: "",
                  id: `${P}-empty`,
                  type: "radio",
                  name: P,
                  checked: R == null,
                  onFocus: () => ne(!0),
                  onBlur: () => ne(!1),
                  onChange: X,
                }),
                f.jsx("span", { className: K.visuallyHidden, children: l }),
              ],
            }),
        ],
      }
    )
  );
});
function hB(e) {
  return Ae("MuiScopedCssBaseline", e);
}
Se("MuiScopedCssBaseline", ["root"]);
const mB = ["className", "component", "enableColorScheme"],
  gB = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"] }, hB, t);
  },
  yB = W("div", { name: "MuiScopedCssBaseline", slot: "Root", overridesResolver: (e, t) => t.root })(
    ({ theme: e, ownerState: t }) => {
      const n = {};
      return (
        t.enableColorScheme &&
          e.colorSchemes &&
          Object.entries(e.colorSchemes).forEach(([r, o]) => {
            var i;
            n[`&${e.getColorSchemeSelector(r).replace(/\s*&/, "")}`] = {
              colorScheme: (i = o.palette) == null ? void 0 : i.mode,
            };
          }),
        S(
          {},
          I9(e, t.enableColorScheme),
          O9(e),
          {
            "& *, & *::before, & *::after": { boxSizing: "inherit" },
            "& strong, & b": { fontWeight: e.typography.fontWeightBold },
          },
          n
        )
      );
    }
  ),
  vB = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiScopedCssBaseline" }),
      { className: o, component: i = "div" } = r,
      s = ee(r, mB),
      a = S({}, r, { component: i }),
      l = gB(a);
    return f.jsx(yB, S({ as: i, className: ue(l.root, o), ref: n, ownerState: a }, s));
  });
function xB(e) {
  return Ae("MuiSelect", e);
}
const _l = Se("MuiSelect", [
  "root",
  "select",
  "multiple",
  "filled",
  "outlined",
  "standard",
  "disabled",
  "focused",
  "icon",
  "iconOpen",
  "iconFilled",
  "iconOutlined",
  "iconStandard",
  "nativeInput",
  "error",
]);
var X7;
const bB = [
    "aria-describedby",
    "aria-label",
    "autoFocus",
    "autoWidth",
    "children",
    "className",
    "defaultOpen",
    "defaultValue",
    "disabled",
    "displayEmpty",
    "error",
    "IconComponent",
    "inputRef",
    "labelId",
    "MenuProps",
    "multiple",
    "name",
    "onBlur",
    "onChange",
    "onClose",
    "onFocus",
    "onOpen",
    "open",
    "readOnly",
    "renderValue",
    "SelectDisplayProps",
    "tabIndex",
    "type",
    "value",
    "variant",
  ],
  CB = W("div", {
    name: "MuiSelect",
    slot: "Select",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        { [`&.${_l.select}`]: t.select },
        { [`&.${_l.select}`]: t[n.variant] },
        { [`&.${_l.error}`]: t.error },
        { [`&.${_l.multiple}`]: t.multiple },
      ];
    },
  })(H9, {
    [`&.${_l.select}`]: {
      height: "auto",
      minHeight: "1.4375em",
      textOverflow: "ellipsis",
      whiteSpace: "nowrap",
      overflow: "hidden",
    },
  }),
  wB = W("svg", {
    name: "MuiSelect",
    slot: "Icon",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.icon, n.variant && t[`icon${Q(n.variant)}`], n.open && t.iconOpen];
    },
  })(z9),
  SB = W("input", {
    shouldForwardProp: (e) => ol(e) && e !== "classes",
    name: "MuiSelect",
    slot: "NativeInput",
    overridesResolver: (e, t) => t.nativeInput,
  })({
    bottom: 0,
    left: 0,
    position: "absolute",
    opacity: 0,
    pointerEvents: "none",
    width: "100%",
    boxSizing: "border-box",
  });
function q7(e, t) {
  return typeof t == "object" && t !== null ? e === t : String(e) === String(t);
}
function kB(e) {
  return e == null || (typeof e == "string" && !e.trim());
}
const TB = (e) => {
    const { classes: t, variant: n, disabled: r, multiple: o, open: i, error: s } = e,
      a = {
        select: ["select", n, r && "disabled", o && "multiple", s && "error"],
        icon: ["icon", `icon${Q(n)}`, i && "iconOpen", r && "disabled"],
        nativeInput: ["nativeInput"],
      };
    return Ee(a, xB, t);
  },
  MB = b.forwardRef(function (t, n) {
    var r;
    const {
        "aria-describedby": o,
        "aria-label": i,
        autoFocus: s,
        autoWidth: a,
        children: l,
        className: u,
        defaultOpen: c,
        defaultValue: d,
        disabled: p,
        displayEmpty: h,
        error: m = !1,
        IconComponent: v,
        inputRef: C,
        labelId: y,
        MenuProps: g = {},
        multiple: x,
        name: w,
        onBlur: k,
        onChange: M,
        onClose: T,
        onFocus: P,
        onOpen: A,
        open: D,
        readOnly: R,
        renderValue: L,
        SelectDisplayProps: F = {},
        tabIndex: O,
        value: E,
        variant: B = "standard",
      } = t,
      j = ee(t, bB),
      [_, I] = Sn({ controlled: E, default: d, name: "Select" }),
      [$, J] = Sn({ controlled: D, default: c, name: "Select" }),
      oe = b.useRef(null),
      pe = b.useRef(null),
      [z, ae] = b.useState(null),
      { current: me } = b.useRef(D != null),
      [X, ge] = b.useState(),
      Pe = tt(n, C),
      _e = b.useCallback((se) => {
        (pe.current = se), se && ae(se);
      }, []),
      ie = z == null ? void 0 : z.parentNode;
    b.useImperativeHandle(
      Pe,
      () => ({
        focus: () => {
          pe.current.focus();
        },
        node: oe.current,
        value: _,
      }),
      [_]
    ),
      b.useEffect(() => {
        c && $ && z && !me && (ge(a ? null : ie.clientWidth), pe.current.focus());
      }, [z, a]),
      b.useEffect(() => {
        s && pe.current.focus();
      }, [s]),
      b.useEffect(() => {
        if (!y) return;
        const se = Dt(pe.current).getElementById(y);
        if (se) {
          const Ge = () => {
            getSelection().isCollapsed && pe.current.focus();
          };
          return (
            se.addEventListener("click", Ge),
            () => {
              se.removeEventListener("click", Ge);
            }
          );
        }
      }, [y]);
    const ne = (se, Ge) => {
        se ? A && A(Ge) : T && T(Ge), me || (ge(a ? null : ie.clientWidth), J(se));
      },
      V = (se) => {
        se.button === 0 && (se.preventDefault(), pe.current.focus(), ne(!0, se));
      },
      K = (se) => {
        ne(!1, se);
      },
      Z = b.Children.toArray(l),
      ye = (se) => {
        const Ge = Z.find((ct) => ct.props.value === se.target.value);
        Ge !== void 0 && (I(Ge.props.value), M && M(se, Ge));
      },
      Fe = (se) => (Ge) => {
        let ct;
        if (Ge.currentTarget.hasAttribute("tabindex")) {
          if (x) {
            ct = Array.isArray(_) ? _.slice() : [];
            const Ue = _.indexOf(se.props.value);
            Ue === -1 ? ct.push(se.props.value) : ct.splice(Ue, 1);
          } else ct = se.props.value;
          if ((se.props.onClick && se.props.onClick(Ge), _ !== ct && (I(ct), M))) {
            const Ue = Ge.nativeEvent || Ge,
              rn = new Ue.constructor(Ue.type, Ue);
            Object.defineProperty(rn, "target", { writable: !0, value: { value: ct, name: w } }), M(rn, se);
          }
          x || ne(!1, Ge);
        }
      },
      le = (se) => {
        R || ([" ", "ArrowUp", "ArrowDown", "Enter"].indexOf(se.key) !== -1 && (se.preventDefault(), ne(!0, se)));
      },
      he = z !== null && $,
      G = (se) => {
        !he && k && (Object.defineProperty(se, "target", { writable: !0, value: { value: _, name: w } }), k(se));
      };
    delete j["aria-invalid"];
    let te, we;
    const Le = [];
    let Te = !1;
    (Vf({ value: _ }) || h) && (L ? (te = L(_)) : (Te = !0));
    const je = Z.map((se) => {
      if (!b.isValidElement(se)) return null;
      let Ge;
      if (x) {
        if (!Array.isArray(_)) throw new Error(Fo(2));
        (Ge = _.some((ct) => q7(ct, se.props.value))), Ge && Te && Le.push(se.props.children);
      } else (Ge = q7(_, se.props.value)), Ge && Te && (we = se.props.children);
      return b.cloneElement(se, {
        "aria-selected": Ge ? "true" : "false",
        onClick: Fe(se),
        onKeyUp: (ct) => {
          ct.key === " " && ct.preventDefault(), se.props.onKeyUp && se.props.onKeyUp(ct);
        },
        role: "option",
        selected: Ge,
        value: void 0,
        "data-value": se.props.value,
      });
    });
    Te &&
      (x
        ? Le.length === 0
          ? (te = null)
          : (te = Le.reduce((se, Ge, ct) => (se.push(Ge), ct < Le.length - 1 && se.push(", "), se), []))
        : (te = we));
    let ut = X;
    !a && me && z && (ut = ie.clientWidth);
    let Xe;
    typeof O < "u" ? (Xe = O) : (Xe = p ? null : 0);
    const Y = F.id || (w ? `mui-component-select-${w}` : void 0),
      U = S({}, t, { variant: B, value: _, open: he, error: m }),
      ve = TB(U),
      He = S({}, g.PaperProps, (r = g.slotProps) == null ? void 0 : r.paper),
      Ve = po();
    return f.jsxs(b.Fragment, {
      children: [
        f.jsx(
          CB,
          S(
            {
              ref: _e,
              tabIndex: Xe,
              role: "combobox",
              "aria-controls": Ve,
              "aria-disabled": p ? "true" : void 0,
              "aria-expanded": he ? "true" : "false",
              "aria-haspopup": "listbox",
              "aria-label": i,
              "aria-labelledby": [y, Y].filter(Boolean).join(" ") || void 0,
              "aria-describedby": o,
              onKeyDown: le,
              onMouseDown: p || R ? null : V,
              onBlur: G,
              onFocus: P,
            },
            F,
            {
              ownerState: U,
              className: ue(F.className, ve.select, u),
              id: Y,
              children: kB(te) ? X7 || (X7 = f.jsx("span", { className: "notranslate", children: "​" })) : te,
            }
          )
        ),
        f.jsx(
          SB,
          S(
            {
              "aria-invalid": m,
              value: Array.isArray(_) ? _.join(",") : _,
              name: w,
              ref: oe,
              "aria-hidden": !0,
              onChange: ye,
              tabIndex: -1,
              disabled: p,
              className: ve.nativeInput,
              autoFocus: s,
              ownerState: U,
            },
            j
          )
        ),
        f.jsx(wB, { as: v, className: ve.icon, ownerState: U }),
        f.jsx(
          c$,
          S(
            {
              id: `menu-${w || ""}`,
              anchorEl: ie,
              open: he,
              onClose: K,
              anchorOrigin: { vertical: "bottom", horizontal: "center" },
              transformOrigin: { vertical: "top", horizontal: "center" },
            },
            g,
            {
              MenuListProps: S(
                {
                  "aria-labelledby": y,
                  role: "listbox",
                  "aria-multiselectable": x ? "true" : void 0,
                  disableListWrap: !0,
                  id: Ve,
                },
                g.MenuListProps
              ),
              slotProps: S({}, g.slotProps, {
                paper: S({}, He, { style: S({ minWidth: ut }, He != null ? He.style : null) }),
              }),
              children: je,
            }
          )
        ),
      ],
    });
  }),
  EB = [
    "autoWidth",
    "children",
    "classes",
    "className",
    "defaultOpen",
    "displayEmpty",
    "IconComponent",
    "id",
    "input",
    "inputProps",
    "label",
    "labelId",
    "MenuProps",
    "multiple",
    "native",
    "onClose",
    "onOpen",
    "open",
    "renderValue",
    "SelectDisplayProps",
    "variant",
  ],
  PB = ["root"],
  AB = (e) => {
    const { classes: t } = e;
    return t;
  },
  l5 = {
    name: "MuiSelect",
    overridesResolver: (e, t) => t.root,
    shouldForwardProp: (e) => vn(e) && e !== "variant",
    slot: "Root",
  },
  _B = W(ks, l5)(""),
  DB = W(a5, l5)(""),
  RB = W(n5, l5)(""),
  xc = b.forwardRef(function (t, n) {
    const r = ke({ name: "MuiSelect", props: t }),
      {
        autoWidth: o = !1,
        children: i,
        classes: s = {},
        className: a,
        defaultOpen: l = !1,
        displayEmpty: u = !1,
        IconComponent: c = fF,
        id: d,
        input: p,
        inputProps: h,
        label: m,
        labelId: v,
        MenuProps: C,
        multiple: y = !1,
        native: g = !1,
        onClose: x,
        onOpen: w,
        open: k,
        renderValue: M,
        SelectDisplayProps: T,
        variant: P = "outlined",
      } = r,
      A = ee(r, EB),
      D = g ? A$ : MB,
      R = ho(),
      L = Ri({ props: r, muiFormControl: R, states: ["variant", "error"] }),
      F = L.variant || P,
      O = S({}, r, { variant: F, classes: s }),
      E = AB(O),
      B = ee(E, PB),
      j =
        p ||
        {
          standard: f.jsx(_B, { ownerState: O }),
          outlined: f.jsx(DB, { label: m, ownerState: O }),
          filled: f.jsx(RB, { ownerState: O }),
        }[F],
      _ = tt(n, j.ref);
    return f.jsx(b.Fragment, {
      children: b.cloneElement(
        j,
        S(
          {
            inputComponent: D,
            inputProps: S(
              { children: i, error: L.error, IconComponent: c, variant: F, type: void 0, multiple: y },
              g
                ? { id: d }
                : {
                    autoWidth: o,
                    defaultOpen: l,
                    displayEmpty: u,
                    labelId: v,
                    MenuProps: C,
                    onClose: x,
                    onOpen: w,
                    open: k,
                    renderValue: M,
                    SelectDisplayProps: S({ id: d }, T),
                  },
              h,
              { classes: h ? Cn(B, h.classes) : B },
              p ? p.props.inputProps : {}
            ),
          },
          ((y && g) || u) && F === "outlined" ? { notched: !0 } : {},
          { ref: _, className: ue(j.props.className, a, E.root) },
          !p && { variant: F },
          A
        )
      ),
    });
  });
xc.muiName = "Select";
function IB(e) {
  return Ae("MuiSkeleton", e);
}
Se("MuiSkeleton", [
  "root",
  "text",
  "rectangular",
  "rounded",
  "circular",
  "pulse",
  "wave",
  "withChildren",
  "fitContent",
  "heightAuto",
]);
const OB = ["animation", "className", "component", "height", "style", "variant", "width"];
let zf = (e) => e,
  Z7,
  J7,
  Q7,
  e6;
const FB = (e) => {
    const { classes: t, variant: n, animation: r, hasChildren: o, width: i, height: s } = e;
    return Ee({ root: ["root", n, r, o && "withChildren", o && !i && "fitContent", o && !s && "heightAuto"] }, IB, t);
  },
  LB = Go(
    Z7 ||
      (Z7 = zf`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)
  ),
  NB = Go(
    J7 ||
      (J7 = zf`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)
  ),
  $B = W("span", {
    name: "MuiSkeleton",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        t[n.variant],
        n.animation !== !1 && t[n.animation],
        n.hasChildren && t.withChildren,
        n.hasChildren && !n.width && t.fitContent,
        n.hasChildren && !n.height && t.heightAuto,
      ];
    },
  })(
    ({ theme: e, ownerState: t }) => {
      const n = kA(e.shape.borderRadius) || "px",
        r = TA(e.shape.borderRadius);
      return S(
        {
          display: "block",
          backgroundColor: e.vars
            ? e.vars.palette.Skeleton.bg
            : fs(e.palette.text.primary, e.palette.mode === "light" ? 0.11 : 0.13),
          height: "1.2em",
        },
        t.variant === "text" && {
          marginTop: 0,
          marginBottom: 0,
          height: "auto",
          transformOrigin: "0 55%",
          transform: "scale(1, 0.60)",
          borderRadius: `${r}${n}/${Math.round((r / 0.6) * 10) / 10}${n}`,
          "&:empty:before": { content: '"\\00a0"' },
        },
        t.variant === "circular" && { borderRadius: "50%" },
        t.variant === "rounded" && { borderRadius: (e.vars || e).shape.borderRadius },
        t.hasChildren && { "& > *": { visibility: "hidden" } },
        t.hasChildren && !t.width && { maxWidth: "fit-content" },
        t.hasChildren && !t.height && { height: "auto" }
      );
    },
    ({ ownerState: e }) =>
      e.animation === "pulse" &&
      cs(
        Q7 ||
          (Q7 = zf`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),
        LB
      ),
    ({ ownerState: e, theme: t }) =>
      e.animation === "wave" &&
      cs(
        e6 ||
          (e6 = zf`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),
        NB,
        (t.vars || t).palette.action.hover
      )
  ),
  Y9 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiSkeleton" }),
      {
        animation: o = "pulse",
        className: i,
        component: s = "span",
        height: a,
        style: l,
        variant: u = "text",
        width: c,
      } = r,
      d = ee(r, OB),
      p = S({}, r, { animation: o, component: s, variant: u, hasChildren: !!d.children }),
      h = FB(p);
    return f.jsx(
      $B,
      S({ as: s, ref: n, className: ue(h.root, i), ownerState: p }, d, { style: S({ width: c, height: a }, l) })
    );
  }),
  BB = (e) => !e || !io(e);
function jB(e) {
  return Ae("MuiSlider", e);
}
const lr = Se("MuiSlider", [
    "root",
    "active",
    "colorPrimary",
    "colorSecondary",
    "colorError",
    "colorInfo",
    "colorSuccess",
    "colorWarning",
    "disabled",
    "dragging",
    "focusVisible",
    "mark",
    "markActive",
    "marked",
    "markLabel",
    "markLabelActive",
    "rail",
    "sizeSmall",
    "thumb",
    "thumbColorPrimary",
    "thumbColorSecondary",
    "thumbColorError",
    "thumbColorSuccess",
    "thumbColorInfo",
    "thumbColorWarning",
    "track",
    "trackInverted",
    "trackFalse",
    "thumbSizeSmall",
    "valueLabel",
    "valueLabelOpen",
    "valueLabelCircle",
    "valueLabelLabel",
    "vertical",
  ]),
  VB = (e) => {
    const { open: t } = e;
    return { offset: ue(t && lr.valueLabelOpen), circle: lr.valueLabelCircle, label: lr.valueLabelLabel };
  };
function HB(e) {
  const { children: t, className: n, value: r } = e,
    o = VB(e);
  return t
    ? b.cloneElement(
        t,
        { className: ue(t.props.className) },
        f.jsxs(b.Fragment, {
          children: [
            t.props.children,
            f.jsx("span", {
              className: ue(o.offset, n),
              "aria-hidden": !0,
              children: f.jsx("span", {
                className: o.circle,
                children: f.jsx("span", { className: o.label, children: r }),
              }),
            }),
          ],
        })
      )
    : null;
}
const zB = [
    "aria-label",
    "aria-valuetext",
    "aria-labelledby",
    "component",
    "components",
    "componentsProps",
    "color",
    "classes",
    "className",
    "disableSwap",
    "disabled",
    "getAriaLabel",
    "getAriaValueText",
    "marks",
    "max",
    "min",
    "name",
    "onChange",
    "onChangeCommitted",
    "orientation",
    "shiftStep",
    "size",
    "step",
    "scale",
    "slotProps",
    "slots",
    "tabIndex",
    "track",
    "value",
    "valueLabelDisplay",
    "valueLabelFormat",
  ],
  WB = t_();
function t6(e) {
  return e;
}
const GB = W("span", {
    name: "MuiSlider",
    slot: "Root",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [
        t.root,
        t[`color${Q(n.color)}`],
        n.size !== "medium" && t[`size${Q(n.size)}`],
        n.marked && t.marked,
        n.orientation === "vertical" && t.vertical,
        n.track === "inverted" && t.trackInverted,
        n.track === !1 && t.trackFalse,
      ];
    },
  })(({ theme: e }) => {
    var t;
    return {
      borderRadius: 12,
      boxSizing: "content-box",
      display: "inline-block",
      position: "relative",
      cursor: "pointer",
      touchAction: "none",
      WebkitTapHighlightColor: "transparent",
      "@media print": { colorAdjust: "exact" },
      [`&.${lr.disabled}`]: { pointerEvents: "none", cursor: "default", color: (e.vars || e).palette.grey[400] },
      [`&.${lr.dragging}`]: { [`& .${lr.thumb}, & .${lr.track}`]: { transition: "none" } },
      variants: [
        ...Object.keys(((t = e.vars) != null ? t : e).palette)
          .filter((n) => {
            var r;
            return ((r = e.vars) != null ? r : e).palette[n].main;
          })
          .map((n) => ({ props: { color: n }, style: { color: (e.vars || e).palette[n].main } })),
        {
          props: { orientation: "horizontal" },
          style: { height: 4, width: "100%", padding: "13px 0", "@media (pointer: coarse)": { padding: "20px 0" } },
        },
        { props: { orientation: "horizontal", size: "small" }, style: { height: 2 } },
        { props: { orientation: "horizontal", marked: !0 }, style: { marginBottom: 20 } },
        {
          props: { orientation: "vertical" },
          style: { height: "100%", width: 4, padding: "0 13px", "@media (pointer: coarse)": { padding: "0 20px" } },
        },
        { props: { orientation: "vertical", size: "small" }, style: { width: 2 } },
        { props: { orientation: "vertical", marked: !0 }, style: { marginRight: 44 } },
      ],
    };
  }),
  UB = W("span", { name: "MuiSlider", slot: "Rail", overridesResolver: (e, t) => t.rail })({
    display: "block",
    position: "absolute",
    borderRadius: "inherit",
    backgroundColor: "currentColor",
    opacity: 0.38,
    variants: [
      {
        props: { orientation: "horizontal" },
        style: { width: "100%", height: "inherit", top: "50%", transform: "translateY(-50%)" },
      },
      {
        props: { orientation: "vertical" },
        style: { height: "100%", width: "inherit", left: "50%", transform: "translateX(-50%)" },
      },
      { props: { track: "inverted" }, style: { opacity: 1 } },
    ],
  }),
  YB = W("span", { name: "MuiSlider", slot: "Track", overridesResolver: (e, t) => t.track })(({ theme: e }) => {
    var t;
    return {
      display: "block",
      position: "absolute",
      borderRadius: "inherit",
      border: "1px solid currentColor",
      backgroundColor: "currentColor",
      transition: e.transitions.create(["left", "width", "bottom", "height"], {
        duration: e.transitions.duration.shortest,
      }),
      variants: [
        { props: { size: "small" }, style: { border: "none" } },
        {
          props: { orientation: "horizontal" },
          style: { height: "inherit", top: "50%", transform: "translateY(-50%)" },
        },
        { props: { orientation: "vertical" }, style: { width: "inherit", left: "50%", transform: "translateX(-50%)" } },
        { props: { track: !1 }, style: { display: "none" } },
        ...Object.keys(((t = e.vars) != null ? t : e).palette)
          .filter((n) => {
            var r;
            return ((r = e.vars) != null ? r : e).palette[n].main;
          })
          .map((n) => ({
            props: { color: n, track: "inverted" },
            style: S(
              {},
              e.vars
                ? {
                    backgroundColor: e.vars.palette.Slider[`${n}Track`],
                    borderColor: e.vars.palette.Slider[`${n}Track`],
                  }
                : S(
                    { backgroundColor: ff(e.palette[n].main, 0.62), borderColor: ff(e.palette[n].main, 0.62) },
                    e.applyStyles("dark", { backgroundColor: df(e.palette[n].main, 0.5) }),
                    e.applyStyles("dark", { borderColor: df(e.palette[n].main, 0.5) })
                  )
            ),
          })),
      ],
    };
  }),
  KB = W("span", {
    name: "MuiSlider",
    slot: "Thumb",
    overridesResolver: (e, t) => {
      const { ownerState: n } = e;
      return [t.thumb, t[`thumbColor${Q(n.color)}`], n.size !== "medium" && t[`thumbSize${Q(n.size)}`]];
    },
  })(({ theme: e }) => {
    var t;
    return {
      position: "absolute",
      width: 20,
      height: 20,
      boxSizing: "border-box",
      borderRadius: "50%",
      outline: 0,
      backgroundColor: "currentColor",
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      transition: e.transitions.create(["box-shadow", "left", "bottom"], { duration: e.transitions.duration.shortest }),
      "&::before": {
        position: "absolute",
        content: '""',
        borderRadius: "inherit",
        width: "100%",
        height: "100%",
        boxShadow: (e.vars || e).shadows[2],
      },
      "&::after": {
        position: "absolute",
        content: '""',
        borderRadius: "50%",
        width: 42,
        height: 42,
        top: "50%",
        left: "50%",
        transform: "translate(-50%, -50%)",
      },
      [`&.${lr.disabled}`]: { "&:hover": { boxShadow: "none" } },
      variants: [
        { props: { size: "small" }, style: { width: 12, height: 12, "&::before": { boxShadow: "none" } } },
        { props: { orientation: "horizontal" }, style: { top: "50%", transform: "translate(-50%, -50%)" } },
        { props: { orientation: "vertical" }, style: { left: "50%", transform: "translate(-50%, 50%)" } },
        ...Object.keys(((t = e.vars) != null ? t : e).palette)
          .filter((n) => {
            var r;
            return ((r = e.vars) != null ? r : e).palette[n].main;
          })
          .map((n) => ({
            props: { color: n },
            style: {
              [`&:hover, &.${lr.focusVisible}`]: S(
                {},
                e.vars
                  ? { boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)` }
                  : { boxShadow: `0px 0px 0px 8px ${lt(e.palette[n].main, 0.16)}` },
                { "@media (hover: none)": { boxShadow: "none" } }
              ),
              [`&.${lr.active}`]: S(
                {},
                e.vars
                  ? { boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)}` }
                  : { boxShadow: `0px 0px 0px 14px ${lt(e.palette[n].main, 0.16)}` }
              ),
            },
          })),
      ],
    };
  }),
  XB = W(HB, { name: "MuiSlider", slot: "ValueLabel", overridesResolver: (e, t) => t.valueLabel })(({ theme: e }) =>
    S({ zIndex: 1, whiteSpace: "nowrap" }, e.typography.body2, {
      fontWeight: 500,
      transition: e.transitions.create(["transform"], { duration: e.transitions.duration.shortest }),
      position: "absolute",
      backgroundColor: (e.vars || e).palette.grey[600],
      borderRadius: 2,
      color: (e.vars || e).palette.common.white,
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      padding: "0.25rem 0.75rem",
      variants: [
        {
          props: { orientation: "horizontal" },
          style: {
            transform: "translateY(-100%) scale(0)",
            top: "-10px",
            transformOrigin: "bottom center",
            "&::before": {
              position: "absolute",
              content: '""',
              width: 8,
              height: 8,
              transform: "translate(-50%, 50%) rotate(45deg)",
              backgroundColor: "inherit",
              bottom: 0,
              left: "50%",
            },
            [`&.${lr.valueLabelOpen}`]: { transform: "translateY(-100%) scale(1)" },
          },
        },
        {
          props: { orientation: "vertical" },
          style: {
            transform: "translateY(-50%) scale(0)",
            right: "30px",
            top: "50%",
            transformOrigin: "right center",
            "&::before": {
              position: "absolute",
              content: '""',
              width: 8,
              height: 8,
              transform: "translate(-50%, -50%) rotate(45deg)",
              backgroundColor: "inherit",
              right: -8,
              top: "50%",
            },
            [`&.${lr.valueLabelOpen}`]: { transform: "translateY(-50%) scale(1)" },
          },
        },
        { props: { size: "small" }, style: { fontSize: e.typography.pxToRem(12), padding: "0.25rem 0.5rem" } },
        { props: { orientation: "vertical", size: "small" }, style: { right: "20px" } },
      ],
    })
  ),
  qB = W("span", {
    name: "MuiSlider",
    slot: "Mark",
    shouldForwardProp: (e) => ol(e) && e !== "markActive",
    overridesResolver: (e, t) => {
      const { markActive: n } = e;
      return [t.mark, n && t.markActive];
    },
  })(({ theme: e }) => ({
    position: "absolute",
    width: 2,
    height: 2,
    borderRadius: 1,
    backgroundColor: "currentColor",
    variants: [
      { props: { orientation: "horizontal" }, style: { top: "50%", transform: "translate(-1px, -50%)" } },
      { props: { orientation: "vertical" }, style: { left: "50%", transform: "translate(-50%, 1px)" } },
      { props: { markActive: !0 }, style: { backgroundColor: (e.vars || e).palette.background.paper, opacity: 0.8 } },
    ],
  })),
  ZB = W("span", {
    name: "MuiSlider",
    slot: "MarkLabel",
    shouldForwardProp: (e) => ol(e) && e !== "markLabelActive",
    overridesResolver: (e, t) => t.markLabel,
  })(({ theme: e }) =>
    S({}, e.typography.body2, {
      color: (e.vars || e).palette.text.secondary,
      position: "absolute",
      whiteSpace: "nowrap",
      variants: [
        {
          props: { orientation: "horizontal" },
          style: { top: 30, transform: "translateX(-50%)", "@media (pointer: coarse)": { top: 40 } },
        },
        {
          props: { orientation: "vertical" },
          style: { left: 36, transform: "translateY(50%)", "@media (pointer: coarse)": { left: 44 } },
        },
        { props: { markLabelActive: !0 }, style: { color: (e.vars || e).palette.text.primary } },
      ],
    })
  ),
  JB = (e) => {
    const { disabled: t, dragging: n, marked: r, orientation: o, track: i, classes: s, color: a, size: l } = e,
      u = {
        root: [
          "root",
          t && "disabled",
          n && "dragging",
          r && "marked",
          o === "vertical" && "vertical",
          i === "inverted" && "trackInverted",
          i === !1 && "trackFalse",
          a && `color${Q(a)}`,
          l && `size${Q(l)}`,
        ],
        rail: ["rail"],
        track: ["track"],
        mark: ["mark"],
        markActive: ["markActive"],
        markLabel: ["markLabel"],
        markLabelActive: ["markLabelActive"],
        valueLabel: ["valueLabel"],
        thumb: ["thumb", t && "disabled", l && `thumbSize${Q(l)}`, a && `thumbColor${Q(a)}`],
        active: ["active"],
        disabled: ["disabled"],
        focusVisible: ["focusVisible"],
      };
    return Ee(u, jB, s);
  },
  QB = ({ children: e }) => e,
  ej = b.forwardRef(function (t, n) {
    var r, o, i, s, a, l, u, c, d, p, h, m, v, C, y, g, x, w, k, M, T, P, A, D;
    const R = WB({ props: t, name: "MuiSlider" }),
      L = Wp(),
      {
        "aria-label": F,
        "aria-valuetext": O,
        "aria-labelledby": E,
        component: B = "span",
        components: j = {},
        componentsProps: _ = {},
        color: I = "primary",
        classes: $,
        className: J,
        disableSwap: oe = !1,
        disabled: pe = !1,
        getAriaLabel: z,
        getAriaValueText: ae,
        marks: me = !1,
        max: X = 100,
        min: ge = 0,
        orientation: Pe = "horizontal",
        shiftStep: _e = 10,
        size: ie = "medium",
        step: ne = 1,
        scale: V = t6,
        slotProps: K,
        slots: Z,
        track: ye = "normal",
        valueLabelDisplay: Fe = "off",
        valueLabelFormat: le = t6,
      } = R,
      he = ee(R, zB),
      G = S({}, R, {
        isRtl: L,
        max: X,
        min: ge,
        classes: $,
        disabled: pe,
        disableSwap: oe,
        orientation: Pe,
        marks: me,
        color: I,
        size: ie,
        step: ne,
        shiftStep: _e,
        scale: V,
        track: ye,
        valueLabelDisplay: Fe,
        valueLabelFormat: le,
      }),
      {
        axisProps: te,
        getRootProps: we,
        getHiddenInputProps: Le,
        getThumbProps: Te,
        open: je,
        active: ut,
        axis: Xe,
        focusedThumbIndex: Y,
        range: U,
        dragging: ve,
        marks: He,
        values: Ve,
        trackOffset: se,
        trackLeap: Ge,
        getThumbStyle: ct,
      } = $O(S({}, G, { rootRef: n }));
    (G.marked = He.length > 0 && He.some((Wt) => Wt.label)), (G.dragging = ve), (G.focusedThumbIndex = Y);
    const Ue = JB(G),
      rn = (r = (o = Z == null ? void 0 : Z.root) != null ? o : j.Root) != null ? r : GB,
      zr = (i = (s = Z == null ? void 0 : Z.rail) != null ? s : j.Rail) != null ? i : UB,
      dl = (a = (l = Z == null ? void 0 : Z.track) != null ? l : j.Track) != null ? a : YB,
      Ps = (u = (c = Z == null ? void 0 : Z.thumb) != null ? c : j.Thumb) != null ? u : KB,
      As = (d = (p = Z == null ? void 0 : Z.valueLabel) != null ? p : j.ValueLabel) != null ? d : XB,
      Fi = (h = (m = Z == null ? void 0 : Z.mark) != null ? m : j.Mark) != null ? h : qB,
      fl = (v = (C = Z == null ? void 0 : Z.markLabel) != null ? C : j.MarkLabel) != null ? v : ZB,
      xt = (y = (g = Z == null ? void 0 : Z.input) != null ? g : j.Input) != null ? y : "input",
      Mn = (x = K == null ? void 0 : K.root) != null ? x : _.root,
      Li = (w = K == null ? void 0 : K.rail) != null ? w : _.rail,
      Jn = (k = K == null ? void 0 : K.track) != null ? k : _.track,
      K0 = (M = K == null ? void 0 : K.thumb) != null ? M : _.thumb,
      X0 = (T = K == null ? void 0 : K.valueLabel) != null ? T : _.valueLabel,
      JC = (P = K == null ? void 0 : K.mark) != null ? P : _.mark,
      QC = (A = K == null ? void 0 : K.markLabel) != null ? A : _.markLabel,
      ew = (D = K == null ? void 0 : K.input) != null ? D : _.input,
      tw = qe({
        elementType: rn,
        getSlotProps: we,
        externalSlotProps: Mn,
        externalForwardedProps: he,
        additionalProps: S({}, BB(rn) && { as: B }),
        ownerState: S({}, G, Mn == null ? void 0 : Mn.ownerState),
        className: [Ue.root, J],
      }),
      nw = qe({ elementType: zr, externalSlotProps: Li, ownerState: G, className: Ue.rail }),
      rw = qe({
        elementType: dl,
        externalSlotProps: Jn,
        additionalProps: { style: S({}, te[Xe].offset(se), te[Xe].leap(Ge)) },
        ownerState: S({}, G, Jn == null ? void 0 : Jn.ownerState),
        className: Ue.track,
      }),
      q0 = qe({
        elementType: Ps,
        getSlotProps: Te,
        externalSlotProps: K0,
        ownerState: S({}, G, K0 == null ? void 0 : K0.ownerState),
        className: Ue.thumb,
      }),
      ow = qe({
        elementType: As,
        externalSlotProps: X0,
        ownerState: S({}, G, X0 == null ? void 0 : X0.ownerState),
        className: Ue.valueLabel,
      }),
      Z0 = qe({ elementType: Fi, externalSlotProps: JC, ownerState: G, className: Ue.mark }),
      J0 = qe({ elementType: fl, externalSlotProps: QC, ownerState: G, className: Ue.markLabel }),
      iw = qe({ elementType: xt, getSlotProps: Le, externalSlotProps: ew, ownerState: G });
    return f.jsxs(
      rn,
      S({}, tw, {
        children: [
          f.jsx(zr, S({}, nw)),
          f.jsx(dl, S({}, rw)),
          He.filter((Wt) => Wt.value >= ge && Wt.value <= X).map((Wt, on) => {
            const Q0 = jf(Wt.value, ge, X),
              _c = te[Xe].offset(Q0);
            let yo;
            return (
              ye === !1
                ? (yo = Ve.indexOf(Wt.value) !== -1)
                : (yo =
                    (ye === "normal" && (U ? Wt.value >= Ve[0] && Wt.value <= Ve[Ve.length - 1] : Wt.value <= Ve[0])) ||
                    (ye === "inverted" &&
                      (U ? Wt.value <= Ve[0] || Wt.value >= Ve[Ve.length - 1] : Wt.value >= Ve[0]))),
              f.jsxs(
                b.Fragment,
                {
                  children: [
                    f.jsx(
                      Fi,
                      S({ "data-index": on }, Z0, !io(Fi) && { markActive: yo }, {
                        style: S({}, _c, Z0.style),
                        className: ue(Z0.className, yo && Ue.markActive),
                      })
                    ),
                    Wt.label != null
                      ? f.jsx(
                          fl,
                          S({ "aria-hidden": !0, "data-index": on }, J0, !io(fl) && { markLabelActive: yo }, {
                            style: S({}, _c, J0.style),
                            className: ue(Ue.markLabel, J0.className, yo && Ue.markLabelActive),
                            children: Wt.label,
                          })
                        )
                      : null,
                  ],
                },
                on
              )
            );
          }),
          Ve.map((Wt, on) => {
            const Q0 = jf(Wt, ge, X),
              _c = te[Xe].offset(Q0),
              yo = Fe === "off" ? QB : As;
            return f.jsx(
              yo,
              S(
                {},
                !io(yo) && {
                  valueLabelFormat: le,
                  valueLabelDisplay: Fe,
                  value: typeof le == "function" ? le(V(Wt), on) : le,
                  index: on,
                  open: je === on || ut === on || Fe === "on",
                  disabled: pe,
                },
                ow,
                {
                  children: f.jsx(
                    Ps,
                    S({ "data-index": on }, q0, {
                      className: ue(Ue.thumb, q0.className, ut === on && Ue.active, Y === on && Ue.focusVisible),
                      style: S({}, _c, ct(on), q0.style),
                      children: f.jsx(
                        xt,
                        S(
                          {
                            "data-index": on,
                            "aria-label": z ? z(on) : F,
                            "aria-valuenow": V(Wt),
                            "aria-labelledby": E,
                            "aria-valuetext": ae ? ae(V(Wt), on) : O,
                            value: Ve[on],
                          },
                          iw
                        )
                      ),
                    })
                  ),
                }
              ),
              on
            );
          }),
        ],
      })
    );
  });
function tj(e) {
  return Ae("MuiTextField", e);
}
Se("MuiTextField", ["root"]);
const nj = [
    "autoComplete",
    "autoFocus",
    "children",
    "className",
    "color",
    "defaultValue",
    "disabled",
    "error",
    "FormHelperTextProps",
    "fullWidth",
    "helperText",
    "id",
    "InputLabelProps",
    "inputProps",
    "InputProps",
    "inputRef",
    "label",
    "maxRows",
    "minRows",
    "multiline",
    "name",
    "onBlur",
    "onChange",
    "onFocus",
    "placeholder",
    "required",
    "rows",
    "select",
    "SelectProps",
    "type",
    "value",
    "variant",
  ],
  rj = { standard: ks, filled: n5, outlined: a5 },
  oj = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"] }, tj, t);
  },
  ij = W(vc, { name: "MuiTextField", slot: "Root", overridesResolver: (e, t) => t.root })({}),
  T0 = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiTextField" }),
      {
        autoComplete: o,
        autoFocus: i = !1,
        children: s,
        className: a,
        color: l = "primary",
        defaultValue: u,
        disabled: c = !1,
        error: d = !1,
        FormHelperTextProps: p,
        fullWidth: h = !1,
        helperText: m,
        id: v,
        InputLabelProps: C,
        inputProps: y,
        InputProps: g,
        inputRef: x,
        label: w,
        maxRows: k,
        minRows: M,
        multiline: T = !1,
        name: P,
        onBlur: A,
        onChange: D,
        onFocus: R,
        placeholder: L,
        required: F = !1,
        rows: O,
        select: E = !1,
        SelectProps: B,
        type: j,
        value: _,
        variant: I = "outlined",
      } = r,
      $ = ee(r, nj),
      J = S({}, r, {
        autoFocus: i,
        color: l,
        disabled: c,
        error: d,
        fullWidth: h,
        multiline: T,
        required: F,
        select: E,
        variant: I,
      }),
      oe = oj(J),
      pe = {};
    I === "outlined" && (C && typeof C.shrink < "u" && (pe.notched = C.shrink), (pe.label = w)),
      E && ((!B || !B.native) && (pe.id = void 0), (pe["aria-describedby"] = void 0));
    const z = po(v),
      ae = m && z ? `${z}-helper-text` : void 0,
      me = w && z ? `${z}-label` : void 0,
      X = rj[I],
      ge = f.jsx(
        X,
        S(
          {
            "aria-describedby": ae,
            autoComplete: o,
            autoFocus: i,
            defaultValue: u,
            fullWidth: h,
            multiline: T,
            name: P,
            rows: O,
            maxRows: k,
            minRows: M,
            type: j,
            value: _,
            id: z,
            inputRef: x,
            onBlur: A,
            onChange: D,
            onFocus: R,
            placeholder: L,
            inputProps: y,
          },
          pe,
          g
        )
      );
    return f.jsxs(
      ij,
      S(
        {
          className: ue(oe.root, a),
          disabled: c,
          error: d,
          fullWidth: h,
          ref: n,
          required: F,
          color: l,
          variant: I,
          ownerState: J,
        },
        $,
        {
          children: [
            w != null && w !== "" && f.jsx(cN, S({ htmlFor: z, id: me }, C, { children: w })),
            E
              ? f.jsx(xc, S({ "aria-describedby": ae, id: z, labelId: me, value: _, input: ge }, B, { children: s }))
              : ge,
            m && f.jsx(HL, S({ id: ae }, p, { children: m })),
          ],
        }
      )
    );
  });
function K9() {
  return f.jsx(Y9, {
    component: "div",
    variant: "rectangular",
    sx: { bgcolor: "grey", width: "100%", height: "100%" },
  });
}
const Mr = (e, t) => {
    var n;
    e && ((n = window._tmr) == null || n.push({ type: "reachGoal", id: e, goal: t }));
  },
  bc = (e) =>
    b.useMemo(
      () => ({
        quizOpened: () => Mr(e, "penaquiz-start"),
        firstPageOpened: () => Mr(e, "penaquiz-startquiz"),
        phoneNumberOpened: () => Mr(e, "penaquiz-phone"),
        emailOpened: () => Mr(e, "penaquiz-email"),
        resultIdShown: (t) => Mr(e, `penaquiz-result-${t}`),
        resultLink: () => Mr(e, "penaquiz-resultlink"),
        contactsFormOpened: () => Mr(e, "penaquiz-form"),
        contactsFormFilled: () => Mr(e, "penaquiz-contacts"),
        contactsFormField: (t) => Mr(e, `penaquiz-formfield-${t}`),
        messengerRequestSended: (t) => Mr(e, `penaquiz-messengers-${t}`),
        questionPassed: (t) => Mr(e, `penaquiz-step${t}`),
      }),
      [e]
    ),
  Er = (e, t) => {
    var n;
    e && ((n = window.ym) == null || n.call(window, e, "reachGoal", t));
  },
  Cc = (e) =>
    b.useMemo(
      () => ({
        quizOpened: () => Er(e, "penaquiz-start"),
        firstPageOpened: () => Er(e, "penaquiz-startquiz"),
        phoneNumberOpened: () => Er(e, "penaquiz-phone"),
        emailOpened: () => Er(e, "penaquiz-email"),
        resultIdShown: (t) => Er(e, `penaquiz-result-${t}`),
        resultLink: () => Er(e, "penaquiz-resultlink"),
        contactsFormOpened: () => Er(e, "penaquiz-form"),
        contactsFormFilled: () => Er(e, "penaquiz-contacts"),
        contactsFormField: (t) => Er(e, `penaquiz-formfield-${t}`),
        messengerRequestSended: (t) => Er(e, `penaquiz-messengers-${t}`),
        questionPassed: (t) => Er(e, `penaquiz-step${t}`),
      }),
      [e]
    ),
  X9 = b.createContext(null),
  dt = () => {
    const e = b.useContext(X9);
    if (e === null) throw new Error("QuizSettings context is null");
    return e;
  },
  q9 = b.createContext(null),
  pt = () => {
    const e = b.useContext(q9);
    if (e === null) throw new Error("rootContainerSize context is null");
    return e;
  },
  sj = ["localeText"],
  Xm = b.createContext(null),
  u5 = function (t) {
    var n;
    const { localeText: r } = t,
      o = ee(t, sj),
      { utils: i, localeText: s } = (n = b.useContext(Xm)) != null ? n : { utils: void 0, localeText: void 0 },
      a = ke({ props: o, name: "MuiLocalizationProvider" }),
      { children: l, dateAdapter: u, dateFormats: c, dateLibInstance: d, adapterLocale: p, localeText: h } = a,
      m = b.useMemo(() => S({}, h, s, r), [h, s, r]),
      v = b.useMemo(() => {
        if (!u) return i || null;
        const g = new u({ locale: p, formats: c, instance: d });
        if (!g.isMUIAdapter)
          throw new Error(
            [
              "MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`",
              "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`",
              "More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation",
            ].join(`
`)
          );
        return g;
      }, [u, p, c, d, i]),
      C = b.useMemo(
        () => (v ? { minDate: v.date("1900-01-01T00:00:00.000"), maxDate: v.date("2099-12-31T00:00:00.000") } : null),
        [v]
      ),
      y = b.useMemo(() => ({ utils: v, defaultDates: C, localeText: m }), [C, v, m]);
    return f.jsx(Xm.Provider, { value: y, children: l });
  },
  Z9 = (e) => ({ components: { MuiLocalizationProvider: { defaultProps: { localeText: S({}, e) } } } }),
  J9 = {
    previousMonth: "Previous month",
    nextMonth: "Next month",
    openPreviousView: "open previous view",
    openNextView: "open next view",
    calendarViewSwitchingButtonAriaLabel: (e) =>
      e === "year" ? "year view is open, switch to calendar view" : "calendar view is open, switch to year view",
    start: "Start",
    end: "End",
    cancelButtonLabel: "Cancel",
    clearButtonLabel: "Clear",
    okButtonLabel: "OK",
    todayButtonLabel: "Today",
    datePickerToolbarTitle: "Select date",
    dateTimePickerToolbarTitle: "Select date & time",
    timePickerToolbarTitle: "Select time",
    dateRangePickerToolbarTitle: "Select date range",
    clockLabelText: (e, t, n) =>
      `Select ${e}. ${t === null ? "No time selected" : `Selected time is ${n.format(t, "fullTime")}`}`,
    hoursClockNumberText: (e) => `${e} hours`,
    minutesClockNumberText: (e) => `${e} minutes`,
    secondsClockNumberText: (e) => `${e} seconds`,
    selectViewText: (e) => `Select ${e}`,
    calendarWeekNumberHeaderLabel: "Week number",
    calendarWeekNumberHeaderText: "#",
    calendarWeekNumberAriaLabelText: (e) => `Week ${e}`,
    calendarWeekNumberText: (e) => `${e}`,
    openDatePickerDialogue: (e, t) =>
      e !== null && t.isValid(e) ? `Choose date, selected date is ${t.format(e, "fullDate")}` : "Choose date",
    openTimePickerDialogue: (e, t) =>
      e !== null && t.isValid(e) ? `Choose time, selected time is ${t.format(e, "fullTime")}` : "Choose time",
    fieldClearLabel: "Clear value",
    timeTableLabel: "pick time",
    dateTableLabel: "pick date",
    fieldYearPlaceholder: (e) => "Y".repeat(e.digitAmount),
    fieldMonthPlaceholder: (e) => (e.contentType === "letter" ? "MMMM" : "MM"),
    fieldDayPlaceholder: () => "DD",
    fieldWeekDayPlaceholder: (e) => (e.contentType === "letter" ? "EEEE" : "EE"),
    fieldHoursPlaceholder: () => "hh",
    fieldMinutesPlaceholder: () => "mm",
    fieldSecondsPlaceholder: () => "ss",
    fieldMeridiemPlaceholder: () => "aa",
  },
  aj = J9;
Z9(J9);
const Ts = () => {
    const e = b.useContext(Xm);
    if (e === null)
      throw new Error(
        [
          "MUI: Can not find the date and time pickers localization context.",
          "It looks like you forgot to wrap your component in LocalizationProvider.",
          "This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package",
        ].join(`
`)
      );
    if (e.utils === null)
      throw new Error(
        [
          "MUI: Can not find the date and time pickers adapter from its localization context.",
          "It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.",
        ].join(`
`)
      );
    const t = b.useMemo(() => S({}, aj, e.localeText), [e.localeText]);
    return b.useMemo(() => S({}, e, { localeText: t }), [e, t]);
  },
  wt = () => Ts().utils,
  wc = () => Ts().defaultDates,
  Oi = () => Ts().localeText,
  M0 = (e) => {
    const t = wt(),
      n = b.useRef();
    return n.current === void 0 && (n.current = t.dateWithTimezone(void 0, e)), n.current;
  },
  lj = nn(f.jsx("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown"),
  uj = nn(f.jsx("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }), "ArrowLeft"),
  cj = nn(f.jsx("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }), "ArrowRight"),
  dj = nn(
    f.jsx("path", {
      d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z",
    }),
    "Calendar"
  );
nn(
  f.jsxs(b.Fragment, {
    children: [
      f.jsx("path", {
        d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z",
      }),
      f.jsx("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }),
    ],
  }),
  "Clock"
);
nn(
  f.jsx("path", {
    d: "M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z",
  }),
  "DateRange"
);
nn(
  f.jsxs(b.Fragment, {
    children: [
      f.jsx("path", {
        d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z",
      }),
      f.jsx("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }),
    ],
  }),
  "Time"
);
const fj = nn(
  f.jsx("path", {
    d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
  }),
  "Clear"
);
function pj(e) {
  return Ae("MuiPickersArrowSwitcher", e);
}
Se("MuiPickersArrowSwitcher", ["root", "spacer", "button"]);
const hj = [
    "children",
    "className",
    "slots",
    "slotProps",
    "isNextDisabled",
    "isNextHidden",
    "onGoToNext",
    "nextLabel",
    "isPreviousDisabled",
    "isPreviousHidden",
    "onGoToPrevious",
    "previousLabel",
  ],
  mj = ["ownerState"],
  gj = ["ownerState"],
  yj = W("div", { name: "MuiPickersArrowSwitcher", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "flex",
  }),
  vj = W("div", { name: "MuiPickersArrowSwitcher", slot: "Spacer", overridesResolver: (e, t) => t.spacer })(
    ({ theme: e }) => ({ width: e.spacing(3) })
  ),
  n6 = W(_i, { name: "MuiPickersArrowSwitcher", slot: "Button", overridesResolver: (e, t) => t.button })(
    ({ ownerState: e }) => S({}, e.hidden && { visibility: "hidden" })
  ),
  xj = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], spacer: ["spacer"], button: ["button"] }, pj, t);
  },
  bj = b.forwardRef(function (t, n) {
    var r, o, i, s;
    const l = Re().direction === "rtl",
      u = ke({ props: t, name: "MuiPickersArrowSwitcher" }),
      {
        children: c,
        className: d,
        slots: p,
        slotProps: h,
        isNextDisabled: m,
        isNextHidden: v,
        onGoToNext: C,
        nextLabel: y,
        isPreviousDisabled: g,
        isPreviousHidden: x,
        onGoToPrevious: w,
        previousLabel: k,
      } = u,
      M = ee(u, hj),
      T = u,
      P = xj(T),
      A = { isDisabled: m, isHidden: v, goTo: C, label: y },
      D = { isDisabled: g, isHidden: x, goTo: w, label: k },
      R = (r = p == null ? void 0 : p.previousIconButton) != null ? r : n6,
      L = qe({
        elementType: R,
        externalSlotProps: h == null ? void 0 : h.previousIconButton,
        additionalProps: {
          size: "medium",
          title: D.label,
          "aria-label": D.label,
          disabled: D.isDisabled,
          edge: "end",
          onClick: D.goTo,
        },
        ownerState: S({}, T, { hidden: D.isHidden }),
        className: P.button,
      }),
      F = (o = p == null ? void 0 : p.nextIconButton) != null ? o : n6,
      O = qe({
        elementType: F,
        externalSlotProps: h == null ? void 0 : h.nextIconButton,
        additionalProps: {
          size: "medium",
          title: A.label,
          "aria-label": A.label,
          disabled: A.isDisabled,
          edge: "start",
          onClick: A.goTo,
        },
        ownerState: S({}, T, { hidden: A.isHidden }),
        className: P.button,
      }),
      E = (i = p == null ? void 0 : p.leftArrowIcon) != null ? i : uj,
      B = qe({
        elementType: E,
        externalSlotProps: h == null ? void 0 : h.leftArrowIcon,
        additionalProps: { fontSize: "inherit" },
        ownerState: void 0,
      }),
      j = ee(B, mj),
      _ = (s = p == null ? void 0 : p.rightArrowIcon) != null ? s : cj,
      I = qe({
        elementType: _,
        externalSlotProps: h == null ? void 0 : h.rightArrowIcon,
        additionalProps: { fontSize: "inherit" },
        ownerState: void 0,
      }),
      $ = ee(I, gj);
    return f.jsxs(
      yj,
      S({ ref: n, className: ue(P.root, d), ownerState: T }, M, {
        children: [
          f.jsx(R, S({}, L, { children: l ? f.jsx(_, S({}, $)) : f.jsx(E, S({}, j)) })),
          c
            ? f.jsx(xe, { variant: "subtitle1", component: "span", children: c })
            : f.jsx(vj, { className: P.spacer, ownerState: T }),
          f.jsx(F, S({}, O, { children: l ? f.jsx(E, S({}, j)) : f.jsx(_, S({}, $)) })),
        ],
      })
    );
  }),
  Dl = (e, t) => (e.length !== t.length ? !1 : t.every((n) => e.includes(n))),
  Cj = ({ openTo: e, defaultOpenTo: t, views: n, defaultViews: r }) => {
    const o = n ?? r;
    let i;
    if (e != null) i = e;
    else if (o.includes(t)) i = t;
    else if (o.length > 0) i = o[0];
    else throw new Error("MUI: The `views` prop must contain at least one view");
    return { views: o, openTo: i };
  },
  wj = ["hours", "minutes", "seconds"],
  Sj = (e) => wj.includes(e),
  r6 = (e, t) => t.getHours(e) * 3600 + t.getMinutes(e) * 60 + t.getSeconds(e),
  kj = (e, t) => (n, r) => (e ? t.isAfter(n, r) : r6(n, t) > r6(r, t));
function Q9({
  onChange: e,
  onViewChange: t,
  openTo: n,
  view: r,
  views: o,
  autoFocus: i,
  focusedView: s,
  onFocusedViewChange: a,
}) {
  var l, u;
  const c = b.useRef(n),
    d = b.useRef(o),
    p = b.useRef(o.includes(n) ? n : o[0]),
    [h, m] = Sn({ name: "useViews", state: "view", controlled: r, default: p.current }),
    v = b.useRef(i ? h : null),
    [C, y] = Sn({ name: "useViews", state: "focusedView", controlled: s, default: v.current });
  b.useEffect(() => {
    ((c.current && c.current !== n) || (d.current && d.current.some((A) => !o.includes(A)))) &&
      (m(o.includes(n) ? n : o[0]), (d.current = o), (c.current = n));
  }, [n, m, h, o]);
  const g = o.indexOf(h),
    x = (l = o[g - 1]) != null ? l : null,
    w = (u = o[g + 1]) != null ? u : null,
    k = Me((A, D) => {
      y(D ? A : (R) => (A === R ? null : R)), a == null || a(A, D);
    }),
    M = Me((A) => {
      k(A, !0), A !== h && (m(A), t && t(A));
    }),
    T = Me(() => {
      w && M(w);
    }),
    P = Me((A, D, R) => {
      const L = D === "finish",
        F = R ? o.indexOf(R) < o.length - 1 : !!w;
      if ((e(A, L && F ? "partial" : D, R), R && R !== h)) {
        const E = o[o.indexOf(R) + 1];
        E && M(E);
      } else L && T();
    });
  return {
    view: h,
    setView: M,
    focusedView: C,
    setFocusedView: k,
    nextView: w,
    previousView: x,
    defaultView: o.includes(n) ? n : o[0],
    goToNextView: T,
    setValueAndGoToNextView: P,
  };
}
function Tj(e, { disableFuture: t, maxDate: n, timezone: r }) {
  const o = wt();
  return b.useMemo(() => {
    const i = o.dateWithTimezone(void 0, r),
      s = o.startOfMonth(t && o.isBefore(i, n) ? i : n);
    return !o.isAfter(s, e);
  }, [t, n, e, o, r]);
}
function Mj(e, { disablePast: t, minDate: n, timezone: r }) {
  const o = wt();
  return b.useMemo(() => {
    const i = o.dateWithTimezone(void 0, r),
      s = o.startOfMonth(t && o.isAfter(i, n) ? i : n);
    return !o.isBefore(s, e);
  }, [t, n, e, o, r]);
}
const zu = 36,
  E0 = 2,
  P0 = 320,
  Ej = 280,
  c5 = 334,
  Pj = W("div")({
    overflow: "hidden",
    width: P0,
    maxHeight: c5,
    display: "flex",
    flexDirection: "column",
    margin: "0 auto",
  }),
  Wf = (e, t, n) => {
    let r = t;
    return (
      (r = e.setHours(r, e.getHours(n))),
      (r = e.setMinutes(r, e.getMinutes(n))),
      (r = e.setSeconds(r, e.getSeconds(n))),
      r
    );
  },
  du = ({
    date: e,
    disableFuture: t,
    disablePast: n,
    maxDate: r,
    minDate: o,
    isDateDisabled: i,
    utils: s,
    timezone: a,
  }) => {
    const l = Wf(s, s.dateWithTimezone(void 0, a), e);
    n && s.isBefore(o, l) && (o = l), t && s.isAfter(r, l) && (r = l);
    let u = e,
      c = e;
    for (s.isBefore(e, o) && ((u = o), (c = null)), s.isAfter(e, r) && (c && (c = r), (u = null)); u || c; ) {
      if ((u && s.isAfter(u, r) && (u = null), c && s.isBefore(c, o) && (c = null), u)) {
        if (!i(u)) return u;
        u = s.addDays(u, 1);
      }
      if (c) {
        if (!i(c)) return c;
        c = s.addDays(c, -1);
      }
    }
    return null;
  },
  Aj = (e, t) => (t == null || !e.isValid(t) ? null : t),
  vr = (e, t, n) => (t == null || !e.isValid(t) ? n : t),
  _j = (e, t, n) => (!e.isValid(t) && t != null && !e.isValid(n) && n != null ? !0 : e.isEqual(t, n)),
  d5 = (e, t) => {
    const r = [e.startOfYear(t)];
    for (; r.length < 12; ) {
      const o = r[r.length - 1];
      r.push(e.addMonths(o, 1));
    }
    return r;
  },
  eb = (e, t, n) => (n === "date" ? e.startOfDay(e.dateWithTimezone(void 0, t)) : e.dateWithTimezone(void 0, t)),
  Dj = ["year", "month", "day"],
  o6 = (e) => Dj.includes(e),
  f5 = (e, { format: t, views: n }, r) => {
    if (t != null) return t;
    const o = e.formats;
    return Dl(n, ["year"])
      ? o.year
      : Dl(n, ["month"])
        ? o.month
        : Dl(n, ["day"])
          ? o.dayOfMonth
          : Dl(n, ["month", "year"])
            ? `${o.month} ${o.year}`
            : Dl(n, ["day", "month"])
              ? `${o.month} ${o.dayOfMonth}`
              : r
                ? /en/.test(e.getCurrentLocaleCode())
                  ? o.normalDateWithWeekday
                  : o.normalDate
                : o.keyboardDate;
  },
  Rj = (e, t) => {
    const n = e.startOfWeek(t);
    return [0, 1, 2, 3, 4, 5, 6].map((r) => e.addDays(n, r));
  },
  p5 = ({ timezone: e, value: t, defaultValue: n, onChange: r, valueManager: o }) => {
    var i, s;
    const a = wt(),
      l = b.useRef(n),
      u = (i = t ?? l.current) != null ? i : o.emptyValue,
      c = b.useMemo(() => o.getTimezone(a, u), [a, o, u]),
      d = Me((v) => (c == null ? v : o.setTimezone(a, c, v))),
      p = (s = e ?? c) != null ? s : "default",
      h = b.useMemo(() => o.setTimezone(a, p, u), [o, a, p, u]),
      m = Me((v, ...C) => {
        const y = d(v);
        r == null || r(y, ...C);
      });
    return { value: h, handleValueChange: m, timezone: p };
  },
  h5 = ({ name: e, timezone: t, value: n, defaultValue: r, onChange: o, valueManager: i }) => {
    const [s, a] = Sn({ name: e, state: "value", controlled: n, default: r ?? i.emptyValue }),
      l = Me((u, ...c) => {
        a(u), o == null || o(u, ...c);
      });
    return p5({ timezone: t, value: s, defaultValue: void 0, onChange: l, valueManager: i });
  },
  Xr = { year: 1, month: 2, day: 3, hours: 4, minutes: 5, seconds: 6, milliseconds: 7 },
  Ij = (e) =>
    Math.max(
      ...e.map((t) => {
        var n;
        return (n = Xr[t.type]) != null ? n : 1;
      })
    ),
  Rl = (e, t, n) => {
    if (t === Xr.year) return e.startOfYear(n);
    if (t === Xr.month) return e.startOfMonth(n);
    if (t === Xr.day) return e.startOfDay(n);
    let r = n;
    return (
      t < Xr.minutes && (r = e.setMinutes(r, 0)),
      t < Xr.seconds && (r = e.setSeconds(r, 0)),
      t < Xr.milliseconds && (r = e.setMilliseconds(r, 0)),
      r
    );
  },
  Oj = ({ props: e, utils: t, granularity: n, timezone: r, getTodayDate: o }) => {
    var i;
    let s = o ? o() : Rl(t, n, eb(t, r));
    e.minDate != null && t.isAfterDay(e.minDate, s) && (s = Rl(t, n, e.minDate)),
      e.maxDate != null && t.isBeforeDay(e.maxDate, s) && (s = Rl(t, n, e.maxDate));
    const a = kj((i = e.disableIgnoringDatePartForTimeValidation) != null ? i : !1, t);
    return (
      e.minTime != null &&
        a(e.minTime, s) &&
        (s = Rl(t, n, e.disableIgnoringDatePartForTimeValidation ? e.minTime : Wf(t, s, e.minTime))),
      e.maxTime != null &&
        a(s, e.maxTime) &&
        (s = Rl(t, n, e.disableIgnoringDatePartForTimeValidation ? e.maxTime : Wf(t, s, e.maxTime))),
      s
    );
  },
  tb = (e, t) => {
    const n = e.formatTokenMap[t];
    if (n == null)
      throw new Error(
        [
          `MUI: The token "${t}" is not supported by the Date and Time Pickers.`,
          "Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.",
        ].join(`
`)
      );
    return typeof n == "string"
      ? { type: n, contentType: n === "meridiem" ? "letter" : "digit", maxLength: void 0 }
      : { type: n.sectionType, contentType: n.contentType, maxLength: n.maxLength };
  },
  Fj = (e) => {
    switch (e) {
      case "ArrowUp":
        return 1;
      case "ArrowDown":
        return -1;
      case "PageUp":
        return 5;
      case "PageDown":
        return -5;
      default:
        return 0;
    }
  },
  A0 = (e, t, n) => {
    const r = [],
      o = e.dateWithTimezone(void 0, t),
      i = e.startOfWeek(o),
      s = e.endOfWeek(o);
    let a = i;
    for (; e.isBefore(a, s); ) r.push(a), (a = e.addDays(a, 1));
    return r.map((l) => e.formatByString(l, n));
  },
  nb = (e, t, n, r) => {
    switch (n) {
      case "month":
        return d5(e, e.dateWithTimezone(void 0, t)).map((o) => e.formatByString(o, r));
      case "weekDay":
        return A0(e, t, r);
      case "meridiem": {
        const o = e.dateWithTimezone(void 0, t);
        return [e.startOfDay(o), e.endOfDay(o)].map((i) => e.formatByString(i, r));
      }
      default:
        return [];
    }
  },
  rb = (e, t, n) => {
    let r = t;
    for (r = Number(r).toString(); r.length < n; ) r = `0${r}`;
    return r;
  },
  ob = (e, t, n, r, o) => {
    if (o.type === "day" && o.contentType === "digit-with-letter") {
      const s = e.setDate(r.longestMonth, n);
      return e.formatByString(s, o.format);
    }
    const i = n.toString();
    return o.hasLeadingZerosInInput ? rb(e, i, o.maxLength) : i;
  },
  Lj = (e, t, n, r, o, i, s) => {
    const a = Fj(r),
      l = r === "Home",
      u = r === "End",
      c = n.value === "" || l || u,
      d = () => {
        const h = o[n.type]({ currentDate: i, format: n.format, contentType: n.contentType }),
          m = (g) => ob(e, t, g, h, n),
          v = n.type === "minutes" && s != null && s.minutesStep ? s.minutesStep : 1;
        let y = parseInt(n.value, 10) + a * v;
        if (c) {
          if (n.type === "year" && !u && !l) return e.formatByString(e.dateWithTimezone(void 0, t), n.format);
          a > 0 || l ? (y = h.minimum) : (y = h.maximum);
        }
        return (
          y % v !== 0 && ((a < 0 || l) && (y += v - ((v + y) % v)), (a > 0 || u) && (y -= y % v)),
          y > h.maximum
            ? m(h.minimum + ((y - h.maximum - 1) % (h.maximum - h.minimum + 1)))
            : y < h.minimum
              ? m(h.maximum - ((h.minimum - y - 1) % (h.maximum - h.minimum + 1)))
              : m(y)
        );
      },
      p = () => {
        const h = nb(e, t, n.type, n.format);
        if (h.length === 0) return n.value;
        if (c) return a > 0 || l ? h[0] : h[h.length - 1];
        const v = (h.indexOf(n.value) + h.length + a) % h.length;
        return h[v];
      };
    return n.contentType === "digit" || n.contentType === "digit-with-letter" ? d() : p();
  },
  m5 = (e, t) => {
    let n = e.value || e.placeholder;
    const r = t === "non-input" ? e.hasLeadingZerosInFormat : e.hasLeadingZerosInInput;
    return (
      t === "non-input" && e.hasLeadingZerosInInput && !e.hasLeadingZerosInFormat && (n = Number(n).toString()),
      ["input-rtl", "input-ltr"].includes(t) && e.contentType === "digit" && !r && n.length === 1 && (n = `${n}‎`),
      t === "input-rtl" && (n = `⁨${n}⁩`),
      n
    );
  },
  la = (e) => e.replace(/[\u2066\u2067\u2068\u2069]/g, ""),
  ib = (e, t) => {
    let n = 0,
      r = t ? 1 : 0;
    const o = [];
    for (let i = 0; i < e.length; i += 1) {
      const s = e[i],
        a = m5(s, t ? "input-rtl" : "input-ltr"),
        l = `${s.startSeparator}${a}${s.endSeparator}`,
        u = la(l).length,
        c = l.length,
        d = la(a),
        p = r + a.indexOf(d[0]) + s.startSeparator.length,
        h = p + d.length;
      o.push(S({}, s, { start: n, end: n + u, startInInput: p, endInInput: h })), (n += u), (r += c);
    }
    return o;
  },
  Nj = (e, t, n, r, o) => {
    switch (r.type) {
      case "year":
        return n.fieldYearPlaceholder({
          digitAmount: e.formatByString(e.dateWithTimezone(void 0, t), o).length,
          format: o,
        });
      case "month":
        return n.fieldMonthPlaceholder({ contentType: r.contentType, format: o });
      case "day":
        return n.fieldDayPlaceholder({ format: o });
      case "weekDay":
        return n.fieldWeekDayPlaceholder({ contentType: r.contentType, format: o });
      case "hours":
        return n.fieldHoursPlaceholder({ format: o });
      case "minutes":
        return n.fieldMinutesPlaceholder({ format: o });
      case "seconds":
        return n.fieldSecondsPlaceholder({ format: o });
      case "meridiem":
        return n.fieldMeridiemPlaceholder({ format: o });
      default:
        return o;
    }
  },
  i6 = (e, t, n, r) => e.formatByString(e.parse(t, n), r),
  sb = (e, t, n) => e.formatByString(e.dateWithTimezone(void 0, t), n).length === 4,
  ab = (e, t, n, r, o) => {
    if (n !== "digit") return !1;
    const i = e.dateWithTimezone(void 0, t);
    switch (r) {
      case "year":
        return sb(e, t, o)
          ? e.formatByString(e.setYear(i, 1), o) === "0001"
          : e.formatByString(e.setYear(i, 2001), o) === "01";
      case "month":
        return e.formatByString(e.startOfYear(i), o).length > 1;
      case "day":
        return e.formatByString(e.startOfMonth(i), o).length > 1;
      case "weekDay":
        return e.formatByString(e.startOfWeek(i), o).length > 1;
      case "hours":
        return e.formatByString(e.setHours(i, 1), o).length > 1;
      case "minutes":
        return e.formatByString(e.setMinutes(i, 1), o).length > 1;
      case "seconds":
        return e.formatByString(e.setSeconds(i, 1), o).length > 1;
      default:
        throw new Error("Invalid section type");
    }
  },
  $j = (e, t) => {
    const n = [],
      { start: r, end: o } = e.escapedCharacters,
      i = new RegExp(`(\\${r}[^\\${o}]*\\${o})+`, "g");
    let s = null;
    for (; (s = i.exec(t)); ) n.push({ start: s.index, end: i.lastIndex - 1 });
    return n;
  },
  s6 = (e, t, n, r, o, i, s, a) => {
    let l = "";
    const u = [],
      c = e.date(),
      d = (x) => {
        if (x === "") return null;
        const w = tb(e, x),
          k = ab(e, t, w.contentType, w.type, x),
          M = s ? k : w.contentType === "digit",
          T = o != null && e.isValid(o);
        let P = T ? e.formatByString(o, x) : "",
          A = null;
        if (M)
          if (k) A = P === "" ? e.formatByString(c, x).length : P.length;
          else {
            if (w.maxLength == null)
              throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);
            (A = w.maxLength), T && (P = rb(e, P, A));
          }
        return (
          u.push(
            S({}, w, {
              format: x,
              maxLength: A,
              value: P,
              placeholder: Nj(e, t, n, w, x),
              hasLeadingZeros: k,
              hasLeadingZerosInFormat: k,
              hasLeadingZerosInInput: M,
              startSeparator: u.length === 0 ? l : "",
              endSeparator: "",
              modified: !1,
            })
          ),
          null
        );
      };
    let p = 10,
      h = r,
      m = e.expandFormat(r);
    for (; m !== h; )
      if (((h = m), (m = e.expandFormat(h)), (p -= 1), p < 0))
        throw new Error(
          "MUI: The format expansion seems to be  enter in an infinite loop. Please open an issue with the format passed to the picker component"
        );
    const v = m,
      C = $j(e, v),
      y = new RegExp(
        `^(${Object.keys(e.formatTokenMap)
          .sort((x, w) => w.length - x.length)
          .join("|")})`,
        "g"
      );
    let g = "";
    for (let x = 0; x < v.length; x += 1) {
      const w = C.find((A) => A.start <= x && A.end >= x),
        k = v[x],
        M = w != null,
        T = `${g}${v.slice(x)}`,
        P = y.test(T);
      !M && k.match(/([A-Za-z]+)/) && P
        ? ((g = T.slice(0, y.lastIndex)), (x += y.lastIndex - 1))
        : (M && (w == null ? void 0 : w.start) === x) ||
          (w == null ? void 0 : w.end) === x ||
          (d(g), (g = ""), u.length === 0 ? (l += k) : (u[u.length - 1].endSeparator += k));
    }
    return (
      d(g),
      u.map((x) => {
        const w = (k) => {
          let M = k;
          return (
            a && M !== null && M.includes(" ") && (M = `⁩${M}⁦`),
            i === "spacious" && ["/", ".", "-"].includes(M) && (M = ` ${M} `),
            M
          );
        };
        return (x.startSeparator = w(x.startSeparator)), (x.endSeparator = w(x.endSeparator)), x;
      })
    );
  },
  Bj = (e, t) => {
    const n = t.some((a) => a.type === "day"),
      r = [],
      o = [];
    for (let a = 0; a < t.length; a += 1) {
      const l = t[a];
      (n && l.type === "weekDay") || (r.push(l.format), o.push(m5(l, "non-input")));
    }
    const i = r.join(" "),
      s = o.join(" ");
    return e.parse(s, i);
  },
  jj = (e, t) => {
    const r = e
      .map((o) => {
        const i = m5(o, t ? "input-rtl" : "input-ltr");
        return `${o.startSeparator}${i}${o.endSeparator}`;
      })
      .join("");
    return t ? `⁦${r}⁩` : r;
  },
  Vj = (e, t) => {
    const n = e.dateWithTimezone(void 0, t),
      r = e.endOfYear(n),
      o = e.endOfDay(n),
      { maxDaysInMonth: i, longestMonth: s } = d5(e, n).reduce(
        (a, l) => {
          const u = e.getDaysInMonth(l);
          return u > a.maxDaysInMonth ? { maxDaysInMonth: u, longestMonth: l } : a;
        },
        { maxDaysInMonth: 0, longestMonth: null }
      );
    return {
      year: ({ format: a }) => ({ minimum: 0, maximum: sb(e, t, a) ? 9999 : 99 }),
      month: () => ({ minimum: 1, maximum: e.getMonth(r) + 1 }),
      day: ({ currentDate: a }) => ({
        minimum: 1,
        maximum: a != null && e.isValid(a) ? e.getDaysInMonth(a) : i,
        longestMonth: s,
      }),
      weekDay: ({ format: a, contentType: l }) => {
        if (l === "digit") {
          const u = A0(e, t, a).map(Number);
          return { minimum: Math.min(...u), maximum: Math.max(...u) };
        }
        return { minimum: 1, maximum: 7 };
      },
      hours: ({ format: a }) => {
        const l = e.getHours(o);
        return e.formatByString(e.endOfDay(n), a) !== l.toString()
          ? { minimum: 1, maximum: Number(e.formatByString(e.startOfDay(n), a)) }
          : { minimum: 0, maximum: l };
      },
      minutes: () => ({ minimum: 0, maximum: e.getMinutes(o) }),
      seconds: () => ({ minimum: 0, maximum: e.getSeconds(o) }),
      meridiem: () => ({ minimum: 0, maximum: 0 }),
    };
  },
  Hj = (e, t, n, r, o) => {
    switch (n.type) {
      case "year":
        return e.setYear(o, e.getYear(r));
      case "month":
        return e.setMonth(o, e.getMonth(r));
      case "weekDay": {
        const i = A0(e, t, n.format),
          s = e.formatByString(r, n.format),
          a = i.indexOf(s),
          u = i.indexOf(n.value) - a;
        return e.addDays(r, u);
      }
      case "day":
        return e.setDate(o, e.getDate(r));
      case "meridiem": {
        const i = e.getHours(r) < 12,
          s = e.getHours(o);
        return i && s >= 12 ? e.addHours(o, -12) : !i && s < 12 ? e.addHours(o, 12) : o;
      }
      case "hours":
        return e.setHours(o, e.getHours(r));
      case "minutes":
        return e.setMinutes(o, e.getMinutes(r));
      case "seconds":
        return e.setSeconds(o, e.getSeconds(r));
      default:
        return o;
    }
  },
  a6 = { year: 1, month: 2, day: 3, weekDay: 4, hours: 5, minutes: 6, seconds: 7, meridiem: 8 },
  l6 = (e, t, n, r, o, i) =>
    [...r].sort((s, a) => a6[s.type] - a6[a.type]).reduce((s, a) => (!i || a.modified ? Hj(e, t, a, n, s) : s), o),
  zj = () => navigator.userAgent.toLowerCase().indexOf("android") > -1,
  Wj = (e, t) => {
    const n = {};
    if (!t)
      return (
        e.forEach((l, u) => {
          const c = u === 0 ? null : u - 1,
            d = u === e.length - 1 ? null : u + 1;
          n[u] = { leftIndex: c, rightIndex: d };
        }),
        { neighbors: n, startIndex: 0, endIndex: e.length - 1 }
      );
    const r = {},
      o = {};
    let i = 0,
      s = 0,
      a = e.length - 1;
    for (; a >= 0; ) {
      (s = e.findIndex((l, u) => {
        var c;
        return u >= i && ((c = l.endSeparator) == null ? void 0 : c.includes(" ")) && l.endSeparator !== " / ";
      })),
        s === -1 && (s = e.length - 1);
      for (let l = s; l >= i; l -= 1) (o[l] = a), (r[a] = l), (a -= 1);
      i = s + 1;
    }
    return (
      e.forEach((l, u) => {
        const c = o[u],
          d = c === 0 ? null : r[c - 1],
          p = c === e.length - 1 ? null : r[c + 1];
        n[u] = { leftIndex: d, rightIndex: p };
      }),
      { neighbors: n, startIndex: r[0], endIndex: r[e.length - 1] }
    );
  },
  Gj = ["value", "referenceDate"],
  Vo = {
    emptyValue: null,
    getTodayValue: eb,
    getInitialReferenceValue: (e) => {
      let { value: t, referenceDate: n } = e,
        r = ee(e, Gj);
      return t != null && r.utils.isValid(t) ? t : n ?? Oj(r);
    },
    cleanValue: Aj,
    areValuesEqual: _j,
    isSameError: (e, t) => e === t,
    hasError: (e) => e != null,
    defaultErrorState: null,
    getTimezone: (e, t) => (t == null || !e.isValid(t) ? null : e.getTimezone(t)),
    setTimezone: (e, t, n) => (n == null ? null : e.setTimezone(n, t)),
  },
  Uj = {
    updateReferenceValue: (e, t, n) => (t == null || !e.isValid(t) ? n : t),
    getSectionsFromValue: (e, t, n, r, o) => (!e.isValid(t) && !!n ? n : ib(o(t), r)),
    getValueStrFromSections: jj,
    getActiveDateManager: (e, t) => ({
      date: t.value,
      referenceDate: t.referenceValue,
      getSections: (n) => n,
      getNewValuesFromNewActiveDate: (n) => ({
        value: n,
        referenceValue: n == null || !e.isValid(n) ? t.referenceValue : n,
      }),
    }),
    parseValueStr: (e, t, n) => n(e.trim(), t),
  },
  lb = (e) => {
    if (e !== void 0)
      return Object.keys(e).reduce((t, n) => S({}, t, { [`${n.slice(0, 1).toLowerCase()}${n.slice(1)}`]: e[n] }), {});
  };
function Yj(e) {
  return Ae("MuiPickersDay", e);
}
const $i = Se("MuiPickersDay", [
    "root",
    "dayWithMargin",
    "dayOutsideMonth",
    "hiddenDaySpacingFiller",
    "today",
    "selected",
    "disabled",
  ]),
  Kj = [
    "autoFocus",
    "className",
    "day",
    "disabled",
    "disableHighlightToday",
    "disableMargin",
    "hidden",
    "isAnimating",
    "onClick",
    "onDaySelect",
    "onFocus",
    "onBlur",
    "onKeyDown",
    "onMouseDown",
    "onMouseEnter",
    "outsideCurrentMonth",
    "selected",
    "showDaysOutsideCurrentMonth",
    "children",
    "today",
    "isFirstVisibleCell",
    "isLastVisibleCell",
  ],
  Xj = (e) => {
    const {
        selected: t,
        disableMargin: n,
        disableHighlightToday: r,
        today: o,
        disabled: i,
        outsideCurrentMonth: s,
        showDaysOutsideCurrentMonth: a,
        classes: l,
      } = e,
      u = s && !a;
    return Ee(
      {
        root: [
          "root",
          t && !u && "selected",
          i && "disabled",
          !n && "dayWithMargin",
          !r && o && "today",
          s && a && "dayOutsideMonth",
          u && "hiddenDaySpacingFiller",
        ],
        hiddenDaySpacingFiller: ["hiddenDaySpacingFiller"],
      },
      Yj,
      l
    );
  },
  ub = ({ theme: e, ownerState: t }) =>
    S(
      {},
      e.typography.caption,
      {
        width: zu,
        height: zu,
        borderRadius: "50%",
        padding: 0,
        backgroundColor: "transparent",
        transition: e.transitions.create("background-color", { duration: e.transitions.duration.short }),
        color: (e.vars || e).palette.text.primary,
        "@media (pointer: fine)": {
          "&:hover": {
            backgroundColor: e.vars
              ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`
              : fs(e.palette.primary.main, e.palette.action.hoverOpacity),
          },
        },
        "&:focus": {
          backgroundColor: e.vars
            ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`
            : fs(e.palette.primary.main, e.palette.action.focusOpacity),
          [`&.${$i.selected}`]: { willChange: "background-color", backgroundColor: (e.vars || e).palette.primary.dark },
        },
        [`&.${$i.selected}`]: {
          color: (e.vars || e).palette.primary.contrastText,
          backgroundColor: (e.vars || e).palette.primary.main,
          fontWeight: e.typography.fontWeightMedium,
          "&:hover": { willChange: "background-color", backgroundColor: (e.vars || e).palette.primary.dark },
        },
        [`&.${$i.disabled}:not(.${$i.selected})`]: { color: (e.vars || e).palette.text.disabled },
        [`&.${$i.disabled}&.${$i.selected}`]: { opacity: 0.6 },
      },
      !t.disableMargin && { margin: `0 ${E0}px` },
      t.outsideCurrentMonth && t.showDaysOutsideCurrentMonth && { color: (e.vars || e).palette.text.secondary },
      !t.disableHighlightToday &&
        t.today && { [`&:not(.${$i.selected})`]: { border: `1px solid ${(e.vars || e).palette.text.secondary}` } }
    ),
  cb = (e, t) => {
    const { ownerState: n } = e;
    return [
      t.root,
      !n.disableMargin && t.dayWithMargin,
      !n.disableHighlightToday && n.today && t.today,
      !n.outsideCurrentMonth && n.showDaysOutsideCurrentMonth && t.dayOutsideMonth,
      n.outsideCurrentMonth && !n.showDaysOutsideCurrentMonth && t.hiddenDaySpacingFiller,
    ];
  },
  qj = W($r, { name: "MuiPickersDay", slot: "Root", overridesResolver: cb })(ub),
  Zj = W("div", { name: "MuiPickersDay", slot: "Root", overridesResolver: cb })(({ theme: e, ownerState: t }) =>
    S({}, ub({ theme: e, ownerState: t }), { opacity: 0, pointerEvents: "none" })
  ),
  Il = () => {},
  Jj = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiPickersDay" }),
      {
        autoFocus: o = !1,
        className: i,
        day: s,
        disabled: a = !1,
        disableHighlightToday: l = !1,
        disableMargin: u = !1,
        isAnimating: c,
        onClick: d,
        onDaySelect: p,
        onFocus: h = Il,
        onBlur: m = Il,
        onKeyDown: v = Il,
        onMouseDown: C = Il,
        onMouseEnter: y = Il,
        outsideCurrentMonth: g,
        selected: x = !1,
        showDaysOutsideCurrentMonth: w = !1,
        children: k,
        today: M = !1,
      } = r,
      T = ee(r, Kj),
      P = S({}, r, {
        autoFocus: o,
        disabled: a,
        disableHighlightToday: l,
        disableMargin: u,
        selected: x,
        showDaysOutsideCurrentMonth: w,
        today: M,
      }),
      A = Xj(P),
      D = wt(),
      R = b.useRef(null),
      L = tt(R, n);
    Kt(() => {
      o && !a && !c && !g && R.current.focus();
    }, [o, a, c, g]);
    const F = (E) => {
        C(E), g && E.preventDefault();
      },
      O = (E) => {
        a || p(s), g && E.currentTarget.focus(), d && d(E);
      };
    return g && !w
      ? f.jsx(Zj, { className: ue(A.root, A.hiddenDaySpacingFiller, i), ownerState: P, role: T.role })
      : f.jsx(
          qj,
          S(
            {
              className: ue(A.root, i),
              ref: L,
              centerRipple: !0,
              disabled: a,
              tabIndex: x ? 0 : -1,
              onKeyDown: (E) => v(E, s),
              onFocus: (E) => h(E, s),
              onBlur: (E) => m(E, s),
              onMouseEnter: (E) => y(E, s),
              onClick: O,
              onMouseDown: F,
            },
            T,
            { ownerState: P, children: k || D.format(s, "dayOfMonth") }
          )
        );
  }),
  Qj = b.memo(Jj),
  u6 = { hours: "часы", minutes: "минуты", seconds: "секунды", meridiem: "меридием" },
  eV = {
    previousMonth: "Предыдущий месяц",
    nextMonth: "Следующий месяц",
    openPreviousView: "открыть предыдущий вид",
    openNextView: "открыть следующий вид",
    calendarViewSwitchingButtonAriaLabel: (e) =>
      e === "year"
        ? "открыт годовой вид, переключить на календарный вид"
        : "открыт календарный вид, переключить на годовой вид",
    start: "Начало",
    end: "Конец",
    cancelButtonLabel: "Отмена",
    clearButtonLabel: "Очистить",
    okButtonLabel: "Ок",
    todayButtonLabel: "Сегодня",
    datePickerToolbarTitle: "Выбрать дату",
    dateTimePickerToolbarTitle: "Выбрать дату и время",
    timePickerToolbarTitle: "Выбрать время",
    dateRangePickerToolbarTitle: "Выбрать период",
    clockLabelText: (e, t, n) =>
      `Выбрать ${u6[e]}. ${t === null ? "Время не выбрано" : `Выбрано время ${n.format(t, "fullTime")}`}`,
    hoursClockNumberText: (e) => `${e} часов`,
    minutesClockNumberText: (e) => `${e} минут`,
    secondsClockNumberText: (e) => `${e} секунд`,
    selectViewText: (e) => `Выбрать ${u6[e]}`,
    calendarWeekNumberHeaderLabel: "Номер недели",
    calendarWeekNumberHeaderText: "№",
    calendarWeekNumberAriaLabelText: (e) => `Неделя ${e}`,
    calendarWeekNumberText: (e) => `${e}`,
    openDatePickerDialogue: (e, t) =>
      e !== null && t.isValid(e) ? `Выберите дату, выбрана дата ${t.format(e, "fullDate")}` : "Выберите дату",
    openTimePickerDialogue: (e, t) =>
      e !== null && t.isValid(e) ? `Выберите время, выбрано время ${t.format(e, "fullTime")}` : "Выберите время",
    fieldClearLabel: "Очистить значение",
    timeTableLabel: "выбрать время",
    dateTableLabel: "выбрать дату",
    fieldYearPlaceholder: (e) => "Г".repeat(e.digitAmount),
    fieldMonthPlaceholder: (e) => (e.contentType === "letter" ? "ММММ" : "ММ"),
    fieldDayPlaceholder: () => "ДД",
    fieldHoursPlaceholder: () => "чч",
    fieldMinutesPlaceholder: () => "мм",
    fieldSecondsPlaceholder: () => "сс",
    fieldMeridiemPlaceholder: () => "(д|п)п",
  },
  tV = Z9(eV);
function db(e, t, n, r) {
  const { value: o, onError: i } = e,
    s = Ts(),
    a = b.useRef(r),
    l = t({ adapter: s, value: o, props: e });
  return (
    b.useEffect(() => {
      i && !n(l, a.current) && i(l, o), (a.current = l);
    }, [n, i, a, l, o]),
    l
  );
}
const nV = (e) => {
    const t = wt(),
      n = Oi(),
      r = Ts(),
      i = Re().direction === "rtl",
      {
        valueManager: s,
        fieldValueManager: a,
        valueType: l,
        validator: u,
        internalProps: c,
        internalProps: {
          value: d,
          defaultValue: p,
          referenceDate: h,
          onChange: m,
          format: v,
          formatDensity: C = "dense",
          selectedSections: y,
          onSelectedSectionsChange: g,
          shouldRespectLeadingZeros: x = !1,
          timezone: w,
        },
      } = e,
      {
        timezone: k,
        value: M,
        handleValueChange: T,
      } = p5({ timezone: w, value: d, defaultValue: p, onChange: m, valueManager: s }),
      P = b.useMemo(() => Vj(t, k), [t, k]),
      A = b.useCallback(
        (z, ae = null) => a.getSectionsFromValue(t, z, ae, i, (me) => s6(t, k, n, v, me, C, x, i)),
        [a, v, n, i, x, t, C, k]
      ),
      D = b.useMemo(() => a.getValueStrFromSections(A(s.emptyValue), i), [a, A, s.emptyValue, i]),
      [R, L] = b.useState(() => {
        const z = A(M),
          ae = { sections: z, value: M, referenceValue: s.emptyValue, tempValueStrAndroid: null },
          me = Ij(z),
          X = s.getInitialReferenceValue({
            referenceDate: h,
            value: M,
            utils: t,
            props: c,
            granularity: me,
            timezone: k,
          });
        return S({}, ae, { referenceValue: X });
      }),
      [F, O] = Sn({ controlled: y, default: null, name: "useField", state: "selectedSectionIndexes" }),
      E = (z) => {
        O(z), g == null || g(z), L((ae) => S({}, ae, { selectedSectionQuery: null }));
      },
      B = b.useMemo(() => {
        if (F == null) return null;
        if (F === "all") return { startIndex: 0, endIndex: R.sections.length - 1, shouldSelectBoundarySelectors: !0 };
        if (typeof F == "number") return { startIndex: F, endIndex: F };
        if (typeof F == "string") {
          const z = R.sections.findIndex((ae) => ae.type === F);
          return { startIndex: z, endIndex: z };
        }
        return F;
      }, [F, R.sections]),
      j = ({ value: z, referenceValue: ae, sections: me }) => {
        if (
          (L((ge) => S({}, ge, { sections: me, value: z, referenceValue: ae, tempValueStrAndroid: null })),
          s.areValuesEqual(t, R.value, z))
        )
          return;
        const X = { validationError: u({ adapter: r, value: z, props: S({}, c, { value: z, timezone: k }) }) };
        T(z, X);
      },
      _ = (z, ae) => {
        const me = [...R.sections];
        return (me[z] = S({}, me[z], { value: ae, modified: !0 })), ib(me, i);
      },
      I = () => {
        j({ value: s.emptyValue, referenceValue: R.referenceValue, sections: A(s.emptyValue) });
      },
      $ = () => {
        if (B == null) return;
        const z = R.sections[B.startIndex],
          ae = a.getActiveDateManager(t, R, z),
          X = ae.getSections(R.sections).filter((ie) => ie.value !== "").length === (z.value === "" ? 0 : 1),
          ge = _(B.startIndex, ""),
          Pe = X ? null : t.date(new Date("")),
          _e = ae.getNewValuesFromNewActiveDate(Pe);
        (Pe != null && !t.isValid(Pe)) != (ae.date != null && !t.isValid(ae.date))
          ? j(S({}, _e, { sections: ge }))
          : L((ie) => S({}, ie, _e, { sections: ge, tempValueStrAndroid: null }));
      },
      J = (z) => {
        const ae = (ge, Pe) => {
            const _e = t.parse(ge, v);
            if (_e == null || !t.isValid(_e)) return null;
            const ie = s6(t, k, n, v, _e, C, x, i);
            return l6(t, k, _e, ie, Pe, !1);
          },
          me = a.parseValueStr(z, R.referenceValue, ae),
          X = a.updateReferenceValue(t, me, R.referenceValue);
        j({ value: me, referenceValue: X, sections: A(me, R.sections) });
      },
      oe = ({ activeSection: z, newSectionValue: ae, shouldGoToNextSection: me }) => {
        me && B && B.startIndex < R.sections.length - 1
          ? E(B.startIndex + 1)
          : B && B.startIndex !== B.endIndex && E(B.startIndex);
        const X = a.getActiveDateManager(t, R, z),
          ge = _(B.startIndex, ae),
          Pe = X.getSections(ge),
          _e = Bj(t, Pe);
        let ie, ne;
        if (_e != null && t.isValid(_e)) {
          const V = l6(t, k, _e, Pe, X.referenceDate, !0);
          (ie = X.getNewValuesFromNewActiveDate(V)), (ne = !0);
        } else
          (ie = X.getNewValuesFromNewActiveDate(_e)),
            (ne = (_e != null && !t.isValid(_e)) != (X.date != null && !t.isValid(X.date)));
        return ne
          ? j(S({}, ie, { sections: ge }))
          : L((V) => S({}, V, ie, { sections: ge, tempValueStrAndroid: null }));
      },
      pe = (z) => L((ae) => S({}, ae, { tempValueStrAndroid: z }));
    return (
      b.useEffect(() => {
        const z = A(R.value);
        L((ae) => S({}, ae, { sections: z }));
      }, [v, t.locale]),
      b.useEffect(() => {
        let z = !1;
        s.areValuesEqual(t, R.value, M) ? (z = s.getTimezone(t, R.value) !== s.getTimezone(t, M)) : (z = !0),
          z &&
            L((ae) =>
              S({}, ae, { value: M, referenceValue: a.updateReferenceValue(t, M, ae.referenceValue), sections: A(M) })
            );
      }, [M]),
      {
        state: R,
        selectedSectionIndexes: B,
        setSelectedSections: E,
        clearValue: I,
        clearActiveSection: $,
        updateSectionValue: oe,
        updateValueFromValueStr: J,
        setTempAndroidValueStr: pe,
        sectionsValueBoundaries: P,
        placeholder: D,
        timezone: k,
      }
    );
  },
  rV = 5e3,
  Ns = (e) => e.saveQuery != null,
  oV = ({ sections: e, updateSectionValue: t, sectionsValueBoundaries: n, setTempAndroidValueStr: r, timezone: o }) => {
    const i = wt(),
      [s, a] = b.useState(null),
      l = Me(() => a(null));
    b.useEffect(() => {
      var h;
      s != null && ((h = e[s.sectionIndex]) == null ? void 0 : h.type) !== s.sectionType && l();
    }, [e, s, l]),
      b.useEffect(() => {
        if (s != null) {
          const h = setTimeout(() => l(), rV);
          return () => {
            window.clearTimeout(h);
          };
        }
        return () => {};
      }, [s, l]);
    const u = ({ keyPressed: h, sectionIndex: m }, v, C) => {
        const y = h.toLowerCase(),
          g = e[m];
        if (s != null && (!C || C(s.value)) && s.sectionIndex === m) {
          const w = `${s.value}${y}`,
            k = v(w, g);
          if (!Ns(k)) return a({ sectionIndex: m, value: w, sectionType: g.type }), k;
        }
        const x = v(y, g);
        return Ns(x) && !x.saveQuery
          ? (l(), null)
          : (a({ sectionIndex: m, value: y, sectionType: g.type }), Ns(x) ? null : x);
      },
      c = (h) => {
        const m = (y, g, x) => {
            const w = g.filter((k) => k.toLowerCase().startsWith(x));
            return w.length === 0 ? { saveQuery: !1 } : { sectionValue: w[0], shouldGoToNextSection: w.length === 1 };
          },
          v = (y, g, x, w) => {
            const k = (M) => nb(i, o, g.type, M);
            if (g.contentType === "letter") return m(g.format, k(g.format), y);
            if (x && w != null && tb(i, x).contentType === "letter") {
              const M = k(x),
                T = m(x, M, y);
              return Ns(T) ? { saveQuery: !1 } : S({}, T, { sectionValue: w(T.sectionValue, M) });
            }
            return { saveQuery: !1 };
          };
        return u(h, (y, g) => {
          switch (g.type) {
            case "month": {
              const x = (w) => i6(i, w, i.formats.month, g.format);
              return v(y, g, i.formats.month, x);
            }
            case "weekDay": {
              const x = (w, k) => k.indexOf(w).toString();
              return v(y, g, i.formats.weekday, x);
            }
            case "meridiem":
              return v(y, g);
            default:
              return { saveQuery: !1 };
          }
        });
      },
      d = (h) => {
        const m = (C, y) => {
          const g = +`${C}`,
            x = n[y.type]({ currentDate: null, format: y.format, contentType: y.contentType });
          if (g > x.maximum) return { saveQuery: !1 };
          if (g < x.minimum) return { saveQuery: !0 };
          const w = +`${C}0` > x.maximum || C.length === x.maximum.toString().length;
          return { sectionValue: ob(i, o, g, x, y), shouldGoToNextSection: w };
        };
        return u(
          h,
          (C, y) => {
            if (y.contentType === "digit" || y.contentType === "digit-with-letter") return m(C, y);
            if (y.type === "month") {
              const g = ab(i, o, "digit", "month", "MM"),
                x = m(C, {
                  type: y.type,
                  format: "MM",
                  hasLeadingZerosInFormat: g,
                  hasLeadingZerosInInput: !0,
                  contentType: "digit",
                  maxLength: 2,
                });
              if (Ns(x)) return x;
              const w = i6(i, x.sectionValue, "MM", y.format);
              return S({}, x, { sectionValue: w });
            }
            if (y.type === "weekDay") {
              const g = m(C, y);
              if (Ns(g)) return g;
              const x = A0(i, o, y.format)[Number(g.sectionValue) - 1];
              return S({}, g, { sectionValue: x });
            }
            return { saveQuery: !1 };
          },
          (C) => !Number.isNaN(Number(C))
        );
      };
    return {
      applyCharacterEditing: Me((h) => {
        const m = e[h.sectionIndex],
          C = !Number.isNaN(Number(h.keyPressed)) ? d(h) : c(h);
        C == null
          ? r(null)
          : t({ activeSection: m, newSectionValue: C.sectionValue, shouldGoToNextSection: C.shouldGoToNextSection });
      }),
      resetCharacterQuery: l,
    };
  };
function iV(e, t) {
  return Array.isArray(t) ? t.every((n) => e.indexOf(n) !== -1) : e.indexOf(t) !== -1;
}
const sV = (e, t) => (n) => {
    (n.key === "Enter" || n.key === " ") && (e(n), n.preventDefault(), n.stopPropagation());
  },
  Gf = (e = document) => {
    const t = e.activeElement;
    return t ? (t.shadowRoot ? Gf(t.shadowRoot) : t) : null;
  },
  aV = "@media (pointer: fine)",
  lV = [
    "onClick",
    "onKeyDown",
    "onFocus",
    "onBlur",
    "onMouseUp",
    "onPaste",
    "error",
    "clearable",
    "onClear",
    "disabled",
  ],
  uV = (e) => {
    const t = wt(),
      {
        state: n,
        selectedSectionIndexes: r,
        setSelectedSections: o,
        clearValue: i,
        clearActiveSection: s,
        updateSectionValue: a,
        updateValueFromValueStr: l,
        setTempAndroidValueStr: u,
        sectionsValueBoundaries: c,
        placeholder: d,
        timezone: p,
      } = nV(e),
      {
        inputRef: h,
        internalProps: m,
        internalProps: { readOnly: v = !1, unstableFieldRef: C, minutesStep: y },
        forwardedProps: {
          onClick: g,
          onKeyDown: x,
          onFocus: w,
          onBlur: k,
          onMouseUp: M,
          onPaste: T,
          error: P,
          clearable: A,
          onClear: D,
          disabled: R,
        },
        fieldValueManager: L,
        valueManager: F,
        validator: O,
      } = e,
      E = ee(e.forwardedProps, lV),
      { applyCharacterEditing: B, resetCharacterQuery: j } = oV({
        sections: n.sections,
        updateSectionValue: a,
        sectionsValueBoundaries: c,
        setTempAndroidValueStr: u,
        timezone: p,
      }),
      _ = b.useRef(null),
      I = tt(h, _),
      $ = b.useRef(void 0),
      oe = Re().direction === "rtl",
      pe = b.useMemo(() => Wj(n.sections, oe), [n.sections, oe]),
      z = () => {
        var G;
        if (v) {
          o(null);
          return;
        }
        const te = (G = _.current.selectionStart) != null ? G : 0;
        let we;
        te <= n.sections[0].startInInput || te >= n.sections[n.sections.length - 1].endInInput
          ? (we = 1)
          : (we = n.sections.findIndex((Te) => Te.startInInput - Te.startSeparator.length > te));
        const Le = we === -1 ? n.sections.length - 1 : we - 1;
        o(Le);
      },
      ae = Me((G, ...te) => {
        G.isDefaultPrevented() || (g == null || g(G, ...te), z());
      }),
      me = Me((G) => {
        M == null || M(G), G.preventDefault();
      }),
      X = Me((...G) => {
        w == null || w(...G);
        const te = _.current;
        window.clearTimeout($.current),
          ($.current = setTimeout(() => {
            !te ||
              te !== _.current ||
              r != null ||
              v ||
              (te.value.length && Number(te.selectionEnd) - Number(te.selectionStart) === te.value.length
                ? o("all")
                : z());
          }));
      }),
      ge = Me((...G) => {
        k == null || k(...G), o(null);
      }),
      Pe = Me((G) => {
        if ((T == null || T(G), v)) {
          G.preventDefault();
          return;
        }
        const te = G.clipboardData.getData("text");
        if (r && r.startIndex === r.endIndex) {
          const we = n.sections[r.startIndex],
            Le = /^[a-zA-Z]+$/.test(te),
            Te = /^[0-9]+$/.test(te),
            je = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);
          if (
            (we.contentType === "letter" && Le) ||
            (we.contentType === "digit" && Te) ||
            (we.contentType === "digit-with-letter" && je)
          ) {
            j(), a({ activeSection: we, newSectionValue: te, shouldGoToNextSection: !0 }), G.preventDefault();
            return;
          }
          if (Le || Te) {
            G.preventDefault();
            return;
          }
        }
        G.preventDefault(), j(), l(te);
      }),
      _e = Me((G) => {
        if (v) return;
        const te = G.target.value;
        if (te === "") {
          j(), i();
          return;
        }
        const we = G.nativeEvent.data,
          Le = we && we.length > 1,
          Te = Le ? we : te,
          je = la(Te);
        if (r == null || Le) {
          l(Le ? we : je);
          return;
        }
        let ut;
        if (r.startIndex === 0 && r.endIndex === n.sections.length - 1 && je.length === 1) ut = je;
        else {
          const Xe = la(L.getValueStrFromSections(n.sections, oe));
          let Y = -1,
            U = -1;
          for (let se = 0; se < Xe.length; se += 1)
            Y === -1 && Xe[se] !== je[se] && (Y = se),
              U === -1 && Xe[Xe.length - se - 1] !== je[je.length - se - 1] && (U = se);
          const ve = n.sections[r.startIndex];
          if (Y < ve.start || Xe.length - U - 1 > ve.end) return;
          const Ve = je.length - Xe.length + ve.end - la(ve.endSeparator || "").length;
          ut = je.slice(ve.start + la(ve.startSeparator || "").length, Ve);
        }
        if (ut.length === 0) {
          zj() ? u(Te) : (j(), s());
          return;
        }
        B({ keyPressed: ut, sectionIndex: r.startIndex });
      }),
      ie = Me((G) => {
        switch ((x == null || x(G), !0)) {
          case G.key === "a" && (G.ctrlKey || G.metaKey): {
            G.preventDefault(), o("all");
            break;
          }
          case G.key === "ArrowRight": {
            if ((G.preventDefault(), r == null)) o(pe.startIndex);
            else if (r.startIndex !== r.endIndex) o(r.endIndex);
            else {
              const te = pe.neighbors[r.startIndex].rightIndex;
              te !== null && o(te);
            }
            break;
          }
          case G.key === "ArrowLeft": {
            if ((G.preventDefault(), r == null)) o(pe.endIndex);
            else if (r.startIndex !== r.endIndex) o(r.startIndex);
            else {
              const te = pe.neighbors[r.startIndex].leftIndex;
              te !== null && o(te);
            }
            break;
          }
          case G.key === "Delete": {
            if ((G.preventDefault(), v)) break;
            r == null || (r.startIndex === 0 && r.endIndex === n.sections.length - 1) ? i() : s(), j();
            break;
          }
          case ["ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"].includes(G.key): {
            if ((G.preventDefault(), v || r == null)) break;
            const te = n.sections[r.startIndex],
              we = L.getActiveDateManager(t, n, te),
              Le = Lj(t, p, te, G.key, c, we.date, { minutesStep: y });
            a({ activeSection: te, newSectionValue: Le, shouldGoToNextSection: !1 });
            break;
          }
        }
      });
    Kt(() => {
      if (!_.current) return;
      if (r == null) {
        _.current.scrollLeft && (_.current.scrollLeft = 0);
        return;
      }
      const G = n.sections[r.startIndex],
        te = n.sections[r.endIndex];
      let we = G.startInInput,
        Le = te.endInInput;
      if (
        (r.shouldSelectBoundarySelectors && ((we -= G.startSeparator.length), (Le += te.endSeparator.length)),
        we !== _.current.selectionStart || Le !== _.current.selectionEnd)
      ) {
        const Te = _.current.scrollTop;
        _.current === Gf(document) && _.current.setSelectionRange(we, Le), (_.current.scrollTop = Te);
      }
    });
    const ne = db(S({}, m, { value: n.value, timezone: p }), O, F.isSameError, F.defaultErrorState),
      V = b.useMemo(() => (P !== void 0 ? P : F.hasError(ne)), [F, ne, P]);
    b.useEffect(() => {
      !V && !r && j();
    }, [n.referenceValue, r, V]),
      b.useEffect(
        () => (_.current && _.current === document.activeElement && o("all"), () => window.clearTimeout($.current)),
        []
      ),
      b.useEffect(() => {
        n.tempValueStrAndroid != null && r != null && (j(), s());
      }, [n.tempValueStrAndroid]);
    const K = b.useMemo(() => {
        var G;
        return (G = n.tempValueStrAndroid) != null ? G : L.getValueStrFromSections(n.sections, oe);
      }, [n.sections, L, n.tempValueStrAndroid, oe]),
      Z = b.useMemo(
        () => (r == null || n.sections[r.startIndex].contentType === "letter" ? "text" : "numeric"),
        [r, n.sections]
      ),
      ye = _.current && _.current === Gf(document),
      Fe = F.areValuesEqual(t, n.value, F.emptyValue),
      le = !ye && Fe;
    b.useImperativeHandle(C, () => ({
      getSections: () => n.sections,
      getActiveSectionIndex: () => {
        var G, te, we;
        const Le = (G = _.current.selectionStart) != null ? G : 0,
          Te = (te = _.current.selectionEnd) != null ? te : 0,
          je = !!((we = _.current) != null && we.readOnly);
        if ((Le === 0 && Te === 0) || je) return null;
        const ut =
          Le <= n.sections[0].startInInput
            ? 1
            : n.sections.findIndex((Xe) => Xe.startInInput - Xe.startSeparator.length > Le);
        return ut === -1 ? n.sections.length - 1 : ut - 1;
      },
      setSelectedSections: (G) => o(G),
    }));
    const he = Me((G, ...te) => {
      var we;
      G.preventDefault(), D == null || D(G, ...te), i(), _ == null || (we = _.current) == null || we.focus(), o(0);
    });
    return S({ placeholder: d, autoComplete: "off", disabled: !!R }, E, {
      value: le ? "" : K,
      inputMode: Z,
      readOnly: v,
      onClick: ae,
      onFocus: X,
      onBlur: ge,
      onPaste: Pe,
      onChange: _e,
      onKeyDown: ie,
      onMouseUp: me,
      onClear: he,
      error: V,
      ref: I,
      clearable: !!(A && !Fe && !v && !R),
    });
  },
  _0 = ({ props: e, value: t, adapter: n }) => {
    if (t === null) return null;
    const {
        shouldDisableDate: r,
        shouldDisableMonth: o,
        shouldDisableYear: i,
        disablePast: s,
        disableFuture: a,
        timezone: l,
      } = e,
      u = n.utils.dateWithTimezone(void 0, l),
      c = vr(n.utils, e.minDate, n.defaultDates.minDate),
      d = vr(n.utils, e.maxDate, n.defaultDates.maxDate);
    switch (!0) {
      case !n.utils.isValid(t):
        return "invalidDate";
      case !!(r && r(t)):
        return "shouldDisableDate";
      case !!(o && o(t)):
        return "shouldDisableMonth";
      case !!(i && i(t)):
        return "shouldDisableYear";
      case !!(a && n.utils.isAfterDay(t, u)):
        return "disableFuture";
      case !!(s && n.utils.isBeforeDay(t, u)):
        return "disablePast";
      case !!(c && n.utils.isBeforeDay(t, c)):
        return "minDate";
      case !!(d && n.utils.isAfterDay(t, d)):
        return "maxDate";
      default:
        return null;
    }
  },
  fb = [
    "disablePast",
    "disableFuture",
    "minDate",
    "maxDate",
    "shouldDisableDate",
    "shouldDisableMonth",
    "shouldDisableYear",
  ],
  cV = [
    "disablePast",
    "disableFuture",
    "minTime",
    "maxTime",
    "shouldDisableClock",
    "shouldDisableTime",
    "minutesStep",
    "ampm",
    "disableIgnoringDatePartForTimeValidation",
  ],
  dV = ["minDateTime", "maxDateTime"],
  fV = [...fb, ...cV, ...dV],
  pb = (e) => fV.reduce((t, n) => (e.hasOwnProperty(n) && (t[n] = e[n]), t), {}),
  pV = [
    "value",
    "defaultValue",
    "referenceDate",
    "format",
    "formatDensity",
    "onChange",
    "timezone",
    "readOnly",
    "onError",
    "shouldRespectLeadingZeros",
    "selectedSections",
    "onSelectedSectionsChange",
    "unstableFieldRef",
  ],
  hV = (e, t) => {
    const n = S({}, e),
      r = {},
      o = (i) => {
        n.hasOwnProperty(i) && ((r[i] = n[i]), delete n[i]);
      };
    return pV.forEach(o), fb.forEach(o), { forwardedProps: n, internalProps: r };
  },
  mV = (e) => {
    var t, n, r;
    const o = wt(),
      i = wc();
    return S({}, e, {
      disablePast: (t = e.disablePast) != null ? t : !1,
      disableFuture: (n = e.disableFuture) != null ? n : !1,
      format: (r = e.format) != null ? r : o.formats.keyboardDate,
      minDate: vr(o, e.minDate, i.minDate),
      maxDate: vr(o, e.maxDate, i.maxDate),
    });
  },
  gV = ({ props: e, inputRef: t }) => {
    const n = mV(e),
      { forwardedProps: r, internalProps: o } = hV(n);
    return uV({
      inputRef: t,
      forwardedProps: r,
      internalProps: o,
      valueManager: Vo,
      fieldValueManager: Uj,
      validator: _0,
      valueType: "date",
    });
  },
  yV = W(F9)({ [`& .${uu.container}`]: { outline: 0 }, [`& .${uu.paper}`]: { outline: 0, minWidth: P0 } }),
  vV = W(mL)({ "&:first-of-type": { padding: 0 } });
function xV(e) {
  var t, n;
  const { children: r, onDismiss: o, open: i, slots: s, slotProps: a } = e,
    l = (t = s == null ? void 0 : s.dialog) != null ? t : yV,
    u = (n = s == null ? void 0 : s.mobileTransition) != null ? n : Ii;
  return f.jsx(
    l,
    S({ open: i, onClose: o }, a == null ? void 0 : a.dialog, {
      TransitionComponent: u,
      TransitionProps: a == null ? void 0 : a.mobileTransition,
      PaperComponent: s == null ? void 0 : s.mobilePaper,
      PaperProps: a == null ? void 0 : a.mobilePaper,
      children: f.jsx(vV, { children: r }),
    })
  );
}
function bV(e) {
  return Ae("MuiPickersPopper", e);
}
Se("MuiPickersPopper", ["root", "paper"]);
const CV = "@media (prefers-reduced-motion: reduce)",
  xa = typeof navigator < "u" && navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),
  c6 = xa && xa[1] ? parseInt(xa[1], 10) : null,
  d6 = xa && xa[2] ? parseInt(xa[2], 10) : null,
  wV = (c6 && c6 < 10) || (d6 && d6 < 13) || !1,
  hb = () => xs(CV, { defaultMatches: !1 }) || wV,
  SV = [
    "PaperComponent",
    "popperPlacement",
    "ownerState",
    "children",
    "paperSlotProps",
    "paperClasses",
    "onPaperClick",
    "onPaperTouchStart",
  ],
  kV = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], paper: ["paper"] }, bV, t);
  },
  TV = W(XO, { name: "MuiPickersPopper", slot: "Root", overridesResolver: (e, t) => t.root })(({ theme: e }) => ({
    zIndex: e.zIndex.modal,
  })),
  MV = W(Ss, { name: "MuiPickersPopper", slot: "Paper", overridesResolver: (e, t) => t.paper })(({ ownerState: e }) =>
    S(
      { outline: 0, transformOrigin: "top center" },
      e.placement.includes("top") && { transformOrigin: "bottom center" }
    )
  );
function EV(e, t) {
  return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
}
function PV(e, t) {
  const n = b.useRef(!1),
    r = b.useRef(!1),
    o = b.useRef(null),
    i = b.useRef(!1);
  b.useEffect(() => {
    if (!e) return;
    function l() {
      i.current = !0;
    }
    return (
      document.addEventListener("mousedown", l, !0),
      document.addEventListener("touchstart", l, !0),
      () => {
        document.removeEventListener("mousedown", l, !0),
          document.removeEventListener("touchstart", l, !0),
          (i.current = !1);
      }
    );
  }, [e]);
  const s = Me((l) => {
      if (!i.current) return;
      const u = r.current;
      r.current = !1;
      const c = Dt(o.current);
      if (!o.current || ("clientX" in l && EV(l, c))) return;
      if (n.current) {
        n.current = !1;
        return;
      }
      let d;
      l.composedPath
        ? (d = l.composedPath().indexOf(o.current) > -1)
        : (d = !c.documentElement.contains(l.target) || o.current.contains(l.target)),
        !d && !u && t(l);
    }),
    a = () => {
      r.current = !0;
    };
  return (
    b.useEffect(() => {
      if (e) {
        const l = Dt(o.current),
          u = () => {
            n.current = !0;
          };
        return (
          l.addEventListener("touchstart", s),
          l.addEventListener("touchmove", u),
          () => {
            l.removeEventListener("touchstart", s), l.removeEventListener("touchmove", u);
          }
        );
      }
    }, [e, s]),
    b.useEffect(() => {
      if (e) {
        const l = Dt(o.current);
        return (
          l.addEventListener("click", s),
          () => {
            l.removeEventListener("click", s), (r.current = !1);
          }
        );
      }
    }, [e, s]),
    [o, a, a]
  );
}
const AV = b.forwardRef((e, t) => {
  const {
      PaperComponent: n,
      popperPlacement: r,
      ownerState: o,
      children: i,
      paperSlotProps: s,
      paperClasses: a,
      onPaperClick: l,
      onPaperTouchStart: u,
    } = e,
    c = ee(e, SV),
    d = S({}, o, { placement: r }),
    p = qe({
      elementType: n,
      externalSlotProps: s,
      additionalProps: { tabIndex: -1, elevation: 8, ref: t },
      className: a,
      ownerState: d,
    });
  return f.jsx(
    n,
    S({}, c, p, {
      onClick: (h) => {
        var m;
        l(h), (m = p.onClick) == null || m.call(p, h);
      },
      onTouchStart: (h) => {
        var m;
        u(h), (m = p.onTouchStart) == null || m.call(p, h);
      },
      ownerState: d,
      children: i,
    })
  );
});
function _V(e) {
  var t, n, r, o;
  const i = ke({ props: e, name: "MuiPickersPopper" }),
    {
      anchorEl: s,
      children: a,
      containerRef: l = null,
      shouldRestoreFocus: u,
      onBlur: c,
      onDismiss: d,
      open: p,
      role: h,
      placement: m,
      slots: v,
      slotProps: C,
      reduceAnimations: y,
    } = i;
  b.useEffect(() => {
    function I($) {
      p && ($.key === "Escape" || $.key === "Esc") && d();
    }
    return (
      document.addEventListener("keydown", I),
      () => {
        document.removeEventListener("keydown", I);
      }
    );
  }, [d, p]);
  const g = b.useRef(null);
  b.useEffect(() => {
    h === "tooltip" ||
      (u && !u()) ||
      (p
        ? (g.current = Gf(document))
        : g.current &&
          g.current instanceof HTMLElement &&
          setTimeout(() => {
            g.current instanceof HTMLElement && g.current.focus();
          }));
  }, [p, h, u]);
  const [x, w, k] = PV(p, c ?? d),
    M = b.useRef(null),
    T = tt(M, l),
    P = tt(T, x),
    A = i,
    D = kV(A),
    R = hb(),
    L = y ?? R,
    F = (I) => {
      I.key === "Escape" && (I.stopPropagation(), d());
    },
    O = ((t = v == null ? void 0 : v.desktopTransition) != null ? t : L) ? Ii : r5,
    E = (n = v == null ? void 0 : v.desktopTrapFocus) != null ? n : h9,
    B = (r = v == null ? void 0 : v.desktopPaper) != null ? r : MV,
    j = (o = v == null ? void 0 : v.popper) != null ? o : TV,
    _ = qe({
      elementType: j,
      externalSlotProps: C == null ? void 0 : C.popper,
      additionalProps: { transition: !0, role: h, open: p, anchorEl: s, placement: m, onKeyDown: F },
      className: D.root,
      ownerState: i,
    });
  return f.jsx(
    j,
    S({}, _, {
      children: ({ TransitionProps: I, placement: $ }) =>
        f.jsx(
          E,
          S(
            {
              open: p,
              disableAutoFocus: !0,
              disableRestoreFocus: !0,
              disableEnforceFocus: h === "tooltip",
              isEnabled: () => !0,
            },
            C == null ? void 0 : C.desktopTrapFocus,
            {
              children: f.jsx(
                O,
                S({}, I, C == null ? void 0 : C.desktopTransition, {
                  children: f.jsx(AV, {
                    PaperComponent: B,
                    ownerState: A,
                    popperPlacement: $,
                    ref: P,
                    onPaperClick: w,
                    onPaperTouchStart: k,
                    paperClasses: D.paper,
                    paperSlotProps: C == null ? void 0 : C.desktopPaper,
                    children: a,
                  }),
                })
              ),
            }
          )
        ),
    })
  );
}
function DV(e) {
  return Ae("MuiPickersToolbar", e);
}
Se("MuiPickersToolbar", ["root", "content"]);
const RV = (e) => {
    const { classes: t, isLandscape: n } = e;
    return Ee(
      { root: ["root"], content: ["content"], penIconButton: ["penIconButton", n && "penIconButtonLandscape"] },
      DV,
      t
    );
  },
  IV = W("div", { name: "MuiPickersToolbar", slot: "Root", overridesResolver: (e, t) => t.root })(
    ({ theme: e, ownerState: t }) =>
      S(
        {
          display: "flex",
          flexDirection: "column",
          alignItems: "flex-start",
          justifyContent: "space-between",
          padding: e.spacing(2, 3),
        },
        t.isLandscape && { height: "auto", maxWidth: 160, padding: 16, justifyContent: "flex-start", flexWrap: "wrap" }
      )
  ),
  OV = W("div", { name: "MuiPickersToolbar", slot: "Content", overridesResolver: (e, t) => t.content })(
    ({ ownerState: e }) => {
      var t;
      return {
        display: "flex",
        flexWrap: "wrap",
        width: "100%",
        justifyContent: e.isLandscape ? "flex-start" : "space-between",
        flexDirection: e.isLandscape ? ((t = e.landscapeDirection) != null ? t : "column") : "row",
        flex: 1,
        alignItems: e.isLandscape ? "flex-start" : "center",
      };
    }
  ),
  FV = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiPickersToolbar" }),
      { children: o, className: i, toolbarTitle: s, hidden: a, titleId: l } = r,
      u = r,
      c = RV(u);
    return a
      ? null
      : f.jsxs(IV, {
          ref: n,
          className: ue(c.root, i),
          ownerState: u,
          children: [
            f.jsx(xe, { color: "text.secondary", variant: "overline", id: l, children: s }),
            f.jsx(OV, { className: c.content, ownerState: u, children: o }),
          ],
        });
  }),
  LV = ({ open: e, onOpen: t, onClose: n }) => {
    const r = b.useRef(typeof e == "boolean").current,
      [o, i] = b.useState(!1);
    b.useEffect(() => {
      if (r) {
        if (typeof e != "boolean")
          throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");
        i(e);
      }
    }, [r, e]);
    const s = b.useCallback(
      (a) => {
        r || i(a), a && t && t(), !a && n && n();
      },
      [r, t, n]
    );
    return { isOpen: o, setIsOpen: s };
  },
  NV = (e) => {
    const { action: t, hasChanged: n, dateState: r, isControlled: o } = e,
      i = !o && !r.hasBeenModifiedSinceMount;
    return t.name === "setValueFromField"
      ? !0
      : t.name === "setValueFromAction"
        ? i && ["accept", "today", "clear"].includes(t.pickerAction)
          ? !0
          : n(r.lastPublishedValue)
        : (t.name === "setValueFromView" && t.selectionState !== "shallow") || t.name === "setValueFromShortcut"
          ? i
            ? !0
            : n(r.lastPublishedValue)
          : !1;
  },
  $V = (e) => {
    const { action: t, hasChanged: n, dateState: r, isControlled: o, closeOnSelect: i } = e,
      s = !o && !r.hasBeenModifiedSinceMount;
    return t.name === "setValueFromAction"
      ? s && ["accept", "today", "clear"].includes(t.pickerAction)
        ? !0
        : n(r.lastCommittedValue)
      : t.name === "setValueFromView" && t.selectionState === "finish" && i
        ? s
          ? !0
          : n(r.lastCommittedValue)
        : t.name === "setValueFromShortcut"
          ? t.changeImportance === "accept" && n(r.lastCommittedValue)
          : !1;
  },
  BV = (e) => {
    const { action: t, closeOnSelect: n } = e;
    return t.name === "setValueFromAction"
      ? !0
      : t.name === "setValueFromView"
        ? t.selectionState === "finish" && n
        : t.name === "setValueFromShortcut"
          ? t.changeImportance === "accept"
          : !1;
  },
  jV = ({ props: e, valueManager: t, valueType: n, wrapperVariant: r, validator: o }) => {
    const {
        onAccept: i,
        onChange: s,
        value: a,
        defaultValue: l,
        closeOnSelect: u = r === "desktop",
        selectedSections: c,
        onSelectedSectionsChange: d,
        timezone: p,
      } = e,
      { current: h } = b.useRef(l),
      { current: m } = b.useRef(a !== void 0),
      v = wt(),
      C = Ts(),
      [y, g] = Sn({ controlled: c, default: null, name: "usePickerValue", state: "selectedSections" }),
      { isOpen: x, setIsOpen: w } = LV(e),
      [k, M] = b.useState(() => {
        let X;
        return (
          a !== void 0 ? (X = a) : h !== void 0 ? (X = h) : (X = t.emptyValue),
          {
            draft: X,
            lastPublishedValue: X,
            lastCommittedValue: X,
            lastControlledValue: a,
            hasBeenModifiedSinceMount: !1,
          }
        );
      }),
      { timezone: T, handleValueChange: P } = p5({
        timezone: p,
        value: a,
        defaultValue: h,
        onChange: s,
        valueManager: t,
      });
    db(S({}, e, { value: k.draft, timezone: T }), o, t.isSameError, t.defaultErrorState);
    const A = Me((X) => {
      const ge = {
          action: X,
          dateState: k,
          hasChanged: (ne) => !t.areValuesEqual(v, X.value, ne),
          isControlled: m,
          closeOnSelect: u,
        },
        Pe = NV(ge),
        _e = $V(ge),
        ie = BV(ge);
      if (
        (M((ne) =>
          S({}, ne, {
            draft: X.value,
            lastPublishedValue: Pe ? X.value : ne.lastPublishedValue,
            lastCommittedValue: _e ? X.value : ne.lastCommittedValue,
            hasBeenModifiedSinceMount: !0,
          })
        ),
        Pe)
      ) {
        const V = {
          validationError:
            X.name === "setValueFromField"
              ? X.context.validationError
              : o({ adapter: C, value: X.value, props: S({}, e, { value: X.value, timezone: T }) }),
        };
        X.name === "setValueFromShortcut" && X.shortcut != null && (V.shortcut = X.shortcut), P(X.value, V);
      }
      _e && i && i(X.value), ie && w(!1);
    });
    if (a !== void 0 && (k.lastControlledValue === void 0 || !t.areValuesEqual(v, k.lastControlledValue, a))) {
      const X = t.areValuesEqual(v, k.draft, a);
      M((ge) =>
        S(
          {},
          ge,
          { lastControlledValue: a },
          X ? {} : { lastCommittedValue: a, lastPublishedValue: a, draft: a, hasBeenModifiedSinceMount: !0 }
        )
      );
    }
    const D = Me(() => {
        A({ value: t.emptyValue, name: "setValueFromAction", pickerAction: "clear" });
      }),
      R = Me(() => {
        A({ value: k.lastPublishedValue, name: "setValueFromAction", pickerAction: "accept" });
      }),
      L = Me(() => {
        A({ value: k.lastPublishedValue, name: "setValueFromAction", pickerAction: "dismiss" });
      }),
      F = Me(() => {
        A({ value: k.lastCommittedValue, name: "setValueFromAction", pickerAction: "cancel" });
      }),
      O = Me(() => {
        A({ value: t.getTodayValue(v, T, n), name: "setValueFromAction", pickerAction: "today" });
      }),
      E = Me(() => w(!0)),
      B = Me(() => w(!1)),
      j = Me((X, ge = "partial") => A({ name: "setValueFromView", value: X, selectionState: ge })),
      _ = Me((X, ge, Pe) =>
        A({ name: "setValueFromShortcut", value: X, changeImportance: ge ?? "accept", shortcut: Pe })
      ),
      I = Me((X, ge) => A({ name: "setValueFromField", value: X, context: ge })),
      $ = Me((X) => {
        g(X), d == null || d(X);
      }),
      J = { onClear: D, onAccept: R, onDismiss: L, onCancel: F, onSetToday: O, onOpen: E, onClose: B },
      oe = { value: k.draft, onChange: I, selectedSections: y, onSelectedSectionsChange: $ },
      pe = b.useMemo(() => t.cleanValue(v, k.draft), [v, t, k.draft]),
      z = { value: pe, onChange: j, onClose: B, open: x, onSelectedSectionsChange: $ },
      me = S({}, J, {
        value: pe,
        onChange: j,
        onSelectShortcut: _,
        isValid: (X) => {
          const ge = o({ adapter: C, value: X, props: S({}, e, { value: X, timezone: T }) });
          return !t.hasError(ge);
        },
      });
    return { open: x, fieldProps: oe, viewProps: z, layoutProps: me, actions: J };
  },
  VV = ["className", "sx"],
  HV = ({ props: e, propsFromPickerValue: t, additionalViewProps: n, inputRef: r, autoFocusView: o }) => {
    const { onChange: i, open: s, onSelectedSectionsChange: a, onClose: l } = t,
      { views: u, openTo: c, onViewChange: d, disableOpenPicker: p, viewRenderers: h, timezone: m } = e,
      v = ee(e, VV),
      {
        view: C,
        setView: y,
        defaultView: g,
        focusedView: x,
        setFocusedView: w,
        setValueAndGoToNextView: k,
      } = Q9({ view: void 0, views: u, openTo: c, onChange: i, onViewChange: d, autoFocus: o }),
      { hasUIView: M, viewModeLookup: T } = b.useMemo(
        () =>
          u.reduce(
            (O, E) => {
              let B;
              return (
                p ? (B = "field") : h[E] != null ? (B = "UI") : (B = "field"),
                (O.viewModeLookup[E] = B),
                B === "UI" && (O.hasUIView = !0),
                O
              );
            },
            { hasUIView: !1, viewModeLookup: {} }
          ),
        [p, h, u]
      ),
      P = b.useMemo(() => u.reduce((O, E) => (h[E] != null && Sj(E) ? O + 1 : O), 0), [h, u]),
      A = T[C],
      D = Me(() => A === "UI"),
      [R, L] = b.useState(A === "UI" ? C : null);
    return (
      R !== C && T[C] === "UI" && L(C),
      Kt(() => {
        A === "field" &&
          s &&
          (l(),
          setTimeout(() => {
            r == null || r.current.focus(), a(C);
          }));
      }, [C]),
      Kt(() => {
        if (!s) return;
        let O = C;
        A === "field" && R != null && (O = R),
          O !== g && T[O] === "UI" && T[g] === "UI" && (O = g),
          O !== C && y(O),
          w(O, !0);
      }, [s]),
      {
        hasUIView: M,
        shouldRestoreFocus: D,
        layoutProps: { views: u, view: R, onViewChange: y },
        renderCurrentView: () => {
          if (R == null) return null;
          const O = h[R];
          return O == null
            ? null
            : O(
                S({}, v, n, t, {
                  views: u,
                  timezone: m,
                  onChange: k,
                  view: R,
                  onViewChange: y,
                  focusedView: x,
                  onFocusedViewChange: w,
                  showViewSwitcher: P > 1,
                  timeViewsCount: P,
                })
              );
        },
      }
    );
  };
function f6() {
  return typeof window > "u"
    ? "portrait"
    : window.screen && window.screen.orientation && window.screen.orientation.angle
      ? Math.abs(window.screen.orientation.angle) === 90
        ? "landscape"
        : "portrait"
      : window.orientation && Math.abs(Number(window.orientation)) === 90
        ? "landscape"
        : "portrait";
}
const zV = (e, t) => {
    const [n, r] = b.useState(f6);
    return (
      Kt(() => {
        const i = () => {
          r(f6());
        };
        return (
          window.addEventListener("orientationchange", i),
          () => {
            window.removeEventListener("orientationchange", i);
          }
        );
      }, []),
      iV(e, ["hours", "minutes", "seconds"]) ? !1 : (t || n) === "landscape"
    );
  },
  WV = ({ props: e, propsFromPickerValue: t, propsFromPickerViews: n, wrapperVariant: r }) => {
    const { orientation: o } = e,
      i = zV(n.views, o);
    return {
      layoutProps: S({}, n, t, { isLandscape: i, wrapperVariant: r, disabled: e.disabled, readOnly: e.readOnly }),
    };
  },
  mb = ({
    props: e,
    valueManager: t,
    valueType: n,
    wrapperVariant: r,
    inputRef: o,
    additionalViewProps: i,
    validator: s,
    autoFocusView: a,
  }) => {
    const l = jV({ props: e, valueManager: t, valueType: n, wrapperVariant: r, validator: s }),
      u = HV({ props: e, inputRef: o, additionalViewProps: i, autoFocusView: a, propsFromPickerValue: l.viewProps }),
      c = WV({ props: e, wrapperVariant: r, propsFromPickerValue: l.layoutProps, propsFromPickerViews: u.layoutProps });
    return {
      open: l.open,
      actions: l.actions,
      fieldProps: l.fieldProps,
      renderCurrentView: u.renderCurrentView,
      hasUIView: u.hasUIView,
      shouldRestoreFocus: u.shouldRestoreFocus,
      layoutProps: c.layoutProps,
    };
  };
function gb(e) {
  return Ae("MuiPickersLayout", e);
}
const nh = Se("MuiPickersLayout", ["root", "landscape", "contentWrapper", "toolbar", "actionBar", "tabs", "shortcuts"]),
  GV = ["onAccept", "onClear", "onCancel", "onSetToday", "actions"];
function UV(e) {
  const { onAccept: t, onClear: n, onCancel: r, onSetToday: o, actions: i } = e,
    s = ee(e, GV),
    a = Oi();
  if (i == null || i.length === 0) return null;
  const l =
    i == null
      ? void 0
      : i.map((u) => {
          switch (u) {
            case "clear":
              return f.jsx(Vn, { onClick: n, children: a.clearButtonLabel }, u);
            case "cancel":
              return f.jsx(Vn, { onClick: r, children: a.cancelButtonLabel }, u);
            case "accept":
              return f.jsx(Vn, { onClick: t, children: a.okButtonLabel }, u);
            case "today":
              return f.jsx(Vn, { onClick: o, children: a.todayButtonLabel }, u);
            default:
              return null;
          }
        });
  return f.jsx(uL, S({}, s, { children: l }));
}
const YV = ["items", "changeImportance", "isLandscape", "onChange", "isValid"],
  KV = ["getValue"];
function XV(e) {
  const { items: t, changeImportance: n, onChange: r, isValid: o } = e,
    i = ee(e, YV);
  if (t == null || t.length === 0) return null;
  const s = t.map((a) => {
    let { getValue: l } = a,
      u = ee(a, KV);
    const c = l({ isValid: o });
    return {
      label: u.label,
      onClick: () => {
        r(c, n, u);
      },
      disabled: !o(c),
    };
  });
  return f.jsx(
    $9,
    S(
      { dense: !0, sx: [{ maxHeight: c5, maxWidth: 200, overflow: "auto" }, ...(Array.isArray(i.sx) ? i.sx : [i.sx])] },
      i,
      { children: s.map((a) => f.jsx(GN, { children: f.jsx(nF, S({}, a)) }, a.label)) }
    )
  );
}
function qV(e) {
  return e.view !== null;
}
const ZV = (e) => {
    const { classes: t, isLandscape: n } = e;
    return Ee(
      {
        root: ["root", n && "landscape"],
        contentWrapper: ["contentWrapper"],
        toolbar: ["toolbar"],
        actionBar: ["actionBar"],
        tabs: ["tabs"],
        landscape: ["landscape"],
        shortcuts: ["shortcuts"],
      },
      gb,
      t
    );
  },
  JV = (e) => {
    var t, n;
    const {
        wrapperVariant: r,
        onAccept: o,
        onClear: i,
        onCancel: s,
        onSetToday: a,
        view: l,
        views: u,
        onViewChange: c,
        value: d,
        onChange: p,
        onSelectShortcut: h,
        isValid: m,
        isLandscape: v,
        disabled: C,
        readOnly: y,
        children: g,
        components: x,
        componentsProps: w,
        slots: k,
        slotProps: M,
      } = e,
      T = k ?? lb(x),
      P = M ?? w,
      A = ZV(e),
      D = (t = T == null ? void 0 : T.actionBar) != null ? t : UV,
      R = qe({
        elementType: D,
        externalSlotProps: P == null ? void 0 : P.actionBar,
        additionalProps: {
          onAccept: o,
          onClear: i,
          onCancel: s,
          onSetToday: a,
          actions: r === "desktop" ? [] : ["cancel", "accept"],
          className: A.actionBar,
        },
        ownerState: S({}, e, { wrapperVariant: r }),
      }),
      L = f.jsx(D, S({}, R)),
      F = T == null ? void 0 : T.toolbar,
      O = qe({
        elementType: F,
        externalSlotProps: P == null ? void 0 : P.toolbar,
        additionalProps: {
          isLandscape: v,
          onChange: p,
          value: d,
          view: l,
          onViewChange: c,
          views: u,
          disabled: C,
          readOnly: y,
          className: A.toolbar,
        },
        ownerState: S({}, e, { wrapperVariant: r }),
      }),
      E = qV(O) && F ? f.jsx(F, S({}, O)) : null,
      B = g,
      j = T == null ? void 0 : T.tabs,
      _ = l && j ? f.jsx(j, S({ view: l, onViewChange: c, className: A.tabs }, P == null ? void 0 : P.tabs)) : null,
      I = (n = T == null ? void 0 : T.shortcuts) != null ? n : XV,
      $ = qe({
        elementType: I,
        externalSlotProps: P == null ? void 0 : P.shortcuts,
        additionalProps: { isValid: m, isLandscape: v, onChange: h, className: A.shortcuts },
        ownerState: { isValid: m, isLandscape: v, onChange: h, className: A.shortcuts, wrapperVariant: r },
      }),
      J = l && I ? f.jsx(I, S({}, $)) : null;
    return { toolbar: E, content: B, tabs: _, actionBar: L, shortcuts: J };
  },
  QV = (e) => {
    const { isLandscape: t, classes: n } = e;
    return Ee({ root: ["root", t && "landscape"], contentWrapper: ["contentWrapper"] }, gb, n);
  },
  yb = W("div", { name: "MuiPickersLayout", slot: "Root", overridesResolver: (e, t) => t.root })(
    ({ theme: e, ownerState: t }) => ({
      display: "grid",
      gridAutoColumns: "max-content auto max-content",
      gridAutoRows: "max-content auto max-content",
      [`& .${nh.toolbar}`]: t.isLandscape
        ? { gridColumn: e.direction === "rtl" ? 3 : 1, gridRow: "2 / 3" }
        : { gridColumn: "2 / 4", gridRow: 1 },
      [`.${nh.shortcuts}`]: t.isLandscape
        ? { gridColumn: "2 / 4", gridRow: 1 }
        : { gridColumn: e.direction === "rtl" ? 3 : 1, gridRow: "2 / 3" },
      [`& .${nh.actionBar}`]: { gridColumn: "1 / 4", gridRow: 3 },
    })
  );
yb.propTypes = {
  as: N.elementType,
  ownerState: N.shape({ isLandscape: N.bool.isRequired }).isRequired,
  sx: N.oneOfType([N.arrayOf(N.oneOfType([N.func, N.object, N.bool])), N.func, N.object]),
};
const eH = W("div", {
    name: "MuiPickersLayout",
    slot: "ContentWrapper",
    overridesResolver: (e, t) => t.contentWrapper,
  })({ gridColumn: 2, gridRow: 2, display: "flex", flexDirection: "column" }),
  vb = function (t) {
    const n = ke({ props: t, name: "MuiPickersLayout" }),
      { toolbar: r, content: o, tabs: i, actionBar: s, shortcuts: a } = JV(n),
      { sx: l, className: u, isLandscape: c, ref: d, wrapperVariant: p } = n,
      h = n,
      m = QV(h);
    return f.jsxs(yb, {
      ref: d,
      sx: l,
      className: ue(u, m.root),
      ownerState: h,
      children: [
        c ? a : r,
        c ? r : a,
        f.jsx(eH, {
          className: m.contentWrapper,
          children:
            p === "desktop" ? f.jsxs(b.Fragment, { children: [o, i] }) : f.jsxs(b.Fragment, { children: [i, o] }),
        }),
        s,
      ],
    });
  },
  tH = (e) => Ae("MuiPickersSlideTransition", e),
  Qn = Se("MuiPickersSlideTransition", [
    "root",
    "slideEnter-left",
    "slideEnter-right",
    "slideEnterActive",
    "slideExit",
    "slideExitActiveLeft-left",
    "slideExitActiveLeft-right",
  ]),
  nH = ["children", "className", "reduceAnimations", "slideDirection", "transKey", "classes"],
  rH = (e) => {
    const { classes: t, slideDirection: n } = e,
      r = {
        root: ["root"],
        exit: ["slideExit"],
        enterActive: ["slideEnterActive"],
        enter: [`slideEnter-${n}`],
        exitActive: [`slideExitActiveLeft-${n}`],
      };
    return Ee(r, tH, t);
  },
  oH = W(hc, {
    name: "MuiPickersSlideTransition",
    slot: "Root",
    overridesResolver: (e, t) => [
      t.root,
      { [`.${Qn["slideEnter-left"]}`]: t["slideEnter-left"] },
      { [`.${Qn["slideEnter-right"]}`]: t["slideEnter-right"] },
      { [`.${Qn.slideEnterActive}`]: t.slideEnterActive },
      { [`.${Qn.slideExit}`]: t.slideExit },
      { [`.${Qn["slideExitActiveLeft-left"]}`]: t["slideExitActiveLeft-left"] },
      { [`.${Qn["slideExitActiveLeft-right"]}`]: t["slideExitActiveLeft-right"] },
    ],
  })(({ theme: e }) => {
    const t = e.transitions.create("transform", {
      duration: e.transitions.duration.complex,
      easing: "cubic-bezier(0.35, 0.8, 0.4, 1)",
    });
    return {
      display: "block",
      position: "relative",
      overflowX: "hidden",
      "& > *": { position: "absolute", top: 0, right: 0, left: 0 },
      [`& .${Qn["slideEnter-left"]}`]: { willChange: "transform", transform: "translate(100%)", zIndex: 1 },
      [`& .${Qn["slideEnter-right"]}`]: { willChange: "transform", transform: "translate(-100%)", zIndex: 1 },
      [`& .${Qn.slideEnterActive}`]: { transform: "translate(0%)", transition: t },
      [`& .${Qn.slideExit}`]: { transform: "translate(0%)" },
      [`& .${Qn["slideExitActiveLeft-left"]}`]: {
        willChange: "transform",
        transform: "translate(-100%)",
        transition: t,
        zIndex: 0,
      },
      [`& .${Qn["slideExitActiveLeft-right"]}`]: {
        willChange: "transform",
        transform: "translate(100%)",
        transition: t,
        zIndex: 0,
      },
    };
  });
function iH(e) {
  const t = ke({ props: e, name: "MuiPickersSlideTransition" }),
    { children: n, className: r, reduceAnimations: o, transKey: i } = t,
    s = ee(t, nH),
    a = rH(t),
    l = Re();
  if (o) return f.jsx("div", { className: ue(a.root, r), children: n });
  const u = { exit: a.exit, enterActive: a.enterActive, enter: a.enter, exitActive: a.exitActive };
  return f.jsx(oH, {
    className: ue(a.root, r),
    childFactory: (c) => b.cloneElement(c, { classNames: u }),
    role: "presentation",
    children: f.jsx(
      Vg,
      S({ mountOnEnter: !0, unmountOnExit: !0, timeout: l.transitions.duration.complex, classNames: u }, s, {
        children: n,
      }),
      i
    ),
  });
}
const xb = ({
    shouldDisableDate: e,
    shouldDisableMonth: t,
    shouldDisableYear: n,
    minDate: r,
    maxDate: o,
    disableFuture: i,
    disablePast: s,
    timezone: a,
  }) => {
    const l = Ts();
    return b.useCallback(
      (u) =>
        _0({
          adapter: l,
          value: u,
          props: {
            shouldDisableDate: e,
            shouldDisableMonth: t,
            shouldDisableYear: n,
            minDate: r,
            maxDate: o,
            disableFuture: i,
            disablePast: s,
            timezone: a,
          },
        }) !== null,
      [l, e, t, n, r, o, i, s, a]
    );
  },
  sH = (e) => Ae("MuiDayCalendar", e);
Se("MuiDayCalendar", [
  "root",
  "header",
  "weekDayLabel",
  "loadingContainer",
  "slideTransition",
  "monthContainer",
  "weekContainer",
  "weekNumberLabel",
  "weekNumber",
]);
const aH = [
    "parentProps",
    "day",
    "focusableDay",
    "selectedDays",
    "isDateDisabled",
    "currentMonthNumber",
    "isViewFocused",
  ],
  lH = ["ownerState"],
  uH = (e) => {
    const { classes: t } = e;
    return Ee(
      {
        root: ["root"],
        header: ["header"],
        weekDayLabel: ["weekDayLabel"],
        loadingContainer: ["loadingContainer"],
        slideTransition: ["slideTransition"],
        monthContainer: ["monthContainer"],
        weekContainer: ["weekContainer"],
        weekNumberLabel: ["weekNumberLabel"],
        weekNumber: ["weekNumber"],
      },
      sH,
      t
    );
  },
  bb = (zu + E0 * 2) * 6,
  cH = W("div", { name: "MuiDayCalendar", slot: "Root", overridesResolver: (e, t) => t.root })({}),
  dH = W("div", { name: "MuiDayCalendar", slot: "Header", overridesResolver: (e, t) => t.header })({
    display: "flex",
    justifyContent: "center",
    alignItems: "center",
  }),
  fH = W(xe, { name: "MuiDayCalendar", slot: "WeekDayLabel", overridesResolver: (e, t) => t.weekDayLabel })(
    ({ theme: e }) => ({
      width: 36,
      height: 40,
      margin: "0 2px",
      textAlign: "center",
      display: "flex",
      justifyContent: "center",
      alignItems: "center",
      color: (e.vars || e).palette.text.secondary,
    })
  ),
  pH = W(xe, { name: "MuiDayCalendar", slot: "WeekNumberLabel", overridesResolver: (e, t) => t.weekNumberLabel })(
    ({ theme: e }) => ({
      width: 36,
      height: 40,
      margin: "0 2px",
      textAlign: "center",
      display: "flex",
      justifyContent: "center",
      alignItems: "center",
      color: e.palette.text.disabled,
    })
  ),
  hH = W(xe, { name: "MuiDayCalendar", slot: "WeekNumber", overridesResolver: (e, t) => t.weekNumber })(
    ({ theme: e }) =>
      S({}, e.typography.caption, {
        width: zu,
        height: zu,
        padding: 0,
        margin: `0 ${E0}px`,
        color: e.palette.text.disabled,
        fontSize: "0.75rem",
        alignItems: "center",
        justifyContent: "center",
        display: "inline-flex",
      })
  ),
  mH = W("div", { name: "MuiDayCalendar", slot: "LoadingContainer", overridesResolver: (e, t) => t.loadingContainer })({
    display: "flex",
    justifyContent: "center",
    alignItems: "center",
    minHeight: bb,
  }),
  gH = W(iH, { name: "MuiDayCalendar", slot: "SlideTransition", overridesResolver: (e, t) => t.slideTransition })({
    minHeight: bb,
  }),
  yH = W("div", { name: "MuiDayCalendar", slot: "MonthContainer", overridesResolver: (e, t) => t.monthContainer })({
    overflow: "hidden",
  }),
  vH = W("div", { name: "MuiDayCalendar", slot: "WeekContainer", overridesResolver: (e, t) => t.weekContainer })({
    margin: `${E0}px 0`,
    display: "flex",
    justifyContent: "center",
  });
function xH(e) {
  var t, n, r;
  let {
      parentProps: o,
      day: i,
      focusableDay: s,
      selectedDays: a,
      isDateDisabled: l,
      currentMonthNumber: u,
      isViewFocused: c,
    } = e,
    d = ee(e, aH);
  const {
      disabled: p,
      disableHighlightToday: h,
      isMonthSwitchingAnimating: m,
      showDaysOutsideCurrentMonth: v,
      components: C,
      componentsProps: y,
      slots: g,
      slotProps: x,
      timezone: w,
    } = o,
    k = wt(),
    M = M0(w),
    T = s !== null && k.isSameDay(i, s),
    P = a.some((j) => k.isSameDay(j, i)),
    A = k.isSameDay(i, M),
    D = (t = (n = g == null ? void 0 : g.day) != null ? n : C == null ? void 0 : C.Day) != null ? t : Qj,
    R = qe({
      elementType: D,
      externalSlotProps: (r = x == null ? void 0 : x.day) != null ? r : y == null ? void 0 : y.day,
      additionalProps: S(
        {
          disableHighlightToday: h,
          showDaysOutsideCurrentMonth: v,
          role: "gridcell",
          isAnimating: m,
          "data-timestamp": k.toJsDate(i).valueOf(),
        },
        d
      ),
      ownerState: S({}, o, { day: i, selected: P }),
    }),
    L = ee(R, lH),
    F = b.useMemo(() => p || l(i), [p, l, i]),
    O = b.useMemo(() => k.getMonth(i) !== u, [k, i, u]),
    E = b.useMemo(() => {
      const j = k.startOfMonth(k.setMonth(i, u));
      return v ? k.isSameDay(i, k.startOfWeek(j)) : k.isSameDay(i, j);
    }, [u, i, v, k]),
    B = b.useMemo(() => {
      const j = k.endOfMonth(k.setMonth(i, u));
      return v ? k.isSameDay(i, k.endOfWeek(j)) : k.isSameDay(i, j);
    }, [u, i, v, k]);
  return f.jsx(
    D,
    S({}, L, {
      day: i,
      disabled: F,
      autoFocus: c && T,
      today: A,
      outsideCurrentMonth: O,
      isFirstVisibleCell: E,
      isLastVisibleCell: B,
      selected: P,
      tabIndex: T ? 0 : -1,
      "aria-selected": P,
      "aria-current": A ? "date" : void 0,
    })
  );
}
function bH(e) {
  const t = ke({ props: e, name: "MuiDayCalendar" }),
    {
      onFocusedDayChange: n,
      className: r,
      currentMonth: o,
      selectedDays: i,
      focusedDay: s,
      loading: a,
      onSelectedDaysChange: l,
      onMonthSwitchingAnimationEnd: u,
      readOnly: c,
      reduceAnimations: d,
      renderLoading: p = () => f.jsx("span", { children: "..." }),
      slideDirection: h,
      TransitionProps: m,
      disablePast: v,
      disableFuture: C,
      minDate: y,
      maxDate: g,
      shouldDisableDate: x,
      shouldDisableMonth: w,
      shouldDisableYear: k,
      dayOfWeekFormatter: M,
      hasFocus: T,
      onFocusedViewChange: P,
      gridLabelId: A,
      displayWeekNumber: D,
      fixedWeekNumber: R,
      autoFocus: L,
      timezone: F,
    } = t,
    O = M0(F),
    E = wt(),
    B = uH(t),
    _ = Re().direction === "rtl",
    I = M || ((le, he) => E.format(he, "weekdayShort").charAt(0).toUpperCase()),
    $ = xb({
      shouldDisableDate: x,
      shouldDisableMonth: w,
      shouldDisableYear: k,
      minDate: y,
      maxDate: g,
      disablePast: v,
      disableFuture: C,
      timezone: F,
    }),
    J = Oi(),
    [oe, pe] = Sn({ name: "DayCalendar", state: "hasFocus", controlled: T, default: L ?? !1 }),
    [z, ae] = b.useState(() => s || O),
    me = Me((le) => {
      c || l(le);
    }),
    X = (le) => {
      $(le) || (n(le), ae(le), P == null || P(!0), pe(!0));
    },
    ge = Me((le, he) => {
      switch (le.key) {
        case "ArrowUp":
          X(E.addDays(he, -7)), le.preventDefault();
          break;
        case "ArrowDown":
          X(E.addDays(he, 7)), le.preventDefault();
          break;
        case "ArrowLeft": {
          const G = E.addDays(he, _ ? 1 : -1),
            te = E.addMonths(he, _ ? 1 : -1),
            we = du({
              utils: E,
              date: G,
              minDate: _ ? G : E.startOfMonth(te),
              maxDate: _ ? E.endOfMonth(te) : G,
              isDateDisabled: $,
              timezone: F,
            });
          X(we || G), le.preventDefault();
          break;
        }
        case "ArrowRight": {
          const G = E.addDays(he, _ ? -1 : 1),
            te = E.addMonths(he, _ ? -1 : 1),
            we = du({
              utils: E,
              date: G,
              minDate: _ ? E.startOfMonth(te) : G,
              maxDate: _ ? G : E.endOfMonth(te),
              isDateDisabled: $,
              timezone: F,
            });
          X(we || G), le.preventDefault();
          break;
        }
        case "Home":
          X(E.startOfWeek(he)), le.preventDefault();
          break;
        case "End":
          X(E.endOfWeek(he)), le.preventDefault();
          break;
        case "PageUp":
          X(E.addMonths(he, 1)), le.preventDefault();
          break;
        case "PageDown":
          X(E.addMonths(he, -1)), le.preventDefault();
          break;
      }
    }),
    Pe = Me((le, he) => X(he)),
    _e = Me((le, he) => {
      oe && E.isSameDay(z, he) && (P == null || P(!1));
    }),
    ie = E.getMonth(o),
    ne = b.useMemo(() => i.filter((le) => !!le).map((le) => E.startOfDay(le)), [E, i]),
    V = ie,
    K = b.useMemo(() => b.createRef(), [V]),
    Z = E.startOfWeek(O),
    ye = b.useMemo(() => {
      const le = E.startOfMonth(o),
        he = E.endOfMonth(o);
      return $(z) || E.isAfterDay(z, he) || E.isBeforeDay(z, le)
        ? du({
            utils: E,
            date: z,
            minDate: le,
            maxDate: he,
            disablePast: v,
            disableFuture: C,
            isDateDisabled: $,
            timezone: F,
          })
        : z;
    }, [o, C, v, z, $, E, F]),
    Fe = b.useMemo(() => {
      const le = E.setTimezone(o, F),
        he = E.getWeekArray(le);
      let G = E.addMonths(le, 1);
      for (; R && he.length < R; ) {
        const te = E.getWeekArray(G),
          we = E.isSameDay(he[he.length - 1][0], te[0][0]);
        te.slice(we ? 1 : 0).forEach((Le) => {
          he.length < R && he.push(Le);
        }),
          (G = E.addMonths(G, 1));
      }
      return he;
    }, [o, R, E, F]);
  return f.jsxs(cH, {
    role: "grid",
    "aria-labelledby": A,
    className: B.root,
    children: [
      f.jsxs(dH, {
        role: "row",
        className: B.header,
        children: [
          D &&
            f.jsx(pH, {
              variant: "caption",
              role: "columnheader",
              "aria-label": J.calendarWeekNumberHeaderLabel,
              className: B.weekNumberLabel,
              children: J.calendarWeekNumberHeaderText,
            }),
          Rj(E, O).map((le, he) => {
            var G;
            const te = E.format(le, "weekdayShort");
            return f.jsx(
              fH,
              {
                variant: "caption",
                role: "columnheader",
                "aria-label": E.format(E.addDays(Z, he), "weekday"),
                className: B.weekDayLabel,
                children: (G = I == null ? void 0 : I(te, le)) != null ? G : te,
              },
              te + he.toString()
            );
          }),
        ],
      }),
      a
        ? f.jsx(mH, { className: B.loadingContainer, children: p() })
        : f.jsx(
            gH,
            S(
              { transKey: V, onExited: u, reduceAnimations: d, slideDirection: h, className: ue(r, B.slideTransition) },
              m,
              {
                nodeRef: K,
                children: f.jsx(yH, {
                  ref: K,
                  role: "rowgroup",
                  className: B.monthContainer,
                  children: Fe.map((le, he) =>
                    f.jsxs(
                      vH,
                      {
                        role: "row",
                        className: B.weekContainer,
                        "aria-rowindex": he + 1,
                        children: [
                          D &&
                            f.jsx(hH, {
                              className: B.weekNumber,
                              role: "rowheader",
                              "aria-label": J.calendarWeekNumberAriaLabelText(E.getWeekNumber(le[0])),
                              children: J.calendarWeekNumberText(E.getWeekNumber(le[0])),
                            }),
                          le.map((G, te) =>
                            f.jsx(
                              xH,
                              {
                                parentProps: t,
                                day: G,
                                selectedDays: ne,
                                focusableDay: ye,
                                onKeyDown: ge,
                                onFocus: Pe,
                                onBlur: _e,
                                onDaySelect: me,
                                isDateDisabled: $,
                                currentMonthNumber: ie,
                                isViewFocused: oe,
                                "aria-colindex": te + 1,
                              },
                              G.toString()
                            )
                          ),
                        ],
                      },
                      `week-${le[0]}`
                    )
                  ),
                }),
              }
            )
          ),
    ],
  });
}
const CH = (e, t, n) => (r, o) => {
    switch (o.type) {
      case "changeMonth":
        return S({}, r, { slideDirection: o.direction, currentMonth: o.newMonth, isMonthSwitchingAnimating: !e });
      case "finishMonthSwitchingAnimation":
        return S({}, r, { isMonthSwitchingAnimating: !1 });
      case "changeFocusedDay": {
        if (r.focusedDay != null && o.focusedDay != null && n.isSameDay(o.focusedDay, r.focusedDay)) return r;
        const i = o.focusedDay != null && !t && !n.isSameMonth(r.currentMonth, o.focusedDay);
        return S({}, r, {
          focusedDay: o.focusedDay,
          isMonthSwitchingAnimating: i && !e && !o.withoutMonthSwitchingAnimation,
          currentMonth: i ? n.startOfMonth(o.focusedDay) : r.currentMonth,
          slideDirection: o.focusedDay != null && n.isAfterDay(o.focusedDay, r.currentMonth) ? "left" : "right",
        });
      }
      default:
        throw new Error("missing support");
    }
  },
  wH = (e) => {
    const {
        value: t,
        referenceDate: n,
        defaultCalendarMonth: r,
        disableFuture: o,
        disablePast: i,
        disableSwitchToMonthOnDayFocus: s = !1,
        maxDate: a,
        minDate: l,
        onMonthChange: u,
        reduceAnimations: c,
        shouldDisableDate: d,
        timezone: p,
      } = e,
      h = wt(),
      m = b.useRef(CH(!!c, s, h)).current,
      v = b.useMemo(() => {
        let T = null;
        return (
          n ? (T = n) : r && (T = h.startOfMonth(r)),
          Vo.getInitialReferenceValue({
            value: t,
            utils: h,
            timezone: p,
            props: e,
            referenceDate: T,
            granularity: Xr.day,
          })
        );
      }, []),
      [C, y] = b.useReducer(m, {
        isMonthSwitchingAnimating: !1,
        focusedDay: v,
        currentMonth: h.startOfMonth(v),
        slideDirection: "left",
      }),
      g = b.useCallback(
        (T) => {
          y(S({ type: "changeMonth" }, T)), u && u(T.newMonth);
        },
        [u]
      ),
      x = b.useCallback(
        (T) => {
          const P = T;
          h.isSameMonth(P, C.currentMonth) ||
            g({ newMonth: h.startOfMonth(P), direction: h.isAfterDay(P, C.currentMonth) ? "left" : "right" });
        },
        [C.currentMonth, g, h]
      ),
      w = xb({ shouldDisableDate: d, minDate: l, maxDate: a, disableFuture: o, disablePast: i, timezone: p }),
      k = b.useCallback(() => {
        y({ type: "finishMonthSwitchingAnimation" });
      }, []),
      M = Me((T, P) => {
        w(T) || y({ type: "changeFocusedDay", focusedDay: T, withoutMonthSwitchingAnimation: P });
      });
    return {
      referenceDate: v,
      calendarState: C,
      changeMonth: x,
      changeFocusedDay: M,
      isDateDisabled: w,
      onMonthSwitchingAnimationEnd: k,
      handleChangeMonth: g,
    };
  },
  SH = ["ownerState"],
  kH = ({
    clearable: e,
    fieldProps: t,
    InputProps: n,
    onClear: r,
    slots: o,
    slotProps: i,
    components: s,
    componentsProps: a,
  }) => {
    var l, u, c, d, p, h;
    const m = Oi(),
      v =
        (l = (u = o == null ? void 0 : o.clearButton) != null ? u : s == null ? void 0 : s.ClearButton) != null
          ? l
          : _i,
      C = qe({
        elementType: v,
        externalSlotProps: (c = i == null ? void 0 : i.clearButton) != null ? c : a == null ? void 0 : a.clearButton,
        ownerState: {},
        className: "clearButton",
        additionalProps: { title: m.fieldClearLabel },
      }),
      y = ee(C, SH),
      g = (d = (p = o == null ? void 0 : o.clearIcon) != null ? p : s == null ? void 0 : s.ClearIcon) != null ? d : fj,
      x = qe({
        elementType: g,
        externalSlotProps: (h = i == null ? void 0 : i.clearIcon) != null ? h : a == null ? void 0 : a.clearIcon,
        ownerState: {},
      }),
      w = S({}, n, {
        endAdornment: f.jsxs(b.Fragment, {
          children: [
            e &&
              f.jsx(Hf, {
                position: "end",
                sx: { marginRight: n != null && n.endAdornment ? -1 : -1.5 },
                children: f.jsx(v, S({}, y, { onClick: r, children: f.jsx(g, S({ fontSize: "small" }, x)) })),
              }),
            n == null ? void 0 : n.endAdornment,
          ],
        }),
      }),
      k = S({}, t, {
        sx: [
          {
            "& .clearButton": { opacity: 1 },
            "@media (pointer: fine)": {
              "& .clearButton": { opacity: 0 },
              "&:hover, &:focus-within": { ".clearButton": { opacity: 1 } },
            },
          },
          ...(Array.isArray(t.sx) ? t.sx : [t.sx]),
        ],
      });
    return { InputProps: w, fieldProps: k };
  },
  TH = ["components", "componentsProps", "slots", "slotProps", "InputProps", "inputProps"],
  MH = ["inputRef"],
  EH = ["ref", "onPaste", "onKeyDown", "inputMode", "readOnly", "clearable", "onClear"],
  Cb = b.forwardRef(function (t, n) {
    var r, o, i;
    const s = ke({ props: t, name: "MuiDateField" }),
      { components: a, componentsProps: l, slots: u, slotProps: c, InputProps: d, inputProps: p } = s,
      h = ee(s, TH),
      m = s,
      v = (r = (o = u == null ? void 0 : u.textField) != null ? o : a == null ? void 0 : a.TextField) != null ? r : T0,
      C = qe({
        elementType: v,
        externalSlotProps: (i = c == null ? void 0 : c.textField) != null ? i : l == null ? void 0 : l.textField,
        externalForwardedProps: h,
        ownerState: m,
      }),
      { inputRef: y } = C,
      g = ee(C, MH);
    (g.inputProps = S({}, p, g.inputProps)), (g.InputProps = S({}, d, g.InputProps));
    const x = gV({ props: g, inputRef: y }),
      { ref: w, onPaste: k, onKeyDown: M, inputMode: T, readOnly: P, clearable: A, onClear: D } = x,
      R = ee(x, EH),
      { InputProps: L, fieldProps: F } = kH({
        onClear: D,
        clearable: A,
        fieldProps: R,
        InputProps: R.InputProps,
        slots: u,
        slotProps: c,
        components: a,
        componentsProps: l,
      });
    return f.jsx(
      v,
      S({ ref: n }, F, {
        InputProps: S({}, L, { readOnly: P }),
        inputProps: S({}, R.inputProps, { inputMode: T, onPaste: k, onKeyDown: M, ref: w }),
      })
    );
  }),
  PH = (e) => Ae("MuiPickersFadeTransitionGroup", e);
Se("MuiPickersFadeTransitionGroup", ["root"]);
const AH = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"] }, PH, t);
  },
  _H = W(hc, { name: "MuiPickersFadeTransitionGroup", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "block",
    position: "relative",
  });
function wb(e) {
  const t = ke({ props: e, name: "MuiPickersFadeTransitionGroup" }),
    { children: n, className: r, reduceAnimations: o, transKey: i } = t,
    s = AH(t),
    a = Re();
  return o
    ? n
    : f.jsx(_H, {
        className: ue(s.root, r),
        children: f.jsx(
          Ii,
          {
            appear: !1,
            mountOnEnter: !0,
            unmountOnExit: !0,
            timeout: {
              appear: a.transitions.duration.enteringScreen,
              enter: a.transitions.duration.enteringScreen,
              exit: 0,
            },
            children: n,
          },
          i
        ),
      });
}
function DH(e) {
  return Ae("MuiPickersMonth", e);
}
const cd = Se("MuiPickersMonth", ["root", "monthButton", "disabled", "selected"]),
  RH = [
    "autoFocus",
    "children",
    "disabled",
    "selected",
    "value",
    "tabIndex",
    "onClick",
    "onKeyDown",
    "onFocus",
    "onBlur",
    "aria-current",
    "aria-label",
    "monthsPerRow",
  ],
  IH = (e) => {
    const { disabled: t, selected: n, classes: r } = e;
    return Ee({ root: ["root"], monthButton: ["monthButton", t && "disabled", n && "selected"] }, DH, r);
  },
  OH = W("div", { name: "MuiPickersMonth", slot: "Root", overridesResolver: (e, t) => [t.root] })(
    ({ ownerState: e }) => ({
      flexBasis: e.monthsPerRow === 3 ? "33.3%" : "25%",
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
    })
  ),
  FH = W("button", {
    name: "MuiPickersMonth",
    slot: "MonthButton",
    overridesResolver: (e, t) => [
      t.monthButton,
      { [`&.${cd.disabled}`]: t.disabled },
      { [`&.${cd.selected}`]: t.selected },
    ],
  })(({ theme: e }) =>
    S({ color: "unset", backgroundColor: "transparent", border: 0, outline: 0 }, e.typography.subtitle1, {
      margin: "8px 0",
      height: 36,
      width: 72,
      borderRadius: 18,
      cursor: "pointer",
      "&:focus": {
        backgroundColor: e.vars
          ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`
          : fs(e.palette.action.active, e.palette.action.hoverOpacity),
      },
      "&:hover": {
        backgroundColor: e.vars
          ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`
          : fs(e.palette.action.active, e.palette.action.hoverOpacity),
      },
      "&:disabled": { cursor: "auto", pointerEvents: "none" },
      [`&.${cd.disabled}`]: { color: (e.vars || e).palette.text.secondary },
      [`&.${cd.selected}`]: {
        color: (e.vars || e).palette.primary.contrastText,
        backgroundColor: (e.vars || e).palette.primary.main,
        "&:focus, &:hover": { backgroundColor: (e.vars || e).palette.primary.dark },
      },
    })
  ),
  LH = b.memo(function (t) {
    const n = ke({ props: t, name: "MuiPickersMonth" }),
      {
        autoFocus: r,
        children: o,
        disabled: i,
        selected: s,
        value: a,
        tabIndex: l,
        onClick: u,
        onKeyDown: c,
        onFocus: d,
        onBlur: p,
        "aria-current": h,
        "aria-label": m,
      } = n,
      v = ee(n, RH),
      C = b.useRef(null),
      y = IH(n);
    return (
      Kt(() => {
        if (r) {
          var g;
          (g = C.current) == null || g.focus();
        }
      }, [r]),
      f.jsx(
        OH,
        S({ className: y.root, ownerState: n }, v, {
          children: f.jsx(FH, {
            ref: C,
            disabled: i,
            type: "button",
            role: "radio",
            tabIndex: i ? -1 : l,
            "aria-current": h,
            "aria-checked": s,
            "aria-label": m,
            onClick: (g) => u(g, a),
            onKeyDown: (g) => c(g, a),
            onFocus: (g) => d(g, a),
            onBlur: (g) => p(g, a),
            className: y.monthButton,
            ownerState: n,
            children: o,
          }),
        })
      )
    );
  });
function NH(e) {
  return Ae("MuiMonthCalendar", e);
}
Se("MuiMonthCalendar", ["root"]);
const $H = [
    "className",
    "value",
    "defaultValue",
    "referenceDate",
    "disabled",
    "disableFuture",
    "disablePast",
    "maxDate",
    "minDate",
    "onChange",
    "shouldDisableMonth",
    "readOnly",
    "disableHighlightToday",
    "autoFocus",
    "onMonthFocus",
    "hasFocus",
    "onFocusedViewChange",
    "monthsPerRow",
    "timezone",
    "gridLabelId",
  ],
  BH = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"] }, NH, t);
  };
function jH(e, t) {
  const n = wt(),
    r = wc(),
    o = ke({ props: e, name: t });
  return S({ disableFuture: !1, disablePast: !1 }, o, {
    minDate: vr(n, o.minDate, r.minDate),
    maxDate: vr(n, o.maxDate, r.maxDate),
  });
}
const VH = W("div", { name: "MuiMonthCalendar", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "flex",
    flexWrap: "wrap",
    alignContent: "stretch",
    padding: "0 4px",
    width: P0,
    boxSizing: "border-box",
  }),
  HH = b.forwardRef(function (t, n) {
    const r = jH(t, "MuiMonthCalendar"),
      {
        className: o,
        value: i,
        defaultValue: s,
        referenceDate: a,
        disabled: l,
        disableFuture: u,
        disablePast: c,
        maxDate: d,
        minDate: p,
        onChange: h,
        shouldDisableMonth: m,
        readOnly: v,
        disableHighlightToday: C,
        autoFocus: y = !1,
        onMonthFocus: g,
        hasFocus: x,
        onFocusedViewChange: w,
        monthsPerRow: k = 3,
        timezone: M,
        gridLabelId: T,
      } = r,
      P = ee(r, $H),
      {
        value: A,
        handleValueChange: D,
        timezone: R,
      } = h5({ name: "MonthCalendar", timezone: M, value: i, defaultValue: s, onChange: h, valueManager: Vo }),
      L = M0(R),
      F = tl(),
      O = wt(),
      E = b.useMemo(
        () =>
          Vo.getInitialReferenceValue({
            value: A,
            utils: O,
            props: r,
            timezone: R,
            referenceDate: a,
            granularity: Xr.month,
          }),
        []
      ),
      B = r,
      j = BH(B),
      _ = b.useMemo(() => O.getMonth(L), [O, L]),
      I = b.useMemo(() => (A != null ? O.getMonth(A) : C ? null : O.getMonth(E)), [A, O, C, E]),
      [$, J] = b.useState(() => I || _),
      [oe, pe] = Sn({ name: "MonthCalendar", state: "hasFocus", controlled: x, default: y ?? !1 }),
      z = Me((ie) => {
        pe(ie), w && w(ie);
      }),
      ae = b.useCallback(
        (ie) => {
          const ne = O.startOfMonth(c && O.isAfter(L, p) ? L : p),
            V = O.startOfMonth(u && O.isBefore(L, d) ? L : d),
            K = O.startOfMonth(ie);
          return O.isBefore(K, ne) || O.isAfter(K, V) ? !0 : m ? m(K) : !1;
        },
        [u, c, d, p, L, m, O]
      ),
      me = Me((ie, ne) => {
        if (v) return;
        const V = O.setMonth(A ?? E, ne);
        D(V);
      }),
      X = Me((ie) => {
        ae(O.setMonth(A ?? E, ie)) || (J(ie), z(!0), g && g(ie));
      });
    b.useEffect(() => {
      J((ie) => (I !== null && ie !== I ? I : ie));
    }, [I]);
    const ge = Me((ie, ne) => {
        switch (ie.key) {
          case "ArrowUp":
            X((12 + ne - 3) % 12), ie.preventDefault();
            break;
          case "ArrowDown":
            X((12 + ne + 3) % 12), ie.preventDefault();
            break;
          case "ArrowLeft":
            X((12 + ne + (F.direction === "ltr" ? -1 : 1)) % 12), ie.preventDefault();
            break;
          case "ArrowRight":
            X((12 + ne + (F.direction === "ltr" ? 1 : -1)) % 12), ie.preventDefault();
            break;
        }
      }),
      Pe = Me((ie, ne) => {
        X(ne);
      }),
      _e = Me((ie, ne) => {
        $ === ne && z(!1);
      });
    return f.jsx(
      VH,
      S({ ref: n, className: ue(j.root, o), ownerState: B, role: "radiogroup", "aria-labelledby": T }, P, {
        children: d5(O, A ?? E).map((ie) => {
          const ne = O.getMonth(ie),
            V = O.format(ie, "monthShort"),
            K = O.format(ie, "month"),
            Z = ne === I,
            ye = l || ae(ie);
          return f.jsx(
            LH,
            {
              selected: Z,
              value: ne,
              onClick: me,
              onKeyDown: ge,
              autoFocus: oe && ne === $,
              disabled: ye,
              tabIndex: ne === $ ? 0 : -1,
              onFocus: Pe,
              onBlur: _e,
              "aria-current": _ === ne ? "date" : void 0,
              "aria-label": K,
              monthsPerRow: k,
              children: V,
            },
            V
          );
        }),
      })
    );
  });
function zH(e) {
  return Ae("MuiPickersYear", e);
}
const dd = Se("MuiPickersYear", ["root", "yearButton", "selected", "disabled"]),
  WH = [
    "autoFocus",
    "className",
    "children",
    "disabled",
    "selected",
    "value",
    "tabIndex",
    "onClick",
    "onKeyDown",
    "onFocus",
    "onBlur",
    "aria-current",
    "yearsPerRow",
  ],
  GH = (e) => {
    const { disabled: t, selected: n, classes: r } = e;
    return Ee({ root: ["root"], yearButton: ["yearButton", t && "disabled", n && "selected"] }, zH, r);
  },
  UH = W("div", { name: "MuiPickersYear", slot: "Root", overridesResolver: (e, t) => [t.root] })(
    ({ ownerState: e }) => ({
      flexBasis: e.yearsPerRow === 3 ? "33.3%" : "25%",
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
    })
  ),
  YH = W("button", {
    name: "MuiPickersYear",
    slot: "YearButton",
    overridesResolver: (e, t) => [
      t.yearButton,
      { [`&.${dd.disabled}`]: t.disabled },
      { [`&.${dd.selected}`]: t.selected },
    ],
  })(({ theme: e }) =>
    S({ color: "unset", backgroundColor: "transparent", border: 0, outline: 0 }, e.typography.subtitle1, {
      margin: "6px 0",
      height: 36,
      width: 72,
      borderRadius: 18,
      cursor: "pointer",
      "&:focus": {
        backgroundColor: e.vars
          ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`
          : fs(e.palette.action.active, e.palette.action.focusOpacity),
      },
      "&:hover": {
        backgroundColor: e.vars
          ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`
          : fs(e.palette.action.active, e.palette.action.hoverOpacity),
      },
      "&:disabled": { cursor: "auto", pointerEvents: "none" },
      [`&.${dd.disabled}`]: { color: (e.vars || e).palette.text.secondary },
      [`&.${dd.selected}`]: {
        color: (e.vars || e).palette.primary.contrastText,
        backgroundColor: (e.vars || e).palette.primary.main,
        "&:focus, &:hover": { backgroundColor: (e.vars || e).palette.primary.dark },
      },
    })
  ),
  KH = b.memo(function (t) {
    const n = ke({ props: t, name: "MuiPickersYear" }),
      {
        autoFocus: r,
        className: o,
        children: i,
        disabled: s,
        selected: a,
        value: l,
        tabIndex: u,
        onClick: c,
        onKeyDown: d,
        onFocus: p,
        onBlur: h,
        "aria-current": m,
      } = n,
      v = ee(n, WH),
      C = b.useRef(null),
      y = GH(n);
    return (
      b.useEffect(() => {
        r && C.current.focus();
      }, [r]),
      f.jsx(
        UH,
        S({ className: ue(y.root, o), ownerState: n }, v, {
          children: f.jsx(YH, {
            ref: C,
            disabled: s,
            type: "button",
            role: "radio",
            tabIndex: s ? -1 : u,
            "aria-current": m,
            "aria-checked": a,
            onClick: (g) => c(g, l),
            onKeyDown: (g) => d(g, l),
            onFocus: (g) => p(g, l),
            onBlur: (g) => h(g, l),
            className: y.yearButton,
            ownerState: n,
            children: i,
          }),
        })
      )
    );
  });
function XH(e) {
  return Ae("MuiYearCalendar", e);
}
Se("MuiYearCalendar", ["root"]);
const qH = [
    "autoFocus",
    "className",
    "value",
    "defaultValue",
    "referenceDate",
    "disabled",
    "disableFuture",
    "disablePast",
    "maxDate",
    "minDate",
    "onChange",
    "readOnly",
    "shouldDisableYear",
    "disableHighlightToday",
    "onYearFocus",
    "hasFocus",
    "onFocusedViewChange",
    "yearsPerRow",
    "timezone",
    "gridLabelId",
  ],
  ZH = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"] }, XH, t);
  };
function JH(e, t) {
  var n;
  const r = wt(),
    o = wc(),
    i = ke({ props: e, name: t });
  return S({ disablePast: !1, disableFuture: !1 }, i, {
    yearsPerRow: (n = i.yearsPerRow) != null ? n : 3,
    minDate: vr(r, i.minDate, o.minDate),
    maxDate: vr(r, i.maxDate, o.maxDate),
  });
}
const QH = W("div", { name: "MuiYearCalendar", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "flex",
    flexDirection: "row",
    flexWrap: "wrap",
    overflowY: "auto",
    height: "100%",
    padding: "0 4px",
    width: P0,
    maxHeight: Ej,
    boxSizing: "border-box",
    position: "relative",
  }),
  ez = b.forwardRef(function (t, n) {
    const r = JH(t, "MuiYearCalendar"),
      {
        autoFocus: o,
        className: i,
        value: s,
        defaultValue: a,
        referenceDate: l,
        disabled: u,
        disableFuture: c,
        disablePast: d,
        maxDate: p,
        minDate: h,
        onChange: m,
        readOnly: v,
        shouldDisableYear: C,
        disableHighlightToday: y,
        onYearFocus: g,
        hasFocus: x,
        onFocusedViewChange: w,
        yearsPerRow: k,
        timezone: M,
        gridLabelId: T,
      } = r,
      P = ee(r, qH),
      {
        value: A,
        handleValueChange: D,
        timezone: R,
      } = h5({ name: "YearCalendar", timezone: M, value: s, defaultValue: a, onChange: m, valueManager: Vo }),
      L = M0(R),
      F = tl(),
      O = wt(),
      E = b.useMemo(
        () =>
          Vo.getInitialReferenceValue({
            value: A,
            utils: O,
            props: r,
            timezone: R,
            referenceDate: l,
            granularity: Xr.year,
          }),
        []
      ),
      B = r,
      j = ZH(B),
      _ = b.useMemo(() => O.getYear(L), [O, L]),
      I = b.useMemo(() => (A != null ? O.getYear(A) : y ? null : O.getYear(E)), [A, O, y, E]),
      [$, J] = b.useState(() => I || _),
      [oe, pe] = Sn({ name: "YearCalendar", state: "hasFocus", controlled: x, default: o ?? !1 }),
      z = Me((V) => {
        pe(V), w && w(V);
      }),
      ae = b.useCallback(
        (V) => {
          if (
            (d && O.isBeforeYear(V, L)) ||
            (c && O.isAfterYear(V, L)) ||
            (h && O.isBeforeYear(V, h)) ||
            (p && O.isAfterYear(V, p))
          )
            return !0;
          if (!C) return !1;
          const K = O.startOfYear(V);
          return C(K);
        },
        [c, d, p, h, L, C, O]
      ),
      me = Me((V, K) => {
        if (v) return;
        const Z = O.setYear(A ?? E, K);
        D(Z);
      }),
      X = Me((V) => {
        ae(O.setYear(A ?? E, V)) || (J(V), z(!0), g == null || g(V));
      });
    b.useEffect(() => {
      J((V) => (I !== null && V !== I ? I : V));
    }, [I]);
    const ge = Me((V, K) => {
        switch (V.key) {
          case "ArrowUp":
            X(K - k), V.preventDefault();
            break;
          case "ArrowDown":
            X(K + k), V.preventDefault();
            break;
          case "ArrowLeft":
            X(K + (F.direction === "ltr" ? -1 : 1)), V.preventDefault();
            break;
          case "ArrowRight":
            X(K + (F.direction === "ltr" ? 1 : -1)), V.preventDefault();
            break;
        }
      }),
      Pe = Me((V, K) => {
        X(K);
      }),
      _e = Me((V, K) => {
        $ === K && z(!1);
      }),
      ie = b.useRef(null),
      ne = tt(n, ie);
    return (
      b.useEffect(() => {
        if (o || ie.current === null) return;
        const V = ie.current.querySelector('[tabindex="0"]');
        if (!V) return;
        const K = V.offsetHeight,
          Z = V.offsetTop,
          ye = ie.current.clientHeight,
          Fe = ie.current.scrollTop,
          le = Z + K;
        K > ye || Z < Fe || (ie.current.scrollTop = le - ye / 2 - K / 2);
      }, [o]),
      f.jsx(
        QH,
        S({ ref: ne, className: ue(j.root, i), ownerState: B, role: "radiogroup", "aria-labelledby": T }, P, {
          children: O.getYearRange(h, p).map((V) => {
            const K = O.getYear(V),
              Z = K === I,
              ye = u || ae(V);
            return f.jsx(
              KH,
              {
                selected: Z,
                value: K,
                onClick: me,
                onKeyDown: ge,
                autoFocus: oe && K === $,
                disabled: ye,
                tabIndex: K === $ ? 0 : -1,
                onFocus: Pe,
                onBlur: _e,
                "aria-current": _ === K ? "date" : void 0,
                yearsPerRow: k,
                children: O.format(V, "year"),
              },
              O.format(V, "year")
            );
          }),
        })
      )
    );
  }),
  tz = (e) => Ae("MuiPickersCalendarHeader", e),
  nz = Se("MuiPickersCalendarHeader", ["root", "labelContainer", "label", "switchViewButton", "switchViewIcon"]),
  rz = [
    "slots",
    "slotProps",
    "components",
    "componentsProps",
    "currentMonth",
    "disabled",
    "disableFuture",
    "disablePast",
    "maxDate",
    "minDate",
    "onMonthChange",
    "onViewChange",
    "view",
    "reduceAnimations",
    "views",
    "labelId",
    "className",
    "timezone",
  ],
  oz = ["ownerState"],
  iz = (e) => {
    const { classes: t } = e;
    return Ee(
      {
        root: ["root"],
        labelContainer: ["labelContainer"],
        label: ["label"],
        switchViewButton: ["switchViewButton"],
        switchViewIcon: ["switchViewIcon"],
      },
      tz,
      t
    );
  },
  sz = W("div", { name: "MuiPickersCalendarHeader", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "flex",
    alignItems: "center",
    marginTop: 16,
    marginBottom: 8,
    paddingLeft: 24,
    paddingRight: 12,
    maxHeight: 30,
    minHeight: 30,
  }),
  az = W("div", {
    name: "MuiPickersCalendarHeader",
    slot: "LabelContainer",
    overridesResolver: (e, t) => t.labelContainer,
  })(({ theme: e }) =>
    S(
      { display: "flex", overflow: "hidden", alignItems: "center", cursor: "pointer", marginRight: "auto" },
      e.typography.body1,
      { fontWeight: e.typography.fontWeightMedium }
    )
  ),
  lz = W("div", { name: "MuiPickersCalendarHeader", slot: "Label", overridesResolver: (e, t) => t.label })({
    marginRight: 6,
  }),
  uz = W(_i, {
    name: "MuiPickersCalendarHeader",
    slot: "SwitchViewButton",
    overridesResolver: (e, t) => t.switchViewButton,
  })(({ ownerState: e }) =>
    S({ marginRight: "auto" }, e.view === "year" && { [`.${nz.switchViewIcon}`]: { transform: "rotate(180deg)" } })
  ),
  cz = W(lj, {
    name: "MuiPickersCalendarHeader",
    slot: "SwitchViewIcon",
    overridesResolver: (e, t) => t.switchViewIcon,
  })(({ theme: e }) => ({
    willChange: "transform",
    transition: e.transitions.create("transform"),
    transform: "rotate(0deg)",
  })),
  dz = b.forwardRef(function (t, n) {
    var r, o, i, s;
    const a = Oi(),
      l = wt(),
      u = ke({ props: t, name: "MuiPickersCalendarHeader" }),
      {
        slots: c,
        slotProps: d,
        components: p,
        currentMonth: h,
        disabled: m,
        disableFuture: v,
        disablePast: C,
        maxDate: y,
        minDate: g,
        onMonthChange: x,
        onViewChange: w,
        view: k,
        reduceAnimations: M,
        views: T,
        labelId: P,
        className: A,
        timezone: D,
      } = u,
      R = ee(u, rz),
      L = u,
      F = iz(u),
      O =
        (r = (o = c == null ? void 0 : c.switchViewButton) != null ? o : p == null ? void 0 : p.SwitchViewButton) !=
        null
          ? r
          : uz,
      E = qe({
        elementType: O,
        externalSlotProps: d == null ? void 0 : d.switchViewButton,
        additionalProps: { size: "small", "aria-label": a.calendarViewSwitchingButtonAriaLabel(k) },
        ownerState: L,
        className: F.switchViewButton,
      }),
      B =
        (i = (s = c == null ? void 0 : c.switchViewIcon) != null ? s : p == null ? void 0 : p.SwitchViewIcon) != null
          ? i
          : cz,
      j = qe({
        elementType: B,
        externalSlotProps: d == null ? void 0 : d.switchViewIcon,
        ownerState: void 0,
        className: F.switchViewIcon,
      }),
      _ = ee(j, oz),
      I = () => x(l.addMonths(h, 1), "left"),
      $ = () => x(l.addMonths(h, -1), "right"),
      J = Tj(h, { disableFuture: v, maxDate: y, timezone: D }),
      oe = Mj(h, { disablePast: C, minDate: g, timezone: D }),
      pe = () => {
        if (!(T.length === 1 || !w || m))
          if (T.length === 2) w(T.find((z) => z !== k) || T[0]);
          else {
            const z = T.indexOf(k) !== 0 ? 0 : 1;
            w(T[z]);
          }
      };
    return T.length === 1 && T[0] === "year"
      ? null
      : f.jsxs(
          sz,
          S({}, R, {
            ownerState: L,
            className: ue(A, F.root),
            ref: n,
            children: [
              f.jsxs(az, {
                role: "presentation",
                onClick: pe,
                ownerState: L,
                "aria-live": "polite",
                className: F.labelContainer,
                children: [
                  f.jsx(wb, {
                    reduceAnimations: M,
                    transKey: l.format(h, "monthAndYear"),
                    children: f.jsx(lz, {
                      id: P,
                      ownerState: L,
                      className: F.label,
                      children: l.format(h, "monthAndYear"),
                    }),
                  }),
                  T.length > 1 && !m && f.jsx(O, S({}, E, { children: f.jsx(B, S({}, _)) })),
                ],
              }),
              f.jsx(Ii, {
                in: k === "day",
                children: f.jsx(bj, {
                  slots: c,
                  slotProps: d,
                  onGoToPrevious: $,
                  isPreviousDisabled: oe,
                  previousLabel: a.previousMonth,
                  onGoToNext: I,
                  isNextDisabled: J,
                  nextLabel: a.nextMonth,
                }),
              }),
            ],
          })
        );
  }),
  fz = (e) => Ae("MuiDateCalendar", e);
Se("MuiDateCalendar", ["root", "viewTransitionContainer"]);
const pz = [
    "autoFocus",
    "onViewChange",
    "value",
    "defaultValue",
    "referenceDate",
    "disableFuture",
    "disablePast",
    "defaultCalendarMonth",
    "onChange",
    "onYearChange",
    "onMonthChange",
    "reduceAnimations",
    "shouldDisableDate",
    "shouldDisableMonth",
    "shouldDisableYear",
    "view",
    "views",
    "openTo",
    "className",
    "disabled",
    "readOnly",
    "minDate",
    "maxDate",
    "disableHighlightToday",
    "focusedView",
    "onFocusedViewChange",
    "showDaysOutsideCurrentMonth",
    "fixedWeekNumber",
    "dayOfWeekFormatter",
    "components",
    "componentsProps",
    "slots",
    "slotProps",
    "loading",
    "renderLoading",
    "displayWeekNumber",
    "yearsPerRow",
    "monthsPerRow",
    "timezone",
  ],
  hz = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], viewTransitionContainer: ["viewTransitionContainer"] }, fz, t);
  };
function mz(e, t) {
  var n, r, o, i, s, a, l;
  const u = wt(),
    c = wc(),
    d = hb(),
    p = ke({ props: e, name: t });
  return S({}, p, {
    loading: (n = p.loading) != null ? n : !1,
    disablePast: (r = p.disablePast) != null ? r : !1,
    disableFuture: (o = p.disableFuture) != null ? o : !1,
    openTo: (i = p.openTo) != null ? i : "day",
    views: (s = p.views) != null ? s : ["year", "day"],
    reduceAnimations: (a = p.reduceAnimations) != null ? a : d,
    renderLoading: (l = p.renderLoading) != null ? l : () => f.jsx("span", { children: "..." }),
    minDate: vr(u, p.minDate, c.minDate),
    maxDate: vr(u, p.maxDate, c.maxDate),
  });
}
const gz = W(Pj, { name: "MuiDateCalendar", slot: "Root", overridesResolver: (e, t) => t.root })({
    display: "flex",
    flexDirection: "column",
    height: c5,
  }),
  yz = W(wb, {
    name: "MuiDateCalendar",
    slot: "ViewTransitionContainer",
    overridesResolver: (e, t) => t.viewTransitionContainer,
  })({}),
  qm = b.forwardRef(function (t, n) {
    var r, o, i;
    const s = wt(),
      a = po(),
      l = mz(t, "MuiDateCalendar"),
      {
        autoFocus: u,
        onViewChange: c,
        value: d,
        defaultValue: p,
        referenceDate: h,
        disableFuture: m,
        disablePast: v,
        defaultCalendarMonth: C,
        onChange: y,
        onYearChange: g,
        onMonthChange: x,
        reduceAnimations: w,
        shouldDisableDate: k,
        shouldDisableMonth: M,
        shouldDisableYear: T,
        view: P,
        views: A,
        openTo: D,
        className: R,
        disabled: L,
        readOnly: F,
        minDate: O,
        maxDate: E,
        disableHighlightToday: B,
        focusedView: j,
        onFocusedViewChange: _,
        showDaysOutsideCurrentMonth: I,
        fixedWeekNumber: $,
        dayOfWeekFormatter: J,
        components: oe,
        componentsProps: pe,
        slots: z,
        slotProps: ae,
        loading: me,
        renderLoading: X,
        displayWeekNumber: ge,
        yearsPerRow: Pe,
        monthsPerRow: _e,
        timezone: ie,
      } = l,
      ne = ee(l, pz),
      {
        value: V,
        handleValueChange: K,
        timezone: Z,
      } = h5({ name: "DateCalendar", timezone: ie, value: d, defaultValue: p, onChange: y, valueManager: Vo }),
      {
        view: ye,
        setView: Fe,
        focusedView: le,
        setFocusedView: he,
        goToNextView: G,
        setValueAndGoToNextView: te,
      } = Q9({
        view: P,
        views: A,
        openTo: D,
        onChange: K,
        onViewChange: c,
        autoFocus: u,
        focusedView: j,
        onFocusedViewChange: _,
      }),
      {
        referenceDate: we,
        calendarState: Le,
        changeFocusedDay: Te,
        changeMonth: je,
        handleChangeMonth: ut,
        isDateDisabled: Xe,
        onMonthSwitchingAnimationEnd: Y,
      } = wH({
        value: V,
        defaultCalendarMonth: C,
        referenceDate: h,
        reduceAnimations: w,
        onMonthChange: x,
        minDate: O,
        maxDate: E,
        shouldDisableDate: k,
        disablePast: v,
        disableFuture: m,
        timezone: Z,
      }),
      U = (L && V) || O,
      ve = (L && V) || E,
      He = `${a}-grid-label`,
      Ve = le !== null,
      se =
        (r = (o = z == null ? void 0 : z.calendarHeader) != null ? o : oe == null ? void 0 : oe.CalendarHeader) != null
          ? r
          : dz,
      Ge = qe({
        elementType: se,
        externalSlotProps:
          (i = ae == null ? void 0 : ae.calendarHeader) != null ? i : pe == null ? void 0 : pe.calendarHeader,
        additionalProps: {
          views: A,
          view: ye,
          currentMonth: Le.currentMonth,
          onViewChange: Fe,
          onMonthChange: (xt, Mn) => ut({ newMonth: xt, direction: Mn }),
          minDate: U,
          maxDate: ve,
          disabled: L,
          disablePast: v,
          disableFuture: m,
          reduceAnimations: w,
          timezone: Z,
          labelId: He,
          slots: z,
          slotProps: ae,
        },
        ownerState: l,
      }),
      ct = Me((xt) => {
        const Mn = s.startOfMonth(xt),
          Li = s.endOfMonth(xt),
          Jn = Xe(xt)
            ? du({
                utils: s,
                date: xt,
                minDate: s.isBefore(O, Mn) ? Mn : O,
                maxDate: s.isAfter(E, Li) ? Li : E,
                disablePast: v,
                disableFuture: m,
                isDateDisabled: Xe,
                timezone: Z,
              })
            : xt;
        Jn ? (te(Jn, "finish"), x == null || x(Mn)) : (G(), je(Mn)), Te(Jn, !0);
      }),
      Ue = Me((xt) => {
        const Mn = s.startOfYear(xt),
          Li = s.endOfYear(xt),
          Jn = Xe(xt)
            ? du({
                utils: s,
                date: xt,
                minDate: s.isBefore(O, Mn) ? Mn : O,
                maxDate: s.isAfter(E, Li) ? Li : E,
                disablePast: v,
                disableFuture: m,
                isDateDisabled: Xe,
                timezone: Z,
              })
            : xt;
        Jn ? (te(Jn, "finish"), g == null || g(Jn)) : (G(), je(Mn)), Te(Jn, !0);
      }),
      rn = Me((xt) => K(xt && Wf(s, xt, V ?? we), "finish", ye));
    b.useEffect(() => {
      V != null && s.isValid(V) && je(V);
    }, [V]);
    const zr = l,
      dl = hz(zr),
      Ps = { disablePast: v, disableFuture: m, maxDate: E, minDate: O },
      As = { disableHighlightToday: B, readOnly: F, disabled: L, timezone: Z, gridLabelId: He },
      Fi = b.useRef(ye);
    b.useEffect(() => {
      Fi.current !== ye && (le === Fi.current && he(ye, !0), (Fi.current = ye));
    }, [le, he, ye]);
    const fl = b.useMemo(() => [V], [V]);
    return f.jsxs(
      gz,
      S({ ref: n, className: ue(dl.root, R), ownerState: zr }, ne, {
        children: [
          f.jsx(se, S({}, Ge)),
          f.jsx(yz, {
            reduceAnimations: w,
            className: dl.viewTransitionContainer,
            transKey: ye,
            ownerState: zr,
            children: f.jsxs("div", {
              children: [
                ye === "year" &&
                  f.jsx(
                    ez,
                    S({}, Ps, As, {
                      value: V,
                      onChange: Ue,
                      shouldDisableYear: T,
                      hasFocus: Ve,
                      onFocusedViewChange: (xt) => he("year", xt),
                      yearsPerRow: Pe,
                      referenceDate: we,
                    })
                  ),
                ye === "month" &&
                  f.jsx(
                    HH,
                    S({}, Ps, As, {
                      hasFocus: Ve,
                      className: R,
                      value: V,
                      onChange: ct,
                      shouldDisableMonth: M,
                      onFocusedViewChange: (xt) => he("month", xt),
                      monthsPerRow: _e,
                      referenceDate: we,
                    })
                  ),
                ye === "day" &&
                  f.jsx(
                    bH,
                    S({}, Le, Ps, As, {
                      onMonthSwitchingAnimationEnd: Y,
                      onFocusedDayChange: Te,
                      reduceAnimations: w,
                      selectedDays: fl,
                      onSelectedDaysChange: rn,
                      shouldDisableDate: k,
                      shouldDisableMonth: M,
                      shouldDisableYear: T,
                      hasFocus: Ve,
                      onFocusedViewChange: (xt) => he("day", xt),
                      showDaysOutsideCurrentMonth: I,
                      fixedWeekNumber: $,
                      dayOfWeekFormatter: J,
                      displayWeekNumber: ge,
                      components: oe,
                      componentsProps: pe,
                      slots: z,
                      slotProps: ae,
                      loading: me,
                      renderLoading: X,
                    })
                  ),
              ],
            }),
          }),
        ],
      })
    );
  });
function vz(e) {
  return Ae("MuiDatePickerToolbar", e);
}
Se("MuiDatePickerToolbar", ["root", "title"]);
const xz = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views", "className"],
  bz = (e) => {
    const { classes: t } = e;
    return Ee({ root: ["root"], title: ["title"] }, vz, t);
  },
  Cz = W(FV, { name: "MuiDatePickerToolbar", slot: "Root", overridesResolver: (e, t) => t.root })({}),
  wz = W(xe, { name: "MuiDatePickerToolbar", slot: "Title", overridesResolver: (e, t) => t.title })(
    ({ ownerState: e }) => S({}, e.isLandscape && { margin: "auto 16px auto auto" })
  ),
  Sz = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiDatePickerToolbar" }),
      { value: o, isLandscape: i, toolbarFormat: s, toolbarPlaceholder: a = "––", views: l, className: u } = r,
      c = ee(r, xz),
      d = wt(),
      p = Oi(),
      h = bz(r),
      m = b.useMemo(() => {
        if (!o) return a;
        const C = f5(d, { format: s, views: l }, !0);
        return d.formatByString(o, C);
      }, [o, s, a, d, l]),
      v = r;
    return f.jsx(
      Cz,
      S({ ref: n, toolbarTitle: p.datePickerToolbarTitle, isLandscape: i, className: ue(h.root, u) }, c, {
        children: f.jsx(wz, {
          variant: "h4",
          align: i ? "left" : "center",
          ownerState: v,
          className: h.title,
          children: m,
        }),
      })
    );
  });
function Sb(e, t) {
  var n, r, o, i;
  const s = wt(),
    a = wc(),
    l = ke({ props: e, name: t }),
    u = b.useMemo(() => {
      var d;
      return ((d = l.localeText) == null ? void 0 : d.toolbarTitle) == null
        ? l.localeText
        : S({}, l.localeText, { datePickerToolbarTitle: l.localeText.toolbarTitle });
    }, [l.localeText]),
    c = (n = l.slots) != null ? n : lb(l.components);
  return S(
    {},
    l,
    { localeText: u },
    Cj({ views: l.views, openTo: l.openTo, defaultViews: ["year", "day"], defaultOpenTo: "day" }),
    {
      disableFuture: (r = l.disableFuture) != null ? r : !1,
      disablePast: (o = l.disablePast) != null ? o : !1,
      minDate: vr(s, l.minDate, a.minDate),
      maxDate: vr(s, l.maxDate, a.maxDate),
      slots: S({ toolbar: Sz }, c),
      slotProps: (i = l.slotProps) != null ? i : l.componentsProps,
    }
  );
}
const kz = ["props", "getOpenDialogAriaText"],
  Tz = ["ownerState"],
  Mz = ["ownerState"],
  Ez = (e) => {
    var t, n, r, o, i;
    let { props: s, getOpenDialogAriaText: a } = e,
      l = ee(e, kz);
    const {
        slots: u,
        slotProps: c,
        className: d,
        sx: p,
        format: h,
        formatDensity: m,
        timezone: v,
        name: C,
        label: y,
        inputRef: g,
        readOnly: x,
        disabled: w,
        autoFocus: k,
        localeText: M,
        reduceAnimations: T,
      } = s,
      P = wt(),
      A = b.useRef(null),
      D = b.useRef(null),
      R = po(),
      L = (t = c == null || (n = c.toolbar) == null ? void 0 : n.hidden) != null ? t : !1,
      {
        open: F,
        actions: O,
        hasUIView: E,
        layoutProps: B,
        renderCurrentView: j,
        shouldRestoreFocus: _,
        fieldProps: I,
      } = mb(
        S({}, l, { props: s, inputRef: A, autoFocusView: !0, additionalViewProps: {}, wrapperVariant: "desktop" })
      ),
      $ = (r = u.inputAdornment) != null ? r : Hf,
      J = qe({
        elementType: $,
        externalSlotProps: c == null ? void 0 : c.inputAdornment,
        additionalProps: { position: "end" },
        ownerState: s,
      }),
      oe = ee(J, Tz),
      pe = (o = u.openPickerButton) != null ? o : _i,
      z = qe({
        elementType: pe,
        externalSlotProps: c == null ? void 0 : c.openPickerButton,
        additionalProps: {
          disabled: w || x,
          onClick: F ? O.onClose : O.onOpen,
          "aria-label": a(I.value, P),
          edge: oe.position,
        },
        ownerState: s,
      }),
      ae = ee(z, Mz),
      me = u.openPickerIcon,
      X = u.field,
      ge = qe({
        elementType: X,
        externalSlotProps: c == null ? void 0 : c.field,
        additionalProps: S({}, I, L && { id: R }, {
          readOnly: x,
          disabled: w,
          className: d,
          sx: p,
          format: h,
          formatDensity: m,
          timezone: v,
          label: y,
          name: C,
          autoFocus: k && !s.open,
          focused: F ? !0 : void 0,
        }),
        ownerState: s,
      });
    E &&
      (ge.InputProps = S({}, ge.InputProps, {
        ref: D,
        [`${oe.position}Adornment`]: f.jsx(
          $,
          S({}, oe, {
            children: f.jsx(pe, S({}, ae, { children: f.jsx(me, S({}, c == null ? void 0 : c.openPickerIcon)) })),
          })
        ),
      }));
    const Pe = S({ textField: u.textField, clearIcon: u.clearIcon, clearButton: u.clearButton }, ge.slots),
      _e = (i = u.layout) != null ? i : vb,
      ie = tt(A, ge.inputRef, g);
    let ne = R;
    L && (y ? (ne = `${R}-label`) : (ne = void 0));
    const V = S({}, c, {
      toolbar: S({}, c == null ? void 0 : c.toolbar, { titleId: R }),
      popper: S({ "aria-labelledby": ne }, c == null ? void 0 : c.popper),
    });
    return {
      renderPicker: () =>
        f.jsxs(u5, {
          localeText: M,
          children: [
            f.jsx(X, S({}, ge, { slots: Pe, slotProps: V, inputRef: ie })),
            f.jsx(
              _V,
              S({ role: "dialog", placement: "bottom-start", anchorEl: D.current }, O, {
                open: F,
                slots: u,
                slotProps: V,
                shouldRestoreFocus: _,
                reduceAnimations: T,
                children: f.jsx(_e, S({}, B, V == null ? void 0 : V.layout, { slots: u, slotProps: V, children: j() })),
              })
            ),
          ],
        }),
    };
  },
  ba = ({
    view: e,
    onViewChange: t,
    views: n,
    focusedView: r,
    onFocusedViewChange: o,
    value: i,
    defaultValue: s,
    referenceDate: a,
    onChange: l,
    className: u,
    classes: c,
    disableFuture: d,
    disablePast: p,
    minDate: h,
    maxDate: m,
    shouldDisableDate: v,
    shouldDisableMonth: C,
    shouldDisableYear: y,
    reduceAnimations: g,
    onMonthChange: x,
    monthsPerRow: w,
    onYearChange: k,
    yearsPerRow: M,
    defaultCalendarMonth: T,
    components: P,
    componentsProps: A,
    slots: D,
    slotProps: R,
    loading: L,
    renderLoading: F,
    disableHighlightToday: O,
    readOnly: E,
    disabled: B,
    showDaysOutsideCurrentMonth: j,
    dayOfWeekFormatter: _,
    sx: I,
    autoFocus: $,
    fixedWeekNumber: J,
    displayWeekNumber: oe,
    timezone: pe,
  }) =>
    f.jsx(qm, {
      view: e,
      onViewChange: t,
      views: n.filter(o6),
      focusedView: r && o6(r) ? r : null,
      onFocusedViewChange: o,
      value: i,
      defaultValue: s,
      referenceDate: a,
      onChange: l,
      className: u,
      classes: c,
      disableFuture: d,
      disablePast: p,
      minDate: h,
      maxDate: m,
      shouldDisableDate: v,
      shouldDisableMonth: C,
      shouldDisableYear: y,
      reduceAnimations: g,
      onMonthChange: x,
      monthsPerRow: w,
      onYearChange: k,
      yearsPerRow: M,
      defaultCalendarMonth: T,
      components: P,
      componentsProps: A,
      slots: D,
      slotProps: R,
      loading: L,
      renderLoading: F,
      disableHighlightToday: O,
      readOnly: E,
      disabled: B,
      showDaysOutsideCurrentMonth: j,
      dayOfWeekFormatter: _,
      sx: I,
      autoFocus: $,
      fixedWeekNumber: J,
      displayWeekNumber: oe,
      timezone: pe,
    }),
  kb = b.forwardRef(function (t, n) {
    var r, o, i, s;
    const a = Oi(),
      l = wt(),
      u = Sb(t, "MuiDesktopDatePicker"),
      c = S({ day: ba, month: ba, year: ba }, u.viewRenderers),
      d = S({}, u, {
        viewRenderers: c,
        format: f5(l, u, !1),
        yearsPerRow: (r = u.yearsPerRow) != null ? r : 4,
        slots: S({ openPickerIcon: dj, field: Cb }, u.slots),
        slotProps: S({}, u.slotProps, {
          field: (h) => {
            var m;
            return S({}, Wg((m = u.slotProps) == null ? void 0 : m.field, h), pb(u), { ref: n });
          },
          toolbar: S({ hidden: !0 }, (o = u.slotProps) == null ? void 0 : o.toolbar),
        }),
      }),
      { renderPicker: p } = Ez({
        props: d,
        valueManager: Vo,
        valueType: "date",
        getOpenDialogAriaText:
          (i = (s = d.localeText) == null ? void 0 : s.openDatePickerDialogue) != null ? i : a.openDatePickerDialogue,
        validator: _0,
      });
    return p();
  });
kb.propTypes = {
  autoFocus: N.bool,
  className: N.string,
  closeOnSelect: N.bool,
  components: N.object,
  componentsProps: N.object,
  dayOfWeekFormatter: N.func,
  defaultCalendarMonth: N.any,
  defaultValue: N.any,
  disabled: N.bool,
  disableFuture: N.bool,
  disableHighlightToday: N.bool,
  disableOpenPicker: N.bool,
  disablePast: N.bool,
  displayWeekNumber: N.bool,
  fixedWeekNumber: N.number,
  format: N.string,
  formatDensity: N.oneOf(["dense", "spacious"]),
  inputRef: Yv,
  label: N.node,
  loading: N.bool,
  localeText: N.object,
  maxDate: N.any,
  minDate: N.any,
  monthsPerRow: N.oneOf([3, 4]),
  name: N.string,
  onAccept: N.func,
  onChange: N.func,
  onClose: N.func,
  onError: N.func,
  onMonthChange: N.func,
  onOpen: N.func,
  onSelectedSectionsChange: N.func,
  onViewChange: N.func,
  onYearChange: N.func,
  open: N.bool,
  openTo: N.oneOf(["day", "month", "year"]),
  orientation: N.oneOf(["landscape", "portrait"]),
  readOnly: N.bool,
  reduceAnimations: N.bool,
  referenceDate: N.any,
  renderLoading: N.func,
  selectedSections: N.oneOfType([
    N.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]),
    N.number,
    N.shape({ endIndex: N.number.isRequired, startIndex: N.number.isRequired }),
  ]),
  shouldDisableDate: N.func,
  shouldDisableMonth: N.func,
  shouldDisableYear: N.func,
  showDaysOutsideCurrentMonth: N.bool,
  slotProps: N.object,
  slots: N.object,
  sx: N.oneOfType([N.arrayOf(N.oneOfType([N.func, N.object, N.bool])), N.func, N.object]),
  timezone: N.string,
  value: N.any,
  view: N.oneOf(["day", "month", "year"]),
  viewRenderers: N.shape({ day: N.func, month: N.func, year: N.func }),
  views: N.arrayOf(N.oneOf(["day", "month", "year"]).isRequired),
  yearsPerRow: N.oneOf([3, 4]),
};
const Pz = ["props", "getOpenDialogAriaText"],
  Az = (e) => {
    var t, n, r;
    let { props: o, getOpenDialogAriaText: i } = e,
      s = ee(e, Pz);
    const {
        slots: a,
        slotProps: l,
        className: u,
        sx: c,
        format: d,
        formatDensity: p,
        timezone: h,
        name: m,
        label: v,
        inputRef: C,
        readOnly: y,
        disabled: g,
        localeText: x,
      } = o,
      w = wt(),
      k = b.useRef(null),
      M = po(),
      T = (t = l == null || (n = l.toolbar) == null ? void 0 : n.hidden) != null ? t : !1,
      {
        open: P,
        actions: A,
        layoutProps: D,
        renderCurrentView: R,
        fieldProps: L,
      } = mb(S({}, s, { props: o, inputRef: k, autoFocusView: !0, additionalViewProps: {}, wrapperVariant: "mobile" })),
      F = a.field,
      O = qe({
        elementType: F,
        externalSlotProps: l == null ? void 0 : l.field,
        additionalProps: S({}, L, T && { id: M }, !(g || y) && { onClick: A.onOpen, onKeyDown: sV(A.onOpen) }, {
          readOnly: y ?? !0,
          disabled: g,
          className: u,
          sx: c,
          format: d,
          formatDensity: p,
          timezone: h,
          label: v,
          name: m,
        }),
        ownerState: o,
      });
    O.inputProps = S({}, O.inputProps, { "aria-label": i(L.value, w) });
    const E = S({ textField: a.textField }, O.slots),
      B = (r = a.layout) != null ? r : vb,
      j = tt(k, O.inputRef, C);
    let _ = M;
    T && (v ? (_ = `${M}-label`) : (_ = void 0));
    const I = S({}, l, {
      toolbar: S({}, l == null ? void 0 : l.toolbar, { titleId: M }),
      mobilePaper: S({ "aria-labelledby": _ }, l == null ? void 0 : l.mobilePaper),
    });
    return {
      renderPicker: () =>
        f.jsxs(u5, {
          localeText: x,
          children: [
            f.jsx(F, S({}, O, { slots: E, slotProps: I, inputRef: j })),
            f.jsx(
              xV,
              S({}, A, {
                open: P,
                slots: a,
                slotProps: I,
                children: f.jsx(B, S({}, D, I == null ? void 0 : I.layout, { slots: a, slotProps: I, children: R() })),
              })
            ),
          ],
        }),
    };
  },
  Tb = b.forwardRef(function (t, n) {
    var r, o, i;
    const s = Oi(),
      a = wt(),
      l = Sb(t, "MuiMobileDatePicker"),
      u = S({ day: ba, month: ba, year: ba }, l.viewRenderers),
      c = S({}, l, {
        viewRenderers: u,
        format: f5(a, l, !1),
        slots: S({ field: Cb }, l.slots),
        slotProps: S({}, l.slotProps, {
          field: (p) => {
            var h;
            return S({}, Wg((h = l.slotProps) == null ? void 0 : h.field, p), pb(l), { ref: n });
          },
          toolbar: S({ hidden: !1 }, (r = l.slotProps) == null ? void 0 : r.toolbar),
        }),
      }),
      { renderPicker: d } = Az({
        props: c,
        valueManager: Vo,
        valueType: "date",
        getOpenDialogAriaText:
          (o = (i = c.localeText) == null ? void 0 : i.openDatePickerDialogue) != null ? o : s.openDatePickerDialogue,
        validator: _0,
      });
    return d();
  });
Tb.propTypes = {
  autoFocus: N.bool,
  className: N.string,
  closeOnSelect: N.bool,
  components: N.object,
  componentsProps: N.object,
  dayOfWeekFormatter: N.func,
  defaultCalendarMonth: N.any,
  defaultValue: N.any,
  disabled: N.bool,
  disableFuture: N.bool,
  disableHighlightToday: N.bool,
  disableOpenPicker: N.bool,
  disablePast: N.bool,
  displayWeekNumber: N.bool,
  fixedWeekNumber: N.number,
  format: N.string,
  formatDensity: N.oneOf(["dense", "spacious"]),
  inputRef: Yv,
  label: N.node,
  loading: N.bool,
  localeText: N.object,
  maxDate: N.any,
  minDate: N.any,
  monthsPerRow: N.oneOf([3, 4]),
  name: N.string,
  onAccept: N.func,
  onChange: N.func,
  onClose: N.func,
  onError: N.func,
  onMonthChange: N.func,
  onOpen: N.func,
  onSelectedSectionsChange: N.func,
  onViewChange: N.func,
  onYearChange: N.func,
  open: N.bool,
  openTo: N.oneOf(["day", "month", "year"]),
  orientation: N.oneOf(["landscape", "portrait"]),
  readOnly: N.bool,
  reduceAnimations: N.bool,
  referenceDate: N.any,
  renderLoading: N.func,
  selectedSections: N.oneOfType([
    N.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]),
    N.number,
    N.shape({ endIndex: N.number.isRequired, startIndex: N.number.isRequired }),
  ]),
  shouldDisableDate: N.func,
  shouldDisableMonth: N.func,
  shouldDisableYear: N.func,
  showDaysOutsideCurrentMonth: N.bool,
  slotProps: N.object,
  slots: N.object,
  sx: N.oneOfType([N.arrayOf(N.oneOfType([N.func, N.object, N.bool])), N.func, N.object]),
  timezone: N.string,
  value: N.any,
  view: N.oneOf(["day", "month", "year"]),
  viewRenderers: N.shape({ day: N.func, month: N.func, year: N.func }),
  views: N.arrayOf(N.oneOf(["day", "month", "year"]).isRequired),
  yearsPerRow: N.oneOf([3, 4]),
};
const _z = ["desktopModeMediaQuery"],
  Dz = b.forwardRef(function (t, n) {
    const r = ke({ props: t, name: "MuiDatePicker" }),
      { desktopModeMediaQuery: o = aV } = r,
      i = ee(r, _z);
    return xs(o, { defaultMatches: !0 }) ? f.jsx(kb, S({ ref: n }, i)) : f.jsx(Tb, S({ ref: n }, i));
  }); //! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Mb;
function re() {
  return Mb.apply(null, arguments);
}
function Rz(e) {
  Mb = e;
}
function Br(e) {
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
}
function is(e) {
  return e != null && Object.prototype.toString.call(e) === "[object Object]";
}
function ot(e, t) {
  return Object.prototype.hasOwnProperty.call(e, t);
}
function g5(e) {
  if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(e).length === 0;
  var t;
  for (t in e) if (ot(e, t)) return !1;
  return !0;
}
function En(e) {
  return e === void 0;
}
function Ho(e) {
  return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
}
function Sc(e) {
  return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
}
function Eb(e, t) {
  var n = [],
    r,
    o = e.length;
  for (r = 0; r < o; ++r) n.push(t(e[r], r));
  return n;
}
function si(e, t) {
  for (var n in t) ot(t, n) && (e[n] = t[n]);
  return ot(t, "toString") && (e.toString = t.toString), ot(t, "valueOf") && (e.valueOf = t.valueOf), e;
}
function mo(e, t, n, r) {
  return qb(e, t, n, r, !0).utc();
}
function Iz() {
  return {
    empty: !1,
    unusedTokens: [],
    unusedInput: [],
    overflow: -2,
    charsLeftOver: 0,
    nullInput: !1,
    invalidEra: null,
    invalidMonth: null,
    invalidFormat: !1,
    userInvalidated: !1,
    iso: !1,
    parsedDateParts: [],
    era: null,
    meridiem: null,
    rfc2822: !1,
    weekdayMismatch: !1,
  };
}
function ze(e) {
  return e._pf == null && (e._pf = Iz()), e._pf;
}
var Zm;
Array.prototype.some
  ? (Zm = Array.prototype.some)
  : (Zm = function (e) {
      var t = Object(this),
        n = t.length >>> 0,
        r;
      for (r = 0; r < n; r++) if (r in t && e.call(this, t[r], r, t)) return !0;
      return !1;
    });
function y5(e) {
  var t = null,
    n = !1,
    r = e._d && !isNaN(e._d.getTime());
  if (
    (r &&
      ((t = ze(e)),
      (n = Zm.call(t.parsedDateParts, function (o) {
        return o != null;
      })),
      (r =
        t.overflow < 0 &&
        !t.empty &&
        !t.invalidEra &&
        !t.invalidMonth &&
        !t.invalidWeekday &&
        !t.weekdayMismatch &&
        !t.nullInput &&
        !t.invalidFormat &&
        !t.userInvalidated &&
        (!t.meridiem || (t.meridiem && n))),
      e._strict && (r = r && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)),
    Object.isFrozen == null || !Object.isFrozen(e))
  )
    e._isValid = r;
  else return r;
  return e._isValid;
}
function D0(e) {
  var t = mo(NaN);
  return e != null ? si(ze(t), e) : (ze(t).userInvalidated = !0), t;
}
var p6 = (re.momentProperties = []),
  rh = !1;
function v5(e, t) {
  var n,
    r,
    o,
    i = p6.length;
  if (
    (En(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject),
    En(t._i) || (e._i = t._i),
    En(t._f) || (e._f = t._f),
    En(t._l) || (e._l = t._l),
    En(t._strict) || (e._strict = t._strict),
    En(t._tzm) || (e._tzm = t._tzm),
    En(t._isUTC) || (e._isUTC = t._isUTC),
    En(t._offset) || (e._offset = t._offset),
    En(t._pf) || (e._pf = ze(t)),
    En(t._locale) || (e._locale = t._locale),
    i > 0)
  )
    for (n = 0; n < i; n++) (r = p6[n]), (o = t[r]), En(o) || (e[r] = o);
  return e;
}
function kc(e) {
  v5(this, e),
    (this._d = new Date(e._d != null ? e._d.getTime() : NaN)),
    this.isValid() || (this._d = new Date(NaN)),
    rh === !1 && ((rh = !0), re.updateOffset(this), (rh = !1));
}
function jr(e) {
  return e instanceof kc || (e != null && e._isAMomentObject != null);
}
function Pb(e) {
  re.suppressDeprecationWarnings === !1 &&
    typeof console < "u" &&
    console.warn &&
    console.warn("Deprecation warning: " + e);
}
function Sr(e, t) {
  var n = !0;
  return si(function () {
    if ((re.deprecationHandler != null && re.deprecationHandler(null, e), n)) {
      var r = [],
        o,
        i,
        s,
        a = arguments.length;
      for (i = 0; i < a; i++) {
        if (((o = ""), typeof arguments[i] == "object")) {
          o +=
            `
[` +
            i +
            "] ";
          for (s in arguments[0]) ot(arguments[0], s) && (o += s + ": " + arguments[0][s] + ", ");
          o = o.slice(0, -2);
        } else o = arguments[i];
        r.push(o);
      }
      Pb(
        e +
          `
Arguments: ` +
          Array.prototype.slice.call(r).join("") +
          `
` +
          new Error().stack
      ),
        (n = !1);
    }
    return t.apply(this, arguments);
  }, t);
}
var h6 = {};
function Ab(e, t) {
  re.deprecationHandler != null && re.deprecationHandler(e, t), h6[e] || (Pb(t), (h6[e] = !0));
}
re.suppressDeprecationWarnings = !1;
re.deprecationHandler = null;
function go(e) {
  return (typeof Function < "u" && e instanceof Function) || Object.prototype.toString.call(e) === "[object Function]";
}
function Oz(e) {
  var t, n;
  for (n in e) ot(e, n) && ((t = e[n]), go(t) ? (this[n] = t) : (this["_" + n] = t));
  (this._config = e),
    (this._dayOfMonthOrdinalParseLenient = new RegExp(
      (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
    ));
}
function Jm(e, t) {
  var n = si({}, e),
    r;
  for (r in t)
    ot(t, r) &&
      (is(e[r]) && is(t[r])
        ? ((n[r] = {}), si(n[r], e[r]), si(n[r], t[r]))
        : t[r] != null
          ? (n[r] = t[r])
          : delete n[r]);
  for (r in e) ot(e, r) && !ot(t, r) && is(e[r]) && (n[r] = si({}, n[r]));
  return n;
}
function x5(e) {
  e != null && this.set(e);
}
var Qm;
Object.keys
  ? (Qm = Object.keys)
  : (Qm = function (e) {
      var t,
        n = [];
      for (t in e) ot(e, t) && n.push(t);
      return n;
    });
var Fz = {
  sameDay: "[Today at] LT",
  nextDay: "[Tomorrow at] LT",
  nextWeek: "dddd [at] LT",
  lastDay: "[Yesterday at] LT",
  lastWeek: "[Last] dddd [at] LT",
  sameElse: "L",
};
function Lz(e, t, n) {
  var r = this._calendar[e] || this._calendar.sameElse;
  return go(r) ? r.call(t, n) : r;
}
function uo(e, t, n) {
  var r = "" + Math.abs(e),
    o = t - r.length,
    i = e >= 0;
  return (i ? (n ? "+" : "") : "-") + Math.pow(10, Math.max(0, o)).toString().substr(1) + r;
}
var b5 =
    /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  fd = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  oh = {},
  Ca = {};
function Oe(e, t, n, r) {
  var o = r;
  typeof r == "string" &&
    (o = function () {
      return this[r]();
    }),
    e && (Ca[e] = o),
    t &&
      (Ca[t[0]] = function () {
        return uo(o.apply(this, arguments), t[1], t[2]);
      }),
    n &&
      (Ca[n] = function () {
        return this.localeData().ordinal(o.apply(this, arguments), e);
      });
}
function Nz(e) {
  return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
}
function $z(e) {
  var t = e.match(b5),
    n,
    r;
  for (n = 0, r = t.length; n < r; n++) Ca[t[n]] ? (t[n] = Ca[t[n]]) : (t[n] = Nz(t[n]));
  return function (o) {
    var i = "",
      s;
    for (s = 0; s < r; s++) i += go(t[s]) ? t[s].call(o, e) : t[s];
    return i;
  };
}
function Yd(e, t) {
  return e.isValid() ? ((t = _b(t, e.localeData())), (oh[t] = oh[t] || $z(t)), oh[t](e)) : e.localeData().invalidDate();
}
function _b(e, t) {
  var n = 5;
  function r(o) {
    return t.longDateFormat(o) || o;
  }
  for (fd.lastIndex = 0; n >= 0 && fd.test(e); ) (e = e.replace(fd, r)), (fd.lastIndex = 0), (n -= 1);
  return e;
}
var Bz = {
  LTS: "h:mm:ss A",
  LT: "h:mm A",
  L: "MM/DD/YYYY",
  LL: "MMMM D, YYYY",
  LLL: "MMMM D, YYYY h:mm A",
  LLLL: "dddd, MMMM D, YYYY h:mm A",
};
function jz(e) {
  var t = this._longDateFormat[e],
    n = this._longDateFormat[e.toUpperCase()];
  return t || !n
    ? t
    : ((this._longDateFormat[e] = n
        .match(b5)
        .map(function (r) {
          return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
        })
        .join("")),
      this._longDateFormat[e]);
}
var Vz = "Invalid date";
function Hz() {
  return this._invalidDate;
}
var zz = "%d",
  Wz = /\d{1,2}/;
function Gz(e) {
  return this._ordinal.replace("%d", e);
}
var Uz = {
  future: "in %s",
  past: "%s ago",
  s: "a few seconds",
  ss: "%d seconds",
  m: "a minute",
  mm: "%d minutes",
  h: "an hour",
  hh: "%d hours",
  d: "a day",
  dd: "%d days",
  w: "a week",
  ww: "%d weeks",
  M: "a month",
  MM: "%d months",
  y: "a year",
  yy: "%d years",
};
function Yz(e, t, n, r) {
  var o = this._relativeTime[n];
  return go(o) ? o(e, t, n, r) : o.replace(/%d/i, e);
}
function Kz(e, t) {
  var n = this._relativeTime[e > 0 ? "future" : "past"];
  return go(n) ? n(t) : n.replace(/%s/i, t);
}
var m6 = {
  D: "date",
  dates: "date",
  date: "date",
  d: "day",
  days: "day",
  day: "day",
  e: "weekday",
  weekdays: "weekday",
  weekday: "weekday",
  E: "isoWeekday",
  isoweekdays: "isoWeekday",
  isoweekday: "isoWeekday",
  DDD: "dayOfYear",
  dayofyears: "dayOfYear",
  dayofyear: "dayOfYear",
  h: "hour",
  hours: "hour",
  hour: "hour",
  ms: "millisecond",
  milliseconds: "millisecond",
  millisecond: "millisecond",
  m: "minute",
  minutes: "minute",
  minute: "minute",
  M: "month",
  months: "month",
  month: "month",
  Q: "quarter",
  quarters: "quarter",
  quarter: "quarter",
  s: "second",
  seconds: "second",
  second: "second",
  gg: "weekYear",
  weekyears: "weekYear",
  weekyear: "weekYear",
  GG: "isoWeekYear",
  isoweekyears: "isoWeekYear",
  isoweekyear: "isoWeekYear",
  w: "week",
  weeks: "week",
  week: "week",
  W: "isoWeek",
  isoweeks: "isoWeek",
  isoweek: "isoWeek",
  y: "year",
  years: "year",
  year: "year",
};
function kr(e) {
  return typeof e == "string" ? m6[e] || m6[e.toLowerCase()] : void 0;
}
function C5(e) {
  var t = {},
    n,
    r;
  for (r in e) ot(e, r) && ((n = kr(r)), n && (t[n] = e[r]));
  return t;
}
var Xz = {
  date: 9,
  day: 11,
  weekday: 11,
  isoWeekday: 11,
  dayOfYear: 4,
  hour: 13,
  millisecond: 16,
  minute: 14,
  month: 8,
  quarter: 7,
  second: 15,
  weekYear: 1,
  isoWeekYear: 1,
  week: 5,
  isoWeek: 5,
  year: 1,
};
function qz(e) {
  var t = [],
    n;
  for (n in e) ot(e, n) && t.push({ unit: n, priority: Xz[n] });
  return (
    t.sort(function (r, o) {
      return r.priority - o.priority;
    }),
    t
  );
}
var Db = /\d/,
  Zn = /\d\d/,
  Rb = /\d{3}/,
  w5 = /\d{4}/,
  R0 = /[+-]?\d{6}/,
  Mt = /\d\d?/,
  Ib = /\d\d\d\d?/,
  Ob = /\d\d\d\d\d\d?/,
  I0 = /\d{1,3}/,
  S5 = /\d{1,4}/,
  O0 = /[+-]?\d{1,6}/,
  ll = /\d+/,
  F0 = /[+-]?\d+/,
  Zz = /Z|[+-]\d\d:?\d\d/gi,
  L0 = /Z|[+-]\d\d(?::?\d\d)?/gi,
  Jz = /[+-]?\d+(\.\d{1,3})?/,
  Tc =
    /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  ul = /^[1-9]\d?/,
  k5 = /^([1-9]\d|\d)/,
  Uf;
Uf = {};
function be(e, t, n) {
  Uf[e] = go(t)
    ? t
    : function (r, o) {
        return r && n ? n : t;
      };
}
function Qz(e, t) {
  return ot(Uf, e) ? Uf[e](t._strict, t._locale) : new RegExp(eW(e));
}
function eW(e) {
  return Io(
    e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (t, n, r, o, i) {
      return n || r || o || i;
    })
  );
}
function Io(e) {
  return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
}
function sr(e) {
  return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function Ke(e) {
  var t = +e,
    n = 0;
  return t !== 0 && isFinite(t) && (n = sr(t)), n;
}
var e2 = {};
function vt(e, t) {
  var n,
    r = t,
    o;
  for (
    typeof e == "string" && (e = [e]),
      Ho(t) &&
        (r = function (i, s) {
          s[t] = Ke(i);
        }),
      o = e.length,
      n = 0;
    n < o;
    n++
  )
    e2[e[n]] = r;
}
function Mc(e, t) {
  vt(e, function (n, r, o, i) {
    (o._w = o._w || {}), t(n, o._w, o, i);
  });
}
function tW(e, t, n) {
  t != null && ot(e2, e) && e2[e](t, n._a, n, e);
}
function N0(e) {
  return (e % 4 === 0 && e % 100 !== 0) || e % 400 === 0;
}
var hn = 0,
  _o = 1,
  Jr = 2,
  Jt = 3,
  Rr = 4,
  Do = 5,
  Zi = 6,
  nW = 7,
  rW = 8;
Oe("Y", 0, 0, function () {
  var e = this.year();
  return e <= 9999 ? uo(e, 4) : "+" + e;
});
Oe(0, ["YY", 2], 0, function () {
  return this.year() % 100;
});
Oe(0, ["YYYY", 4], 0, "year");
Oe(0, ["YYYYY", 5], 0, "year");
Oe(0, ["YYYYYY", 6, !0], 0, "year");
be("Y", F0);
be("YY", Mt, Zn);
be("YYYY", S5, w5);
be("YYYYY", O0, R0);
be("YYYYYY", O0, R0);
vt(["YYYYY", "YYYYYY"], hn);
vt("YYYY", function (e, t) {
  t[hn] = e.length === 2 ? re.parseTwoDigitYear(e) : Ke(e);
});
vt("YY", function (e, t) {
  t[hn] = re.parseTwoDigitYear(e);
});
vt("Y", function (e, t) {
  t[hn] = parseInt(e, 10);
});
function fu(e) {
  return N0(e) ? 366 : 365;
}
re.parseTwoDigitYear = function (e) {
  return Ke(e) + (Ke(e) > 68 ? 1900 : 2e3);
};
var Fb = cl("FullYear", !0);
function oW() {
  return N0(this.year());
}
function cl(e, t) {
  return function (n) {
    return n != null ? (Lb(this, e, n), re.updateOffset(this, t), this) : Wu(this, e);
  };
}
function Wu(e, t) {
  if (!e.isValid()) return NaN;
  var n = e._d,
    r = e._isUTC;
  switch (t) {
    case "Milliseconds":
      return r ? n.getUTCMilliseconds() : n.getMilliseconds();
    case "Seconds":
      return r ? n.getUTCSeconds() : n.getSeconds();
    case "Minutes":
      return r ? n.getUTCMinutes() : n.getMinutes();
    case "Hours":
      return r ? n.getUTCHours() : n.getHours();
    case "Date":
      return r ? n.getUTCDate() : n.getDate();
    case "Day":
      return r ? n.getUTCDay() : n.getDay();
    case "Month":
      return r ? n.getUTCMonth() : n.getMonth();
    case "FullYear":
      return r ? n.getUTCFullYear() : n.getFullYear();
    default:
      return NaN;
  }
}
function Lb(e, t, n) {
  var r, o, i, s, a;
  if (!(!e.isValid() || isNaN(n))) {
    switch (((r = e._d), (o = e._isUTC), t)) {
      case "Milliseconds":
        return void (o ? r.setUTCMilliseconds(n) : r.setMilliseconds(n));
      case "Seconds":
        return void (o ? r.setUTCSeconds(n) : r.setSeconds(n));
      case "Minutes":
        return void (o ? r.setUTCMinutes(n) : r.setMinutes(n));
      case "Hours":
        return void (o ? r.setUTCHours(n) : r.setHours(n));
      case "Date":
        return void (o ? r.setUTCDate(n) : r.setDate(n));
      case "FullYear":
        break;
      default:
        return;
    }
    (i = n),
      (s = e.month()),
      (a = e.date()),
      (a = a === 29 && s === 1 && !N0(i) ? 28 : a),
      o ? r.setUTCFullYear(i, s, a) : r.setFullYear(i, s, a);
  }
}
function iW(e) {
  return (e = kr(e)), go(this[e]) ? this[e]() : this;
}
function sW(e, t) {
  if (typeof e == "object") {
    e = C5(e);
    var n = qz(e),
      r,
      o = n.length;
    for (r = 0; r < o; r++) this[n[r].unit](e[n[r].unit]);
  } else if (((e = kr(e)), go(this[e]))) return this[e](t);
  return this;
}
function aW(e, t) {
  return ((e % t) + t) % t;
}
var $t;
Array.prototype.indexOf
  ? ($t = Array.prototype.indexOf)
  : ($t = function (e) {
      var t;
      for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
      return -1;
    });
function T5(e, t) {
  if (isNaN(e) || isNaN(t)) return NaN;
  var n = aW(t, 12);
  return (e += (t - n) / 12), n === 1 ? (N0(e) ? 29 : 28) : 31 - ((n % 7) % 2);
}
Oe("M", ["MM", 2], "Mo", function () {
  return this.month() + 1;
});
Oe("MMM", 0, 0, function (e) {
  return this.localeData().monthsShort(this, e);
});
Oe("MMMM", 0, 0, function (e) {
  return this.localeData().months(this, e);
});
be("M", Mt, ul);
be("MM", Mt, Zn);
be("MMM", function (e, t) {
  return t.monthsShortRegex(e);
});
be("MMMM", function (e, t) {
  return t.monthsRegex(e);
});
vt(["M", "MM"], function (e, t) {
  t[_o] = Ke(e) - 1;
});
vt(["MMM", "MMMM"], function (e, t, n, r) {
  var o = n._locale.monthsParse(e, r, n._strict);
  o != null ? (t[_o] = o) : (ze(n).invalidMonth = e);
});
var lW = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
  Nb = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  $b = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  uW = Tc,
  cW = Tc;
function dW(e, t) {
  return e
    ? Br(this._months)
      ? this._months[e.month()]
      : this._months[(this._months.isFormat || $b).test(t) ? "format" : "standalone"][e.month()]
    : Br(this._months)
      ? this._months
      : this._months.standalone;
}
function fW(e, t) {
  return e
    ? Br(this._monthsShort)
      ? this._monthsShort[e.month()]
      : this._monthsShort[$b.test(t) ? "format" : "standalone"][e.month()]
    : Br(this._monthsShort)
      ? this._monthsShort
      : this._monthsShort.standalone;
}
function pW(e, t, n) {
  var r,
    o,
    i,
    s = e.toLocaleLowerCase();
  if (!this._monthsParse)
    for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
      (i = mo([2e3, r])),
        (this._shortMonthsParse[r] = this.monthsShort(i, "").toLocaleLowerCase()),
        (this._longMonthsParse[r] = this.months(i, "").toLocaleLowerCase());
  return n
    ? t === "MMM"
      ? ((o = $t.call(this._shortMonthsParse, s)), o !== -1 ? o : null)
      : ((o = $t.call(this._longMonthsParse, s)), o !== -1 ? o : null)
    : t === "MMM"
      ? ((o = $t.call(this._shortMonthsParse, s)),
        o !== -1 ? o : ((o = $t.call(this._longMonthsParse, s)), o !== -1 ? o : null))
      : ((o = $t.call(this._longMonthsParse, s)),
        o !== -1 ? o : ((o = $t.call(this._shortMonthsParse, s)), o !== -1 ? o : null));
}
function hW(e, t, n) {
  var r, o, i;
  if (this._monthsParseExact) return pW.call(this, e, t, n);
  for (
    this._monthsParse || ((this._monthsParse = []), (this._longMonthsParse = []), (this._shortMonthsParse = [])), r = 0;
    r < 12;
    r++
  ) {
    if (
      ((o = mo([2e3, r])),
      n &&
        !this._longMonthsParse[r] &&
        ((this._longMonthsParse[r] = new RegExp("^" + this.months(o, "").replace(".", "") + "$", "i")),
        (this._shortMonthsParse[r] = new RegExp("^" + this.monthsShort(o, "").replace(".", "") + "$", "i"))),
      !n &&
        !this._monthsParse[r] &&
        ((i = "^" + this.months(o, "") + "|^" + this.monthsShort(o, "")),
        (this._monthsParse[r] = new RegExp(i.replace(".", ""), "i"))),
      n && t === "MMMM" && this._longMonthsParse[r].test(e))
    )
      return r;
    if (n && t === "MMM" && this._shortMonthsParse[r].test(e)) return r;
    if (!n && this._monthsParse[r].test(e)) return r;
  }
}
function Bb(e, t) {
  if (!e.isValid()) return e;
  if (typeof t == "string") {
    if (/^\d+$/.test(t)) t = Ke(t);
    else if (((t = e.localeData().monthsParse(t)), !Ho(t))) return e;
  }
  var n = t,
    r = e.date();
  return (r = r < 29 ? r : Math.min(r, T5(e.year(), n))), e._isUTC ? e._d.setUTCMonth(n, r) : e._d.setMonth(n, r), e;
}
function jb(e) {
  return e != null ? (Bb(this, e), re.updateOffset(this, !0), this) : Wu(this, "Month");
}
function mW() {
  return T5(this.year(), this.month());
}
function gW(e) {
  return this._monthsParseExact
    ? (ot(this, "_monthsRegex") || Vb.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex)
    : (ot(this, "_monthsShortRegex") || (this._monthsShortRegex = uW),
      this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
}
function yW(e) {
  return this._monthsParseExact
    ? (ot(this, "_monthsRegex") || Vb.call(this), e ? this._monthsStrictRegex : this._monthsRegex)
    : (ot(this, "_monthsRegex") || (this._monthsRegex = cW),
      this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
}
function Vb() {
  function e(l, u) {
    return u.length - l.length;
  }
  var t = [],
    n = [],
    r = [],
    o,
    i,
    s,
    a;
  for (o = 0; o < 12; o++)
    (i = mo([2e3, o])),
      (s = Io(this.monthsShort(i, ""))),
      (a = Io(this.months(i, ""))),
      t.push(s),
      n.push(a),
      r.push(a),
      r.push(s);
  t.sort(e),
    n.sort(e),
    r.sort(e),
    (this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i")),
    (this._monthsShortRegex = this._monthsRegex),
    (this._monthsStrictRegex = new RegExp("^(" + n.join("|") + ")", "i")),
    (this._monthsShortStrictRegex = new RegExp("^(" + t.join("|") + ")", "i"));
}
function vW(e, t, n, r, o, i, s) {
  var a;
  return (
    e < 100 && e >= 0
      ? ((a = new Date(e + 400, t, n, r, o, i, s)), isFinite(a.getFullYear()) && a.setFullYear(e))
      : (a = new Date(e, t, n, r, o, i, s)),
    a
  );
}
function Gu(e) {
  var t, n;
  return (
    e < 100 && e >= 0
      ? ((n = Array.prototype.slice.call(arguments)),
        (n[0] = e + 400),
        (t = new Date(Date.UTC.apply(null, n))),
        isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e))
      : (t = new Date(Date.UTC.apply(null, arguments))),
    t
  );
}
function Yf(e, t, n) {
  var r = 7 + t - n,
    o = (7 + Gu(e, 0, r).getUTCDay() - t) % 7;
  return -o + r - 1;
}
function Hb(e, t, n, r, o) {
  var i = (7 + n - r) % 7,
    s = Yf(e, r, o),
    a = 1 + 7 * (t - 1) + i + s,
    l,
    u;
  return (
    a <= 0 ? ((l = e - 1), (u = fu(l) + a)) : a > fu(e) ? ((l = e + 1), (u = a - fu(e))) : ((l = e), (u = a)),
    { year: l, dayOfYear: u }
  );
}
function Uu(e, t, n) {
  var r = Yf(e.year(), t, n),
    o = Math.floor((e.dayOfYear() - r - 1) / 7) + 1,
    i,
    s;
  return (
    o < 1
      ? ((s = e.year() - 1), (i = o + Oo(s, t, n)))
      : o > Oo(e.year(), t, n)
        ? ((i = o - Oo(e.year(), t, n)), (s = e.year() + 1))
        : ((s = e.year()), (i = o)),
    { week: i, year: s }
  );
}
function Oo(e, t, n) {
  var r = Yf(e, t, n),
    o = Yf(e + 1, t, n);
  return (fu(e) - r + o) / 7;
}
Oe("w", ["ww", 2], "wo", "week");
Oe("W", ["WW", 2], "Wo", "isoWeek");
be("w", Mt, ul);
be("ww", Mt, Zn);
be("W", Mt, ul);
be("WW", Mt, Zn);
Mc(["w", "ww", "W", "WW"], function (e, t, n, r) {
  t[r.substr(0, 1)] = Ke(e);
});
function xW(e) {
  return Uu(e, this._week.dow, this._week.doy).week;
}
var bW = { dow: 0, doy: 6 };
function CW() {
  return this._week.dow;
}
function wW() {
  return this._week.doy;
}
function SW(e) {
  var t = this.localeData().week(this);
  return e == null ? t : this.add((e - t) * 7, "d");
}
function kW(e) {
  var t = Uu(this, 1, 4).week;
  return e == null ? t : this.add((e - t) * 7, "d");
}
Oe("d", 0, "do", "day");
Oe("dd", 0, 0, function (e) {
  return this.localeData().weekdaysMin(this, e);
});
Oe("ddd", 0, 0, function (e) {
  return this.localeData().weekdaysShort(this, e);
});
Oe("dddd", 0, 0, function (e) {
  return this.localeData().weekdays(this, e);
});
Oe("e", 0, 0, "weekday");
Oe("E", 0, 0, "isoWeekday");
be("d", Mt);
be("e", Mt);
be("E", Mt);
be("dd", function (e, t) {
  return t.weekdaysMinRegex(e);
});
be("ddd", function (e, t) {
  return t.weekdaysShortRegex(e);
});
be("dddd", function (e, t) {
  return t.weekdaysRegex(e);
});
Mc(["dd", "ddd", "dddd"], function (e, t, n, r) {
  var o = n._locale.weekdaysParse(e, r, n._strict);
  o != null ? (t.d = o) : (ze(n).invalidWeekday = e);
});
Mc(["d", "e", "E"], function (e, t, n, r) {
  t[r] = Ke(e);
});
function TW(e, t) {
  return typeof e != "string"
    ? e
    : isNaN(e)
      ? ((e = t.weekdaysParse(e)), typeof e == "number" ? e : null)
      : parseInt(e, 10);
}
function MW(e, t) {
  return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
}
function M5(e, t) {
  return e.slice(t, 7).concat(e.slice(0, t));
}
var EW = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  zb = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  PW = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  AW = Tc,
  _W = Tc,
  DW = Tc;
function RW(e, t) {
  var n = Br(this._weekdays)
    ? this._weekdays
    : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
  return e === !0 ? M5(n, this._week.dow) : e ? n[e.day()] : n;
}
function IW(e) {
  return e === !0 ? M5(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
}
function OW(e) {
  return e === !0 ? M5(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
}
function FW(e, t, n) {
  var r,
    o,
    i,
    s = e.toLocaleLowerCase();
  if (!this._weekdaysParse)
    for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
      (i = mo([2e3, 1]).day(r)),
        (this._minWeekdaysParse[r] = this.weekdaysMin(i, "").toLocaleLowerCase()),
        (this._shortWeekdaysParse[r] = this.weekdaysShort(i, "").toLocaleLowerCase()),
        (this._weekdaysParse[r] = this.weekdays(i, "").toLocaleLowerCase());
  return n
    ? t === "dddd"
      ? ((o = $t.call(this._weekdaysParse, s)), o !== -1 ? o : null)
      : t === "ddd"
        ? ((o = $t.call(this._shortWeekdaysParse, s)), o !== -1 ? o : null)
        : ((o = $t.call(this._minWeekdaysParse, s)), o !== -1 ? o : null)
    : t === "dddd"
      ? ((o = $t.call(this._weekdaysParse, s)),
        o !== -1 || ((o = $t.call(this._shortWeekdaysParse, s)), o !== -1)
          ? o
          : ((o = $t.call(this._minWeekdaysParse, s)), o !== -1 ? o : null))
      : t === "ddd"
        ? ((o = $t.call(this._shortWeekdaysParse, s)),
          o !== -1 || ((o = $t.call(this._weekdaysParse, s)), o !== -1)
            ? o
            : ((o = $t.call(this._minWeekdaysParse, s)), o !== -1 ? o : null))
        : ((o = $t.call(this._minWeekdaysParse, s)),
          o !== -1 || ((o = $t.call(this._weekdaysParse, s)), o !== -1)
            ? o
            : ((o = $t.call(this._shortWeekdaysParse, s)), o !== -1 ? o : null));
}
function LW(e, t, n) {
  var r, o, i;
  if (this._weekdaysParseExact) return FW.call(this, e, t, n);
  for (
    this._weekdaysParse ||
      ((this._weekdaysParse = []),
      (this._minWeekdaysParse = []),
      (this._shortWeekdaysParse = []),
      (this._fullWeekdaysParse = [])),
      r = 0;
    r < 7;
    r++
  ) {
    if (
      ((o = mo([2e3, 1]).day(r)),
      n &&
        !this._fullWeekdaysParse[r] &&
        ((this._fullWeekdaysParse[r] = new RegExp("^" + this.weekdays(o, "").replace(".", "\\.?") + "$", "i")),
        (this._shortWeekdaysParse[r] = new RegExp("^" + this.weekdaysShort(o, "").replace(".", "\\.?") + "$", "i")),
        (this._minWeekdaysParse[r] = new RegExp("^" + this.weekdaysMin(o, "").replace(".", "\\.?") + "$", "i"))),
      this._weekdaysParse[r] ||
        ((i = "^" + this.weekdays(o, "") + "|^" + this.weekdaysShort(o, "") + "|^" + this.weekdaysMin(o, "")),
        (this._weekdaysParse[r] = new RegExp(i.replace(".", ""), "i"))),
      n && t === "dddd" && this._fullWeekdaysParse[r].test(e))
    )
      return r;
    if (n && t === "ddd" && this._shortWeekdaysParse[r].test(e)) return r;
    if (n && t === "dd" && this._minWeekdaysParse[r].test(e)) return r;
    if (!n && this._weekdaysParse[r].test(e)) return r;
  }
}
function NW(e) {
  if (!this.isValid()) return e != null ? this : NaN;
  var t = Wu(this, "Day");
  return e != null ? ((e = TW(e, this.localeData())), this.add(e - t, "d")) : t;
}
function $W(e) {
  if (!this.isValid()) return e != null ? this : NaN;
  var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
  return e == null ? t : this.add(e - t, "d");
}
function BW(e) {
  if (!this.isValid()) return e != null ? this : NaN;
  if (e != null) {
    var t = MW(e, this.localeData());
    return this.day(this.day() % 7 ? t : t - 7);
  } else return this.day() || 7;
}
function jW(e) {
  return this._weekdaysParseExact
    ? (ot(this, "_weekdaysRegex") || E5.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex)
    : (ot(this, "_weekdaysRegex") || (this._weekdaysRegex = AW),
      this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
}
function VW(e) {
  return this._weekdaysParseExact
    ? (ot(this, "_weekdaysRegex") || E5.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
    : (ot(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = _W),
      this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
}
function HW(e) {
  return this._weekdaysParseExact
    ? (ot(this, "_weekdaysRegex") || E5.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
    : (ot(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = DW),
      this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
}
function E5() {
  function e(c, d) {
    return d.length - c.length;
  }
  var t = [],
    n = [],
    r = [],
    o = [],
    i,
    s,
    a,
    l,
    u;
  for (i = 0; i < 7; i++)
    (s = mo([2e3, 1]).day(i)),
      (a = Io(this.weekdaysMin(s, ""))),
      (l = Io(this.weekdaysShort(s, ""))),
      (u = Io(this.weekdays(s, ""))),
      t.push(a),
      n.push(l),
      r.push(u),
      o.push(a),
      o.push(l),
      o.push(u);
  t.sort(e),
    n.sort(e),
    r.sort(e),
    o.sort(e),
    (this._weekdaysRegex = new RegExp("^(" + o.join("|") + ")", "i")),
    (this._weekdaysShortRegex = this._weekdaysRegex),
    (this._weekdaysMinRegex = this._weekdaysRegex),
    (this._weekdaysStrictRegex = new RegExp("^(" + r.join("|") + ")", "i")),
    (this._weekdaysShortStrictRegex = new RegExp("^(" + n.join("|") + ")", "i")),
    (this._weekdaysMinStrictRegex = new RegExp("^(" + t.join("|") + ")", "i"));
}
function P5() {
  return this.hours() % 12 || 12;
}
function zW() {
  return this.hours() || 24;
}
Oe("H", ["HH", 2], 0, "hour");
Oe("h", ["hh", 2], 0, P5);
Oe("k", ["kk", 2], 0, zW);
Oe("hmm", 0, 0, function () {
  return "" + P5.apply(this) + uo(this.minutes(), 2);
});
Oe("hmmss", 0, 0, function () {
  return "" + P5.apply(this) + uo(this.minutes(), 2) + uo(this.seconds(), 2);
});
Oe("Hmm", 0, 0, function () {
  return "" + this.hours() + uo(this.minutes(), 2);
});
Oe("Hmmss", 0, 0, function () {
  return "" + this.hours() + uo(this.minutes(), 2) + uo(this.seconds(), 2);
});
function Wb(e, t) {
  Oe(e, 0, 0, function () {
    return this.localeData().meridiem(this.hours(), this.minutes(), t);
  });
}
Wb("a", !0);
Wb("A", !1);
function Gb(e, t) {
  return t._meridiemParse;
}
be("a", Gb);
be("A", Gb);
be("H", Mt, k5);
be("h", Mt, ul);
be("k", Mt, ul);
be("HH", Mt, Zn);
be("hh", Mt, Zn);
be("kk", Mt, Zn);
be("hmm", Ib);
be("hmmss", Ob);
be("Hmm", Ib);
be("Hmmss", Ob);
vt(["H", "HH"], Jt);
vt(["k", "kk"], function (e, t, n) {
  var r = Ke(e);
  t[Jt] = r === 24 ? 0 : r;
});
vt(["a", "A"], function (e, t, n) {
  (n._isPm = n._locale.isPM(e)), (n._meridiem = e);
});
vt(["h", "hh"], function (e, t, n) {
  (t[Jt] = Ke(e)), (ze(n).bigHour = !0);
});
vt("hmm", function (e, t, n) {
  var r = e.length - 2;
  (t[Jt] = Ke(e.substr(0, r))), (t[Rr] = Ke(e.substr(r))), (ze(n).bigHour = !0);
});
vt("hmmss", function (e, t, n) {
  var r = e.length - 4,
    o = e.length - 2;
  (t[Jt] = Ke(e.substr(0, r))), (t[Rr] = Ke(e.substr(r, 2))), (t[Do] = Ke(e.substr(o))), (ze(n).bigHour = !0);
});
vt("Hmm", function (e, t, n) {
  var r = e.length - 2;
  (t[Jt] = Ke(e.substr(0, r))), (t[Rr] = Ke(e.substr(r)));
});
vt("Hmmss", function (e, t, n) {
  var r = e.length - 4,
    o = e.length - 2;
  (t[Jt] = Ke(e.substr(0, r))), (t[Rr] = Ke(e.substr(r, 2))), (t[Do] = Ke(e.substr(o)));
});
function WW(e) {
  return (e + "").toLowerCase().charAt(0) === "p";
}
var GW = /[ap]\.?m?\.?/i,
  UW = cl("Hours", !0);
function YW(e, t, n) {
  return e > 11 ? (n ? "pm" : "PM") : n ? "am" : "AM";
}
var Ub = {
    calendar: Fz,
    longDateFormat: Bz,
    invalidDate: Vz,
    ordinal: zz,
    dayOfMonthOrdinalParse: Wz,
    relativeTime: Uz,
    months: lW,
    monthsShort: Nb,
    week: bW,
    weekdays: EW,
    weekdaysMin: PW,
    weekdaysShort: zb,
    meridiemParse: GW,
  },
  Pt = {},
  Ol = {},
  Yu;
function KW(e, t) {
  var n,
    r = Math.min(e.length, t.length);
  for (n = 0; n < r; n += 1) if (e[n] !== t[n]) return n;
  return r;
}
function g6(e) {
  return e && e.toLowerCase().replace("_", "-");
}
function XW(e) {
  for (var t = 0, n, r, o, i; t < e.length; ) {
    for (i = g6(e[t]).split("-"), n = i.length, r = g6(e[t + 1]), r = r ? r.split("-") : null; n > 0; ) {
      if (((o = $0(i.slice(0, n).join("-"))), o)) return o;
      if (r && r.length >= n && KW(i, r) >= n - 1) break;
      n--;
    }
    t++;
  }
  return Yu;
}
function qW(e) {
  return !!(e && e.match("^[^/\\\\]*$"));
}
function $0(e) {
  var t = null,
    n;
  if (Pt[e] === void 0 && typeof module < "u" && module && module.exports && qW(e))
    try {
      (t = Yu._abbr), (n = require), n("./locale/" + e), gi(t);
    } catch {
      Pt[e] = null;
    }
  return Pt[e];
}
function gi(e, t) {
  var n;
  return (
    e &&
      (En(t) ? (n = Yo(e)) : (n = A5(e, t)),
      n
        ? (Yu = n)
        : typeof console < "u" &&
          console.warn &&
          console.warn("Locale " + e + " not found. Did you forget to load it?")),
    Yu._abbr
  );
}
function A5(e, t) {
  if (t !== null) {
    var n,
      r = Ub;
    if (((t.abbr = e), Pt[e] != null))
      Ab(
        "defineLocaleOverride",
        "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
      ),
        (r = Pt[e]._config);
    else if (t.parentLocale != null)
      if (Pt[t.parentLocale] != null) r = Pt[t.parentLocale]._config;
      else if (((n = $0(t.parentLocale)), n != null)) r = n._config;
      else
        return Ol[t.parentLocale] || (Ol[t.parentLocale] = []), Ol[t.parentLocale].push({ name: e, config: t }), null;
    return (
      (Pt[e] = new x5(Jm(r, t))),
      Ol[e] &&
        Ol[e].forEach(function (o) {
          A5(o.name, o.config);
        }),
      gi(e),
      Pt[e]
    );
  } else return delete Pt[e], null;
}
function ZW(e, t) {
  if (t != null) {
    var n,
      r,
      o = Ub;
    Pt[e] != null && Pt[e].parentLocale != null
      ? Pt[e].set(Jm(Pt[e]._config, t))
      : ((r = $0(e)),
        r != null && (o = r._config),
        (t = Jm(o, t)),
        r == null && (t.abbr = e),
        (n = new x5(t)),
        (n.parentLocale = Pt[e]),
        (Pt[e] = n)),
      gi(e);
  } else
    Pt[e] != null &&
      (Pt[e].parentLocale != null
        ? ((Pt[e] = Pt[e].parentLocale), e === gi() && gi(e))
        : Pt[e] != null && delete Pt[e]);
  return Pt[e];
}
function Yo(e) {
  var t;
  if ((e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)) return Yu;
  if (!Br(e)) {
    if (((t = $0(e)), t)) return t;
    e = [e];
  }
  return XW(e);
}
function JW() {
  return Qm(Pt);
}
function _5(e) {
  var t,
    n = e._a;
  return (
    n &&
      ze(e).overflow === -2 &&
      ((t =
        n[_o] < 0 || n[_o] > 11
          ? _o
          : n[Jr] < 1 || n[Jr] > T5(n[hn], n[_o])
            ? Jr
            : n[Jt] < 0 || n[Jt] > 24 || (n[Jt] === 24 && (n[Rr] !== 0 || n[Do] !== 0 || n[Zi] !== 0))
              ? Jt
              : n[Rr] < 0 || n[Rr] > 59
                ? Rr
                : n[Do] < 0 || n[Do] > 59
                  ? Do
                  : n[Zi] < 0 || n[Zi] > 999
                    ? Zi
                    : -1),
      ze(e)._overflowDayOfYear && (t < hn || t > Jr) && (t = Jr),
      ze(e)._overflowWeeks && t === -1 && (t = nW),
      ze(e)._overflowWeekday && t === -1 && (t = rW),
      (ze(e).overflow = t)),
    e
  );
}
var QW =
    /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  eG =
    /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  tG = /Z|[+-]\d\d(?::?\d\d)?/,
  pd = [
    ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
    ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
    ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
    ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
    ["YYYY-DDD", /\d{4}-\d{3}/],
    ["YYYY-MM", /\d{4}-\d\d/, !1],
    ["YYYYYYMMDD", /[+-]\d{10}/],
    ["YYYYMMDD", /\d{8}/],
    ["GGGG[W]WWE", /\d{4}W\d{3}/],
    ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
    ["YYYYDDD", /\d{7}/],
    ["YYYYMM", /\d{6}/, !1],
    ["YYYY", /\d{4}/, !1],
  ],
  ih = [
    ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
    ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
    ["HH:mm:ss", /\d\d:\d\d:\d\d/],
    ["HH:mm", /\d\d:\d\d/],
    ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
    ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
    ["HHmmss", /\d\d\d\d\d\d/],
    ["HHmm", /\d\d\d\d/],
    ["HH", /\d\d/],
  ],
  nG = /^\/?Date\((-?\d+)/i,
  rG =
    /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  oG = {
    UT: 0,
    GMT: 0,
    EDT: -4 * 60,
    EST: -5 * 60,
    CDT: -5 * 60,
    CST: -6 * 60,
    MDT: -6 * 60,
    MST: -7 * 60,
    PDT: -7 * 60,
    PST: -8 * 60,
  };
function Yb(e) {
  var t,
    n,
    r = e._i,
    o = QW.exec(r) || eG.exec(r),
    i,
    s,
    a,
    l,
    u = pd.length,
    c = ih.length;
  if (o) {
    for (ze(e).iso = !0, t = 0, n = u; t < n; t++)
      if (pd[t][1].exec(o[1])) {
        (s = pd[t][0]), (i = pd[t][2] !== !1);
        break;
      }
    if (s == null) {
      e._isValid = !1;
      return;
    }
    if (o[3]) {
      for (t = 0, n = c; t < n; t++)
        if (ih[t][1].exec(o[3])) {
          a = (o[2] || " ") + ih[t][0];
          break;
        }
      if (a == null) {
        e._isValid = !1;
        return;
      }
    }
    if (!i && a != null) {
      e._isValid = !1;
      return;
    }
    if (o[4])
      if (tG.exec(o[4])) l = "Z";
      else {
        e._isValid = !1;
        return;
      }
    (e._f = s + (a || "") + (l || "")), R5(e);
  } else e._isValid = !1;
}
function iG(e, t, n, r, o, i) {
  var s = [sG(e), Nb.indexOf(t), parseInt(n, 10), parseInt(r, 10), parseInt(o, 10)];
  return i && s.push(parseInt(i, 10)), s;
}
function sG(e) {
  var t = parseInt(e, 10);
  return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
}
function aG(e) {
  return e
    .replace(/\([^()]*\)|[\n\t]/g, " ")
    .replace(/(\s\s+)/g, " ")
    .replace(/^\s\s*/, "")
    .replace(/\s\s*$/, "");
}
function lG(e, t, n) {
  if (e) {
    var r = zb.indexOf(e),
      o = new Date(t[0], t[1], t[2]).getDay();
    if (r !== o) return (ze(n).weekdayMismatch = !0), (n._isValid = !1), !1;
  }
  return !0;
}
function uG(e, t, n) {
  if (e) return oG[e];
  if (t) return 0;
  var r = parseInt(n, 10),
    o = r % 100,
    i = (r - o) / 100;
  return i * 60 + o;
}
function Kb(e) {
  var t = rG.exec(aG(e._i)),
    n;
  if (t) {
    if (((n = iG(t[4], t[3], t[2], t[5], t[6], t[7])), !lG(t[1], n, e))) return;
    (e._a = n),
      (e._tzm = uG(t[8], t[9], t[10])),
      (e._d = Gu.apply(null, e._a)),
      e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
      (ze(e).rfc2822 = !0);
  } else e._isValid = !1;
}
function cG(e) {
  var t = nG.exec(e._i);
  if (t !== null) {
    e._d = new Date(+t[1]);
    return;
  }
  if ((Yb(e), e._isValid === !1)) delete e._isValid;
  else return;
  if ((Kb(e), e._isValid === !1)) delete e._isValid;
  else return;
  e._strict ? (e._isValid = !1) : re.createFromInputFallback(e);
}
re.createFromInputFallback = Sr(
  "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  function (e) {
    e._d = new Date(e._i + (e._useUTC ? " UTC" : ""));
  }
);
function Ks(e, t, n) {
  return e ?? t ?? n;
}
function dG(e) {
  var t = new Date(re.now());
  return e._useUTC
    ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()]
    : [t.getFullYear(), t.getMonth(), t.getDate()];
}
function D5(e) {
  var t,
    n,
    r = [],
    o,
    i,
    s;
  if (!e._d) {
    for (
      o = dG(e),
        e._w && e._a[Jr] == null && e._a[_o] == null && fG(e),
        e._dayOfYear != null &&
          ((s = Ks(e._a[hn], o[hn])),
          (e._dayOfYear > fu(s) || e._dayOfYear === 0) && (ze(e)._overflowDayOfYear = !0),
          (n = Gu(s, 0, e._dayOfYear)),
          (e._a[_o] = n.getUTCMonth()),
          (e._a[Jr] = n.getUTCDate())),
        t = 0;
      t < 3 && e._a[t] == null;
      ++t
    )
      e._a[t] = r[t] = o[t];
    for (; t < 7; t++) e._a[t] = r[t] = e._a[t] == null ? (t === 2 ? 1 : 0) : e._a[t];
    e._a[Jt] === 24 && e._a[Rr] === 0 && e._a[Do] === 0 && e._a[Zi] === 0 && ((e._nextDay = !0), (e._a[Jt] = 0)),
      (e._d = (e._useUTC ? Gu : vW).apply(null, r)),
      (i = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
      e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
      e._nextDay && (e._a[Jt] = 24),
      e._w && typeof e._w.d < "u" && e._w.d !== i && (ze(e).weekdayMismatch = !0);
  }
}
function fG(e) {
  var t, n, r, o, i, s, a, l, u;
  (t = e._w),
    t.GG != null || t.W != null || t.E != null
      ? ((i = 1),
        (s = 4),
        (n = Ks(t.GG, e._a[hn], Uu(Tt(), 1, 4).year)),
        (r = Ks(t.W, 1)),
        (o = Ks(t.E, 1)),
        (o < 1 || o > 7) && (l = !0))
      : ((i = e._locale._week.dow),
        (s = e._locale._week.doy),
        (u = Uu(Tt(), i, s)),
        (n = Ks(t.gg, e._a[hn], u.year)),
        (r = Ks(t.w, u.week)),
        t.d != null
          ? ((o = t.d), (o < 0 || o > 6) && (l = !0))
          : t.e != null
            ? ((o = t.e + i), (t.e < 0 || t.e > 6) && (l = !0))
            : (o = i)),
    r < 1 || r > Oo(n, i, s)
      ? (ze(e)._overflowWeeks = !0)
      : l != null
        ? (ze(e)._overflowWeekday = !0)
        : ((a = Hb(n, r, o, i, s)), (e._a[hn] = a.year), (e._dayOfYear = a.dayOfYear));
}
re.ISO_8601 = function () {};
re.RFC_2822 = function () {};
function R5(e) {
  if (e._f === re.ISO_8601) {
    Yb(e);
    return;
  }
  if (e._f === re.RFC_2822) {
    Kb(e);
    return;
  }
  (e._a = []), (ze(e).empty = !0);
  var t = "" + e._i,
    n,
    r,
    o,
    i,
    s,
    a = t.length,
    l = 0,
    u,
    c;
  for (o = _b(e._f, e._locale).match(b5) || [], c = o.length, n = 0; n < c; n++)
    (i = o[n]),
      (r = (t.match(Qz(i, e)) || [])[0]),
      r &&
        ((s = t.substr(0, t.indexOf(r))),
        s.length > 0 && ze(e).unusedInput.push(s),
        (t = t.slice(t.indexOf(r) + r.length)),
        (l += r.length)),
      Ca[i]
        ? (r ? (ze(e).empty = !1) : ze(e).unusedTokens.push(i), tW(i, r, e))
        : e._strict && !r && ze(e).unusedTokens.push(i);
  (ze(e).charsLeftOver = a - l),
    t.length > 0 && ze(e).unusedInput.push(t),
    e._a[Jt] <= 12 && ze(e).bigHour === !0 && e._a[Jt] > 0 && (ze(e).bigHour = void 0),
    (ze(e).parsedDateParts = e._a.slice(0)),
    (ze(e).meridiem = e._meridiem),
    (e._a[Jt] = pG(e._locale, e._a[Jt], e._meridiem)),
    (u = ze(e).era),
    u !== null && (e._a[hn] = e._locale.erasConvertYear(u, e._a[hn])),
    D5(e),
    _5(e);
}
function pG(e, t, n) {
  var r;
  return n == null
    ? t
    : e.meridiemHour != null
      ? e.meridiemHour(t, n)
      : (e.isPM != null && ((r = e.isPM(n)), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
}
function hG(e) {
  var t,
    n,
    r,
    o,
    i,
    s,
    a = !1,
    l = e._f.length;
  if (l === 0) {
    (ze(e).invalidFormat = !0), (e._d = new Date(NaN));
    return;
  }
  for (o = 0; o < l; o++)
    (i = 0),
      (s = !1),
      (t = v5({}, e)),
      e._useUTC != null && (t._useUTC = e._useUTC),
      (t._f = e._f[o]),
      R5(t),
      y5(t) && (s = !0),
      (i += ze(t).charsLeftOver),
      (i += ze(t).unusedTokens.length * 10),
      (ze(t).score = i),
      a ? i < r && ((r = i), (n = t)) : (r == null || i < r || s) && ((r = i), (n = t), s && (a = !0));
  si(e, n || t);
}
function mG(e) {
  if (!e._d) {
    var t = C5(e._i),
      n = t.day === void 0 ? t.date : t.day;
    (e._a = Eb([t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond], function (r) {
      return r && parseInt(r, 10);
    })),
      D5(e);
  }
}
function gG(e) {
  var t = new kc(_5(Xb(e)));
  return t._nextDay && (t.add(1, "d"), (t._nextDay = void 0)), t;
}
function Xb(e) {
  var t = e._i,
    n = e._f;
  return (
    (e._locale = e._locale || Yo(e._l)),
    t === null || (n === void 0 && t === "")
      ? D0({ nullInput: !0 })
      : (typeof t == "string" && (e._i = t = e._locale.preparse(t)),
        jr(t) ? new kc(_5(t)) : (Sc(t) ? (e._d = t) : Br(n) ? hG(e) : n ? R5(e) : yG(e), y5(e) || (e._d = null), e))
  );
}
function yG(e) {
  var t = e._i;
  En(t)
    ? (e._d = new Date(re.now()))
    : Sc(t)
      ? (e._d = new Date(t.valueOf()))
      : typeof t == "string"
        ? cG(e)
        : Br(t)
          ? ((e._a = Eb(t.slice(0), function (n) {
              return parseInt(n, 10);
            })),
            D5(e))
          : is(t)
            ? mG(e)
            : Ho(t)
              ? (e._d = new Date(t))
              : re.createFromInputFallback(e);
}
function qb(e, t, n, r, o) {
  var i = {};
  return (
    (t === !0 || t === !1) && ((r = t), (t = void 0)),
    (n === !0 || n === !1) && ((r = n), (n = void 0)),
    ((is(e) && g5(e)) || (Br(e) && e.length === 0)) && (e = void 0),
    (i._isAMomentObject = !0),
    (i._useUTC = i._isUTC = o),
    (i._l = n),
    (i._i = e),
    (i._f = t),
    (i._strict = r),
    gG(i)
  );
}
function Tt(e, t, n, r) {
  return qb(e, t, n, r, !1);
}
var vG = Sr(
    "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
    function () {
      var e = Tt.apply(null, arguments);
      return this.isValid() && e.isValid() ? (e < this ? this : e) : D0();
    }
  ),
  xG = Sr(
    "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
    function () {
      var e = Tt.apply(null, arguments);
      return this.isValid() && e.isValid() ? (e > this ? this : e) : D0();
    }
  );
function Zb(e, t) {
  var n, r;
  if ((t.length === 1 && Br(t[0]) && (t = t[0]), !t.length)) return Tt();
  for (n = t[0], r = 1; r < t.length; ++r) (!t[r].isValid() || t[r][e](n)) && (n = t[r]);
  return n;
}
function bG() {
  var e = [].slice.call(arguments, 0);
  return Zb("isBefore", e);
}
function CG() {
  var e = [].slice.call(arguments, 0);
  return Zb("isAfter", e);
}
var wG = function () {
    return Date.now ? Date.now() : +new Date();
  },
  Fl = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];
function SG(e) {
  var t,
    n = !1,
    r,
    o = Fl.length;
  for (t in e) if (ot(e, t) && !($t.call(Fl, t) !== -1 && (e[t] == null || !isNaN(e[t])))) return !1;
  for (r = 0; r < o; ++r)
    if (e[Fl[r]]) {
      if (n) return !1;
      parseFloat(e[Fl[r]]) !== Ke(e[Fl[r]]) && (n = !0);
    }
  return !0;
}
function kG() {
  return this._isValid;
}
function TG() {
  return Hr(NaN);
}
function B0(e) {
  var t = C5(e),
    n = t.year || 0,
    r = t.quarter || 0,
    o = t.month || 0,
    i = t.week || t.isoWeek || 0,
    s = t.day || 0,
    a = t.hour || 0,
    l = t.minute || 0,
    u = t.second || 0,
    c = t.millisecond || 0;
  (this._isValid = SG(t)),
    (this._milliseconds = +c + u * 1e3 + l * 6e4 + a * 1e3 * 60 * 60),
    (this._days = +s + i * 7),
    (this._months = +o + r * 3 + n * 12),
    (this._data = {}),
    (this._locale = Yo()),
    this._bubble();
}
function Kd(e) {
  return e instanceof B0;
}
function t2(e) {
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
}
function MG(e, t, n) {
  var r = Math.min(e.length, t.length),
    o = Math.abs(e.length - t.length),
    i = 0,
    s;
  for (s = 0; s < r; s++) Ke(e[s]) !== Ke(t[s]) && i++;
  return i + o;
}
function Jb(e, t) {
  Oe(e, 0, 0, function () {
    var n = this.utcOffset(),
      r = "+";
    return n < 0 && ((n = -n), (r = "-")), r + uo(~~(n / 60), 2) + t + uo(~~n % 60, 2);
  });
}
Jb("Z", ":");
Jb("ZZ", "");
be("Z", L0);
be("ZZ", L0);
vt(["Z", "ZZ"], function (e, t, n) {
  (n._useUTC = !0), (n._tzm = I5(L0, e));
});
var EG = /([\+\-]|\d\d)/gi;
function I5(e, t) {
  var n = (t || "").match(e),
    r,
    o,
    i;
  return n === null
    ? null
    : ((r = n[n.length - 1] || []),
      (o = (r + "").match(EG) || ["-", 0, 0]),
      (i = +(o[1] * 60) + Ke(o[2])),
      i === 0 ? 0 : o[0] === "+" ? i : -i);
}
function O5(e, t) {
  var n, r;
  return t._isUTC
    ? ((n = t.clone()),
      (r = (jr(e) || Sc(e) ? e.valueOf() : Tt(e).valueOf()) - n.valueOf()),
      n._d.setTime(n._d.valueOf() + r),
      re.updateOffset(n, !1),
      n)
    : Tt(e).local();
}
function n2(e) {
  return -Math.round(e._d.getTimezoneOffset());
}
re.updateOffset = function () {};
function PG(e, t, n) {
  var r = this._offset || 0,
    o;
  if (!this.isValid()) return e != null ? this : NaN;
  if (e != null) {
    if (typeof e == "string") {
      if (((e = I5(L0, e)), e === null)) return this;
    } else Math.abs(e) < 16 && !n && (e = e * 60);
    return (
      !this._isUTC && t && (o = n2(this)),
      (this._offset = e),
      (this._isUTC = !0),
      o != null && this.add(o, "m"),
      r !== e &&
        (!t || this._changeInProgress
          ? tC(this, Hr(e - r, "m"), 1, !1)
          : this._changeInProgress ||
            ((this._changeInProgress = !0), re.updateOffset(this, !0), (this._changeInProgress = null))),
      this
    );
  } else return this._isUTC ? r : n2(this);
}
function AG(e, t) {
  return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
}
function _G(e) {
  return this.utcOffset(0, e);
}
function DG(e) {
  return this._isUTC && (this.utcOffset(0, e), (this._isUTC = !1), e && this.subtract(n2(this), "m")), this;
}
function RG() {
  if (this._tzm != null) this.utcOffset(this._tzm, !1, !0);
  else if (typeof this._i == "string") {
    var e = I5(Zz, this._i);
    e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
  }
  return this;
}
function IG(e) {
  return this.isValid() ? ((e = e ? Tt(e).utcOffset() : 0), (this.utcOffset() - e) % 60 === 0) : !1;
}
function OG() {
  return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
}
function FG() {
  if (!En(this._isDSTShifted)) return this._isDSTShifted;
  var e = {},
    t;
  return (
    v5(e, this),
    (e = Xb(e)),
    e._a
      ? ((t = e._isUTC ? mo(e._a) : Tt(e._a)), (this._isDSTShifted = this.isValid() && MG(e._a, t.toArray()) > 0))
      : (this._isDSTShifted = !1),
    this._isDSTShifted
  );
}
function LG() {
  return this.isValid() ? !this._isUTC : !1;
}
function NG() {
  return this.isValid() ? this._isUTC : !1;
}
function Qb() {
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
}
var $G = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  BG =
    /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function Hr(e, t) {
  var n = e,
    r = null,
    o,
    i,
    s;
  return (
    Kd(e)
      ? (n = { ms: e._milliseconds, d: e._days, M: e._months })
      : Ho(e) || !isNaN(+e)
        ? ((n = {}), t ? (n[t] = +e) : (n.milliseconds = +e))
        : (r = $G.exec(e))
          ? ((o = r[1] === "-" ? -1 : 1),
            (n = {
              y: 0,
              d: Ke(r[Jr]) * o,
              h: Ke(r[Jt]) * o,
              m: Ke(r[Rr]) * o,
              s: Ke(r[Do]) * o,
              ms: Ke(t2(r[Zi] * 1e3)) * o,
            }))
          : (r = BG.exec(e))
            ? ((o = r[1] === "-" ? -1 : 1),
              (n = {
                y: Bi(r[2], o),
                M: Bi(r[3], o),
                w: Bi(r[4], o),
                d: Bi(r[5], o),
                h: Bi(r[6], o),
                m: Bi(r[7], o),
                s: Bi(r[8], o),
              }))
            : n == null
              ? (n = {})
              : typeof n == "object" &&
                ("from" in n || "to" in n) &&
                ((s = jG(Tt(n.from), Tt(n.to))), (n = {}), (n.ms = s.milliseconds), (n.M = s.months)),
    (i = new B0(n)),
    Kd(e) && ot(e, "_locale") && (i._locale = e._locale),
    Kd(e) && ot(e, "_isValid") && (i._isValid = e._isValid),
    i
  );
}
Hr.fn = B0.prototype;
Hr.invalid = TG;
function Bi(e, t) {
  var n = e && parseFloat(e.replace(",", "."));
  return (isNaN(n) ? 0 : n) * t;
}
function y6(e, t) {
  var n = {};
  return (
    (n.months = t.month() - e.month() + (t.year() - e.year()) * 12),
    e.clone().add(n.months, "M").isAfter(t) && --n.months,
    (n.milliseconds = +t - +e.clone().add(n.months, "M")),
    n
  );
}
function jG(e, t) {
  var n;
  return e.isValid() && t.isValid()
    ? ((t = O5(t, e)),
      e.isBefore(t) ? (n = y6(e, t)) : ((n = y6(t, e)), (n.milliseconds = -n.milliseconds), (n.months = -n.months)),
      n)
    : { milliseconds: 0, months: 0 };
}
function eC(e, t) {
  return function (n, r) {
    var o, i;
    return (
      r !== null &&
        !isNaN(+r) &&
        (Ab(
          t,
          "moment()." +
            t +
            "(period, number) is deprecated. Please use moment()." +
            t +
            "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
        ),
        (i = n),
        (n = r),
        (r = i)),
      (o = Hr(n, r)),
      tC(this, o, e),
      this
    );
  };
}
function tC(e, t, n, r) {
  var o = t._milliseconds,
    i = t2(t._days),
    s = t2(t._months);
  e.isValid() &&
    ((r = r ?? !0),
    s && Bb(e, Wu(e, "Month") + s * n),
    i && Lb(e, "Date", Wu(e, "Date") + i * n),
    o && e._d.setTime(e._d.valueOf() + o * n),
    r && re.updateOffset(e, i || s));
}
var VG = eC(1, "add"),
  HG = eC(-1, "subtract");
function nC(e) {
  return typeof e == "string" || e instanceof String;
}
function zG(e) {
  return jr(e) || Sc(e) || nC(e) || Ho(e) || GG(e) || WG(e) || e === null || e === void 0;
}
function WG(e) {
  var t = is(e) && !g5(e),
    n = !1,
    r = [
      "years",
      "year",
      "y",
      "months",
      "month",
      "M",
      "days",
      "day",
      "d",
      "dates",
      "date",
      "D",
      "hours",
      "hour",
      "h",
      "minutes",
      "minute",
      "m",
      "seconds",
      "second",
      "s",
      "milliseconds",
      "millisecond",
      "ms",
    ],
    o,
    i,
    s = r.length;
  for (o = 0; o < s; o += 1) (i = r[o]), (n = n || ot(e, i));
  return t && n;
}
function GG(e) {
  var t = Br(e),
    n = !1;
  return (
    t &&
      (n =
        e.filter(function (r) {
          return !Ho(r) && nC(e);
        }).length === 0),
    t && n
  );
}
function UG(e) {
  var t = is(e) && !g5(e),
    n = !1,
    r = ["sameDay", "nextDay", "lastDay", "nextWeek", "lastWeek", "sameElse"],
    o,
    i;
  for (o = 0; o < r.length; o += 1) (i = r[o]), (n = n || ot(e, i));
  return t && n;
}
function YG(e, t) {
  var n = e.diff(t, "days", !0);
  return n < -6
    ? "sameElse"
    : n < -1
      ? "lastWeek"
      : n < 0
        ? "lastDay"
        : n < 1
          ? "sameDay"
          : n < 2
            ? "nextDay"
            : n < 7
              ? "nextWeek"
              : "sameElse";
}
function KG(e, t) {
  arguments.length === 1 &&
    (arguments[0]
      ? zG(arguments[0])
        ? ((e = arguments[0]), (t = void 0))
        : UG(arguments[0]) && ((t = arguments[0]), (e = void 0))
      : ((e = void 0), (t = void 0)));
  var n = e || Tt(),
    r = O5(n, this).startOf("day"),
    o = re.calendarFormat(this, r) || "sameElse",
    i = t && (go(t[o]) ? t[o].call(this, n) : t[o]);
  return this.format(i || this.localeData().calendar(o, this, Tt(n)));
}
function XG() {
  return new kc(this);
}
function qG(e, t) {
  var n = jr(e) ? e : Tt(e);
  return this.isValid() && n.isValid()
    ? ((t = kr(t) || "millisecond"),
      t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf())
    : !1;
}
function ZG(e, t) {
  var n = jr(e) ? e : Tt(e);
  return this.isValid() && n.isValid()
    ? ((t = kr(t) || "millisecond"),
      t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf())
    : !1;
}
function JG(e, t, n, r) {
  var o = jr(e) ? e : Tt(e),
    i = jr(t) ? t : Tt(t);
  return this.isValid() && o.isValid() && i.isValid()
    ? ((r = r || "()"),
      (r[0] === "(" ? this.isAfter(o, n) : !this.isBefore(o, n)) &&
        (r[1] === ")" ? this.isBefore(i, n) : !this.isAfter(i, n)))
    : !1;
}
function QG(e, t) {
  var n = jr(e) ? e : Tt(e),
    r;
  return this.isValid() && n.isValid()
    ? ((t = kr(t) || "millisecond"),
      t === "millisecond"
        ? this.valueOf() === n.valueOf()
        : ((r = n.valueOf()), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf()))
    : !1;
}
function eU(e, t) {
  return this.isSame(e, t) || this.isAfter(e, t);
}
function tU(e, t) {
  return this.isSame(e, t) || this.isBefore(e, t);
}
function nU(e, t, n) {
  var r, o, i;
  if (!this.isValid()) return NaN;
  if (((r = O5(e, this)), !r.isValid())) return NaN;
  switch (((o = (r.utcOffset() - this.utcOffset()) * 6e4), (t = kr(t)), t)) {
    case "year":
      i = Xd(this, r) / 12;
      break;
    case "month":
      i = Xd(this, r);
      break;
    case "quarter":
      i = Xd(this, r) / 3;
      break;
    case "second":
      i = (this - r) / 1e3;
      break;
    case "minute":
      i = (this - r) / 6e4;
      break;
    case "hour":
      i = (this - r) / 36e5;
      break;
    case "day":
      i = (this - r - o) / 864e5;
      break;
    case "week":
      i = (this - r - o) / 6048e5;
      break;
    default:
      i = this - r;
  }
  return n ? i : sr(i);
}
function Xd(e, t) {
  if (e.date() < t.date()) return -Xd(t, e);
  var n = (t.year() - e.year()) * 12 + (t.month() - e.month()),
    r = e.clone().add(n, "months"),
    o,
    i;
  return (
    t - r < 0
      ? ((o = e.clone().add(n - 1, "months")), (i = (t - r) / (r - o)))
      : ((o = e.clone().add(n + 1, "months")), (i = (t - r) / (o - r))),
    -(n + i) || 0
  );
}
re.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
re.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
function rU() {
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
}
function oU(e) {
  if (!this.isValid()) return null;
  var t = e !== !0,
    n = t ? this.clone().utc() : this;
  return n.year() < 0 || n.year() > 9999
    ? Yd(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")
    : go(Date.prototype.toISOString)
      ? t
        ? this.toDate().toISOString()
        : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Yd(n, "Z"))
      : Yd(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
}
function iU() {
  if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
  var e = "moment",
    t = "",
    n,
    r,
    o,
    i;
  return (
    this.isLocal() || ((e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone"), (t = "Z")),
    (n = "[" + e + '("]'),
    (r = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"),
    (o = "-MM-DD[T]HH:mm:ss.SSS"),
    (i = t + '[")]'),
    this.format(n + r + o + i)
  );
}
function sU(e) {
  e || (e = this.isUtc() ? re.defaultFormatUtc : re.defaultFormat);
  var t = Yd(this, e);
  return this.localeData().postformat(t);
}
function aU(e, t) {
  return this.isValid() && ((jr(e) && e.isValid()) || Tt(e).isValid())
    ? Hr({ to: this, from: e }).locale(this.locale()).humanize(!t)
    : this.localeData().invalidDate();
}
function lU(e) {
  return this.from(Tt(), e);
}
function uU(e, t) {
  return this.isValid() && ((jr(e) && e.isValid()) || Tt(e).isValid())
    ? Hr({ from: this, to: e }).locale(this.locale()).humanize(!t)
    : this.localeData().invalidDate();
}
function cU(e) {
  return this.to(Tt(), e);
}
function rC(e) {
  var t;
  return e === void 0 ? this._locale._abbr : ((t = Yo(e)), t != null && (this._locale = t), this);
}
var oC = Sr(
  "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  function (e) {
    return e === void 0 ? this.localeData() : this.locale(e);
  }
);
function iC() {
  return this._locale;
}
var Kf = 1e3,
  wa = 60 * Kf,
  Xf = 60 * wa,
  sC = (365 * 400 + 97) * 24 * Xf;
function Sa(e, t) {
  return ((e % t) + t) % t;
}
function aC(e, t, n) {
  return e < 100 && e >= 0 ? new Date(e + 400, t, n) - sC : new Date(e, t, n).valueOf();
}
function lC(e, t, n) {
  return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - sC : Date.UTC(e, t, n);
}
function dU(e) {
  var t, n;
  if (((e = kr(e)), e === void 0 || e === "millisecond" || !this.isValid())) return this;
  switch (((n = this._isUTC ? lC : aC), e)) {
    case "year":
      t = n(this.year(), 0, 1);
      break;
    case "quarter":
      t = n(this.year(), this.month() - (this.month() % 3), 1);
      break;
    case "month":
      t = n(this.year(), this.month(), 1);
      break;
    case "week":
      t = n(this.year(), this.month(), this.date() - this.weekday());
      break;
    case "isoWeek":
      t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
      break;
    case "day":
    case "date":
      t = n(this.year(), this.month(), this.date());
      break;
    case "hour":
      (t = this._d.valueOf()), (t -= Sa(t + (this._isUTC ? 0 : this.utcOffset() * wa), Xf));
      break;
    case "minute":
      (t = this._d.valueOf()), (t -= Sa(t, wa));
      break;
    case "second":
      (t = this._d.valueOf()), (t -= Sa(t, Kf));
      break;
  }
  return this._d.setTime(t), re.updateOffset(this, !0), this;
}
function fU(e) {
  var t, n;
  if (((e = kr(e)), e === void 0 || e === "millisecond" || !this.isValid())) return this;
  switch (((n = this._isUTC ? lC : aC), e)) {
    case "year":
      t = n(this.year() + 1, 0, 1) - 1;
      break;
    case "quarter":
      t = n(this.year(), this.month() - (this.month() % 3) + 3, 1) - 1;
      break;
    case "month":
      t = n(this.year(), this.month() + 1, 1) - 1;
      break;
    case "week":
      t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
      break;
    case "isoWeek":
      t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
      break;
    case "day":
    case "date":
      t = n(this.year(), this.month(), this.date() + 1) - 1;
      break;
    case "hour":
      (t = this._d.valueOf()), (t += Xf - Sa(t + (this._isUTC ? 0 : this.utcOffset() * wa), Xf) - 1);
      break;
    case "minute":
      (t = this._d.valueOf()), (t += wa - Sa(t, wa) - 1);
      break;
    case "second":
      (t = this._d.valueOf()), (t += Kf - Sa(t, Kf) - 1);
      break;
  }
  return this._d.setTime(t), re.updateOffset(this, !0), this;
}
function pU() {
  return this._d.valueOf() - (this._offset || 0) * 6e4;
}
function hU() {
  return Math.floor(this.valueOf() / 1e3);
}
function mU() {
  return new Date(this.valueOf());
}
function gU() {
  var e = this;
  return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()];
}
function yU() {
  var e = this;
  return {
    years: e.year(),
    months: e.month(),
    date: e.date(),
    hours: e.hours(),
    minutes: e.minutes(),
    seconds: e.seconds(),
    milliseconds: e.milliseconds(),
  };
}
function vU() {
  return this.isValid() ? this.toISOString() : null;
}
function xU() {
  return y5(this);
}
function bU() {
  return si({}, ze(this));
}
function CU() {
  return ze(this).overflow;
}
function wU() {
  return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict };
}
Oe("N", 0, 0, "eraAbbr");
Oe("NN", 0, 0, "eraAbbr");
Oe("NNN", 0, 0, "eraAbbr");
Oe("NNNN", 0, 0, "eraName");
Oe("NNNNN", 0, 0, "eraNarrow");
Oe("y", ["y", 1], "yo", "eraYear");
Oe("y", ["yy", 2], 0, "eraYear");
Oe("y", ["yyy", 3], 0, "eraYear");
Oe("y", ["yyyy", 4], 0, "eraYear");
be("N", F5);
be("NN", F5);
be("NNN", F5);
be("NNNN", IU);
be("NNNNN", OU);
vt(["N", "NN", "NNN", "NNNN", "NNNNN"], function (e, t, n, r) {
  var o = n._locale.erasParse(e, r, n._strict);
  o ? (ze(n).era = o) : (ze(n).invalidEra = e);
});
be("y", ll);
be("yy", ll);
be("yyy", ll);
be("yyyy", ll);
be("yo", FU);
vt(["y", "yy", "yyy", "yyyy"], hn);
vt(["yo"], function (e, t, n, r) {
  var o;
  n._locale._eraYearOrdinalRegex && (o = e.match(n._locale._eraYearOrdinalRegex)),
    n._locale.eraYearOrdinalParse ? (t[hn] = n._locale.eraYearOrdinalParse(e, o)) : (t[hn] = parseInt(e, 10));
});
function SU(e, t) {
  var n,
    r,
    o,
    i = this._eras || Yo("en")._eras;
  for (n = 0, r = i.length; n < r; ++n) {
    switch (typeof i[n].since) {
      case "string":
        (o = re(i[n].since).startOf("day")), (i[n].since = o.valueOf());
        break;
    }
    switch (typeof i[n].until) {
      case "undefined":
        i[n].until = 1 / 0;
        break;
      case "string":
        (o = re(i[n].until).startOf("day").valueOf()), (i[n].until = o.valueOf());
        break;
    }
  }
  return i;
}
function kU(e, t, n) {
  var r,
    o,
    i = this.eras(),
    s,
    a,
    l;
  for (e = e.toUpperCase(), r = 0, o = i.length; r < o; ++r)
    if (((s = i[r].name.toUpperCase()), (a = i[r].abbr.toUpperCase()), (l = i[r].narrow.toUpperCase()), n))
      switch (t) {
        case "N":
        case "NN":
        case "NNN":
          if (a === e) return i[r];
          break;
        case "NNNN":
          if (s === e) return i[r];
          break;
        case "NNNNN":
          if (l === e) return i[r];
          break;
      }
    else if ([s, a, l].indexOf(e) >= 0) return i[r];
}
function TU(e, t) {
  var n = e.since <= e.until ? 1 : -1;
  return t === void 0 ? re(e.since).year() : re(e.since).year() + (t - e.offset) * n;
}
function MU() {
  var e,
    t,
    n,
    r = this.localeData().eras();
  for (e = 0, t = r.length; e < t; ++e)
    if (
      ((n = this.clone().startOf("day").valueOf()),
      (r[e].since <= n && n <= r[e].until) || (r[e].until <= n && n <= r[e].since))
    )
      return r[e].name;
  return "";
}
function EU() {
  var e,
    t,
    n,
    r = this.localeData().eras();
  for (e = 0, t = r.length; e < t; ++e)
    if (
      ((n = this.clone().startOf("day").valueOf()),
      (r[e].since <= n && n <= r[e].until) || (r[e].until <= n && n <= r[e].since))
    )
      return r[e].narrow;
  return "";
}
function PU() {
  var e,
    t,
    n,
    r = this.localeData().eras();
  for (e = 0, t = r.length; e < t; ++e)
    if (
      ((n = this.clone().startOf("day").valueOf()),
      (r[e].since <= n && n <= r[e].until) || (r[e].until <= n && n <= r[e].since))
    )
      return r[e].abbr;
  return "";
}
function AU() {
  var e,
    t,
    n,
    r,
    o = this.localeData().eras();
  for (e = 0, t = o.length; e < t; ++e)
    if (
      ((n = o[e].since <= o[e].until ? 1 : -1),
      (r = this.clone().startOf("day").valueOf()),
      (o[e].since <= r && r <= o[e].until) || (o[e].until <= r && r <= o[e].since))
    )
      return (this.year() - re(o[e].since).year()) * n + o[e].offset;
  return this.year();
}
function _U(e) {
  return ot(this, "_erasNameRegex") || L5.call(this), e ? this._erasNameRegex : this._erasRegex;
}
function DU(e) {
  return ot(this, "_erasAbbrRegex") || L5.call(this), e ? this._erasAbbrRegex : this._erasRegex;
}
function RU(e) {
  return ot(this, "_erasNarrowRegex") || L5.call(this), e ? this._erasNarrowRegex : this._erasRegex;
}
function F5(e, t) {
  return t.erasAbbrRegex(e);
}
function IU(e, t) {
  return t.erasNameRegex(e);
}
function OU(e, t) {
  return t.erasNarrowRegex(e);
}
function FU(e, t) {
  return t._eraYearOrdinalRegex || ll;
}
function L5() {
  var e = [],
    t = [],
    n = [],
    r = [],
    o,
    i,
    s,
    a,
    l,
    u = this.eras();
  for (o = 0, i = u.length; o < i; ++o)
    (s = Io(u[o].name)),
      (a = Io(u[o].abbr)),
      (l = Io(u[o].narrow)),
      t.push(s),
      e.push(a),
      n.push(l),
      r.push(s),
      r.push(a),
      r.push(l);
  (this._erasRegex = new RegExp("^(" + r.join("|") + ")", "i")),
    (this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i")),
    (this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i")),
    (this._erasNarrowRegex = new RegExp("^(" + n.join("|") + ")", "i"));
}
Oe(0, ["gg", 2], 0, function () {
  return this.weekYear() % 100;
});
Oe(0, ["GG", 2], 0, function () {
  return this.isoWeekYear() % 100;
});
function j0(e, t) {
  Oe(0, [e, e.length], 0, t);
}
j0("gggg", "weekYear");
j0("ggggg", "weekYear");
j0("GGGG", "isoWeekYear");
j0("GGGGG", "isoWeekYear");
be("G", F0);
be("g", F0);
be("GG", Mt, Zn);
be("gg", Mt, Zn);
be("GGGG", S5, w5);
be("gggg", S5, w5);
be("GGGGG", O0, R0);
be("ggggg", O0, R0);
Mc(["gggg", "ggggg", "GGGG", "GGGGG"], function (e, t, n, r) {
  t[r.substr(0, 2)] = Ke(e);
});
Mc(["gg", "GG"], function (e, t, n, r) {
  t[r] = re.parseTwoDigitYear(e);
});
function LU(e) {
  return uC.call(
    this,
    e,
    this.week(),
    this.weekday() + this.localeData()._week.dow,
    this.localeData()._week.dow,
    this.localeData()._week.doy
  );
}
function NU(e) {
  return uC.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
}
function $U() {
  return Oo(this.year(), 1, 4);
}
function BU() {
  return Oo(this.isoWeekYear(), 1, 4);
}
function jU() {
  var e = this.localeData()._week;
  return Oo(this.year(), e.dow, e.doy);
}
function VU() {
  var e = this.localeData()._week;
  return Oo(this.weekYear(), e.dow, e.doy);
}
function uC(e, t, n, r, o) {
  var i;
  return e == null ? Uu(this, r, o).year : ((i = Oo(e, r, o)), t > i && (t = i), HU.call(this, e, t, n, r, o));
}
function HU(e, t, n, r, o) {
  var i = Hb(e, t, n, r, o),
    s = Gu(i.year, 0, i.dayOfYear);
  return this.year(s.getUTCFullYear()), this.month(s.getUTCMonth()), this.date(s.getUTCDate()), this;
}
Oe("Q", 0, "Qo", "quarter");
be("Q", Db);
vt("Q", function (e, t) {
  t[_o] = (Ke(e) - 1) * 3;
});
function zU(e) {
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + (this.month() % 3));
}
Oe("D", ["DD", 2], "Do", "date");
be("D", Mt, ul);
be("DD", Mt, Zn);
be("Do", function (e, t) {
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
});
vt(["D", "DD"], Jr);
vt("Do", function (e, t) {
  t[Jr] = Ke(e.match(Mt)[0]);
});
var cC = cl("Date", !0);
Oe("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
be("DDD", I0);
be("DDDD", Rb);
vt(["DDD", "DDDD"], function (e, t, n) {
  n._dayOfYear = Ke(e);
});
function WU(e) {
  var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
  return e == null ? t : this.add(e - t, "d");
}
Oe("m", ["mm", 2], 0, "minute");
be("m", Mt, k5);
be("mm", Mt, Zn);
vt(["m", "mm"], Rr);
var GU = cl("Minutes", !1);
Oe("s", ["ss", 2], 0, "second");
be("s", Mt, k5);
be("ss", Mt, Zn);
vt(["s", "ss"], Do);
var UU = cl("Seconds", !1);
Oe("S", 0, 0, function () {
  return ~~(this.millisecond() / 100);
});
Oe(0, ["SS", 2], 0, function () {
  return ~~(this.millisecond() / 10);
});
Oe(0, ["SSS", 3], 0, "millisecond");
Oe(0, ["SSSS", 4], 0, function () {
  return this.millisecond() * 10;
});
Oe(0, ["SSSSS", 5], 0, function () {
  return this.millisecond() * 100;
});
Oe(0, ["SSSSSS", 6], 0, function () {
  return this.millisecond() * 1e3;
});
Oe(0, ["SSSSSSS", 7], 0, function () {
  return this.millisecond() * 1e4;
});
Oe(0, ["SSSSSSSS", 8], 0, function () {
  return this.millisecond() * 1e5;
});
Oe(0, ["SSSSSSSSS", 9], 0, function () {
  return this.millisecond() * 1e6;
});
be("S", I0, Db);
be("SS", I0, Zn);
be("SSS", I0, Rb);
var ai, dC;
for (ai = "SSSS"; ai.length <= 9; ai += "S") be(ai, ll);
function YU(e, t) {
  t[Zi] = Ke(("0." + e) * 1e3);
}
for (ai = "S"; ai.length <= 9; ai += "S") vt(ai, YU);
dC = cl("Milliseconds", !1);
Oe("z", 0, 0, "zoneAbbr");
Oe("zz", 0, 0, "zoneName");
function KU() {
  return this._isUTC ? "UTC" : "";
}
function XU() {
  return this._isUTC ? "Coordinated Universal Time" : "";
}
var de = kc.prototype;
de.add = VG;
de.calendar = KG;
de.clone = XG;
de.diff = nU;
de.endOf = fU;
de.format = sU;
de.from = aU;
de.fromNow = lU;
de.to = uU;
de.toNow = cU;
de.get = iW;
de.invalidAt = CU;
de.isAfter = qG;
de.isBefore = ZG;
de.isBetween = JG;
de.isSame = QG;
de.isSameOrAfter = eU;
de.isSameOrBefore = tU;
de.isValid = xU;
de.lang = oC;
de.locale = rC;
de.localeData = iC;
de.max = xG;
de.min = vG;
de.parsingFlags = bU;
de.set = sW;
de.startOf = dU;
de.subtract = HG;
de.toArray = gU;
de.toObject = yU;
de.toDate = mU;
de.toISOString = oU;
de.inspect = iU;
typeof Symbol < "u" &&
  Symbol.for != null &&
  (de[Symbol.for("nodejs.util.inspect.custom")] = function () {
    return "Moment<" + this.format() + ">";
  });
de.toJSON = vU;
de.toString = rU;
de.unix = hU;
de.valueOf = pU;
de.creationData = wU;
de.eraName = MU;
de.eraNarrow = EU;
de.eraAbbr = PU;
de.eraYear = AU;
de.year = Fb;
de.isLeapYear = oW;
de.weekYear = LU;
de.isoWeekYear = NU;
de.quarter = de.quarters = zU;
de.month = jb;
de.daysInMonth = mW;
de.week = de.weeks = SW;
de.isoWeek = de.isoWeeks = kW;
de.weeksInYear = jU;
de.weeksInWeekYear = VU;
de.isoWeeksInYear = $U;
de.isoWeeksInISOWeekYear = BU;
de.date = cC;
de.day = de.days = NW;
de.weekday = $W;
de.isoWeekday = BW;
de.dayOfYear = WU;
de.hour = de.hours = UW;
de.minute = de.minutes = GU;
de.second = de.seconds = UU;
de.millisecond = de.milliseconds = dC;
de.utcOffset = PG;
de.utc = _G;
de.local = DG;
de.parseZone = RG;
de.hasAlignedHourOffset = IG;
de.isDST = OG;
de.isLocal = LG;
de.isUtcOffset = NG;
de.isUtc = Qb;
de.isUTC = Qb;
de.zoneAbbr = KU;
de.zoneName = XU;
de.dates = Sr("dates accessor is deprecated. Use date instead.", cC);
de.months = Sr("months accessor is deprecated. Use month instead", jb);
de.years = Sr("years accessor is deprecated. Use year instead", Fb);
de.zone = Sr(
  "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  AG
);
de.isDSTShifted = Sr(
  "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  FG
);
function qU(e) {
  return Tt(e * 1e3);
}
function ZU() {
  return Tt.apply(null, arguments).parseZone();
}
function fC(e) {
  return e;
}
var it = x5.prototype;
it.calendar = Lz;
it.longDateFormat = jz;
it.invalidDate = Hz;
it.ordinal = Gz;
it.preparse = fC;
it.postformat = fC;
it.relativeTime = Yz;
it.pastFuture = Kz;
it.set = Oz;
it.eras = SU;
it.erasParse = kU;
it.erasConvertYear = TU;
it.erasAbbrRegex = DU;
it.erasNameRegex = _U;
it.erasNarrowRegex = RU;
it.months = dW;
it.monthsShort = fW;
it.monthsParse = hW;
it.monthsRegex = yW;
it.monthsShortRegex = gW;
it.week = xW;
it.firstDayOfYear = wW;
it.firstDayOfWeek = CW;
it.weekdays = RW;
it.weekdaysMin = OW;
it.weekdaysShort = IW;
it.weekdaysParse = LW;
it.weekdaysRegex = jW;
it.weekdaysShortRegex = VW;
it.weekdaysMinRegex = HW;
it.isPM = WW;
it.meridiem = YW;
function qf(e, t, n, r) {
  var o = Yo(),
    i = mo().set(r, t);
  return o[n](i, e);
}
function pC(e, t, n) {
  if ((Ho(e) && ((t = e), (e = void 0)), (e = e || ""), t != null)) return qf(e, t, n, "month");
  var r,
    o = [];
  for (r = 0; r < 12; r++) o[r] = qf(e, r, n, "month");
  return o;
}
function N5(e, t, n, r) {
  typeof e == "boolean"
    ? (Ho(t) && ((n = t), (t = void 0)), (t = t || ""))
    : ((t = e), (n = t), (e = !1), Ho(t) && ((n = t), (t = void 0)), (t = t || ""));
  var o = Yo(),
    i = e ? o._week.dow : 0,
    s,
    a = [];
  if (n != null) return qf(t, (n + i) % 7, r, "day");
  for (s = 0; s < 7; s++) a[s] = qf(t, (s + i) % 7, r, "day");
  return a;
}
function JU(e, t) {
  return pC(e, t, "months");
}
function QU(e, t) {
  return pC(e, t, "monthsShort");
}
function eY(e, t, n) {
  return N5(e, t, n, "weekdays");
}
function tY(e, t, n) {
  return N5(e, t, n, "weekdaysShort");
}
function nY(e, t, n) {
  return N5(e, t, n, "weekdaysMin");
}
gi("en", {
  eras: [
    { since: "0001-01-01", until: 1 / 0, offset: 1, name: "Anno Domini", narrow: "AD", abbr: "AD" },
    { since: "0000-12-31", until: -1 / 0, offset: 1, name: "Before Christ", narrow: "BC", abbr: "BC" },
  ],
  dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  ordinal: function (e) {
    var t = e % 10,
      n = Ke((e % 100) / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
    return e + n;
  },
});
re.lang = Sr("moment.lang is deprecated. Use moment.locale instead.", gi);
re.langData = Sr("moment.langData is deprecated. Use moment.localeData instead.", Yo);
var vo = Math.abs;
function rY() {
  var e = this._data;
  return (
    (this._milliseconds = vo(this._milliseconds)),
    (this._days = vo(this._days)),
    (this._months = vo(this._months)),
    (e.milliseconds = vo(e.milliseconds)),
    (e.seconds = vo(e.seconds)),
    (e.minutes = vo(e.minutes)),
    (e.hours = vo(e.hours)),
    (e.months = vo(e.months)),
    (e.years = vo(e.years)),
    this
  );
}
function hC(e, t, n, r) {
  var o = Hr(t, n);
  return (e._milliseconds += r * o._milliseconds), (e._days += r * o._days), (e._months += r * o._months), e._bubble();
}
function oY(e, t) {
  return hC(this, e, t, 1);
}
function iY(e, t) {
  return hC(this, e, t, -1);
}
function v6(e) {
  return e < 0 ? Math.floor(e) : Math.ceil(e);
}
function sY() {
  var e = this._milliseconds,
    t = this._days,
    n = this._months,
    r = this._data,
    o,
    i,
    s,
    a,
    l;
  return (
    (e >= 0 && t >= 0 && n >= 0) || (e <= 0 && t <= 0 && n <= 0) || ((e += v6(r2(n) + t) * 864e5), (t = 0), (n = 0)),
    (r.milliseconds = e % 1e3),
    (o = sr(e / 1e3)),
    (r.seconds = o % 60),
    (i = sr(o / 60)),
    (r.minutes = i % 60),
    (s = sr(i / 60)),
    (r.hours = s % 24),
    (t += sr(s / 24)),
    (l = sr(mC(t))),
    (n += l),
    (t -= v6(r2(l))),
    (a = sr(n / 12)),
    (n %= 12),
    (r.days = t),
    (r.months = n),
    (r.years = a),
    this
  );
}
function mC(e) {
  return (e * 4800) / 146097;
}
function r2(e) {
  return (e * 146097) / 4800;
}
function aY(e) {
  if (!this.isValid()) return NaN;
  var t,
    n,
    r = this._milliseconds;
  if (((e = kr(e)), e === "month" || e === "quarter" || e === "year"))
    switch (((t = this._days + r / 864e5), (n = this._months + mC(t)), e)) {
      case "month":
        return n;
      case "quarter":
        return n / 3;
      case "year":
        return n / 12;
    }
  else
    switch (((t = this._days + Math.round(r2(this._months))), e)) {
      case "week":
        return t / 7 + r / 6048e5;
      case "day":
        return t + r / 864e5;
      case "hour":
        return t * 24 + r / 36e5;
      case "minute":
        return t * 1440 + r / 6e4;
      case "second":
        return t * 86400 + r / 1e3;
      case "millisecond":
        return Math.floor(t * 864e5) + r;
      default:
        throw new Error("Unknown unit " + e);
    }
}
function Ko(e) {
  return function () {
    return this.as(e);
  };
}
var gC = Ko("ms"),
  lY = Ko("s"),
  uY = Ko("m"),
  cY = Ko("h"),
  dY = Ko("d"),
  fY = Ko("w"),
  pY = Ko("M"),
  hY = Ko("Q"),
  mY = Ko("y"),
  gY = gC;
function yY() {
  return Hr(this);
}
function vY(e) {
  return (e = kr(e)), this.isValid() ? this[e + "s"]() : NaN;
}
function Ms(e) {
  return function () {
    return this.isValid() ? this._data[e] : NaN;
  };
}
var xY = Ms("milliseconds"),
  bY = Ms("seconds"),
  CY = Ms("minutes"),
  wY = Ms("hours"),
  SY = Ms("days"),
  kY = Ms("months"),
  TY = Ms("years");
function MY() {
  return sr(this.days() / 7);
}
var So = Math.round,
  ua = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 };
function EY(e, t, n, r, o) {
  return o.relativeTime(t || 1, !!n, e, r);
}
function PY(e, t, n, r) {
  var o = Hr(e).abs(),
    i = So(o.as("s")),
    s = So(o.as("m")),
    a = So(o.as("h")),
    l = So(o.as("d")),
    u = So(o.as("M")),
    c = So(o.as("w")),
    d = So(o.as("y")),
    p =
      (i <= n.ss && ["s", i]) ||
      (i < n.s && ["ss", i]) ||
      (s <= 1 && ["m"]) ||
      (s < n.m && ["mm", s]) ||
      (a <= 1 && ["h"]) ||
      (a < n.h && ["hh", a]) ||
      (l <= 1 && ["d"]) ||
      (l < n.d && ["dd", l]);
  return (
    n.w != null && (p = p || (c <= 1 && ["w"]) || (c < n.w && ["ww", c])),
    (p = p || (u <= 1 && ["M"]) || (u < n.M && ["MM", u]) || (d <= 1 && ["y"]) || ["yy", d]),
    (p[2] = t),
    (p[3] = +e > 0),
    (p[4] = r),
    EY.apply(null, p)
  );
}
function AY(e) {
  return e === void 0 ? So : typeof e == "function" ? ((So = e), !0) : !1;
}
function _Y(e, t) {
  return ua[e] === void 0 ? !1 : t === void 0 ? ua[e] : ((ua[e] = t), e === "s" && (ua.ss = t - 1), !0);
}
function DY(e, t) {
  if (!this.isValid()) return this.localeData().invalidDate();
  var n = !1,
    r = ua,
    o,
    i;
  return (
    typeof e == "object" && ((t = e), (e = !1)),
    typeof e == "boolean" && (n = e),
    typeof t == "object" && ((r = Object.assign({}, ua, t)), t.s != null && t.ss == null && (r.ss = t.s - 1)),
    (o = this.localeData()),
    (i = PY(this, !n, r, o)),
    n && (i = o.pastFuture(+this, i)),
    o.postformat(i)
  );
}
var sh = Math.abs;
function $s(e) {
  return (e > 0) - (e < 0) || +e;
}
function V0() {
  if (!this.isValid()) return this.localeData().invalidDate();
  var e = sh(this._milliseconds) / 1e3,
    t = sh(this._days),
    n = sh(this._months),
    r,
    o,
    i,
    s,
    a = this.asSeconds(),
    l,
    u,
    c,
    d;
  return a
    ? ((r = sr(e / 60)),
      (o = sr(r / 60)),
      (e %= 60),
      (r %= 60),
      (i = sr(n / 12)),
      (n %= 12),
      (s = e ? e.toFixed(3).replace(/\.?0+$/, "") : ""),
      (l = a < 0 ? "-" : ""),
      (u = $s(this._months) !== $s(a) ? "-" : ""),
      (c = $s(this._days) !== $s(a) ? "-" : ""),
      (d = $s(this._milliseconds) !== $s(a) ? "-" : ""),
      l +
        "P" +
        (i ? u + i + "Y" : "") +
        (n ? u + n + "M" : "") +
        (t ? c + t + "D" : "") +
        (o || r || e ? "T" : "") +
        (o ? d + o + "H" : "") +
        (r ? d + r + "M" : "") +
        (e ? d + s + "S" : ""))
    : "P0D";
}
var Qe = B0.prototype;
Qe.isValid = kG;
Qe.abs = rY;
Qe.add = oY;
Qe.subtract = iY;
Qe.as = aY;
Qe.asMilliseconds = gC;
Qe.asSeconds = lY;
Qe.asMinutes = uY;
Qe.asHours = cY;
Qe.asDays = dY;
Qe.asWeeks = fY;
Qe.asMonths = pY;
Qe.asQuarters = hY;
Qe.asYears = mY;
Qe.valueOf = gY;
Qe._bubble = sY;
Qe.clone = yY;
Qe.get = vY;
Qe.milliseconds = xY;
Qe.seconds = bY;
Qe.minutes = CY;
Qe.hours = wY;
Qe.days = SY;
Qe.weeks = MY;
Qe.months = kY;
Qe.years = TY;
Qe.humanize = DY;
Qe.toISOString = V0;
Qe.toString = V0;
Qe.toJSON = V0;
Qe.locale = rC;
Qe.localeData = iC;
Qe.toIsoString = Sr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", V0);
Qe.lang = oC;
Oe("X", 0, 0, "unix");
Oe("x", 0, 0, "valueOf");
be("x", F0);
be("X", Jz);
vt("X", function (e, t, n) {
  n._d = new Date(parseFloat(e) * 1e3);
});
vt("x", function (e, t, n) {
  n._d = new Date(Ke(e));
}); //! moment.js
re.version = "2.30.1";
Rz(Tt);
re.fn = de;
re.min = bG;
re.max = CG;
re.now = wG;
re.utc = mo;
re.unix = qU;
re.months = JU;
re.isDate = Sc;
re.locale = gi;
re.invalid = D0;
re.duration = Hr;
re.isMoment = jr;
re.weekdays = eY;
re.parseZone = ZU;
re.localeData = Yo;
re.isDuration = Kd;
re.monthsShort = QU;
re.weekdaysMin = nY;
re.defineLocale = A5;
re.updateLocale = ZW;
re.locales = JW;
re.weekdaysShort = tY;
re.normalizeUnits = kr;
re.relativeTimeRounding = AY;
re.relativeTimeThreshold = _Y;
re.calendarFormat = YG;
re.prototype = de;
re.HTML5_FMT = {
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  DATE: "YYYY-MM-DD",
  TIME: "HH:mm",
  TIME_SECONDS: "HH:mm:ss",
  TIME_MS: "HH:mm:ss.SSS",
  WEEK: "GGGG-[W]WW",
  MONTH: "YYYY-MM",
};
const RY = {
    Y: "year",
    YY: "year",
    YYYY: { sectionType: "year", contentType: "digit", maxLength: 4 },
    M: { sectionType: "month", contentType: "digit", maxLength: 2 },
    MM: "month",
    MMM: { sectionType: "month", contentType: "letter" },
    MMMM: { sectionType: "month", contentType: "letter" },
    D: { sectionType: "day", contentType: "digit", maxLength: 2 },
    DD: "day",
    Do: { sectionType: "day", contentType: "digit-with-letter" },
    E: { sectionType: "weekDay", contentType: "digit", maxLength: 1 },
    e: { sectionType: "weekDay", contentType: "digit", maxLength: 1 },
    d: { sectionType: "weekDay", contentType: "digit", maxLength: 1 },
    dd: { sectionType: "weekDay", contentType: "letter" },
    ddd: { sectionType: "weekDay", contentType: "letter" },
    dddd: { sectionType: "weekDay", contentType: "letter" },
    A: "meridiem",
    a: "meridiem",
    H: { sectionType: "hours", contentType: "digit", maxLength: 2 },
    HH: "hours",
    h: { sectionType: "hours", contentType: "digit", maxLength: 2 },
    hh: "hours",
    m: { sectionType: "minutes", contentType: "digit", maxLength: 2 },
    mm: "minutes",
    s: { sectionType: "seconds", contentType: "digit", maxLength: 2 },
    ss: "seconds",
  },
  IY = {
    year: "YYYY",
    month: "MMMM",
    monthShort: "MMM",
    dayOfMonth: "D",
    weekday: "dddd",
    weekdayShort: "ddd",
    hours24h: "HH",
    hours12h: "hh",
    meridiem: "A",
    minutes: "mm",
    seconds: "ss",
    fullDate: "ll",
    fullDateWithWeekday: "dddd, LL",
    keyboardDate: "L",
    shortDate: "MMM D",
    normalDate: "D MMMM",
    normalDateWithWeekday: "ddd, MMM D",
    monthAndYear: "MMMM YYYY",
    monthAndDate: "MMMM D",
    fullTime: "LT",
    fullTime12h: "hh:mm A",
    fullTime24h: "HH:mm",
    fullDateTime: "lll",
    fullDateTime12h: "ll hh:mm A",
    fullDateTime24h: "ll HH:mm",
    keyboardDateTime: "L LT",
    keyboardDateTime12h: "L hh:mm A",
    keyboardDateTime24h: "L HH:mm",
  },
  x6 = [
    "Missing timezone plugin",
    "To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`",
    "Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone",
  ].join(`
`);
class OY {
  constructor({ locale: t, formats: n, instance: r } = {}) {
    (this.isMUIAdapter = !0),
      (this.isTimezoneCompatible = !0),
      (this.lib = "moment"),
      (this.moment = void 0),
      (this.locale = void 0),
      (this.formats = void 0),
      (this.escapedCharacters = { start: "[", end: "]" }),
      (this.formatTokenMap = RY),
      (this.setLocaleToValue = (o) => {
        const i = this.getCurrentLocaleCode();
        return i === o.locale() ? o : o.locale(i);
      }),
      (this.syncMomentLocale = (o) => {
        var i;
        const s = re.locale(),
          a = (i = this.locale) != null ? i : "en-us";
        if (s !== a) {
          re.locale(a);
          const l = o();
          return re.locale(s), l;
        }
        return o();
      }),
      (this.hasTimezonePlugin = () => typeof this.moment.tz < "u"),
      (this.createSystemDate = (o) => {
        const i = this.moment(o).local();
        return this.locale === void 0 ? i : i.locale(this.locale);
      }),
      (this.createUTCDate = (o) => {
        const i = this.moment.utc(o);
        return this.locale === void 0 ? i : i.locale(this.locale);
      }),
      (this.createTZDate = (o, i) => {
        if (!this.hasTimezonePlugin()) throw new Error(x6);
        const s = i === "default" ? this.moment(o) : this.moment.tz(o, i);
        return this.locale === void 0 ? s : s.locale(this.locale);
      }),
      (this.date = (o) => {
        if (o === null) return null;
        const i = this.moment(o);
        return i.locale(this.getCurrentLocaleCode()), i;
      }),
      (this.dateWithTimezone = (o, i) =>
        o === null
          ? null
          : i === "UTC"
            ? this.createUTCDate(o)
            : i === "system" || (i === "default" && !this.hasTimezonePlugin())
              ? this.createSystemDate(o)
              : this.createTZDate(o, i)),
      (this.getTimezone = (o) => {
        var i, s, a;
        const l = (i = o._z) == null ? void 0 : i.name,
          u = o.isUTC() ? "UTC" : "system";
        return (s = l ?? ((a = this.moment.defaultZone) == null ? void 0 : a.name)) != null ? s : u;
      }),
      (this.setTimezone = (o, i) => {
        var s, a;
        if (this.getTimezone(o) === i) return o;
        if (i === "UTC") return o.clone().utc();
        if (i === "system") return o.clone().local();
        if (!this.hasTimezonePlugin()) {
          if (i !== "default") throw new Error(x6);
          return o;
        }
        const l =
          i === "default" ? ((s = (a = this.moment.defaultZone) == null ? void 0 : a.name) != null ? s : "system") : i;
        if (l === "system") return o.clone().local();
        const u = o.clone();
        return u.tz(l), u;
      }),
      (this.toJsDate = (o) => o.toDate()),
      (this.parseISO = (o) => this.moment(o, !0)),
      (this.toISO = (o) => o.toISOString()),
      (this.parse = (o, i) =>
        o === "" ? null : this.locale ? this.moment(o, i, this.locale, !0) : this.moment(o, i, !0)),
      (this.getCurrentLocaleCode = () => this.locale || re.locale()),
      (this.is12HourCycleInCurrentLocale = () =>
        /A|a/.test(re.localeData(this.getCurrentLocaleCode()).longDateFormat("LT"))),
      (this.expandFormat = (o) => {
        const i = /(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;
        return o
          .match(i)
          .map((s) => {
            const a = s[0];
            return a === "L" || a === ";" ? re.localeData(this.getCurrentLocaleCode()).longDateFormat(s) : s;
          })
          .join("");
      }),
      (this.getFormatHelperText = (o) => this.expandFormat(o).replace(/a/gi, "(a|p)m").toLocaleLowerCase()),
      (this.isNull = (o) => o === null),
      (this.isValid = (o) => this.moment(o).isValid()),
      (this.format = (o, i) => this.formatByString(o, this.formats[i])),
      (this.formatByString = (o, i) => {
        const s = o.clone();
        return s.locale(this.getCurrentLocaleCode()), s.format(i);
      }),
      (this.formatNumber = (o) => o),
      (this.getDiff = (o, i, s) => o.diff(i, s)),
      (this.isEqual = (o, i) => (o === null && i === null ? !0 : this.moment(o).isSame(i))),
      (this.isSameYear = (o, i) => o.isSame(i, "year")),
      (this.isSameMonth = (o, i) => o.isSame(i, "month")),
      (this.isSameDay = (o, i) => o.isSame(i, "day")),
      (this.isSameHour = (o, i) => o.isSame(i, "hour")),
      (this.isAfter = (o, i) => o.isAfter(i)),
      (this.isAfterYear = (o, i) => o.isAfter(i, "year")),
      (this.isAfterDay = (o, i) => o.isAfter(i, "day")),
      (this.isBefore = (o, i) => o.isBefore(i)),
      (this.isBeforeYear = (o, i) => o.isBefore(i, "year")),
      (this.isBeforeDay = (o, i) => o.isBefore(i, "day")),
      (this.isWithinRange = (o, [i, s]) => o.isBetween(i, s, null, "[]")),
      (this.startOfYear = (o) => o.clone().startOf("year")),
      (this.startOfMonth = (o) => o.clone().startOf("month")),
      (this.startOfWeek = (o) => o.clone().startOf("week")),
      (this.startOfDay = (o) => o.clone().startOf("day")),
      (this.endOfYear = (o) => o.clone().endOf("year")),
      (this.endOfMonth = (o) => o.clone().endOf("month")),
      (this.endOfWeek = (o) => o.clone().endOf("week")),
      (this.endOfDay = (o) => o.clone().endOf("day")),
      (this.addYears = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "years") : o.clone().add(i, "years"))),
      (this.addMonths = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "months") : o.clone().add(i, "months"))),
      (this.addWeeks = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "weeks") : o.clone().add(i, "weeks"))),
      (this.addDays = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "days") : o.clone().add(i, "days"))),
      (this.addHours = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "hours") : o.clone().add(i, "hours"))),
      (this.addMinutes = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "minutes") : o.clone().add(i, "minutes"))),
      (this.addSeconds = (o, i) => (i < 0 ? o.clone().subtract(Math.abs(i), "seconds") : o.clone().add(i, "seconds"))),
      (this.getYear = (o) => o.get("year")),
      (this.getMonth = (o) => o.get("month")),
      (this.getDate = (o) => o.get("date")),
      (this.getHours = (o) => o.get("hours")),
      (this.getMinutes = (o) => o.get("minutes")),
      (this.getSeconds = (o) => o.get("seconds")),
      (this.getMilliseconds = (o) => o.get("milliseconds")),
      (this.setYear = (o, i) => o.clone().year(i)),
      (this.setMonth = (o, i) => o.clone().month(i)),
      (this.setDate = (o, i) => o.clone().date(i)),
      (this.setHours = (o, i) => o.clone().hours(i)),
      (this.setMinutes = (o, i) => o.clone().minutes(i)),
      (this.setSeconds = (o, i) => o.clone().seconds(i)),
      (this.setMilliseconds = (o, i) => o.clone().milliseconds(i)),
      (this.getDaysInMonth = (o) => o.daysInMonth()),
      (this.getNextMonth = (o) => o.clone().add(1, "month")),
      (this.getPreviousMonth = (o) => o.clone().subtract(1, "month")),
      (this.getMonthArray = (o) => {
        const s = [this.startOfYear(o)];
        for (; s.length < 12; ) {
          const a = s[s.length - 1];
          s.push(this.getNextMonth(a));
        }
        return s;
      }),
      (this.mergeDateAndTime = (o, i) => o.clone().hour(i.hour()).minute(i.minute()).second(i.second())),
      (this.getWeekdays = () => this.syncMomentLocale(() => re.weekdaysShort(!0))),
      (this.getWeekArray = (o) => {
        const i = this.setLocaleToValue(o),
          s = i.clone().startOf("month").startOf("week"),
          a = i.clone().endOf("month").endOf("week");
        let l = 0,
          u = s;
        const c = [];
        for (; u.isBefore(a); ) {
          const d = Math.floor(l / 7);
          (c[d] = c[d] || []), c[d].push(u), (u = u.clone().add(1, "day")), (l += 1);
        }
        return c;
      }),
      (this.getWeekNumber = (o) => o.week()),
      (this.getYearRange = (o, i) => {
        const s = this.moment(o).startOf("year"),
          a = this.moment(i).endOf("year"),
          l = [];
        let u = s;
        for (; u.isBefore(a); ) l.push(u), (u = u.clone().add(1, "year"));
        return l;
      }),
      (this.getMeridiemText = (o) =>
        this.is12HourCycleInCurrentLocale()
          ? re.localeData(this.getCurrentLocaleCode()).meridiem(o === "am" ? 0 : 13, 0, !1)
          : o === "am"
            ? "AM"
            : "PM"),
      (this.moment = r || re),
      (this.locale = t),
      (this.formats = S({}, IY, n));
  }
}
function FY(e, t) {
  const n = {
    timestamp: Math.floor(Date.now() / 1e3),
    message: e.message,
    callStack: e.stack,
    componentStack: t.componentStack,
  };
  LY(n);
}
let qd = [],
  b6;
function LY(e) {
  qd.push(e),
    clearTimeout(b6),
    (b6 = setTimeout(() => {
      NY();
    }, 1e3));
}
async function NY() {
  console.log(`Fake-sending ${qd.length} errors to server`, qd), (qd = []);
}
const C6 = `
@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Thin.ttf);
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-ThinItalic.ttf);
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-ExtraLight.ttf);
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-ExtraLightItalic.ttf);
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Light.ttf);
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-LightItalic.ttf);
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Italic.ttf);
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Medium.ttf);
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-MediumItalic.ttf);
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-SemiBold.ttf);
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-SemiBoldItalic.ttf);
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-BoldItalic.ttf);
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-ExtraBold.ttf);
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-ExtraBoldItalic.ttf);
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-Black.ttf);
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url(${Ze}/fonts/Lato-BlackItalic.ttf);
  font-weight: 900;
  font-style: italic;
}
`,
  wi = Ct({
    breakpoints: { values: { xs: 0, sm: 560, md: 900, lg: 1200, xl: 1536 } },
    components: {
      MuiCssBaseline: { styleOverrides: C6 },
      MuiScopedCssBaseline: { styleOverrides: { root: C6 } },
      MuiTypography: { defaultProps: { variantMapping: { p1: "p" } } },
      MuiButton: {
        variants: [
          {
            props: { variant: "contained" },
            style: {
              backgroundColor: "#7E2AEA",
              padding: "13px 20px",
              borderRadius: "8px",
              color: "#ffffff",
              boxShadow: "none",
              "&:hover": { backgroundColor: "#581CA7" },
            },
          },
          {
            props: { variant: "outlined" },
            style: {
              backgroundColor: "#F2F3F7",
              padding: "10px 20px",
              borderRadius: "8px",
              border: "1px solid #7E2AEA",
              color: "#9A9AAF",
              "&:hover": { backgroundColor: "#581CA7", border: "1px solid #581CA7" },
            },
          },
        ],
      },
    },
    typography: {
      h5: { fontSize: "24px", lineHeight: "28.44px", fontWeight: 501 },
      button: { fontSize: "18px", lineHeight: "24px", fontWeight: 400, textTransform: "none" },
      body1: { fontSize: "18px", lineHeight: "21.33px", fontWeight: 400 },
      body2: { fontSize: "16px", lineHeight: "20px", fontWeight: 500 },
      p1: { fontSize: "20px", lineHeight: "24px", fontWeight: 500 },
      fontFamily: [
        '"Lato"',
        "Twemoji Country Flags",
        "-apple-system",
        "BlinkMacSystemFont",
        "Arial",
        "sans-serif",
        '"Apple Color Emoji"',
        '"Segoe UI Emoji"',
        '"Segoe UI Symbol"',
      ].join(","),
    },
  });
wi.typography.h2 = {
  fontSize: "70px",
  lineHeight: "70px",
  fontWeight: 500,
  [wi.breakpoints.down("md")]: { fontSize: "42px", lineHeight: "50px" },
};
wi.typography.h4 = {
  fontSize: "36px",
  lineHeight: "42.66px",
  fontWeight: 500,
  [wi.breakpoints.down("md")]: { fontSize: "24px", lineHeight: "28.44px" },
};
wi.typography.infographic = {
  fontSize: "80px",
  lineHeight: "94.8px",
  fontWeight: 400,
  [wi.breakpoints.down("md")]: { fontSize: "50px", lineHeight: "59px", fontWeight: 400 },
};
const Ku = Ct({
  ...wi,
  palette: {
    mode: "light",
    primary: { main: "#000000" },
    secondary: { main: "#252734" },
    text: { primary: "#000000", secondary: "#7E2AEA" },
    background: { default: "#F2F3F7" },
    lightPurple: { main: "#333647" },
    darkPurple: { main: "#252734" },
    brightPurple: { main: "#7E2AEA" },
    fadePurple: { main: "#C19AF5" },
    grey1: { main: "#434657" },
    grey2: { main: "#9A9AAF" },
    grey3: { main: "#4D4D4D" },
    grey4: { main: "#333647" },
    orange: { main: "#FB5607" },
    ownPlaceholder: { main: "1,1,1,0.65" },
    navbarbg: { main: "#FFFFFF" },
  },
});
function yC(e) {
  var t,
    n,
    r = "";
  if (typeof e == "string" || typeof e == "number") r += e;
  else if (typeof e == "object")
    if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = yC(e[t])) && (r && (r += " "), (r += n));
    else for (t in e) e[t] && (r && (r += " "), (r += t));
  return r;
}
function Es() {
  for (var e, t, n = 0, r = ""; n < arguments.length; )
    (e = arguments[n++]) && (t = yC(e)) && (r && (r += " "), (r += t));
  return r;
}
let $Y = { data: "" },
  BY = (e) =>
    typeof window == "object"
      ? (
          (e ? e.querySelector("#_goober") : window._goober) ||
          Object.assign((e || document.head).appendChild(document.createElement("style")), {
            innerHTML: " ",
            id: "_goober",
          })
        ).firstChild
      : e || $Y,
  jY = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,
  VY = /\/\*[^]*?\*\/|  +/g,
  w6 = /\n+/g,
  Ui = (e, t) => {
    let n = "",
      r = "",
      o = "";
    for (let i in e) {
      let s = e[i];
      i[0] == "@"
        ? i[1] == "i"
          ? (n = i + " " + s + ";")
          : (r += i[1] == "f" ? Ui(s, i) : i + "{" + Ui(s, i[1] == "k" ? "" : t) + "}")
        : typeof s == "object"
          ? (r += Ui(
              s,
              t
                ? t.replace(/([^,])+/g, (a) =>
                    i.replace(/(^:.*)|([^,])+/g, (l) => (/&/.test(l) ? l.replace(/&/g, a) : a ? a + " " + l : l))
                  )
                : i
            ))
          : s != null &&
            ((i = /^--/.test(i) ? i : i.replace(/[A-Z]/g, "-$&").toLowerCase()),
            (o += Ui.p ? Ui.p(i, s) : i + ":" + s + ";"));
    }
    return n + (t && o ? t + "{" + o + "}" : o) + r;
  },
  xo = {},
  vC = (e) => {
    if (typeof e == "object") {
      let t = "";
      for (let n in e) t += n + vC(e[n]);
      return t;
    }
    return e;
  },
  HY = (e, t, n, r, o) => {
    let i = vC(e),
      s =
        xo[i] ||
        (xo[i] = ((l) => {
          let u = 0,
            c = 11;
          for (; u < l.length; ) c = (101 * c + l.charCodeAt(u++)) >>> 0;
          return "go" + c;
        })(i));
    if (!xo[s]) {
      let l =
        i !== e
          ? e
          : ((u) => {
              let c,
                d,
                p = [{}];
              for (; (c = jY.exec(u.replace(VY, ""))); )
                c[4]
                  ? p.shift()
                  : c[3]
                    ? ((d = c[3].replace(w6, " ").trim()), p.unshift((p[0][d] = p[0][d] || {})))
                    : (p[0][c[1]] = c[2].replace(w6, " ").trim());
              return p[0];
            })(e);
      xo[s] = Ui(o ? { ["@keyframes " + s]: l } : l, n ? "" : "." + s);
    }
    let a = n && xo.g ? xo.g : null;
    return (
      n && (xo.g = xo[s]),
      ((l, u, c, d) => {
        d ? (u.data = u.data.replace(d, l)) : u.data.indexOf(l) === -1 && (u.data = c ? l + u.data : u.data + l);
      })(xo[s], t, r, a),
      s
    );
  },
  zY = (e, t, n) =>
    e.reduce((r, o, i) => {
      let s = t[i];
      if (s && s.call) {
        let a = s(n),
          l = (a && a.props && a.props.className) || (/^go/.test(a) && a);
        s = l ? "." + l : a && typeof a == "object" ? (a.props ? "" : Ui(a, "")) : a === !1 ? "" : a;
      }
      return r + o + (s ?? "");
    }, "");
function $5(e) {
  let t = this || {},
    n = e.call ? e(t.p) : e;
  return HY(
    n.unshift
      ? n.raw
        ? zY(n, [].slice.call(arguments, 1), t.p)
        : n.reduce((r, o) => Object.assign(r, o && o.call ? o(t.p) : o), {})
      : n,
    BY(t.target),
    t.g,
    t.o,
    t.k
  );
}
$5.bind({ g: 1 });
$5.bind({ k: 1 });
function WY(e, t) {
  for (var n = 0; n < t.length; n++) {
    var r = t[n];
    (r.enumerable = r.enumerable || !1),
      (r.configurable = !0),
      "value" in r && (r.writable = !0),
      Object.defineProperty(e, r.key, r);
  }
}
function xC(e, t, n) {
  return t && WY(e.prototype, t), e;
}
function gt() {
  return (
    (gt =
      Object.assign ||
      function (e) {
        for (var t = 1; t < arguments.length; t++) {
          var n = arguments[t];
          for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
        }
        return e;
      }),
    gt.apply(this, arguments)
  );
}
function bC(e, t) {
  (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), (e.__proto__ = t);
}
function Ec(e, t) {
  if (e == null) return {};
  var n = {},
    r = Object.keys(e),
    o,
    i;
  for (i = 0; i < r.length; i++) (o = r[i]), !(t.indexOf(o) >= 0) && (n[o] = e[o]);
  return n;
}
function S6(e) {
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return e;
}
var k6 = function () {
    return "";
  },
  GY = De.createContext({ enqueueSnackbar: k6, closeSnackbar: k6 }),
  Gi = { downXs: "@media (max-width:599.95px)", upSm: "@media (min-width:600px)" },
  T6 = function (t) {
    return t.charAt(0).toUpperCase() + t.slice(1);
  },
  B5 = function (t) {
    return "" + T6(t.vertical) + T6(t.horizontal);
  },
  hd = function (t) {
    return !!t || t === 0;
  },
  md = "unmounted",
  Bs = "exited",
  js = "entering",
  Ll = "entered",
  M6 = "exiting",
  j5 = (function (e) {
    bC(t, e);
    function t(r) {
      var o;
      o = e.call(this, r) || this;
      var i = r.appear,
        s;
      return (
        (o.appearStatus = null),
        r.in
          ? i
            ? ((s = Bs), (o.appearStatus = js))
            : (s = Ll)
          : r.unmountOnExit || r.mountOnEnter
            ? (s = md)
            : (s = Bs),
        (o.state = { status: s }),
        (o.nextCallback = null),
        o
      );
    }
    t.getDerivedStateFromProps = function (o, i) {
      var s = o.in;
      return s && i.status === md ? { status: Bs } : null;
    };
    var n = t.prototype;
    return (
      (n.componentDidMount = function () {
        this.updateStatus(!0, this.appearStatus);
      }),
      (n.componentDidUpdate = function (o) {
        var i = null;
        if (o !== this.props) {
          var s = this.state.status;
          this.props.in ? s !== js && s !== Ll && (i = js) : (s === js || s === Ll) && (i = M6);
        }
        this.updateStatus(!1, i);
      }),
      (n.componentWillUnmount = function () {
        this.cancelNextCallback();
      }),
      (n.getTimeouts = function () {
        var o = this.props.timeout,
          i = o,
          s = o;
        return (
          o != null && typeof o != "number" && typeof o != "string" && ((s = o.exit), (i = o.enter)),
          { exit: s, enter: i }
        );
      }),
      (n.updateStatus = function (o, i) {
        o === void 0 && (o = !1),
          i !== null
            ? (this.cancelNextCallback(), i === js ? this.performEnter(o) : this.performExit())
            : this.props.unmountOnExit && this.state.status === Bs && this.setState({ status: md });
      }),
      (n.performEnter = function (o) {
        var i = this,
          s = this.props.enter,
          a = o,
          l = this.getTimeouts();
        if (!o && !s) {
          this.safeSetState({ status: Ll }, function () {
            i.props.onEntered && i.props.onEntered(i.node, a);
          });
          return;
        }
        this.props.onEnter && this.props.onEnter(this.node, a),
          this.safeSetState({ status: js }, function () {
            i.props.onEntering && i.props.onEntering(i.node, a),
              i.onTransitionEnd(l.enter, function () {
                i.safeSetState({ status: Ll }, function () {
                  i.props.onEntered && i.props.onEntered(i.node, a);
                });
              });
          });
      }),
      (n.performExit = function () {
        var o = this,
          i = this.props.exit,
          s = this.getTimeouts();
        if (!i) {
          this.safeSetState({ status: Bs }, function () {
            o.props.onExited && o.props.onExited(o.node);
          });
          return;
        }
        this.props.onExit && this.props.onExit(this.node),
          this.safeSetState({ status: M6 }, function () {
            o.props.onExiting && o.props.onExiting(o.node),
              o.onTransitionEnd(s.exit, function () {
                o.safeSetState({ status: Bs }, function () {
                  o.props.onExited && o.props.onExited(o.node);
                });
              });
          });
      }),
      (n.cancelNextCallback = function () {
        this.nextCallback !== null &&
          this.nextCallback.cancel &&
          (this.nextCallback.cancel(), (this.nextCallback = null));
      }),
      (n.safeSetState = function (o, i) {
        (i = this.setNextCallback(i)), this.setState(o, i);
      }),
      (n.setNextCallback = function (o) {
        var i = this,
          s = !0;
        return (
          (this.nextCallback = function () {
            s && ((s = !1), (i.nextCallback = null), o());
          }),
          (this.nextCallback.cancel = function () {
            s = !1;
          }),
          this.nextCallback
        );
      }),
      (n.onTransitionEnd = function (o, i) {
        this.setNextCallback(i);
        var s = o == null && !this.props.addEndListener;
        if (!this.node || s) {
          setTimeout(this.nextCallback, 0);
          return;
        }
        this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback),
          o != null && setTimeout(this.nextCallback, o);
      }),
      (n.render = function () {
        var o = this.state.status;
        if (o === md) return null;
        var i = this.props,
          s = i.children,
          a = Ec(i, [
            "children",
            "in",
            "mountOnEnter",
            "unmountOnExit",
            "appear",
            "enter",
            "exit",
            "timeout",
            "addEndListener",
            "onEnter",
            "onEntering",
            "onEntered",
            "onExit",
            "onExiting",
            "onExited",
            "nodeRef",
          ]);
        return s(o, a);
      }),
      xC(t, [
        {
          key: "node",
          get: function () {
            var o,
              i = (o = this.props.nodeRef) === null || o === void 0 ? void 0 : o.current;
            if (!i) throw new Error("notistack - Custom snackbar is not refForwarding");
            return i;
          },
        },
      ]),
      t
    );
  })(De.Component);
function Vs() {}
j5.defaultProps = {
  in: !1,
  mountOnEnter: !1,
  unmountOnExit: !1,
  appear: !1,
  enter: !0,
  exit: !0,
  onEnter: Vs,
  onEntering: Vs,
  onEntered: Vs,
  onExit: Vs,
  onExiting: Vs,
  onExited: Vs,
};
function E6(e, t) {
  typeof e == "function" ? e(t) : e && (e.current = t);
}
function o2(e, t) {
  return b.useMemo(
    function () {
      return e == null && t == null
        ? null
        : function (n) {
            E6(e, n), E6(t, n);
          };
    },
    [e, t]
  );
}
function Zf(e) {
  var t = e.timeout,
    n = e.style,
    r = n === void 0 ? {} : n,
    o = e.mode;
  return {
    duration: typeof t == "object" ? t[o] || 0 : t,
    easing: r.transitionTimingFunction,
    delay: r.transitionDelay,
  };
}
var i2 = {
    easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
    easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
    easeIn: "cubic-bezier(0.4, 0, 1, 1)",
    sharp: "cubic-bezier(0.4, 0, 0.6, 1)",
  },
  CC = function (t) {
    t.scrollTop = t.scrollTop;
  },
  P6 = function (t) {
    return Math.round(t) + "ms";
  };
function ca(e, t) {
  e === void 0 && (e = ["all"]);
  var n = t || {},
    r = n.duration,
    o = r === void 0 ? 300 : r,
    i = n.easing,
    s = i === void 0 ? i2.easeInOut : i,
    a = n.delay,
    l = a === void 0 ? 0 : a,
    u = Array.isArray(e) ? e : [e];
  return u
    .map(function (c) {
      var d = typeof o == "string" ? o : P6(o),
        p = typeof l == "string" ? l : P6(l);
      return c + " " + d + " " + s + " " + p;
    })
    .join(",");
}
function UY(e) {
  return (e && e.ownerDocument) || document;
}
function wC(e) {
  var t = UY(e);
  return t.defaultView || window;
}
function YY(e, t) {
  t === void 0 && (t = 166);
  var n;
  function r() {
    for (var o = this, i = arguments.length, s = new Array(i), a = 0; a < i; a++) s[a] = arguments[a];
    var l = function () {
      e.apply(o, s);
    };
    clearTimeout(n), (n = setTimeout(l, t));
  }
  return (
    (r.clear = function () {
      clearTimeout(n);
    }),
    r
  );
}
function KY(e, t) {
  var n = t.getBoundingClientRect(),
    r = wC(t),
    o;
  if (t.fakeTransform) o = t.fakeTransform;
  else {
    var i = r.getComputedStyle(t);
    o = i.getPropertyValue("-webkit-transform") || i.getPropertyValue("transform");
  }
  var s = 0,
    a = 0;
  if (o && o !== "none" && typeof o == "string") {
    var l = o.split("(")[1].split(")")[0].split(",");
    (s = parseInt(l[4], 10)), (a = parseInt(l[5], 10));
  }
  switch (e) {
    case "left":
      return "translateX(" + (r.innerWidth + s - n.left) + "px)";
    case "right":
      return "translateX(-" + (n.left + n.width - s) + "px)";
    case "up":
      return "translateY(" + (r.innerHeight + a - n.top) + "px)";
    default:
      return "translateY(-" + (n.top + n.height - a) + "px)";
  }
}
function gd(e, t) {
  if (t) {
    var n = KY(e, t);
    n && ((t.style.webkitTransform = n), (t.style.transform = n));
  }
}
var SC = b.forwardRef(function (e, t) {
  var n = e.children,
    r = e.direction,
    o = r === void 0 ? "down" : r,
    i = e.in,
    s = e.style,
    a = e.timeout,
    l = a === void 0 ? 0 : a,
    u = e.onEnter,
    c = e.onEntered,
    d = e.onExit,
    p = e.onExited,
    h = Ec(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]),
    m = b.useRef(null),
    v = o2(n.ref, m),
    C = o2(v, t),
    y = function (T, P) {
      gd(o, T), CC(T), u && u(T, P);
    },
    g = function (T) {
      var P = (s == null ? void 0 : s.transitionTimingFunction) || i2.easeOut,
        A = Zf({ timeout: l, mode: "enter", style: gt({}, s, { transitionTimingFunction: P }) });
      (T.style.webkitTransition = ca("-webkit-transform", A)),
        (T.style.transition = ca("transform", A)),
        (T.style.webkitTransform = "none"),
        (T.style.transform = "none");
    },
    x = function (T) {
      var P = (s == null ? void 0 : s.transitionTimingFunction) || i2.sharp,
        A = Zf({ timeout: l, mode: "exit", style: gt({}, s, { transitionTimingFunction: P }) });
      (T.style.webkitTransition = ca("-webkit-transform", A)),
        (T.style.transition = ca("transform", A)),
        gd(o, T),
        d && d(T);
    },
    w = function (T) {
      (T.style.webkitTransition = ""), (T.style.transition = ""), p && p(T);
    },
    k = b.useCallback(
      function () {
        m.current && gd(o, m.current);
      },
      [o]
    );
  return (
    b.useEffect(
      function () {
        if (!(i || o === "down" || o === "right")) {
          var M = YY(function () {
              m.current && gd(o, m.current);
            }),
            T = wC(m.current);
          return (
            T.addEventListener("resize", M),
            function () {
              M.clear(), T.removeEventListener("resize", M);
            }
          );
        }
      },
      [o, i]
    ),
    b.useEffect(
      function () {
        i || k();
      },
      [i, k]
    ),
    b.createElement(
      j5,
      Object.assign(
        { appear: !0, nodeRef: m, onEnter: y, onEntered: c, onEntering: g, onExit: x, onExited: w, in: i, timeout: l },
        h
      ),
      function (M, T) {
        return b.cloneElement(
          n,
          gt({ ref: C, style: gt({ visibility: M === "exited" && !i ? "hidden" : void 0 }, s, {}, n.props.style) }, T)
        );
      }
    )
  );
});
SC.displayName = "Slide";
var H0 = function (t) {
    return De.createElement(
      "svg",
      Object.assign(
        {
          viewBox: "0 0 24 24",
          focusable: "false",
          style: {
            fontSize: 20,
            marginInlineEnd: 8,
            userSelect: "none",
            width: "1em",
            height: "1em",
            display: "inline-block",
            fill: "currentColor",
            flexShrink: 0,
          },
        },
        t
      )
    );
  },
  XY = function () {
    return De.createElement(
      H0,
      null,
      De.createElement("path", {
        d: `M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
        10.59L10 14.17L17.59 6.58L19 8L10 17Z`,
      })
    );
  },
  qY = function () {
    return De.createElement(
      H0,
      null,
      De.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" })
    );
  },
  ZY = function () {
    return De.createElement(
      H0,
      null,
      De.createElement("path", {
        d: `M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`,
      })
    );
  },
  JY = function () {
    return De.createElement(
      H0,
      null,
      De.createElement("path", {
        d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
        0 22,12A10,10 0 0,0 12,2Z`,
      })
    );
  },
  QY = {
    default: void 0,
    success: De.createElement(XY, null),
    warning: De.createElement(qY, null),
    error: De.createElement(ZY, null),
    info: De.createElement(JY, null),
  },
  ss = {
    maxSnack: 3,
    persist: !1,
    hideIconVariant: !1,
    disableWindowBlurListener: !1,
    variant: "default",
    autoHideDuration: 5e3,
    iconVariant: QY,
    anchorOrigin: { vertical: "bottom", horizontal: "left" },
    TransitionComponent: SC,
    transitionDuration: { enter: 225, exit: 195 },
  },
  eK = function (t, n) {
    var r = function (i) {
      return typeof i == "number" || i === null;
    };
    return r(t) ? t : r(n) ? n : ss.autoHideDuration;
  },
  tK = function (t, n) {
    var r = function (i, s) {
      return s.some(function (a) {
        return typeof i === a;
      });
    };
    return r(t, ["string", "number"])
      ? t
      : r(t, ["object"])
        ? gt({}, ss.transitionDuration, {}, r(n, ["object"]) && n, {}, t)
        : r(n, ["string", "number"])
          ? n
          : r(n, ["object"])
            ? gt({}, ss.transitionDuration, {}, n)
            : ss.transitionDuration;
  },
  nK = function (t, n) {
    return function (r, o) {
      return (
        o === void 0 && (o = !1),
        o
          ? gt({}, ss[r], {}, n[r], {}, t[r])
          : r === "autoHideDuration"
            ? eK(t.autoHideDuration, n.autoHideDuration)
            : r === "transitionDuration"
              ? tK(t.transitionDuration, n.transitionDuration)
              : t[r] || n[r] || ss[r]
      );
    };
  };
function Pc(e) {
  return Object.entries(e).reduce(function (t, n) {
    var r,
      o = n[0],
      i = n[1];
    return gt({}, t, ((r = {}), (r[o] = $5(i)), r));
  }, {});
}
var qa = {
    SnackbarContainer: "notistack-SnackbarContainer",
    Snackbar: "notistack-Snackbar",
    CollapseWrapper: "notistack-CollapseWrapper",
    MuiContent: "notistack-MuiContent",
    MuiContentVariant: function (t) {
      return "notistack-MuiContent-" + t;
    },
  },
  A6 = Pc({ root: { height: 0 }, entered: { height: "auto" } }),
  ah = "0px",
  lh = 175,
  kC = b.forwardRef(function (e, t) {
    var n = e.children,
      r = e.in,
      o = e.onExited,
      i = b.useRef(null),
      s = b.useRef(null),
      a = o2(t, s),
      l = function () {
        return i.current ? i.current.clientHeight : 0;
      },
      u = function (v) {
        v.style.height = ah;
      },
      c = function (v) {
        var C = l(),
          y = Zf({ timeout: lh, mode: "enter" }),
          g = y.duration,
          x = y.easing;
        (v.style.transitionDuration = typeof g == "string" ? g : g + "ms"),
          (v.style.height = C + "px"),
          (v.style.transitionTimingFunction = x || "");
      },
      d = function (v) {
        v.style.height = "auto";
      },
      p = function (v) {
        v.style.height = l() + "px";
      },
      h = function (v) {
        CC(v);
        var C = Zf({ timeout: lh, mode: "exit" }),
          y = C.duration,
          g = C.easing;
        (v.style.transitionDuration = typeof y == "string" ? y : y + "ms"),
          (v.style.height = ah),
          (v.style.transitionTimingFunction = g || "");
      };
    return b.createElement(
      j5,
      {
        in: r,
        unmountOnExit: !0,
        onEnter: u,
        onEntered: d,
        onEntering: c,
        onExit: p,
        onExited: o,
        onExiting: h,
        nodeRef: s,
        timeout: lh,
      },
      function (m, v) {
        return b.createElement(
          "div",
          Object.assign(
            {
              ref: a,
              className: Es(A6.root, m === "entered" && A6.entered),
              style: gt(
                { pointerEvents: "all", overflow: "hidden", minHeight: ah, transition: ca("height") },
                m === "entered" && { overflow: "visible" },
                {},
                m === "exited" && !r && { visibility: "hidden" }
              ),
            },
            v
          ),
          b.createElement(
            "div",
            { ref: i, className: qa.CollapseWrapper, style: { display: "flex", width: "100%" } },
            n
          )
        );
      }
    );
  });
kC.displayName = "Collapse";
var _6 = { right: "left", left: "right", bottom: "up", top: "down" },
  rK = function (t) {
    return t.horizontal !== "center" ? _6[t.horizontal] : _6[t.vertical];
  },
  oK = function (t) {
    return "anchorOrigin" + B5(t);
  },
  iK = function (t) {
    t === void 0 && (t = {});
    var n = {
      containerRoot: !0,
      containerAnchorOriginTopCenter: !0,
      containerAnchorOriginBottomCenter: !0,
      containerAnchorOriginTopRight: !0,
      containerAnchorOriginBottomRight: !0,
      containerAnchorOriginTopLeft: !0,
      containerAnchorOriginBottomLeft: !0,
    };
    return Object.keys(t)
      .filter(function (r) {
        return !n[r];
      })
      .reduce(function (r, o) {
        var i;
        return gt({}, r, ((i = {}), (i[o] = t[o]), i));
      }, {});
  },
  sK = function () {};
function pu(e, t) {
  return e.reduce(function (n, r) {
    return r == null
      ? n
      : function () {
          for (var i = arguments.length, s = new Array(i), a = 0; a < i; a++) s[a] = arguments[a];
          var l = [].concat(s);
          t && l.indexOf(t) === -1 && l.push(t), n.apply(this, l), r.apply(this, l);
        };
  }, sK);
}
var aK = typeof window < "u" ? b.useLayoutEffect : b.useEffect;
function D6(e) {
  var t = b.useRef(e);
  return (
    aK(function () {
      t.current = e;
    }),
    b.useCallback(function () {
      return t.current.apply(void 0, arguments);
    }, [])
  );
}
var TC = b.forwardRef(function (e, t) {
  var n = e.children,
    r = e.className,
    o = e.autoHideDuration,
    i = e.disableWindowBlurListener,
    s = i === void 0 ? !1 : i,
    a = e.onClose,
    l = e.id,
    u = e.open,
    c = e.SnackbarProps,
    d = c === void 0 ? {} : c,
    p = b.useRef(),
    h = D6(function () {
      a && a.apply(void 0, arguments);
    }),
    m = D6(function (x) {
      !a ||
        x == null ||
        (p.current && clearTimeout(p.current),
        (p.current = setTimeout(function () {
          h(null, "timeout", l);
        }, x)));
    });
  b.useEffect(
    function () {
      return (
        u && m(o),
        function () {
          p.current && clearTimeout(p.current);
        }
      );
    },
    [u, o, m]
  );
  var v = function () {
      p.current && clearTimeout(p.current);
    },
    C = b.useCallback(
      function () {
        o != null && m(o * 0.5);
      },
      [o, m]
    ),
    y = function (w) {
      d.onMouseEnter && d.onMouseEnter(w), v();
    },
    g = function (w) {
      d.onMouseLeave && d.onMouseLeave(w), C();
    };
  return (
    b.useEffect(
      function () {
        if (!s && u)
          return (
            window.addEventListener("focus", C),
            window.addEventListener("blur", v),
            function () {
              window.removeEventListener("focus", C), window.removeEventListener("blur", v);
            }
          );
      },
      [s, C, u]
    ),
    b.createElement(
      "div",
      Object.assign({ ref: t }, d, { className: Es(qa.Snackbar, r), onMouseEnter: y, onMouseLeave: g }),
      n
    )
  );
});
TC.displayName = "Snackbar";
var uh,
  lK = Pc({
    root:
      ((uh = { display: "flex", flexWrap: "wrap", flexGrow: 1 }),
      (uh[Gi.upSm] = { flexGrow: "initial", minWidth: "288px" }),
      uh),
  }),
  MC = b.forwardRef(function (e, t) {
    var n = e.className,
      r = Ec(e, ["className"]);
    return De.createElement("div", Object.assign({ ref: t, className: Es(lK.root, n) }, r));
  });
MC.displayName = "SnackbarContent";
var Nl = Pc({
    root: {
      backgroundColor: "#313131",
      fontSize: "0.875rem",
      lineHeight: 1.43,
      letterSpacing: "0.01071em",
      color: "#fff",
      alignItems: "center",
      padding: "6px 16px",
      borderRadius: "4px",
      boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
    },
    lessPadding: { paddingLeft: 8 * 2.5 + "px" },
    default: { backgroundColor: "#313131" },
    success: { backgroundColor: "#43a047" },
    error: { backgroundColor: "#d32f2f" },
    warning: { backgroundColor: "#ff9800" },
    info: { backgroundColor: "#2196f3" },
    message: { display: "flex", alignItems: "center", padding: "8px 0" },
    action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" },
  }),
  R6 = "notistack-snackbar",
  EC = b.forwardRef(function (e, t) {
    var n = e.id,
      r = e.message,
      o = e.action,
      i = e.iconVariant,
      s = e.variant,
      a = e.hideIconVariant,
      l = e.style,
      u = e.className,
      c = i[s],
      d = o;
    return (
      typeof d == "function" && (d = d(n)),
      De.createElement(
        MC,
        {
          ref: t,
          role: "alert",
          "aria-describedby": R6,
          style: l,
          className: Es(qa.MuiContent, qa.MuiContentVariant(s), Nl.root, Nl[s], u, !a && c && Nl.lessPadding),
        },
        De.createElement("div", { id: R6, className: Nl.message }, a ? null : c, r),
        d && De.createElement("div", { className: Nl.action }, d)
      )
    );
  });
EC.displayName = "MaterialDesignContent";
var uK = b.memo(EC),
  cK = Pc({
    wrappedRoot: {
      width: "100%",
      position: "relative",
      transform: "translateX(0)",
      top: 0,
      right: 0,
      bottom: 0,
      left: 0,
      minWidth: "288px",
    },
  }),
  dK = function (t) {
    var n = b.useRef(),
      r = b.useState(!0),
      o = r[0],
      i = r[1],
      s = pu([t.snack.onClose, t.onClose]),
      a = function () {
        t.snack.requestClose && s(null, "instructed", t.snack.id);
      },
      l = b.useCallback(function () {
        n.current = setTimeout(function () {
          i(function (A) {
            return !A;
          });
        }, 125);
      }, []);
    b.useEffect(function () {
      return function () {
        n.current && clearTimeout(n.current);
      };
    }, []);
    var u = t.snack,
      c = t.classes,
      d = t.Component,
      p = d === void 0 ? uK : d,
      h = b.useMemo(
        function () {
          return iK(c);
        },
        [c]
      ),
      m = u.open,
      v = u.SnackbarProps,
      C = u.TransitionComponent,
      y = u.TransitionProps,
      g = u.transitionDuration,
      x = u.disableWindowBlurListener,
      w = u.content,
      k = Ec(u, [
        "open",
        "SnackbarProps",
        "TransitionComponent",
        "TransitionProps",
        "transitionDuration",
        "disableWindowBlurListener",
        "content",
        "entered",
        "requestClose",
        "onEnter",
        "onEntered",
        "onExit",
        "onExited",
      ]),
      M = gt({ direction: rK(k.anchorOrigin), timeout: g }, y),
      T = w;
    typeof T == "function" && (T = T(k.id, k.message));
    var P = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function (A, D) {
      var R;
      return gt({}, A, ((R = {}), (R[D] = pu([t.snack[D], t[D]], k.id)), R));
    }, {});
    return De.createElement(
      kC,
      { in: o, onExited: P.onExited },
      De.createElement(
        TC,
        {
          open: m,
          id: k.id,
          disableWindowBlurListener: x,
          autoHideDuration: k.autoHideDuration,
          className: Es(cK.wrappedRoot, h.root, h[oK(k.anchorOrigin)]),
          SnackbarProps: v,
          onClose: s,
        },
        De.createElement(
          C,
          Object.assign({}, M, {
            appear: !0,
            in: m,
            onExit: P.onExit,
            onExited: l,
            onEnter: P.onEnter,
            onEntered: pu([P.onEntered, a], k.id),
          }),
          T || De.createElement(p, Object.assign({}, k))
        )
      )
    );
  },
  $l,
  ch,
  yd,
  vd,
  dh,
  bo = { view: { default: 20, dense: 4 }, snackbar: { default: 6, dense: 2 } },
  I6 = "." + qa.CollapseWrapper,
  fh = 16,
  xd = Pc({
    root:
      (($l = {
        boxSizing: "border-box",
        display: "flex",
        maxHeight: "100%",
        position: "fixed",
        zIndex: 1400,
        height: "auto",
        width: "auto",
        transition: ca(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }),
        pointerEvents: "none",
      }),
      ($l[I6] = { padding: bo.snackbar.default + "px 0px", transition: "padding 300ms ease 0ms" }),
      ($l.maxWidth = "calc(100% - " + bo.view.default * 2 + "px)"),
      ($l[Gi.downXs] = { width: "100%", maxWidth: "calc(100% - " + fh * 2 + "px)" }),
      $l),
    rootDense: ((ch = {}), (ch[I6] = { padding: bo.snackbar.dense + "px 0px" }), ch),
    top: { top: bo.view.default - bo.snackbar.default + "px", flexDirection: "column" },
    bottom: { bottom: bo.view.default - bo.snackbar.default + "px", flexDirection: "column-reverse" },
    left:
      ((yd = { left: bo.view.default + "px" }),
      (yd[Gi.upSm] = { alignItems: "flex-start" }),
      (yd[Gi.downXs] = { left: fh + "px" }),
      yd),
    right:
      ((vd = { right: bo.view.default + "px" }),
      (vd[Gi.upSm] = { alignItems: "flex-end" }),
      (vd[Gi.downXs] = { right: fh + "px" }),
      vd),
    center: ((dh = { left: "50%", transform: "translateX(-50%)" }), (dh[Gi.upSm] = { alignItems: "center" }), dh),
  }),
  fK = function (t) {
    var n = t.classes,
      r = n === void 0 ? {} : n,
      o = t.anchorOrigin,
      i = t.dense,
      s = t.children,
      a = Es(
        qa.SnackbarContainer,
        xd[o.vertical],
        xd[o.horizontal],
        xd.root,
        r.containerRoot,
        r["containerAnchorOrigin" + B5(o)],
        i && xd.rootDense
      );
    return De.createElement("div", { className: a }, s);
  },
  pK = b.memo(fK),
  O6 = function (t) {
    var n = typeof t == "string" || b.isValidElement(t);
    return !n;
  },
  eo,
  hK = (function (e) {
    bC(t, e);
    function t(r) {
      var o;
      return (
        (o = e.call(this, r) || this),
        (o.enqueueSnackbar = function (i, s) {
          if ((s === void 0 && (s = {}), i == null)) throw new Error("enqueueSnackbar called with invalid argument");
          var a = O6(i) ? i : s,
            l = O6(i) ? i.message : i,
            u = a.key,
            c = a.preventDuplicate,
            d = Ec(a, ["key", "preventDuplicate"]),
            p = hd(u),
            h = p ? u : new Date().getTime() + Math.random(),
            m = nK(d, o.props),
            v = gt({ id: h }, d, {
              message: l,
              open: !0,
              entered: !1,
              requestClose: !1,
              persist: m("persist"),
              action: m("action"),
              content: m("content"),
              variant: m("variant"),
              anchorOrigin: m("anchorOrigin"),
              disableWindowBlurListener: m("disableWindowBlurListener"),
              autoHideDuration: m("autoHideDuration"),
              hideIconVariant: m("hideIconVariant"),
              TransitionComponent: m("TransitionComponent"),
              transitionDuration: m("transitionDuration"),
              TransitionProps: m("TransitionProps", !0),
              iconVariant: m("iconVariant", !0),
              style: m("style", !0),
              SnackbarProps: m("SnackbarProps", !0),
              className: Es(o.props.className, d.className),
            });
          return (
            v.persist && (v.autoHideDuration = void 0),
            o.setState(function (C) {
              if ((c === void 0 && o.props.preventDuplicate) || c) {
                var y = function (k) {
                    return p ? k.id === h : k.message === l;
                  },
                  g = C.queue.findIndex(y) > -1,
                  x = C.snacks.findIndex(y) > -1;
                if (g || x) return C;
              }
              return o.handleDisplaySnack(gt({}, C, { queue: [].concat(C.queue, [v]) }));
            }),
            h
          );
        }),
        (o.handleDisplaySnack = function (i) {
          var s = i.snacks;
          return s.length >= o.maxSnack ? o.handleDismissOldest(i) : o.processQueue(i);
        }),
        (o.processQueue = function (i) {
          var s = i.queue,
            a = i.snacks;
          return s.length > 0 ? gt({}, i, { snacks: [].concat(a, [s[0]]), queue: s.slice(1, s.length) }) : i;
        }),
        (o.handleDismissOldest = function (i) {
          if (
            i.snacks.some(function (c) {
              return !c.open || c.requestClose;
            })
          )
            return i;
          var s = !1,
            a = !1,
            l = i.snacks.reduce(function (c, d) {
              return c + (d.open && d.persist ? 1 : 0);
            }, 0);
          l === o.maxSnack && (a = !0);
          var u = i.snacks.map(function (c) {
            return !s && (!c.persist || a)
              ? ((s = !0),
                c.entered
                  ? (c.onClose && c.onClose(null, "maxsnack", c.id),
                    o.props.onClose && o.props.onClose(null, "maxsnack", c.id),
                    gt({}, c, { open: !1 }))
                  : gt({}, c, { requestClose: !0 }))
              : gt({}, c);
          });
          return gt({}, i, { snacks: u });
        }),
        (o.handleEnteredSnack = function (i, s, a) {
          if (!hd(a)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
          o.setState(function (l) {
            var u = l.snacks;
            return {
              snacks: u.map(function (c) {
                return c.id === a ? gt({}, c, { entered: !0 }) : gt({}, c);
              }),
            };
          });
        }),
        (o.handleCloseSnack = function (i, s, a) {
          o.props.onClose && o.props.onClose(i, s, a);
          var l = a === void 0;
          o.setState(function (u) {
            var c = u.snacks,
              d = u.queue;
            return {
              snacks: c.map(function (p) {
                return !l && p.id !== a
                  ? gt({}, p)
                  : p.entered
                    ? gt({}, p, { open: !1 })
                    : gt({}, p, { requestClose: !0 });
              }),
              queue: d.filter(function (p) {
                return p.id !== a;
              }),
            };
          });
        }),
        (o.closeSnackbar = function (i) {
          var s = o.state.snacks.find(function (a) {
            return a.id === i;
          });
          hd(i) && s && s.onClose && s.onClose(null, "instructed", i), o.handleCloseSnack(null, "instructed", i);
        }),
        (o.handleExitedSnack = function (i, s) {
          if (!hd(s)) throw new Error("handleExitedSnack Cannot be called with undefined key");
          o.setState(function (a) {
            var l = o.processQueue(
              gt({}, a, {
                snacks: a.snacks.filter(function (u) {
                  return u.id !== s;
                }),
              })
            );
            return l.queue.length === 0 ? l : o.handleDismissOldest(l);
          });
        }),
        (eo = o.enqueueSnackbar),
        o.closeSnackbar,
        (o.state = {
          snacks: [],
          queue: [],
          contextValue: { enqueueSnackbar: o.enqueueSnackbar.bind(S6(o)), closeSnackbar: o.closeSnackbar.bind(S6(o)) },
        }),
        o
      );
    }
    var n = t.prototype;
    return (
      (n.render = function () {
        var o = this,
          i = this.state.contextValue,
          s = this.props,
          a = s.domRoot,
          l = s.children,
          u = s.dense,
          c = u === void 0 ? !1 : u,
          d = s.Components,
          p = d === void 0 ? {} : d,
          h = s.classes,
          m = this.state.snacks.reduce(function (C, y) {
            var g,
              x = B5(y.anchorOrigin),
              w = C[x] || [];
            return gt({}, C, ((g = {}), (g[x] = [].concat(w, [y])), g));
          }, {}),
          v = Object.keys(m).map(function (C) {
            var y = m[C],
              g = y[0];
            return De.createElement(
              pK,
              { key: C, dense: c, anchorOrigin: g.anchorOrigin, classes: h },
              y.map(function (x) {
                return De.createElement(dK, {
                  key: x.id,
                  snack: x,
                  classes: h,
                  Component: p[x.variant],
                  onClose: o.handleCloseSnack,
                  onEnter: o.props.onEnter,
                  onExit: o.props.onExit,
                  onExited: pu([o.handleExitedSnack, o.props.onExited], x.id),
                  onEntered: pu([o.handleEnteredSnack, o.props.onEntered], x.id),
                });
              })
            );
          });
        return De.createElement(GY.Provider, { value: i }, l, a ? ws.createPortal(v, a) : v);
      }),
      xC(t, [
        {
          key: "maxSnack",
          get: function () {
            return this.props.maxSnack || ss.maxSnack;
          },
        },
      ]),
      t
    );
  })(b.Component);
const mK = b.createContext(null),
  ph = { didCatch: !1, error: null };
class gK extends b.Component {
  constructor(t) {
    super(t), (this.resetErrorBoundary = this.resetErrorBoundary.bind(this)), (this.state = ph);
  }
  static getDerivedStateFromError(t) {
    return { didCatch: !0, error: t };
  }
  resetErrorBoundary() {
    const { error: t } = this.state;
    if (t !== null) {
      for (var n, r, o = arguments.length, i = new Array(o), s = 0; s < o; s++) i[s] = arguments[s];
      (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, { args: i, reason: "imperative-api" }),
        this.setState(ph);
    }
  }
  componentDidCatch(t, n) {
    var r, o;
    (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
  }
  componentDidUpdate(t, n) {
    const { didCatch: r } = this.state,
      { resetKeys: o } = this.props;
    if (r && n.error !== null && yK(t.resetKeys, o)) {
      var i, s;
      (i = (s = this.props).onReset) === null ||
        i === void 0 ||
        i.call(s, { next: o, prev: t.resetKeys, reason: "keys" }),
        this.setState(ph);
    }
  }
  render() {
    const { children: t, fallbackRender: n, FallbackComponent: r, fallback: o } = this.props,
      { didCatch: i, error: s } = this.state;
    let a = t;
    if (i) {
      const l = { error: s, resetErrorBoundary: this.resetErrorBoundary };
      if (typeof n == "function") a = n(l);
      else if (r) a = b.createElement(r, l);
      else if (o === null || b.isValidElement(o)) a = o;
      else throw s;
    }
    return b.createElement(
      mK.Provider,
      { value: { didCatch: i, error: s, resetErrorBoundary: this.resetErrorBoundary } },
      a
    );
  }
}
function yK() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
    t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
}
const Xs = ({ error: e }) => {
    var n;
    let t = (e == null ? void 0 : e.message) ?? ((n = e.response) == null ? void 0 : n.data) ?? "Something went wrong";
    return f.jsx(H, {
      sx: {
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
        height: "100%",
        backgroundColor: "#F2F3F7",
      },
      children: f.jsx(xe, { sx: { textAlign: "center", color: "text.primary" }, children: t }),
    });
  },
  F6 = ({ checked: e = !1, color: t = "#7E2AEA" }) => (
    Re(),
    f.jsx(H, {
      sx: {
        height: "24px",
        width: "24px",
        borderRadius: "6px",
        display: "flex",
        justifyContent: "center",
        alignItems: "center",
        backgroundColor: e ? t : "#F2F3F7",
        border: "1px solid #9A9AAF",
      },
      children:
        e &&
        f.jsx("svg", {
          xmlns: "http://www.w3.org/2000/svg",
          width: "15",
          height: "15",
          viewBox: "0 0 25 18",
          fill: "none",
          children: f.jsx("path", {
            d: "M2 9L10 16.5L22.5 1.5",
            stroke: "#ffffff",
            strokeWidth: "4",
            strokeLinecap: "round",
          }),
        }),
    })
  );
function vK({ label: e, handleChange: t, checked: n, sx: r, dataCy: o, colorIcon: i }) {
  return f.jsx(Ka, {
    control: f.jsx(e5, {
      sx: { padding: "0px 13px 1px 11px" },
      disableRipple: !0,
      icon: f.jsx(F6, {}),
      checkedIcon: f.jsx(F6, { checked: !0, color: i }),
      onChange: t,
      checked: n,
      "data-cy": o,
    }),
    label: e,
    sx: { color: "#9A9AAF", height: "26px", ...r },
  });
}
function xK({ color: e, backgroundColor: t }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      height: "58px",
      width: "45px",
      backgroundColor: { backgroundColor: t },
      borderBottomLeftRadius: "12px",
      borderTopLeftRadius: "12px",
    },
    children: f.jsxs("svg", {
      width: "17",
      height: "18",
      viewBox: "0 0 17 18",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("circle", {
          cx: "2.97143",
          cy: "2.97143",
          r: "2.97143",
          transform: "matrix(-1 0 0 1 11.4688 2.5)",
          stroke: "#9A9AAF",
          strokeWidth: "1.5",
        }),
        f.jsx("path", {
          d: "M3.29688 12.8526C3.29688 12.2135 3.69865 11.6433 4.30054 11.4284V11.4284C7.01416 10.4592 9.97959 10.4592 12.6932 11.4284V11.4284C13.2951 11.6433 13.6969 12.2135 13.6969 12.8526V13.8298C13.6969 14.7119 12.9156 15.3895 12.0424 15.2648L11.7512 15.2232C9.59262 14.9148 7.40113 14.9148 5.24252 15.2232L4.95137 15.2648C4.07814 15.3895 3.29688 14.7119 3.29688 13.8298V12.8526Z",
          stroke: "#9A9AAF",
          strokeWidth: "1.5",
        }),
      ],
    }),
  });
}
function bK({ color: e, backgroundColor: t }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      height: "58px",
      width: "45px",
      backgroundColor: { backgroundColor: t },
      borderBottomLeftRadius: "12px",
      borderTopLeftRadius: "12px",
    },
    children: f.jsxs("svg", {
      width: "17",
      height: "18",
      viewBox: "0 0 17 18",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("rect", { x: "1", y: "3", width: "15", height: "12", rx: "3", stroke: "#9A9AAF", strokeWidth: "1.5" }),
        f.jsx("path", {
          d: "M4 6.75L7.3 9.225C8.01111 9.75833 8.98889 9.75833 9.7 9.225L13 6.75",
          stroke: "#9A9AAF",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
function CK({ color: e, backgroundColor: t }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      height: "58px",
      width: "45px",
      backgroundColor: { backgroundColor: t },
      borderBottomLeftRadius: "12px",
      borderTopLeftRadius: "12px",
    },
    children: f.jsxs("svg", {
      width: "15",
      height: "15",
      viewBox: "0 0 15 15",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M8.67188 1.60156L8.67188 13.3838",
          stroke: e,
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M10.6016 4.21875H13.7768C13.8534 4.21875 13.9268 4.26814 13.9809 4.35604C14.035 4.44395 14.0655 4.56318 14.0655 4.6875V10.3125C14.0655 10.4368 14.035 10.556 13.9809 10.644C13.9268 10.7319 13.8534 10.7812 13.7768 10.7812H10.6016",
          stroke: e,
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M8.67081 10.7812H1.58194C1.41103 10.7812 1.24711 10.7319 1.12625 10.644C1.0054 10.556 0.9375 10.4368 0.9375 10.3125V4.6875C0.9375 4.56318 1.0054 4.44395 1.12625 4.35604C1.24711 4.26814 1.41103 4.21875 1.58194 4.21875H8.67081",
          stroke: e,
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", { d: "M3.98438 6.5625H5.625", stroke: e, strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", { d: "M7.85156 1.60156H9.49219", stroke: e, strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", { d: "M7.85156 13.3828H9.49219", stroke: e, strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", { d: "M4.80469 6.5625V8.67188", stroke: e, strokeLinecap: "round", strokeLinejoin: "round" }),
      ],
    }),
  });
}
function wK({ color: e, backgroundColor: t }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      height: "58px",
      width: "45px",
      backgroundColor: { backgroundColor: t },
      borderBottomLeftRadius: "12px",
      borderTopLeftRadius: "12px",
    },
    children: f.jsxs("svg", {
      width: "15",
      height: "15",
      viewBox: "0 0 15 15",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M7.5 7.96875C8.53553 7.96875 9.375 7.12928 9.375 6.09375C9.375 5.05822 8.53553 4.21875 7.5 4.21875C6.46447 4.21875 5.625 5.05822 5.625 6.09375C5.625 7.12928 6.46447 7.96875 7.5 7.96875Z",
          stroke: e,
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M12.1875 6.09375C12.1875 10.3125 7.5 13.5938 7.5 13.5938C7.5 13.5938 2.8125 10.3125 2.8125 6.09375C2.8125 4.85055 3.30636 3.65826 4.18544 2.77919C5.06451 1.90011 6.2568 1.40625 7.5 1.40625C8.7432 1.40625 9.93549 1.90011 10.8146 2.77919C11.6936 3.65826 12.1875 4.85055 12.1875 6.09375V6.09375Z",
          stroke: e,
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
function yi(e) {
  return typeof e == "string" || e instanceof String;
}
function L6(e) {
  var t;
  return typeof e == "object" && e != null && (e == null || (t = e.constructor) == null ? void 0 : t.name) === "Object";
}
function PC(e, t) {
  return Array.isArray(t)
    ? PC(e, (n, r) => t.includes(r))
    : Object.entries(e).reduce((n, r) => {
        let [o, i] = r;
        return t(i, o) && (n[o] = i), n;
      }, {});
}
const Ie = { NONE: "NONE", LEFT: "LEFT", FORCE_LEFT: "FORCE_LEFT", RIGHT: "RIGHT", FORCE_RIGHT: "FORCE_RIGHT" };
function SK(e) {
  switch (e) {
    case Ie.LEFT:
      return Ie.FORCE_LEFT;
    case Ie.RIGHT:
      return Ie.FORCE_RIGHT;
    default:
      return e;
  }
}
function hh(e) {
  return e.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
}
function Jf(e, t) {
  if (t === e) return !0;
  const n = Array.isArray(t),
    r = Array.isArray(e);
  let o;
  if (n && r) {
    if (t.length != e.length) return !1;
    for (o = 0; o < t.length; o++) if (!Jf(t[o], e[o])) return !1;
    return !0;
  }
  if (n != r) return !1;
  if (t && e && typeof t == "object" && typeof e == "object") {
    const i = t instanceof Date,
      s = e instanceof Date;
    if (i && s) return t.getTime() == e.getTime();
    if (i != s) return !1;
    const a = t instanceof RegExp,
      l = e instanceof RegExp;
    if (a && l) return t.toString() == e.toString();
    if (a != l) return !1;
    const u = Object.keys(t);
    for (o = 0; o < u.length; o++) if (!Object.prototype.hasOwnProperty.call(e, u[o])) return !1;
    for (o = 0; o < u.length; o++) if (!Jf(e[u[o]], t[u[o]])) return !1;
    return !0;
  } else if (t && e && typeof t == "function" && typeof e == "function") return t.toString() === e.toString();
  return !1;
}
class kK {
  constructor(t) {
    for (
      Object.assign(this, t);
      this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos);

    )
      --this.oldSelection.start;
    if (this.insertedCount)
      for (; this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end); )
        this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end
          ? ++this.oldSelection.end
          : ++this.cursorPos;
  }
  get startChangePos() {
    return Math.min(this.cursorPos, this.oldSelection.start);
  }
  get insertedCount() {
    return this.cursorPos - this.startChangePos;
  }
  get inserted() {
    return this.value.substr(this.startChangePos, this.insertedCount);
  }
  get removedCount() {
    return Math.max(this.oldSelection.end - this.startChangePos || this.oldValue.length - this.value.length, 0);
  }
  get removed() {
    return this.oldValue.substr(this.startChangePos, this.removedCount);
  }
  get head() {
    return this.value.substring(0, this.startChangePos);
  }
  get tail() {
    return this.value.substring(this.startChangePos + this.insertedCount);
  }
  get removeDirection() {
    return !this.removedCount || this.insertedCount
      ? Ie.NONE
      : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) &&
          this.oldSelection.end === this.oldSelection.start
        ? Ie.RIGHT
        : Ie.LEFT;
  }
}
function $e(e, t) {
  return new $e.InputMask(e, t);
}
function AC(e) {
  if (e == null) throw new Error("mask property should be defined");
  return e instanceof RegExp
    ? $e.MaskedRegExp
    : yi(e)
      ? $e.MaskedPattern
      : e === Date
        ? $e.MaskedDate
        : e === Number
          ? $e.MaskedNumber
          : Array.isArray(e) || e === Array
            ? $e.MaskedDynamic
            : $e.Masked && e.prototype instanceof $e.Masked
              ? e
              : $e.Masked && e instanceof $e.Masked
                ? e.constructor
                : e instanceof Function
                  ? $e.MaskedFunction
                  : (console.warn("Mask not found for mask", e), $e.Masked);
}
function Xu(e) {
  if (!e) throw new Error("Options in not defined");
  if ($e.Masked) {
    if (e.prototype instanceof $e.Masked) return { mask: e };
    const { mask: t = void 0, ...n } =
      e instanceof $e.Masked ? { mask: e } : L6(e) && e.mask instanceof $e.Masked ? e : {};
    if (t) {
      const r = t.mask;
      return { ...PC(t, (o, i) => !i.startsWith("_")), mask: t.constructor, _mask: r, ...n };
    }
  }
  return L6(e) ? { ...e } : { mask: e };
}
function zo(e) {
  if ($e.Masked && e instanceof $e.Masked) return e;
  const t = Xu(e),
    n = AC(t.mask);
  if (!n)
    throw new Error(
      "Masked class is not found for provided mask " +
        t.mask +
        ", appropriate module needs to be imported manually before creating mask."
    );
  return t.mask === n && delete t.mask, t._mask && ((t.mask = t._mask), delete t._mask), new n(t);
}
$e.createMask = zo;
class V5 {
  get selectionStart() {
    let t;
    try {
      t = this._unsafeSelectionStart;
    } catch {}
    return t ?? this.value.length;
  }
  get selectionEnd() {
    let t;
    try {
      t = this._unsafeSelectionEnd;
    } catch {}
    return t ?? this.value.length;
  }
  select(t, n) {
    if (!(t == null || n == null || (t === this.selectionStart && n === this.selectionEnd)))
      try {
        this._unsafeSelect(t, n);
      } catch {}
  }
  get isActive() {
    return !1;
  }
}
$e.MaskElement = V5;
const N6 = 90,
  TK = 89;
class z0 extends V5 {
  constructor(t) {
    super(),
      (this.input = t),
      (this._onKeydown = this._onKeydown.bind(this)),
      (this._onInput = this._onInput.bind(this)),
      (this._onBeforeinput = this._onBeforeinput.bind(this)),
      (this._onCompositionEnd = this._onCompositionEnd.bind(this));
  }
  get rootElement() {
    var t, n, r;
    return (t = (n = (r = this.input).getRootNode) == null ? void 0 : n.call(r)) != null ? t : document;
  }
  get isActive() {
    return this.input === this.rootElement.activeElement;
  }
  bindEvents(t) {
    this.input.addEventListener("keydown", this._onKeydown),
      this.input.addEventListener("input", this._onInput),
      this.input.addEventListener("beforeinput", this._onBeforeinput),
      this.input.addEventListener("compositionend", this._onCompositionEnd),
      this.input.addEventListener("drop", t.drop),
      this.input.addEventListener("click", t.click),
      this.input.addEventListener("focus", t.focus),
      this.input.addEventListener("blur", t.commit),
      (this._handlers = t);
  }
  _onKeydown(t) {
    if (
      this._handlers.redo &&
      ((t.keyCode === N6 && t.shiftKey && (t.metaKey || t.ctrlKey)) || (t.keyCode === TK && t.ctrlKey))
    )
      return t.preventDefault(), this._handlers.redo(t);
    if (this._handlers.undo && t.keyCode === N6 && (t.metaKey || t.ctrlKey))
      return t.preventDefault(), this._handlers.undo(t);
    t.isComposing || this._handlers.selectionChange(t);
  }
  _onBeforeinput(t) {
    if (t.inputType === "historyUndo" && this._handlers.undo) return t.preventDefault(), this._handlers.undo(t);
    if (t.inputType === "historyRedo" && this._handlers.redo) return t.preventDefault(), this._handlers.redo(t);
  }
  _onCompositionEnd(t) {
    this._handlers.input(t);
  }
  _onInput(t) {
    t.isComposing || this._handlers.input(t);
  }
  unbindEvents() {
    this.input.removeEventListener("keydown", this._onKeydown),
      this.input.removeEventListener("input", this._onInput),
      this.input.removeEventListener("beforeinput", this._onBeforeinput),
      this.input.removeEventListener("compositionend", this._onCompositionEnd),
      this.input.removeEventListener("drop", this._handlers.drop),
      this.input.removeEventListener("click", this._handlers.click),
      this.input.removeEventListener("focus", this._handlers.focus),
      this.input.removeEventListener("blur", this._handlers.commit),
      (this._handlers = {});
  }
}
$e.HTMLMaskElement = z0;
class MK extends z0 {
  constructor(t) {
    super(t), (this.input = t);
  }
  get _unsafeSelectionStart() {
    return this.input.selectionStart != null ? this.input.selectionStart : this.value.length;
  }
  get _unsafeSelectionEnd() {
    return this.input.selectionEnd;
  }
  _unsafeSelect(t, n) {
    this.input.setSelectionRange(t, n);
  }
  get value() {
    return this.input.value;
  }
  set value(t) {
    this.input.value = t;
  }
}
$e.HTMLMaskElement = z0;
class _C extends z0 {
  get _unsafeSelectionStart() {
    const t = this.rootElement,
      n = t.getSelection && t.getSelection(),
      r = n && n.anchorOffset,
      o = n && n.focusOffset;
    return o == null || r == null || r < o ? r : o;
  }
  get _unsafeSelectionEnd() {
    const t = this.rootElement,
      n = t.getSelection && t.getSelection(),
      r = n && n.anchorOffset,
      o = n && n.focusOffset;
    return o == null || r == null || r > o ? r : o;
  }
  _unsafeSelect(t, n) {
    if (!this.rootElement.createRange) return;
    const r = this.rootElement.createRange();
    r.setStart(this.input.firstChild || this.input, t), r.setEnd(this.input.lastChild || this.input, n);
    const o = this.rootElement,
      i = o.getSelection && o.getSelection();
    i && (i.removeAllRanges(), i.addRange(r));
  }
  get value() {
    return this.input.textContent || "";
  }
  set value(t) {
    this.input.textContent = t;
  }
}
$e.HTMLContenteditableMaskElement = _C;
class W0 {
  constructor() {
    (this.states = []), (this.currentIndex = 0);
  }
  get currentState() {
    return this.states[this.currentIndex];
  }
  get isEmpty() {
    return this.states.length === 0;
  }
  push(t) {
    this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1),
      this.states.push(t),
      this.states.length > W0.MAX_LENGTH && this.states.shift(),
      (this.currentIndex = this.states.length - 1);
  }
  go(t) {
    return (
      (this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1)), this.currentState
    );
  }
  undo() {
    return this.go(-1);
  }
  redo() {
    return this.go(1);
  }
  clear() {
    (this.states.length = 0), (this.currentIndex = 0);
  }
}
W0.MAX_LENGTH = 100;
class EK {
  constructor(t, n) {
    (this.el =
      t instanceof V5
        ? t
        : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA"
          ? new _C(t)
          : new MK(t)),
      (this.masked = zo(n)),
      (this._listeners = {}),
      (this._value = ""),
      (this._unmaskedValue = ""),
      (this._rawInputValue = ""),
      (this.history = new W0()),
      (this._saveSelection = this._saveSelection.bind(this)),
      (this._onInput = this._onInput.bind(this)),
      (this._onChange = this._onChange.bind(this)),
      (this._onDrop = this._onDrop.bind(this)),
      (this._onFocus = this._onFocus.bind(this)),
      (this._onClick = this._onClick.bind(this)),
      (this._onUndo = this._onUndo.bind(this)),
      (this._onRedo = this._onRedo.bind(this)),
      (this.alignCursor = this.alignCursor.bind(this)),
      (this.alignCursorFriendly = this.alignCursorFriendly.bind(this)),
      this._bindEvents(),
      this._onChange();
  }
  maskEquals(t) {
    var n;
    return t == null || ((n = this.masked) == null ? void 0 : n.maskEquals(t));
  }
  get mask() {
    return this.masked.mask;
  }
  set mask(t) {
    if (this.maskEquals(t)) return;
    if (!(t instanceof $e.Masked) && this.masked.constructor === AC(t)) {
      this.masked.updateOptions({ mask: t });
      return;
    }
    const n = t instanceof $e.Masked ? t : zo({ mask: t });
    (n.unmaskedValue = this.masked.unmaskedValue), (this.masked = n);
  }
  get value() {
    return this._value;
  }
  set value(t) {
    this.value !== t && ((this.masked.value = t), this.updateControl("auto"));
  }
  get unmaskedValue() {
    return this._unmaskedValue;
  }
  set unmaskedValue(t) {
    this.unmaskedValue !== t && ((this.masked.unmaskedValue = t), this.updateControl("auto"));
  }
  get rawInputValue() {
    return this._rawInputValue;
  }
  set rawInputValue(t) {
    this.rawInputValue !== t && ((this.masked.rawInputValue = t), this.updateControl(), this.alignCursor());
  }
  get typedValue() {
    return this.masked.typedValue;
  }
  set typedValue(t) {
    this.masked.typedValueEquals(t) || ((this.masked.typedValue = t), this.updateControl("auto"));
  }
  get displayValue() {
    return this.masked.displayValue;
  }
  _bindEvents() {
    this.el.bindEvents({
      selectionChange: this._saveSelection,
      input: this._onInput,
      drop: this._onDrop,
      click: this._onClick,
      focus: this._onFocus,
      commit: this._onChange,
      undo: this._onUndo,
      redo: this._onRedo,
    });
  }
  _unbindEvents() {
    this.el && this.el.unbindEvents();
  }
  _fireEvent(t, n) {
    const r = this._listeners[t];
    r && r.forEach((o) => o(n));
  }
  get selectionStart() {
    return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
  }
  get cursorPos() {
    return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
  }
  set cursorPos(t) {
    !this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
  }
  _saveSelection() {
    this.displayValue !== this.el.value &&
      console.warn(
        "Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."
      ),
      (this._selection = { start: this.selectionStart, end: this.cursorPos });
  }
  updateValue() {
    (this.masked.value = this.el.value),
      (this._value = this.masked.value),
      (this._unmaskedValue = this.masked.unmaskedValue),
      (this._rawInputValue = this.masked.rawInputValue);
  }
  updateControl(t) {
    const n = this.masked.unmaskedValue,
      r = this.masked.value,
      o = this.masked.rawInputValue,
      i = this.displayValue,
      s = this.unmaskedValue !== n || this.value !== r || this._rawInputValue !== o;
    (this._unmaskedValue = n),
      (this._value = r),
      (this._rawInputValue = o),
      this.el.value !== i && (this.el.value = i),
      t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t),
      s && this._fireChangeEvents(),
      !this._historyChanging &&
        (s || this.history.isEmpty) &&
        this.history.push({ unmaskedValue: n, selection: { start: this.selectionStart, end: this.cursorPos } });
  }
  updateOptions(t) {
    const { mask: n, ...r } = t,
      o = !this.maskEquals(n),
      i = this.masked.optionsIsChanged(r);
    o && (this.mask = n), i && this.masked.updateOptions(r), (o || i) && this.updateControl();
  }
  updateCursor(t) {
    t != null && ((this.cursorPos = t), this._delayUpdateCursor(t));
  }
  _delayUpdateCursor(t) {
    this._abortUpdateCursor(),
      (this._changingCursorPos = t),
      (this._cursorChanging = setTimeout(() => {
        this.el && ((this.cursorPos = this._changingCursorPos), this._abortUpdateCursor());
      }, 10));
  }
  _fireChangeEvents() {
    this._fireEvent("accept", this._inputEvent),
      this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
  }
  _abortUpdateCursor() {
    this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
  }
  alignCursor() {
    this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, Ie.LEFT));
  }
  alignCursorFriendly() {
    this.selectionStart === this.cursorPos && this.alignCursor();
  }
  on(t, n) {
    return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(n), this;
  }
  off(t, n) {
    if (!this._listeners[t]) return this;
    if (!n) return delete this._listeners[t], this;
    const r = this._listeners[t].indexOf(n);
    return r >= 0 && this._listeners[t].splice(r, 1), this;
  }
  _onInput(t) {
    (this._inputEvent = t), this._abortUpdateCursor();
    const n = new kK({
        value: this.el.value,
        cursorPos: this.cursorPos,
        oldValue: this.displayValue,
        oldSelection: this._selection,
      }),
      r = this.masked.rawInputValue,
      o = this.masked.splice(n.startChangePos, n.removed.length, n.inserted, n.removeDirection, {
        input: !0,
        raw: !0,
      }).offset,
      i = r === this.masked.rawInputValue ? n.removeDirection : Ie.NONE;
    let s = this.masked.nearestInputPos(n.startChangePos + o, i);
    i !== Ie.NONE && (s = this.masked.nearestInputPos(s, Ie.NONE)), this.updateControl(s), delete this._inputEvent;
  }
  _onChange() {
    this.displayValue !== this.el.value && this.updateValue(),
      this.masked.doCommit(),
      this.updateControl(),
      this._saveSelection();
  }
  _onDrop(t) {
    t.preventDefault(), t.stopPropagation();
  }
  _onFocus(t) {
    this.alignCursorFriendly();
  }
  _onClick(t) {
    this.alignCursorFriendly();
  }
  _onUndo() {
    this._applyHistoryState(this.history.undo());
  }
  _onRedo() {
    this._applyHistoryState(this.history.redo());
  }
  _applyHistoryState(t) {
    t &&
      ((this._historyChanging = !0),
      (this.unmaskedValue = t.unmaskedValue),
      this.el.select(t.selection.start, t.selection.end),
      this._saveSelection(),
      (this._historyChanging = !1));
  }
  destroy() {
    this._unbindEvents(), (this._listeners.length = 0), delete this.el;
  }
}
$e.InputMask = EK;
class We {
  static normalize(t) {
    return Array.isArray(t) ? t : [t, new We()];
  }
  constructor(t) {
    Object.assign(this, { inserted: "", rawInserted: "", tailShift: 0, skip: !1 }, t);
  }
  aggregate(t) {
    return (
      (this.inserted += t.inserted),
      (this.rawInserted += t.rawInserted),
      (this.tailShift += t.tailShift),
      (this.skip = this.skip || t.skip),
      this
    );
  }
  get offset() {
    return this.tailShift + this.inserted.length;
  }
  get consumed() {
    return !!this.rawInserted || this.skip;
  }
  equals(t) {
    return (
      this.inserted === t.inserted &&
      this.tailShift === t.tailShift &&
      this.rawInserted === t.rawInserted &&
      this.skip === t.skip
    );
  }
}
$e.ChangeDetails = We;
class to {
  constructor(t, n, r) {
    t === void 0 && (t = ""), n === void 0 && (n = 0), (this.value = t), (this.from = n), (this.stop = r);
  }
  toString() {
    return this.value;
  }
  extend(t) {
    this.value += String(t);
  }
  appendTo(t) {
    return t.append(this.toString(), { tail: !0 }).aggregate(t._appendPlaceholder());
  }
  get state() {
    return { value: this.value, from: this.from, stop: this.stop };
  }
  set state(t) {
    Object.assign(this, t);
  }
  unshift(t) {
    if (!this.value.length || (t != null && this.from >= t)) return "";
    const n = this.value[0];
    return (this.value = this.value.slice(1)), n;
  }
  shift() {
    if (!this.value.length) return "";
    const t = this.value[this.value.length - 1];
    return (this.value = this.value.slice(0, -1)), t;
  }
}
class mn {
  constructor(t) {
    (this._value = ""), this._update({ ...mn.DEFAULTS, ...t }), (this._initialized = !0);
  }
  updateOptions(t) {
    this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
  }
  _update(t) {
    Object.assign(this, t);
  }
  get state() {
    return { _value: this.value, _rawInputValue: this.rawInputValue };
  }
  set state(t) {
    this._value = t._value;
  }
  reset() {
    this._value = "";
  }
  get value() {
    return this._value;
  }
  set value(t) {
    this.resolve(t, { input: !0 });
  }
  resolve(t, n) {
    n === void 0 && (n = { input: !0 }), this.reset(), this.append(t, n, ""), this.doCommit();
  }
  get unmaskedValue() {
    return this.value;
  }
  set unmaskedValue(t) {
    this.resolve(t, {});
  }
  get typedValue() {
    return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
  }
  set typedValue(t) {
    this.format ? (this.value = this.format(t, this)) : (this.unmaskedValue = String(t));
  }
  get rawInputValue() {
    return this.extractInput(0, this.displayValue.length, { raw: !0 });
  }
  set rawInputValue(t) {
    this.resolve(t, { raw: !0 });
  }
  get displayValue() {
    return this.value;
  }
  get isComplete() {
    return !0;
  }
  get isFilled() {
    return this.isComplete;
  }
  nearestInputPos(t, n) {
    return t;
  }
  totalInputPositions(t, n) {
    return (
      t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), Math.min(this.displayValue.length, n - t)
    );
  }
  extractInput(t, n, r) {
    return t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), this.displayValue.slice(t, n);
  }
  extractTail(t, n) {
    return t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), new to(this.extractInput(t, n), t);
  }
  appendTail(t) {
    return yi(t) && (t = new to(String(t))), t.appendTo(this);
  }
  _appendCharRaw(t, n) {
    return t ? ((this._value += t), new We({ inserted: t, rawInserted: t })) : new We();
  }
  _appendChar(t, n, r) {
    n === void 0 && (n = {});
    const o = this.state;
    let i;
    if (
      (([t, i] = this.doPrepareChar(t, n)),
      t && ((i = i.aggregate(this._appendCharRaw(t, n))), !i.rawInserted && this.autofix === "pad"))
    ) {
      const s = this.state;
      this.state = o;
      let a = this.pad(n);
      const l = this._appendCharRaw(t, n);
      (a = a.aggregate(l)), l.rawInserted || a.equals(i) ? (i = a) : (this.state = s);
    }
    if (i.inserted) {
      let s,
        a = this.doValidate(n) !== !1;
      if (a && r != null) {
        const l = this.state;
        if (this.overwrite === !0) {
          s = r.state;
          for (let c = 0; c < i.rawInserted.length; ++c) r.unshift(this.displayValue.length - i.tailShift);
        }
        let u = this.appendTail(r);
        if (((a = u.rawInserted.length === r.toString().length), !(a && u.inserted) && this.overwrite === "shift")) {
          (this.state = l), (s = r.state);
          for (let c = 0; c < i.rawInserted.length; ++c) r.shift();
          (u = this.appendTail(r)), (a = u.rawInserted.length === r.toString().length);
        }
        a && u.inserted && (this.state = l);
      }
      a || ((i = new We()), (this.state = o), r && s && (r.state = s));
    }
    return i;
  }
  _appendPlaceholder() {
    return new We();
  }
  _appendEager() {
    return new We();
  }
  append(t, n, r) {
    if (!yi(t)) throw new Error("value should be string");
    const o = yi(r) ? new to(String(r)) : r;
    n != null && n.tail && (n._beforeTailState = this.state);
    let i;
    [t, i] = this.doPrepare(t, n);
    for (let s = 0; s < t.length; ++s) {
      const a = this._appendChar(t[s], n, o);
      if (!a.rawInserted && !this.doSkipInvalid(t[s], n, o)) break;
      i.aggregate(a);
    }
    return (
      (this.eager === !0 || this.eager === "append") && n != null && n.input && t && i.aggregate(this._appendEager()),
      o != null && (i.tailShift += this.appendTail(o).tailShift),
      i
    );
  }
  remove(t, n) {
    return (
      t === void 0 && (t = 0),
      n === void 0 && (n = this.displayValue.length),
      (this._value = this.displayValue.slice(0, t) + this.displayValue.slice(n)),
      new We()
    );
  }
  withValueRefresh(t) {
    if (this._refreshing || !this._initialized) return t();
    this._refreshing = !0;
    const n = this.rawInputValue,
      r = this.value,
      o = t();
    return (
      (this.rawInputValue = n),
      this.value &&
        this.value !== r &&
        r.indexOf(this.value) === 0 &&
        (this.append(r.slice(this.displayValue.length), {}, ""), this.doCommit()),
      delete this._refreshing,
      o
    );
  }
  runIsolated(t) {
    if (this._isolated || !this._initialized) return t(this);
    this._isolated = !0;
    const n = this.state,
      r = t(this);
    return (this.state = n), delete this._isolated, r;
  }
  doSkipInvalid(t, n, r) {
    return !!this.skipInvalid;
  }
  doPrepare(t, n) {
    return n === void 0 && (n = {}), We.normalize(this.prepare ? this.prepare(t, this, n) : t);
  }
  doPrepareChar(t, n) {
    return n === void 0 && (n = {}), We.normalize(this.prepareChar ? this.prepareChar(t, this, n) : t);
  }
  doValidate(t) {
    return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
  }
  doCommit() {
    this.commit && this.commit(this.value, this);
  }
  splice(t, n, r, o, i) {
    r === void 0 && (r = ""), o === void 0 && (o = Ie.NONE), i === void 0 && (i = { input: !0 });
    const s = t + n,
      a = this.extractTail(s),
      l = this.eager === !0 || this.eager === "remove";
    let u;
    l && ((o = SK(o)), (u = this.extractInput(0, s, { raw: !0 })));
    let c = t;
    const d = new We();
    if (
      (o !== Ie.NONE && ((c = this.nearestInputPos(t, n > 1 && t !== 0 && !l ? Ie.NONE : o)), (d.tailShift = c - t)),
      d.aggregate(this.remove(c)),
      l && o !== Ie.NONE && u === this.rawInputValue)
    )
      if (o === Ie.FORCE_LEFT) {
        let p;
        for (; u === this.rawInputValue && (p = this.displayValue.length); )
          d.aggregate(new We({ tailShift: -1 })).aggregate(this.remove(p - 1));
      } else o === Ie.FORCE_RIGHT && a.unshift();
    return d.aggregate(this.append(r, i, a));
  }
  maskEquals(t) {
    return this.mask === t;
  }
  optionsIsChanged(t) {
    return !Jf(this, t);
  }
  typedValueEquals(t) {
    const n = this.typedValue;
    return (
      t === n ||
      (mn.EMPTY_VALUES.includes(t) && mn.EMPTY_VALUES.includes(n)) ||
      (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1)
    );
  }
  pad(t) {
    return new We();
  }
}
mn.DEFAULTS = { skipInvalid: !0 };
mn.EMPTY_VALUES = [void 0, null, ""];
$e.Masked = mn;
class Ji {
  constructor(t, n) {
    t === void 0 && (t = []), n === void 0 && (n = 0), (this.chunks = t), (this.from = n);
  }
  toString() {
    return this.chunks.map(String).join("");
  }
  extend(t) {
    if (!String(t)) return;
    t = yi(t) ? new to(String(t)) : t;
    const n = this.chunks[this.chunks.length - 1],
      r = n && (n.stop === t.stop || t.stop == null) && t.from === n.from + n.toString().length;
    if (t instanceof to) r ? n.extend(t.toString()) : this.chunks.push(t);
    else if (t instanceof Ji) {
      if (t.stop == null) {
        let o;
        for (; t.chunks.length && t.chunks[0].stop == null; )
          (o = t.chunks.shift()), (o.from += t.from), this.extend(o);
      }
      t.toString() && ((t.stop = t.blockIndex), this.chunks.push(t));
    }
  }
  appendTo(t) {
    if (!(t instanceof $e.MaskedPattern)) return new to(this.toString()).appendTo(t);
    const n = new We();
    for (let r = 0; r < this.chunks.length; ++r) {
      const o = this.chunks[r],
        i = t._mapPosToBlock(t.displayValue.length),
        s = o.stop;
      let a;
      if (
        (s != null &&
          (!i || i.index <= s) &&
          ((o instanceof Ji || t._stops.indexOf(s) >= 0) && n.aggregate(t._appendPlaceholder(s)),
          (a = o instanceof Ji && t._blocks[s])),
        a)
      ) {
        const l = a.appendTail(o);
        n.aggregate(l);
        const u = o.toString().slice(l.rawInserted.length);
        u && n.aggregate(t.append(u, { tail: !0 }));
      } else n.aggregate(t.append(o.toString(), { tail: !0 }));
    }
    return n;
  }
  get state() {
    return { chunks: this.chunks.map((t) => t.state), from: this.from, stop: this.stop, blockIndex: this.blockIndex };
  }
  set state(t) {
    const { chunks: n, ...r } = t;
    Object.assign(this, r),
      (this.chunks = n.map((o) => {
        const i = "chunks" in o ? new Ji() : new to();
        return (i.state = o), i;
      }));
  }
  unshift(t) {
    if (!this.chunks.length || (t != null && this.from >= t)) return "";
    const n = t != null ? t - this.from : t;
    let r = 0;
    for (; r < this.chunks.length; ) {
      const o = this.chunks[r],
        i = o.unshift(n);
      if (o.toString()) {
        if (!i) break;
        ++r;
      } else this.chunks.splice(r, 1);
      if (i) return i;
    }
    return "";
  }
  shift() {
    if (!this.chunks.length) return "";
    let t = this.chunks.length - 1;
    for (; 0 <= t; ) {
      const n = this.chunks[t],
        r = n.shift();
      if (n.toString()) {
        if (!r) break;
        --t;
      } else this.chunks.splice(t, 1);
      if (r) return r;
    }
    return "";
  }
}
class PK {
  constructor(t, n) {
    (this.masked = t), (this._log = []);
    const { offset: r, index: o } =
      t._mapPosToBlock(n) || (n < 0 ? { index: 0, offset: 0 } : { index: this.masked._blocks.length, offset: 0 });
    (this.offset = r), (this.index = o), (this.ok = !1);
  }
  get block() {
    return this.masked._blocks[this.index];
  }
  get pos() {
    return this.masked._blockStartPos(this.index) + this.offset;
  }
  get state() {
    return { index: this.index, offset: this.offset, ok: this.ok };
  }
  set state(t) {
    Object.assign(this, t);
  }
  pushState() {
    this._log.push(this.state);
  }
  popState() {
    const t = this._log.pop();
    return t && (this.state = t), t;
  }
  bindBlock() {
    this.block ||
      (this.index < 0 && ((this.index = 0), (this.offset = 0)),
      this.index >= this.masked._blocks.length &&
        ((this.index = this.masked._blocks.length - 1), (this.offset = this.block.displayValue.length)));
  }
  _pushLeft(t) {
    for (
      this.pushState(), this.bindBlock();
      0 <= this.index;
      --this.index, this.offset = ((n = this.block) == null ? void 0 : n.displayValue.length) || 0
    ) {
      var n;
      if (t()) return (this.ok = !0);
    }
    return (this.ok = !1);
  }
  _pushRight(t) {
    for (this.pushState(), this.bindBlock(); this.index < this.masked._blocks.length; ++this.index, this.offset = 0)
      if (t()) return (this.ok = !0);
    return (this.ok = !1);
  }
  pushLeftBeforeFilled() {
    return this._pushLeft(() => {
      if (
        !(this.block.isFixed || !this.block.value) &&
        ((this.offset = this.block.nearestInputPos(this.offset, Ie.FORCE_LEFT)), this.offset !== 0)
      )
        return !0;
    });
  }
  pushLeftBeforeInput() {
    return this._pushLeft(() => {
      if (!this.block.isFixed) return (this.offset = this.block.nearestInputPos(this.offset, Ie.LEFT)), !0;
    });
  }
  pushLeftBeforeRequired() {
    return this._pushLeft(() => {
      if (!(this.block.isFixed || (this.block.isOptional && !this.block.value)))
        return (this.offset = this.block.nearestInputPos(this.offset, Ie.LEFT)), !0;
    });
  }
  pushRightBeforeFilled() {
    return this._pushRight(() => {
      if (
        !(this.block.isFixed || !this.block.value) &&
        ((this.offset = this.block.nearestInputPos(this.offset, Ie.FORCE_RIGHT)),
        this.offset !== this.block.value.length)
      )
        return !0;
    });
  }
  pushRightBeforeInput() {
    return this._pushRight(() => {
      if (!this.block.isFixed) return (this.offset = this.block.nearestInputPos(this.offset, Ie.NONE)), !0;
    });
  }
  pushRightBeforeRequired() {
    return this._pushRight(() => {
      if (!(this.block.isFixed || (this.block.isOptional && !this.block.value)))
        return (this.offset = this.block.nearestInputPos(this.offset, Ie.NONE)), !0;
    });
  }
}
class DC {
  constructor(t) {
    Object.assign(this, t), (this._value = ""), (this.isFixed = !0);
  }
  get value() {
    return this._value;
  }
  get unmaskedValue() {
    return this.isUnmasking ? this.value : "";
  }
  get rawInputValue() {
    return this._isRawInput ? this.value : "";
  }
  get displayValue() {
    return this.value;
  }
  reset() {
    (this._isRawInput = !1), (this._value = "");
  }
  remove(t, n) {
    return (
      t === void 0 && (t = 0),
      n === void 0 && (n = this._value.length),
      (this._value = this._value.slice(0, t) + this._value.slice(n)),
      this._value || (this._isRawInput = !1),
      new We()
    );
  }
  nearestInputPos(t, n) {
    n === void 0 && (n = Ie.NONE);
    const r = 0,
      o = this._value.length;
    switch (n) {
      case Ie.LEFT:
      case Ie.FORCE_LEFT:
        return r;
      case Ie.NONE:
      case Ie.RIGHT:
      case Ie.FORCE_RIGHT:
      default:
        return o;
    }
  }
  totalInputPositions(t, n) {
    return t === void 0 && (t = 0), n === void 0 && (n = this._value.length), this._isRawInput ? n - t : 0;
  }
  extractInput(t, n, r) {
    return (
      t === void 0 && (t = 0),
      n === void 0 && (n = this._value.length),
      r === void 0 && (r = {}),
      (r.raw && this._isRawInput && this._value.slice(t, n)) || ""
    );
  }
  get isComplete() {
    return !0;
  }
  get isFilled() {
    return !!this._value;
  }
  _appendChar(t, n) {
    if ((n === void 0 && (n = {}), this.isFilled)) return new We();
    const r = this.eager === !0 || this.eager === "append",
      i = this.char === t && (this.isUnmasking || n.input || n.raw) && (!n.raw || !r) && !n.tail,
      s = new We({ inserted: this.char, rawInserted: i ? this.char : "" });
    return (this._value = this.char), (this._isRawInput = i && (n.raw || n.input)), s;
  }
  _appendEager() {
    return this._appendChar(this.char, { tail: !0 });
  }
  _appendPlaceholder() {
    const t = new We();
    return this.isFilled || (this._value = t.inserted = this.char), t;
  }
  extractTail() {
    return new to("");
  }
  appendTail(t) {
    return yi(t) && (t = new to(String(t))), t.appendTo(this);
  }
  append(t, n, r) {
    const o = this._appendChar(t[0], n);
    return r != null && (o.tailShift += this.appendTail(r).tailShift), o;
  }
  doCommit() {}
  get state() {
    return { _value: this._value, _rawInputValue: this.rawInputValue };
  }
  set state(t) {
    (this._value = t._value), (this._isRawInput = !!t._rawInputValue);
  }
  pad(t) {
    return this._appendPlaceholder();
  }
}
class Qf {
  constructor(t) {
    const { parent: n, isOptional: r, placeholderChar: o, displayChar: i, lazy: s, eager: a, ...l } = t;
    (this.masked = zo(l)),
      Object.assign(this, { parent: n, isOptional: r, placeholderChar: o, displayChar: i, lazy: s, eager: a });
  }
  reset() {
    (this.isFilled = !1), this.masked.reset();
  }
  remove(t, n) {
    return (
      t === void 0 && (t = 0),
      n === void 0 && (n = this.value.length),
      t === 0 && n >= 1 ? ((this.isFilled = !1), this.masked.remove(t, n)) : new We()
    );
  }
  get value() {
    return this.masked.value || (this.isFilled && !this.isOptional ? this.placeholderChar : "");
  }
  get unmaskedValue() {
    return this.masked.unmaskedValue;
  }
  get rawInputValue() {
    return this.masked.rawInputValue;
  }
  get displayValue() {
    return (this.masked.value && this.displayChar) || this.value;
  }
  get isComplete() {
    return !!this.masked.value || this.isOptional;
  }
  _appendChar(t, n) {
    if ((n === void 0 && (n = {}), this.isFilled)) return new We();
    const r = this.masked.state;
    let o = this.masked._appendChar(t, this.currentMaskFlags(n));
    return (
      o.inserted && this.doValidate(n) === !1 && ((o = new We()), (this.masked.state = r)),
      !o.inserted && !this.isOptional && !this.lazy && !n.input && (o.inserted = this.placeholderChar),
      (o.skip = !o.inserted && !this.isOptional),
      (this.isFilled = !!o.inserted),
      o
    );
  }
  append(t, n, r) {
    return this.masked.append(t, this.currentMaskFlags(n), r);
  }
  _appendPlaceholder() {
    return this.isFilled || this.isOptional
      ? new We()
      : ((this.isFilled = !0), new We({ inserted: this.placeholderChar }));
  }
  _appendEager() {
    return new We();
  }
  extractTail(t, n) {
    return this.masked.extractTail(t, n);
  }
  appendTail(t) {
    return this.masked.appendTail(t);
  }
  extractInput(t, n, r) {
    return t === void 0 && (t = 0), n === void 0 && (n = this.value.length), this.masked.extractInput(t, n, r);
  }
  nearestInputPos(t, n) {
    n === void 0 && (n = Ie.NONE);
    const r = 0,
      o = this.value.length,
      i = Math.min(Math.max(t, r), o);
    switch (n) {
      case Ie.LEFT:
      case Ie.FORCE_LEFT:
        return this.isComplete ? i : r;
      case Ie.RIGHT:
      case Ie.FORCE_RIGHT:
        return this.isComplete ? i : o;
      case Ie.NONE:
      default:
        return i;
    }
  }
  totalInputPositions(t, n) {
    return t === void 0 && (t = 0), n === void 0 && (n = this.value.length), this.value.slice(t, n).length;
  }
  doValidate(t) {
    return (
      this.masked.doValidate(this.currentMaskFlags(t)) &&
      (!this.parent || this.parent.doValidate(this.currentMaskFlags(t)))
    );
  }
  doCommit() {
    this.masked.doCommit();
  }
  get state() {
    return {
      _value: this.value,
      _rawInputValue: this.rawInputValue,
      masked: this.masked.state,
      isFilled: this.isFilled,
    };
  }
  set state(t) {
    (this.masked.state = t.masked), (this.isFilled = t.isFilled);
  }
  currentMaskFlags(t) {
    var n;
    return {
      ...t,
      _beforeTailState:
        (t == null || (n = t._beforeTailState) == null ? void 0 : n.masked) ||
        (t == null ? void 0 : t._beforeTailState),
    };
  }
  pad(t) {
    return new We();
  }
}
Qf.DEFAULT_DEFINITIONS = {
  0: /\d/,
  a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
  "*": /./,
};
class AK extends mn {
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    const n = t.mask;
    n && (t.validate = (r) => r.search(n) >= 0), super._update(t);
  }
}
$e.MaskedRegExp = AK;
class gn extends mn {
  constructor(t) {
    super({
      ...gn.DEFAULTS,
      ...t,
      definitions: Object.assign({}, Qf.DEFAULT_DEFINITIONS, t == null ? void 0 : t.definitions),
    });
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    (t.definitions = Object.assign({}, this.definitions, t.definitions)), super._update(t), this._rebuildMask();
  }
  _rebuildMask() {
    const t = this.definitions;
    (this._blocks = []), (this.exposeBlock = void 0), (this._stops = []), (this._maskedBlocks = {});
    const n = this.mask;
    if (!n || !t) return;
    let r = !1,
      o = !1;
    for (let i = 0; i < n.length; ++i) {
      if (this.blocks) {
        const u = n.slice(i),
          c = Object.keys(this.blocks).filter((p) => u.indexOf(p) === 0);
        c.sort((p, h) => h.length - p.length);
        const d = c[0];
        if (d) {
          const { expose: p, repeat: h, ...m } = Xu(this.blocks[d]),
            v = {
              lazy: this.lazy,
              eager: this.eager,
              placeholderChar: this.placeholderChar,
              displayChar: this.displayChar,
              overwrite: this.overwrite,
              autofix: this.autofix,
              ...m,
              repeat: h,
              parent: this,
            },
            C = h != null ? new $e.RepeatBlock(v) : zo(v);
          C &&
            (this._blocks.push(C),
            p && (this.exposeBlock = C),
            this._maskedBlocks[d] || (this._maskedBlocks[d] = []),
            this._maskedBlocks[d].push(this._blocks.length - 1)),
            (i += d.length - 1);
          continue;
        }
      }
      let s = n[i],
        a = s in t;
      if (s === gn.STOP_CHAR) {
        this._stops.push(this._blocks.length);
        continue;
      }
      if (s === "{" || s === "}") {
        r = !r;
        continue;
      }
      if (s === "[" || s === "]") {
        o = !o;
        continue;
      }
      if (s === gn.ESCAPE_CHAR) {
        if ((++i, (s = n[i]), !s)) break;
        a = !1;
      }
      const l = a
        ? new Qf({
            isOptional: o,
            lazy: this.lazy,
            eager: this.eager,
            placeholderChar: this.placeholderChar,
            displayChar: this.displayChar,
            ...Xu(t[s]),
            parent: this,
          })
        : new DC({ char: s, eager: this.eager, isUnmasking: r });
      this._blocks.push(l);
    }
  }
  get state() {
    return { ...super.state, _blocks: this._blocks.map((t) => t.state) };
  }
  set state(t) {
    if (!t) {
      this.reset();
      return;
    }
    const { _blocks: n, ...r } = t;
    this._blocks.forEach((o, i) => (o.state = n[i])), (super.state = r);
  }
  reset() {
    super.reset(), this._blocks.forEach((t) => t.reset());
  }
  get isComplete() {
    return this.exposeBlock ? this.exposeBlock.isComplete : this._blocks.every((t) => t.isComplete);
  }
  get isFilled() {
    return this._blocks.every((t) => t.isFilled);
  }
  get isFixed() {
    return this._blocks.every((t) => t.isFixed);
  }
  get isOptional() {
    return this._blocks.every((t) => t.isOptional);
  }
  doCommit() {
    this._blocks.forEach((t) => t.doCommit()), super.doCommit();
  }
  get unmaskedValue() {
    return this.exposeBlock
      ? this.exposeBlock.unmaskedValue
      : this._blocks.reduce((t, n) => (t += n.unmaskedValue), "");
  }
  set unmaskedValue(t) {
    if (this.exposeBlock) {
      const n = this.extractTail(
        this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length
      );
      (this.exposeBlock.unmaskedValue = t), this.appendTail(n), this.doCommit();
    } else super.unmaskedValue = t;
  }
  get value() {
    return this.exposeBlock ? this.exposeBlock.value : this._blocks.reduce((t, n) => (t += n.value), "");
  }
  set value(t) {
    if (this.exposeBlock) {
      const n = this.extractTail(
        this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length
      );
      (this.exposeBlock.value = t), this.appendTail(n), this.doCommit();
    } else super.value = t;
  }
  get typedValue() {
    return this.exposeBlock ? this.exposeBlock.typedValue : super.typedValue;
  }
  set typedValue(t) {
    if (this.exposeBlock) {
      const n = this.extractTail(
        this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length
      );
      (this.exposeBlock.typedValue = t), this.appendTail(n), this.doCommit();
    } else super.typedValue = t;
  }
  get displayValue() {
    return this._blocks.reduce((t, n) => (t += n.displayValue), "");
  }
  appendTail(t) {
    return super.appendTail(t).aggregate(this._appendPlaceholder());
  }
  _appendEager() {
    var t;
    const n = new We();
    let r = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
    if (r == null) return n;
    this._blocks[r].isFilled && ++r;
    for (let o = r; o < this._blocks.length; ++o) {
      const i = this._blocks[o]._appendEager();
      if (!i.inserted) break;
      n.aggregate(i);
    }
    return n;
  }
  _appendCharRaw(t, n) {
    n === void 0 && (n = {});
    const r = this._mapPosToBlock(this.displayValue.length),
      o = new We();
    if (!r) return o;
    for (let s = r.index, a; (a = this._blocks[s]); ++s) {
      var i;
      const l = a._appendChar(t, {
        ...n,
        _beforeTailState: (i = n._beforeTailState) == null || (i = i._blocks) == null ? void 0 : i[s],
      });
      if ((o.aggregate(l), l.consumed)) break;
    }
    return o;
  }
  extractTail(t, n) {
    t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length);
    const r = new Ji();
    return (
      t === n ||
        this._forEachBlocksInRange(t, n, (o, i, s, a) => {
          const l = o.extractTail(s, a);
          (l.stop = this._findStopBefore(i)),
            (l.from = this._blockStartPos(i)),
            l instanceof Ji && (l.blockIndex = i),
            r.extend(l);
        }),
      r
    );
  }
  extractInput(t, n, r) {
    if ((t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), r === void 0 && (r = {}), t === n))
      return "";
    let o = "";
    return (
      this._forEachBlocksInRange(t, n, (i, s, a, l) => {
        o += i.extractInput(a, l, r);
      }),
      o
    );
  }
  _findStopBefore(t) {
    let n;
    for (let r = 0; r < this._stops.length; ++r) {
      const o = this._stops[r];
      if (o <= t) n = o;
      else break;
    }
    return n;
  }
  _appendPlaceholder(t) {
    const n = new We();
    if (this.lazy && t == null) return n;
    const r = this._mapPosToBlock(this.displayValue.length);
    if (!r) return n;
    const o = r.index,
      i = t ?? this._blocks.length;
    return (
      this._blocks.slice(o, i).forEach((s) => {
        if (!s.lazy || t != null) {
          var a;
          n.aggregate(s._appendPlaceholder((a = s._blocks) == null ? void 0 : a.length));
        }
      }),
      n
    );
  }
  _mapPosToBlock(t) {
    let n = "";
    for (let r = 0; r < this._blocks.length; ++r) {
      const o = this._blocks[r],
        i = n.length;
      if (((n += o.displayValue), t <= n.length)) return { index: r, offset: t - i };
    }
  }
  _blockStartPos(t) {
    return this._blocks.slice(0, t).reduce((n, r) => (n += r.displayValue.length), 0);
  }
  _forEachBlocksInRange(t, n, r) {
    n === void 0 && (n = this.displayValue.length);
    const o = this._mapPosToBlock(t);
    if (o) {
      const i = this._mapPosToBlock(n),
        s = i && o.index === i.index,
        a = o.offset,
        l = i && s ? i.offset : this._blocks[o.index].displayValue.length;
      if ((r(this._blocks[o.index], o.index, a, l), i && !s)) {
        for (let u = o.index + 1; u < i.index; ++u) r(this._blocks[u], u, 0, this._blocks[u].displayValue.length);
        r(this._blocks[i.index], i.index, 0, i.offset);
      }
    }
  }
  remove(t, n) {
    t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length);
    const r = super.remove(t, n);
    return (
      this._forEachBlocksInRange(t, n, (o, i, s, a) => {
        r.aggregate(o.remove(s, a));
      }),
      r
    );
  }
  nearestInputPos(t, n) {
    if ((n === void 0 && (n = Ie.NONE), !this._blocks.length)) return 0;
    const r = new PK(this, t);
    if (n === Ie.NONE)
      return r.pushRightBeforeInput() || (r.popState(), r.pushLeftBeforeInput()) ? r.pos : this.displayValue.length;
    if (n === Ie.LEFT || n === Ie.FORCE_LEFT) {
      if (n === Ie.LEFT) {
        if ((r.pushRightBeforeFilled(), r.ok && r.pos === t)) return t;
        r.popState();
      }
      if ((r.pushLeftBeforeInput(), r.pushLeftBeforeRequired(), r.pushLeftBeforeFilled(), n === Ie.LEFT)) {
        if (
          (r.pushRightBeforeInput(),
          r.pushRightBeforeRequired(),
          (r.ok && r.pos <= t) || (r.popState(), r.ok && r.pos <= t))
        )
          return r.pos;
        r.popState();
      }
      return r.ok ? r.pos : n === Ie.FORCE_LEFT ? 0 : (r.popState(), r.ok || (r.popState(), r.ok) ? r.pos : 0);
    }
    return n === Ie.RIGHT || n === Ie.FORCE_RIGHT
      ? (r.pushRightBeforeInput(),
        r.pushRightBeforeRequired(),
        r.pushRightBeforeFilled()
          ? r.pos
          : n === Ie.FORCE_RIGHT
            ? this.displayValue.length
            : (r.popState(), r.ok || (r.popState(), r.ok) ? r.pos : this.nearestInputPos(t, Ie.LEFT)))
      : t;
  }
  totalInputPositions(t, n) {
    t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length);
    let r = 0;
    return (
      this._forEachBlocksInRange(t, n, (o, i, s, a) => {
        r += o.totalInputPositions(s, a);
      }),
      r
    );
  }
  maskedBlock(t) {
    return this.maskedBlocks(t)[0];
  }
  maskedBlocks(t) {
    const n = this._maskedBlocks[t];
    return n ? n.map((r) => this._blocks[r]) : [];
  }
  pad(t) {
    const n = new We();
    return this._forEachBlocksInRange(0, this.displayValue.length, (r) => n.aggregate(r.pad(t))), n;
  }
}
gn.DEFAULTS = { ...mn.DEFAULTS, lazy: !0, placeholderChar: "_" };
gn.STOP_CHAR = "`";
gn.ESCAPE_CHAR = "\\";
gn.InputDefinition = Qf;
gn.FixedDefinition = DC;
$e.MaskedPattern = gn;
class Zd extends gn {
  get _matchFrom() {
    return this.maxLength - String(this.from).length;
  }
  constructor(t) {
    super(t);
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    const {
      to: n = this.to || 0,
      from: r = this.from || 0,
      maxLength: o = this.maxLength || 0,
      autofix: i = this.autofix,
      ...s
    } = t;
    (this.to = n), (this.from = r), (this.maxLength = Math.max(String(n).length, o)), (this.autofix = i);
    const a = String(this.from).padStart(this.maxLength, "0"),
      l = String(this.to).padStart(this.maxLength, "0");
    let u = 0;
    for (; u < l.length && l[u] === a[u]; ) ++u;
    (s.mask = l.slice(0, u).replace(/0/g, "\\0") + "0".repeat(this.maxLength - u)), super._update(s);
  }
  get isComplete() {
    return super.isComplete && !!this.value;
  }
  boundaries(t) {
    let n = "",
      r = "";
    const [, o, i] = t.match(/^(\D*)(\d*)(\D*)/) || [];
    return (
      i && ((n = "0".repeat(o.length) + i), (r = "9".repeat(o.length) + i)),
      (n = n.padEnd(this.maxLength, "0")),
      (r = r.padEnd(this.maxLength, "9")),
      [n, r]
    );
  }
  doPrepareChar(t, n) {
    n === void 0 && (n = {});
    let r;
    return ([t, r] = super.doPrepareChar(t.replace(/\D/g, ""), n)), t || (r.skip = !this.isComplete), [t, r];
  }
  _appendCharRaw(t, n) {
    if ((n === void 0 && (n = {}), !this.autofix || this.value.length + 1 > this.maxLength))
      return super._appendCharRaw(t, n);
    const r = String(this.from).padStart(this.maxLength, "0"),
      o = String(this.to).padStart(this.maxLength, "0"),
      [i, s] = this.boundaries(this.value + t);
    return Number(s) < this.from
      ? super._appendCharRaw(r[this.value.length], n)
      : Number(i) > this.to
        ? !n.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength
          ? super._appendCharRaw(r[this.value.length], n).aggregate(this._appendCharRaw(t, n))
          : super._appendCharRaw(o[this.value.length], n)
        : super._appendCharRaw(t, n);
  }
  doValidate(t) {
    const n = this.value;
    if (n.search(/[^0]/) === -1 && n.length <= this._matchFrom) return !0;
    const [o, i] = this.boundaries(n);
    return this.from <= Number(i) && Number(o) <= this.to && super.doValidate(t);
  }
  pad(t) {
    const n = new We();
    if (this.value.length === this.maxLength) return n;
    const r = this.value,
      o = this.maxLength - this.value.length;
    if (o) {
      this.reset();
      for (let i = 0; i < o; ++i) n.aggregate(super._appendCharRaw("0", t));
      r.split("").forEach((i) => this._appendCharRaw(i));
    }
    return n;
  }
}
$e.MaskedRange = Zd;
class Eo extends gn {
  static extractPatternOptions(t) {
    const { mask: n, pattern: r, ...o } = t;
    return { ...o, mask: yi(n) ? n : r };
  }
  constructor(t) {
    super(Eo.extractPatternOptions({ ...Eo.DEFAULTS, ...t }));
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    const { mask: n, pattern: r, blocks: o, ...i } = { ...Eo.DEFAULTS, ...t },
      s = Object.assign({}, Eo.GET_DEFAULT_BLOCKS());
    t.min && (s.Y.from = t.min.getFullYear()),
      t.max && (s.Y.to = t.max.getFullYear()),
      t.min &&
        t.max &&
        s.Y.from === s.Y.to &&
        ((s.m.from = t.min.getMonth() + 1),
        (s.m.to = t.max.getMonth() + 1),
        s.m.from === s.m.to && ((s.d.from = t.min.getDate()), (s.d.to = t.max.getDate()))),
      Object.assign(s, this.blocks, o),
      super._update({ ...i, mask: yi(n) ? n : r, blocks: s });
  }
  doValidate(t) {
    const n = this.date;
    return (
      super.doValidate(t) &&
      (!this.isComplete ||
        (this.isDateExist(this.value) &&
          n != null &&
          (this.min == null || this.min <= n) &&
          (this.max == null || n <= this.max)))
    );
  }
  isDateExist(t) {
    return this.format(this.parse(t, this), this).indexOf(t) >= 0;
  }
  get date() {
    return this.typedValue;
  }
  set date(t) {
    this.typedValue = t;
  }
  get typedValue() {
    return this.isComplete ? super.typedValue : null;
  }
  set typedValue(t) {
    super.typedValue = t;
  }
  maskEquals(t) {
    return t === Date || super.maskEquals(t);
  }
  optionsIsChanged(t) {
    return super.optionsIsChanged(Eo.extractPatternOptions(t));
  }
}
Eo.GET_DEFAULT_BLOCKS = () => ({
  d: { mask: Zd, from: 1, to: 31, maxLength: 2 },
  m: { mask: Zd, from: 1, to: 12, maxLength: 2 },
  Y: { mask: Zd, from: 1900, to: 9999 },
});
Eo.DEFAULTS = {
  ...gn.DEFAULTS,
  mask: Date,
  pattern: "d{.}`m{.}`Y",
  format: (e, t) => {
    if (!e) return "";
    const n = String(e.getDate()).padStart(2, "0"),
      r = String(e.getMonth() + 1).padStart(2, "0"),
      o = e.getFullYear();
    return [n, r, o].join(".");
  },
  parse: (e, t) => {
    const [n, r, o] = e.split(".").map(Number);
    return new Date(o, r - 1, n);
  },
};
$e.MaskedDate = Eo;
class G0 extends mn {
  constructor(t) {
    super({ ...G0.DEFAULTS, ...t }), (this.currentMask = void 0);
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    super._update(t),
      "mask" in t &&
        ((this.exposeMask = void 0),
        (this.compiledMasks = Array.isArray(t.mask)
          ? t.mask.map((n) => {
              const { expose: r, ...o } = Xu(n),
                i = zo({ overwrite: this._overwrite, eager: this._eager, skipInvalid: this._skipInvalid, ...o });
              return r && (this.exposeMask = i), i;
            })
          : []));
  }
  _appendCharRaw(t, n) {
    n === void 0 && (n = {});
    const r = this._applyDispatch(t, n);
    return this.currentMask && r.aggregate(this.currentMask._appendChar(t, this.currentMaskFlags(n))), r;
  }
  _applyDispatch(t, n, r) {
    t === void 0 && (t = ""), n === void 0 && (n = {}), r === void 0 && (r = "");
    const o = n.tail && n._beforeTailState != null ? n._beforeTailState._value : this.value,
      i = this.rawInputValue,
      s = n.tail && n._beforeTailState != null ? n._beforeTailState._rawInputValue : i,
      a = i.slice(s.length),
      l = this.currentMask,
      u = new We(),
      c = l == null ? void 0 : l.state;
    return (
      (this.currentMask = this.doDispatch(t, { ...n }, r)),
      this.currentMask &&
        (this.currentMask !== l
          ? (this.currentMask.reset(),
            s && (this.currentMask.append(s, { raw: !0 }), (u.tailShift = this.currentMask.value.length - o.length)),
            a && (u.tailShift += this.currentMask.append(a, { raw: !0, tail: !0 }).tailShift))
          : c && (this.currentMask.state = c)),
      u
    );
  }
  _appendPlaceholder() {
    const t = this._applyDispatch();
    return this.currentMask && t.aggregate(this.currentMask._appendPlaceholder()), t;
  }
  _appendEager() {
    const t = this._applyDispatch();
    return this.currentMask && t.aggregate(this.currentMask._appendEager()), t;
  }
  appendTail(t) {
    const n = new We();
    return (
      t && n.aggregate(this._applyDispatch("", {}, t)),
      n.aggregate(this.currentMask ? this.currentMask.appendTail(t) : super.appendTail(t))
    );
  }
  currentMaskFlags(t) {
    var n, r;
    return {
      ...t,
      _beforeTailState:
        (((n = t._beforeTailState) == null ? void 0 : n.currentMaskRef) === this.currentMask &&
          ((r = t._beforeTailState) == null ? void 0 : r.currentMask)) ||
        t._beforeTailState,
    };
  }
  doDispatch(t, n, r) {
    return n === void 0 && (n = {}), r === void 0 && (r = ""), this.dispatch(t, this, n, r);
  }
  doValidate(t) {
    return super.doValidate(t) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(t)));
  }
  doPrepare(t, n) {
    n === void 0 && (n = {});
    let [r, o] = super.doPrepare(t, n);
    if (this.currentMask) {
      let i;
      ([r, i] = super.doPrepare(r, this.currentMaskFlags(n))), (o = o.aggregate(i));
    }
    return [r, o];
  }
  doPrepareChar(t, n) {
    n === void 0 && (n = {});
    let [r, o] = super.doPrepareChar(t, n);
    if (this.currentMask) {
      let i;
      ([r, i] = super.doPrepareChar(r, this.currentMaskFlags(n))), (o = o.aggregate(i));
    }
    return [r, o];
  }
  reset() {
    var t;
    (t = this.currentMask) == null || t.reset(), this.compiledMasks.forEach((n) => n.reset());
  }
  get value() {
    return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : "";
  }
  set value(t) {
    this.exposeMask
      ? ((this.exposeMask.value = t), (this.currentMask = this.exposeMask), this._applyDispatch())
      : (super.value = t);
  }
  get unmaskedValue() {
    return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : "";
  }
  set unmaskedValue(t) {
    this.exposeMask
      ? ((this.exposeMask.unmaskedValue = t), (this.currentMask = this.exposeMask), this._applyDispatch())
      : (super.unmaskedValue = t);
  }
  get typedValue() {
    return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : "";
  }
  set typedValue(t) {
    if (this.exposeMask) {
      (this.exposeMask.typedValue = t), (this.currentMask = this.exposeMask), this._applyDispatch();
      return;
    }
    let n = String(t);
    this.currentMask && ((this.currentMask.typedValue = t), (n = this.currentMask.unmaskedValue)),
      (this.unmaskedValue = n);
  }
  get displayValue() {
    return this.currentMask ? this.currentMask.displayValue : "";
  }
  get isComplete() {
    var t;
    return !!((t = this.currentMask) != null && t.isComplete);
  }
  get isFilled() {
    var t;
    return !!((t = this.currentMask) != null && t.isFilled);
  }
  remove(t, n) {
    const r = new We();
    return this.currentMask && r.aggregate(this.currentMask.remove(t, n)).aggregate(this._applyDispatch()), r;
  }
  get state() {
    var t;
    return {
      ...super.state,
      _rawInputValue: this.rawInputValue,
      compiledMasks: this.compiledMasks.map((n) => n.state),
      currentMaskRef: this.currentMask,
      currentMask: (t = this.currentMask) == null ? void 0 : t.state,
    };
  }
  set state(t) {
    const { compiledMasks: n, currentMaskRef: r, currentMask: o, ...i } = t;
    n && this.compiledMasks.forEach((s, a) => (s.state = n[a])),
      r != null && ((this.currentMask = r), (this.currentMask.state = o)),
      (super.state = i);
  }
  extractInput(t, n, r) {
    return this.currentMask ? this.currentMask.extractInput(t, n, r) : "";
  }
  extractTail(t, n) {
    return this.currentMask ? this.currentMask.extractTail(t, n) : super.extractTail(t, n);
  }
  doCommit() {
    this.currentMask && this.currentMask.doCommit(), super.doCommit();
  }
  nearestInputPos(t, n) {
    return this.currentMask ? this.currentMask.nearestInputPos(t, n) : super.nearestInputPos(t, n);
  }
  get overwrite() {
    return this.currentMask ? this.currentMask.overwrite : this._overwrite;
  }
  set overwrite(t) {
    this._overwrite = t;
  }
  get eager() {
    return this.currentMask ? this.currentMask.eager : this._eager;
  }
  set eager(t) {
    this._eager = t;
  }
  get skipInvalid() {
    return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;
  }
  set skipInvalid(t) {
    this._skipInvalid = t;
  }
  get autofix() {
    return this.currentMask ? this.currentMask.autofix : this._autofix;
  }
  set autofix(t) {
    this._autofix = t;
  }
  maskEquals(t) {
    return Array.isArray(t)
      ? this.compiledMasks.every((n, r) => {
          if (!t[r]) return;
          const { mask: o, ...i } = t[r];
          return Jf(n, i) && n.maskEquals(o);
        })
      : super.maskEquals(t);
  }
  typedValueEquals(t) {
    var n;
    return !!((n = this.currentMask) != null && n.typedValueEquals(t));
  }
}
G0.DEFAULTS = {
  ...mn.DEFAULTS,
  dispatch: (e, t, n, r) => {
    if (!t.compiledMasks.length) return;
    const o = t.rawInputValue,
      i = t.compiledMasks.map((s, a) => {
        const l = t.currentMask === s,
          u = l ? s.displayValue.length : s.nearestInputPos(s.displayValue.length, Ie.FORCE_LEFT);
        return (
          s.rawInputValue !== o ? (s.reset(), s.append(o, { raw: !0 })) : l || s.remove(u),
          s.append(e, t.currentMaskFlags(n)),
          s.appendTail(r),
          {
            index: a,
            weight: s.rawInputValue.length,
            totalInputPositions: s.totalInputPositions(
              0,
              Math.max(u, s.nearestInputPos(s.displayValue.length, Ie.FORCE_LEFT))
            ),
          }
        );
      });
    return (
      i.sort((s, a) => a.weight - s.weight || a.totalInputPositions - s.totalInputPositions),
      t.compiledMasks[i[0].index]
    );
  },
};
$e.MaskedDynamic = G0;
class U0 extends gn {
  constructor(t) {
    super({ ...U0.DEFAULTS, ...t });
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    const { enum: n, ...r } = t;
    if (n) {
      const o = n.map((a) => a.length),
        i = Math.min(...o),
        s = Math.max(...o) - i;
      (r.mask = "*".repeat(i)), s && (r.mask += "[" + "*".repeat(s) + "]"), (this.enum = n);
    }
    super._update(r);
  }
  _appendCharRaw(t, n) {
    n === void 0 && (n = {});
    const r = Math.min(this.nearestInputPos(0, Ie.FORCE_RIGHT), this.value.length),
      o = this.enum.filter((i) => this.matchValue(i, this.unmaskedValue + t, r));
    if (o.length) {
      o.length === 1 &&
        this._forEachBlocksInRange(0, this.value.length, (s, a) => {
          const l = o[0][a];
          a >= this.value.length || l === s.value || (s.reset(), s._appendChar(l, n));
        });
      const i = super._appendCharRaw(o[0][this.value.length], n);
      return (
        o.length === 1 &&
          o[0]
            .slice(this.unmaskedValue.length)
            .split("")
            .forEach((s) => i.aggregate(super._appendCharRaw(s))),
        i
      );
    }
    return new We({ skip: !this.isComplete });
  }
  extractTail(t, n) {
    return t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), new to("", t);
  }
  remove(t, n) {
    if ((t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length), t === n)) return new We();
    const r = Math.min(super.nearestInputPos(0, Ie.FORCE_RIGHT), this.value.length);
    let o;
    for (o = t; o >= 0 && !(this.enum.filter((a) => this.matchValue(a, this.value.slice(r, o), r)).length > 1); --o);
    const i = super.remove(o, n);
    return (i.tailShift += o - t), i;
  }
  get isComplete() {
    return this.enum.indexOf(this.value) >= 0;
  }
}
U0.DEFAULTS = { ...gn.DEFAULTS, matchValue: (e, t, n) => e.indexOf(t, n) === n };
$e.MaskedEnum = U0;
class _K extends mn {
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    super._update({ ...t, validate: t.mask });
  }
}
$e.MaskedFunction = _K;
var RC;
class $n extends mn {
  constructor(t) {
    super({ ...$n.DEFAULTS, ...t });
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    super._update(t), this._updateRegExps();
  }
  _updateRegExps() {
    const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""),
      n = "\\d*",
      r = (this.scale ? "(" + hh(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
    (this._numberRegExp = new RegExp(t + n + r)),
      (this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(hh).join("") + "]", "g")),
      (this._thousandsSeparatorRegExp = new RegExp(hh(this.thousandsSeparator), "g"));
  }
  _removeThousandsSeparators(t) {
    return t.replace(this._thousandsSeparatorRegExp, "");
  }
  _insertThousandsSeparators(t) {
    const n = t.split(this.radix);
    return (n[0] = n[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandsSeparator)), n.join(this.radix);
  }
  doPrepareChar(t, n) {
    n === void 0 && (n = {});
    const [r, o] = super.doPrepareChar(
      this._removeThousandsSeparators(
        this.scale && this.mapToRadix.length && ((n.input && n.raw) || (!n.input && !n.raw))
          ? t.replace(this._mapToRadixRegExp, this.radix)
          : t
      ),
      n
    );
    return (
      t && !r && (o.skip = !0),
      r && !this.allowPositive && !this.value && r !== "-" && o.aggregate(this._appendChar("-")),
      [r, o]
    );
  }
  _separatorsCount(t, n) {
    n === void 0 && (n = !1);
    let r = 0;
    for (let o = 0; o < t; ++o)
      this._value.indexOf(this.thousandsSeparator, o) === o && (++r, n && (t += this.thousandsSeparator.length));
    return r;
  }
  _separatorsCountFromSlice(t) {
    return t === void 0 && (t = this._value), this._separatorsCount(this._removeThousandsSeparators(t).length, !0);
  }
  extractInput(t, n, r) {
    return (
      t === void 0 && (t = 0),
      n === void 0 && (n = this.displayValue.length),
      ([t, n] = this._adjustRangeWithSeparators(t, n)),
      this._removeThousandsSeparators(super.extractInput(t, n, r))
    );
  }
  _appendCharRaw(t, n) {
    n === void 0 && (n = {});
    const r = n.tail && n._beforeTailState ? n._beforeTailState._value : this._value,
      o = this._separatorsCountFromSlice(r);
    this._value = this._removeThousandsSeparators(this.value);
    const i = this._value;
    this._value += t;
    const s = this.number;
    let a = !isNaN(s),
      l = !1;
    if (a) {
      let p;
      this.min != null && this.min < 0 && this.number < this.min && (p = this.min),
        this.max != null && this.max > 0 && this.number > this.max && (p = this.max),
        p != null &&
          (this.autofix
            ? ((this._value = this.format(p, this).replace($n.UNMASKED_RADIX, this.radix)),
              l || (l = i === this._value && !n.tail))
            : (a = !1)),
        a && (a = !!this._value.match(this._numberRegExp));
    }
    let u;
    a
      ? (u = new We({ inserted: this._value.slice(i.length), rawInserted: l ? "" : t, skip: l }))
      : ((this._value = i), (u = new We())),
      (this._value = this._insertThousandsSeparators(this._value));
    const c = n.tail && n._beforeTailState ? n._beforeTailState._value : this._value,
      d = this._separatorsCountFromSlice(c);
    return (u.tailShift += (d - o) * this.thousandsSeparator.length), u;
  }
  _findSeparatorAround(t) {
    if (this.thousandsSeparator) {
      const n = t - this.thousandsSeparator.length + 1,
        r = this.value.indexOf(this.thousandsSeparator, n);
      if (r <= t) return r;
    }
    return -1;
  }
  _adjustRangeWithSeparators(t, n) {
    const r = this._findSeparatorAround(t);
    r >= 0 && (t = r);
    const o = this._findSeparatorAround(n);
    return o >= 0 && (n = o + this.thousandsSeparator.length), [t, n];
  }
  remove(t, n) {
    t === void 0 && (t = 0),
      n === void 0 && (n = this.displayValue.length),
      ([t, n] = this._adjustRangeWithSeparators(t, n));
    const r = this.value.slice(0, t),
      o = this.value.slice(n),
      i = this._separatorsCount(r.length);
    this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(r + o));
    const s = this._separatorsCountFromSlice(r);
    return new We({ tailShift: (s - i) * this.thousandsSeparator.length });
  }
  nearestInputPos(t, n) {
    if (!this.thousandsSeparator) return t;
    switch (n) {
      case Ie.NONE:
      case Ie.LEFT:
      case Ie.FORCE_LEFT: {
        const r = this._findSeparatorAround(t - 1);
        if (r >= 0) {
          const o = r + this.thousandsSeparator.length;
          if (t < o || this.value.length <= o || n === Ie.FORCE_LEFT) return r;
        }
        break;
      }
      case Ie.RIGHT:
      case Ie.FORCE_RIGHT: {
        const r = this._findSeparatorAround(t);
        if (r >= 0) return r + this.thousandsSeparator.length;
      }
    }
    return t;
  }
  doCommit() {
    if (this.value) {
      const t = this.number;
      let n = t;
      this.min != null && (n = Math.max(n, this.min)),
        this.max != null && (n = Math.min(n, this.max)),
        n !== t && (this.unmaskedValue = this.format(n, this));
      let r = this.value;
      this.normalizeZeros && (r = this._normalizeZeros(r)),
        this.padFractionalZeros && this.scale > 0 && (r = this._padFractionalZeros(r)),
        (this._value = r);
    }
    super.doCommit();
  }
  _normalizeZeros(t) {
    const n = this._removeThousandsSeparators(t).split(this.radix);
    return (
      (n[0] = n[0].replace(/^(\D*)(0*)(\d*)/, (r, o, i, s) => o + s)),
      t.length && !/\d$/.test(n[0]) && (n[0] = n[0] + "0"),
      n.length > 1 && ((n[1] = n[1].replace(/0*$/, "")), n[1].length || (n.length = 1)),
      this._insertThousandsSeparators(n.join(this.radix))
    );
  }
  _padFractionalZeros(t) {
    if (!t) return t;
    const n = t.split(this.radix);
    return n.length < 2 && n.push(""), (n[1] = n[1].padEnd(this.scale, "0")), n.join(this.radix);
  }
  doSkipInvalid(t, n, r) {
    n === void 0 && (n = {});
    const o =
      this.scale === 0 &&
      t !== this.thousandsSeparator &&
      (t === this.radix || t === $n.UNMASKED_RADIX || this.mapToRadix.includes(t));
    return super.doSkipInvalid(t, n, r) && !o;
  }
  get unmaskedValue() {
    return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, $n.UNMASKED_RADIX);
  }
  set unmaskedValue(t) {
    super.unmaskedValue = t;
  }
  get typedValue() {
    return this.parse(this.unmaskedValue, this);
  }
  set typedValue(t) {
    this.rawInputValue = this.format(t, this).replace($n.UNMASKED_RADIX, this.radix);
  }
  get number() {
    return this.typedValue;
  }
  set number(t) {
    this.typedValue = t;
  }
  get allowNegative() {
    return (this.min != null && this.min < 0) || (this.max != null && this.max < 0);
  }
  get allowPositive() {
    return (this.min != null && this.min > 0) || (this.max != null && this.max > 0);
  }
  typedValueEquals(t) {
    return (
      (super.typedValueEquals(t) || ($n.EMPTY_VALUES.includes(t) && $n.EMPTY_VALUES.includes(this.typedValue))) &&
      !(t === 0 && this.value === "")
    );
  }
}
RC = $n;
$n.UNMASKED_RADIX = ".";
$n.EMPTY_VALUES = [...mn.EMPTY_VALUES, 0];
$n.DEFAULTS = {
  ...mn.DEFAULTS,
  mask: Number,
  radix: ",",
  thousandsSeparator: "",
  mapToRadix: [RC.UNMASKED_RADIX],
  min: Number.MIN_SAFE_INTEGER,
  max: Number.MAX_SAFE_INTEGER,
  scale: 2,
  normalizeZeros: !0,
  padFractionalZeros: !1,
  parse: Number,
  format: (e) => e.toLocaleString("en-US", { useGrouping: !1, maximumFractionDigits: 20 }),
};
$e.MaskedNumber = $n;
const s2 = { MASKED: "value", UNMASKED: "unmaskedValue", TYPED: "typedValue" };
function IC(e, t, n) {
  t === void 0 && (t = s2.MASKED), n === void 0 && (n = s2.MASKED);
  const r = zo(e);
  return (o) => r.runIsolated((i) => ((i[t] = o), i[n]));
}
function DK(e, t, n, r) {
  return IC(t, n, r)(e);
}
$e.PIPE_TYPE = s2;
$e.createPipe = IC;
$e.pipe = DK;
class RK extends gn {
  get repeatFrom() {
    var t;
    return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
  }
  get repeatTo() {
    var t;
    return (t = Array.isArray(this.repeat) ? this.repeat[1] : this.repeat) != null ? t : 1 / 0;
  }
  constructor(t) {
    super(t);
  }
  updateOptions(t) {
    super.updateOptions(t);
  }
  _update(t) {
    var n, r, o;
    const { repeat: i, ...s } = Xu(t);
    this._blockOpts = Object.assign({}, this._blockOpts, s);
    const a = zo(this._blockOpts);
    (this.repeat = (n = (r = i ?? a.repeat) != null ? r : this.repeat) != null ? n : 1 / 0),
      super._update({
        mask: "m".repeat(
          Math.max((this.repeatTo === 1 / 0 && ((o = this._blocks) == null ? void 0 : o.length)) || 0, this.repeatFrom)
        ),
        blocks: { m: a },
        eager: a.eager,
        overwrite: a.overwrite,
        skipInvalid: a.skipInvalid,
        lazy: a.lazy,
        placeholderChar: a.placeholderChar,
        displayChar: a.displayChar,
      });
  }
  _allocateBlock(t) {
    if (t < this._blocks.length) return this._blocks[t];
    if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
      return this._blocks.push(zo(this._blockOpts)), (this.mask += "m"), this._blocks[this._blocks.length - 1];
  }
  _appendCharRaw(t, n) {
    n === void 0 && (n = {});
    const r = new We();
    for (
      let l =
          (o = (i = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : i.index) != null
            ? o
            : Math.max(this._blocks.length - 1, 0),
        u,
        c;
      (u = (s = this._blocks[l]) != null ? s : (c = !c && this._allocateBlock(l)));
      ++l
    ) {
      var o, i, s, a;
      const d = u._appendChar(t, {
        ...n,
        _beforeTailState: (a = n._beforeTailState) == null || (a = a._blocks) == null ? void 0 : a[l],
      });
      if (d.skip && c) {
        this._blocks.pop(), (this.mask = this.mask.slice(1));
        break;
      }
      if ((r.aggregate(d), d.consumed)) break;
    }
    return r;
  }
  _trimEmptyTail(t, n) {
    var r, o;
    t === void 0 && (t = 0);
    const i = Math.max(((r = this._mapPosToBlock(t)) == null ? void 0 : r.index) || 0, this.repeatFrom, 0);
    let s;
    n != null && (s = (o = this._mapPosToBlock(n)) == null ? void 0 : o.index),
      s == null && (s = this._blocks.length - 1);
    let a = 0;
    for (let l = s; i <= l && !this._blocks[l].unmaskedValue; --l, ++a);
    a && (this._blocks.splice(s - a + 1, a), (this.mask = this.mask.slice(a)));
  }
  reset() {
    super.reset(), this._trimEmptyTail();
  }
  remove(t, n) {
    t === void 0 && (t = 0), n === void 0 && (n = this.displayValue.length);
    const r = super.remove(t, n);
    return this._trimEmptyTail(t, n), r;
  }
  totalInputPositions(t, n) {
    return t === void 0 && (t = 0), n == null && this.repeatTo === 1 / 0 ? 1 / 0 : super.totalInputPositions(t, n);
  }
  get state() {
    return super.state;
  }
  set state(t) {
    (this._blocks.length = t._blocks.length), (this.mask = this.mask.slice(0, this._blocks.length)), (super.state = t);
  }
}
$e.RepeatBlock = RK;
try {
  globalThis.IMask = $e;
} catch {}
const OC = {
    mask: N.oneOfType([
      N.array,
      N.func,
      N.string,
      N.instanceOf(RegExp),
      N.oneOf([Date, Number, $e.Masked]),
      N.instanceOf($e.Masked),
    ]),
    value: N.any,
    unmask: N.oneOfType([N.bool, N.oneOf(["typed"])]),
    prepare: N.func,
    prepareChar: N.func,
    validate: N.func,
    commit: N.func,
    overwrite: N.oneOfType([N.bool, N.oneOf(["shift"])]),
    eager: N.oneOfType([N.bool, N.oneOf(["append", "remove"])]),
    skipInvalid: N.bool,
    onAccept: N.func,
    onComplete: N.func,
    placeholderChar: N.string,
    displayChar: N.string,
    lazy: N.bool,
    definitions: N.object,
    blocks: N.object,
    enum: N.arrayOf(N.string),
    maxLength: N.number,
    from: N.number,
    to: N.number,
    pattern: N.string,
    format: N.func,
    parse: N.func,
    autofix: N.oneOfType([N.bool, N.oneOf(["pad"])]),
    radix: N.string,
    thousandsSeparator: N.string,
    mapToRadix: N.arrayOf(N.string),
    scale: N.number,
    normalizeZeros: N.bool,
    padFractionalZeros: N.bool,
    min: N.oneOfType([N.number, N.instanceOf(Date)]),
    max: N.oneOfType([N.number, N.instanceOf(Date)]),
    dispatch: N.func,
    inputRef: N.oneOfType([N.func, N.shape({ current: N.object })]),
  },
  FC = Object.keys(OC).filter((e) => e !== "value"),
  IK = ["value", "unmask", "onAccept", "onComplete", "inputRef"],
  OK = FC.filter((e) => IK.indexOf(e) < 0);
function FK(e) {
  var t;
  const n =
      ((t = class extends De.Component {
        constructor(i) {
          super(i), (this._inputRef = this._inputRef.bind(this));
        }
        componentDidMount() {
          this.props.mask && this.initMask();
        }
        componentDidUpdate() {
          const i = this.props,
            s = this._extractMaskOptionsFromProps(i);
          if (s.mask)
            this.maskRef
              ? (this.maskRef.updateOptions(s), "value" in i && i.value !== void 0 && (this.maskValue = i.value))
              : this.initMask(s);
          else if ((this.destroyMask(), "value" in i && i.value !== void 0)) {
            var a;
            (a = this.element) != null &&
            a.isContentEditable &&
            this.element.tagName !== "INPUT" &&
            this.element.tagName !== "TEXTAREA"
              ? (this.element.textContent = i.value)
              : (this.element.value = i.value);
          }
        }
        componentWillUnmount() {
          this.destroyMask();
        }
        _inputRef(i) {
          (this.element = i),
            this.props.inputRef &&
              (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current")
                ? (this.props.inputRef.current = i)
                : this.props.inputRef(i));
        }
        initMask(i) {
          i === void 0 && (i = this._extractMaskOptionsFromProps(this.props)),
            (this.maskRef = $e(this.element, i)
              .on("accept", this._onAccept.bind(this))
              .on("complete", this._onComplete.bind(this))),
            "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
        }
        destroyMask() {
          this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
        }
        _extractMaskOptionsFromProps(i) {
          const { ...s } = i;
          return (
            Object.keys(s)
              .filter((a) => OK.indexOf(a) < 0)
              .forEach((a) => {
                delete s[a];
              }),
            s
          );
        }
        _extractNonMaskProps(i) {
          const { ...s } = i;
          return (
            FC.forEach((a) => {
              a !== "maxLength" && delete s[a];
            }),
            "defaultValue" in s || (s.defaultValue = i.mask ? "" : s.value),
            delete s.value,
            s
          );
        }
        get maskValue() {
          return this.maskRef
            ? this.props.unmask === "typed"
              ? this.maskRef.typedValue
              : this.props.unmask
                ? this.maskRef.unmaskedValue
                : this.maskRef.value
            : "";
        }
        set maskValue(i) {
          this.maskRef &&
            ((i = i == null && this.props.unmask !== "typed" ? "" : i),
            this.props.unmask === "typed"
              ? (this.maskRef.typedValue = i)
              : this.props.unmask
                ? (this.maskRef.unmaskedValue = i)
                : (this.maskRef.value = i));
        }
        _onAccept(i) {
          this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef, i);
        }
        _onComplete(i) {
          this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, i);
        }
        render() {
          return De.createElement(e, { ...this._extractNonMaskProps(this.props), inputRef: this._inputRef });
        }
      }),
      (t.displayName = void 0),
      (t.propTypes = void 0),
      t),
    r = e.displayName || e.name || "Component";
  return (
    (n.displayName = "IMask(" + r + ")"),
    (n.propTypes = OC),
    De.forwardRef((o, i) => De.createElement(n, { ...o, ref: i }))
  );
}
const LK = FK((e) => {
    let { inputRef: t, ...n } = e;
    return De.createElement("input", { ...n, ref: t });
  }),
  NK = (e, t) => De.createElement(LK, { ...e, ref: t });
De.forwardRef(NK);
const zt = Ct({
    ...wi,
    components: {
      MuiButton: {
        variants: [
          {
            props: { variant: "contained" },
            style: {
              padding: "13px 20px",
              borderRadius: "8px",
              boxShadow: "none",
              "&:active": { backgroundColor: "#000000", color: "#FFFFFF" },
              "&:disabled": { color: "#9A9AAF", border: "1px solid #9A9AAF" },
            },
          },
          {
            props: { variant: "outlined" },
            style: {
              padding: "10px 20px",
              borderRadius: "8px",
              "&:hover": { backgroundColor: "#581CA7", border: "1px solid #581CA7" },
            },
          },
        ],
      },
    },
  }),
  $K = Ct({
    ...zt,
    palette: {
      primary: { main: "#7E2AEA", dark: "#581CA7" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#7E2AEA" },
      background: { default: "#FFFFFF" },
    },
  }),
  BK = Ct({
    ...zt,
    palette: {
      primary: { main: "#7E2AEA", dark: "#581CA7" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#7E2AEA" },
      background: { default: "#333647" },
    },
  }),
  jK = Ct({
    ...zt,
    palette: {
      primary: { main: "#D34085", dark: "#AD376E" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#D34085" },
      background: { default: "#FFF9FC" },
    },
  }),
  VK = Ct({
    ...zt,
    palette: {
      primary: { main: "#D34085", dark: "#AD376E" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#D34085" },
      background: { default: "#333647" },
    },
  }),
  HK = Ct({
    ...zt,
    palette: {
      primary: { main: "#4E4D51", dark: "#323232" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#FFF9FC" },
      background: { default: "#FFFFFF" },
    },
  }),
  zK = Ct({
    ...zt,
    palette: {
      primary: { main: "#758E4F", dark: "#4A6324" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#758E4F" },
      background: { default: "#F9FBF1" },
    },
  }),
  WK = Ct({
    ...zt,
    palette: {
      primary: { main: "#7E2AEA", dark: "#581CA7" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#7E2AEA" },
      background: { default: "#FBF8FF" },
    },
  }),
  GK = Ct({
    ...zt,
    palette: {
      primary: { main: "#F2B133", dark: "#E6A11C" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#F2B133" },
      background: { default: "#FFFCF6" },
    },
  }),
  UK = Ct({
    ...zt,
    palette: {
      primary: { main: "#E6AA37", dark: "#E19A13" },
      secondary: { main: "#FFFCF6" },
      text: { primary: "#FFFFFF", secondary: "#F2B133" },
      background: { default: "#333647" },
    },
  }),
  YK = Ct({
    ...zt,
    palette: {
      primary: { main: "#4964ED", dark: "#354DC8" },
      secondary: { main: "#252734" },
      text: { primary: "#333647", secondary: "#4964ED" },
      background: { default: "#F5F7FF" },
    },
  }),
  KK = Ct({
    ...zt,
    palette: {
      primary: { main: "#07A0C3", dark: "#0A819C" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#07A0C3" },
      background: { default: "#333647" },
    },
  }),
  XK = Ct({
    ...zt,
    palette: {
      primary: { main: "#F2B133", dark: "#E6A11C" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#F2B133" },
      background: { default: "#333647" },
    },
  }),
  qK = Ct({
    ...zt,
    palette: {
      primary: { main: "#3D9A63", dark: "#247746" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#3D9A63" },
      background: { default: "#333647" },
    },
  }),
  ZK = Ct({
    ...zt,
    palette: {
      primary: { main: "#4B6A99", dark: "#32507D" },
      secondary: { main: "#252734" },
      text: { primary: "#252734", secondary: "#4B6A99" },
      background: { default: "#F5F7FF" },
    },
  }),
  JK = Ct({
    ...zt,
    palette: {
      primary: { main: "#FF9431", dark: "#EF8624" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#FF9431" },
      background: { default: "#333647" },
    },
  }),
  QK = Ct({
    ...zt,
    palette: {
      primary: { main: "#2D99BA", dark: "#1A84A6" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#2D99BA" },
      background: { default: "#333647" },
    },
  }),
  eX = Ct({
    ...zt,
    palette: {
      primary: { main: "#D34085", dark: "#AD376E" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#D34085" },
      background: { default: "#333647" },
    },
  }),
  tX = Ct({
    ...zt,
    palette: {
      primary: { main: "#B47C3B", dark: "#9C6524" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#B47C3B" },
      background: { default: "#333647" },
    },
  }),
  nX = Ct({
    ...zt,
    palette: {
      primary: { main: "#F0B136", dark: "#E19F1D" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#F0B136" },
      background: { default: "#333647" },
    },
  }),
  rX = Ct({
    ...zt,
    palette: {
      primary: { main: "#678F48", dark: "#527933" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#678F48" },
      background: { default: "#333647" },
    },
  }),
  oX = Ct({
    ...zt,
    palette: {
      primary: { main: "#3666AF", dark: "#1B478A" },
      secondary: { main: "#252734" },
      text: { primary: "#FFFFFF", secondary: "#3666AF" },
      background: { default: "#333647" },
    },
  }),
  Be = {
    StandardTheme: { theme: $K, isLight: !0 },
    StandardDarkTheme: { theme: BK, isLight: !1 },
    PinkTheme: { theme: jK, isLight: !0 },
    PinkDarkTheme: { theme: VK, isLight: !1 },
    BlackWhiteTheme: { theme: HK, isLight: !0 },
    OliveTheme: { theme: zK, isLight: !0 },
    YellowTheme: { theme: GK, isLight: !0 },
    GoldDarkTheme: { theme: UK, isLight: !1 },
    PurpleTheme: { theme: WK, isLight: !0 },
    BlueTheme: { theme: YK, isLight: !0 },
    BlueDarkTheme: { theme: KK, isLight: !1 },
    Design1: { theme: XK, isLight: !1 },
    Design2: { theme: qK, isLight: !1 },
    Design3: { theme: ZK, isLight: !0 },
    Design4: { theme: JK, isLight: !1 },
    Design5: { theme: QK, isLight: !1 },
    Design6: { theme: eX, isLight: !1 },
    Design7: { theme: tX, isLight: !1 },
    Design8: { theme: nX, isLight: !1 },
    Design9: { theme: rX, isLight: !1 },
    Design10: { theme: oX, isLight: !1 },
  },
  Jd = {
    RU: ["Russia +7", "+{7} (000) 000-00-00"],
    UA: ["Ukraine +380", "+{380} (00) 000-00-00"],
    BY: ["Belarus +375", "+{375} (00) 000-00-00"],
    KZ: ["Kazakhstan +7", "+{7} (000) 000-00-00"],
    UZ: ["Uzbekistan +998", "+{998} (00) 000-00-00"],
    TJ: ["Tajikistan +992", "+{992} (00) 000-00-00"],
    KG: ["Kyrgyzstan +996", "+{996} (000) 00-00-00"],
    TM: ["Turkmenistan +993", "+{993} (00) 00-00-00"],
    AZ: ["Azerbaijan +994", "+{994} (00) 000-00-00"],
    AM: ["Armenia +374", "+{374} (00) 000-000"],
    GE: ["Georgia +995", "+{995} (000) 00-00-00"],
    DE: ["Germany +49", "+{49} 0000 0000000"],
    FR: ["France +33", "+{33} 0 00 00 00 00"],
    IT: ["Italy +39", "+{39} 000 000 0000"],
    ES: ["Spain +34", "+{34} 000 00 00 00"],
    GB: ["United Kingdom +44", "+{44} 0000 000000"],
    PL: ["Poland +48", "+{48} 000 000 000"],
    NL: ["Netherlands +31", "+{31} 00 000 0000"],
    BE: ["Belgium +32", "+{32} 00 00 00 00"],
    CH: ["Switzerland +41", "+{41} 00 000 00 00"],
    AT: ["Austria +43", "+{43} 000 000 0000"],
    DK: ["Denmark +45", "+{45} 00 00 00 00"],
    SE: ["Sweden +46", "+{46} 00 000 00 00"],
    NO: ["Norway +47", "+{47} 000 00 000"],
    FI: ["Finland +358", "+{358} 00 000 0000"],
    CZ: ["Czech Republic +420", "+{420} 000 000 000"],
    SK: ["Slovakia +421", "+{421} 000 000 000"],
    HU: ["Hungary +36", "+{36} 00 000 0000"],
    RO: ["Romania +40", "+{40} 000 000 000"],
    BG: ["Bulgaria +359", "+{359} 00 000 000"],
    GR: ["Greece +30", "+{30} 000 000 0000"],
    PT: ["Portugal +351", "+{351} 000 000 000"],
    IE: ["Ireland +353", "+{353} 00 000 0000"],
    CN: ["China +86", "+{86} 000 0000 0000"],
    JP: ["Japan +81", "+{81} 000-000-0000"],
    IN: ["India +91", "+{91} 00000 00000"],
    KR: ["South Korea +82", "+{82} 00-0000-0000"],
    ID: ["Indonesia +62", "+{62} 0000 0000 0000"],
    TR: ["Turkey +90", "+{90} 000 000 00 00"],
    IL: ["Israel +972", "+{972} 00 000-0000"],
    SA: ["Saudi Arabia +966", "+{966} 00 000 0000"],
    AE: ["United Arab Emirates +971", "+{971} 00 000 0000"],
    TH: ["Thailand +66", "+{66} 00 000 0000"],
    VN: ["Vietnam +84", "+{84} 000 000 000"],
    MY: ["Malaysia +60", "+{60} 00-000 0000"],
    PH: ["Philippines +63", "+{63} 000 000 0000"],
    US: ["United States +1", "+{1} (000) 000-0000"],
    CA: ["Canada +1", "+{1} (000) 000-0000"],
    MX: ["Mexico +52", "+{52} 000 000 0000"],
    BR: ["Brazil +55", "+{55} (00) 0000-0000"],
    AR: ["Argentina +54", "+{54} 000 000-0000"],
    CO: ["Colombia +57", "+{57} 000 000 0000"],
    PE: ["Peru +51", "+{51} 000 000 000"],
    CL: ["Chile +56", "+{56} 00 000 0000"],
    EC: ["Ecuador +593", "+{593} 00 000 0000"],
    VE: ["Venezuela +58", "+{58} 000 000 0000"],
    EG: ["Egypt +20", "+{20} 000 000 0000"],
    NG: ["Nigeria +234", "+{234} 000 0000 0000"],
    ZA: ["South Africa +27", "+{27} 000 000 0000"],
    MA: ["Morocco +212", "+{212} 00 00 00 00"],
    DZ: ["Algeria +213", "+{213} 00 00 00 00"],
    KE: ["Kenya +254", "+{254} 000 000 000"],
    ET: ["Ethiopia +251", "+{251} 00 000 0000"],
    AU: ["Australia +61", "+{61} 0000 000 000"],
    NZ: ["New Zealand +64", "+{64} 00 000 0000"],
  },
  iX = ({ setMask: e }) => {
    const t = Re(),
      [n, r] = b.useState("RU"),
      o = (i) => {
        r(i.target.value), e(Jd[i.target.value][1]);
      };
    return f.jsx(xc, {
      value: n,
      onChange: o,
      renderValue: (i) => i,
      MenuProps: {
        PaperProps: {
          style: { backgroundColor: t.palette.background.default, borderRadius: "12px", scrollbarWidth: "none" },
        },
      },
      sx: {
        minWidth: 50,
        backgroundColor: t.palette.background.default,
        "& .MuiSelect-select": {
          paddingLeft: "5px",
          paddingRight: "5px",
          color: "gray",
          fontSize: "12px",
          border: "none",
        },
        "& .MuiOutlinedInput-notchedOutline": { border: "none" },
        "&:hover .MuiOutlinedInput-notchedOutline": { border: "none" },
        "&:hover:before": { border: "none" },
        "&.Mui-focused .MuiOutlinedInput-notchedOutline": { border: "none" },
        "&.Mui-focused:hover .MuiOutlinedInput-notchedOutline": { border: "none" },
      },
      children: Object.keys(Jd).map((i) => f.jsx(i5, { value: i, children: Jd[i][0] })),
    });
  },
  sX = T0;
function aX(e, t) {
  const n = $e.createMask({ mask: "+7 (000) 000-00-00" });
  return (n.value = e.target.value), $e.pipe(e.target.value, { mask: t }) || "";
}
const Bl = ({ title: e, desc: t, Icon: n, onChange: r, onChangePhone: o, isPhone: i, type: s, value: a }) => {
  const l = Re(),
    u = pt() < 600,
    { settings: c } = dt(),
    [d, p] = b.useState(Jd.RU[1]);
  return f.jsxs(H, {
    m: "10px 0",
    children: [
      f.jsx(xe, { mb: "7px", color: l.palette.text.primary, fontSize: "16px", children: e }),
      f.jsx(sX, {
        onChange: (h) => (i ? (o == null ? void 0 : o(aX(h, d))) : r == null ? void 0 : r(h)),
        type: i ? "tel" : s,
        value: a,
        sx: {
          width: u ? "100%" : "390px",
          backgroundColor: l.palette.background.default,
          fontSize: "16px",
          "& .MuiOutlinedInput-notchedOutline": { borderColor: "#9A9AAF80", borderRadius: "12px" },
          "& .MuiInputBase-root": { paddingLeft: 0 },
          "& .MuiOutlinedInput-input": { paddingLeft: "10px" },
          "& .MuiOutlinedInput-root": { "&:hover fieldset": { borderColor: l.palette.primary.main } },
        },
        placeholder: t,
        InputProps: {
          startAdornment: f.jsx(Hf, {
            position: "start",
            children: f.jsx(n, { color: "gray", backgroundColor: Be[c.cfg.theme].isLight ? "#F2F3F7" : "#F2F3F71A" }),
          }),
          endAdornment: f.jsx(Hf, { position: "end", children: i && f.jsx(iX, { setMask: p }) }),
        },
      }),
    ],
  });
};
function lX({ color: e, backgroundColor: t }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      height: "58px",
      width: "45px",
      backgroundColor: { backgroundColor: t },
      borderBottomLeftRadius: "12px",
      borderTopLeftRadius: "12px",
    },
    children: f.jsx("svg", {
      width: "17",
      height: "18",
      viewBox: "0 0 17 18",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: f.jsx("path", {
        d: "M13.6893 15.0369C12.2537 16.4725 8.57727 15.1236 5.47772 12.024C2.37818 8.9245 1.02926 5.24806 2.46484 3.81247L3.41006 2.86725C4.06259 2.21472 5.13781 2.23197 5.81163 2.90578L7.27569 4.36984C7.9495 5.04365 7.96675 6.11888 7.31421 6.77141L7.11119 6.97443C6.75888 7.32675 6.72441 7.8951 7.05178 8.29181C7.36754 8.67446 7.70796 9.0556 8.07707 9.4247C8.44617 9.7938 8.82731 10.1342 9.20996 10.45C9.60666 10.7774 10.175 10.7429 10.5273 10.3906L10.7304 10.1875C11.3829 9.53501 12.4581 9.55226 13.1319 10.2261L14.596 11.6901C15.2698 12.364 15.287 13.4392 14.6345 14.0917L13.6893 15.0369Z",
        stroke: "#9A9AAF",
        strokeWidth: "1.5",
      }),
    }),
  });
}
const uX = ({
    name: e,
    setName: t,
    email: n,
    setEmail: r,
    phone: o,
    setPhone: i,
    text: s,
    setText: a,
    adress: l,
    setAdress: u,
    crutch: c,
  }) => {
    const { settings: d } = dt(),
      p = d.cfg.formContact.fields;
    if (!p) return null;
    const h = f.jsx(Bl, {
        onChange: ({ target: g }) => t(g.value),
        id: e,
        title: p.name.innerText || "Enter your phone name",
        desc: p.name.text || "Name",
        Icon: xK,
      }),
      m = f.jsx(Bl, {
        onChange: ({ target: g }) => {
          r(g.value.replaceAll(/\s/g, ""));
        },
        id: n,
        title: p.email.innerText || "Enter your Email",
        desc: p.email.text || "Email",
        Icon: bK,
        type: "email",
      }),
      v = f.jsx(Bl, {
        onChange: ({ target: g }) => a(g.value),
        onChangePhone: (g) => {
          i(g);
        },
        value: o,
        id: o,
        title: p.phone.innerText || "Enter your phone number",
        desc: p.phone.text || "Phone number",
        Icon: lX,
        isPhone: !0,
      }),
      C = f.jsx(Bl, {
        onChange: ({ target: g }) => a(g.value),
        id: s,
        title: p.text.text || "Enter your surname",
        desc: p.text.innerText || "Surname",
        Icon: CK,
      }),
      y = f.jsx(Bl, {
        onChange: ({ target: g }) => u(g.value),
        id: l,
        title: p.address.innerText || "Enter your address",
        desc: p.address.text || "Address",
        Icon: wK,
      });
    return Object.values(p).some((g) => g.used)
      ? f.jsxs(f.Fragment, {
          children: [
            p.name.used ? h : f.jsx(f.Fragment, {}),
            p.email.used && !c.disableEmail ? m : f.jsx(f.Fragment, {}),
            p.phone.used ? v : f.jsx(f.Fragment, {}),
            p.text.used ? C : f.jsx(f.Fragment, {}),
            p.address.used ? y : f.jsx(f.Fragment, {}),
          ],
        })
      : f.jsxs(f.Fragment, { children: [h, m, v] });
  },
  cX = ({ settings: e }) => {
    const t = Re(),
      n = pt() < 850,
      r = pt() < 1e3;
    return f.jsx(H, {
      sx: {
        flexGrow: n ? 0 : 1,
        display: "flex",
        flexDirection: "column",
        alignItems: "center",
        justifyContent: "center",
        borderRight: n ? void 0 : "1px solid #9A9AAF80",
        margin: n ? 0 : "40px 0",
        padding: n ? "0" : "0 40px",
      },
      children: f.jsxs(H, {
        sx: {
          maxWidth: n ? "100%" : r ? "410px" : "630px",
          display: "flex",
          flexDirection: "column",
          alignItems: "flex-start",
          justifyContent: "center",
          padding: n ? "40px 20px 0 20px" : "0",
          mt: n ? 0 : r ? "-180px" : "-47px",
        },
        children: [
          f.jsx(xe, {
            sx: {
              textAlign: r ? void 0 : "center",
              fontSize: "24px",
              lineHeight: "normal",
              fontWeight: 501,
              color: t.palette.text.primary,
              wordBreak: "break-word",
            },
            children: e.cfg.formContact.title || "Fill out the form to receive your test results",
          }),
          e.cfg.formContact.desc &&
            f.jsx(xe, {
              sx: { color: t.palette.text.primary, m: "20px 0", fontSize: "18px", wordBreak: "break-word" },
              children: e.cfg.formContact.desc,
            }),
        ],
      }),
    });
  },
  dX = /^(([^<>()[\].,:\s@"]+(\.[^<>()[\].,:\s@"]+)*)|(".+"))@(([^<>()[\].,:\s@"]+\.)+[^<>()[\].,:\s@"]{2,})$/iu,
  Vr = {
    Design1: `${Ze}/designs/design1.jpg`,
    Design2: `${Ze}/designs/design2.jpg`,
    Design3: `${Ze}/designs/design3.jpg`,
    Design4: `${Ze}/designs/design4.jpg`,
    Design5: `${Ze}/designs/design5.jpg`,
    Design6: `${Ze}/designs/design6.jpg`,
    Design7: `${Ze}/designs/design7.jpg`,
    Design8: `${Ze}/designs/design8.jpg`,
    Design9: `${Ze}/designs/design9.jpg`,
    Design10: `${Ze}/designs/design10.jpg`,
    StandardTheme: "",
    StandardDarkTheme: "",
    PinkTheme: "",
    PinkDarkTheme: "",
    BlackWhiteTheme: "",
    OliveTheme: "",
    YellowTheme: "",
    GoldDarkTheme: "",
    PurpleTheme: "",
    BlueTheme: "",
    BlueDarkTheme: "",
  },
  H5 = (e) =>
    f.jsxs("svg", {
      ...e,
      width: "168",
      height: "20",
      viewBox: "0 0 168 20",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M162.063 14.9047C161.972 14.9047 161.895 14.8775 161.832 14.823C161.777 14.7595 161.75 14.6824 161.75 14.5917V14.1153C161.75 14.0337 161.768 13.9565 161.804 13.884C161.85 13.8114 161.895 13.7433 161.941 13.6798L165.697 8.9028H162.186C162.095 8.9028 162.018 8.87558 161.954 8.82115C161.9 8.76671 161.872 8.68958 161.872 8.58978V8.14066C161.872 8.04993 161.9 7.97734 161.954 7.92291C162.018 7.85939 162.095 7.82764 162.186 7.82764H167.031C167.121 7.82764 167.194 7.85939 167.248 7.92291C167.312 7.97734 167.344 8.04993 167.344 8.14066V8.64422C167.344 8.72588 167.321 8.79846 167.276 8.86197C167.239 8.92549 167.198 8.99353 167.153 9.06612L163.438 13.8295H167.303C167.393 13.8295 167.466 13.8567 167.521 13.9112C167.584 13.9656 167.616 14.0427 167.616 14.1425V14.5917C167.616 14.6824 167.584 14.7595 167.521 14.823C167.466 14.8775 167.393 14.9047 167.303 14.9047H162.063Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M159.148 14.9037C159.058 14.9037 158.981 14.8764 158.917 14.822C158.863 14.7585 158.835 14.6814 158.835 14.5906V8.13964C158.835 8.04891 158.863 7.97633 158.917 7.92189C158.981 7.85837 159.058 7.82662 159.148 7.82662H159.802C159.892 7.82662 159.965 7.85837 160.019 7.92189C160.074 7.97633 160.101 8.04891 160.101 8.13964V14.5906C160.101 14.6814 160.074 14.7585 160.019 14.822C159.965 14.8764 159.892 14.9037 159.802 14.9037H159.148ZM159.04 6.50648C158.949 6.50648 158.872 6.47926 158.808 6.42482C158.754 6.36131 158.727 6.28419 158.727 6.19345V5.45853C158.727 5.3678 158.754 5.29521 158.808 5.24078C158.872 5.17726 158.949 5.14551 159.04 5.14551H159.897C159.988 5.14551 160.06 5.17726 160.115 5.24078C160.178 5.29521 160.21 5.3678 160.21 5.45853V6.19345C160.21 6.28419 160.178 6.36131 160.115 6.42482C160.06 6.47926 159.988 6.50648 159.897 6.50648H159.04Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M153.294 15.0408C152.714 15.0408 152.219 14.9138 151.811 14.6597C151.412 14.3966 151.108 14.0337 150.899 13.5709C150.69 13.1082 150.586 12.5774 150.586 11.9786V8.14066C150.586 8.04993 150.613 7.97734 150.668 7.92291C150.731 7.85939 150.808 7.82764 150.899 7.82764H151.579C151.67 7.82764 151.743 7.85939 151.797 7.92291C151.861 7.97734 151.892 8.04993 151.892 8.14066V11.9105C151.892 13.2624 152.482 13.9384 153.662 13.9384C154.224 13.9384 154.673 13.7615 155.009 13.4076C155.354 13.0447 155.526 12.5457 155.526 11.9105V8.14066C155.526 8.04993 155.553 7.97734 155.608 7.92291C155.671 7.85939 155.749 7.82764 155.839 7.82764H156.506C156.606 7.82764 156.683 7.85939 156.738 7.92291C156.792 7.97734 156.819 8.04993 156.819 8.14066V14.5917C156.819 14.6824 156.792 14.7595 156.738 14.823C156.683 14.8775 156.606 14.9047 156.506 14.9047H155.88C155.789 14.9047 155.712 14.8775 155.649 14.823C155.594 14.7595 155.567 14.6824 155.567 14.5917V13.9928C155.322 14.3104 155.023 14.5644 154.669 14.755C154.324 14.9455 153.866 15.0408 153.294 15.0408Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M147.755 15.7912C147.637 15.7912 147.542 15.7503 147.47 15.6687C147.397 15.5961 147.338 15.5326 147.293 15.4781L146.735 14.716C146.245 14.9338 145.678 15.0426 145.033 15.0426C144.253 15.0426 143.586 14.9111 143.033 14.648C142.488 14.3758 142.062 13.9629 141.754 13.4095C141.454 12.8469 141.291 12.1438 141.264 11.3C141.255 10.9008 141.25 10.5197 141.25 10.1568C141.25 9.78476 141.255 9.39915 141.264 8.99993C141.291 8.1652 141.463 7.47111 141.781 6.91765C142.098 6.35511 142.534 5.93775 143.087 5.66555C143.65 5.38429 144.299 5.24365 145.033 5.24365C145.777 5.24365 146.426 5.38429 146.98 5.66555C147.542 5.93775 147.982 6.35511 148.3 6.91765C148.617 7.47111 148.785 8.1652 148.803 8.99993C148.822 9.39915 148.831 9.78476 148.831 10.1568C148.831 10.5197 148.822 10.9008 148.803 11.3C148.758 12.5521 148.431 13.4821 147.823 14.09L148.722 15.3693C148.731 15.3783 148.74 15.392 148.749 15.4101C148.758 15.4373 148.763 15.4736 148.763 15.519C148.772 15.5916 148.749 15.6551 148.695 15.7095C148.64 15.764 148.572 15.7912 148.49 15.7912H147.755ZM145.033 13.8858C145.723 13.8858 146.29 13.6771 146.735 13.2598C147.179 12.8424 147.42 12.1665 147.456 11.2319C147.474 10.8236 147.483 10.4607 147.483 10.1431C147.483 9.81651 147.474 9.45359 147.456 9.05437C147.438 8.42832 147.32 7.92023 147.102 7.53008C146.893 7.13994 146.612 6.85413 146.258 6.67267C145.905 6.49121 145.496 6.40048 145.033 6.40048C144.589 6.40048 144.185 6.49121 143.822 6.67267C143.468 6.85413 143.187 7.13994 142.978 7.53008C142.77 7.92023 142.652 8.42832 142.625 9.05437C142.616 9.45359 142.611 9.81651 142.611 10.1431C142.611 10.4607 142.616 10.8236 142.625 11.2319C142.661 12.1665 142.901 12.8424 143.346 13.2598C143.79 13.6771 144.353 13.8858 145.033 13.8858Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M135.907 15.0367C135.453 15.0367 135.04 14.946 134.668 14.7645C134.296 14.5831 133.997 14.3381 133.77 14.0296C133.543 13.7211 133.43 13.3718 133.43 12.9817C133.43 12.3556 133.684 11.8566 134.192 11.4846C134.7 11.1126 135.362 10.8676 136.179 10.7497L138.207 10.4639V10.0692C138.207 9.63369 138.08 9.29344 137.826 9.04847C137.581 8.8035 137.177 8.68101 136.614 8.68101C136.206 8.68101 135.875 8.76267 135.621 8.92598C135.376 9.0893 135.203 9.29798 135.104 9.55203C135.049 9.68813 134.954 9.75617 134.818 9.75617H134.205C134.106 9.75617 134.029 9.72895 133.974 9.67452C133.929 9.611 133.906 9.53842 133.906 9.45676C133.906 9.32066 133.956 9.15281 134.056 8.9532C134.165 8.75359 134.328 8.55852 134.546 8.36798C134.763 8.17745 135.04 8.01867 135.376 7.89165C135.721 7.75555 136.138 7.6875 136.628 7.6875C137.172 7.6875 137.631 7.76009 138.003 7.90526C138.375 8.04135 138.665 8.22735 138.874 8.46325C139.091 8.69915 139.246 8.96681 139.336 9.26622C139.436 9.56564 139.486 9.86959 139.486 10.1781V14.5876C139.486 14.6783 139.454 14.7555 139.391 14.819C139.336 14.8734 139.264 14.9006 139.173 14.9006H138.547C138.447 14.9006 138.37 14.8734 138.316 14.819C138.261 14.7555 138.234 14.6783 138.234 14.5876V14.0024C138.116 14.1657 137.957 14.329 137.758 14.4923C137.558 14.6466 137.308 14.7782 137.009 14.887C136.71 14.9868 136.342 15.0367 135.907 15.0367ZM136.192 14.016C136.564 14.016 136.905 13.9389 137.213 13.7846C137.522 13.6213 137.762 13.3718 137.934 13.0361C138.116 12.7004 138.207 12.2785 138.207 11.7704V11.3893L136.628 11.6207C135.984 11.7114 135.498 11.8657 135.172 12.0834C134.845 12.2921 134.682 12.5598 134.682 12.8864C134.682 13.1405 134.754 13.3537 134.9 13.5261C135.054 13.6894 135.244 13.8119 135.471 13.8935C135.707 13.9752 135.947 14.016 136.192 14.016Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M125.993 14.9006C125.902 14.9006 125.825 14.8734 125.761 14.819C125.707 14.7555 125.68 14.6783 125.68 14.5876V8.13662C125.68 8.04589 125.707 7.9733 125.761 7.91887C125.825 7.85535 125.902 7.8236 125.993 7.8236H126.632C126.723 7.8236 126.796 7.85535 126.85 7.91887C126.914 7.9733 126.945 8.04589 126.945 8.13662V8.73545C127.181 8.42696 127.476 8.17745 127.83 7.98691C128.193 7.7873 128.656 7.6875 129.218 7.6875C129.808 7.6875 130.307 7.81906 130.715 8.08218C131.133 8.33623 131.446 8.69462 131.654 9.15735C131.863 9.611 131.967 10.1418 131.967 10.7497V14.5876C131.967 14.6783 131.94 14.7555 131.886 14.819C131.831 14.8734 131.759 14.9006 131.668 14.9006H130.987C130.897 14.9006 130.82 14.8734 130.756 14.819C130.702 14.7555 130.674 14.6783 130.674 14.5876V10.8177C130.674 10.1826 130.52 9.68813 130.212 9.33427C129.903 8.97135 129.45 8.78989 128.851 8.78989C128.288 8.78989 127.835 8.97135 127.49 9.33427C127.154 9.68813 126.986 10.1826 126.986 10.8177V14.5876C126.986 14.6783 126.954 14.7555 126.891 14.819C126.837 14.8734 126.764 14.9006 126.673 14.9006H125.993Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M120.884 15.0367C119.949 15.0367 119.205 14.7509 118.652 14.1793C118.099 13.5986 117.795 12.8093 117.74 11.8112C117.731 11.6933 117.727 11.5436 117.727 11.3621C117.727 11.1716 117.731 11.0173 117.74 10.8994C117.776 10.2552 117.926 9.69266 118.189 9.21179C118.452 8.72184 118.811 8.3453 119.264 8.08218C119.727 7.81906 120.267 7.6875 120.884 7.6875C121.574 7.6875 122.15 7.83267 122.612 8.12301C123.084 8.41335 123.443 8.82618 123.688 9.36149C123.933 9.89681 124.055 10.5229 124.055 11.2396V11.471C124.055 11.5708 124.023 11.6479 123.96 11.7024C123.905 11.7568 123.833 11.784 123.742 11.784H119.033C119.033 11.7931 119.033 11.8112 119.033 11.8385C119.033 11.8657 119.033 11.8884 119.033 11.9065C119.051 12.2785 119.133 12.6278 119.278 12.9545C119.423 13.272 119.632 13.5306 119.904 13.7302C120.176 13.9298 120.503 14.0296 120.884 14.0296C121.211 14.0296 121.483 13.9797 121.701 13.8799C121.918 13.7801 122.095 13.6712 122.231 13.5533C122.367 13.4263 122.458 13.331 122.504 13.2675C122.585 13.1495 122.649 13.0815 122.694 13.0633C122.739 13.0361 122.812 13.0225 122.912 13.0225H123.565C123.656 13.0225 123.728 13.0497 123.783 13.1042C123.846 13.1495 123.874 13.2176 123.865 13.3083C123.855 13.4444 123.783 13.6123 123.647 13.8119C123.511 14.0024 123.316 14.1929 123.062 14.3835C122.808 14.574 122.499 14.7328 122.136 14.8598C121.773 14.9778 121.356 15.0367 120.884 15.0367ZM119.033 10.845H122.762V10.8041C122.762 10.3958 122.685 10.0329 122.531 9.71535C122.386 9.39779 122.172 9.14827 121.891 8.96681C121.61 8.77628 121.274 8.68101 120.884 8.68101C120.494 8.68101 120.158 8.77628 119.877 8.96681C119.605 9.14827 119.396 9.39779 119.251 9.71535C119.106 10.0329 119.033 10.3958 119.033 10.8041V10.845Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M109.915 14.9033C109.815 14.9033 109.738 14.876 109.683 14.8216C109.629 14.7581 109.602 14.681 109.602 14.5902V5.7031C109.602 5.60329 109.629 5.52617 109.683 5.47173C109.738 5.40822 109.815 5.37646 109.915 5.37646H113.371C114.043 5.37646 114.624 5.48534 115.113 5.7031C115.613 5.92085 115.998 6.24749 116.27 6.683C116.543 7.10943 116.679 7.64475 116.679 8.28894C116.679 8.93313 116.543 9.46845 116.27 9.89489C115.998 10.3213 115.613 10.6434 115.113 10.8612C114.624 11.0789 114.043 11.1878 113.371 11.1878H110.963V14.5902C110.963 14.681 110.931 14.7581 110.867 14.8216C110.813 14.876 110.736 14.9033 110.636 14.9033H109.915ZM110.949 10.0446H113.303C113.975 10.0446 114.478 9.89489 114.814 9.59547C115.15 9.29606 115.318 8.86055 115.318 8.28894C115.318 7.72641 115.154 7.2909 114.828 6.98241C114.501 6.67392 113.993 6.51968 113.303 6.51968H110.949V10.0446Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M100.555 15.0367C100.101 15.0367 99.6886 14.946 99.3166 14.7645C98.9446 14.5831 98.6452 14.3381 98.4184 14.0296C98.1915 13.7211 98.0781 13.3718 98.0781 12.9817C98.0781 12.3556 98.3322 11.8566 98.8403 11.4846C99.3484 11.1126 100.011 10.8676 100.827 10.7497L102.855 10.4639V10.0692C102.855 9.63369 102.728 9.29344 102.474 9.04847C102.229 8.8035 101.825 8.68101 101.263 8.68101C100.855 8.68101 100.523 8.76267 100.269 8.92598C100.024 9.0893 99.8519 9.29798 99.7521 9.55203C99.6977 9.68813 99.6024 9.75617 99.4663 9.75617H98.8539C98.7541 9.75617 98.6769 9.72895 98.6225 9.67452C98.5771 9.611 98.5545 9.53842 98.5545 9.45676C98.5545 9.32066 98.6044 9.15281 98.7042 8.9532C98.813 8.75359 98.9764 8.55852 99.1941 8.36798C99.4119 8.17745 99.6886 8.01867 100.024 7.89165C100.369 7.75555 100.786 7.6875 101.276 7.6875C101.821 7.6875 102.279 7.76009 102.651 7.90526C103.023 8.04135 103.313 8.22735 103.522 8.46325C103.74 8.69915 103.894 8.96681 103.985 9.26622C104.085 9.56564 104.134 9.86959 104.134 10.1781V14.5876C104.134 14.6783 104.103 14.7555 104.039 14.819C103.985 14.8734 103.912 14.9006 103.821 14.9006H103.195C103.096 14.9006 103.018 14.8734 102.964 14.819C102.91 14.7555 102.882 14.6783 102.882 14.5876V14.0024C102.764 14.1657 102.606 14.329 102.406 14.4923C102.206 14.6466 101.957 14.7782 101.657 14.887C101.358 14.9868 100.991 15.0367 100.555 15.0367ZM100.841 14.016C101.213 14.016 101.553 13.9389 101.862 13.7846C102.17 13.6213 102.411 13.3718 102.583 13.0361C102.764 12.7004 102.855 12.2785 102.855 11.7704V11.3893L101.276 11.6207C100.632 11.7114 100.147 11.8657 99.8202 12.0834C99.4935 12.2921 99.3302 12.5598 99.3302 12.8864C99.3302 13.1405 99.4028 13.3537 99.548 13.5261C99.7022 13.6894 99.8928 13.8119 100.12 13.8935C100.355 13.9752 100.596 14.016 100.841 14.016Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M90.6021 14.9047C90.5114 14.9047 90.4342 14.8775 90.3707 14.823C90.3163 14.7595 90.2891 14.6824 90.2891 14.5917V8.14066C90.2891 8.04993 90.3163 7.97734 90.3707 7.92291C90.4342 7.85939 90.5114 7.82764 90.6021 7.82764H91.2554C91.3461 7.82764 91.4187 7.85939 91.4731 7.92291C91.5275 7.97734 91.5548 8.04993 91.5548 8.14066V10.7537H95.2702V8.14066C95.2702 8.04993 95.2974 7.97734 95.3519 7.92291C95.4154 7.85939 95.4925 7.82764 95.5832 7.82764H96.2229C96.3136 7.82764 96.3862 7.85939 96.4406 7.92291C96.5042 7.97734 96.5359 8.04993 96.5359 8.14066V14.5917C96.5359 14.6824 96.5042 14.7595 96.4406 14.823C96.3862 14.8775 96.3136 14.9047 96.2229 14.9047H95.5832C95.4925 14.9047 95.4154 14.8775 95.3519 14.823C95.2974 14.7595 95.2702 14.6824 95.2702 14.5917V11.8425H91.5548V14.5917C91.5548 14.6824 91.5275 14.7595 91.4731 14.823C91.4187 14.8775 91.3461 14.9047 91.2554 14.9047H90.6021Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M82.0322 15.0367C81.3426 15.0367 80.7665 14.9052 80.3038 14.6421C79.841 14.3789 79.4872 14.016 79.2422 13.5533C78.9972 13.0815 78.8611 12.5462 78.8339 11.9473C78.8249 11.7931 78.8203 11.598 78.8203 11.3621C78.8203 11.1171 78.8249 10.9221 78.8339 10.7769C78.8611 10.169 78.9972 9.63369 79.2422 9.17096C79.4963 8.70823 79.8547 8.3453 80.3174 8.08218C80.7801 7.81906 81.3517 7.6875 82.0322 7.6875C82.7127 7.6875 83.2843 7.81906 83.747 8.08218C84.2098 8.3453 84.5636 8.70823 84.8086 9.17096C85.0626 9.63369 85.2033 10.169 85.2305 10.7769C85.2396 10.9221 85.2441 11.1171 85.2441 11.3621C85.2441 11.598 85.2396 11.7931 85.2305 11.9473C85.2033 12.5462 85.0672 13.0815 84.8222 13.5533C84.5772 14.016 84.2234 14.3789 83.7606 14.6421C83.2979 14.9052 82.7218 15.0367 82.0322 15.0367ZM82.0322 13.9888C82.5947 13.9888 83.0439 13.8119 83.3796 13.458C83.7153 13.0951 83.8967 12.5688 83.924 11.8793C83.933 11.7432 83.9376 11.5708 83.9376 11.3621C83.9376 11.1534 83.933 10.981 83.924 10.845C83.8967 10.1554 83.7153 9.63369 83.3796 9.27984C83.0439 8.91691 82.5947 8.73545 82.0322 8.73545C81.4697 8.73545 81.016 8.91691 80.6712 9.27984C80.3355 9.63369 80.1586 10.1554 80.1405 10.845C80.1314 10.981 80.1268 11.1534 80.1268 11.3621C80.1268 11.5708 80.1314 11.7432 80.1405 11.8793C80.1586 12.5688 80.3355 13.0951 80.6712 13.458C81.016 13.8119 81.4697 13.9888 82.0322 13.9888Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M71.1568 14.9047C71.066 14.9047 70.9889 14.8775 70.9254 14.823C70.871 14.7595 70.8438 14.6824 70.8438 14.5917V8.14066C70.8438 8.04993 70.871 7.97734 70.9254 7.92291C70.9889 7.85939 71.066 7.82764 71.1568 7.82764H71.81C71.9008 7.82764 71.9734 7.85939 72.0278 7.92291C72.0822 7.97734 72.1094 8.04993 72.1094 8.14066V10.7537H75.8249V8.14066C75.8249 8.04993 75.8521 7.97734 75.9066 7.92291C75.9701 7.85939 76.0472 7.82764 76.1379 7.82764H76.7776C76.8683 7.82764 76.9409 7.85939 76.9953 7.92291C77.0588 7.97734 77.0906 8.04993 77.0906 8.14066V14.5917C77.0906 14.6824 77.0588 14.7595 76.9953 14.823C76.9409 14.8775 76.8683 14.9047 76.7776 14.9047H76.1379C76.0472 14.9047 75.9701 14.8775 75.9066 14.823C75.8521 14.7595 75.8249 14.6824 75.8249 14.5917V11.8425H72.1094V14.5917C72.1094 14.6824 72.0822 14.7595 72.0278 14.823C71.9734 14.8775 71.9008 14.9047 71.81 14.9047H71.1568Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M65.3051 15.0367C64.8514 15.0367 64.4386 14.946 64.0666 14.7645C63.6946 14.5831 63.3952 14.3381 63.1684 14.0296C62.9415 13.7211 62.8281 13.3718 62.8281 12.9817C62.8281 12.3556 63.0822 11.8566 63.5903 11.4846C64.0984 11.1126 64.7607 10.8676 65.5773 10.7497L67.6051 10.4639V10.0692C67.6051 9.63369 67.4781 9.29344 67.2241 9.04847C66.9791 8.8035 66.5753 8.68101 66.0128 8.68101C65.6045 8.68101 65.2733 8.76267 65.0193 8.92598C64.7743 9.0893 64.6019 9.29798 64.5021 9.55203C64.4477 9.68813 64.3524 9.75617 64.2163 9.75617H63.6039C63.5041 9.75617 63.427 9.72895 63.3725 9.67452C63.3271 9.611 63.3045 9.53842 63.3045 9.45676C63.3045 9.32066 63.3544 9.15281 63.4542 8.9532C63.563 8.75359 63.7264 8.55852 63.9441 8.36798C64.1619 8.17745 64.4386 8.01867 64.7743 7.89165C65.1191 7.75555 65.5365 7.6875 66.0264 7.6875C66.5708 7.6875 67.029 7.76009 67.401 7.90526C67.773 8.04135 68.0633 8.22735 68.272 8.46325C68.4898 8.69915 68.644 8.96681 68.7347 9.26622C68.8345 9.56564 68.8844 9.86959 68.8844 10.1781V14.5876C68.8844 14.6783 68.8527 14.7555 68.7892 14.819C68.7347 14.8734 68.6621 14.9006 68.5714 14.9006H67.9454C67.8456 14.9006 67.7684 14.8734 67.714 14.819C67.6596 14.7555 67.6323 14.6783 67.6323 14.5876V14.0024C67.5144 14.1657 67.3556 14.329 67.156 14.4923C66.9564 14.6466 66.7069 14.7782 66.4075 14.887C66.1081 14.9868 65.7406 15.0367 65.3051 15.0367ZM65.5909 14.016C65.9629 14.016 66.3031 13.9389 66.6116 13.7846C66.9201 13.6213 67.1605 13.3718 67.3329 13.0361C67.5144 12.7004 67.6051 12.2785 67.6051 11.7704V11.3893L66.0264 11.6207C65.3822 11.7114 64.8968 11.8657 64.5702 12.0834C64.2435 12.2921 64.0802 12.5598 64.0802 12.8864C64.0802 13.1405 64.1528 13.3537 64.298 13.5261C64.4522 13.6894 64.6428 13.8119 64.8696 13.8935C65.1055 13.9752 65.3459 14.016 65.5909 14.016Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M55.1001 14.9047C55.0093 14.9047 54.9322 14.8729 54.8687 14.8094C54.8052 14.7459 54.7734 14.6688 54.7734 14.578V14.0745C54.7734 13.884 54.8687 13.7841 55.0592 13.7751C55.3405 13.766 55.5764 13.6344 55.7669 13.3804C55.9575 13.1173 56.1027 12.7044 56.2025 12.1419C56.3023 11.5703 56.3522 10.8172 56.3522 9.8827V8.14066C56.3522 8.04993 56.3794 7.97734 56.4338 7.92291C56.4973 7.85939 56.5745 7.82764 56.6652 7.82764H60.9931C61.0838 7.82764 61.1564 7.85939 61.2108 7.92291C61.2743 7.97734 61.3061 8.04993 61.3061 8.14066V14.5917C61.3061 14.6824 61.2743 14.7595 61.2108 14.823C61.1564 14.8775 61.0838 14.9047 60.9931 14.9047H60.3398C60.2491 14.9047 60.1765 14.8775 60.122 14.823C60.0676 14.7595 60.0404 14.6824 60.0404 14.5917V8.91641H57.5906V10.0324C57.5906 10.9034 57.5407 11.652 57.4409 12.278C57.3411 12.895 57.1869 13.3985 56.9782 13.7887C56.7786 14.1698 56.52 14.451 56.2025 14.6325C55.894 14.814 55.5265 14.9047 55.1001 14.9047Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M50.6418 15.0367C49.7073 15.0367 48.9633 14.7509 48.4098 14.1793C47.8564 13.5986 47.5524 12.8093 47.498 11.8112C47.4889 11.6933 47.4844 11.5436 47.4844 11.3621C47.4844 11.1716 47.4889 11.0173 47.498 10.8994C47.5343 10.2552 47.684 9.69266 47.9471 9.21179C48.2102 8.72184 48.5686 8.3453 49.0223 8.08218C49.485 7.81906 50.0249 7.6875 50.6418 7.6875C51.3314 7.6875 51.9075 7.83267 52.3703 8.12301C52.8421 8.41335 53.2004 8.82618 53.4454 9.36149C53.6904 9.89681 53.8129 10.5229 53.8129 11.2396V11.471C53.8129 11.5708 53.7811 11.6479 53.7176 11.7024C53.6632 11.7568 53.5906 11.784 53.4999 11.784H48.7909C48.7909 11.7931 48.7909 11.8112 48.7909 11.8385C48.7909 11.8657 48.7909 11.8884 48.7909 11.9065C48.8091 12.2785 48.8907 12.6278 49.0359 12.9545C49.181 13.272 49.3897 13.5306 49.6619 13.7302C49.9341 13.9298 50.2608 14.0296 50.6418 14.0296C50.9685 14.0296 51.2407 13.9797 51.4584 13.8799C51.6762 13.7801 51.8531 13.6712 51.9892 13.5533C52.1253 13.4263 52.216 13.331 52.2614 13.2675C52.343 13.1495 52.4065 13.0815 52.4519 13.0633C52.4973 13.0361 52.5699 13.0225 52.6697 13.0225H53.3229C53.4137 13.0225 53.4863 13.0497 53.5407 13.1042C53.6042 13.1495 53.6314 13.2176 53.6223 13.3083C53.6133 13.4444 53.5407 13.6123 53.4046 13.8119C53.2685 14.0024 53.0734 14.1929 52.8194 14.3835C52.5653 14.574 52.2568 14.7328 51.8939 14.8598C51.531 14.9778 51.1136 15.0367 50.6418 15.0367ZM48.7909 10.845H52.52V10.8041C52.52 10.3958 52.4428 10.0329 52.2886 9.71535C52.1434 9.39779 51.9302 9.14827 51.6489 8.96681C51.3677 8.77628 51.032 8.68101 50.6418 8.68101C50.2517 8.68101 49.916 8.77628 49.6347 8.96681C49.3625 9.14827 49.1538 9.39779 49.0087 9.71535C48.8635 10.0329 48.7909 10.3958 48.7909 10.8041V10.845Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M39.2505 16.4017C39.1598 16.4017 39.0827 16.37 39.0192 16.3065C38.9647 16.252 38.9375 16.1795 38.9375 16.0887V14.1289C38.9375 14.0382 38.9647 13.9656 39.0192 13.9112C39.0827 13.8477 39.1598 13.8159 39.2505 13.8159H39.3186C39.5635 13.8068 39.7722 13.6707 39.9446 13.4076C40.117 13.1354 40.2486 12.7135 40.3393 12.1419C40.43 11.5612 40.4754 10.8082 40.4754 9.8827V8.14066C40.4754 8.04993 40.5026 7.97734 40.5571 7.92291C40.6206 7.85939 40.6977 7.82764 40.7884 7.82764H45.1299C45.2206 7.82764 45.2932 7.85939 45.3477 7.92291C45.4112 7.97734 45.4429 8.04993 45.4429 8.14066V13.7887H46.0826C46.1824 13.7887 46.2595 13.8204 46.314 13.884C46.3684 13.9384 46.3956 14.011 46.3956 14.1017V16.0887C46.3956 16.1795 46.3684 16.252 46.314 16.3065C46.2595 16.37 46.1824 16.4017 46.0826 16.4017H45.4429C45.3522 16.4017 45.2751 16.37 45.2116 16.3065C45.1571 16.252 45.1299 16.1795 45.1299 16.0887V14.9047H40.2032V16.0887C40.2032 16.1795 40.1714 16.252 40.1079 16.3065C40.0535 16.37 39.9809 16.4017 39.8902 16.4017H39.2505ZM40.9381 13.8159L44.1772 13.7887V8.91641H41.7139V10.0324C41.7139 10.9942 41.6458 11.7835 41.5097 12.4005C41.3736 13.0084 41.1831 13.4802 40.9381 13.8159Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          d: "M34.2034 15.0426C33.3686 15.0426 32.6745 14.8884 32.1211 14.5799C31.5767 14.2714 31.1639 13.8404 30.8826 13.287C30.6013 12.7335 30.4471 12.0893 30.4199 11.3544C30.4108 10.9824 30.4062 10.5832 30.4062 10.1568C30.4062 9.73032 30.4108 9.32203 30.4199 8.93188C30.4471 8.19696 30.6013 7.55276 30.8826 6.9993C31.1639 6.44584 31.5767 6.01487 32.1211 5.70638C32.6745 5.3979 33.3686 5.24365 34.2034 5.24365C34.8294 5.24365 35.3783 5.32985 35.8501 5.50224C36.3219 5.67463 36.7121 5.90599 37.0206 6.19633C37.3381 6.48667 37.5786 6.8133 37.7419 7.17623C37.9052 7.53008 37.9959 7.89754 38.0141 8.27862C38.0231 8.36027 37.9959 8.42832 37.9324 8.48276C37.878 8.5372 37.8099 8.56442 37.7283 8.56442H36.9797C36.8981 8.56442 36.8255 8.54174 36.762 8.49637C36.7075 8.45101 36.6667 8.36935 36.6395 8.2514C36.4852 7.54369 36.1949 7.05828 35.7685 6.79516C35.3511 6.53204 34.8249 6.40048 34.1897 6.40048C33.4639 6.40048 32.8878 6.60916 32.4613 7.02652C32.0349 7.43481 31.8035 8.09262 31.7672 8.99993C31.74 9.74393 31.74 10.5061 31.7672 11.2864C31.8035 12.1937 32.0349 12.856 32.4613 13.2734C32.8878 13.6817 33.4639 13.8858 34.1897 13.8858C34.8249 13.8858 35.3511 13.7543 35.7685 13.4911C36.1949 13.228 36.4852 12.7426 36.6395 12.0349C36.6667 11.9169 36.7075 11.8353 36.762 11.7899C36.8255 11.7446 36.8981 11.7219 36.9797 11.7219H37.7283C37.8099 11.7219 37.878 11.7491 37.9324 11.8035C37.9959 11.858 38.0231 11.926 38.0141 12.0077C37.9959 12.3887 37.9052 12.7607 37.7419 13.1237C37.5786 13.4775 37.3381 13.7996 37.0206 14.09C36.7121 14.3803 36.3219 14.6117 35.8501 14.7841C35.3783 14.9564 34.8294 15.0426 34.2034 15.0426Z",
          fill: "currentColor",
        }),
        f.jsx("path", {
          fillRule: "evenodd",
          clipRule: "evenodd",
          d: "M8.54763 0.0219046C6.0113 -0.271892 4.26146 2.45258 2.63386 4.42198C1.20548 6.15032 0.14193 8.10248 0.0183964 10.3423C-0.113033 12.7252 0.319225 15.2068 1.94263 16.9545C3.61482 18.7547 6.1197 19.8922 8.54763 19.5244C10.774 19.1872 11.7591 16.7423 13.4166 15.2166C15.2164 13.56 18.5695 12.7894 18.523 10.3423C18.4764 7.89135 14.9376 7.41159 13.2348 5.64994C11.4711 3.8252 11.0672 0.313757 8.54763 0.0219046Z",
          fill: "#7E2AEA",
        }),
        f.jsx("circle", { cx: "14.8605", cy: "18.5983", r: "1.39953", fill: "#7E2AEA" }),
        f.jsx("circle", { cx: "13.4628", cy: "3.06831", r: "0.533154", fill: "#7E2AEA" }),
        f.jsx("path", {
          d: "M21.9866 9.76883C21.8311 8.25747 21.1201 6.85765 19.9913 5.84071C18.8625 4.82376 17.3963 4.26212 15.877 4.26466C15.6613 4.26475 15.4457 4.27604 15.2312 4.29846C13.7205 4.45709 12.3221 5.16948 11.3056 6.29824C10.2891 7.42699 9.72661 8.89216 9.72656 10.4111V10.4111V19.1918H12.3608V15.46C13.3907 16.1766 14.6158 16.5597 15.8704 16.5576C16.0861 16.5575 16.3017 16.5463 16.5162 16.5238C17.319 16.4394 18.0973 16.1978 18.8066 15.8126C19.516 15.4275 20.1426 14.9064 20.6505 14.2791C21.1585 13.6518 21.538 12.9306 21.7672 12.1566C21.9964 11.3827 22.071 10.5712 21.9866 9.76839V9.76883ZM18.6034 12.6226C18.314 12.982 17.9562 13.2805 17.5507 13.5007C17.1452 13.7209 16.7 13.8585 16.241 13.9054C16.1179 13.9182 15.9942 13.9246 15.8704 13.9247C15.0738 13.924 14.301 13.6525 13.679 13.1547C13.057 12.6569 12.6228 11.9624 12.4475 11.1853C12.2722 10.4082 12.3663 9.59455 12.7143 8.87796C13.0624 8.16136 13.6437 7.58437 14.3629 7.2417C15.0821 6.89903 15.8964 6.81104 16.6722 6.99216C17.448 7.17329 18.1391 7.61277 18.6323 8.23848C19.1254 8.86418 19.3911 9.63893 19.3858 10.4356C19.3806 11.2322 19.1047 12.0034 18.6034 12.6226Z",
          fill: "currentColor",
        }),
      ],
    }),
  $6 = window.location.pathname.includes("/377c7570-1bee-4320-ac1e-d731b6223ce8"),
  fX = ({ currentQuestion: e, onShowResult: t }) => {
    var j;
    const n = Re(),
      { settings: r, questions: o, quizId: i, show_badge: s, preview: a } = dt(),
      [l, u] = b.useState(!1),
      [c, d] = b.useState(""),
      [p, h] = b.useState(""),
      [m, v] = b.useState(""),
      [C, y] = b.useState(""),
      [g, x] = b.useState(""),
      [w, k] = b.useState(window.innerHeight),
      M = b.useRef(!0),
      [T, P] = b.useState(!1),
      A = pt() < 850,
      D = pt() < 1e3,
      R = bc(r.cfg.vkMetricsNumber),
      L = Cc(r.cfg.yandexMetricsNumber);
    if (
      (b.useEffect(() => {
        function _() {
          k(window.innerHeight);
        }
        return (
          window.addEventListener("resize", _),
          () => {
            window.removeEventListener("resize", _);
          }
        );
      }, []),
      !(e.type === "result"
        ? e
        : o.find((_) =>
            r != null && r.cfg.haveRoot
              ? _.type === "result" && _.content.rule.parentId === e.content.id
              : _.type === "result" && _.content.rule.parentId === "line"
          )))
    )
      throw new Error("Result question not found");
    const O = async () => {
        const _ = r.cfg.formContact.fields || r.cfg.formContact,
          I = {};
        if (
          (c.length > 0 && (I.name = c),
          p.length > 0 && (I.email = p),
          m.length > 0 && (I.phone = m),
          g.length > 0 && (I.address = g),
          C.length > 0 && (I.customs = { [_.text.text || "Surname"]: C }),
          Object.keys(I).length > 0)
        )
          try {
            await Yy({ questionId: e.id, body: I, qid: i, preview: a });
            const $ = JSON.parse(localStorage.getItem("sessions") || "{}");
            localStorage.setItem("sessions", JSON.stringify({ ...$, [i]: new Date().getTime() }));
          } catch {
            eo("The answer was not counted");
          }
      },
      E = r.cfg.formContact.fields || r.cfg.formContact;
    for (const _ in E) E[_].used;
    async function B() {
      const _ = r.cfg.formContact.fields;
      if (!$6 && _.email.used !== dX.test(p)) return eo("Incorrect email entered");
      if (M.current) {
        if (c.length === 0 && p.length === 0 && m.length === 0 && C.length === 0 && g.length === 0)
          return eo("Please fill in the fields");
        P(!0);
        try {
          await O(), (M.current = !1);
          const I = JSON.parse(localStorage.getItem("sessions") || "{}");
          (I[i] = Date.now()),
            localStorage.setItem("sessions", JSON.stringify(I)),
            R.contactsFormFilled(),
            L.contactsFormFilled(),
            c.length !== 0 && (R.contactsFormField("name"), L.contactsFormField("name")),
            p.length !== 0 && (R.contactsFormField("email"), L.contactsFormField("email")),
            m.length !== 0 && (R.contactsFormField("phone"), L.contactsFormField("phone")),
            C.length !== 0 && (R.contactsFormField("text"), L.contactsFormField("text")),
            g.length !== 0 && (R.contactsFormField("address"), L.contactsFormField("address"));
        } catch {
          eo("please try again later");
        }
        r.cfg.resultInfo.showResultForm === "after" && t();
      }
      P(!1);
    }
    return (
      b.useEffect(() => {
        R.contactsFormOpened(), L.contactsFormOpened();
      }, []),
      f.jsx(H, {
        sx: {
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          backgroundColor: n.palette.background.default,
          height: w > 500 ? "100%" : "auto",
          overflow: "auto",
          "&::-webkit-scrollbar": { width: "0", display: "none", msOverflowStyle: "none" },
          scrollbarWidth: "none",
          msOverflowStyle: "none",
          backgroundPosition: "center",
          backgroundSize: "cover",
          backgroundImage:
            r.cfg.design && !A
              ? Be[r.cfg.theme].isLight
                ? `url(${Vr[r.cfg.theme]})`
                : `linear-gradient(90deg, rgba(39, 38, 38, 0.95) 7.66%, rgba(42, 42, 46, 0.85) 42.12%, rgba(51, 54, 71, 0.4) 100%), url(${Vr[r.cfg.theme]})`
              : null,
        },
        children: f.jsxs(H, {
          sx: {
            width: A ? (A ? void 0 : "530px") : "100%",
            borderRadius: "4px",
            height: A ? "100%" : "auto",
            minHeight: "100%",
            display: "flex",
            flexDirection: A ? "column" : "row",
            background: r.cfg.design && !A ? void 0 : n.palette.background.default,
          },
          children: [
            f.jsx(cX, { settings: r }),
            f.jsxs(H, {
              sx: {
                flexGrow: A ? 1 : 0,
                display: "flex",
                alignItems: "center",
                justifyContent: "space-between",
                flexDirection: "column",
                backgroundColor: n.palette.background.default,
                height: "auto",
              },
              children: [
                f.jsxs(H, {
                  sx: {
                    display: "flex",
                    alignItems: A ? void 0 : "center",
                    justifyContent: "center",
                    flexDirection: "column",
                    p: A ? "0 20px" : D ? "105px 40px 0 60px" : "105px 60px 0 60px",
                    margin: A ? "0" : "auto 0",
                  },
                  children: [
                    f.jsx(H, {
                      sx: { display: "flex", flexDirection: "column", mt: A ? "10px" : "20px", mb: "20px" },
                      children: f.jsx(uX, {
                        name: c,
                        setName: d,
                        email: p,
                        setEmail: h,
                        phone: m,
                        setPhone: v,
                        text: C,
                        setText: y,
                        adress: g,
                        setAdress: x,
                        crutch: { disableEmail: $6 },
                      }),
                    }),
                    f.jsxs(H, {
                      sx: { display: "flex", width: A ? "300px" : "390px" },
                      children: [
                        f.jsx(vK, {
                          label: "",
                          handleChange: ({ target: _ }) => {
                            u(_.checked);
                          },
                          checked: l,
                          colorIcon: n.palette.primary.main,
                          sx: { marginRight: "0" },
                        }),
                        f.jsxs(xe, {
                          sx: { color: n.palette.text.primary, lineHeight: "18.96px" },
                          fontSize: "16px",
                          children: [
                            "С ",
                            f.jsxs(rs, {
                              href: "https://shub.pena.digital/ppdd",
                              target: "_blank",
                              children: ["Regulation on the processing of personal data", " "],
                            }),
                            " и ",
                            f.jsxs(rs, {
                              href: "https://shub.pena.digital/docs/privacy",
                              target: "_blank",
                              children: [" ", "Privacy Policy", " "],
                            }),
                            " agree",
                          ],
                        }),
                      ],
                    }),
                    f.jsx(Vn, {
                      disabled: !(l && !T),
                      variant: "contained",
                      onClick: B,
                      sx: {
                        border: `1px solid ${n.palette.primary.main}`,
                        margin: A ? "auto" : void 0,
                        mt: "20px",
                        p: "10px 20px",
                        "&:disabled": { border: "1px solid #9A9AAF", color: "#9A9AAF" },
                      },
                      children: ((j = r.cfg.formContact) == null ? void 0 : j.button) || "Get results",
                    }),
                  ],
                }),
                s &&
                  f.jsx(H, {
                    component: rs,
                    target: "_blank",
                    href: `https://${tc ? "" : "s"}quiz.pena.digital/answer/v1.0.0/logo?q=${i}`,
                    sx: {
                      display: "flex",
                      alignItems: "center",
                      mt: "55px",
                      mb: A ? "30px" : D ? "40px" : "50px",
                      gap: "10px",
                      textDecoration: "none",
                      margitTop: "auto",
                    },
                    children: f.jsx(H5, {
                      style: { fontSize: "20px", color: Be[r.cfg.theme].isLight ? "#151515" : "#FFFFFF" },
                    }),
                  }),
              ],
            }),
          ],
        }),
      })
    );
  };
function B6(e) {
  var n, r;
  if (!e) return [];
  const t = [];
  return (
    e.type === "images" &&
      e.content.variants.forEach((o) => {
        o.extendedText.startsWith("https://") && t.push(o.extendedText);
      }),
    e.type === "varimg" &&
      e.content.variants.forEach((o) => {
        o.extendedText.startsWith("https://") && t.push(o.extendedText);
      }),
    e.type === "page" && (n = e.content.back) != null && n.startsWith("https://") && t.push(e.content.back),
    e.type === "result" && (r = e.content.back) != null && r.startsWith("https://") && t.push(e.content.back),
    t
  );
}
const pX = (e, t = !1) => {
    b.useEffect(() => {
      if (e && typeof e == "number" && !Number.isNaN(e) && !t) {
        const n = document.createElement("script");
        (n.type = "text/javascript"),
          (n.innerHTML = `
        var _tmr = window._tmr || (window._tmr = []);
        _tmr.push({id: "${e}", type: "pageView", start: (new Date()).getTime()});
        (function (d, w, id) {
          if (d.getElementById(id)) return;
          var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
          ts.src = "https://top-fwz1.mail.ru/js/code.js";
          var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
          if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
        })(document, window, "tmr-code");
      `),
          document.body.appendChild(n);
        const r = document.createElement("noscript");
        (r.innerHTML = `<div><img src="https://top-fwz1.mail.ru/counter?id=${e};js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div>`),
          document.body.appendChild(r);
      }
    }, [e]);
  },
  hX = (e, t = !1) => {
    b.useEffect(() => {
      if (e && typeof e == "number" && !Number.isNaN(e) && !t) {
        const n = document.createElement("script");
        (n.type = "text/javascript"),
          (n.innerHTML = `
        (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
        m[i].l=1*new Date();
        for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
        k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
        (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

        ym(${e}, "init", {
          clickmap:true,
          trackLinks:true,
          accurateTrackBounce:true,
          webvisor:true
        });
      `),
          document.body.appendChild(n);
        const r = document.createElement("noscript");
        (r.innerHTML = `<div><img src="https://mc.yandex.ru/watch/${e}" style="position:absolute; left:-9999px;" alt="" /></div>`),
          document.body.appendChild(r);
      }
    }, [e]);
  };
function Ac(e) {
  throw new Error(`Shouldn't reach here: ${e}`);
}
function mX(e, t, n, r) {
  var o, i, s, a, l, u, c, d, p, h, m, v;
  if (!n) return xn({ questionId: t.id, body: "", qid: e });
  switch (t.type) {
    case "date": {
      let C = "";
      if (t.content.isRange) {
        if (!Array.isArray(n.answer)) throw new Error("Cannot send answer in range question");
        let y = Number(n.answer[0]),
          g = Number(n.answer[1]);
        y !== 0 &&
          g !== 0 &&
          y !== Math.min(Number(n.answer[0]), Number(n.answer[1])) &&
          ((y = Math.min(Number(n.answer[0]), Number(n.answer[1]))),
          (g = Math.max(Number(n.answer[0]), Number(n.answer[1])))),
          (C = `${y ? re(y).format("YYYY.MM.DD") : "_"} - ${g ? re(g).format("YYYY.MM.DD") : "_"}`);
      } else {
        if (!re.isMoment(n.answer)) throw new Error("Cannot send answer in date question");
        C = re(n.answer).format("YYYY.MM.DD");
      }
      return xn({ questionId: t.id, body: C, qid: e });
    }
    case "emoji": {
      if (t.content.multi) {
        const y = n.answer,
          g = Array.isArray(y)
            ? ((o = r[r.findIndex((k) => y.some((M) => M === k.id))]) == null ? void 0 : o.variant) || ""
            : ((i = r[r.findIndex((k) => k.id === n.answer)]) == null ? void 0 : i.variant) || "";
        if (re.isMoment(y)) throw new Error("Answer is Moment in Variant question");
        const x = t.content.variants.filter((k) => y.includes(k.id));
        let w = "";
        return (
          x.forEach((k) => {
            k.isOwn
              ? t.content.own &&
                x.some((M) => M.isOwn) &&
                (w += `\`${k.extendedText} ${(g == null ? void 0 : g.answer) ?? ""}\`,`)
              : (w += `\`${k.extendedText} ${k.answer ?? ""}\`,`);
          }),
          (w = w.slice(0, -1)),
          xn({ questionId: t.id, body: w, qid: e })
        );
      }
      const C = t.content.variants.find((y) => y.id === n.answer);
      if (!C) throw new Error(`Cannot find variant with id ${n.answer} in question ${t.id}`);
      return xn({ questionId: t.id, body: C.extendedText + " " + C.answer, qid: e });
    }
    case "file":
      return;
    case "images": {
      if (t.content.multi) {
        const g = n.answer,
          x = Array.isArray(g)
            ? ((a = (s = r[r.findIndex((M) => g.some((T) => T === M.id))]) == null ? void 0 : s.variant) == null
                ? void 0
                : a.answer) || ""
            : ((u = (l = r[r.findIndex((M) => M.id === n.answer)]) == null ? void 0 : l.variant) == null
                ? void 0
                : u.answer) || "";
        if (re.isMoment(g)) throw new Error("Answer is Moment in Variant question");
        const w = t.content.variants.filter((M) => g.includes(M.id));
        let k = "";
        return (
          w.forEach((M) => {
            if (!M.isOwn || (M.isOwn && t.content.own)) {
              const T = { Image: M.extendedText, Description: M.isOwn ? x : M.answer };
              k += `\`${JSON.stringify(T)}\`,`;
            }
          }),
          (k = k.slice(0, -1)),
          xn({ questionId: t.id, body: k, qid: e })
        );
      }
      const C = t.content.variants.find((g) => g.id === n.answer);
      if (!C) throw new Error(`Cannot find variant with id ${n.answer} in question ${t.id}`);
      const y = { Image: C.extendedText, Description: C.answer };
      if (!y) throw new Error(`Body of answer in question ${t.id} is undefined`);
      return xn({ questionId: t.id, body: JSON.stringify(y), qid: e });
    }
    case "number": {
      if (typeof n.answer != "string") throw new Error("Cannot send answer in select question");
      return xn({ questionId: t.id, body: n.answer, qid: e });
    }
    case "page":
      return;
    case "rating": {
      if (typeof n.answer != "string") throw new Error("Cannot send answer in select question");
      return xn({ questionId: t.id, body: String(n.answer) + " из " + t.content.steps, qid: e });
    }
    case "select": {
      if (typeof n.answer != "string") throw new Error("Cannot send answer in select question");
      const C = t.content.variants[Number(n.answer)];
      if (!C) throw new Error(`Cannot find variant with id ${n.answer} in question ${t.id}`);
      return xn({ questionId: t.id, body: C.answer, qid: e });
    }
    case "text": {
      if (re.isMoment(n.answer)) throw new Error("Cannot send Moment in text question");
      return xn({ questionId: t.id, body: n.answer, qid: e });
    }
    case "variant": {
      if (t.content.multi) {
        const y = n.answer;
        if (re.isMoment(y)) throw new Error("Answer is Moment in Variant question");
        const g = Array.isArray(y)
            ? ((d = (c = r[r.findIndex((k) => y.some((M) => M === k.id))]) == null ? void 0 : c.variant) == null
                ? void 0
                : d.answer) || ""
            : ((h = (p = r[r.findIndex((k) => k.id === n.answer)]) == null ? void 0 : p.variant) == null
                ? void 0
                : h.answer) || "",
          x = t.content.variants.filter((k) => y.includes(k.id));
        let w = "";
        return (
          x.forEach((k) => {
            k.isOwn || (w += `\`${k.answer}\`,`);
          }),
          t.content.own && x.some((k) => k.isOwn) && (w += `\`${g}\`,`),
          (w = w.slice(0, -1)),
          xn({ questionId: t.id, body: w, qid: e })
        );
      }
      const C = t.content.variants.find((y) => y.id === n.answer);
      if (!C) throw new Error(`Cannot find variant with id ${n.answer} in question ${t.id}`);
      return xn({ questionId: t.id, body: C.answer, qid: e });
    }
    case "varimg": {
      const C = t.content.variants.find((x) => x.id === n.answer),
        y =
          ((v = (m = r[r.findIndex((x) => x.id === n.answer)]) == null ? void 0 : m.variant) == null
            ? void 0
            : v.answer) || "";
      if (!C) throw new Error(`Cannot find variant with id ${n.answer} in question ${t.id}`);
      const g = { Image: C.extendedText, Description: t.content.own ? y : C.answer };
      if (!g) throw new Error(`Body of answer in question ${t.id} is undefined`);
      return xn({ questionId: t.id, body: `\`${JSON.stringify(g)}\``, qid: e });
    }
    default:
      Ac(t);
  }
}
const j6 = (e) =>
  !(
    (e.title.length > 0 && e.title !== " ") ||
    (e.description.length > 0 && e.description !== " ") ||
    (e.content.back !== null && e.content.back.length > 0 && e.content.back !== " ") ||
    (e.content.originalBack && e.content.originalBack.length > 0 && e.content.originalBack !== " ") ||
    (e.content.innerName.length > 0 && e.content.innerName !== " ") ||
    (e.content.text.length > 0 && e.content.text !== " ") ||
    (e.content.video.length > 0 && e.content.video !== " ") ||
    (e.content.hint.text.length > 0 && e.content.hint.text !== " ")
  );
function gX() {
  const { settings: e, questions: t } = dt(),
    n = b.useMemo(() => [...t].sort((D, R) => D.page - R.page), [t]),
    [r, o] = b.useState(p),
    i = Ne((D) => D.answers),
    s = Ne((D) => D.pointsSum),
    a = Ne((D) => D.setCurrentQuizStep),
    l = bc(e.cfg.vkMetricsNumber),
    u = Cc(e.cfg.yandexMetricsNumber),
    c = n.find((D) => D.id === r) ?? n[0],
    d = c && n.every(({ content: D }) => D.rule.parentId !== "root") ? n.indexOf(c) : null;
  function p() {
    if (n.length === 0) return null;
    if (e.cfg.haveRoot) {
      const D = n.find((R) => R.id === e.cfg.haveRoot || R.content.id === e.cfg.haveRoot);
      return D ? D.id : null;
    }
    return n[0].id;
  }
  const h = b.useCallback(() => n.find((D) => D.type === "result" && D.content.rule.parentId === "line"), [n]),
    m = b.useCallback(() => {
      var R;
      const D = i.find(({ questionId: L }) => L === c.id);
      if (D && !re.isMoment(D.answer)) {
        const L = Array.isArray(D.answer) ? D.answer : [D.answer];
        for (const F of c.content.rule.main) if (L.some((O) => F.rules[0].answers.includes(O))) return F.next;
      }
      if (!c.required) {
        const L = c.content.rule.default;
        if (L.length > 1 && L !== " ") return L;
        if (["date", "page", "text", "number"].includes(c.type) && c.content.rule.children.length === 1)
          return c.content.rule.children[0];
      }
      return (R = n.find((L) => L.type === "result" && L.content.rule.parentId === c.content.id)) == null
        ? void 0
        : R.id;
    }, [i, c, n]),
    v = b.useMemo(() => (e.cfg.score ? h() : m()), [m, h, e.cfg.score]),
    C =
      d !== null
        ? n[d - 1]
        : n.find(
            (D) =>
              D.id === (c == null ? void 0 : c.content.rule.parentId) ||
              D.content.id === (c == null ? void 0 : c.content.rule.parentId)
          ),
    y = b.useCallback(() => {
      const D = n.filter(
          (F) => F.type === "result" && F.content.rule.minScore !== void 0 && F.content.rule.minScore <= s
        ),
        R = D.map((F) => (F.type === "result" && F.content.rule.minScore !== void 0 ? F.content.rule.minScore : 0)),
        L = Math.max(...R);
      return D[R.indexOf(L)];
    }, [s, n]),
    g = b.useMemo(() => {
      let D;
      return (
        e.cfg.score
          ? d !== null && ((D = n[d + 1]), ((D == null ? void 0 : D.type) === "result" || D == null) && (D = y()))
          : d !== null
            ? (D = n[d + 1] ?? n.find((R) => R.type === "result" && R.content.rule.parentId === "line"))
            : (D = n.find((R) => R.id === v || R.content.id === v)),
        D
      );
    }, [v, y, d, n, e.cfg.score]),
    x = b.useCallback(() => {
      if ((g == null ? void 0 : g.type) !== "result") throw new Error("Current question is not result");
      o(g.id), e.cfg.showfc !== !1 && (e.cfg.resultInfo.showResultForm === "after" || j6(g)) && a("contactform");
    }, [g, a, e.cfg.resultInfo.showResultForm, e.cfg.showfc]),
    w = b.useCallback(() => {
      if ((c == null ? void 0 : c.type) !== "result") throw new Error("Current question is not result");
      if (j6(c)) {
        eo("Данные отправлены");
        return;
      }
      a("question");
    }, [c, a]),
    k = b.useCallback(() => {
      if (!C) throw new Error("Previous question not found");
      o(C.id);
    }, [C]),
    M = b.useCallback(() => {
      if (!g) throw new Error("Next question not found");
      if ((l.questionPassed(c.id), u.questionPassed(c.id), g.type === "result")) return x();
      o(g.id);
    }, [c.id, g, x, l, u]),
    T = b.useCallback(
      (D) => {
        const R = n.find((L) => L.id === D);
        R && o(R.id);
      },
      [n]
    ),
    P = !!C,
    A = b.useMemo(() => {
      const D = i.some(({ questionId: R }) => R === c.id);
      return "required" in c.content && c.content.required ? D : !!g;
    }, [i, c, g]);
  return (
    b.useDebugValue({ linearQuestionIndex: d, currentQuestion: c, prevQuestion: C, nextQuestion: g }),
    {
      currentQuestion: c,
      currentQuestionStepNumber: d === null ? null : d + 1,
      nextQuestion: g,
      isNextButtonEnabled: A,
      isPreviousButtonEnabled: P,
      moveToPrevQuestion: k,
      moveToNextQuestion: M,
      showResultAfterContactForm: w,
      setQuestion: T,
    }
  );
}
var yX = typeof Element < "u",
  vX = typeof Map == "function",
  xX = typeof Set == "function",
  bX = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function Qd(e, t) {
  if (e === t) return !0;
  if (e && t && typeof e == "object" && typeof t == "object") {
    if (e.constructor !== t.constructor) return !1;
    var n, r, o;
    if (Array.isArray(e)) {
      if (((n = e.length), n != t.length)) return !1;
      for (r = n; r-- !== 0; ) if (!Qd(e[r], t[r])) return !1;
      return !0;
    }
    var i;
    if (vX && e instanceof Map && t instanceof Map) {
      if (e.size !== t.size) return !1;
      for (i = e.entries(); !(r = i.next()).done; ) if (!t.has(r.value[0])) return !1;
      for (i = e.entries(); !(r = i.next()).done; ) if (!Qd(r.value[1], t.get(r.value[0]))) return !1;
      return !0;
    }
    if (xX && e instanceof Set && t instanceof Set) {
      if (e.size !== t.size) return !1;
      for (i = e.entries(); !(r = i.next()).done; ) if (!t.has(r.value[0])) return !1;
      return !0;
    }
    if (bX && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
      if (((n = e.length), n != t.length)) return !1;
      for (r = n; r-- !== 0; ) if (e[r] !== t[r]) return !1;
      return !0;
    }
    if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
    if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function")
      return e.valueOf() === t.valueOf();
    if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function")
      return e.toString() === t.toString();
    if (((o = Object.keys(e)), (n = o.length), n !== Object.keys(t).length)) return !1;
    for (r = n; r-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, o[r])) return !1;
    if (yX && e instanceof Element) return !1;
    for (r = n; r-- !== 0; )
      if (!((o[r] === "_owner" || o[r] === "__v" || o[r] === "__o") && e.$$typeof) && !Qd(e[o[r]], t[o[r]])) return !1;
    return !0;
  }
  return e !== e && t !== t;
}
var CX = function (t, n) {
  try {
    return Qd(t, n);
  } catch (r) {
    if ((r.message || "").match(/stack|recursion/i))
      return console.warn("react-fast-compare cannot handle circular refs"), !1;
    throw r;
  }
};
const wX = Ti(CX);
var SX = function (e, t, n, r, o, i, s, a) {
    if (!e) {
      var l;
      if (t === void 0)
        l = new Error(
          "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
        );
      else {
        var u = [n, r, o, i, s, a],
          c = 0;
        (l = new Error(
          t.replace(/%s/g, function () {
            return u[c++];
          })
        )),
          (l.name = "Invariant Violation");
      }
      throw ((l.framesToPop = 1), l);
    }
  },
  kX = SX;
const V6 = Ti(kX);
var TX = function (t, n, r, o) {
  var i = r ? r.call(o, t, n) : void 0;
  if (i !== void 0) return !!i;
  if (t === n) return !0;
  if (typeof t != "object" || !t || typeof n != "object" || !n) return !1;
  var s = Object.keys(t),
    a = Object.keys(n);
  if (s.length !== a.length) return !1;
  for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < s.length; u++) {
    var c = s[u];
    if (!l(c)) return !1;
    var d = t[c],
      p = n[c];
    if (((i = r ? r.call(o, d, p, c) : void 0), i === !1 || (i === void 0 && d !== p))) return !1;
  }
  return !0;
};
const MX = Ti(TX);
var LC = ((e) => (
    (e.BASE = "base"),
    (e.BODY = "body"),
    (e.HEAD = "head"),
    (e.HTML = "html"),
    (e.LINK = "link"),
    (e.META = "meta"),
    (e.NOSCRIPT = "noscript"),
    (e.SCRIPT = "script"),
    (e.STYLE = "style"),
    (e.TITLE = "title"),
    (e.FRAGMENT = "Symbol(react.fragment)"),
    e
  ))(LC || {}),
  mh = {
    link: { rel: ["amphtml", "canonical", "alternate"] },
    script: { type: ["application/ld+json"] },
    meta: {
      charset: "",
      name: ["generator", "robots", "description"],
      property: [
        "og:type",
        "og:title",
        "og:url",
        "og:image",
        "og:image:alt",
        "og:description",
        "twitter:url",
        "twitter:title",
        "twitter:description",
        "twitter:image",
        "twitter:image:alt",
        "twitter:card",
        "twitter:site",
      ],
    },
  },
  H6 = Object.values(LC),
  z5 = {
    accesskey: "accessKey",
    charset: "charSet",
    class: "className",
    contenteditable: "contentEditable",
    contextmenu: "contextMenu",
    "http-equiv": "httpEquiv",
    itemprop: "itemProp",
    tabindex: "tabIndex",
  },
  EX = Object.entries(z5).reduce((e, [t, n]) => ((e[n] = t), e), {}),
  Ir = "data-rh",
  ka = {
    DEFAULT_TITLE: "defaultTitle",
    DEFER: "defer",
    ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
    ON_CHANGE_CLIENT_STATE: "onChangeClientState",
    TITLE_TEMPLATE: "titleTemplate",
    PRIORITIZE_SEO_TAGS: "prioritizeSeoTags",
  },
  Ta = (e, t) => {
    for (let n = e.length - 1; n >= 0; n -= 1) {
      const r = e[n];
      if (Object.prototype.hasOwnProperty.call(r, t)) return r[t];
    }
    return null;
  },
  PX = (e) => {
    let t = Ta(e, "title");
    const n = Ta(e, ka.TITLE_TEMPLATE);
    if ((Array.isArray(t) && (t = t.join("")), n && t)) return n.replace(/%s/g, () => t);
    const r = Ta(e, ka.DEFAULT_TITLE);
    return t || r || void 0;
  },
  AX = (e) => Ta(e, ka.ON_CHANGE_CLIENT_STATE) || (() => {}),
  gh = (e, t) =>
    t
      .filter((n) => typeof n[e] < "u")
      .map((n) => n[e])
      .reduce((n, r) => ({ ...n, ...r }), {}),
  _X = (e, t) =>
    t
      .filter((n) => typeof n.base < "u")
      .map((n) => n.base)
      .reverse()
      .reduce((n, r) => {
        if (!n.length) {
          const o = Object.keys(r);
          for (let i = 0; i < o.length; i += 1) {
            const a = o[i].toLowerCase();
            if (e.indexOf(a) !== -1 && r[a]) return n.concat(r);
          }
        }
        return n;
      }, []),
  DX = (e) => console && typeof console.warn == "function" && console.warn(e),
  jl = (e, t, n) => {
    const r = {};
    return n
      .filter((o) =>
        Array.isArray(o[e])
          ? !0
          : (typeof o[e] < "u" && DX(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`), !1)
      )
      .map((o) => o[e])
      .reverse()
      .reduce((o, i) => {
        const s = {};
        i.filter((l) => {
          let u;
          const c = Object.keys(l);
          for (let p = 0; p < c.length; p += 1) {
            const h = c[p],
              m = h.toLowerCase();
            t.indexOf(m) !== -1 &&
              !(u === "rel" && l[u].toLowerCase() === "canonical") &&
              !(m === "rel" && l[m].toLowerCase() === "stylesheet") &&
              (u = m),
              t.indexOf(h) !== -1 && (h === "innerHTML" || h === "cssText" || h === "itemprop") && (u = h);
          }
          if (!u || !l[u]) return !1;
          const d = l[u].toLowerCase();
          return r[u] || (r[u] = {}), s[u] || (s[u] = {}), r[u][d] ? !1 : ((s[u][d] = !0), !0);
        })
          .reverse()
          .forEach((l) => o.push(l));
        const a = Object.keys(s);
        for (let l = 0; l < a.length; l += 1) {
          const u = a[l],
            c = { ...r[u], ...s[u] };
          r[u] = c;
        }
        return o;
      }, [])
      .reverse();
  },
  RX = (e, t) => {
    if (Array.isArray(e) && e.length) {
      for (let n = 0; n < e.length; n += 1) if (e[n][t]) return !0;
    }
    return !1;
  },
  IX = (e) => ({
    baseTag: _X(["href"], e),
    bodyAttributes: gh("bodyAttributes", e),
    defer: Ta(e, ka.DEFER),
    encode: Ta(e, ka.ENCODE_SPECIAL_CHARACTERS),
    htmlAttributes: gh("htmlAttributes", e),
    linkTags: jl("link", ["rel", "href"], e),
    metaTags: jl("meta", ["name", "charset", "http-equiv", "property", "itemprop"], e),
    noscriptTags: jl("noscript", ["innerHTML"], e),
    onChangeClientState: AX(e),
    scriptTags: jl("script", ["src", "innerHTML"], e),
    styleTags: jl("style", ["cssText"], e),
    title: PX(e),
    titleAttributes: gh("titleAttributes", e),
    prioritizeSeoTags: RX(e, ka.PRIORITIZE_SEO_TAGS),
  }),
  NC = (e) => (Array.isArray(e) ? e.join("") : e),
  OX = (e, t) => {
    const n = Object.keys(e);
    for (let r = 0; r < n.length; r += 1) if (t[n[r]] && t[n[r]].includes(e[n[r]])) return !0;
    return !1;
  },
  yh = (e, t) =>
    Array.isArray(e)
      ? e.reduce((n, r) => (OX(r, t) ? n.priority.push(r) : n.default.push(r), n), { priority: [], default: [] })
      : { default: e, priority: [] },
  z6 = (e, t) => ({ ...e, [t]: void 0 }),
  FX = ["noscript", "script", "style"],
  a2 = (e, t = !0) =>
    t === !1
      ? String(e)
      : String(e)
          .replace(/&/g, "&amp;")
          .replace(/</g, "&lt;")
          .replace(/>/g, "&gt;")
          .replace(/"/g, "&quot;")
          .replace(/'/g, "&#x27;"),
  $C = (e) =>
    Object.keys(e).reduce((t, n) => {
      const r = typeof e[n] < "u" ? `${n}="${e[n]}"` : `${n}`;
      return t ? `${t} ${r}` : r;
    }, ""),
  LX = (e, t, n, r) => {
    const o = $C(n),
      i = NC(t);
    return o ? `<${e} ${Ir}="true" ${o}>${a2(i, r)}</${e}>` : `<${e} ${Ir}="true">${a2(i, r)}</${e}>`;
  },
  NX = (e, t, n = !0) =>
    t.reduce((r, o) => {
      const i = o,
        s = Object.keys(i)
          .filter((u) => !(u === "innerHTML" || u === "cssText"))
          .reduce((u, c) => {
            const d = typeof i[c] > "u" ? c : `${c}="${a2(i[c], n)}"`;
            return u ? `${u} ${d}` : d;
          }, ""),
        a = i.innerHTML || i.cssText || "",
        l = FX.indexOf(e) === -1;
      return `${r}<${e} ${Ir}="true" ${s}${l ? "/>" : `>${a}</${e}>`}`;
    }, ""),
  BC = (e, t = {}) =>
    Object.keys(e).reduce((n, r) => {
      const o = z5[r];
      return (n[o || r] = e[r]), n;
    }, t),
  $X = (e, t, n) => {
    const r = { key: t, [Ir]: !0 },
      o = BC(n, r);
    return [De.createElement("title", o, t)];
  },
  ef = (e, t) =>
    t.map((n, r) => {
      const o = { key: r, [Ir]: !0 };
      return (
        Object.keys(n).forEach((i) => {
          const a = z5[i] || i;
          if (a === "innerHTML" || a === "cssText") {
            const l = n.innerHTML || n.cssText;
            o.dangerouslySetInnerHTML = { __html: l };
          } else o[a] = n[i];
        }),
        De.createElement(e, o)
      );
    }),
  er = (e, t, n = !0) => {
    switch (e) {
      case "title":
        return {
          toComponent: () => $X(e, t.title, t.titleAttributes),
          toString: () => LX(e, t.title, t.titleAttributes, n),
        };
      case "bodyAttributes":
      case "htmlAttributes":
        return { toComponent: () => BC(t), toString: () => $C(t) };
      default:
        return { toComponent: () => ef(e, t), toString: () => NX(e, t, n) };
    }
  },
  BX = ({ metaTags: e, linkTags: t, scriptTags: n, encode: r }) => {
    const o = yh(e, mh.meta),
      i = yh(t, mh.link),
      s = yh(n, mh.script);
    return {
      priorityMethods: {
        toComponent: () => [...ef("meta", o.priority), ...ef("link", i.priority), ...ef("script", s.priority)],
        toString: () => `${er("meta", o.priority, r)} ${er("link", i.priority, r)} ${er("script", s.priority, r)}`,
      },
      metaTags: o.default,
      linkTags: i.default,
      scriptTags: s.default,
    };
  },
  jX = (e) => {
    const {
      baseTag: t,
      bodyAttributes: n,
      encode: r = !0,
      htmlAttributes: o,
      noscriptTags: i,
      styleTags: s,
      title: a = "",
      titleAttributes: l,
      prioritizeSeoTags: u,
    } = e;
    let { linkTags: c, metaTags: d, scriptTags: p } = e,
      h = { toComponent: () => {}, toString: () => "" };
    return (
      u && ({ priorityMethods: h, linkTags: c, metaTags: d, scriptTags: p } = BX(e)),
      {
        priority: h,
        base: er("base", t, r),
        bodyAttributes: er("bodyAttributes", n, r),
        htmlAttributes: er("htmlAttributes", o, r),
        link: er("link", c, r),
        meta: er("meta", d, r),
        noscript: er("noscript", i, r),
        script: er("script", p, r),
        style: er("style", s, r),
        title: er("title", { title: a, titleAttributes: l }, r),
      }
    );
  },
  l2 = jX,
  bd = [],
  jC = !!(typeof window < "u" && window.document && window.document.createElement),
  u2 = class {
    constructor(e, t) {
      Xt(this, "instances", []);
      Xt(this, "canUseDOM", jC);
      Xt(this, "context");
      Xt(this, "value", {
        setHelmet: (e) => {
          this.context.helmet = e;
        },
        helmetInstances: {
          get: () => (this.canUseDOM ? bd : this.instances),
          add: (e) => {
            (this.canUseDOM ? bd : this.instances).push(e);
          },
          remove: (e) => {
            const t = (this.canUseDOM ? bd : this.instances).indexOf(e);
            (this.canUseDOM ? bd : this.instances).splice(t, 1);
          },
        },
      });
      (this.context = e),
        (this.canUseDOM = t || !1),
        t ||
          (e.helmet = l2({
            baseTag: [],
            bodyAttributes: {},
            encodeSpecialCharacters: !0,
            htmlAttributes: {},
            linkTags: [],
            metaTags: [],
            noscriptTags: [],
            scriptTags: [],
            styleTags: [],
            title: "",
            titleAttributes: {},
          }));
    }
  },
  VX = {},
  VC = De.createContext(VX),
  Ma,
  HC =
    ((Ma = class extends b.Component {
      constructor(n) {
        super(n);
        Xt(this, "helmetData");
        this.helmetData = new u2(this.props.context || {}, Ma.canUseDOM);
      }
      render() {
        return De.createElement(VC.Provider, { value: this.helmetData.value }, this.props.children);
      }
    }),
    Xt(Ma, "canUseDOM", jC),
    Ma),
  Hs = (e, t) => {
    const n = document.head || document.querySelector("head"),
      r = n.querySelectorAll(`${e}[${Ir}]`),
      o = [].slice.call(r),
      i = [];
    let s;
    return (
      t &&
        t.length &&
        t.forEach((a) => {
          const l = document.createElement(e);
          for (const u in a)
            if (Object.prototype.hasOwnProperty.call(a, u))
              if (u === "innerHTML") l.innerHTML = a.innerHTML;
              else if (u === "cssText")
                l.styleSheet ? (l.styleSheet.cssText = a.cssText) : l.appendChild(document.createTextNode(a.cssText));
              else {
                const c = u,
                  d = typeof a[c] > "u" ? "" : a[c];
                l.setAttribute(u, d);
              }
          l.setAttribute(Ir, "true"), o.some((u, c) => ((s = c), l.isEqualNode(u))) ? o.splice(s, 1) : i.push(l);
        }),
      o.forEach((a) => {
        var l;
        return (l = a.parentNode) == null ? void 0 : l.removeChild(a);
      }),
      i.forEach((a) => n.appendChild(a)),
      { oldTags: o, newTags: i }
    );
  },
  c2 = (e, t) => {
    const n = document.getElementsByTagName(e)[0];
    if (!n) return;
    const r = n.getAttribute(Ir),
      o = r ? r.split(",") : [],
      i = [...o],
      s = Object.keys(t);
    for (const a of s) {
      const l = t[a] || "";
      n.getAttribute(a) !== l && n.setAttribute(a, l), o.indexOf(a) === -1 && o.push(a);
      const u = i.indexOf(a);
      u !== -1 && i.splice(u, 1);
    }
    for (let a = i.length - 1; a >= 0; a -= 1) n.removeAttribute(i[a]);
    o.length === i.length
      ? n.removeAttribute(Ir)
      : n.getAttribute(Ir) !== s.join(",") && n.setAttribute(Ir, s.join(","));
  },
  HX = (e, t) => {
    typeof e < "u" && document.title !== e && (document.title = NC(e)), c2("title", t);
  },
  W6 = (e, t) => {
    const {
      baseTag: n,
      bodyAttributes: r,
      htmlAttributes: o,
      linkTags: i,
      metaTags: s,
      noscriptTags: a,
      onChangeClientState: l,
      scriptTags: u,
      styleTags: c,
      title: d,
      titleAttributes: p,
    } = e;
    c2("body", r), c2("html", o), HX(d, p);
    const h = {
        baseTag: Hs("base", n),
        linkTags: Hs("link", i),
        metaTags: Hs("meta", s),
        noscriptTags: Hs("noscript", a),
        scriptTags: Hs("script", u),
        styleTags: Hs("style", c),
      },
      m = {},
      v = {};
    Object.keys(h).forEach((C) => {
      const { newTags: y, oldTags: g } = h[C];
      y.length && (m[C] = y), g.length && (v[C] = h[C].oldTags);
    }),
      t && t(),
      l(e, m, v);
  },
  Vl = null,
  zX = (e) => {
    Vl && cancelAnimationFrame(Vl),
      e.defer
        ? (Vl = requestAnimationFrame(() => {
            W6(e, () => {
              Vl = null;
            });
          }))
        : (W6(e), (Vl = null));
  },
  WX = zX,
  G6 = class extends b.Component {
    constructor() {
      super(...arguments);
      Xt(this, "rendered", !1);
    }
    shouldComponentUpdate(t) {
      return !MX(t, this.props);
    }
    componentDidUpdate() {
      this.emitChange();
    }
    componentWillUnmount() {
      const { helmetInstances: t } = this.props.context;
      t.remove(this), this.emitChange();
    }
    emitChange() {
      const { helmetInstances: t, setHelmet: n } = this.props.context;
      let r = null;
      const o = IX(
        t.get().map((i) => {
          const s = { ...i.props };
          return delete s.context, s;
        })
      );
      HC.canUseDOM ? WX(o) : l2 && (r = l2(o)), n(r);
    }
    init() {
      if (this.rendered) return;
      this.rendered = !0;
      const { helmetInstances: t } = this.props.context;
      t.add(this), this.emitChange();
    }
    render() {
      return this.init(), null;
    }
  },
  Ch,
  GX =
    ((Ch = class extends b.Component {
      shouldComponentUpdate(e) {
        return !wX(z6(this.props, "helmetData"), z6(e, "helmetData"));
      }
      mapNestedChildrenToProps(e, t) {
        if (!t) return null;
        switch (e.type) {
          case "script":
          case "noscript":
            return { innerHTML: t };
          case "style":
            return { cssText: t };
          default:
            throw new Error(
              `<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
            );
        }
      }
      flattenArrayTypeChildren(e, t, n, r) {
        return { ...t, [e.type]: [...(t[e.type] || []), { ...n, ...this.mapNestedChildrenToProps(e, r) }] };
      }
      mapObjectTypeChildren(e, t, n, r) {
        switch (e.type) {
          case "title":
            return { ...t, [e.type]: r, titleAttributes: { ...n } };
          case "body":
            return { ...t, bodyAttributes: { ...n } };
          case "html":
            return { ...t, htmlAttributes: { ...n } };
          default:
            return { ...t, [e.type]: { ...n } };
        }
      }
      mapArrayTypeChildrenToProps(e, t) {
        let n = { ...t };
        return (
          Object.keys(e).forEach((r) => {
            n = { ...n, [r]: e[r] };
          }),
          n
        );
      }
      warnOnInvalidChildren(e, t) {
        return (
          V6(
            H6.some((n) => e.type === n),
            typeof e.type == "function"
              ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."
              : `Only elements types ${H6.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
          ),
          V6(
            !t || typeof t == "string" || (Array.isArray(t) && !t.some((n) => typeof n != "string")),
            `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
          ),
          !0
        );
      }
      mapChildrenToProps(e, t) {
        let n = {};
        return (
          De.Children.forEach(e, (r) => {
            if (!r || !r.props) return;
            const { children: o, ...i } = r.props,
              s = Object.keys(i).reduce((l, u) => ((l[EX[u] || u] = i[u]), l), {});
            let { type: a } = r;
            switch ((typeof a == "symbol" ? (a = a.toString()) : this.warnOnInvalidChildren(r, o), a)) {
              case "Symbol(react.fragment)":
                t = this.mapChildrenToProps(o, t);
                break;
              case "link":
              case "meta":
              case "noscript":
              case "script":
              case "style":
                n = this.flattenArrayTypeChildren(r, n, s, o);
                break;
              default:
                t = this.mapObjectTypeChildren(r, t, s, o);
                break;
            }
          }),
          this.mapArrayTypeChildrenToProps(n, t)
        );
      }
      render() {
        const { children: e, ...t } = this.props;
        let n = { ...t },
          { helmetData: r } = t;
        if ((e && (n = this.mapChildrenToProps(e, n)), r && !(r instanceof u2))) {
          const o = r;
          (r = new u2(o.context, !0)), delete n.helmetData;
        }
        return r
          ? De.createElement(G6, { ...n, context: r.value })
          : De.createElement(VC.Consumer, null, (o) => De.createElement(G6, { ...n, context: o }));
      }
    }),
    Xt(Ch, "defaultProps", { defer: !0, encodeSpecialCharacters: !0, prioritizeSeoTags: !1 }),
    Ch);
const qu = "a-f\\d",
  UX = `#?[${qu}]{3}[${qu}]?`,
  YX = `#?[${qu}]{6}([${qu}]{2})?`,
  KX = new RegExp(`[^#${qu}]`, "gi"),
  XX = new RegExp(`^${UX}$|^${YX}$`, "i");
function qX(e, t = {}) {
  if (typeof e != "string" || KX.test(e) || !XX.test(e)) throw new TypeError("Expected a valid hex string");
  e = e.replace(/^#/, "");
  let n = 1;
  e.length === 8 && ((n = Number.parseInt(e.slice(6, 8), 16) / 255), (e = e.slice(0, 6))),
    e.length === 4 && ((n = Number.parseInt(e.slice(3, 4).repeat(2), 16) / 255), (e = e.slice(0, 3))),
    e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]);
  const r = Number.parseInt(e, 16),
    o = r >> 16,
    i = (r >> 8) & 255,
    s = r & 255,
    a = typeof t.alpha == "number" ? t.alpha : n;
  if (t.format === "array") return [o, i, s, a];
  if (t.format === "css") {
    const l = a === 1 ? "" : ` / ${Number((a * 100).toFixed(2))}%`;
    return `rgb(${o} ${i} ${s}${l})`;
  }
  return { red: o, green: i, blue: s, alpha: a };
}
const ZX = (e, t) => {
  const { red: n, green: r, blue: o, alpha: i } = qX(e);
  return `rgba(${n}, ${r}, ${o}, ${t})`;
};
function JX({ activeStep: e, steps: t }) {
  const n = Re();
  return f.jsx(S$, {
    variant: "progress",
    steps: t + 1,
    position: "static",
    activeStep: e,
    sx: {
      width: "100%",
      padding: "10px 0 0",
      background: "transparent",
      "& .MuiLinearProgress-root": { height: "4px", background: n.palette.primary.light, width: "100%" },
      "& .MuiLinearProgress-bar": { background: n.palette.primary.main },
      "& .MuiMobileStepper-progress": { background: ZX(n.palette.primary.main, 0.5) },
    },
    nextButton: f.jsx(f.Fragment, {}),
    backButton: f.jsx(f.Fragment, {}),
  });
}
const QX = ({ stepNumber: e, nextButton: t, prevButton: n }) => {
    const r = Re(),
      { questions: o, settings: i } = dt(),
      s = o.filter(({ type: a }) => a !== "result").length;
    return f.jsx(H, {
      sx: {
        position: "relative",
        padding: "15px 0",
        borderTop: "1px solid #9A9AAF80",
        height: "75px",
        display: "flex",
        background: i.cfg.design ? "rgba(154,154,175, 0.2)" : "transparent",
      },
      children: f.jsxs(H, {
        sx: {
          width: "100%",
          maxWidth: "1410px",
          padding: "10px",
          margin: "0 auto",
          display: "flex",
          alignItems: "center",
          gap: "10px",
        },
        children: [
          e !== null &&
            f.jsxs(H, {
              sx: { flexGrow: 1 },
              children: [
                f.jsxs(xe, { sx: { color: r.palette.text.primary }, children: ["Question ", e, " of ", s] }),
                f.jsx(JX, { activeStep: e, steps: s }),
              ],
            }),
          n,
          t,
        ],
      }),
    });
  },
  eq = ({ currentQuestion: e }) => {
    var c;
    const t = Re(),
      n = pt() < 690,
      { settings: r } = dt(),
      { updateAnswer: o } = Ne((d) => d),
      s = ((c = Ne((d) => d.answers).find(({ questionId: d }) => d === e.id)) == null ? void 0 : c.answer) || [
        "0",
        "0",
      ],
      a = Number(s[0]) ? re(Number(s[0])) : re().utc(),
      l = Number(s[1]) ? re(Number(s[1])) : re().utc(),
      u = async (d, p) => {
        if (!d) return;
        let h = [...s];
        (h[p] = (re(d).unix() * 1e3).toString()), o(e.id, h, 0);
      };
    return f.jsxs(Ss, {
      sx: {
        backgroundColor: r.cfg.design
          ? Be[r.cfg.theme].isLight
            ? "#F2F3F7"
            : "rgba(154,154,175, 0.2)"
          : Be[r.cfg.theme].isLight
            ? "white"
            : t.palette.background.default,
        width: n ? "min-content" : "auto",
        display: "inline-flex",
        flexWrap: "wrap",
        marginTop: "20px",
        p: "20px",
      },
      children: [
        f.jsxs(H, {
          children: [
            f.jsx("span", { style: { marginLeft: "25px", color: t.palette.text.primary }, children: "From" }),
            f.jsx(qm, {
              sx: {
                "& .MuiInputBase-root": {
                  backgroundColor: r.cfg.design
                    ? Be[r.cfg.theme].isLight
                      ? "#F2F3F7"
                      : "rgba(154,154,175, 0.2)"
                    : Be[r.cfg.theme].isLight
                      ? "white"
                      : t.palette.background.default,
                  borderRadius: "10px",
                  maxWidth: "250px",
                  pr: "30px",
                  "& input": { py: "11px", pl: "20px", lineHeight: "19px" },
                  "& fieldset": { borderColor: "#9A9AAF" },
                },
              },
              value: a,
              onChange: (d) => u(d, 0),
            }),
          ],
        }),
        f.jsxs(H, {
          children: [
            f.jsx("span", { style: { marginLeft: "25px", color: t.palette.text.primary }, children: "To" }),
            f.jsx(qm, {
              sx: {
                "& .MuiInputBase-root": {
                  backgroundColor: r.cfg.design
                    ? Be[r.cfg.theme].isLight
                      ? "#F2F3F7"
                      : "rgba(154,154,175, 0.2)"
                    : Be[r.cfg.theme].isLight
                      ? "white"
                      : t.palette.background.default,
                  borderRadius: "10px",
                  maxWidth: "250px",
                  pr: "30px",
                  "& input": { py: "11px", pl: "20px", lineHeight: "19px" },
                  "& fieldset": { borderColor: "#9A9AAF" },
                },
              },
              value: l,
              onChange: (d) => u(d, 1),
            }),
          ],
        }),
      ],
    });
  };
function tq({ sx: e }) {
  return f.jsx(H, {
    sx: {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      flexShrink: 0,
      "&:hover path": { stroke: "#581CA7" },
      "&:active path": { stroke: "#FB5607" },
      "&:hover rect": { stroke: "#581CA7" },
      "&:active rect": { stroke: "#FB5607" },
      ...e,
    },
    children: f.jsxs("svg", {
      width: "20",
      height: "22",
      viewBox: "0 0 20 22",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("rect", { x: "1", y: "2.5", width: "18", height: "18", rx: "5", stroke: "#7E2AEA", strokeWidth: "1.5" }),
        f.jsx("path", { d: "M1 7.5H19", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinejoin: "round" }),
        f.jsx("path", {
          d: "M14.5 1L14.5 4",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M5.5 1L5.5 4",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M4.5 11.5H5.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M9.5 11.5H10.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M14.5 11.5H15.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M4.5 15.5H5.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M9.5 15.5H10.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M14.5 15.5H15.5",
          stroke: "#7E2AEA",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
const nq = ({ currentQuestion: e }) => {
    var l;
    const { settings: t } = dt(),
      n = Ne((u) => u.answers),
      { updateAnswer: r } = Ne((u) => u),
      o = Re(),
      i = (l = n.find(({ questionId: u }) => u === e.id)) == null ? void 0 : l.answer,
      s = re(i) || re(),
      a = async (u) => {
        u && r(e.id, u, 0);
      };
    return f.jsx(H, {
      sx: { display: "flex", flexDirection: "column", width: "100%", marginTop: "20px" },
      children: f.jsx(Dz, {
        format: "DD/MM/YYYY",
        slots: {
          openPickerIcon: () =>
            f.jsx(tq, {
              sx: { "& path": { stroke: o.palette.primary.main }, "& rect": { stroke: o.palette.primary.main } },
            }),
        },
        value: s,
        onChange: a,
        slotProps: {
          openPickerButton: { sx: { p: 0 }, "data-cy": "open-datepicker" },
          layout: { sx: { backgroundColor: o.palette.background.default } },
        },
        sx: {
          "& .MuiInputBase-root": {
            backgroundColor: t.cfg.design
              ? Be[t.cfg.theme].isLight
                ? "#F2F3F7"
                : "rgba(154,154,175, 0.2)"
              : Be[t.cfg.theme].isLight
                ? "white"
                : o.palette.background.default,
            borderRadius: "10px",
            maxWidth: "250px",
            pr: "30px",
            "& input": { py: "11px", pl: "20px", lineHeight: "19px" },
            "& fieldset": { borderColor: "#9A9AAF" },
          },
        },
      }),
    });
  },
  rq = ({ currentQuestion: e }) => {
    const t = Re();
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: t.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        e.content.isRange ? f.jsx(eq, { currentQuestion: e }) : f.jsx(nq, { currentQuestion: e }),
      ],
    });
  },
  oq =
    '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';
function iq() {
  const e = document.createElement("canvas");
  e.width = e.height = 1;
  const t = e.getContext("2d", { willReadFrequently: !0 });
  return (t.textBaseline = "top"), (t.font = `100px ${oq}`), t.scale(0.01, 0.01), t;
}
function U6(e, t, n) {
  return e.clearRect(0, 0, 100, 100), (e.fillStyle = n), e.fillText(t, 0, 0), e.getImageData(0, 0, 1, 1).data.join(",");
}
function Y6(e) {
  const t = iq(),
    n = U6(t, e, "#fff"),
    r = U6(t, e, "#000");
  return r === n && !r.startsWith("0,0,0,");
}
function zC(
  e = "Twemoji Country Flags",
  t = "https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"
) {
  if (typeof window < "u" && Y6("😊") && !Y6("🇨🇭")) {
    const n = document.createElement("style");
    return (
      (n.textContent = `@font-face {
      font-family: "${e}";
      unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
        U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
      src: url('${t}') format('woff2');
      font-display: swap;
    }`),
      document.head.appendChild(n),
      !0
    );
  }
  return !1;
}
function Si({ color: e = "#7E2AEA" }) {
  return (
    Re(),
    f.jsx(H, {
      sx: { height: "26px", width: "26px", display: "flex", alignItems: "center", justifyContent: "center" },
      children: f.jsxs("svg", {
        width: "26",
        height: "26",
        viewBox: "0 0 26 26",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg",
        children: [
          f.jsx("rect", { x: "0.5", y: "0.5", width: "25", height: "25", rx: "12.5", fill: e, stroke: e }),
          f.jsx("rect", { x: "8", y: "8", width: "10", height: "10", rx: "5", fill: "white" }),
        ],
      }),
    })
  );
}
function ki() {
  return (
    Re(),
    f.jsx(H, {
      sx: { height: "26px", width: "26px", display: "flex", alignItems: "center", justifyContent: "center" },
      children: f.jsx("svg", {
        width: "26",
        height: "26",
        viewBox: "0 0 26 26",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg",
        children: f.jsx("rect", {
          x: "0.5",
          y: "0.5",
          width: "25",
          height: "25",
          rx: "12.5",
          fill: "#F2F3F7",
          stroke: "#9A9AAF",
        }),
      }),
    })
  );
}
zC();
const sq = ({ questionId: e, variant: t, largeCheck: n, ownPlaceholder: r }) => {
    var l;
    const o = Re(),
      i = Ne((u) => u.ownVariants),
      { updateOwnVariant: s } = Ne((u) => u),
      a = ((l = i[i.findIndex((u) => u.id === t.id)]) == null ? void 0 : l.variant.answer) || "";
    return n
      ? f.jsx(H, {
          sx: { overflow: "auto" },
          children: f.jsx(yc, {
            placeholder: r || "|",
            style: {
              resize: "none",
              width: "100%",
              fontSize: "16px",
              color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
              letterSpacing: "-0.4px",
              wordSpacing: "-3px",
              outline: "0px none",
              backgroundColor: "inherit",
              border: "none",
              "&::-webkit-scrollbar": { width: "4px" },
              "&::-webkit-scrollbar-thumb": { backgroundColor: o.palette.primary.main },
              scrollbarColor: o.palette.primary.main,
              overflow: "auto",
            },
            value: a,
            onClick: (u) => u.stopPropagation(),
            onChange: (u) => {
              s(t.id, u.target.value);
            },
          }),
        })
      : f.jsx(ks, {
          placeholder: r || "|",
          sx: {
            backgroundColor: "inherit",
            width: "100%",
            fontSize: "18px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
          },
          value: a,
          disableUnderline: !0,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        });
  },
  aq = ({
    answer: e,
    variant: t,
    index: n,
    questionId: r,
    isMulti: o,
    own: i,
    questionLargeCheck: s,
    ownPlaceholder: a,
  }) => {
    const { settings: l } = dt();
    Ne((h) => h.answers);
    const { updateAnswer: u, deleteAnswer: c } = Ne((h) => h),
      d = Re(),
      p = async (h) => {
        h.preventDefault();
        const m = t.id;
        if (o) {
          const v = typeof e != "string" ? e || [] : [];
          return u(r, v.includes(m) ? (v == null ? void 0 : v.filter((C) => C !== m)) : [...v, m], t.points || 0);
        }
        u(r, t.id, t.points || 0), e === t.id && c(r);
      };
    return f.jsxs(
      vc,
      {
        sx: {
          borderRadius: "12px",
          border: "1px solid",
          borderColor: e != null && e.includes(t.id) ? d.palette.primary.main : "#9A9AAF",
          overflow: "hidden",
          maxWidth: "317px",
          width: "100%",
          height: "255px",
          background:
            l.cfg.design && !Be[l.cfg.theme].isLight
              ? "rgba(255,255,255, 0.3)"
              : (l.cfg.design && Be[l.cfg.theme].isLight) || Be[l.cfg.theme].isLight
                ? "#FFFFFF"
                : "transparent",
          "&:hover": { borderColor: d.palette.primary.main },
        },
        onClick: p,
        children: [
          f.jsx(H, {
            sx: { display: "flex", alignItems: "center", height: "193px", background: "#ffffff", cursor: "pointer" },
            children: f.jsx(H, {
              sx: { width: "100%", display: "flex", justifyContent: "center" },
              children: t.extendedText && f.jsx(xe, { fontSize: "100px", children: t.extendedText }),
            }),
          }),
          i &&
            f.jsx(xe, {
              sx: { color: d.palette.text.primary, fontSize: "14px", pl: "15px" },
              children: "Enter your answer",
            }),
          f.jsx(
            Ka,
            {
              sx: {
                textAlign: "center",
                color: d.palette.text.primary,
                margin: 0,
                padding: "15px",
                display: "flex",
                alignItems: t.answer.length <= 60 ? "center" : "flex-start",
                position: "relative",
                height: "80px",
                justifyContent: "center",
                "& .MuiFormControlLabel-label": {
                  wordBreak: "break-word",
                  height: t.answer.length <= 60 ? "100%" : "60px",
                  overflow: "auto",
                  "&::-webkit-scrollbar": { width: "4px" },
                  "&::-webkit-scrollbar-thumb": { backgroundColor: d.palette.primary.main },
                  scrollbarColor: d.palette.primary.main,
                  width: "100%",
                },
                "& .MuiFormControlLabel-label.Mui-disabled": { color: d.palette.text.primary },
              },
              value: n,
              control: o
                ? f.jsx(e5, {
                    checked: !!(e != null && e.includes(t.id)),
                    checkedIcon: f.jsx(Si, { color: d.palette.primary.main }),
                    icon: f.jsx(ki, {}),
                    sx: { position: "absolute", top: "-162px", right: "12px" },
                  })
                : f.jsx(Xa, {
                    checkedIcon: f.jsx(Si, { color: d.palette.primary.main }),
                    icon: f.jsx(ki, {}),
                    sx: { position: "absolute", top: "-162px", right: "12px" },
                  }),
              label: i
                ? f.jsx(sq, { questionId: r, variant: t, largeCheck: s, ownPlaceholder: a || "|" })
                : f.jsx(H, {
                    sx: { display: "flex", gap: "10px" },
                    children: f.jsx(xe, { sx: { wordBreak: "break-word", lineHeight: "normal" }, children: t.answer }),
                  }),
            },
            t.id
          ),
        ],
      },
      n
    );
  };
zC();
const lq = ({ currentQuestion: e }) => {
    const t = Ne((i) => i.answers),
      { updateAnswer: n } = Ne((i) => i),
      r = Re(),
      { answer: o } = t.find(({ questionId: i }) => i === e.id) ?? {};
    if (re.isMoment(o)) throw new Error("Answer is Moment in Variant question");
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: r.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsx(k0, {
          name: e.id,
          value: e.content.variants.findIndex(({ id: i }) => o === i),
          onChange: ({ target: i }) =>
            n(e.id, e.content.variants[Number(i.value)].answer, e.content.variants[Number(i.value)].points || 0),
          sx: {
            display: "flex",
            flexWrap: "wrap",
            flexDirection: "row",
            justifyContent: "space-between",
            marginTop: "20px",
          },
          children: f.jsx(H, {
            sx: { display: "flex", width: "100%", gap: "42px", flexWrap: "wrap" },
            children: e.content.variants
              .filter((i) => (i.isOwn ? i.isOwn && e.content.own : !0))
              .map((i, s) => {
                var a;
                return f.jsx(
                  aq,
                  {
                    questionId: e.id,
                    variant: i,
                    index: s,
                    isMulti: !!e.content.multi,
                    own: !!i.isOwn,
                    questionLargeCheck: !0,
                    answer: o,
                    ownPlaceholder: ((a = e.content) == null ? void 0 : a.ownPlaceholder) || "",
                  },
                  i.id
                );
              }),
          }),
        }),
      ],
    });
  },
  uq = 419430400,
  K6 = {
    picture: { title: "Add image", description: "Accepts images" },
    video: { title: "Add video", description: "Accepts .mp4 and .mov format - maximum 50mb" },
    audio: { title: "Add audio file", description: "Accepts audio files" },
    document: { title: "Add document", description: "Accepts documents" },
  },
  d2 = {
    picture: [".jpeg", ".jpg", ".png", ".ico", ".gif", ".tiff", ".webp", ".eps", ".svg"],
    video: [".mp4", ".mov", ".wmv", ".avi", ".avchd", ".flv", ".f4v", ".swf", ".mkv", ".webm", ".mpeg-2"],
    audio: [".aac", ".aiff", ".dsd", ".flac", ".mp3", ".mqa", ".ogg", ".wav", ".wma"],
    document: [".doc", ".docx", ".dotx", ".rtf", ".odt", ".pdf", ".txt", ".xls", ".ppt", ".xlsx", ".pptx", ".pages"],
  };
function cq({ width: e = 20, height: t = 20, sx: n, onClick: r, className: o, color: i = "#7e2aea" }) {
  return f.jsx(_i, {
    sx: n,
    className: o,
    onClick: r,
    children: f.jsxs("svg", {
      width: e,
      height: t,
      viewBox: "0 0 20 20",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",
          stroke: i,
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M9.25 9.25H10V14.5H10.75",
          stroke: i,
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z",
          fill: i,
        }),
      ],
    }),
  });
}
function dq({ color: e = "#9A9AAF" }) {
  return (
    Re(),
    f.jsx(H, {
      sx: { height: "32px", width: "32px", display: "flex", alignItems: "center", justifyContent: "center" },
      children: f.jsxs("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        width: "32",
        height: "32",
        viewBox: "0 0 32 32",
        fill: "none",
        children: [
          f.jsx("path", {
            d: "M10.75 10.25L16 5L21.25 10.25",
            stroke: e,
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round",
          }),
          f.jsx("path", {
            d: "M16 19V5",
            stroke: e,
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round",
          }),
          f.jsx("path", {
            d: "M27 19V26C27 26.2652 26.8946 26.5196 26.7071 26.7071C26.5196 26.8946 26.2652 27 26 27H6C5.73478 27 5.48043 26.8946 5.29289 26.7071C5.10536 26.5196 5 26.2652 5 26V19",
            stroke: e,
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round",
          }),
        ],
      }),
    })
  );
}
const fq = ({ currentQuestion: e, setModalWarningType: t, isSending: n, setIsSending: r }) => {
  var v;
  const { quizId: o, preview: i } = dt(),
    [s, a] = b.useState(!1),
    l = Re(),
    u = Ne((C) => C.answers),
    { updateAnswer: c } = Ne((C) => C),
    d = pt() < 500,
    p = (v = u.find(({ questionId: C }) => C === e.id)) == null ? void 0 : v.answer,
    h = async (C) => {
      if (n || !C) return;
      if (C.size > uq) return t("errorSize");
      if (!d2[e.content.type].some((g) => C.name.toLowerCase().endsWith(g))) return t("errorType");
      r(!0);
      try {
        const g = await Bk({ questionId: e.id, body: { file: C, name: C.name, preview: i }, qid: o });
        await xn({ questionId: e.id, body: `${g.data.fileIDMap[e.id]}`, qid: o, preview: i }),
          c(e.id, `${C.name}|${URL.createObjectURL(C)}`, 0);
      } catch (g) {
        console.error(g), eo("the answer was not counted");
      }
      r(!1);
    },
    m = (C) => {
      C.preventDefault(), a(!1);
      const y = C.dataTransfer.files[0];
      h(y);
    };
  return f.jsxs(H, {
    sx: { display: "flex", alignItems: "center" },
    children: [
      n
        ? f.jsx(Y9, { variant: "rounded", sx: { width: "100%", height: "120px", maxWidth: "560px" } })
        : f.jsxs($r, {
            component: "label",
            sx: { justifyContent: "flex-start", width: "100%" },
            children: [
              f.jsx("input", {
                onChange: ({ target: C }) => {
                  var y;
                  return h((y = C.files) == null ? void 0 : y[0]);
                },
                hidden: !0,
                accept: d2[e.content.type].join(","),
                multiple: !0,
                type: "file",
              }),
              f.jsxs(H, {
                onDragEnter: () => !(p != null && p.split("|")[0]) && a(!0),
                onDragLeave: () => a(!1),
                onDragOver: (C) => C.preventDefault(),
                onDrop: m,
                sx: {
                  width: "100%",
                  height: d ? void 0 : "120px",
                  display: "flex",
                  gap: "50px",
                  justifyContent: "flex-start",
                  alignItems: "center",
                  padding: "33px 44px 33px 55px",
                  backgroundColor: "#F2F3F7",
                  border: `1px solid ${s ? "red" : "#9A9AAF"}`,
                  borderRadius: "8px",
                },
                children: [
                  f.jsx(dq, {}),
                  f.jsxs(H, {
                    children: [
                      f.jsx(xe, { sx: { color: "#9A9AAF", fontWeight: 500 }, children: K6[e.content.type].title }),
                      f.jsx(xe, {
                        sx: { color: "#9A9AAF", fontSize: "16px", lineHeight: "19px" },
                        children: K6[e.content.type].description,
                      }),
                    ],
                  }),
                ],
              }),
            ],
          }),
      f.jsx(cq, {
        sx: { width: "40px", height: "40px" },
        color: l.palette.primary.main,
        onClick: () => t(e.content.type),
      }),
    ],
  });
};
function pq({ width: e }) {
  return (
    Re(),
    f.jsxs("svg", {
      width: "35",
      height: "33",
      viewBox: "0 0 35 33",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsxs("g", {
          id: "Close",
          children: [
            f.jsx("g", {
              id: "Rectangle 57",
              opacity: "0.3",
              filter: "url(#filter0_d_4080_12482)",
              children: f.jsx("rect", { x: "6", y: "4", width: "24", height: "24", rx: "12", fill: "#9A9AAF" }),
            }),
            f.jsxs("g", {
              id: "Group 331",
              children: [
                f.jsx("path", {
                  id: "Vector 586",
                  d: "M22.8516 10.9517L12.9521 20.8512",
                  stroke: "#FDFDFF",
                  strokeWidth: "1.5",
                  strokeLinecap: "round",
                  strokeLinejoin: "round",
                }),
                f.jsx("path", {
                  id: "Vector 587",
                  d: "M22.8516 20.8462L12.9521 10.9467",
                  stroke: "#FDFDFF",
                  strokeWidth: "1.5",
                  strokeLinecap: "round",
                  strokeLinejoin: "round",
                }),
              ],
            }),
          ],
        }),
        f.jsx("defs", {
          children: f.jsxs("filter", {
            id: "filter0_d_4080_12482",
            x: "0",
            y: "0",
            width: "36",
            height: "36",
            filterUnits: "userSpaceOnUse",
            colorInterpolationFilters: "sRGB",
            children: [
              f.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
              f.jsx("feColorMatrix", {
                in: "SourceAlpha",
                type: "matrix",
                values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
                result: "hardAlpha",
              }),
              f.jsx("feMorphology", {
                radius: "1",
                operator: "dilate",
                in: "SourceAlpha",
                result: "effect1_dropShadow_4080_12482",
              }),
              f.jsx("feOffset", { dy: "2" }),
              f.jsx("feGaussianBlur", { stdDeviation: "2.5" }),
              f.jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
              f.jsx("feColorMatrix", {
                type: "matrix",
                values: "0 0 0 0 0.416562 0 0 0 0 0.452406 0 0 0 0 0.775 0 0 0 0.18 0",
              }),
              f.jsx("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_4080_12482" }),
              f.jsx("feBlend", {
                mode: "normal",
                in: "SourceGraphic",
                in2: "effect1_dropShadow_4080_12482",
                result: "shape",
              }),
            ],
          }),
        }),
      ],
    })
  );
}
const hq = ({ currentQuestion: e, setIsSending: t }) => {
    var u;
    const { quizId: n, preview: r } = dt(),
      o = Ne((c) => c.answers),
      { updateAnswer: i } = Ne((c) => c),
      s = Re(),
      a = (u = o.find(({ questionId: c }) => c === e.id)) == null ? void 0 : u.answer,
      l = async () => {
        a.length > 0 && (t(!0), await xn({ questionId: e.id, body: "", qid: n, preview: r })), i(e.id, "", 0), t(!1);
      };
    return f.jsxs(H, {
      sx: { display: "flex", alignItems: "center", gap: "15px" },
      children: [
        f.jsx(xe, { color: s.palette.text.primary, children: "You have uploaded:" }),
        f.jsxs(H, {
          sx: {
            padding: "5px 5px 5px 16px",
            backgroundColor: s.palette.primary.main,
            borderRadius: "8px",
            color: "#FFFFFF",
            display: "flex",
            alignItems: "center",
            overflow: "hidden",
            gap: "15px",
          },
          children: [
            f.jsx(xe, {
              sx: { whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden" },
              children: a == null ? void 0 : a.split("|")[0],
            }),
            f.jsx(_i, { sx: { p: 0 }, onClick: l, children: f.jsx(pq, {}) }),
          ],
        }),
      ],
    });
  },
  mq = ({ currentQuestion: e }) => {
    var u;
    const t = Re(),
      n = Ne((c) => c.answers),
      [r, o] = b.useState(null),
      [i, s] = b.useState(!1),
      a = pt() < 500,
      l = (u = n.find(({ questionId: c }) => c === e.id)) == null ? void 0 : u.answer;
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: t.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          sx: {
            display: "flex",
            flexDirection: "column",
            width: "100%",
            marginTop: "20px",
            maxWidth: l != null && l.split("|")[0] ? "640px" : "600px",
          },
          children: [
            l != null && l.split("|")[0]
              ? f.jsx(hq, { currentQuestion: e, setIsSending: s })
              : f.jsx(fq, { currentQuestion: e, setModalWarningType: o, isSending: i, setIsSending: s }),
            l &&
              e.content.type === "picture" &&
              f.jsx("img", {
                src: l.split("|")[1],
                style: { marginTop: "15px", maxWidth: "300px", maxHeight: "300px" },
                alt: "",
              }),
            l &&
              e.content.type === "video" &&
              f.jsx("video", {
                src: l.split("|")[1],
                style: { marginTop: "15px", maxWidth: "300px", maxHeight: "300px", objectFit: "cover" },
              }),
          ],
        }),
        f.jsx(t5, {
          open: r !== null,
          onClose: () => o(null),
          children: f.jsx(H, {
            sx: {
              position: "absolute",
              top: "50%",
              left: "50%",
              transform: "translate(-50%, -50%)",
              width: a ? 300 : 400,
              bgcolor: "background.paper",
              borderRadius: 3,
              boxShadow: 24,
              p: 4,
            },
            children: f.jsx(gq, { status: r }),
          }),
        }),
      ],
    });
  },
  gq = ({ status: e }) => {
    switch (e) {
      case null:
        return null;
      case "errorType":
        return f.jsx(xe, { children: "Incorrect file type selected" });
      case "errorSize":
        return f.jsx(xe, { children: "File is too big. Maximum size is 50 MB" });
      default:
        return f.jsxs(f.Fragment, {
          children: [f.jsx(xe, { children: "Acceptable file extensions:" }), f.jsx(xe, { children: d2[e].join(" ") })],
        });
    }
  },
  yq = ({ questionId: e, variant: t, largeCheck: n, ownPlaceholder: r }) => {
    var l;
    const o = Re(),
      i = Ne((u) => u.ownVariants),
      { updateOwnVariant: s } = Ne((u) => u),
      a = ((l = i[i.findIndex((u) => u.id === t.id)]) == null ? void 0 : l.variant.answer) || "";
    return n
      ? f.jsx(H, {
          sx: { overflow: "auto" },
          children: f.jsx(yc, {
            placeholder: r || "|",
            style: {
              resize: "none",
              width: "100%",
              fontSize: "16px",
              color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
              letterSpacing: "-0.4px",
              wordSpacing: "-3px",
              outline: "0px none",
              backgroundColor: "inherit",
              border: "none",
              "&::-webkit-scrollbar": { width: "4px" },
              "&::-webkit-scrollbar-thumb": { backgroundColor: o.palette.primary.main },
              scrollbarColor: o.palette.primary.main,
            },
            value: a,
            onClick: (u) => u.stopPropagation(),
            onChange: (u) => {
              s(t.id, u.target.value);
            },
          }),
        })
      : f.jsx(ks, {
          placeholder: r || "|",
          sx: {
            backgroundColor: "inherit",
            width: "100%",
            fontSize: "18px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
          },
          value: a,
          disableUnderline: !0,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        });
  },
  vq = ({
    questionId: e,
    answer: t,
    isMulti: n,
    variant: r,
    index: o,
    own: i,
    questionLargeCheck: s,
    ownPlaceholder: a,
  }) => {
    const { settings: l } = dt(),
      { deleteAnswer: u, updateAnswer: c } = Ne((y) => y),
      d = Re();
    Ne((y) => y.answers);
    const p = pt() < 450,
      h = pt() < 850,
      m = b.useRef(null);
    b.useRef(null);
    const v = async (y) => {
        y.preventDefault();
        const g = r.id;
        if (n) {
          const x = typeof t != "string" ? t || [] : [];
          return c(e, x.includes(g) ? (x == null ? void 0 : x.filter((w) => w !== g)) : [...x, g], r.points || 0);
        }
        c(e, g, r.points || 0), t === g && u(e);
      },
      C = b.useMemo(
        () =>
          r.editedUrlImagesList !== void 0 && r.editedUrlImagesList !== null
            ? r.editedUrlImagesList[p ? "mobile" : h ? "tablet" : "desktop"]
            : r.extendedText,
        []
      );
    return (
      b.useEffect(() => {
        if (m.current !== null) {
          const y = m.current,
            g = y.getContext("2d");
          if (g !== null) {
            const x = new Image();
            (x.src = C),
              (x.onload = () => {
                (y.width = x.width), (y.height = x.height), g.drawImage(x, 0, 0, y.width, y.height);
              });
          }
        }
      }, []),
      f.jsxs(H, {
        sx: {
          position: "relative",
          cursor: "pointer",
          borderRadius: "12px",
          border: "1px solid",
          borderColor: t != null && t.includes(r.id) ? d.palette.primary.main : "#9A9AAF",
          "&:hover": { borderColor: d.palette.primary.main },
          background:
            l.cfg.design && !Be[l.cfg.theme].isLight
              ? "rgba(255,255,255, 0.3)"
              : (l.cfg.design && Be[l.cfg.theme].isLight) || Be[l.cfg.theme].isLight
                ? "#FFFFFF"
                : "transparent",
        },
        onClick: v,
        children: [
          f.jsx(H, {
            sx: { display: "flex", alignItems: "center", gap: "10px" },
            children: f.jsx(H, {
              sx: { width: "100%", height: "300px" },
              children:
                r.extendedText &&
                f.jsx("canvas", {
                  ref: m,
                  style: {
                    display: "block",
                    width: "100%",
                    height: "100%",
                    objectFit: "cover",
                    borderRadius: "12px 12px 0 0",
                  },
                }),
            }),
          }),
          i &&
            f.jsx(xe, {
              sx: { color: d.palette.text.primary, fontSize: "14px", pl: "15px" },
              children: "Enter your answer",
            }),
          f.jsx(
            Ka,
            {
              sx: {
                textAlign: "center",
                color: d.palette.text.primary,
                marginTop: "10px",
                marginLeft: 0,
                padding: "10px",
                display: "flex",
                alignItems: r.answer.length <= 60 ? "center" : "flex-start",
                justifyContent: "center",
                position: "relative",
                height: "80px",
                "& .MuiFormControlLabel-label": {
                  wordBreak: "break-word",
                  height: r.answer.length <= 60 ? void 0 : "60px",
                  lineHeight: "normal",
                  overflow: "auto",
                  maxHeight: "100%",
                  width: "100%",
                  "&::-webkit-scrollbar": { width: "4px" },
                  "&::-webkit-scrollbar-thumb": { backgroundColor: d.palette.primary.main },
                  scrollbarColor: d.palette.primary.main,
                },
              },
              value: o,
              control: n
                ? f.jsx(e5, {
                    checked: !!(t != null && t.includes(r.id)),
                    checkedIcon: f.jsx(Si, { color: d.palette.primary.main }),
                    icon: f.jsx(ki, {}),
                    sx: { position: "absolute", top: "-297px", right: 0 },
                  })
                : f.jsx(Xa, {
                    checkedIcon: f.jsx(Si, { color: d.palette.primary.main }),
                    icon: f.jsx(ki, {}),
                    sx: { position: "absolute", top: "-297px", right: 0 },
                  }),
              label: i ? f.jsx(yq, { questionId: e, variant: r, largeCheck: s, ownPlaceholder: a || "|" }) : r.answer,
            },
            r.id
          ),
        ],
      })
    );
  },
  xq = ({ currentQuestion: e }) => {
    var s;
    const t = Ne((a) => a.answers),
      n = Re(),
      r = (s = t.find(({ questionId: a }) => a === e.id)) == null ? void 0 : s.answer,
      o = pt() < 1e3,
      i = pt() < 500;
    if (re.isMoment(r)) throw new Error("Answer is Moment in Variant question");
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: n.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsx(k0, {
          name: e.id.toString(),
          value: e.content.variants.findIndex(({ id: a }) => r === a),
          sx: {
            display: "flex",
            flexWrap: "wrap",
            flexDirection: "row",
            justifyContent: "space-between",
            marginTop: "20px",
          },
          children: f.jsx(H, {
            sx: {
              display: "grid",
              gap: "15px",
              gridTemplateColumns: o ? (i ? "repeat(1, 1fr)" : "repeat(2, 1fr)") : "repeat(3, 1fr)",
              width: "100%",
            },
            children: e.content.variants
              .filter((a) => (a.isOwn ? a.isOwn && e.content.own : !0))
              .map((a, l) => {
                var u;
                return f.jsx(
                  vq,
                  {
                    questionId: e.id,
                    variant: a,
                    index: l,
                    answer: r,
                    isMulti: !!e.content.multi,
                    own: !!a.isOwn,
                    questionLargeCheck: !0,
                    ownPlaceholder: ((u = e.content) == null ? void 0 : u.ownPlaceholder) || "",
                  },
                  a.id
                );
              }),
          }),
        }),
      ],
    });
  },
  bq = ({
    defaultValue: e,
    value: t,
    min: n = 0,
    max: r = 100,
    step: o,
    onChange: i,
    onChangeCommitted: s,
    valueLabelFormat: a,
    sx: l,
  }) => (
    Re(),
    f.jsx(ej, {
      value: t,
      defaultValue: e,
      min: n,
      max: r,
      step: o,
      onChange: i,
      valueLabelDisplay: "on",
      onChangeCommitted: s,
      valueLabelFormat: a,
      onMouseDown: (u) => u.stopPropagation(),
      "data-cy": "slider",
      sx: {
        color: "#7E2AEA",
        padding: "0",
        marginTop: "75px",
        "& .MuiSlider-valueLabel": {
          background: "#7E2AEA",
          borderRadius: "8px",
          minWidth: "60px",
          width: "auto",
          whiteSpace: "nowrap",
          textAlign: "center",
          height: "36px",
        },
        "& .MuiSlider-valueLabel::before": {
          width: "6px",
          height: "2px",
          transform: "translate(-50%, 50%) rotate(90deg)",
          bottom: "-5px",
        },
        "& .MuiSlider-rail": { backgroundColor: "#F2F3F7", border: "1px solid #9A9AAF", height: "12px" },
        "& .MuiSlider-thumb": { border: "3px #f2f3f7 solid", height: "23px", width: "23px" },
        "& .MuiSlider-track": { height: "12px" },
        ...l,
      },
    })
  ),
  Cq = T0;
function tf({
  placeholder: e,
  value: t,
  text: n,
  sx: r,
  error: o,
  onChange: i,
  onKeyDown: s,
  onBlur: a,
  InputProps: l,
}) {
  const u = Re();
  return f.jsx(vc, {
    fullWidth: !0,
    variant: "standard",
    sx: { p: 0 },
    children: f.jsx(Cq, {
      defaultValue: n,
      fullWidth: !0,
      value: t,
      placeholder: e,
      error: !!o,
      label: o,
      onChange: i,
      onKeyDown: s,
      onBlur: a,
      sx: {
        "& .MuiInputBase-root": { backgroundColor: u.palette.background.default, height: "48px", borderRadius: "10px" },
        "& .MuiInputLabel-root": { fontSize: "13.5px", marginTop: "3px" },
        ...r,
      },
      InputProps: l,
      inputProps: { sx: { borderRadius: "10px", fontSize: "18px", lineHeight: "21px", py: 0 } },
      "data-cy": "textfield",
    }),
  });
}
function vh(e, t, n) {
  var r = this,
    o = b.useRef(null),
    i = b.useRef(0),
    s = b.useRef(null),
    a = b.useRef([]),
    l = b.useRef(),
    u = b.useRef(),
    c = b.useRef(e),
    d = b.useRef(!0);
  b.useEffect(
    function () {
      c.current = e;
    },
    [e]
  );
  var p = !t && t !== 0 && typeof window < "u";
  if (typeof e != "function") throw new TypeError("Expected a function");
  t = +t || 0;
  var h = !!(n = n || {}).leading,
    m = !("trailing" in n) || !!n.trailing,
    v = "maxWait" in n,
    C = v ? Math.max(+n.maxWait || 0, t) : null;
  b.useEffect(function () {
    return (
      (d.current = !0),
      function () {
        d.current = !1;
      }
    );
  }, []);
  var y = b.useMemo(
    function () {
      var g = function (P) {
          var A = a.current,
            D = l.current;
          return (a.current = l.current = null), (i.current = P), (u.current = c.current.apply(D, A));
        },
        x = function (P, A) {
          p && cancelAnimationFrame(s.current), (s.current = p ? requestAnimationFrame(P) : setTimeout(P, A));
        },
        w = function (P) {
          if (!d.current) return !1;
          var A = P - o.current;
          return !o.current || A >= t || A < 0 || (v && P - i.current >= C);
        },
        k = function (P) {
          return (s.current = null), m && a.current ? g(P) : ((a.current = l.current = null), u.current);
        },
        M = function P() {
          var A = Date.now();
          if (w(A)) return k(A);
          if (d.current) {
            var D = t - (A - o.current),
              R = v ? Math.min(D, C - (A - i.current)) : D;
            x(P, R);
          }
        },
        T = function () {
          var P = Date.now(),
            A = w(P);
          if (((a.current = [].slice.call(arguments)), (l.current = r), (o.current = P), A)) {
            if (!s.current && d.current) return (i.current = o.current), x(M, t), h ? g(o.current) : u.current;
            if (v) return x(M, t), g(o.current);
          }
          return s.current || x(M, t), u.current;
        };
      return (
        (T.cancel = function () {
          s.current && (p ? cancelAnimationFrame(s.current) : clearTimeout(s.current)),
            (i.current = 0),
            (a.current = o.current = l.current = s.current = null);
        }),
        (T.isPending = function () {
          return !!s.current;
        }),
        (T.flush = function () {
          return s.current ? k(Date.now()) : u.current;
        }),
        T
      );
    },
    [h, v, t, C, m, p]
  );
  return y;
}
const wq = ({ currentQuestion: e }) => {
    var _;
    const [t, n] = b.useState("0"),
      [r, o] = b.useState("0"),
      [i, s] = b.useState("100000000000"),
      [a, l] = b.useState("0"),
      [u, c] = b.useState("0"),
      [d, p] = b.useState("100000000000"),
      { settings: h } = dt(),
      { updateAnswer: m } = Ne((I) => I),
      v = Ne((I) => I.answers),
      C = Re(),
      [y, g] = e.content.range.split("—").map(window.Number),
      x = y < g ? y : g,
      w = y < g ? g : y,
      k = y > g,
      M = (_ = v.find(({ questionId: I }) => I === e.id)) == null ? void 0 : _.answer,
      T = M || (k ? w + x - e.content.start + "—" + w : e.content.start + "—" + w);
    b.useEffect(() => {
      console.log("reversed:", k);
    }, [k]);
    const P = async (I, $ = !1) => {
        $ || m(e.id, I, 0);
      },
      A = vh(async (I) => {
        if (k) {
          const J =
            window.Number(I) < window.Number(x) ? String(x) : window.Number(I) > window.Number(w) ? String(w) : I;
          l(J), m(e.id, String(w + x - window.Number(J)), 0), await P(String(window.Number(J)), !0);
          return;
        }
        const $ = window.Number(I) < window.Number(r) ? r : window.Number(I) > window.Number(i) ? i : I;
        n($), await P($);
      }, 1e3),
      D = vh(async (I, $ = !1) => {
        if (k) {
          const oe = $
              ? window.Number(I.split("—")[1])
              : w + x - window.Number(I.split("—")[0]) < x
                ? x
                : w + x - window.Number(I.split("—")[0]),
            pe = window.Number(I.split("—")[0]) > w ? String(w) : I.split("—")[0];
          c($ ? String(w + x - window.Number(pe)) : pe),
            m(e.id, `${oe}—${I.split("—")[1]}`, 0),
            await P(`${pe}—${I.split("—")[1]}`, !0);
          return;
        }
        const J = $ ? i : window.Number(I.split("—")[0]) < x ? String(x) : I.split("—")[0];
        o(J), await P(`${J}—${I.split("—")[1]}`);
      }, 1e3),
      R = vh(async (I, $ = !1) => {
        if (k) {
          const oe = $
              ? window.Number(I.split("—")[1])
              : w + x - window.Number(I.split("—")[1]) > w
                ? w
                : w + x - window.Number(I.split("—")[1]),
            pe = window.Number(I.split("—")[1]) < x ? String(x) : I.split("—")[1];
          p($ ? String(w + x - window.Number(pe)) : pe),
            m(e.id, `${I.split("—")[0]}—${oe}`, 0),
            await P(`${I.split("—")[0]}—${pe}`, !0);
          return;
        }
        const J = $ ? r : window.Number(I.split("—")[1]) > w ? String(w) : I.split("—")[1];
        s(J), await P(`${I.split("—")[0]}—${J}`);
      }, 1e3);
    b.useEffect(() => {
      M &&
        (M.includes("—")
          ? k
            ? (c(String(w + x - window.Number(M.split("—")[0]))), p(String(w + x - window.Number(M.split("—")[1]))))
            : (o(M.split("—")[0]), s(M.split("—")[1]))
          : k
            ? l(String(w + x - window.Number(M)))
            : n(M)),
        M ||
          (o(String(e.content.start)),
          s(String(w)),
          e.content.chooseRange && (c(String(e.content.start)), p(String(x))),
          l(String(e.content.start)),
          n(String(e.content.start)));
    }, []);
    const L = (I, $) => {
        const J = Array.isArray($) ? `${$[0]}—${$[1]}` : String($);
        m(e.id, J, 0);
      },
      F = async (I, $) => {
        if (e.content.chooseRange && Array.isArray($)) {
          if (k) {
            const J = String(w + x - $[0]),
              oe = String(w + x - $[1]);
            o(String($[0])), s(String($[1])), c(J), p(oe), await P(`${J}—${oe}`, !0);
            return;
          }
          o(String($[0])), s(String($[1])), await P(`${$[0]}—${$[1]}`);
          return;
        }
        k ? l(String(w + x - window.Number($))) : n(String($)), await P(String($));
      },
      O = (I) => {
        if (!k) return I;
        const [$, J] = T.split("—").map(window.Number);
        return I === $ ? w + x - $ : w + x - J;
      },
      E = ({ target: I }) => {
        const $ = I.value.replace(/\D/g, "");
        k ? l($) : n($), A($);
      },
      B = ({ target: I }) => {
        const $ = I.value.replace(/\D/g, "");
        if (k) {
          if ((c($), window.Number($) <= window.Number(d))) {
            const J = w + x - window.Number(d);
            D(`${J}—${J}`, !0);
            return;
          }
          D(`${$}—${w + x - window.Number(d)}`);
          return;
        }
        if ((o($), window.Number($) >= window.Number(i))) {
          D(`${i}—${i}`, !0);
          return;
        }
        D(`${$}—${i}`);
      },
      j = ({ target: I }) => {
        const $ = I.value.replace(/\D/g, "");
        if (k) {
          if ((p($), window.Number($) >= window.Number(u))) {
            const J = w + x - window.Number(u);
            R(`${J}—${J}`, !0);
            return;
          }
          R(`${w + x - window.Number(u)}—${$}`);
          return;
        }
        if ((s($), window.Number($) <= window.Number(r))) {
          R(`${r}—${r}`, !0);
          return;
        }
        R(`${r}—${$}`);
      };
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: C.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          sx: {
            display: "flex",
            flexDirection: "column",
            width: "100%",
            marginTop: "20px",
            gap: "30px",
            padding: "0 30px",
          },
          children: [
            f.jsx(bq, {
              value: e.content.chooseRange
                ? T.split("—").length
                  ? T.split("—").map((I) => window.Number(I))
                  : [x, x + 1]
                : window.Number(T.split("—")[0]),
              min: x,
              max: w,
              step: e.content.step || 1,
              onChange: L,
              onChangeCommitted: F,
              valueLabelFormat: O,
              sx: {
                color: C.palette.primary.main,
                "& .MuiSlider-valueLabel": {
                  background: C.palette.primary.main,
                  borderRadius: "8px",
                  minWidth: "60px",
                  height: "36px",
                },
              },
            }),
            !e.content.chooseRange &&
              f.jsx(tf, {
                placeholder: "0",
                value: k ? a : t,
                onChange: E,
                sx: {
                  maxWidth: "80px",
                  borderColor: C.palette.text.primary,
                  "& .MuiOutlinedInput-root": { background: "transparent" },
                  "& .MuiInputBase-input": { textAlign: "center", zIndex: 1 },
                  "& .MuiOutlinedInput-notchedOutline": {
                    backgroundColor: Be[h.cfg.theme].isLight ? "white" : C.palette.background.default,
                    borderColor: "#9A9AAF",
                  },
                },
              }),
            e.content.chooseRange &&
              f.jsxs(H, {
                sx: { display: "flex", gap: "15px", alignItems: "center", "& .MuiFormControl-root": { width: "auto" } },
                children: [
                  f.jsx(tf, {
                    placeholder: "0",
                    value: k ? String(u) : r,
                    onChange: B,
                    sx: {
                      maxWidth: "80px",
                      borderColor: C.palette.text.primary,
                      "& .MuiOutlinedInput-root": { background: "transparent" },
                      "& .MuiInputBase-input": { textAlign: "center", zIndex: 1 },
                      "& .MuiOutlinedInput-notchedOutline": {
                        backgroundColor: Be[h.cfg.theme].isLight ? "white" : C.palette.background.default,
                        borderColor: "#9A9AAF",
                      },
                    },
                  }),
                  f.jsx(xe, { color: C.palette.text.primary, children: "to" }),
                  f.jsx(tf, {
                    placeholder: "0",
                    value: k ? String(d) : i,
                    onChange: j,
                    sx: {
                      maxWidth: "80px",
                      "& .MuiOutlinedInput-root": { background: "transparent" },
                      "& .MuiInputBase-input": { textAlign: "center", zIndex: 1 },
                      "& .MuiOutlinedInput-notchedOutline": {
                        backgroundColor: Be[h.cfg.theme].isLight ? "white" : C.palette.background.default,
                        borderColor: "#9A9AAF",
                      },
                    },
                  }),
                ],
              }),
          ],
        }),
      ],
    });
  },
  zs = {
    youtube: /^(https?:\/\/)?(www\.)?((m\.youtube|youtube)\.com|youtu\.be)\/.+$/,
    vk: /^(https?:\/\/)?(m.)?vk\..+$/,
    tiktok: /^(https?:\/\/)?((www|vt).)?tiktok\..+$/,
    google: /^(https?:\/\/)?(www.)?drive\.google\..+$/,
    yandex: /^(https?:\/\/)?disk\.yandex\..+$/,
    mail: /^(https?:\/\/)?cloud\.mail\..+$/,
  },
  Ws = {
    youtube: new RegExp("(?<=v=|v\\/|d\\/|be\\/|embed\\/)[\\w-]+"),
    short: new RegExp("(?<=v=|v\\/|d\\/|be\\/|embed\\/)[\\w-]+"),
    vk: /(-?(\d+)_(\d+))/,
    google: new RegExp("(?<=(file\\/d\\/))[\\w-]+"),
    yandex: new RegExp("(?<=i\\/)[\\w-]+"),
    mail: /$/,
    tiktok: new RegExp("(?<=video\\/|\\.com\\/)[\\w-]+"),
  },
  Sq = async (e) => {
    var t, n, r, o, i, s;
    if ((t = e.match(zs.youtube)) != null && t[0])
      return e.includes("youtube.com/shorts")
        ? {
            sourceName: "short",
            url: `https://www.youtube.com/embed/${(n = e.match(Ws.short)) == null ? void 0 : n[0]}?controls=0&autoplay=1&modestbranding=0&showinfo=0&disablekb=1&mute=1&loop=1`,
          }
        : {
            sourceName: "youtube",
            url: `https://www.youtube.com/embed/${(r = e.match(Ws.youtube)) == null ? void 0 : r[0]}?controls=0&autoplay=1&modestbranding=0&showinfo=0&disablekb=1&mute=1&loop=1`,
          };
    if (e.match(zs.vk)) {
      const a = (o = e.match(Ws.vk)) == null ? void 0 : o[0];
      return {
        sourceName: "vk",
        url: `https://vk.com/video_ext.php?oid=${a == null ? void 0 : a.split("_")[0]}&id=${a == null ? void 0 : a.split("_")[1]}`,
      };
    }
    if (e.match(zs.tiktok)) {
      const a = ((i = e.match(Ws.tiktok)) == null ? void 0 : i[0]) ?? "";
      if (/[a-zA-Z]/.test(a)) {
        try {
          const { data: l } = await It.get("https://www.tiktok.com/oembed", { params: { url: e } });
          return {
            sourceName: "tiktok",
            url: `https://www.tiktok.com/embed/v2/${l.embed_product_id}?embedFrom=embed_page_preview`,
          };
        } catch {}
        return { sourceName: "tiktok", url: `https://www.tiktok.com/embed/v2/${a}?embedFrom=embed_page_preview` };
      }
      return { sourceName: "tiktok", url: `https://www.tiktok.com/embed/v2/${a}?embedFrom=embed_page_preview` };
    }
    if (e.match(zs.google))
      return {
        sourceName: "google",
        url: `https://drive.google.com/file/d/${(s = e.match(Ws.google)) == null ? void 0 : s[0]}/preview`,
      };
    if (e.match(zs.yandex)) {
      const a = e.match(Ws.yandex);
      try {
        const { data: l } = await It.get("https://cloud-api.yandex.net/v1/disk/public/resources", {
          params: { public_key: `https://disk.yandex.ru/i/${a}` },
        });
        return { sourceName: "yandex", url: l.file };
      } catch {}
      return { sourceName: "yandex", url: "" };
    }
    return e.match(zs.mail) ? { sourceName: "mail", url: e } : { sourceName: "custom", url: e };
  };
function W5({ videoUrl: e, containerSX: t }) {
  const { data: n, error: r, isLoading: o } = by(["video", e], (i) => Sq(i[1]));
  return f.jsx(H, {
    sx: {
      width: "100%",
      height: "100%",
      minHeight: (n == null ? void 0 : n.sourceName) === "tiktok" ? "740px" : 0,
      "& iframe": { width: "100%", height: "100%" },
      ...t,
    },
    children: o
      ? f.jsx(K9, {})
      : !n || r
        ? f.jsx(Xs, { error: r ?? new Error() })
        : n.sourceName === "custom" || n.sourceName === "yandex"
          ? f.jsx(H, {
              component: "video",
              sx: { width: "100%", height: "100%" },
              autoPlay: !0,
              controls: !0,
              muted: !0,
              src: n.url,
            })
          : f.jsx(H, {
              component: "iframe",
              src: n.url,
              title: n.sourceName,
              allow:
                "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
              allowFullScreen: !0,
              frameBorder: 0,
            }),
  });
}
const kq = ({ currentQuestion: e }) => {
  const t = Re();
  return f.jsxs(H, {
    children: [
      f.jsx(xe, {
        variant: "h5",
        sx: { paddingBottom: "25px", color: t.palette.text.primary, wordBreak: "break-word" },
        children: e.title,
      }),
      f.jsx(xe, { color: t.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.content.text }),
      f.jsx(H, {
        sx: { display: "flex", flexDirection: "column", width: "100%", marginTop: "20px" },
        children: e.content.useImage
          ? e.content.back &&
            f.jsx(H, {
              sx: { borderRadius: "12px", border: "1px solid #9A9AAF", overflow: "hidden" },
              onClick: (n) => n.preventDefault(),
              children: f.jsx(
                "img",
                {
                  src: e.content.back,
                  alt: "",
                  style: { display: "block", width: "100%", height: "100%", objectFit: "contain" },
                },
                e.id
              ),
            })
          : f.jsx(W5, {
              containerSX: {
                width: "100%",
                height: "calc(100% - 270px)",
                maxHeight: "80%",
                objectFit: "contain",
                aspectRatio: "16 / 9",
              },
              videoUrl: e.content.video,
            }),
      }),
    ],
  });
};
function Tq({ color: e, width: t = 30 }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsxs("svg", {
      width: t,
      height: t,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", { d: "M5 27V6", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", {
          d: "M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158",
          fill: e,
        }),
        f.jsx("path", {
          d: "M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158",
          stroke: e,
          strokeWidth: "1.6",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
function Mq({ color: e, width: t = 30, sx: n }) {
  return f.jsx(H, {
    sx: { height: "50px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center", ...n },
    children: f.jsx("svg", {
      width: t,
      height: t,
      viewBox: "0 0 28 27",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: f.jsx("path", {
        d: "M14.551 21.8375L20.851 25.8375C21.6635 26.35 22.6635 25.5875 22.426 24.65L20.601 17.475C20.5516 17.2762 20.5595 17.0674 20.6236 16.8728C20.6877 16.6781 20.8056 16.5056 20.9635 16.375L26.6135 11.6625C27.351 11.05 26.976 9.81253 26.0135 9.75003L18.6385 9.27503C18.4372 9.26332 18.2438 9.19325 18.0817 9.07338C17.9197 8.95351 17.7961 8.78902 17.726 8.60003L14.976 1.67503C14.9032 1.47491 14.7706 1.30204 14.5961 1.17988C14.4217 1.05772 14.2139 0.992188 14.001 0.992188C13.788 0.992188 13.5802 1.05772 13.4058 1.17988C13.2314 1.30204 13.0988 1.47491 13.026 1.67503L10.276 8.60003C10.2059 8.78902 10.0823 8.95351 9.92021 9.07338C9.75816 9.19325 9.5647 9.26332 9.36347 9.27503L1.98847 9.75003C1.02597 9.81253 0.650971 11.05 1.38847 11.6625L7.03847 16.375C7.19639 16.5056 7.3142 16.6781 7.37834 16.8728C7.44247 17.0674 7.45032 17.2762 7.40097 17.475L5.71347 24.125C5.42597 25.25 6.62597 26.1625 7.58847 25.55L13.451 21.8375C13.6154 21.733 13.8062 21.6775 14.001 21.6775C14.1958 21.6775 14.3866 21.733 14.551 21.8375Z",
        fill: e,
        stroke: e,
        strokeWidth: "1.6",
        strokeLinecap: "round",
        strokeLinejoin: "round",
      }),
    }),
  });
}
function Eq({ color: e, width: t = 30 }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsx("svg", {
      width: t,
      height: t,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: f.jsx("path", {
        d: "M3 11.3333H29M3 20.6667H29M13.6364 2L8.90909 30M23.0909 2L18.3636 30",
        stroke: e,
        strokeWidth: "3",
        strokeLinecap: "round",
        strokeLinejoin: "round",
      }),
    }),
  });
}
function Pq({ color: e, width: t }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsx("svg", {
      width: t,
      height: t,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: f.jsx("path", {
        d: "M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z",
        fill: e,
        stroke: e,
        strokeWidth: "1.6",
        strokeLinecap: "round",
        strokeLinejoin: "round",
      }),
    }),
  });
}
function Aq({ color: e, width: t }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsxs("svg", {
      width: t,
      height: t,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", { d: "M11 29H21", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", {
          d: "M9.83761 20.8739C8.6471 19.9482 7.68288 18.7637 7.01801 17.4102C6.35313 16.0566 6.00504 14.5694 6.00011 13.0614C5.97511 7.6364 10.3376 3.1239 15.7626 2.9989C17.8622 2.94913 19.9242 3.56166 21.6561 4.74961C23.388 5.93756 24.7019 7.64064 25.4115 9.6173C26.1211 11.594 26.1904 13.7439 25.6094 15.7621C25.0285 17.7803 23.827 19.5644 22.1751 20.8614C21.8102 21.1435 21.5146 21.5052 21.311 21.919C21.1073 22.3328 21.001 22.7877 21.0001 23.2489V23.9989C21.0001 24.2641 20.8948 24.5185 20.7072 24.706C20.5197 24.8935 20.2653 24.9989 20.0001 24.9989H12.0001C11.7349 24.9989 11.4805 24.8935 11.293 24.706C11.1055 24.5185 11.0001 24.2641 11.0001 23.9989V23.2489C10.997 22.7912 10.8909 22.34 10.6896 21.9289C10.4884 21.5177 10.1972 21.1572 9.83761 20.8739V20.8739Z",
          stroke: e,
          strokeWidth: "1.6",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          fillRule: "evenodd",
          clipRule: "evenodd",
          d: "M7.01801 17.4102C7.68288 18.7637 8.6471 19.9482 9.83761 20.8739C10.1972 21.1572 10.4884 21.5177 10.6896 21.9289C10.8909 22.34 10.997 22.7912 11.0001 23.2489V23.9989C11.0001 24.2641 11.1055 24.5185 11.293 24.706C11.4805 24.8935 11.7349 24.9989 12.0001 24.9989H20.0001C20.2653 24.9989 20.5197 24.8935 20.7072 24.706C20.8948 24.5185 21.0001 24.2641 21.0001 23.9989V23.2489C21.001 22.7877 21.1073 22.3328 21.311 21.919C21.5146 21.5052 21.8102 21.1435 22.1751 20.8614C23.827 19.5644 25.0285 17.7803 25.6094 15.7621C26.1904 13.7439 26.1211 11.594 25.4115 9.6173C24.7019 7.64064 23.388 5.93756 21.6561 4.74961C19.9242 3.56166 17.8622 2.94913 15.7626 2.9989C10.3376 3.1239 5.97511 7.6364 6.00011 13.0614C6.00504 14.5694 6.35313 16.0566 7.01801 17.4102ZM17.1464 6.31013C16.7108 6.23629 16.2978 6.52956 16.2239 6.96517C16.1501 7.40078 16.4434 7.81378 16.879 7.88762C17.9379 8.06713 18.915 8.57088 19.6754 9.32936C20.4358 10.0878 20.9421 11.0636 21.1243 12.1221C21.1992 12.5575 21.613 12.8497 22.0484 12.7748C22.4838 12.6998 22.7761 12.2861 22.7011 11.8507C22.4627 10.4657 21.8003 9.18896 20.8053 8.19655C19.8104 7.20413 18.5319 6.545 17.1464 6.31013Z",
          fill: e,
        }),
      ],
    }),
  });
}
function _q({ color: e, width: t }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsxs("svg", {
      width: t,
      height: t,
      viewBox: "0 0 40 40",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M8 17H14V30H8C7.73478 30 7.48043 29.8946 7.29289 29.7071C7.10536 29.5196 7 29.2652 7 29V18C7 17.7348 7.10536 17.4804 7.29289 17.2929C7.48043 17.1054 7.73478 17 8 17V17Z",
          stroke: e,
          strokeWidth: "2",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",
          fill: e,
        }),
        f.jsx("path", {
          d: "M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",
          stroke: e,
          strokeWidth: "1.6",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
function Dq({ color: e, width: t }) {
  return f.jsx(H, {
    sx: { height: "30px", width: t + "px", display: "flex", alignItems: "center", justifyContent: "center" },
    children: f.jsxs("svg", {
      width: t,
      height: t,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M7 7V13.8875C7 18.85 10.975 22.9625 15.9375 23C17.1246 23.0082 18.3017 22.7815 19.4008 22.3329C20.5 21.8843 21.4995 21.2227 22.3419 20.3862C23.1843 19.5496 23.8528 18.5547 24.309 17.4586C24.7652 16.3626 25 15.1872 25 14V7C25 6.73478 24.8946 6.48043 24.7071 6.29289C24.5196 6.10536 24.2652 6 24 6H8C7.73478 6 7.48043 6.10536 7.29289 6.29289C7.10536 6.48043 7 6.73478 7 7Z",
          fill: e,
          stroke: e,
          strokeWidth: "1.6",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", { d: "M12 28H20", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", { d: "M16 23V28", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
        f.jsx("path", {
          d: "M24.7754 16H26.0004C27.0613 16 28.0787 15.5786 28.8288 14.8284C29.579 14.0783 30.0004 13.0609 30.0004 12V10C30.0004 9.73478 29.895 9.48043 29.7075 9.29289C29.52 9.10536 29.2656 9 29.0004 9H25.0004",
          stroke: e,
          strokeWidth: "2",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M7.25078 16H5.98828C4.92742 16 3.91 15.5786 3.15985 14.8284C2.40971 14.0783 1.98828 13.0609 1.98828 12V10C1.98828 9.73478 2.09364 9.48043 2.28117 9.29289C2.46871 9.10536 2.72306 9 2.98828 9H6.98828",
          stroke: e,
          strokeWidth: "2",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
const Rq = [
    { name: "star", icon: (e, t) => f.jsx(Mq, { width: t, color: e }) },
    { name: "trophie", icon: (e, t) => f.jsx(Dq, { width: t, color: e }) },
    { name: "flag", icon: (e, t) => f.jsx(Tq, { width: t, color: e }) },
    { name: "heart", icon: (e, t) => f.jsx(Pq, { width: t, color: e }) },
    { name: "like", icon: (e, t) => f.jsx(_q, { width: t, color: e }) },
    { name: "bubble", icon: (e, t) => f.jsx(Aq, { width: t, color: e }) },
    { name: "hashtag", icon: (e, t) => f.jsx(Eq, { width: t, color: e }) },
  ],
  Iq = ({ currentQuestion: e }) => {
    const { updateAnswer: t } = Ne((u) => u),
      n = Ne((u) => u.answers),
      r = Re(),
      o = pt() < 650,
      i = pt() < 750,
      { answer: s } = n.find(({ questionId: u }) => u === e.id) ?? {},
      a = Rq.find(({ name: u }) => u === e.content.form),
      l = async (u) => {
        t(e.id, String(u), 0);
      };
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: r.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          sx: { display: "inline-flex", alignItems: "center", gap: "20px", marginTop: "20px", flexDirection: "column" },
          children: [
            f.jsx(H, {
              sx: { display: "inline-block", width: "100%" },
              children: f.jsx(pB, {
                value: Number(s || 0),
                onChange: (u, c) => l(c),
                sx: {
                  height: "50px",
                  opacity: "1!important",
                  "& .MuiRating-root.Mui-disabled": { opacity: "1!important" },
                  "& .MuiRating-icon": { mr: o ? void 0 : "15px" },
                },
                max: e.content.steps,
                icon: a == null ? void 0 : a.icon(r.palette.primary.main, o ? 30 : i ? 40 : 50),
                emptyIcon: a == null ? void 0 : a.icon("#9A9AAF", o ? 30 : i ? 40 : 50),
              }),
            }),
            f.jsxs(H, {
              sx: { display: "flex", justifyContent: "space-between", gap: 2, width: "100%" },
              children: [
                f.jsx(xe, { sx: { color: "#9A9AAF" }, children: e.content.ratingNegativeDescription }),
                f.jsx(xe, { sx: { color: "#9A9AAF" }, children: e.content.ratingPositiveDescription }),
              ],
            }),
          ],
        }),
      ],
    });
  };
function Oq(e, { color: t = "#7E2AEA" }) {
  return (
    Re(),
    f.jsx(H, {
      ...e,
      sx: {
        top: "25%",
        height: "24px",
        width: "24px",
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
      },
      children: f.jsx("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        width: "24",
        height: "24",
        viewBox: "0 0 24 24",
        fill: "none",
        children: f.jsx("path", {
          d: "M19.5 9L12 16.5L4.5 9",
          stroke: "currentColor",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      }),
    })
  );
}
const Fq = ({
    items: e,
    activeItemIndex: t = 0,
    empty: n,
    onChange: r,
    sx: o,
    placeholder: i = "",
    colorMain: s = "#7E2AEA",
    colorPlaceholder: a = "#9A9AAF",
  }) => {
    const [l, u] = b.useState(n ? -1 : t),
      c = Re();
    b.useEffect(() => {
      u(t);
    }, [t]);
    const d = (p) => {
      const h = Number(p.target.value);
      if (h === l) {
        u(-1), r == null || r("", -1);
        return;
      }
      u(h), r == null || r(e[h], h);
    };
    return f.jsx(vc, {
      fullWidth: !0,
      size: "small",
      sx: { width: "100%", height: "48px", ...o },
      children: f.jsx(xc, {
        displayEmpty: !0,
        renderValue: (p) => (p ? e[Number(p)] : f.jsx(xe, { sx: { color: a }, children: i })),
        id: "display-select",
        variant: "outlined",
        value: l === -1 ? "" : String(l),
        onChange: d,
        sx: {
          width: "100%",
          height: "48px",
          borderRadius: "8px",
          "& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${s}`, borderRadius: "10px" },
          "& .MuiSelect-icon": { color: c.palette.primary.main },
        },
        MenuProps: {
          PaperProps: {
            sx: {
              mt: "8px",
              p: "4px",
              borderRadius: "8px",
              border: "1px solid #EEE4FC",
              boxShadow: "0px 8px 24px rgba(210, 208, 225, 0.4)",
            },
          },
          MenuListProps: {
            sx: {
              py: 0,
              display: "flex",
              flexDirection: "column",
              gap: "8px",
              maxWidth: "1380px",
              "& .Mui-selected": { backgroundColor: "#F2F3F7", color: s },
            },
          },
        },
        inputProps: {
          sx: {
            color: c.palette.text.primary,
            display: "block",
            px: "9px",
            gap: "20px",
            "& .MuiTypography-root": { overflow: "hidden", textOverflow: "ellipsis" },
          },
        },
        IconComponent: (p) => f.jsx(Oq, { ...p }),
        children: e.map((p, h) =>
          f.jsx(
            i5,
            {
              value: h,
              sx: {
                display: "flex",
                alignItems: "center",
                gap: "20px",
                padding: "10px",
                borderRadius: "5px",
                color: a,
                whiteSpace: "normal",
                wordBreak: "break-word",
              },
              children: p,
            },
            p + h
          )
        ),
      }),
    });
  },
  Lq = ({ currentQuestion: e }) => {
    const { settings: t } = dt(),
      { updateAnswer: n, deleteAnswer: r } = Ne((l) => l),
      o = Ne((l) => l.answers),
      i = Re(),
      { answer: s } = o.find(({ questionId: l }) => l === e.id) ?? {},
      a = async (l) => {
        if (l < 0) {
          r(e.id);
          return;
        }
        n(e.id, String(l), 0);
      };
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsx(H, {
          sx: { display: "flex", flexDirection: "column", width: "100%", marginTop: "20px" },
          children: f.jsx(Fq, {
            placeholder: e.content.default,
            activeItemIndex: s ? Number(s) : -1,
            items: e.content.variants.map(({ answer: l }) => l),
            colorMain: i.palette.primary.main,
            sx: {
              "& .MuiSelect-select.MuiSelect-outlined": { zIndex: 1 },
              "& .MuiOutlinedInput-notchedOutline": {
                background: t.cfg.design
                  ? Be[t.cfg.theme].isLight
                    ? "#F2F3F7"
                    : "rgba(255,255,255, 0.3)"
                  : "transparent",
              },
            },
            onChange: (l, u) => a(u),
          }),
        }),
      ],
    });
  },
  X6 = ({ currentQuestion: e, answer: t }) => {
    const { settings: n } = dt(),
      { updateAnswer: r } = Ne((c) => c),
      o = pt() < 650,
      i = pt() < 850,
      s = Re(),
      a = async ({ target: c }) => {
        r(e.id, c.value, 0);
      },
      l = b.useMemo(
        () =>
          e.content.editedUrlImagesList !== void 0 && e.content.editedUrlImagesList !== null
            ? e.content.editedUrlImagesList[o ? "mobile" : i ? "tablet" : "desktop"]
            : e.content.back,
        [e]
      );
    let u = window.location.pathname === "/bf8cae3a-e150-479d-befa-7f264087b223";
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: s.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          sx: {
            display: "flex",
            width: "100%",
            marginTop: "20px",
            flexDirection: u ? "column" : o ? "column-reverse" : void 0,
            alignItems: "center",
          },
          children: [
            f.jsx(tf, {
              placeholder: e.content.placeholder,
              value: t || "",
              onChange: a,
              sx: {
                "& .MuiOutlinedInput-root": {
                  background: n.cfg.design
                    ? Be[n.cfg.theme].isLight
                      ? "#F2F3F7"
                      : "rgba(255,255,255, 0.3)"
                    : "transparent",
                },
                "& .MuiOutlinedInput-notchedOutline": { borderColor: "#9A9AAF" },
                "&:focus-visible": { borderColor: s.palette.primary.main },
              },
            }),
            l &&
              l !== " " &&
              l !== null &&
              f.jsx(H, {
                sx: {
                  maxWidth: u ? void 0 : "400px",
                  width: u ? "auto" : "100%",
                  height: u ? "auto" : "300px",
                  margin: "15px",
                },
                onClick: (c) => c.preventDefault(),
                children: f.jsx(
                  "img",
                  { src: l, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" },
                  e.id
                ),
              }),
          ],
        }),
      ],
    });
  },
  Nq = T0,
  $q = [
    { horizontal: !0 },
    { horizontal: !1 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !1 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !1 },
    { horizontal: !0 },
    { horizontal: !1 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !1 },
    { horizontal: !1 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
    { horizontal: !0 },
  ],
  Bq = ({ currentQuestion: e, answer: t, stepNumber: n }) => {
    const { settings: r } = dt(),
      { updateAnswer: o } = Ne((u) => u),
      i = $q[Number(n) - 1].horizontal,
      s = Re(),
      a = pt() < 650,
      l = async ({ target: u }) => {
        o(e.id, u.value, 0);
      };
    return f.jsxs(H, {
      sx: { display: "flex", flexDirection: a ? "column" : void 0, alignItems: a ? "center" : void 0 },
      children: [
        f.jsxs(H, {
          sx: {
            display: "flex",
            width: "100%",
            marginTop: "20px",
            flexDirection: "column",
            alignItems: "center",
            gap: "20px",
          },
          children: [
            f.jsx(xe, {
              variant: "h5",
              color: s.palette.text.primary,
              sx: { wordBreak: "break-word" },
              children: e.title,
            }),
            i &&
              e.content.back &&
              e.content.back !== " " &&
              f.jsx(H, {
                sx: { margin: "30px", width: "50vw", maxHeight: "550px" },
                onClick: (u) => u.preventDefault(),
                children: f.jsx(
                  "img",
                  { src: e.content.back, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" },
                  e.id
                ),
              }),
            f.jsx(Nq, {
              autoFocus: !0,
              multiline: !0,
              maxRows: 4,
              placeholder: e.content.placeholder,
              value: t || "",
              onChange: l,
              inputProps: {
                maxLength: 400,
                background: r.cfg.design
                  ? Be[r.cfg.theme].isLight
                    ? "#F2F3F7"
                    : "rgba(154,154,175, 0.2)"
                  : "transparent",
              },
              sx: {
                width: "100%",
                "& .MuiOutlinedInput-root": { backgroundColor: r.cfg.design ? "rgba(154,154,175, 0.2)" : "#FFFFFF" },
                "&:focus-visible": { borderColor: s.palette.primary.main },
              },
            }),
          ],
        }),
        !i &&
          e.content.back &&
          e.content.back !== " " &&
          f.jsx(H, {
            sx: { margin: "15px", width: "40vw" },
            onClick: (u) => u.preventDefault(),
            children: f.jsx(
              "img",
              { src: e.content.back, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" },
              e.id
            ),
          }),
      ],
    });
  },
  jq = ({ currentQuestion: e, stepNumber: t }) => {
    const { settings: n } = dt(),
      r = Ne((i) => i.answers),
      { answer: o } = r.find(({ questionId: i }) => i === e.id) ?? {};
    switch (n.cfg.spec) {
      case !0:
        return f.jsx(Bq, { currentQuestion: e, answer: o, stepNumber: t });
      case void 0:
        return f.jsx(X6, { currentQuestion: e, answer: o });
      default:
        return f.jsx(X6, { currentQuestion: e, answer: o });
    }
  },
  Vq = ({ questionId: e, variant: t, largeCheck: n, ownPlaceholder: r }) => {
    var l;
    const o = Re(),
      i = Ne((u) => u.ownVariants),
      { updateOwnVariant: s } = Ne((u) => u),
      a = ((l = i[i.findIndex((u) => u.id === t.id)]) == null ? void 0 : l.variant.answer) || "";
    return n
      ? f.jsx(yc, {
          placeholder: r || "|",
          style: {
            resize: "none",
            width: "100%",
            fontSize: "16px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
            letterSpacing: "-0.4px",
            wordSpacing: "-3px",
            outline: "0px none",
            backgroundColor: "inherit",
            border: "none",
            "&::-webkit-scrollbar": { width: "4px" },
            "&::-webkit-scrollbar-thumb": { backgroundColor: o.palette.primary.main },
            scrollbarColor: o.palette.primary.main,
          },
          value: a,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        })
      : f.jsx(ks, {
          placeholder: r || "|",
          sx: {
            backgroundColor: "inherit",
            width: "100%",
            fontSize: "18px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
          },
          value: a,
          disableUnderline: !0,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        });
  },
  Hq = ({
    questionId: e,
    isMulti: t,
    variant: n,
    answer: r,
    index: o,
    own: i = !1,
    questionLargeCheck: s,
    ownPlaceholder: a,
  }) => {
    const { settings: l } = dt(),
      u = Re(),
      { updateAnswer: c, deleteAnswer: d } = Ne((h) => h),
      p = async (h) => {
        h.preventDefault();
        const m = n.id;
        if (t) {
          const v = typeof r != "string" ? r || [] : [];
          return c(e, v.includes(m) ? (v == null ? void 0 : v.filter((C) => C !== m)) : [...v, m], n.points || 0);
        }
        c(e, m, r === m ? 0 : n.points || 0), r === m && d(e);
      };
    return f.jsx(
      Ka,
      {
        sx: {
          position: "relative",
          margin: "0",
          mt: i ? "10px" : "0",
          borderRadius: "12px",
          color: u.palette.text.primary,
          padding: "15px",
          border: "1px solid",
          borderColor: r === n.id ? u.palette.primary.main : "#9A9AAF",
          backgroundColor: l.cfg.design
            ? Be[l.cfg.theme].isLight
              ? "#FFFFFF"
              : "rgba(255,255,255, 0.3)"
            : Be[l.cfg.theme].isLight
              ? "white"
              : u.palette.background.default,
          display: "flex",
          maxWidth: "685px",
          maxHeight: "85px",
          justifyContent: "space-between",
          width: "100%",
          "&:hover": { borderColor: u.palette.primary.main },
          "&.MuiFormControl-root": { width: "100%" },
          "& .MuiFormControlLabel-label": {
            width: "100%",
            maxHeight: "100%",
            wordBreak: "break-word",
            height: n.answer.length <= 60 ? void 0 : "60px",
            overflow: "auto",
            lineHeight: "normal",
            "&::-webkit-scrollbar": { width: "4px" },
            "&::-webkit-scrollbar-thumb": { backgroundColor: u.palette.primary.main },
            scrollbarColor: u.palette.primary.main,
          },
          "& .MuiFormControlLabel-label.Mui-disabled": { color: u.palette.text.primary },
        },
        value: o,
        labelPlacement: "start",
        control: t
          ? f.jsx(Xa, {
              checked: !!(r != null && r.includes(n.id)),
              checkedIcon: f.jsx(Si, { color: u.palette.primary.main }),
              icon: f.jsx(ki, {}),
            })
          : f.jsx(Xa, { checkedIcon: f.jsx(Si, { color: u.palette.primary.main }), icon: f.jsx(ki, {}) }),
        label: i
          ? f.jsxs(f.Fragment, {
              children: [
                f.jsx(xe, {
                  sx: { color: u.palette.text.primary, fontSize: "14px", position: "absolute", top: "-23px" },
                  children: "Enter your answer",
                }),
                f.jsx(Vq, { questionId: e, variant: n, largeCheck: s, ownPlaceholder: a || "|" }),
              ],
            })
          : n.answer,
        onClick: p,
      },
      n.id
    );
  },
  zq = ({ currentQuestion: e }) => {
    var d;
    const t = Re(),
      n = pt() < 650,
      r = pt() < 850,
      o = Ne((p) => p.answers),
      i = Ne((p) => p.ownVariants),
      s = Ne((p) => p.updateOwnVariant),
      a = (d = o.find(({ questionId: p }) => p === e.id)) == null ? void 0 : d.answer,
      l = i.find((p) => p.id === e.id),
      u = e.content.multi ? L9 : k0;
    b.useEffect(() => {
      l || s(e.id, "");
    }, []);
    const c = b.useMemo(
      () =>
        e.content.editedUrlImagesList !== void 0 && e.content.editedUrlImagesList !== null
          ? e.content.editedUrlImagesList[n ? "mobile" : r ? "tablet" : "desktop"]
          : e.content.back,
      [e]
    );
    if (re.isMoment(a)) throw new Error("Answer is Moment in Variant question");
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: t.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          id: "batya",
          sx: {
            display: "flex",
            gap: "20px",
            flexDirection: n ? "column-reverse" : void 0,
            alignItems: n ? "center" : void 0,
          },
          children: [
            f.jsx(u, {
              name: e.id.toString(),
              value: e.content.variants.findIndex(({ id: p }) => a === p),
              sx: {
                display: "flex",
                flexWrap: "wrap",
                flexDirection: "row",
                justifyContent: "space-between",
                flexBasis: "100%",
                marginTop: "20px",
                width: n ? "100%" : void 0,
              },
              children: f.jsx(H, {
                sx: { display: "flex", flexDirection: "row", flexWrap: "wrap", width: "100%", gap: "20px" },
                children: e.content.variants
                  .filter((p) => (p.isOwn ? p.isOwn && e.content.own : !0))
                  .map((p, h) => {
                    var m;
                    return f.jsx(
                      Hq,
                      {
                        questionId: e.id,
                        isMulti: e.content.multi,
                        variant: p,
                        answer: a,
                        index: h,
                        own: !!p.isOwn,
                        questionLargeCheck: e.content.largeCheck,
                        ownPlaceholder: ((m = e.content) == null ? void 0 : m.ownPlaceholder) || "",
                      },
                      p.id
                    );
                  }),
              }),
            }),
            c &&
              c !== " " &&
              c !== null &&
              f.jsx(H, {
                sx: { maxWidth: "400px", width: "100%", height: "300px" },
                onClick: (p) => p.preventDefault(),
                children: f.jsx(
                  "img",
                  { src: c, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" },
                  e.id
                ),
              }),
          ],
        }),
      ],
    });
  },
  q6 = ({ questionId: e, variant: t, largeCheck: n, ownPlaceholder: r }) => {
    var l;
    const o = Re(),
      i = Ne((u) => u.ownVariants),
      { updateOwnVariant: s } = Ne((u) => u),
      a = ((l = i[i.findIndex((u) => u.id === t.id)]) == null ? void 0 : l.variant.answer) || "";
    return n
      ? f.jsx(yc, {
          placeholder: r || "|",
          style: {
            resize: "none",
            width: "100%",
            fontSize: "16px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
            letterSpacing: "-0.4px",
            wordSpacing: "-3px",
            outline: "0px none",
            backgroundColor: "inherit",
            border: "none",
            "&::-webkit-scrollbar": { width: "4px" },
            "&::-webkit-scrollbar-thumb": { backgroundColor: o.palette.primary.main },
            scrollbarColor: o.palette.primary.main,
            maxHeight: "44px",
            overflow: "auto",
          },
          value: a,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        })
      : f.jsx(ks, {
          placeholder: r || "|",
          sx: {
            backgroundColor: "inherit",
            width: "100%",
            fontSize: "18px",
            color: a.length === 0 ? "ownPlaceholder" : o.palette.text.primary,
          },
          value: a,
          disableUnderline: !0,
          onClick: (u) => u.stopPropagation(),
          onChange: (u) => {
            s(t.id, u.target.value);
          },
        });
  },
  Wq = ({
    questionId: e,
    variant: t,
    index: n,
    isSending: r,
    setIsSending: o,
    questionLargeCheck: i,
    ownPlaceholder: s,
    answer: a,
  }) => {
    const l = Re(),
      { settings: u } = dt(),
      { updateAnswer: c, deleteAnswer: d } = Ne((h) => h),
      p = async (h) => {
        h.preventDefault(), c(e, t.id, t.points || 0), a === t.id && d(e);
      };
    return t != null && t.isOwn
      ? f.jsxs(H, {
          children: [
            f.jsx(xe, {
              sx: { color: l.palette.text.primary, fontSize: "14px", pl: "15px" },
              children: "Enter your answer",
            }),
            f.jsx(
              Ka,
              {
                disabled: r,
                sx: {
                  marginBottom: "15px",
                  borderRadius: "12px",
                  padding: "20px",
                  color: l.palette.text.primary,
                  backgroundColor: u.cfg.design
                    ? Be[u.cfg.theme].isLight
                      ? "#FFFFFF"
                      : "rgba(255,255,255, 0.3)"
                    : Be[u.cfg.theme].isLight
                      ? "white"
                      : l.palette.background.default,
                  border: "1px solid",
                  borderColor: a === t.id ? l.palette.primary.main : "#9A9AAF",
                  display: "flex",
                  margin: 0,
                  justifyContent: "space-between",
                  "&:hover": { borderColor: l.palette.primary.main },
                  "& .MuiFormControlLabel-label": {
                    wordBreak: "break-word",
                    height: t.answer.length <= 60 ? void 0 : "60px",
                    overflow: "auto",
                    lineHeight: "normal",
                    width: "100%",
                    "&::-webkit-scrollbar": { width: "4px" },
                    "&::-webkit-scrollbar-thumb": { backgroundColor: l.palette.primary.main },
                    scrollbarColor: l.palette.primary.main,
                  },
                  "& .MuiFormControlLabel-label.Mui-disabled": { color: l.palette.text.primary },
                },
                labelPlacement: "start",
                value: n,
                onClick: p,
                label:
                  t != null && t.isOwn
                    ? f.jsx(q6, { questionId: e, variant: t, largeCheck: i, ownPlaceholder: s || "|" })
                    : t.answer,
                control: f.jsx(Xa, { checkedIcon: f.jsx(Si, { color: l.palette.primary.main }), icon: f.jsx(ki, {}) }),
              },
              t.id
            ),
          ],
        })
      : f.jsx(
          Ka,
          {
            disabled: r,
            sx: {
              marginBottom: "15px",
              borderRadius: "12px",
              padding: "20px",
              color: l.palette.text.primary,
              backgroundColor: u.cfg.design
                ? Be[u.cfg.theme].isLight
                  ? "#FFFFFF"
                  : "rgba(255,255,255, 0.3)"
                : Be[u.cfg.theme].isLight
                  ? "white"
                  : l.palette.background.default,
              border: "1px solid",
              borderColor: a === t.id ? l.palette.primary.main : "#9A9AAF",
              display: "flex",
              margin: 0,
              justifyContent: "space-between",
              "&:hover": { borderColor: l.palette.primary.main },
              "& .MuiFormControlLabel-label": {
                wordBreak: "break-word",
                height: t.answer.length <= 60 ? void 0 : "60px",
                overflow: "auto",
                lineHeight: "normal",
                width: "100%",
                "&::-webkit-scrollbar": { width: "4px" },
                "&::-webkit-scrollbar-thumb": { backgroundColor: l.palette.primary.main },
                scrollbarColor: l.palette.primary.main,
              },
              "& .MuiFormControlLabel-label.Mui-disabled": { color: l.palette.text.primary },
            },
            labelPlacement: "start",
            value: n,
            onClick: p,
            label:
              t != null && t.isOwn
                ? f.jsx(q6, { questionId: e, variant: t, largeCheck: i, ownPlaceholder: s || "|" })
                : t.answer,
            control: f.jsx(Xa, { checkedIcon: f.jsx(Si, { color: l.palette.primary.main }), icon: f.jsx(ki, {}) }),
          },
          t.id
        );
  };
function Gq() {
  return f.jsxs("svg", {
    width: "100%",
    height: "100%",
    viewBox: "0 -70 800 535",
    fill: "none",
    display: "block",
    preserveAspectRatio: "xMidYMax meet",
    xmlns: "http://www.w3.org/2000/svg",
    children: [
      f.jsx("path", {
        fill: "#F0F0F0",
        d: "M555 47a47.003 47.003 0 0 1 29.014-43.422 46.999 46.999 0 0 1 61.408 61.408 46.997 46.997 0 0 1-76.656 15.248A47 47 0 0 1 555 47Z",
      }),
      f.jsx("path", {
        fill: "#F3F3F3",
        d: "M641.874 240.665c7.74-7.74 20.263-7.82 28.102-.181L1051 611.837 779.035 883.805 383.869 498.67l258.005-258.005Z",
      }),
      f.jsx("path", {
        fill: "#EDEDED",
        d: "M183.393 61.546c7.692-7.037 19.499-6.985 27.129.12l677.42 630.746-690.929 382.738L-397 592.531 183.393 61.546Z",
      }),
    ],
  });
}
const Uq = ({ currentQuestion: e }) => {
    const [t, n] = b.useState(!1),
      r = Ne((m) => m.answers),
      o = Ne((m) => m.ownVariants),
      i = Ne((m) => m.updateOwnVariant),
      s = Re(),
      a = pt() < 650,
      l = pt() < 850,
      { answer: u } = r.find(({ questionId: m }) => m === e.id) ?? {},
      c = o.find((m) => m.id === e.id),
      d = e.content.variants.find(({ id: m }) => u === m);
    b.useEffect(() => {
      c || i(e.id, "");
    }, []);
    const p = b.useMemo(() => {
        if (d !== void 0)
          return d.editedUrlImagesList !== void 0 && d.editedUrlImagesList !== null
            ? d.editedUrlImagesList[a ? "mobile" : l ? "tablet" : "desktop"]
            : d.extendedText;
      }, [d]),
      h = b.useMemo(
        () =>
          e.content.editedUrlImagesList !== void 0 && e.content.editedUrlImagesList !== null
            ? e.content.editedUrlImagesList[a ? "mobile" : l ? "tablet" : "desktop"]
            : e.content.back,
        [d]
      );
    if (re.isMoment(u)) throw new Error("Answer is Moment in Variant question");
    return f.jsxs(H, {
      children: [
        f.jsx(xe, { variant: "h5", color: s.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
        f.jsxs(H, {
          sx: {
            display: "flex",
            marginTop: "20px",
            flexDirection: a ? "column-reverse" : void 0,
            gap: "30px",
            alignItems: a ? "center" : void 0,
          },
          children: [
            f.jsx(k0, {
              name: e.id,
              value: e.content.variants.findIndex(({ id: m }) => u === m),
              sx: {
                display: "flex",
                flexWrap: "wrap",
                flexDirection: "row",
                justifyContent: "space-between",
                flexBasis: "100%",
                width: a ? "100%" : void 0,
              },
              children: f.jsx(H, {
                sx: {
                  display: "flex",
                  flexDirection: "column",
                  width: "100%",
                  gap: "20px",
                  "&:focus": { color: s.palette.text.primary },
                  "&:active": { color: s.palette.text.primary },
                },
                children: e.content.variants
                  .filter((m) => (m.isOwn ? m.isOwn && e.content.own : !0))
                  .map((m, v) => {
                    var C, y;
                    return f.jsx(
                      Wq,
                      {
                        questionId: e.id,
                        variant: m,
                        isSending: t,
                        setIsSending: n,
                        index: v,
                        questionLargeCheck: e.content.largeCheck,
                        ownPlaceholder: ((C = e.content) == null ? void 0 : C.ownPlaceholder) || "",
                        isMulti: !!((y = e.content) != null && y.multi),
                        answer: u,
                      },
                      m.id
                    );
                  }),
              }),
            }),
            f.jsx(H, {
              sx: {
                maxWidth: "450px",
                width: "100%",
                height: "450px",
                border: "1px solid #9A9AAF",
                borderRadius: "12px",
                overflow: "hidden",
                display: "flex",
                alignItems: "center",
                justifyContent: "center",
                backgroundColor: "#9A9AAF30",
                color: s.palette.text.primary,
                textAlign: "center",
              },
              onClick: (m) => m.preventDefault(),
              children: u
                ? p
                  ? f.jsx("img", { src: p, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" }, p)
                  : f.jsx(Gq, {})
                : h !== " " && h !== null && h.length > 0
                  ? f.jsx("img", { src: h, style: { width: "100%", height: "100%", objectFit: "cover" }, alt: "" })
                  : e.content.replText !== " " && e.content.replText.length > 0
                    ? e.content.replText
                    : (d != null && d.extendedText) || a
                      ? "Select an answer option below"
                      : "Select an answer option on the left",
            }),
          ],
        }),
      ],
    });
  },
  Yq = (e) =>
    f.jsxs("svg", {
      ...e,
      width: "750",
      height: "140",
      viewBox: "0 0 750 140",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("rect", { width: "750", height: "140", rx: "70", fill: "white" }),
        f.jsx("path", {
          d: "M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",
          fill: "#4D4D4D",
        }),
        f.jsxs("g", {
          clipPath: "url(#clip0_4819_14395)",
          children: [
            f.jsx("path", {
              fillRule: "evenodd",
              clipRule: "evenodd",
              d: "M461.886 33.8256C453.446 32.8479 447.622 41.9149 442.205 48.4691C437.452 54.221 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",
              fill: "#7E2AEA",
            }),
            f.jsx("circle", { cx: "482.884", cy: "95.6408", r: "4.65763", fill: "#7E2AEA" }),
            f.jsx("circle", { cx: "478.227", cy: "43.9516", r: "1.77434", fill: "#7E2AEA" }),
            f.jsx("path", {
              d: "M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9414 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2575V66.259ZM495.347 75.7562C494.384 76.9524 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0895 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5593 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.621 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",
              fill: "#151515",
            }),
            f.jsx("path", {
              d: "M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6198 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3101 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8412 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",
              fill: "#151515",
            }),
            f.jsx("path", {
              d: "M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.2049C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.2049V88.8521H589.379V66.2049C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",
              fill: "#151515",
            }),
            f.jsx("path", {
              d: "M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2181 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9111 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",
              fill: "#151515",
            }),
            f.jsx("path", {
              d: "M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2163 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.828 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",
              fill: "black",
            }),
          ],
        }),
        f.jsx("defs", {
          children: f.jsx("clipPath", {
            id: "clip0_4819_14395",
            children: f.jsx("rect", { width: "207", height: "80.129", fill: "white", transform: "translate(432 30)" }),
          }),
        }),
      ],
    }),
  Kq = (e) =>
    f.jsxs("svg", {
      ...e,
      width: "750",
      height: "140",
      viewBox: "0 0 750 140",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("rect", { width: "750", height: "140", rx: "70", fill: "#444757" }),
        f.jsx("path", {
          d: "M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",
          fill: "#F2F3F7",
        }),
        f.jsxs("g", {
          clipPath: "url(#clip0_4819_14374)",
          children: [
            f.jsx("path", {
              fillRule: "evenodd",
              clipRule: "evenodd",
              d: "M461.886 33.8256C453.446 32.8478 447.622 41.9149 442.205 48.4691C437.452 54.2209 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",
              fill: "#7E2AEA",
            }),
            f.jsx("circle", { cx: "482.884", cy: "95.6408", r: "4.65763", fill: "#7E2AEA" }),
            f.jsx("circle", { cx: "478.227", cy: "43.9516", r: "1.77434", fill: "#7E2AEA" }),
            f.jsx("path", {
              d: "M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9415 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2576V66.259ZM495.347 75.7562C494.384 76.9525 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0896 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5594 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.6211 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",
              fill: "#F9F9F9",
            }),
            f.jsx("path", {
              d: "M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6199 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3102 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8413 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",
              fill: "#F9F9F9",
            }),
            f.jsx("path", {
              d: "M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.205C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.205V88.8521H589.379V66.205C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",
              fill: "#F9F9F9",
            }),
            f.jsx("path", {
              d: "M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2182 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9112 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",
              fill: "#F9F9F9",
            }),
            f.jsx("path", {
              d: "M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2162 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.827 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",
              fill: "#F7F7F7",
            }),
          ],
        }),
        f.jsx("defs", {
          children: f.jsx("clipPath", {
            id: "clip0_4819_14374",
            children: f.jsx("rect", { width: "207", height: "80.129", fill: "white", transform: "translate(432 30)" }),
          }),
        }),
      ],
    }),
  Xq = ({ currentQuestion: e, currentQuestionStepNumber: t, nextButton: n, prevButton: r, questionSelect: o }) => {
    const i = Re(),
      { settings: s, show_badge: a, quizId: l } = dt();
    return f.jsx(H, {
      sx: {
        height: "100%",
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: s.cfg.design ? `url(${Vr[s.cfg.theme]})` : null,
      },
      children: f.jsxs(H, {
        sx: {
          height: "100%",
          display: "flex",
          flexDirection: "column",
          background: s.cfg.design
            ? Be[s.cfg.theme].isLight
              ? "transparent"
              : "linear-gradient(90deg,#272626, transparent)"
            : i.palette.background.default,
          overflow: "hidden",
        },
        children: [
          f.jsx(H, {
            sx: {
              overflow: "auto",
              width: "100%",
              flexGrow: 1,
              scrollbarWidth: "none",
              "&::-webkit-scrollbar": { width: 0 },
            },
            children: f.jsxs(H, {
              sx: {
                width: "100%",
                minHeight: "100%",
                maxWidth: "1440px",
                padding: "40px 25px 20px",
                margin: "0 auto",
                display: "flex",
                flexDirection: "column",
                justifyContent: "space-between",
              },
              children: [
                f.jsx(qq, { question: e, stepNumber: t }, e.id),
                a &&
                  f.jsx(rs, {
                    target: "_blank",
                    href: `https://${tc ? "" : "s"}quiz.pena.digital/answer/v1.0.0/logo?q=${l}`,
                    sx: { mt: "20px", alignSelf: "end" },
                    children: Be[s.cfg.theme].isLight
                      ? f.jsx(Yq, { style: { fontSize: "34px", width: "200px", height: "auto" } })
                      : f.jsx(Kq, { style: { fontSize: "34px", width: "200px", height: "auto" } }),
                  }),
              ],
            }),
          }),
          o,
          f.jsx(QX, { stepNumber: t, prevButton: r, nextButton: n }),
        ],
      }),
    });
  };
function qq({ question: e, stepNumber: t }) {
  switch (e.type) {
    case "variant":
      return f.jsx(zq, { currentQuestion: e });
    case "images":
      return f.jsx(xq, { currentQuestion: e });
    case "varimg":
      return f.jsx(Uq, { currentQuestion: e });
    case "emoji":
      return f.jsx(lq, { currentQuestion: e });
    case "text":
      return f.jsx(jq, { currentQuestion: e, stepNumber: t });
    case "select":
      return f.jsx(Lq, { currentQuestion: e });
    case "date":
      return f.jsx(rq, { currentQuestion: e });
    case "number":
      return f.jsx(wq, { currentQuestion: e });
    case "file":
      return f.jsx(mq, { currentQuestion: e });
    case "page":
      return f.jsx(kq, { currentQuestion: e });
    case "rating":
      return f.jsx(Iq, { currentQuestion: e });
    default:
      Ac(e);
  }
}
function Zq({ selectedQuestion: e, setQuestion: t }) {
  const n = Re(),
    { questions: r, preview: o } = dt();
  return o
    ? f.jsx(H, {
        sx: { p: "20px", display: "flex", justifyContent: "center" },
        children: f.jsx(vc, {
          fullWidth: !0,
          size: "small",
          sx: { maxWidth: "500px", minWidth: "200px", height: "48px" },
          className: "cancel",
          children: f.jsx(xc, {
            id: "category-select",
            variant: "outlined",
            value: e.id,
            placeholder: "Question title",
            onChange: ({ target: i }) => {
              t(i.value);
            },
            sx: {
              height: "48px",
              borderRadius: "8px",
              "& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${n.palette.primary.main}` },
              "& .MuiSelect-icon": { color: n.palette.primary.main },
            },
            MenuProps: {
              PaperProps: {
                sx: {
                  mt: "8px",
                  p: "4px",
                  borderRadius: "8px",
                  border: "1px solid #EEE4FC",
                  boxShadow: "0px 8px 24px rgba(210, 208, 225, 0.4)",
                  backgroundColor: n.palette.background.default,
                },
              },
              MenuListProps: {
                sx: {
                  py: 0,
                  display: "flex",
                  flexDirection: "column",
                  gap: "8px",
                  "& .Mui-selected": { backgroundColor: n.palette.background.default, color: n.palette.primary.main },
                },
              },
            },
            inputProps: {
              sx: {
                color: n.palette.primary.main,
                display: "block",
                px: "9px",
                gap: "20px",
                width: "87%",
                overflow: "hidden",
                textOverflow: "ellipsis",
              },
            },
            children: r
              .filter((i) => i.type !== "result")
              .map((i, s) =>
                f.jsx(
                  i5,
                  {
                    value: i.id,
                    sx: {
                      display: "flex",
                      alignItems: "center",
                      gap: "20px",
                      p: "4px",
                      borderRadius: "5px",
                      color: "#9A9AAF",
                      wordBreak: "break-word",
                      whiteSpace: "normal",
                    },
                    children: `${s + 1}. ${i.title}`,
                  },
                  i.id
                )
              ),
          }),
        }),
      })
    : null;
}
const Jq = ({ checked: e = !1, sx: t }) =>
    f.jsx(H, {
      sx: {
        transform: e ? "" : "rotate(180deg)",
        transition: "transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
        width: "14px",
        height: "14px",
        transformOrigin: "center center",
        display: "flex",
        ...t,
      },
      children: f.jsxs("svg", {
        width: "14",
        height: "13",
        viewBox: "0 0 14 13",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg",
        children: [
          f.jsx("path", {
            d: "M13 3.48425L7 9.48425",
            stroke: "#7E2AEA",
            "stroke-width": "1.5",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
          }),
          f.jsx("path", {
            d: "M1 3.48425L7 9.48425",
            stroke: "#7E2AEA",
            "stroke-width": "1.5",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
          }),
        ],
      }),
    }),
  Qq = ({ headerText: e, children: t, sx: n }) => {
    const r = Re(),
      [o, i] = b.useState(!1);
    return f.jsxs(H, {
      sx: n,
      onClick: () => i((s) => !s),
      children: [
        f.jsxs(H, {
          sx: { userSelect: "none", display: "flex", gap: "10px", cursor: "pointer", alignItems: "center" },
          children: [e, f.jsx(Jq, { checked: o, sx: { "&:hover": { color: r.palette.primary.dark } } })],
        }),
        o && t,
      ],
    });
  },
  eZ = ({ sx: e }) =>
    f.jsx(H, {
      sx: { display: "flex", ...e },
      children: f.jsxs("svg", {
        width: "24",
        height: "24",
        viewBox: "0 0 24 24",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg",
        children: [
          f.jsx("circle", { cx: "12", cy: "12", r: "10", stroke: "#E02C2C", "stroke-width": "1.5" }),
          f.jsx("path", {
            d: "M9.87845 14.1198L14.1211 9.87714",
            stroke: "#E02C2C",
            "stroke-width": "1.5",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
          }),
          f.jsx("path", {
            d: "M9.87845 9.87668L14.1211 14.1193",
            stroke: "#E02C2C",
            "stroke-width": "1.5",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
          }),
        ],
      }),
    }),
  tZ = ({ sx: e }) =>
    f.jsx(H, {
      sx: { display: "flex", ...e },
      children: f.jsxs("svg", {
        width: "24",
        height: "24",
        viewBox: "0 0 24 24",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg",
        children: [
          f.jsx("circle", { cx: "12", cy: "12", r: "10", stroke: "#0D9F00", "stroke-width": "1.5" }),
          f.jsx("path", {
            d: "M9.30078 11.8L11.3008 13.8L15.3008 9.79999",
            stroke: "#0D9F00",
            "stroke-width": "1.5",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
          }),
        ],
      }),
    }),
  nZ = () => {
    const e = Re(),
      { questions: t } = dt(),
      n = Ne((o) => o.answers);
    return t
      .filter((o) => o.type === "variant")
      .map((o) => {
        let i = o.content.variants;
        const s = n.find((l) => l.questionId === o.id),
          a = i.find((l, u) => {
            if (l.id === (s == null ? void 0 : s.answer)) return !0;
          });
        return f.jsxs(H, {
          sx: { display: "flex", flexDirection: "column" },
          children: [
            f.jsxs(H, {
              sx: { display: "inline-flex", justifyContent: "space-between", width: "100%" },
              children: [
                f.jsxs(H, {
                  sx: { display: "inline-flex", gap: "16px" },
                  children: [
                    f.jsxs(xe, { sx: { color: e.palette.grey[500] }, children: [o.page + 1, "."] }),
                    f.jsx(xe, {
                      sx: { color: e.palette.text.primary },
                      children: o.title || "Question without a title",
                    }),
                  ],
                }),
                f.jsx(xe, {
                  sx: { color: a != null && a.points ? e.palette.primary.main : e.palette.grey[500] },
                  children: (a == null ? void 0 : a.points) || "0",
                }),
              ],
            }),
            f.jsxs(H, {
              sx: { display: "inline-flex", mt: "15px", gap: "10px" },
              children: [
                f.jsx(xe, { sx: { color: e.palette.grey[500] }, children: "Your answer:" }),
                f.jsxs(H, {
                  sx: { display: "flex", flexDirection: "column" },
                  children: [
                    f.jsx(Z6, { checkTrue: !!(a != null && a.points), text: a == null ? void 0 : a.answer }),
                    i.map((l) =>
                      l.id === (s == null ? void 0 : s.answer)
                        ? f.jsx(f.Fragment, {})
                        : f.jsx(Z6, { checkTrue: !!(l != null && l.points), text: l.answer })
                    ),
                  ],
                }),
              ],
            }),
          ],
        });
      });
  },
  Z6 = ({ checkTrue: e, text: t }) => {
    const n = Re();
    return f.jsxs(H, {
      sx: { display: "inline-flex", gap: "10px", mb: "10px" },
      children: [
        e ? f.jsx(tZ, {}) : f.jsx(eZ, {}),
        f.jsx(xe, { sx: { color: n.palette.grey[500] }, children: t || "not selected" }),
      ],
    });
  },
  rZ = ({ resultQuestion: e }) => {
    var v;
    const t = Re(),
      n = pt() < 650,
      r = pt() < 1e3,
      { settings: o, show_badge: i, quizId: s, questions: a, preview: l } = dt(),
      u = Ne((C) => C.setCurrentQuizStep),
      c = Ne((C) => C.pointsSum),
      d = o.cfg.spec,
      p = bc(o.cfg.vkMetricsNumber),
      h = Cc(o.cfg.yandexMetricsNumber);
    b.useEffect(() => {
      p.resultIdShown(e.id), h.resultIdShown(e.id);
    }, [e.id, p, h]),
      b.useEffect(() => {
        (async () => {
          if (!o.cfg.showfc)
            try {
              await Yy({ questionId: e.id, body: {}, qid: s, preview: l });
              const C = JSON.parse(localStorage.getItem("sessions") || "{}");
              localStorage.setItem("sessions", JSON.stringify({ ...C, [s]: new Date().getTime() }));
            } catch {
              eo("The request could not be sent");
            }
          if (o.cfg.score)
            try {
              await jk({ questionId: e.id, pointsSum: c, qid: s, preview: l });
              const C = JSON.parse(localStorage.getItem("sessions") || "{}");
              localStorage.setItem("sessions", JSON.stringify({ ...C, [s]: new Date().getTime() }));
            } catch {
              eo("The number of points could not be sent");
            }
        })();
      }, []);
    const m = b.useMemo(
      () =>
        e.content.editedUrlImagesList !== void 0 && e.content.editedUrlImagesList !== null
          ? e.content.editedUrlImagesList[n ? "mobile" : r ? "tablet" : "desktop"]
          : e.content.back,
      [e]
    );
    return f.jsx(H, {
      sx: {
        display: "flex",
        flexDirection: "column",
        alignItems: "center",
        justifyContent: "space-between",
        height: "100%",
        minHeight: "100%",
        width: "100%",
        backgroundColor: t.palette.background.default,
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: o.cfg.design && !n ? `url(${Vr[o.cfg.theme]})` : null,
        position: "relative",
      },
      children: f.jsxs(H, {
        sx: {
          display: "flex",
          flexDirection: "column",
          justifyContent: "space-between",
          alignItems: "center",
          width: "100%",
          height: "100%",
          background:
            o.cfg.design && !n
              ? Be[o.cfg.theme].isLight
                ? "transparent"
                : "linear-gradient(90deg, rgba(39, 38, 38, 0.95) 7.66%, rgba(42, 42, 46, 0.85) 42.12%, rgba(51, 54, 71, 0.4) 100%)"
              : t.palette.background.default,
        },
        children: [
          f.jsxs(H, {
            sx: {
              display: "flex",
              flexDirection: "column",
              alignItems: "center",
              width: "100%",
              height: "100%",
              overflow: "auto",
              padding: "0 20px 20px",
              scrollbarWidth: "none",
              "&::-webkit-scrollbar": { width: 0 },
            },
            children: [
              f.jsx(H, {
                sx: {
                  display: "flex",
                  alignItems: "center",
                  flexWrap: "wrap",
                  mb: "10px",
                  width: "100%",
                  maxWidth: "700px",
                  backgroundColor: "#9A9AAF1A",
                  borderRadius: "0 0 12px 12px",
                  padding: "20px 20px 15px",
                },
                children: f.jsx(xe, {
                  sx: { fontSize: "17px", color: "#9A9AAF", wordBreak: "break-word" },
                  children: "Your result:",
                }),
              }),
              f.jsxs(H, {
                sx: {
                  display: "flex",
                  flexDirection: "column",
                  alignItems: "flex-start",
                  width: "100%",
                  maxWidth: "700px",
                },
                children: [
                  !(e != null && e.content.useImage) &&
                    e.content.video &&
                    f.jsx(W5, {
                      videoUrl: e.content.video,
                      containerSX: { width: "100%", maxWidth: "700px", height: n ? "100%" : "306px" },
                    }),
                  (e == null ? void 0 : e.content.useImage) &&
                    m &&
                    f.jsx(H, {
                      sx: { width: "100%", display: "flex", justifyContent: "center" },
                      onClick: (C) => C.preventDefault(),
                      children: f.jsx("img", {
                        alt: "resultImage",
                        src: m,
                        style: {
                          width: "100%",
                          height: d ? "auto" : n ? "236px" : "306px",
                          borderRadius: "12px",
                          objectFit: "cover",
                          overflow: "hidden",
                        },
                      }),
                    }),
                  e.description !== "" &&
                    e.description !== " " &&
                    f.jsx(xe, {
                      sx: {
                        fontSize: "27px",
                        lineHeight: "32px",
                        fontWeight: 700,
                        mt: "30px",
                        color: t.palette.text.primary,
                        wordBreak: "break-word",
                      },
                      children: e.description,
                    }),
                  f.jsx(xe, {
                    sx: {
                      mt: "12px",
                      fontSize: "17px",
                      lineHeight: "20px",
                      color: t.palette.text.primary,
                      wordBreak: "break-word",
                    },
                    children: e.title,
                  }),
                  e.content.text !== "" &&
                    e.content.text !== " " &&
                    f.jsx(xe, {
                      sx: {
                        fontSize: "17px",
                        lineHeight: "20px",
                        mt: "25px ",
                        wordBreak: "break-word",
                        color: t.palette.text.primary,
                      },
                      children: e.content.text,
                    }),
                  ((v = o.cfg) == null ? void 0 : v.score) &&
                    f.jsxs(f.Fragment, {
                      children: [
                        f.jsx(xe, {
                          sx: { color: t.palette.primary.main, fontSize: "30px", m: "30px 0", fontWeight: 600 },
                          children: "Your points",
                        }),
                        f.jsxs(xe, {
                          sx: { color: t.palette.primary.main, fontSize: "30px", fontWeight: 600 },
                          children: [c, " из ", a.filter((C) => C.type != "result").length],
                        }),
                        f.jsx(Qq, {
                          headerText: f.jsx(xe, {
                            sx: { color: t.palette.primary.main, "&:hover": { color: t.palette.primary.dark } },
                            children: "View answers",
                          }),
                          sx: { mt: "60px", width: "100%" },
                          children: f.jsx(H, { sx: { mt: "25px" }, children: f.jsx(nZ, {}) }),
                        }),
                      ],
                    }),
                ],
              }),
            ],
          }),
          i &&
            f.jsx(H, {
              component: rs,
              target: "_blank",
              href: `https://${tc ? "" : "s"}quiz.pena.digital/answer/v1.0.0/logo?q=${s}`,
              sx: {
                display: "flex",
                alignItems: "center",
                alignSelf: n ? "center" : "end",
                margin: n ? "15px 0 0" : "15px 25px 0 0",
                gap: "10px",
                textDecoration: "none",
                mb: "15px",
                position: r || n ? "sticky" : "absolute",
                bottom: "90px",
              },
              children: f.jsx(H5, {
                style: { fontSize: "23px", color: Be[o.cfg.theme].isLight ? "#000000" : "#F5F7FF" },
              }),
            }),
          f.jsxs(H, {
            sx: {
              width: "100%",
              flexDirection: "column",
              display: "flex",
              justifyContent: "center",
              alignItems: "center",
              borderTop: "1px solid #9A9AAF80",
              p: "20px",
              position: "sticky",
              bottom: 0,
            },
            children: [
              o.cfg.resultInfo.showResultForm === "before" &&
                o.cfg.showfc !== !1 &&
                !o.cfg.score &&
                f.jsx(Vn, {
                  onClick: () => u("contactform"),
                  variant: "contained",
                  sx: { p: "10px 20px", width: "auto", height: "50px" },
                  children: e.content.hint.text || "More information",
                }),
              o.cfg.resultInfo.showResultForm === "after" &&
                e.content.redirect &&
                f.jsx(Vn, {
                  onClick: () => {
                    p.resultLink(),
                      h.resultLink(),
                      setTimeout(() => {
                        location.href = (
                          e.content.redirect.includes("https") ? e.content.redirect : `https://${e.content.redirect}`
                        ).replace(/\s+/g, "");
                      }, 1e3);
                  },
                  variant: "contained",
                  sx: { p: "10px 20px", width: "auto" },
                  children: e.content.hint.text || "Go to website",
                }),
            ],
          }),
        ],
      }),
    });
  },
  oZ = ({ alignType: e, quizHeaderBlock: t, quizMainBlock: n, backgroundBlock: r }) => {
    const o = pt(),
      i = o >= 700 && o < 1100,
      { settings: s } = dt();
    return f.jsx(H, {
      id: "pain",
      sx: {
        display: "flex",
        flexDirection: e === "left" ? "row" : "row-reverse",
        height: "100%",
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: s.cfg.design ? `url(${Vr[s.cfg.theme]})` : null,
        scrollbarWidth: "none",
        "&::-webkit-scrollbar": { width: 0 },
        overflowY: "auto",
      },
      children: f.jsxs(H, {
        sx: {
          display: "flex",
          flexDirection: e === "left" ? "row" : "row-reverse",
          padding: i ? "15px" : "0",
          width: "100%",
          background:
            s.cfg.design && !Be[s.cfg.theme].isLight
              ? e === "left"
                ? "linear-gradient(90deg, #272626, transparent)"
                : e === "right"
                  ? "linear-gradient(-90deg, #272626, transparent)"
                  : "linear-gradient(0deg, #272626, transparent)"
              : null,
        },
        children: [
          f.jsxs(H, {
            sx: {
              width: s.cfg.startpage.background.desktop ? "40%" : void 0,
              height: "100%",
              display: "flex",
              flexDirection: "column",
              justifyContent: "space-between",
              alignItems: "flex-start",
              p: i ? "25px" : e === "left" ? "25px 25px 25px 35px" : "25px 35px 25px 25px",
              overflowY: "auto",
              scrollbarWidth: "none",
              "&::-webkit-scrollbar": { width: 0 },
            },
            children: [t, n],
          }),
          s.cfg.startpage.background.desktop &&
            f.jsx(H, {
              sx: { width: "60%", overflow: "hidden" },
              children: f.jsx(H, {
                sx: {
                  width: "100%",
                  height: "100%",
                  padding: e === "left" ? "25px 25px 25px 15px" : "25px 15px 25px 25px",
                  display: "flex",
                  justifyContent: "center",
                  "& > img": { width: "100%", borderRadius: "12px" },
                },
                onClick: (a) => a.preventDefault(),
                children: r,
              }),
            }),
        ],
      }),
    });
  },
  iZ = ({ alignType: e, quizHeaderBlock: t, quizMainBlock: n, backgroundBlock: r }) => {
    const o = pt(),
      i = o >= 700 && o < 1100;
    return f.jsxs(f.Fragment, {
      children: [
        f.jsx(H, {
          sx: {
            height: "100%",
            width: e === "center" ? "100%" : i ? "46%" : "42%",
            display: "flex",
            padding:
              e === "center"
                ? i
                  ? "30px 40px"
                  : "30px 35px"
                : e === "left"
                  ? i
                    ? "25px 0 31px 40px"
                    : "25px 0 31px 35px"
                  : i
                    ? "25px 40px 31px 0"
                    : "25px 35px 31px 0",
            margin: e === "center" ? "0 auto" : e === "left" ? "0" : "0 0 0 auto",
            scrollbarWidth: "none",
            "&::-webkit-scrollbar": { width: 0 },
            overflowY: "auto",
          },
          children: f.jsxs(H, {
            sx: {
              minHeight: "calc(100% - 32px)",
              position: "relative",
              width: "100%",
              padding: e === "center" ? "0" : e === "left" ? "0 40px 0 0" : "0 0 0 40px",
              display: "flex",
              flexDirection: "column",
              justifyContent: "space-between",
              alignItems: e === "center" ? "center" : "start",
              borderRight: e === "left" ? "1px solid #9A9AAF80" : null,
              borderLeft: e === "right" ? "1px solid #9A9AAF80" : null,
              scrollbarWidth: "none",
              "&::-webkit-scrollbar": { width: 0 },
            },
            children: [e !== "center" && t, n],
          }),
        }),
        f.jsx(H, {
          sx: { position: "absolute", zIndex: -1, left: 0, top: 0, height: "100%", width: "100%", overflow: "hidden" },
          children: r,
        }),
      ],
    });
  },
  sZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n }) => {
    const r = pt() < 1100,
      { settings: o } = dt();
    return f.jsxs(H, {
      sx: {
        overflow: "auto",
        padding: r ? "25px 40px 40px" : "25px 25px 25px",
        display: "flex",
        flexDirection: "column",
        alignItems: "center",
        height: "100%",
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: o.cfg.design
          ? o.cfg.design && !Be[o.cfg.theme].isLight
            ? `linear-gradient(0deg, #272626, transparent), url(${Vr[o.cfg.theme]})`
            : `url(${Vr[o.cfg.theme]})`
          : null,
        scrollbarWidth: "none",
        "&::-webkit-scrollbar": { width: 0 },
        overflowY: "auto",
      },
      children: [
        e,
        n &&
          o.cfg.startpage.background.desktop &&
          f.jsx(H, {
            sx: {
              width: "100%",
              maxWidth: "844px",
              height: r ? "530px" : "306px",
              display: "flex",
              justifyContent: "center",
              "& > img": { width: "100%", borderRadius: "12px" },
            },
            onClick: (i) => i.preventDefault(),
            children: n,
          }),
        t,
      ],
    });
  },
  aZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n, startpageType: r, alignType: o }) => {
    switch (r) {
      case null:
      case "standard":
        return f.jsx(oZ, { alignType: o, quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      case "expanded":
        return f.jsx(iZ, { alignType: o, quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      case "centered":
        return f.jsx(sZ, { alignType: o, quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      default:
        Ac(r);
    }
  },
  lZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n }) => {
    const { settings: r } = dt();
    return f.jsx(H, {
      sx: {
        display: "flex",
        flexDirection: "column",
        flexGrow: 1,
        justifyContent: "flex-end",
        minHeight: "100%",
        height: "100%",
        "&::-webkit-scrollbar": { width: 0 },
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: r.cfg.design ? `url(${Vr[r.cfg.theme]})` : null,
      },
      children: f.jsxs(H, {
        sx: {
          width: "100%",
          display: "flex",
          flexGrow: 1,
          flexDirection: "column",
          justifyContent: "space-between",
          alignItems: "flex-start",
          p: "20px",
          height: "100%",
          overflowY: "auto",
          overflowX: "hidden",
          background: r.cfg.design && !Be[r.cfg.theme].isLight ? "linear-gradient(90deg,#272626,transparent)" : null,
          "&::-webkit-scrollbar": { width: "4px" },
          "&::-webkit-scrollbar-thumb": { backgroundColor: "#b8babf" },
        },
        children: [
          f.jsx(H, { sx: { marginBottom: "13px" }, children: e }),
          r.cfg.startpage.background.desktop &&
            f.jsx(H, {
              sx: { width: "100%", overflow: "hidden" },
              children: f.jsx(H, {
                sx: {
                  width: "100%",
                  height: "100%",
                  display: "flex",
                  justifyContent: "center",
                  "& > img": { width: "100%", borderRadius: "12px" },
                },
                onClick: (o) => o.preventDefault(),
                children: n,
              }),
            }),
          f.jsx(H, {
            sx: {
              height: "80%",
              display: "flex",
              flexGrow: 1,
              flexDirection: "column",
              justifyContent: "space-between",
              width: "100%",
              marginTop: "30px",
            },
            children: t,
          }),
        ],
      }),
    });
  },
  uZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n }) =>
    f.jsxs(H, {
      sx: {
        display: "flex",
        flexDirection: "column-reverse",
        flexGrow: 1,
        justifyContent: "flex-end",
        minHeight: "100%",
        height: "100%",
        "&::-webkit-scrollbar": { width: 0 },
      },
      children: [
        f.jsx(H, {
          sx: {
            zIndex: 3,
            width: "100%",
            display: "flex",
            flexGrow: 1,
            flexDirection: "column",
            justifyContent: "space-between",
            alignItems: "flex-start",
            height: "100%",
            overflowY: "auto",
            overflowX: "hidden",
            "&::-webkit-scrollbar": { width: "4px" },
            "&::-webkit-scrollbar-thumb": { backgroundColor: "#b8babf" },
          },
          children: f.jsxs(H, {
            sx: {
              padding: "20px",
              height: "80%",
              display: "flex",
              flexGrow: 1,
              flexDirection: "column",
              justifyContent: "space-between",
              width: "100%",
            },
            children: [e, t],
          }),
        }),
        f.jsx(H, {
          sx: {
            zIndex: -1,
            position: "absolute",
            left: 0,
            top: 0,
            width: "100%",
            height: "100%",
            overflow: "hidden",
            "& > img": { display: "block", minHeight: "100%" },
          },
          onClick: (r) => r.preventDefault(),
          children: n,
        }),
      ],
    }),
  cZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n }) => {
    const { settings: r } = dt();
    return f.jsx(H, {
      sx: {
        display: "flex",
        flexDirection: "column-reverse",
        flexGrow: 1,
        justifyContent: "flex-end",
        minHeight: "100%",
        height: "100%",
        backgroundPosition: "center",
        backgroundSize: "cover",
        backgroundImage: r.cfg.design
          ? r.cfg.design && !Be[r.cfg.theme].isLight
            ? `linear-gradient(0deg, #272626, transparent), url(${Vr[r.cfg.theme]})`
            : `url(${Vr[r.cfg.theme]})`
          : null,
        "&::-webkit-scrollbar": { width: 0 },
      },
      children: f.jsxs(H, {
        sx: {
          width: "100%",
          display: "flex",
          flexGrow: 1,
          flexDirection: "column",
          justifyContent: "space-between",
          alignItems: "flex-start",
          padding: "20px",
          height: "100%",
          overflowY: "auto",
          overflowX: "hidden",
          "&::-webkit-scrollbar": { width: "4px" },
          "&::-webkit-scrollbar-thumb": { backgroundColor: "#b8babf" },
        },
        children: [
          e,
          r.cfg.startpage.background.desktop &&
            f.jsx(H, {
              sx: { width: "100%", overflow: "hidden", "& > img": { width: "100%", borderRadius: "12px" } },
              onClick: (o) => o.preventDefault(),
              children: n,
            }),
          f.jsx(H, {
            sx: {
              height: "80%",
              display: "flex",
              flexGrow: 1,
              flexDirection: "column",
              justifyContent: "space-between",
              width: "100%",
            },
            children: t,
          }),
        ],
      }),
    });
  },
  dZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n, startpageType: r }) => {
    switch (r) {
      case null:
      case "standard":
        return f.jsx(lZ, { quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      case "expanded":
        return f.jsx(uZ, { quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      case "centered":
        return f.jsx(cZ, { quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
      default:
        Ac(r);
    }
  },
  fZ = ({ quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n, startpageType: r, alignType: o }) =>
    pt() < 700
      ? f.jsx(dZ, { quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n, startpageType: r })
      : f.jsx(aZ, { alignType: o, startpageType: r, quizHeaderBlock: e, quizMainBlock: t, backgroundBlock: n });
function pZ() {
  const [e, t] = b.useState(!1);
  return (
    b.useEffect(() => {
      const n = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
      t(n);
    }, [navigator.userAgent]),
    { isMobileDevice: e }
  );
}
const hZ = () => {
  const e = Re(),
    { settings: t, show_badge: n, quizId: r, questions: o } = dt(),
    { isMobileDevice: i } = pZ(),
    s = Ne((x) => x.setCurrentQuizStep),
    a = pt(),
    l = a < 700,
    u = a >= 700 && a < 1100,
    c = bc(t.cfg.vkMetricsNumber),
    d = Cc(t.cfg.yandexMetricsNumber),
    p = () => {
      navigator.clipboard.writeText(t.cfg.info.phonenumber), c.phoneNumberOpened(), d.phoneNumberOpened();
    },
    h =
      t.cfg.startpage.background.type === "image"
        ? f.jsx("img", {
            src: t.cfg.startpage.background.desktop || Vr[t.cfg.theme] || "",
            alt: "",
            style: {
              display: "block",
              width: l || t.cfg.startpageType === "expanded" ? "100%" : void 0,
              height: "100%",
              minWidth: "100%",
              maxHeight: "100%",
              objectFit: "cover",
              overflow: "hidden",
            },
          })
        : t.cfg.startpage.background.type === "video" && t.cfg.startpage.background.video
          ? f.jsx(W5, {
              videoUrl: t.cfg.startpage.background.video,
              containerSX: {
                width: t.cfg.startpageType === "centered" ? "550px" : "100%",
                height: t.cfg.startpageType === "centered" ? "275px" : "100%",
                borderRadius: t.cfg.startpageType === "centered" ? "10px" : "0",
                overflow: "hidden",
                "& iframe": {
                  width: "100%",
                  height: "100%",
                  transform:
                    t.cfg.startpageType === "centered"
                      ? ""
                      : t.cfg.startpageType === "expanded"
                        ? "scale(1.5)"
                        : "scale(2.4)",
                },
              },
            })
          : null,
    m = f.jsx(H, {
      sx: { margin: t.cfg.startpageType === "centered" ? "0 auto" : null },
      children: f.jsxs(H, {
        sx: {
          display: "flex",
          alignItems: "center",
          flexWrap: t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" ? "nowrap" : "wrap",
          gap: l ? "20px" : "30px",
          mb:
            t.cfg.startpageType === "centered"
              ? l
                ? "20px"
                : "25px"
              : t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l
                ? 0
                : "7px",
          justifyContent:
            t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && l ? "center" : void 0,
        },
        onClick: (x) => x.preventDefault(),
        children: [
          t.cfg.startpage.logo &&
            f.jsx("img", {
              src: t.cfg.startpage.logo,
              style: { maxHeight: l ? "30px" : "40px", maxWidth: l ? "100px" : "110px", objectFit: "cover" },
              alt: "",
            }),
          f.jsx(xe, {
            sx: {
              fontSize: "12px",
              color: t.cfg.startpageType === "expanded" ? "white" : e.palette.text.primary,
              wordBreak:
                t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" ? "normal" : "break-word",
            },
            children: t.cfg.info.orgname,
          }),
        ],
      }),
    }),
    v = f.jsx(H, {
      component: rs,
      target: "_blank",
      href: `https://${tc ? "" : "s"}quiz.pena.digital/answer/v1.0.0/logo?q=${r}`,
      sx: {
        display: "flex",
        alignItems: "center",
        gap: "7px",
        textDecoration: "none",
        marginLeft:
          t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !u && !l ? "61px" : void 0,
      },
      children: f.jsx(H5, {
        style: {
          fontSize: "23px",
          color: t.cfg.startpageType === "expanded" ? "#FFFFFF" : Be[t.cfg.theme].isLight ? "#151515" : "#FFFFFF",
        },
      }),
    }),
    C = o.filter((x) => x.type !== null && x.type !== "result").length,
    y = () => {
      s("question"), c.firstPageOpened(), d.firstPageOpened();
    },
    g = () => {
      c.emailOpened(),
        d.emailOpened(),
        setTimeout(() => {
          location.href = (t.cfg.info.site.includes("https") ? t.cfg.info.site : `https://${t.cfg.info.site}`).replace(
            /\s+/g,
            ""
          );
        }, 1e3);
    };
  return f.jsx(Ss, {
    className: "settings-preview-draghandle",
    sx: {
      borderRadius: 0,
      height: "100%",
      width: "100%",
      background:
        t.cfg.startpageType === "expanded"
          ? t.cfg.startpage.position === "left" || (l && t.cfg.startpage.position === "right")
            ? "linear-gradient(90deg, rgba(39, 38, 38, 0.95) 7.66%, rgba(42, 42, 46, 0.85) 42.12%, rgba(51, 54, 71, 0.4) 100%)"
            : t.cfg.startpage.position === "center"
              ? "linear-gradient(0deg, rgba(39, 38, 38, 0.95) 7.66%, rgba(42, 42, 46, 0.85) 42.12%, rgba(51, 54, 71, 0.4) 100%)"
              : "linear-gradient(-90deg, rgba(39, 38, 38, 0.95) 7.66%, rgba(42, 42, 46, 0.85) 42.12%, rgba(51, 54, 71, 0.4) 100%)"
          : e.palette.background.default,
      color: t.cfg.startpageType === "expanded" ? "white" : "black",
    },
    onClick: (x) => x.preventDefault(),
    children: f.jsx(fZ, {
      quizHeaderBlock: m,
      quizMainBlock: f.jsxs(f.Fragment, {
        children: [
          f.jsxs(H, {
            sx: {
              display: "flex",
              flexDirection: "column",
              justifyContent: t.cfg.startpageType === "standard" && l ? "start" : "center",
              flexGrow: t.cfg.startpageType === "centered" ? 0 : 1,
              wordBreak: "break-word",
              alignItems:
                t.cfg.startpageType === "centered" ||
                (t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center")
                  ? "center"
                  : "start",
              marginTop: t.cfg.startpageType === "centered" ? "30px" : l ? "0px" : "5px",
              maxWidth: l
                ? "100%"
                : t.cfg.startpageType === "centered"
                  ? "700px"
                  : u && t.cfg.startpageType !== "expanded" && t.cfg.startpage.position !== "center"
                    ? "380px"
                    : "531px",
            },
            children: [
              f.jsx(xe, {
                sx: {
                  fontWeight: "700",
                  fontSize: l ? "24px" : "27px",
                  fontStyle: "normal",
                  fontStretch: "normal",
                  lineHeight: l ? "26.4px" : "normal",
                  overflowWrap: "break-word",
                  width: "100%",
                  textAlign:
                    t.cfg.startpageType === "centered" || t.cfg.startpage.position === "center"
                      ? "center"
                      : "-moz-initial",
                  color: t.cfg.startpageType === "expanded" ? "white" : e.palette.text.primary,
                },
                children: t.name,
              }),
              f.jsx(xe, {
                sx: {
                  fontSize: l ? "16px" : "17px",
                  fontWeight: "400",
                  lineHeight: l ? "19.2px" : "normal",
                  margin: "12px 0 30px",
                  overflowWrap: "break-word",
                  width: "100%",
                  textAlign:
                    t.cfg.startpageType === "centered" || t.cfg.startpage.position === "center"
                      ? "center"
                      : "-moz-initial",
                  color: t.cfg.startpageType === "expanded" ? "white" : e.palette.text.primary,
                },
                children: t.cfg.startpage.description,
              }),
              f.jsx(H, {
                width: t.cfg.startpageType === "standard" ? "100%" : "auto",
                children: f.jsx(Vn, {
                  variant: "contained",
                  disabled: C === 0,
                  sx: {
                    fontSize: "18px",
                    padding: "10px 20px",
                    width: "auto",
                    background: e.palette.primary.main,
                    borderRadius: "12px",
                  },
                  onClick: y,
                  children: t.cfg.startpage.button.trim() ? t.cfg.startpage.button : "Take the test",
                }),
              }),
            ],
          }),
          f.jsxs(H, {
            sx: {
              display: "flex",
              flexGrow: t.cfg.startpageType === "centered" ? (l ? 0 : 1) : 0,
              gap: l ? "30px" : "40px",
              alignItems: "flex-end",
              justifyContent:
                (t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && l) ||
                (t.cfg.startpageType === "centered" && l)
                  ? "center"
                  : "space-between",
              width: "100%",
              flexWrap:
                t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center"
                  ? l
                    ? "wrap-reverse"
                    : "nowrap"
                  : "wrap",
            },
            children: [
              t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l && m,
              f.jsxs(H, {
                sx: {
                  maxWidth: "300px",
                  display:
                    (t.cfg.startpageType === "centered" && l) ||
                    (t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && l)
                      ? "flex"
                      : "block",
                  flexDirection: "column",
                  alignItems: "center",
                  order: t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" ? "2" : "0",
                },
                children: [
                  t.cfg.info.site &&
                    f.jsx($r, {
                      onClick: g,
                      sx: {
                        display: "block",
                        width: "100%",
                        marginTop: "10px",
                        marginLeft:
                          t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l
                            ? "auto"
                            : void 0,
                      },
                      children: f.jsx(xe, {
                        sx: {
                          lineHeight: "19px",
                          fontSize: "16px",
                          textAlign:
                            t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l
                              ? "end"
                              : (t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && l) ||
                                  (t.cfg.startpageType === "centered" && l)
                                ? "center"
                                : "start",
                          color: e.palette.primary.main,
                          overflow: "hidden",
                          textOverflow: "ellipsis",
                          whiteSpace: "nowrap",
                        },
                        children: t.cfg.info.site,
                      }),
                    }),
                  t.cfg.info.clickable
                    ? i
                      ? f.jsx(rs, {
                          href: `tel:${t.cfg.info.phonenumber}`,
                          children: f.jsx(xe, {
                            sx: {
                              lineHeight: "19px",
                              textAlign:
                                t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center"
                                  ? "end"
                                  : "none",
                              fontSize: "16px",
                              color: t.cfg.startpageType === "expanded" ? "#FFFFFF" : e.palette.text.primary,
                            },
                            children: t.cfg.info.phonenumber,
                          }),
                        })
                      : f.jsx($r, {
                          onClick: p,
                          sx: {
                            display: "block",
                            marginTop: "10px",
                            marginLeft:
                              t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l
                                ? "auto"
                                : void 0,
                          },
                          children: f.jsx(xe, {
                            sx: {
                              textAlign:
                                t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center"
                                  ? "end"
                                  : "none",
                              fontSize: "16px",
                              lineHeight: "19px",
                              color: t.cfg.startpageType === "expanded" ? "#FFFFFF" : e.palette.text.primary,
                            },
                            children: t.cfg.info.phonenumber,
                          }),
                        })
                    : f.jsx(xe, {
                        sx: {
                          lineHeight: "19px",
                          textAlign:
                            t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center"
                              ? "end"
                              : "none",
                          fontSize: "16px",
                          marginTop: "10px",
                          color: t.cfg.startpageType === "expanded" ? "#FFFFFF" : e.palette.text.primary,
                        },
                        children: t.cfg.info.phonenumber,
                      }),
                  f.jsx(xe, {
                    sx: {
                      lineHeight: "14px",
                      width: "100%",
                      overflowWrap: "break-word",
                      fontSize: "12px",
                      textAlign:
                        t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && !l
                          ? "end"
                          : (t.cfg.startpageType === "expanded" && t.cfg.startpage.position === "center" && l) ||
                              (t.cfg.startpageType === "centered" && l)
                            ? "center"
                            : "none",
                      maxHeight: "120px",
                      overflow: "auto",
                      marginTop: "10px",
                      "&::-webkit-scrollbar": { width: 0 },
                      color: t.cfg.startpageType === "expanded" ? "white" : e.palette.text.primary,
                    },
                    children: t.cfg.info.law,
                  }),
                ],
              }),
              n && v,
            ],
          }),
        ],
      }),
      backgroundBlock: h,
      startpageType: t.cfg.startpageType,
      alignType: t.cfg.startpage.position,
    }),
  });
};
function mZ({ isNextButtonEnabled: e, moveToNextQuestion: t }) {
  const { settings: n } = dt();
  return f.jsx(Vn, {
    disabled: !e,
    variant: "contained",
    sx: {
      fontSize: "16px",
      padding: "10px 15px",
      "&:disabled": { background: Be[n.cfg.theme].isLight ? "#F2F3F7" : "#FFFFFF26" },
    },
    onClick: t,
    children: "Next →",
  });
}
function gZ({ isPreviousButtonEnabled: e, moveToPrevQuestion: t }) {
  const n = Re(),
    { settings: r } = dt(),
    o = pt() < 382;
  return f.jsx(Vn, {
    disabled: !e,
    variant: "contained",
    sx: {
      ml: "auto",
      fontSize: "16px",
      padding: "10px 15px",
      color: Be[r.cfg.theme].isLight ? n.palette.primary.main : "#FFFFFF",
      border: Be[r.cfg.theme].isLight ? `1px solid ${n.palette.primary.main}` : "1px solid #9A9AAF",
      background: Be[r.cfg.theme].isLight ? "#FFFFFF" : "#FFFFFF26",
      "&:hover": { color: "#FFFFFF", border: `1px solid ${n.palette.primary.dark}` },
      "&:disabled": { background: Be[r.cfg.theme].isLight ? "#F2F3F7" : "#FFFFFF26" },
    },
    onClick: t,
    children: o ? "←" : "← Back",
  });
}
function WC(e) {
  (e.style.opacity = "1"), (e.style.display = "inherit");
}
function GC(e) {
  (e.style.opacity = "0"), (e.style.display = "none");
}
function xh(e, t = 1e3) {
  WC(e),
    setTimeout(() => {
      GC(e);
    }, t);
}
let Cd = !0,
  wd = !0;
function yZ(e, t) {
  e.style.display = "none";
  function n() {
    !wd || !Cd ? WC(e) : wd && Cd && GC(e);
  }
  window.addEventListener("blur", () => {
    console.log("blur"), (wd = !1), n();
  }),
    window.addEventListener("focus", () => {
      console.log("focus"), (wd = !0), n();
    }),
    window.addEventListener("mouseleave", () => {
      console.log("mouseleave"), (Cd = !1), n();
    }),
    window.addEventListener("mouseenter", () => {
      console.log("mouseenter"), (Cd = !0), n();
    }),
    t.addEventListener("contextmenu", (r) => r.preventDefault()),
    window.addEventListener("keydown", function (r) {
      (r.key === "PrintScreen" || (r.ctrlKey && r.key === "p")) && xh(e);
    }),
    t.addEventListener("touchstart", function (r) {
      r.touches.length > 1 && xh(e);
    }),
    window.addEventListener("beforeprint", function () {
      xh(e);
    });
}
function vZ() {
  var k, M;
  const { settings: e, recentlyCompleted: t, quizId: n, preview: r, changeFaviconAndTitle: o, questions: i } = dt(),
    s = Ne((T) => T.answers),
    a = Ne((T) => T.ownVariants);
  let l = Ne((T) => T.currentQuizStep);
  const {
    currentQuestion: u,
    currentQuestionStepNumber: c,
    nextQuestion: d,
    isNextButtonEnabled: p,
    isPreviousButtonEnabled: h,
    moveToPrevQuestion: m,
    moveToNextQuestion: v,
    showResultAfterContactForm: C,
    setQuestion: y,
  } = gX();
  if (
    (hX((k = e == null ? void 0 : e.cfg) == null ? void 0 : k.yandexMetricsNumber, r),
    pX((M = e == null ? void 0 : e.cfg) == null ? void 0 : M.vkMetricsNumber, r),
    b.useEffect(() => {
      var A, D;
      const T = document.getElementById("root"),
        P = document.getElementById("hideoverlay");
      ((A = e.cfg) != null && A.isUnSc) || P == null || P.remove(),
        T !== null && P !== null && (D = e.cfg) != null && D.isUnSc && yZ(P, T);
    }, []),
    b.useEffect(
      function () {
        if (!o) return;
        const P = document.querySelector('link[rel="icon"]');
        P && e.cfg.startpage.favIcon && P.setAttribute("href", e.cfg.startpage.favIcon), (document.title = e.name);
      },
      [o, e.cfg.startpage.favIcon, e.name]
    ),
    e.cfg.antifraud && t)
  )
    throw new Error("Quiz already completed");
  if ((l === "startpage" && e.cfg.noStartPage && (l = "question"), !u))
    return f.jsx(Oa, {
      theme: Be[e.cfg.theme || "StandardTheme"].theme,
      children: f.jsx(xe, { textAlign: "center", mt: "50px", children: "Question not selected" }),
    });
  const g = s.find(({ questionId: T }) => T === u.id);
  let x;
  switch (l) {
    case "startpage": {
      x = f.jsx(hZ, {});
      break;
    }
    case "question": {
      if (u.type === "result") {
        x = f.jsx(rZ, { resultQuestion: u });
        break;
      }
      x = f.jsx(
        Xq,
        {
          currentQuestion: u,
          currentQuestionStepNumber: c,
          prevButton: f.jsx(gZ, { isPreviousButtonEnabled: h, moveToPrevQuestion: m }),
          nextButton: f.jsx(mZ, {
            isNextButtonEnabled: p,
            moveToNextQuestion: () => {
              var T;
              v(),
                !r &&
                  ((T = mX(n, u, g, a)) == null ||
                    T.catch((P) => {
                      eo("Error sending answer"), console.error("Error sending answer", P);
                    }));
            },
          }),
          questionSelect: f.jsx(Zq, { selectedQuestion: u, setQuestion: y }),
        },
        u.id
      );
      break;
    }
    case "contactform": {
      x = f.jsx(fX, { currentQuestion: u, onShowResult: C });
      break;
    }
    default:
      Ac(l);
  }
  const w = new Set([...B6(u), ...B6(d)]);
  return f.jsxs(Oa, {
    theme: Be[e.cfg.theme || "StandardTheme"].theme,
    children: [
      f.jsx(GX, { children: Array.from(w).map((T) => f.jsx("link", { rel: "preload", as: "image", href: T }, T)) }),
      x,
    ],
  });
} //! moment.js locale configuration
//! locale : English (Canada) [en-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca
re.defineLocale("en-ca", {
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
  monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  longDateFormat: {
    LT: "h:mm A",
    LTS: "h:mm:ss A",
    L: "YYYY-MM-DD",
    LL: "MMMM D, YYYY",
    LLL: "MMMM D, YYYY h:mm A",
    LLLL: "dddd, MMMM D, YYYY h:mm A",
  },
  calendar: {
    sameDay: "[Today at] LT",
    nextDay: "[Tomorrow at] LT",
    nextWeek: "dddd [at] LT",
    lastDay: "[Yesterday at] LT",
    lastWeek: "[Last] dddd [at] LT",
    sameElse: "L",
  },
  relativeTime: {
    future: "in %s",
    past: "%s ago",
    s: "a few seconds",
    ss: "%d seconds",
    m: "a minute",
    mm: "%d minutes",
    h: "an hour",
    hh: "%d hours",
    d: "a day",
    dd: "%d days",
    M: "a month",
    MM: "%d months",
    y: "a year",
    yy: "%d years",
  },
  dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  ordinal: function (e) {
    var t = e % 10,
      n = ~~((e % 100) / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
    return e + n;
  },
});
re.locale("en");
const xZ = tV.components.MuiLocalizationProvider.defaultProps.localeText;
function bZ({
  quizSettings: e,
  quizId: t,
  preview: n = !1,
  changeFaviconAndTitle: r = !0,
  className: o,
  disableGlobalCss: i = !1,
}) {
  const [s] = b.useState(RT),
    [a, l] = b.useState(() => window.innerWidth),
    u = b.useRef(null),
    { data: c, error: d, isLoading: p } = nc(t, n),
    h = bc(e == null ? void 0 : e.settings.cfg.vkMetricsNumber),
    m = Cc(e == null ? void 0 : e.settings.cfg.yandexMetricsNumber);
  if (
    (b.useEffect(() => {
      setTimeout(() => {
        h.quizOpened(), m.quizOpened();
      }, 4e3);
    }, []),
    b.useLayoutEffect(() => {
      u.current && l(u.current.clientWidth);
    }, []),
    b.useEffect(() => {
      const C = () => {
        b.startTransition(() => {
          u.current && l(u.current.clientWidth);
        });
      };
      return (
        window.addEventListener("resize", C),
        () => {
          window.removeEventListener("resize", C);
        }
      );
    }, []),
    p)
  )
    return f.jsx(K9, {});
  if (d) return f.jsx(Xs, { error: d });
  if ((e ?? (e = c), !e)) return f.jsx(Xs, { error: new Error("Quiz data is null") });
  if (e.questions.length === 1 && e != null && e.settings.cfg.noStartPage)
    return f.jsx(Xs, { error: new Error("Quiz is empty") });
  if (!t) return f.jsx(Xs, { error: new Error("No quiz id") });
  const v = f.jsx(H, {
    ref: u,
    className: o,
    sx: { width: "100%", height: "100%", position: "relative" },
    children: f.jsx(gK, { FallbackComponent: Xs, onError: FY, children: f.jsx(vZ, {}) }),
  });
  return f.jsx(ov.Provider, {
    value: s,
    children: f.jsx(q9.Provider, {
      value: a,
      children: f.jsx(X9.Provider, {
        value: { ...e, quizId: t, preview: n, changeFaviconAndTitle: r },
        children: i
          ? f.jsx(vB, { sx: { height: "100%", width: "100%", backgroundColor: "transparent" }, children: v })
          : f.jsx(GF, { children: v }),
      }),
    }),
  });
}
function G5(e) {
  return f.jsx(HC, {
    children: f.jsx(u5, {
      dateAdapter: OY,
      adapterLocale: "ru",
      localeText: xZ,
      children: f.jsx(Oa, {
        theme: Ku,
        children: f.jsxs(hK, {
          preventDuplicate: !0,
          style: { backgroundColor: Ku.palette.brightPurple.main },
          children: [
            f.jsx(H, {
              id: "hideoverlay",
              sx: {
                position: "absolute",
                top: 0,
                left: 0,
                width: "100%",
                height: "100%",
                background: "black",
                zIndex: 999,
                opacity: 0,
                pointerEvents: "auto",
              },
            }),
            f.jsx(bZ, { ...e }),
          ],
        }),
      }),
    }),
  });
}
var co,
  J6 = ws;
(co = J6.createRoot), J6.hydrateRoot;
function CZ() {
  return f.jsx(H, {
    sx: {
      width: "80px",
      height: "76px",
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      flexShrink: 0,
    },
    children: f.jsxs("svg", {
      viewBox: "0 0 20 19",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg",
      children: [
        f.jsx("path", {
          d: "M13.2979 2.94922H15.4949C15.6488 2.94922 15.7964 3.01036 15.9052 3.11919C16.0141 3.22802 16.0752 3.37563 16.0752 3.52954V6.77848M7.21163 2.94922H5.04907C4.89516 2.94922 4.74755 3.01036 4.63872 3.11919C4.52989 3.22802 4.46875 3.37563 4.46875 3.52954V15.7163C4.46875 15.8702 4.52989 16.0178 4.63872 16.1267C4.74755 16.2355 4.89516 16.2966 5.04907 16.2966H8.53802M7.95068 16.2966H15.4949C15.6488 16.2966 15.7964 16.2355 15.9052 16.1267C16.0141 16.0178 16.0752 15.8702 16.0752 15.7163V11.9923",
          stroke: "white",
          strokeWidth: "0.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M9.40182 13.7891H7.65735C7.58039 13.7891 7.50659 13.762 7.45217 13.7139C7.39776 13.6659 7.36719 13.6006 7.36719 13.5326V8.14708C7.36719 8.07906 7.39776 8.01383 7.45217 7.96574C7.50659 7.91764 7.58039 7.89062 7.65735 7.89062H9.10815H12.8802C12.9572 7.89062 13.031 7.91764 13.0854 7.96574C13.1398 8.01383 13.1704 8.07906 13.1704 8.14708V9.58283",
          stroke: "white",
          strokeWidth: "0.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M7.36719 1.8125H13.1704V3.39705C13.1704 3.71756 12.9106 3.97737 12.5901 3.97737H7.94751C7.62701 3.97737 7.36719 3.71756 7.36719 3.39705V1.8125Z",
          stroke: "white",
          strokeWidth: "0.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
        f.jsx("path", {
          d: "M17.0844 8.36719L11.8615 13.5901L9.25 10.9786",
          stroke: "white",
          strokeWidth: "0.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
        }),
      ],
    }),
  });
}
var U5 = {},
  bh = {};
const wZ = Wo(JA);
var Q6;
function SZ() {
  return (
    Q6 ||
      ((Q6 = 1),
      (function (e) {
        "use client";
        Object.defineProperty(e, "__esModule", { value: !0 }),
          Object.defineProperty(e, "default", {
            enumerable: !0,
            get: function () {
              return t.createSvgIcon;
            },
          });
        var t = wZ;
      })(bh)),
    bh
  );
}
var kZ = W2;
Object.defineProperty(U5, "__esModule", { value: !0 });
var UC = (U5.default = void 0),
  TZ = kZ(SZ()),
  MZ = f;
UC = U5.default = (0, TZ.default)(
  (0, MZ.jsx)("path", {
    d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
  }),
  "Close"
);
const EZ = b.forwardRef((e, t) => f.jsx(xL, { direction: "up", ref: t, ...e }));
function Y0({ open: e = !0, quizId: t, paperSx: n = [], hideBackdrop: r, disableScrollLock: o, onClose: i }) {
  return f.jsxs(F9, {
    open: e,
    onClose: i,
    keepMounted: !0,
    hideBackdrop: r,
    disableScrollLock: o,
    TransitionComponent: EZ,
    PaperProps: {
      sx: [
        {
          backgroundColor: "transparent",
          width: "calc(min(100%, max(70%, 700px)))",
          maxWidth: "100%",
          height: "80%",
          maxHeight: "100%",
          m: "16px",
        },
        ...(Array.isArray(n) ? n : [n]),
      ],
    },
    children: [
      f.jsx(G5, { quizId: t, changeFaviconAndTitle: !1, disableGlobalCss: !0 }),
      f.jsx(_i, {
        onClick: i,
        sx: {
          position: "absolute",
          zIndex: 10,
          top: 0,
          right: 0,
          backgroundColor: "rgba(0, 0, 0, 0.5)",
          borderTopRightRadius: 0,
          borderTopLeftRadius: 0,
          borderBottomLeftRadius: "4px",
          borderBottomRightRadius: 0,
          "&:hover": { backgroundColor: "rgba(0, 0, 0, 0.7)" },
        },
        children: f.jsx(UC, { sx: { color: "white" } }),
      }),
    ],
  });
}
function Y5({ sx: e = [] }) {
  return f.jsx(H, {
    component: "span",
    sx: [
      {
        position: "absolute",
        height: "70px",
        width: "140px",
        background: "linear-gradient(0deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%)",
        animation: "runningStripe linear 3s infinite",
        transform: "rotate(-60deg)",
        "@keyframes runningStripe": { "0%": { left: "-150px", opacity: 1 }, "25%, 100%": { left: "100%", opacity: 0 } },
      },
      ...(Array.isArray(e) ? e : [e]),
    ],
  });
}
function YC(e, t) {
  return [Math.round(e[0] * t), Math.round(e[1] * t), Math.round(e[2] * t), e[3]];
}
function KC(e) {
  const [t, n, r, o] = e;
  return `#${((1 << 24) + (t << 16) + (n << 8) + r).toString(16).slice(1)}${
    o < 1
      ? Math.round(o * 255)
          .toString(16)
          .padStart(2, "0")
      : ""
  }`;
}
function XC(e) {
  (e = e.trim().toLowerCase()), (e = AZ[e] || e);
  const t = e.match(/^#([0-9a-f]{3})$/i);
  if (t) {
    const s = t[1];
    return [parseInt(s.charAt(0), 16) * 17, parseInt(s.charAt(1), 16) * 17, parseInt(s.charAt(2), 16) * 17, 1];
  }
  const n = e.match(/^#([0-9a-f]{6})$/i);
  if (n) {
    const s = n[1];
    return [parseInt(s.slice(0, 2), 16), parseInt(s.slice(2, 4), 16), parseInt(s.slice(4, 6), 16), 1];
  }
  const r = e.match(/^#([0-9a-f]{8})$/i);
  if (r) {
    const s = r[1];
    return [
      parseInt(s.slice(0, 2), 16),
      parseInt(s.slice(2, 4), 16),
      parseInt(s.slice(4, 6), 16),
      parseInt(s.slice(6, 8), 16) / 255,
    ];
  }
  const o =
    e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+.*\d*)\s*\)$/i) ||
    e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
  if (o) return [+o[1], +o[2], +o[3], o[4] === void 0 ? 1 : +o[4]];
  const i = e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
  return i ? [+i[1], +i[2], +i[3], 1] : e.indexOf("hsl") == 0 ? PZ(e) : null;
}
function PZ(e) {
  const t = e.match(/(\d+(\.\d+)?)/g);
  if (!t) return null;
  const n = +t[0] / 360,
    r = +t[1] / 100,
    o = +t[2] / 100,
    i = t[3] === void 0 ? 1 : +t[3];
  let s, a, l, u, c;
  if (r == 0) (c = Math.round(o * 255)), (u = [c, c, c, i]);
  else {
    o < 0.5 ? (a = o * (1 + r)) : (a = o + r - o * r), (s = 2 * o - a), (u = [0, 0, 0, 1]);
    for (let d = 0; d < 3; d++)
      (l = n + (1 / 3) * -(d - 1)),
        l < 0 && l++,
        l > 1 && l--,
        6 * l < 1
          ? (c = s + (a - s) * 6 * l)
          : 2 * l < 1
            ? (c = a)
            : 3 * l < 2
              ? (c = s + (a - s) * (2 / 3 - l) * 6)
              : (c = s),
        (u[d] = Math.round(c * 255));
  }
  return (u[3] = i), u;
}
const AZ = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkkhaki: "#bdb76b",
  darkmagenta: "#8b008b",
  darkolivegreen: "#556b2f",
  darkorange: "#ff8c00",
  darkorchid: "#9932cc",
  darkred: "#8b0000",
  darksalmon: "#e9967a",
  darkseagreen: "#8fbc8f",
  darkslateblue: "#483d8b",
  darkslategray: "#2f4f4f",
  darkturquoise: "#00ced1",
  darkviolet: "#9400d3",
  deeppink: "#ff1493",
  deepskyblue: "#00bfff",
  dimgray: "#696969",
  dodgerblue: "#1e90ff",
  firebrick: "#b22222",
  floralwhite: "#fffaf0",
  forestgreen: "#228b22",
  fuchsia: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  gold: "#ffd700",
  goldenrod: "#daa520",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavender: "#e6e6fa",
  lavenderblush: "#fff0f5",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  maroon: "#800000",
  mediumaquamarine: "#66cdaa",
  mediumblue: "#0000cd",
  mediumorchid: "#ba55d3",
  mediumpurple: "#9370db",
  mediumseagreen: "#3cb371",
  mediumslateblue: "#7b68ee",
  mediumspringgreen: "#00fa9a",
  mediumturquoise: "#48d1cc",
  mediumvioletred: "#c71585",
  midnightblue: "#191970",
  mintcream: "#f5fffa",
  mistyrose: "#ffe4e1",
  moccasin: "#ffe4b5",
  navajowhite: "#ffdead",
  navy: "#000080",
  oldlace: "#fdf5e6",
  olive: "#808000",
  olivedrab: "#6b8e23",
  orange: "#ffa500",
  orangered: "#ff4500",
  orchid: "#da70d6",
  palegoldenrod: "#eee8aa",
  palegreen: "#98fb98",
  paleturquoise: "#afeeee",
  palevioletred: "#db7093",
  papayawhip: "#ffefd5",
  peachpuff: "#ffdab9",
  peru: "#cd853f",
  pink: "#ffc0cb",
  plum: "#dda0dd",
  powderblue: "#b0e0e6",
  purple: "#800080",
  red: "#ff0000",
  rosybrown: "#bc8f8f",
  royalblue: "#4169e1",
  saddlebrown: "#8b4513",
  salmon: "#fa8072",
  sandybrown: "#f4a460",
  seagreen: "#2e8b57",
  seashell: "#fff5ee",
  sienna: "#a0522d",
  silver: "#c0c0c0",
  skyblue: "#87ceeb",
  slateblue: "#6a5acd",
  slategray: "#708090",
  snow: "#fffafa",
  springgreen: "#00ff7f",
  steelblue: "#4682b4",
  tan: "#d2b48c",
  teal: "#008080",
  thistle: "#d8bfd8",
  tomato: "#ff6347",
  turquoise: "#40e0d0",
  violet: "#ee82ee",
  wheat: "#f5deb3",
  white: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32",
};
function qC(e) {
  const [t, n] = b.useState(!!e);
  return (
    b.useEffect(
      function () {
        if (!e) return;
        const o = setTimeout(() => n(!1), e * 1e3);
        return () => {
          clearTimeout(o);
        };
      },
      [e]
    ),
    t
  );
}
const Co = 10;
function _Z({
  quizId: e,
  position: t,
  onWidgetClose: n,
  appealText: r = "Take the test",
  quizHeaderText: o = "Quiz Title",
  buttonTextColor: i,
  buttonBackgroundColor: s,
  autoShowQuizTime: a = null,
  openOnLeaveAttempt: l,
  buttonFlash: u = !1,
  hideOnMobile: c,
  withShadow: d = !1,
  rounded: p = !1,
  bannerFullWidth: h = !1,
  pulsation: m = !1,
  autoShowWidgetTime: v = 0,
  dialogDimensions: C,
  fullScreen: y = !1,
}) {
  const g = xs("(max-width: 600px)"),
    [x, w] = b.useState(!1),
    [k, M] = b.useState(u),
    T = qC(v),
    { data: P } = nc(e),
    A = b.useRef(!1),
    D = b.useRef(!1);
  b.useEffect(
    function () {
      if (a === null || l) return;
      const B = setTimeout(() => {
        w(!0);
      }, a * 1e3);
      return () => {
        clearTimeout(B);
      };
    },
    [a, l]
  ),
    b.useEffect(
      function () {
        if (!l) return;
        const B = () => {
          D.current || ((D.current = !0), w(!0));
        };
        return (
          document.documentElement.addEventListener("mouseleave", B),
          () => {
            document.documentElement.removeEventListener("mouseleave", B);
          }
        );
      },
      [l]
    );
  function R() {
    (A.current = !0), w(!0), M(!1);
  }
  if ((c && g) || !P) return null;
  const F = !(P.settings.cfg.antifraud ? P.recentlyCompleted : !1) && k;
  let O = s;
  if (s) {
    const E = XC(s);
    E && (O = KC(YC(E, 0.7)));
  }
  return ws.createPortal(
    f.jsxs(Oa, {
      theme: Ku,
      children: [
        f.jsx(Ii, {
          in: !x && !T,
          children: f.jsxs(H, {
            className: "pena-quiz-widget-banner",
            sx: [
              {
                position: "fixed",
                height: "120px",
                width: h ? "100%" : "800px",
                maxWidth: h ? "100%" : `calc(100% - ${Co * 2}px)`,
              },
              t === "topleft" && { top: h ? 0 : Co, left: h ? 0 : Co },
              t === "topright" && { top: h ? 0 : Co, right: h ? 0 : Co },
              t === "bottomleft" && { bottom: h ? 0 : Co, left: h ? 0 : Co },
              t === "bottomright" && { bottom: h ? 0 : Co, right: h ? 0 : Co },
              m && {
                ":before": {
                  content: "''",
                  position: "absolute",
                  height: "100%",
                  width: "100%",
                  pointerEvents: "none",
                  willChange: "box-shadow",
                  borderRadius: p && !h ? "8px" : 0,
                  animation: "pena-pulsation linear 5s infinite",
                  "@keyframes pena-pulsation": {
                    "0%": { boxShadow: "0 0 0 0 rgba(126, 42, 234, 0.5)" },
                    "30%": { boxShadow: "0 0 0 15px rgba(0, 0, 0, 0)" },
                    "100%": { boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)" },
                  },
                },
              },
            ],
            children: [
              f.jsxs(Vn, {
                onClick: R,
                variant: "contained",
                sx: [
                  {
                    display: "flex",
                    gap: "20px",
                    overflow: "hidden",
                    height: "100%",
                    width: "100%",
                    px: "28px",
                    color: i,
                    backgroundColor: s,
                    borderRadius: p && !h ? "8px" : 0,
                    justifyContent: "start",
                    ":hover": { backgroundColor: O },
                  },
                  d && { boxShadow: "0px 0px 12px 0px rgba(0, 0, 0, 0.7)" },
                ],
                children: [
                  f.jsx(CZ, {}),
                  f.jsxs(H, {
                    sx: { display: "flex", flexDirection: "column", alignItems: "start" },
                    children: [
                      f.jsx(xe, { fontSize: "24px", lineHeight: "120%", children: r }),
                      f.jsx(xe, { fontSize: "44px", lineHeight: "120%", children: o }),
                    ],
                  }),
                  F && f.jsx(Y5, {}),
                ],
              }),
              f.jsx(_i, {
                onClick: n,
                sx: {
                  position: "absolute",
                  top: 0,
                  right: 0,
                  p: "8px",
                  width: "44px",
                  height: "44px",
                  borderRadius: "4px",
                  ":hover": { backgroundColor: "rgba(0, 0, 0, 0.3)" },
                },
                children: f.jsx("svg", {
                  viewBox: "0 0 7 7",
                  fill: "none",
                  xmlns: "http://www.w3.org/2000/svg",
                  children: f.jsx("path", {
                    d: "M1.00391 0.757812L6.67266 6.42656M1.00391 6.42656L6.67266 0.757812",
                    stroke: "white",
                    strokeWidth: "0.5",
                  }),
                }),
              }),
            ],
          }),
        }),
        f.jsx(Y0, {
          open: x,
          quizId: e,
          onClose: () => w(!1),
          disableScrollLock: !0,
          paperSx: [
            g || y
              ? { width: "100%", height: "100%", maxHeight: "100%", borderRadius: 0, m: 0 }
              : { width: C == null ? void 0 : C.width, height: C == null ? void 0 : C.height },
          ],
        }),
      ],
    }),
    document.body
  );
}
class BZ {
  constructor(t) {
    Xt(this, "root");
    Xt(this, "element", document.createElement("div"));
    this.element.style.setProperty("display", "none"),
      document.body.appendChild(this.element),
      (this.root = co(this.element)),
      this.render(t);
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(f.jsx(_Z, { ...t, onWidgetClose: () => this.destroy() }));
  }
  destroy() {
    this.root && this.root.unmount(), this.element.remove();
  }
}
const DZ = 5e3;
function ZC(e, t, n) {
  const r = Date.now() + t * 1e3,
    o = setInterval(() => {
      const i = document.querySelector(e);
      if (Date.now() > r) {
        clearInterval(o), console.error(`Не удалось найти элемент ${e} для вставки виджета`);
        return;
      }
      i && (clearInterval(o), n(i));
    }, DZ);
}
function K5({
  quizId: e,
  fixedSide: t,
  autoShowQuizTime: n = null,
  dialogDimensions: r,
  hideOnMobile: o,
  openOnLeaveAttempt: i,
  buttonFlash: s = !1,
  withShadow: a = !1,
  rounded: l = !1,
  buttonText: u = "Take the quiz",
  buttonTextColor: c,
  buttonBackgroundColor: d,
  fullScreen: p = !1,
}) {
  const h = xs("(max-width: 600px)"),
    [m, v] = b.useState(!1),
    { data: C } = nc(e),
    [y, g] = b.useState(s),
    x = b.useRef(!1),
    w = b.useRef(!1);
  b.useEffect(
    function () {
      if (n === null || i) return;
      const D = setTimeout(() => {
        v(!0);
      }, n * 1e3);
      return () => {
        clearTimeout(D);
      };
    },
    [n, i]
  ),
    b.useEffect(
      function () {
        if (!i) return;
        const D = () => {
          w.current || ((w.current = !0), v(!0));
        };
        return (
          document.addEventListener("mouseleave", D),
          () => {
            document.removeEventListener("mouseleave", D);
          }
        );
      },
      [i]
    );
  function k() {
    (x.current = !0), v(!0), g(!1);
  }
  if ((o && h) || !C) return null;
  const T = !(C.settings.cfg.antifraud ? C.recentlyCompleted : !1) && y;
  let P = d;
  if (d) {
    const A = XC(d);
    A && (P = KC(YC(A, 0.7)));
  }
  return f.jsxs(Oa, {
    theme: Ku,
    children: [
      f.jsxs(Vn, {
        className: "pena-quiz-widget-button",
        onClick: k,
        variant: "contained",
        disableFocusRipple: !0,
        sx: [
          {
            overflow: "hidden",
            py: "23px",
            px: "40px",
            fontSize: "20px",
            color: c,
            backgroundColor: d,
            boxShadow: a ? "2px 5px 20px 2px rgba(25, 6, 50, 0.4), 0 2px 10px 0 rgba(35, 17, 58, 0.1)" : "none",
            borderRadius: l ? "30px" : 0,
            ":hover": { backgroundColor: P },
          },
          !!t && { position: "fixed", bottom: "50%" },
          t === "left" && {
            left: 0,
            transformOrigin: "left",
            transform: "rotate(-90deg) translateY(50%) translateX(-50%)",
          },
          t === "right" && {
            right: 0,
            transformOrigin: "right",
            transform: "rotate(-90deg) translateY(-50%) translateX(50%)",
          },
        ],
        children: [u, T && f.jsx(Y5, {})],
      }),
      f.jsx(Y0, {
        open: m,
        quizId: e,
        onClose: () => v(!1),
        paperSx: [
          h || p
            ? { width: "100%", height: "100%", maxHeight: "100%", borderRadius: 0, m: 0 }
            : { width: r == null ? void 0 : r.width, height: r == null ? void 0 : r.height },
        ],
      }),
    ],
  });
}
class jZ {
  constructor(t) {
    Xt(this, "root");
    const { selector: n, selectorPollingTimeLimit: r = 60 } = t,
      o = document.querySelector(n);
    if (o) {
      (this.root = co(o)), this.render(t);
      return;
    }
    if (!r) {
      console.error(`Не удалось найти элемент ${n} для вставки виджета`);
      return;
    }
    ZC(n, r, (i) => {
      (this.root = co(i)), this.render(t);
    });
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(f.jsx(K5, { ...t }));
  }
  destroy() {
    this.root && this.root.unmount();
  }
}
class VZ {
  constructor(t) {
    Xt(this, "root");
    Xt(this, "element", document.createElement("div"));
    this.element.style.setProperty("display", "none"),
      document.body.appendChild(this.element),
      (this.root = co(this.element)),
      this.render(t);
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(ws.createPortal(f.jsx(K5, { ...t }), document.body));
  }
  destroy() {
    this.root && this.root.unmount(), this.element.remove();
  }
}
function RZ(e) {
  const { quizId: t, dimensions: n, showButtonOnMobile: r = !1 } = e,
    o = xs("(max-width: 600px)");
  return r && o
    ? f.jsx(K5, { ...e })
    : f.jsx(H, {
        sx: {
          width: (n == null ? void 0 : n.width) ?? "100%",
          maxWidth: "100%",
          height: (n == null ? void 0 : n.height) ?? "100%",
          maxHeight: "100%",
        },
        children: f.jsx(G5, { quizId: t, changeFaviconAndTitle: !1, disableGlobalCss: !0 }),
      });
}
class HZ {
  constructor(t) {
    Xt(this, "root");
    const { selector: n, selectorPollingTimeLimit: r = 60 } = t,
      o = document.querySelector(n);
    if (o) {
      (this.root = co(o)), this.render(t);
      return;
    }
    if (!r) {
      console.error(`Не удалось найти элемент ${n} для вставки виджета`);
      return;
    }
    ZC(n, r, (i) => {
      (this.root = co(i)), this.render(t);
    });
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(f.jsx(RZ, { ...t }));
  }
  destroy() {
    this.root && this.root.unmount();
  }
}
function IZ({
  quizId: e,
  dialogDimensions: t,
  autoShowQuizTime: n = null,
  hideOnMobile: r = !1,
  openOnLeaveAttempt: o = !1,
  fullScreen: i = !1,
}) {
  const s = !(n !== null || o),
    { data: a } = nc(e),
    [l, u] = b.useState(s),
    c = xs("(max-width: 600px)"),
    d = b.useRef(!1);
  return (
    b.useEffect(
      function () {
        if (n === null || o) return;
        const m = setTimeout(() => {
          u(!0);
        }, n * 1e3);
        return () => {
          clearTimeout(m);
        };
      },
      [n, o]
    ),
    b.useEffect(
      function () {
        if (!o) return;
        const m = () => {
          d.current || ((d.current = !0), u(!0));
        };
        return (
          document.addEventListener("mouseleave", m),
          () => {
            document.removeEventListener("mouseleave", m);
          }
        );
      },
      [o]
    ),
    !a || (a.settings.cfg.antifraud ? a.recentlyCompleted : !1) || (r && c)
      ? null
      : f.jsx(Y0, {
          open: l,
          quizId: e,
          onClose: () => u(!1),
          paperSx: [
            c || i
              ? { width: "100%", height: "100%", maxHeight: "100%", borderRadius: 0, m: 0 }
              : { width: t == null ? void 0 : t.width, height: t == null ? void 0 : t.height },
          ],
        })
  );
}
class zZ {
  constructor(t) {
    Xt(this, "root");
    Xt(this, "element", document.createElement("div"));
    this.element.style.setProperty("display", "none"),
      document.body.appendChild(this.element),
      (this.root = co(this.element)),
      this.render(t);
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(f.jsx(IZ, { ...t }));
  }
  destroy() {
    this.root && this.root.unmount(), this.element.remove();
  }
}
const Gr = 10,
  OZ = "600px",
  FZ = "800px";
function LZ({
  quizId: e,
  position: t,
  buttonBackgroundColor: n,
  buttonTextColor: r,
  dialogDimensions: o,
  fullScreen: i = !1,
  buttonText: s,
  buttonFlash: a = !1,
  autoShowWidgetTime: l = 0,
  autoShowQuizTime: u = null,
  hideOnMobile: c = !1,
}) {
  const [d, p] = b.useState(!1),
    h = xs("(max-width: 600px)"),
    { data: m } = nc(e),
    [v, C] = b.useState(a),
    y = qC(l),
    g = b.useRef(!1);
  b.useEffect(
    function () {
      if (u === null) return;
      const T = setTimeout(() => {
        g.current || p(!0);
      }, u * 1e3);
      return () => {
        clearTimeout(T);
      };
    },
    [u]
  );
  function x() {
    (g.current = !0), p(!0), C(!1);
  }
  if ((c && h) || !m) return null;
  const k = !(m.settings.cfg.antifraud ? m.recentlyCompleted : !1) && v;
  return ws.createPortal(
    f.jsxs(Oa, {
      theme: Ku,
      children: [
        f.jsx(Y0, {
          open: d,
          quizId: e,
          onClose: () => p(!1),
          hideBackdrop: !0,
          disableScrollLock: !0,
          paperSx: [
            { m: 0 },
            h || i
              ? { width: "100%", height: "100%", maxHeight: "100%", borderRadius: 0 }
              : {
                  position: "absolute",
                  bottom: Gr,
                  right: t === "right" ? Gr : void 0,
                  left: t === "left" ? Gr : void 0,
                  width: (o == null ? void 0 : o.width) ?? OZ,
                  maxWidth: `calc(100% - ${Gr * 2}px)`,
                  height: (o == null ? void 0 : o.height) ?? FZ,
                  maxHeight: `calc(100% - ${Gr * 2}px)`,
                },
          ],
        }),
        f.jsx(Ii, {
          in: !y,
          timeout: 400,
          children: f.jsxs(Vn, {
            className: "pena-quiz-widget-button",
            variant: "contained",
            onClick: x,
            disableFocusRipple: !0,
            sx: [
              {
                display: d ? "none" : "block",
                position: "fixed",
                height: "70px",
                width: "600px",
                maxWidth: `calc(100% - ${Gr * 2}px)`,
                backgroundColor: n,
                color: r,
                overflow: "hidden",
              },
              t === "left" && { bottom: Gr, left: Gr },
              t === "right" && { bottom: Gr, right: Gr },
            ],
            children: [s || "Take the quiz", k && f.jsx(Y5, {})],
          }),
        }),
      ],
    }),
    document.body
  );
}
class WZ {
  constructor(t) {
    Xt(this, "root");
    Xt(this, "element", document.createElement("div"));
    this.element.style.setProperty("display", "none"),
      document.body.appendChild(this.element),
      (this.root = co(this.element)),
      this.render(t);
  }
  render(t) {
    var n;
    (n = this.root) == null || n.render(f.jsx(LZ, { ...t }));
  }
  destroy() {
    this.root && this.root.unmount(), this.element.remove();
  }
}
const GZ = {
  create({ selector: e, quizId: t, changeFaviconAndTitle: n = !0 }) {
    const r = document.getElementById(e);
    if (!r) throw new Error("Element for widget doesn't exist");
    co(r).render(f.jsx(G5, { quizId: t, changeFaviconAndTitle: n, disableGlobalCss: !0 }));
  },
};
export {
  BZ as BannerWidget,
  jZ as ButtonWidget,
  VZ as ButtonWidgetFixed,
  HZ as ContainerWidget,
  zZ as PopupWidget,
  WZ as SideWidget,
  GZ as default,
};
