var Yc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Vd(J) {
  if (Object.prototype.hasOwnProperty.call(J, "__esModule")) return J;
  var K = J.default;
  if (typeof K == "function") {
    var X = function ne() {
      var ie = !1;
      try {
        ie = this instanceof ne;
      } catch {
      }
      return ie ? Reflect.construct(K, arguments, this.constructor) : K.apply(this, arguments);
    };
    X.prototype = K.prototype;
  } else X = {};
  return Object.defineProperty(X, "__esModule", { value: !0 }), Object.keys(J).forEach(function(ne) {
    var ie = Object.getOwnPropertyDescriptor(J, ne);
    Object.defineProperty(X, ne, ie.get ? ie : {
      enumerable: !0,
      get: function() {
        return J[ne];
      }
    });
  }), X;
}
var Su = { exports: {} }, bo = {}, Nu = { exports: {} }, tt = {};
var Qc;
function Xd() {
  if (Qc) return tt;
  Qc = 1;
  var J = Symbol.for("react.element"), K = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), ie = Symbol.for("react.profiler"), we = Symbol.for("react.provider"), Z = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), S = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), A = Symbol.iterator;
  function _(L) {
    return L === null || typeof L != "object" ? null : (L = A && L[A] || L["@@iterator"], typeof L == "function" ? L : null);
  }
  var I = { isMounted: function() {
    return !1;
  }, enqueueForceUpdate: function() {
  }, enqueueReplaceState: function() {
  }, enqueueSetState: function() {
  } }, E = Object.assign, T = {};
  function v(L, Q, ae) {
    this.props = L, this.context = Q, this.refs = T, this.updater = ae || I;
  }
  v.prototype.isReactComponent = {}, v.prototype.setState = function(L, Q) {
    if (typeof L != "object" && typeof L != "function" && L != 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, L, Q, "setState");
  }, v.prototype.forceUpdate = function(L) {
    this.updater.enqueueForceUpdate(this, L, "forceUpdate");
  };
  function i() {
  }
  i.prototype = v.prototype;
  function o(L, Q, ae) {
    this.props = L, this.context = Q, this.refs = T, this.updater = ae || I;
  }
  var a = o.prototype = new i();
  a.constructor = o, E(a, v.prototype), a.isPureReactComponent = !0;
  var d = Array.isArray, s = Object.prototype.hasOwnProperty, u = { current: null }, p = { key: !0, ref: !0, __self: !0, __source: !0 };
  function w(L, Q, ae) {
    var de, ue = {}, pe = null, ke = null;
    if (Q != null) for (de in Q.ref !== void 0 && (ke = Q.ref), Q.key !== void 0 && (pe = "" + Q.key), Q) s.call(Q, de) && !p.hasOwnProperty(de) && (ue[de] = Q[de]);
    var Ee = arguments.length - 2;
    if (Ee === 1) ue.children = ae;
    else if (1 < Ee) {
      for (var Ne = Array(Ee), Oe = 0; Oe < Ee; Oe++) Ne[Oe] = arguments[Oe + 2];
      ue.children = Ne;
    }
    if (L && L.defaultProps) for (de in Ee = L.defaultProps, Ee) ue[de] === void 0 && (ue[de] = Ee[de]);
    return { $$typeof: J, type: L, key: pe, ref: ke, props: ue, _owner: u.current };
  }
  function C(L, Q) {
    return { $$typeof: J, type: L.type, key: Q, ref: L.ref, props: L.props, _owner: L._owner };
  }
  function N(L) {
    return typeof L == "object" && L !== null && L.$$typeof === J;
  }
  function R(L) {
    var Q = { "=": "=0", ":": "=2" };
    return "$" + L.replace(/[=:]/g, function(ae) {
      return Q[ae];
    });
  }
  var P = /\/+/g;
  function z(L, Q) {
    return typeof L == "object" && L !== null && L.key != null ? R("" + L.key) : Q.toString(36);
  }
  function q(L, Q, ae, de, ue) {
    var pe = typeof L;
    (pe === "undefined" || pe === "boolean") && (L = null);
    var ke = !1;
    if (L === null) ke = !0;
    else switch (pe) {
      case "string":
      case "number":
        ke = !0;
        break;
      case "object":
        switch (L.$$typeof) {
          case J:
          case K:
            ke = !0;
        }
    }
    if (ke) return ke = L, ue = ue(ke), L = de === "" ? "." + z(ke, 0) : de, d(ue) ? (ae = "", L != null && (ae = L.replace(P, "$&/") + "/"), q(ue, Q, ae, "", function(Oe) {
      return Oe;
    })) : ue != null && (N(ue) && (ue = C(ue, ae + (!ue.key || ke && ke.key === ue.key ? "" : ("" + ue.key).replace(P, "$&/") + "/") + L)), Q.push(ue)), 1;
    if (ke = 0, de = de === "" ? "." : de + ":", d(L)) for (var Ee = 0; Ee < L.length; Ee++) {
      pe = L[Ee];
      var Ne = de + z(pe, Ee);
      ke += q(pe, Q, ae, Ne, ue);
    }
    else if (Ne = _(L), typeof Ne == "function") for (L = Ne.call(L), Ee = 0; !(pe = L.next()).done; ) pe = pe.value, Ne = de + z(pe, Ee++), ke += q(pe, Q, ae, Ne, ue);
    else if (pe === "object") throw Q = String(L), Error("Objects are not valid as a React child (found: " + (Q === "[object Object]" ? "object with keys {" + Object.keys(L).join(", ") + "}" : Q) + "). If you meant to render a collection of children, use an array instead.");
    return ke;
  }
  function V(L, Q, ae) {
    if (L == null) return L;
    var de = [], ue = 0;
    return q(L, de, "", "", function(pe) {
      return Q.call(ae, pe, ue++);
    }), de;
  }
  function D(L) {
    if (L._status === -1) {
      var Q = L._result;
      Q = Q(), Q.then(function(ae) {
        (L._status === 0 || L._status === -1) && (L._status = 1, L._result = ae);
      }, function(ae) {
        (L._status === 0 || L._status === -1) && (L._status = 2, L._result = ae);
      }), L._status === -1 && (L._status = 0, L._result = Q);
    }
    if (L._status === 1) return L._result.default;
    throw L._result;
  }
  var B = { current: null }, b = { transition: null }, F = { ReactCurrentDispatcher: B, ReactCurrentBatchConfig: b, ReactCurrentOwner: u };
  function H() {
    throw Error("act(...) is not supported in production builds of React.");
  }
  return tt.Children = { map: V, forEach: function(L, Q, ae) {
    V(L, function() {
      Q.apply(this, arguments);
    }, ae);
  }, count: function(L) {
    var Q = 0;
    return V(L, function() {
      Q++;
    }), Q;
  }, toArray: function(L) {
    return V(L, function(Q) {
      return Q;
    }) || [];
  }, only: function(L) {
    if (!N(L)) throw Error("React.Children.only expected to receive a single React element child.");
    return L;
  } }, tt.Component = v, tt.Fragment = X, tt.Profiler = ie, tt.PureComponent = o, tt.StrictMode = ne, tt.Suspense = y, tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = F, tt.act = H, tt.cloneElement = function(L, Q, ae) {
    if (L == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + L + ".");
    var de = E({}, L.props), ue = L.key, pe = L.ref, ke = L._owner;
    if (Q != null) {
      if (Q.ref !== void 0 && (pe = Q.ref, ke = u.current), Q.key !== void 0 && (ue = "" + Q.key), L.type && L.type.defaultProps) var Ee = L.type.defaultProps;
      for (Ne in Q) s.call(Q, Ne) && !p.hasOwnProperty(Ne) && (de[Ne] = Q[Ne] === void 0 && Ee !== void 0 ? Ee[Ne] : Q[Ne]);
    }
    var Ne = arguments.length - 2;
    if (Ne === 1) de.children = ae;
    else if (1 < Ne) {
      Ee = Array(Ne);
      for (var Oe = 0; Oe < Ne; Oe++) Ee[Oe] = arguments[Oe + 2];
      de.children = Ee;
    }
    return { $$typeof: J, type: L.type, key: ue, ref: pe, props: de, _owner: ke };
  }, tt.createContext = function(L) {
    return L = { $$typeof: Z, _currentValue: L, _currentValue2: L, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, L.Provider = { $$typeof: we, _context: L }, L.Consumer = L;
  }, tt.createElement = w, tt.createFactory = function(L) {
    var Q = w.bind(null, L);
    return Q.type = L, Q;
  }, tt.createRef = function() {
    return { current: null };
  }, tt.forwardRef = function(L) {
    return { $$typeof: m, render: L };
  }, tt.isValidElement = N, tt.lazy = function(L) {
    return { $$typeof: g, _payload: { _status: -1, _result: L }, _init: D };
  }, tt.memo = function(L, Q) {
    return { $$typeof: S, type: L, compare: Q === void 0 ? null : Q };
  }, tt.startTransition = function(L) {
    var Q = b.transition;
    b.transition = {};
    try {
      L();
    } finally {
      b.transition = Q;
    }
  }, tt.unstable_act = H, tt.useCallback = function(L, Q) {
    return B.current.useCallback(L, Q);
  }, tt.useContext = function(L) {
    return B.current.useContext(L);
  }, tt.useDebugValue = function() {
  }, tt.useDeferredValue = function(L) {
    return B.current.useDeferredValue(L);
  }, tt.useEffect = function(L, Q) {
    return B.current.useEffect(L, Q);
  }, tt.useId = function() {
    return B.current.useId();
  }, tt.useImperativeHandle = function(L, Q, ae) {
    return B.current.useImperativeHandle(L, Q, ae);
  }, tt.useInsertionEffect = function(L, Q) {
    return B.current.useInsertionEffect(L, Q);
  }, tt.useLayoutEffect = function(L, Q) {
    return B.current.useLayoutEffect(L, Q);
  }, tt.useMemo = function(L, Q) {
    return B.current.useMemo(L, Q);
  }, tt.useReducer = function(L, Q, ae) {
    return B.current.useReducer(L, Q, ae);
  }, tt.useRef = function(L) {
    return B.current.useRef(L);
  }, tt.useState = function(L) {
    return B.current.useState(L);
  }, tt.useSyncExternalStore = function(L, Q, ae) {
    return B.current.useSyncExternalStore(L, Q, ae);
  }, tt.useTransition = function() {
    return B.current.useTransition();
  }, tt.version = "18.3.1", tt;
}
var Kc;
function so() {
  return Kc || (Kc = 1, Nu.exports = Xd()), Nu.exports;
}
var Zc;
function Yd() {
  if (Zc) return bo;
  Zc = 1;
  var J = so(), K = Symbol.for("react.element"), X = Symbol.for("react.fragment"), ne = Object.prototype.hasOwnProperty, ie = J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, we = { key: !0, ref: !0, __self: !0, __source: !0 };
  function Z(m, y, S) {
    var g, A = {}, _ = null, I = null;
    S !== void 0 && (_ = "" + S), y.key !== void 0 && (_ = "" + y.key), y.ref !== void 0 && (I = y.ref);
    for (g in y) ne.call(y, g) && !we.hasOwnProperty(g) && (A[g] = y[g]);
    if (m && m.defaultProps) for (g in y = m.defaultProps, y) A[g] === void 0 && (A[g] = y[g]);
    return { $$typeof: K, type: m, key: _, ref: I, props: A, _owner: ie.current };
  }
  return bo.Fragment = X, bo.jsx = Z, bo.jsxs = Z, bo;
}
var Jc;
function Qd() {
  return Jc || (Jc = 1, Su.exports = Yd()), Su.exports;
}
var Jl = Qd(), Rt = so(), Dl = {}, Eu = { exports: {} }, mn = {}, xu = { exports: {} }, ku = {};
var $c;
function Kd() {
  return $c || ($c = 1, (function(J) {
    function K(b, F) {
      var H = b.length;
      b.push(F);
      e: for (; 0 < H; ) {
        var L = H - 1 >>> 1, Q = b[L];
        if (0 < ie(Q, F)) b[L] = F, b[H] = Q, H = L;
        else break e;
      }
    }
    function X(b) {
      return b.length === 0 ? null : b[0];
    }
    function ne(b) {
      if (b.length === 0) return null;
      var F = b[0], H = b.pop();
      if (H !== F) {
        b[0] = H;
        e: for (var L = 0, Q = b.length, ae = Q >>> 1; L < ae; ) {
          var de = 2 * (L + 1) - 1, ue = b[de], pe = de + 1, ke = b[pe];
          if (0 > ie(ue, H)) pe < Q && 0 > ie(ke, ue) ? (b[L] = ke, b[pe] = H, L = pe) : (b[L] = ue, b[de] = H, L = de);
          else if (pe < Q && 0 > ie(ke, H)) b[L] = ke, b[pe] = H, L = pe;
          else break e;
        }
      }
      return F;
    }
    function ie(b, F) {
      var H = b.sortIndex - F.sortIndex;
      return H !== 0 ? H : b.id - F.id;
    }
    if (typeof performance == "object" && typeof performance.now == "function") {
      var we = performance;
      J.unstable_now = function() {
        return we.now();
      };
    } else {
      var Z = Date, m = Z.now();
      J.unstable_now = function() {
        return Z.now() - m;
      };
    }
    var y = [], S = [], g = 1, A = null, _ = 3, I = !1, E = !1, T = !1, v = typeof setTimeout == "function" ? setTimeout : null, i = typeof clearTimeout == "function" ? clearTimeout : null, o = typeof setImmediate < "u" ? setImmediate : null;
    typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
    function a(b) {
      for (var F = X(S); F !== null; ) {
        if (F.callback === null) ne(S);
        else if (F.startTime <= b) ne(S), F.sortIndex = F.expirationTime, K(y, F);
        else break;
        F = X(S);
      }
    }
    function d(b) {
      if (T = !1, a(b), !E) if (X(y) !== null) E = !0, D(s);
      else {
        var F = X(S);
        F !== null && B(d, F.startTime - b);
      }
    }
    function s(b, F) {
      E = !1, T && (T = !1, i(w), w = -1), I = !0;
      var H = _;
      try {
        for (a(F), A = X(y); A !== null && (!(A.expirationTime > F) || b && !R()); ) {
          var L = A.callback;
          if (typeof L == "function") {
            A.callback = null, _ = A.priorityLevel;
            var Q = L(A.expirationTime <= F);
            F = J.unstable_now(), typeof Q == "function" ? A.callback = Q : A === X(y) && ne(y), a(F);
          } else ne(y);
          A = X(y);
        }
        if (A !== null) var ae = !0;
        else {
          var de = X(S);
          de !== null && B(d, de.startTime - F), ae = !1;
        }
        return ae;
      } finally {
        A = null, _ = H, I = !1;
      }
    }
    var u = !1, p = null, w = -1, C = 5, N = -1;
    function R() {
      return !(J.unstable_now() - N < C);
    }
    function P() {
      if (p !== null) {
        var b = J.unstable_now();
        N = b;
        var F = !0;
        try {
          F = p(!0, b);
        } finally {
          F ? z() : (u = !1, p = null);
        }
      } else u = !1;
    }
    var z;
    if (typeof o == "function") z = function() {
      o(P);
    };
    else if (typeof MessageChannel < "u") {
      var q = new MessageChannel(), V = q.port2;
      q.port1.onmessage = P, z = function() {
        V.postMessage(null);
      };
    } else z = function() {
      v(P, 0);
    };
    function D(b) {
      p = b, u || (u = !0, z());
    }
    function B(b, F) {
      w = v(function() {
        b(J.unstable_now());
      }, F);
    }
    J.unstable_IdlePriority = 5, J.unstable_ImmediatePriority = 1, J.unstable_LowPriority = 4, J.unstable_NormalPriority = 3, J.unstable_Profiling = null, J.unstable_UserBlockingPriority = 2, J.unstable_cancelCallback = function(b) {
      b.callback = null;
    }, J.unstable_continueExecution = function() {
      E || I || (E = !0, D(s));
    }, J.unstable_forceFrameRate = function(b) {
      0 > b || 125 < b ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : C = 0 < b ? Math.floor(1e3 / b) : 5;
    }, J.unstable_getCurrentPriorityLevel = function() {
      return _;
    }, J.unstable_getFirstCallbackNode = function() {
      return X(y);
    }, J.unstable_next = function(b) {
      switch (_) {
        case 1:
        case 2:
        case 3:
          var F = 3;
          break;
        default:
          F = _;
      }
      var H = _;
      _ = F;
      try {
        return b();
      } finally {
        _ = H;
      }
    }, J.unstable_pauseExecution = function() {
    }, J.unstable_requestPaint = function() {
    }, J.unstable_runWithPriority = function(b, F) {
      switch (b) {
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
          break;
        default:
          b = 3;
      }
      var H = _;
      _ = b;
      try {
        return F();
      } finally {
        _ = H;
      }
    }, J.unstable_scheduleCallback = function(b, F, H) {
      var L = J.unstable_now();
      switch (typeof H == "object" && H !== null ? (H = H.delay, H = typeof H == "number" && 0 < H ? L + H : L) : H = L, b) {
        case 1:
          var Q = -1;
          break;
        case 2:
          Q = 250;
          break;
        case 5:
          Q = 1073741823;
          break;
        case 4:
          Q = 1e4;
          break;
        default:
          Q = 5e3;
      }
      return Q = H + Q, b = { id: g++, callback: F, priorityLevel: b, startTime: H, expirationTime: Q, sortIndex: -1 }, H > L ? (b.sortIndex = H, K(S, b), X(y) === null && b === X(S) && (T ? (i(w), w = -1) : T = !0, B(d, H - L))) : (b.sortIndex = Q, K(y, b), E || I || (E = !0, D(s))), b;
    }, J.unstable_shouldYield = R, J.unstable_wrapCallback = function(b) {
      var F = _;
      return function() {
        var H = _;
        _ = F;
        try {
          return b.apply(this, arguments);
        } finally {
          _ = H;
        }
      };
    };
  })(ku)), ku;
}
var ef;
function Zd() {
  return ef || (ef = 1, xu.exports = Kd()), xu.exports;
}
var tf;
function Jd() {
  if (tf) return mn;
  tf = 1;
  var J = so(), K = Zd();
  function X(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 ne = /* @__PURE__ */ new Set(), ie = {};
  function we(e, t) {
    Z(e, t), Z(e + "Capture", t);
  }
  function Z(e, t) {
    for (ie[e] = t, e = 0; e < t.length; e++) ne.add(t[e]);
  }
  var m = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), y = Object.prototype.hasOwnProperty, S = /^[: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]*$/, g = {}, A = {};
  function _(e) {
    return y.call(A, e) ? !0 : y.call(g, e) ? !1 : S.test(e) ? A[e] = !0 : (g[e] = !0, !1);
  }
  function I(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 E(e, t, n, r) {
    if (t === null || typeof t > "u" || I(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 T(e, t, n, r, l, h, O) {
    this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = l, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = h, this.removeEmptyString = O;
  }
  var v = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
    v[e] = new T(e, 0, !1, e, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
    var t = e[0];
    v[t] = new T(t, 1, !1, e[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
    v[e] = new T(e, 2, !1, e.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
    v[e] = new T(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) {
    v[e] = new T(e, 3, !1, e.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(e) {
    v[e] = new T(e, 3, !0, e, null, !1, !1);
  }), ["capture", "download"].forEach(function(e) {
    v[e] = new T(e, 4, !1, e, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(e) {
    v[e] = new T(e, 6, !1, e, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(e) {
    v[e] = new T(e, 5, !1, e.toLowerCase(), null, !1, !1);
  });
  var i = /[\-:]([a-z])/g;
  function o(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(
      i,
      o
    );
    v[t] = new T(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(i, o);
    v[t] = new T(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(i, o);
    v[t] = new T(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(e) {
    v[e] = new T(e, 1, !1, e.toLowerCase(), null, !1, !1);
  }), v.xlinkHref = new T("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(e) {
    v[e] = new T(e, 1, !1, e.toLowerCase(), null, !0, !0);
  });
  function a(e, t, n, r) {
    var l = v.hasOwnProperty(t) ? v[t] : null;
    (l !== null ? l.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (E(t, n, l, r) && (n = null), r || l === null ? _(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : l.mustUseProperty ? e[l.propertyName] = n === null ? l.type === 3 ? !1 : "" : n : (t = l.attributeName, r = l.attributeNamespace, n === null ? e.removeAttribute(t) : (l = l.type, n = l === 3 || l === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))));
  }
  var d = J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, s = Symbol.for("react.element"), u = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), N = Symbol.for("react.provider"), R = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), b = Symbol.iterator;
  function F(e) {
    return e === null || typeof e != "object" ? null : (e = b && e[b] || e["@@iterator"], typeof e == "function" ? e : null);
  }
  var H = Object.assign, L;
  function Q(e) {
    if (L === void 0) try {
      throw Error();
    } catch (n) {
      var t = n.stack.trim().match(/\n( *(at )?)/);
      L = t && t[1] || "";
    }
    return `
` + L + e;
  }
  var ae = !1;
  function de(e, t) {
    if (!e || ae) return "";
    ae = !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 (he) {
          var r = he;
        }
        Reflect.construct(e, [], t);
      } else {
        try {
          t.call();
        } catch (he) {
          r = he;
        }
        e.call(t.prototype);
      }
      else {
        try {
          throw Error();
        } catch (he) {
          r = he;
        }
        e();
      }
    } catch (he) {
      if (he && r && typeof he.stack == "string") {
        for (var l = he.stack.split(`
`), h = r.stack.split(`
`), O = l.length - 1, Y = h.length - 1; 1 <= O && 0 <= Y && l[O] !== h[Y]; ) Y--;
        for (; 1 <= O && 0 <= Y; O--, Y--) if (l[O] !== h[Y]) {
          if (O !== 1 || Y !== 1)
            do
              if (O--, Y--, 0 > Y || l[O] !== h[Y]) {
                var $ = `
` + l[O].replace(" at new ", " at ");
                return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), $;
              }
            while (1 <= O && 0 <= Y);
          break;
        }
      }
    } finally {
      ae = !1, Error.prepareStackTrace = n;
    }
    return (e = e ? e.displayName || e.name : "") ? Q(e) : "";
  }
  function ue(e) {
    switch (e.tag) {
      case 5:
        return Q(e.type);
      case 16:
        return Q("Lazy");
      case 13:
        return Q("Suspense");
      case 19:
        return Q("SuspenseList");
      case 0:
      case 2:
      case 15:
        return e = de(e.type, !1), e;
      case 11:
        return e = de(e.type.render, !1), e;
      case 1:
        return e = de(e.type, !0), e;
      default:
        return "";
    }
  }
  function pe(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 p:
        return "Fragment";
      case u:
        return "Portal";
      case C:
        return "Profiler";
      case w:
        return "StrictMode";
      case z:
        return "Suspense";
      case q:
        return "SuspenseList";
    }
    if (typeof e == "object") switch (e.$$typeof) {
      case R:
        return (e.displayName || "Context") + ".Consumer";
      case N:
        return (e._context.displayName || "Context") + ".Provider";
      case P:
        var t = e.render;
        return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
      case V:
        return t = e.displayName || null, t !== null ? t : pe(e.type) || "Memo";
      case D:
        t = e._payload, e = e._init;
        try {
          return pe(e(t));
        } catch {
        }
    }
    return null;
  }
  function ke(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 pe(t);
      case 8:
        return t === w ? "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 Ee(e) {
    switch (typeof e) {
      case "boolean":
      case "number":
      case "string":
      case "undefined":
        return e;
      case "object":
        return e;
      default:
        return "";
    }
  }
  function Ne(e) {
    var t = e.type;
    return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
  }
  function Oe(e) {
    var t = Ne(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 l = n.get, h = n.set;
      return Object.defineProperty(e, t, { configurable: !0, get: function() {
        return l.call(this);
      }, set: function(O) {
        r = "" + O, h.call(this, O);
      } }), Object.defineProperty(e, t, { enumerable: n.enumerable }), { getValue: function() {
        return r;
      }, setValue: function(O) {
        r = "" + O;
      }, stopTracking: function() {
        e._valueTracker = null, delete e[t];
      } };
    }
  }
  function Ue(e) {
    e._valueTracker || (e._valueTracker = Oe(e));
  }
  function Ze(e) {
    if (!e) return !1;
    var t = e._valueTracker;
    if (!t) return !0;
    var n = t.getValue(), r = "";
    return e && (r = Ne(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n ? (t.setValue(e), !0) : !1;
  }
  function Xe(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 rt(e, t) {
    var n = t.checked;
    return H({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked });
  }
  function nt(e, t) {
    var n = t.defaultValue == null ? "" : t.defaultValue, r = t.checked != null ? t.checked : t.defaultChecked;
    n = Ee(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 Pe(e, t) {
    t = t.checked, t != null && a(e, "checked", t, !1);
  }
  function $e(e, t) {
    Pe(e, t);
    var n = Ee(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") ? ot(e, t.type, n) : t.hasOwnProperty("defaultValue") && ot(e, t.type, Ee(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked);
  }
  function ct(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 ot(e, t, n) {
    (t !== "number" || Xe(e.ownerDocument) !== e) && (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n));
  }
  var vt = Array.isArray;
  function At(e, t, n, r) {
    if (e = e.options, t) {
      t = {};
      for (var l = 0; l < n.length; l++) t["$" + n[l]] = !0;
      for (n = 0; n < e.length; n++) l = t.hasOwnProperty("$" + e[n].value), e[n].selected !== l && (e[n].selected = l), l && r && (e[n].defaultSelected = !0);
    } else {
      for (n = "" + Ee(n), t = null, l = 0; l < e.length; l++) {
        if (e[l].value === n) {
          e[l].selected = !0, r && (e[l].defaultSelected = !0);
          return;
        }
        t !== null || e[l].disabled || (t = e[l]);
      }
      t !== null && (t.selected = !0);
    }
  }
  function ut(e, t) {
    if (t.dangerouslySetInnerHTML != null) throw Error(X(91));
    return H({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue });
  }
  function lt(e, t) {
    var n = t.value;
    if (n == null) {
      if (n = t.children, t = t.defaultValue, n != null) {
        if (t != null) throw Error(X(92));
        if (vt(n)) {
          if (1 < n.length) throw Error(X(93));
          n = n[0];
        }
        t = n;
      }
      t == null && (t = ""), n = t;
    }
    e._wrapperState = { initialValue: Ee(n) };
  }
  function bt(e, t) {
    var n = Ee(t.value), r = Ee(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 Tn(e) {
    var t = e.textContent;
    t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t);
  }
  function gn(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 yn(e, t) {
    return e == null || e === "http://www.w3.org/1999/xhtml" ? gn(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e;
  }
  var zt, tn = (function(e) {
    return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, l) {
      MSApp.execUnsafeLocalFunction(function() {
        return e(t, n, r, l);
      });
    } : e;
  })(function(e, t) {
    if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t;
    else {
      for (zt = zt || document.createElement("div"), zt.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", t = zt.firstChild; e.firstChild; ) e.removeChild(e.firstChild);
      for (; t.firstChild; ) e.appendChild(t.firstChild);
    }
  });
  function St(e, t) {
    if (t) {
      var n = e.firstChild;
      if (n && n === e.lastChild && n.nodeType === 3) {
        n.nodeValue = t;
        return;
      }
    }
    e.textContent = t;
  }
  var nn = {
    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
  }, j = ["Webkit", "ms", "Moz", "O"];
  Object.keys(nn).forEach(function(e) {
    j.forEach(function(t) {
      t = t + e.charAt(0).toUpperCase() + e.substring(1), nn[t] = nn[e];
    });
  });
  function ee(e, t, n) {
    return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || nn.hasOwnProperty(e) && nn[e] ? ("" + t).trim() : t + "px";
  }
  function ye(e, t) {
    e = e.style;
    for (var n in t) if (t.hasOwnProperty(n)) {
      var r = n.indexOf("--") === 0, l = ee(n, t[n], r);
      n === "float" && (n = "cssFloat"), r ? e.setProperty(n, l) : e[n] = l;
    }
  }
  var ve = H({ 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 Ae(e, t) {
    if (t) {
      if (ve[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(X(137, e));
      if (t.dangerouslySetInnerHTML != null) {
        if (t.children != null) throw Error(X(60));
        if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(X(61));
      }
      if (t.style != null && typeof t.style != "object") throw Error(X(62));
    }
  }
  function Me(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 qe = null;
  function Ve(e) {
    return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
  }
  var et = null, it = null, je = null;
  function mt(e) {
    if (e = Ao(e)) {
      if (typeof et != "function") throw Error(X(280));
      var t = e.stateNode;
      t && (t = ol(t), et(e.stateNode, e.type, t));
    }
  }
  function kt(e) {
    it ? je ? je.push(e) : je = [e] : it = e;
  }
  function qt() {
    if (it) {
      var e = it, t = je;
      if (je = it = null, mt(e), t) for (e = 0; e < t.length; e++) mt(t[e]);
    }
  }
  function Kt(e, t) {
    return e(t);
  }
  function fr() {
  }
  var wn = !1;
  function ei(e, t, n) {
    if (wn) return e(t, n);
    wn = !0;
    try {
      return Kt(e, t, n);
    } finally {
      wn = !1, (it !== null || je !== null) && (fr(), qt());
    }
  }
  function Gn(e, t) {
    var n = e.stateNode;
    if (n === null) return null;
    var r = ol(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(X(231, t, typeof n));
    return n;
  }
  var dr = !1;
  if (m) try {
    var Yn = {};
    Object.defineProperty(Yn, "passive", { get: function() {
      dr = !0;
    } }), window.addEventListener("test", Yn, Yn), window.removeEventListener("test", Yn, Yn);
  } catch {
    dr = !1;
  }
  function _i(e, t, n, r, l, h, O, Y, $) {
    var he = Array.prototype.slice.call(arguments, 3);
    try {
      t.apply(n, he);
    } catch (Se) {
      this.onError(Se);
    }
  }
  var Qn = !1, Rr = null, Ir = !1, Kn = null, Ri = { onError: function(e) {
    Qn = !0, Rr = e;
  } };
  function Or(e, t, n, r, l, h, O, Y, $) {
    Qn = !1, Rr = null, _i.apply(Ri, arguments);
  }
  function ti(e, t, n, r, l, h, O, Y, $) {
    if (Or.apply(this, arguments), Qn) {
      if (Qn) {
        var he = Rr;
        Qn = !1, Rr = null;
      } else throw Error(X(198));
      Ir || (Ir = !0, Kn = he);
    }
  }
  function zn(e) {
    var t = e, n = e;
    if (e.alternate) for (; t.return; ) t = t.return;
    else {
      e = t;
      do
        t = e, (t.flags & 4098) !== 0 && (n = t.return), e = t.return;
      while (e);
    }
    return t.tag === 3 ? n : null;
  }
  function Zn(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 Ii(e) {
    if (zn(e) !== e) throw Error(X(188));
  }
  function ni(e) {
    var t = e.alternate;
    if (!t) {
      if (t = zn(e), t === null) throw Error(X(188));
      return t !== e ? null : e;
    }
    for (var n = e, r = t; ; ) {
      var l = n.return;
      if (l === null) break;
      var h = l.alternate;
      if (h === null) {
        if (r = l.return, r !== null) {
          n = r;
          continue;
        }
        break;
      }
      if (l.child === h.child) {
        for (h = l.child; h; ) {
          if (h === n) return Ii(l), e;
          if (h === r) return Ii(l), t;
          h = h.sibling;
        }
        throw Error(X(188));
      }
      if (n.return !== r.return) n = l, r = h;
      else {
        for (var O = !1, Y = l.child; Y; ) {
          if (Y === n) {
            O = !0, n = l, r = h;
            break;
          }
          if (Y === r) {
            O = !0, r = l, n = h;
            break;
          }
          Y = Y.sibling;
        }
        if (!O) {
          for (Y = h.child; Y; ) {
            if (Y === n) {
              O = !0, n = h, r = l;
              break;
            }
            if (Y === r) {
              O = !0, r = h, n = l;
              break;
            }
            Y = Y.sibling;
          }
          if (!O) throw Error(X(189));
        }
      }
      if (n.alternate !== r) throw Error(X(190));
    }
    if (n.tag !== 3) throw Error(X(188));
    return n.stateNode.current === n ? e : t;
  }
  function hr(e) {
    return e = ni(e), e !== null ? Jn(e) : null;
  }
  function Jn(e) {
    if (e.tag === 5 || e.tag === 6) return e;
    for (e = e.child; e !== null; ) {
      var t = Jn(e);
      if (t !== null) return t;
      e = e.sibling;
    }
    return null;
  }
  var pr = K.unstable_scheduleCallback, ri = K.unstable_cancelCallback, Oi = K.unstable_shouldYield, Pi = K.unstable_requestPaint, ht = K.unstable_now, Bt = K.unstable_getCurrentPriorityLevel, Pr = K.unstable_ImmediatePriority, Lr = K.unstable_UserBlockingPriority, $n = K.unstable_NormalPriority, Li = K.unstable_LowPriority, qn = K.unstable_IdlePriority, Cn = null, Zt = null;
  function vr(e) {
    if (Zt && typeof Zt.onCommitFiberRoot == "function") try {
      Zt.onCommitFiberRoot(Cn, e, void 0, (e.current.flags & 128) === 128);
    } catch {
    }
  }
  var It = Math.clz32 ? Math.clz32 : li, ii = Math.log, oi = Math.LN2;
  function li(e) {
    return e >>>= 0, e === 0 ? 32 : 31 - (ii(e) / oi | 0) | 0;
  }
  var Bn = 64, mr = 4194304;
  function er(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 tr(e, t) {
    var n = e.pendingLanes;
    if (n === 0) return 0;
    var r = 0, l = e.suspendedLanes, h = e.pingedLanes, O = n & 268435455;
    if (O !== 0) {
      var Y = O & ~l;
      Y !== 0 ? r = er(Y) : (h &= O, h !== 0 && (r = er(h)));
    } else O = n & ~l, O !== 0 ? r = er(O) : h !== 0 && (r = er(h));
    if (r === 0) return 0;
    if (t !== 0 && t !== r && (t & l) === 0 && (l = r & -r, h = t & -t, l >= h || l === 16 && (h & 4194240) !== 0)) return t;
    if ((r & 4) !== 0 && (r |= n & 16), t = e.entangledLanes, t !== 0) for (e = e.entanglements, t &= r; 0 < t; ) n = 31 - It(t), l = 1 << n, r |= e[n], t &= ~l;
    return r;
  }
  function c(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 k(e, t) {
    for (var n = e.suspendedLanes, r = e.pingedLanes, l = e.expirationTimes, h = e.pendingLanes; 0 < h; ) {
      var O = 31 - It(h), Y = 1 << O, $ = l[O];
      $ === -1 ? ((Y & n) === 0 || (Y & r) !== 0) && (l[O] = c(Y, t)) : $ <= t && (e.expiredLanes |= Y), h &= ~Y;
    }
  }
  function G(e) {
    return e = e.pendingLanes & -1073741825, e !== 0 ? e : e & 1073741824 ? 1073741824 : 0;
  }
  function U() {
    var e = Bn;
    return Bn <<= 1, (Bn & 4194240) === 0 && (Bn = 64), e;
  }
  function se(e) {
    for (var t = [], n = 0; 31 > n; n++) t.push(e);
    return t;
  }
  function re(e, t, n) {
    e.pendingLanes |= t, t !== 536870912 && (e.suspendedLanes = 0, e.pingedLanes = 0), e = e.eventTimes, t = 31 - It(t), e[t] = n;
  }
  function me(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 l = 31 - It(n), h = 1 << l;
      t[l] = 0, r[l] = -1, e[l] = -1, n &= ~h;
    }
  }
  function Re(e, t) {
    var n = e.entangledLanes |= t;
    for (e = e.entanglements; n; ) {
      var r = 31 - It(n), l = 1 << r;
      l & t | e[r] & t && (e[r] |= t), n &= ~l;
    }
  }
  var Ie = 0;
  function De(e) {
    return e &= -e, 1 < e ? 4 < e ? (e & 268435455) !== 0 ? 16 : 536870912 : 4 : 1;
  }
  var Ke, ft, rn, on, Wt, Fn = !1, ln = [], an = null, Dt = null, Sn = null, un = /* @__PURE__ */ new Map(), nr = /* @__PURE__ */ new Map(), rr = [], $l = "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 Do(e, t) {
    switch (e) {
      case "focusin":
      case "focusout":
        an = null;
        break;
      case "dragenter":
      case "dragleave":
        Dt = null;
        break;
      case "mouseover":
      case "mouseout":
        Sn = null;
        break;
      case "pointerover":
      case "pointerout":
        un.delete(t.pointerId);
        break;
      case "gotpointercapture":
      case "lostpointercapture":
        nr.delete(t.pointerId);
    }
  }
  function ai(e, t, n, r, l, h) {
    return e === null || e.nativeEvent !== h ? (e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: h, targetContainers: [l] }, t !== null && (t = Ao(t), t !== null && ft(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, l !== null && t.indexOf(l) === -1 && t.push(l), e);
  }
  function ea(e, t, n, r, l) {
    switch (t) {
      case "focusin":
        return an = ai(an, e, t, n, r, l), !0;
      case "dragenter":
        return Dt = ai(Dt, e, t, n, r, l), !0;
      case "mouseover":
        return Sn = ai(Sn, e, t, n, r, l), !0;
      case "pointerover":
        var h = l.pointerId;
        return un.set(h, ai(un.get(h) || null, e, t, n, r, l)), !0;
      case "gotpointercapture":
        return h = l.pointerId, nr.set(h, ai(nr.get(h) || null, e, t, n, r, l)), !0;
    }
    return !1;
  }
  function An(e) {
    var t = vi(e.target);
    if (t !== null) {
      var n = zn(t);
      if (n !== null) {
        if (t = n.tag, t === 13) {
          if (t = Zn(n), t !== null) {
            e.blockedOn = t, Wt(e.priority, function() {
              rn(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 Mr(e) {
    if (e.blockedOn !== null) return !1;
    for (var t = e.targetContainers; 0 < t.length; ) {
      var n = si(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
      if (n === null) {
        n = e.nativeEvent;
        var r = new n.constructor(n.type, n);
        qe = r, n.target.dispatchEvent(r), qe = null;
      } else return t = Ao(n), t !== null && ft(t), e.blockedOn = n, !1;
      t.shift();
    }
    return !0;
  }
  function ui(e, t, n) {
    Mr(e) && n.delete(t);
  }
  function dt() {
    Fn = !1, an !== null && Mr(an) && (an = null), Dt !== null && Mr(Dt) && (Dt = null), Sn !== null && Mr(Sn) && (Sn = null), un.forEach(ui), nr.forEach(ui);
  }
  function jn(e, t) {
    e.blockedOn === t && (e.blockedOn = null, Fn || (Fn = !0, K.unstable_scheduleCallback(K.unstable_NormalPriority, dt)));
  }
  function ir(e) {
    function t(l) {
      return jn(l, e);
    }
    if (0 < ln.length) {
      jn(ln[0], e);
      for (var n = 1; n < ln.length; n++) {
        var r = ln[n];
        r.blockedOn === e && (r.blockedOn = null);
      }
    }
    for (an !== null && jn(an, e), Dt !== null && jn(Dt, e), Sn !== null && jn(Sn, e), un.forEach(t), nr.forEach(t), n = 0; n < rr.length; n++) r = rr[n], r.blockedOn === e && (r.blockedOn = null);
    for (; 0 < rr.length && (n = rr[0], n.blockedOn === null); ) An(n), n.blockedOn === null && rr.shift();
  }
  var _n = d.ReactCurrentBatchConfig, Nn = !0;
  function Mi(e, t, n, r) {
    var l = Ie, h = _n.transition;
    _n.transition = null;
    try {
      Ie = 1, Gi(e, t, n, r);
    } finally {
      Ie = l, _n.transition = h;
    }
  }
  function gr(e, t, n, r) {
    var l = Ie, h = _n.transition;
    _n.transition = null;
    try {
      Ie = 4, Gi(e, t, n, r);
    } finally {
      Ie = l, _n.transition = h;
    }
  }
  function Gi(e, t, n, r) {
    if (Nn) {
      var l = si(e, t, n, r);
      if (l === null) fa(e, t, r, Gr, n), Do(e, r);
      else if (ea(l, e, t, n, r)) r.stopPropagation();
      else if (Do(e, r), t & 4 && -1 < $l.indexOf(e)) {
        for (; l !== null; ) {
          var h = Ao(l);
          if (h !== null && Ke(h), h = si(e, t, n, r), h === null && fa(e, t, r, Gr, n), h === l) break;
          l = h;
        }
        l !== null && r.stopPropagation();
      } else fa(e, t, r, null, n);
    }
  }
  var Gr = null;
  function si(e, t, n, r) {
    if (Gr = null, e = Ve(r), e = vi(e), e !== null) if (t = zn(e), t === null) e = null;
    else if (n = t.tag, n === 13) {
      if (e = Zn(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 Gr = e, null;
  }
  function co(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 (Bt()) {
          case Pr:
            return 1;
          case Lr:
            return 4;
          case $n:
          case Li:
            return 16;
          case qn:
            return 536870912;
          default:
            return 16;
        }
      default:
        return 16;
    }
  }
  var Hn = null, zi = null, qi = null;
  function Uo() {
    if (qi) return qi;
    var e, t = zi, n = t.length, r, l = "value" in Hn ? Hn.value : Hn.textContent, h = l.length;
    for (e = 0; e < n && t[e] === l[e]; e++) ;
    var O = n - e;
    for (r = 1; r <= O && t[n - r] === l[h - r]; r++) ;
    return qi = l.slice(e, 1 < r ? 1 - r : void 0);
  }
  function yr(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 ci() {
    return !0;
  }
  function fi() {
    return !1;
  }
  function Ft(e) {
    function t(n, r, l, h, O) {
      this._reactName = n, this._targetInst = l, this.type = r, this.nativeEvent = h, this.target = O, this.currentTarget = null;
      for (var Y in e) e.hasOwnProperty(Y) && (n = e[Y], this[Y] = n ? n(h) : h[Y]);
      return this.isDefaultPrevented = (h.defaultPrevented != null ? h.defaultPrevented : h.returnValue === !1) ? ci : fi, this.isPropagationStopped = fi, this;
    }
    return H(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 = ci);
    }, stopPropagation: function() {
      var n = this.nativeEvent;
      n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), this.isPropagationStopped = ci);
    }, persist: function() {
    }, isPersistent: ci }), t;
  }
  var zr = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) {
    return e.timeStamp || Date.now();
  }, defaultPrevented: 0, isTrusted: 0 }, wr = Ft(zr), di = H({}, zr, { view: 0, detail: 0 }), fo = Ft(di), qr, Cr, or, hi = H({}, di, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: bi, 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 !== or && (or && e.type === "mousemove" ? (qr = e.screenX - or.screenX, Cr = e.screenY - or.screenY) : Cr = qr = 0, or = e), qr);
  }, movementY: function(e) {
    return "movementY" in e ? e.movementY : Cr;
  } }), ho = Ft(hi), Vo = H({}, hi, { dataTransfer: 0 }), po = Ft(Vo), Jt = H({}, di, { relatedTarget: 0 }), Bi = Ft(Jt), vo = H({}, zr, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), ta = Ft(vo), Xo = H({}, zr, { clipboardData: function(e) {
    return "clipboardData" in e ? e.clipboardData : window.clipboardData;
  } }), Fi = Ft(Xo), Yo = H({}, zr, { data: 0 }), mo = Ft(Yo), ji = {
    Esc: "Escape",
    Spacebar: " ",
    Left: "ArrowLeft",
    Up: "ArrowUp",
    Right: "ArrowRight",
    Down: "ArrowDown",
    Del: "Delete",
    Win: "OS",
    Menu: "ContextMenu",
    Apps: "ContextMenu",
    Scroll: "ScrollLock",
    MozPrintableKey: "Unidentified"
  }, Hi = {
    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"
  }, Qo = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
  function Ko(e) {
    var t = this.nativeEvent;
    return t.getModifierState ? t.getModifierState(e) : (e = Qo[e]) ? !!t[e] : !1;
  }
  function bi() {
    return Ko;
  }
  var go = H({}, di, { key: function(e) {
    if (e.key) {
      var t = ji[e.key] || e.key;
      if (t !== "Unidentified") return t;
    }
    return e.type === "keypress" ? (e = yr(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Hi[e.keyCode] || "Unidentified" : "";
  }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: bi, charCode: function(e) {
    return e.type === "keypress" ? yr(e) : 0;
  }, keyCode: function(e) {
    return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
  }, which: function(e) {
    return e.type === "keypress" ? yr(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
  } }), Zo = Ft(go), f = H({}, hi, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), x = Ft(f), M = H({}, di, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: bi }), W = Ft(M), fe = H({}, zr, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), le = Ft(fe), ge = H({}, hi, {
    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
  }), Te = Ft(ge), We = [9, 13, 27, 32], Je = m && "CompositionEvent" in window, Ye = null;
  m && "documentMode" in document && (Ye = document.documentMode);
  var pt = m && "TextEvent" in window && !Ye, Ut = m && (!Je || Ye && 8 < Ye && 11 >= Ye), sn = " ", cn = !1;
  function pi(e, t) {
    switch (e) {
      case "keyup":
        return We.indexOf(t.keyCode) !== -1;
      case "keydown":
        return t.keyCode !== 229;
      case "keypress":
      case "mousedown":
      case "focusout":
        return !0;
      default:
        return !1;
    }
  }
  function yo(e) {
    return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
  }
  var lr = !1;
  function Wf(e, t) {
    switch (e) {
      case "compositionend":
        return yo(t);
      case "keypress":
        return t.which !== 32 ? null : (cn = !0, sn);
      case "textInput":
        return e = t.data, e === sn && cn ? null : e;
      default:
        return null;
    }
  }
  function Df(e, t) {
    if (lr) return e === "compositionend" || !Je && pi(e, t) ? (e = Uo(), qi = zi = Hn = null, lr = !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 Ut && t.locale !== "ko" ? null : t.data;
      default:
        return null;
    }
  }
  var Uf = { 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 Uu(e) {
    var t = e && e.nodeName && e.nodeName.toLowerCase();
    return t === "input" ? !!Uf[e.type] : t === "textarea";
  }
  function Vu(e, t, n, r) {
    kt(r), t = nl(t, "onChange"), 0 < t.length && (n = new wr("onChange", "change", null, n, r), e.push({ event: n, listeners: t }));
  }
  var wo = null, Co = null;
  function Vf(e) {
    cs(e, 0);
  }
  function Jo(e) {
    var t = Xi(e);
    if (Ze(t)) return e;
  }
  function Xf(e, t) {
    if (e === "change") return t;
  }
  var Xu = !1;
  if (m) {
    var na;
    if (m) {
      var ra = "oninput" in document;
      if (!ra) {
        var Yu = document.createElement("div");
        Yu.setAttribute("oninput", "return;"), ra = typeof Yu.oninput == "function";
      }
      na = ra;
    } else na = !1;
    Xu = na && (!document.documentMode || 9 < document.documentMode);
  }
  function Qu() {
    wo && (wo.detachEvent("onpropertychange", Ku), Co = wo = null);
  }
  function Ku(e) {
    if (e.propertyName === "value" && Jo(Co)) {
      var t = [];
      Vu(t, Co, e, Ve(e)), ei(Vf, t);
    }
  }
  function Yf(e, t, n) {
    e === "focusin" ? (Qu(), wo = t, Co = n, wo.attachEvent("onpropertychange", Ku)) : e === "focusout" && Qu();
  }
  function Qf(e) {
    if (e === "selectionchange" || e === "keyup" || e === "keydown") return Jo(Co);
  }
  function Kf(e, t) {
    if (e === "click") return Jo(t);
  }
  function Zf(e, t) {
    if (e === "input" || e === "change") return Jo(t);
  }
  function Jf(e, t) {
    return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
  }
  var bn = typeof Object.is == "function" ? Object.is : Jf;
  function So(e, t) {
    if (bn(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 l = n[r];
      if (!y.call(t, l) || !bn(e[l], t[l])) return !1;
    }
    return !0;
  }
  function Zu(e) {
    for (; e && e.firstChild; ) e = e.firstChild;
    return e;
  }
  function Ju(e, t) {
    var n = Zu(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 = Zu(n);
    }
  }
  function $u(e, t) {
    return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? $u(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
  }
  function es() {
    for (var e = window, t = Xe(); t instanceof e.HTMLIFrameElement; ) {
      try {
        var n = typeof t.contentWindow.location.href == "string";
      } catch {
        n = !1;
      }
      if (n) e = t.contentWindow;
      else break;
      t = Xe(e.document);
    }
    return t;
  }
  function ia(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 $f(e) {
    var t = es(), n = e.focusedElem, r = e.selectionRange;
    if (t !== n && n && n.ownerDocument && $u(n.ownerDocument.documentElement, n)) {
      if (r !== null && ia(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 l = n.textContent.length, h = Math.min(r.start, l);
          r = r.end === void 0 ? h : Math.min(r.end, l), !e.extend && h > r && (l = r, r = h, h = l), l = Ju(n, h);
          var O = Ju(
            n,
            r
          );
          l && O && (e.rangeCount !== 1 || e.anchorNode !== l.node || e.anchorOffset !== l.offset || e.focusNode !== O.node || e.focusOffset !== O.offset) && (t = t.createRange(), t.setStart(l.node, l.offset), e.removeAllRanges(), h > r ? (e.addRange(t), e.extend(O.node, O.offset)) : (t.setEnd(O.node, O.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 ed = m && "documentMode" in document && 11 >= document.documentMode, Wi = null, oa = null, No = null, la = !1;
  function ts(e, t, n) {
    var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
    la || Wi == null || Wi !== Xe(r) || (r = Wi, "selectionStart" in r && ia(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 }), No && So(No, r) || (No = r, r = nl(oa, "onSelect"), 0 < r.length && (t = new wr("onSelect", "select", null, t, n), e.push({ event: t, listeners: r }), t.target = Wi)));
  }
  function $o(e, t) {
    var n = {};
    return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
  }
  var Di = { animationend: $o("Animation", "AnimationEnd"), animationiteration: $o("Animation", "AnimationIteration"), animationstart: $o("Animation", "AnimationStart"), transitionend: $o("Transition", "TransitionEnd") }, aa = {}, ns = {};
  m && (ns = document.createElement("div").style, "AnimationEvent" in window || (delete Di.animationend.animation, delete Di.animationiteration.animation, delete Di.animationstart.animation), "TransitionEvent" in window || delete Di.transitionend.transition);
  function el(e) {
    if (aa[e]) return aa[e];
    if (!Di[e]) return e;
    var t = Di[e], n;
    for (n in t) if (t.hasOwnProperty(n) && n in ns) return aa[e] = t[n];
    return e;
  }
  var rs = el("animationend"), is = el("animationiteration"), os = el("animationstart"), ls = el("transitionend"), as = /* @__PURE__ */ new Map(), us = "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 Br(e, t) {
    as.set(e, t), we(t, [e]);
  }
  for (var ua = 0; ua < us.length; ua++) {
    var sa = us[ua], td = sa.toLowerCase(), nd = sa[0].toUpperCase() + sa.slice(1);
    Br(td, "on" + nd);
  }
  Br(rs, "onAnimationEnd"), Br(is, "onAnimationIteration"), Br(os, "onAnimationStart"), Br("dblclick", "onDoubleClick"), Br("focusin", "onFocus"), Br("focusout", "onBlur"), Br(ls, "onTransitionEnd"), Z("onMouseEnter", ["mouseout", "mouseover"]), Z("onMouseLeave", ["mouseout", "mouseover"]), Z("onPointerEnter", ["pointerout", "pointerover"]), Z("onPointerLeave", ["pointerout", "pointerover"]), we("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), we("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), we("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), we("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), we("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), we("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
  var Eo = "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(" "), rd = new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));
  function ss(e, t, n) {
    var r = e.type || "unknown-event";
    e.currentTarget = n, ti(r, t, void 0, e), e.currentTarget = null;
  }
  function cs(e, t) {
    t = (t & 4) !== 0;
    for (var n = 0; n < e.length; n++) {
      var r = e[n], l = r.event;
      r = r.listeners;
      e: {
        var h = void 0;
        if (t) for (var O = r.length - 1; 0 <= O; O--) {
          var Y = r[O], $ = Y.instance, he = Y.currentTarget;
          if (Y = Y.listener, $ !== h && l.isPropagationStopped()) break e;
          ss(l, Y, he), h = $;
        }
        else for (O = 0; O < r.length; O++) {
          if (Y = r[O], $ = Y.instance, he = Y.currentTarget, Y = Y.listener, $ !== h && l.isPropagationStopped()) break e;
          ss(l, Y, he), h = $;
        }
      }
    }
    if (Ir) throw e = Kn, Ir = !1, Kn = null, e;
  }
  function yt(e, t) {
    var n = t[ga];
    n === void 0 && (n = t[ga] = /* @__PURE__ */ new Set());
    var r = e + "__bubble";
    n.has(r) || (fs(t, e, 2, !1), n.add(r));
  }
  function ca(e, t, n) {
    var r = 0;
    t && (r |= 4), fs(n, e, r, t);
  }
  var tl = "_reactListening" + Math.random().toString(36).slice(2);
  function xo(e) {
    if (!e[tl]) {
      e[tl] = !0, ne.forEach(function(n) {
        n !== "selectionchange" && (rd.has(n) || ca(n, !1, e), ca(n, !0, e));
      });
      var t = e.nodeType === 9 ? e : e.ownerDocument;
      t === null || t[tl] || (t[tl] = !0, ca("selectionchange", !1, t));
    }
  }
  function fs(e, t, n, r) {
    switch (co(t)) {
      case 1:
        var l = Mi;
        break;
      case 4:
        l = gr;
        break;
      default:
        l = Gi;
    }
    n = l.bind(null, t, n, e), l = void 0, !dr || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (l = !0), r ? l !== void 0 ? e.addEventListener(t, n, { capture: !0, passive: l }) : e.addEventListener(t, n, !0) : l !== void 0 ? e.addEventListener(t, n, { passive: l }) : e.addEventListener(t, n, !1);
  }
  function fa(e, t, n, r, l) {
    var h = r;
    if ((t & 1) === 0 && (t & 2) === 0 && r !== null) e: for (; ; ) {
      if (r === null) return;
      var O = r.tag;
      if (O === 3 || O === 4) {
        var Y = r.stateNode.containerInfo;
        if (Y === l || Y.nodeType === 8 && Y.parentNode === l) break;
        if (O === 4) for (O = r.return; O !== null; ) {
          var $ = O.tag;
          if (($ === 3 || $ === 4) && ($ = O.stateNode.containerInfo, $ === l || $.nodeType === 8 && $.parentNode === l)) return;
          O = O.return;
        }
        for (; Y !== null; ) {
          if (O = vi(Y), O === null) return;
          if ($ = O.tag, $ === 5 || $ === 6) {
            r = h = O;
            continue e;
          }
          Y = Y.parentNode;
        }
      }
      r = r.return;
    }
    ei(function() {
      var he = h, Se = Ve(n), xe = [];
      e: {
        var Ce = as.get(e);
        if (Ce !== void 0) {
          var Le = wr, ze = e;
          switch (e) {
            case "keypress":
              if (yr(n) === 0) break e;
            case "keydown":
            case "keyup":
              Le = Zo;
              break;
            case "focusin":
              ze = "focus", Le = Bi;
              break;
            case "focusout":
              ze = "blur", Le = Bi;
              break;
            case "beforeblur":
            case "afterblur":
              Le = Bi;
              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":
              Le = ho;
              break;
            case "drag":
            case "dragend":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "dragstart":
            case "drop":
              Le = po;
              break;
            case "touchcancel":
            case "touchend":
            case "touchmove":
            case "touchstart":
              Le = W;
              break;
            case rs:
            case is:
            case os:
              Le = ta;
              break;
            case ls:
              Le = le;
              break;
            case "scroll":
              Le = fo;
              break;
            case "wheel":
              Le = Te;
              break;
            case "copy":
            case "cut":
            case "paste":
              Le = Fi;
              break;
            case "gotpointercapture":
            case "lostpointercapture":
            case "pointercancel":
            case "pointerdown":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "pointerup":
              Le = x;
          }
          var Be = (t & 4) !== 0, Tt = !Be && e === "scroll", oe = Be ? Ce !== null ? Ce + "Capture" : null : Ce;
          Be = [];
          for (var te = he, ce; te !== null; ) {
            ce = te;
            var _e = ce.stateNode;
            if (ce.tag === 5 && _e !== null && (ce = _e, oe !== null && (_e = Gn(te, oe), _e != null && Be.push(ko(te, _e, ce)))), Tt) break;
            te = te.return;
          }
          0 < Be.length && (Ce = new Le(Ce, ze, null, n, Se), xe.push({ event: Ce, listeners: Be }));
        }
      }
      if ((t & 7) === 0) {
        e: {
          if (Ce = e === "mouseover" || e === "pointerover", Le = e === "mouseout" || e === "pointerout", Ce && n !== qe && (ze = n.relatedTarget || n.fromElement) && (vi(ze) || ze[Sr])) break e;
          if ((Le || Ce) && (Ce = Se.window === Se ? Se : (Ce = Se.ownerDocument) ? Ce.defaultView || Ce.parentWindow : window, Le ? (ze = n.relatedTarget || n.toElement, Le = he, ze = ze ? vi(ze) : null, ze !== null && (Tt = zn(ze), ze !== Tt || ze.tag !== 5 && ze.tag !== 6) && (ze = null)) : (Le = null, ze = he), Le !== ze)) {
            if (Be = ho, _e = "onMouseLeave", oe = "onMouseEnter", te = "mouse", (e === "pointerout" || e === "pointerover") && (Be = x, _e = "onPointerLeave", oe = "onPointerEnter", te = "pointer"), Tt = Le == null ? Ce : Xi(Le), ce = ze == null ? Ce : Xi(ze), Ce = new Be(_e, te + "leave", Le, n, Se), Ce.target = Tt, Ce.relatedTarget = ce, _e = null, vi(Se) === he && (Be = new Be(oe, te + "enter", ze, n, Se), Be.target = ce, Be.relatedTarget = Tt, _e = Be), Tt = _e, Le && ze) t: {
              for (Be = Le, oe = ze, te = 0, ce = Be; ce; ce = Ui(ce)) te++;
              for (ce = 0, _e = oe; _e; _e = Ui(_e)) ce++;
              for (; 0 < te - ce; ) Be = Ui(Be), te--;
              for (; 0 < ce - te; ) oe = Ui(oe), ce--;
              for (; te--; ) {
                if (Be === oe || oe !== null && Be === oe.alternate) break t;
                Be = Ui(Be), oe = Ui(oe);
              }
              Be = null;
            }
            else Be = null;
            Le !== null && ds(xe, Ce, Le, Be, !1), ze !== null && Tt !== null && ds(xe, Tt, ze, Be, !0);
          }
        }
        e: {
          if (Ce = he ? Xi(he) : window, Le = Ce.nodeName && Ce.nodeName.toLowerCase(), Le === "select" || Le === "input" && Ce.type === "file") var Fe = Xf;
          else if (Uu(Ce)) if (Xu) Fe = Zf;
          else {
            Fe = Qf;
            var He = Yf;
          }
          else (Le = Ce.nodeName) && Le.toLowerCase() === "input" && (Ce.type === "checkbox" || Ce.type === "radio") && (Fe = Kf);
          if (Fe && (Fe = Fe(e, he))) {
            Vu(xe, Fe, n, Se);
            break e;
          }
          He && He(e, Ce, he), e === "focusout" && (He = Ce._wrapperState) && He.controlled && Ce.type === "number" && ot(Ce, "number", Ce.value);
        }
        switch (He = he ? Xi(he) : window, e) {
          case "focusin":
            (Uu(He) || He.contentEditable === "true") && (Wi = He, oa = he, No = null);
            break;
          case "focusout":
            No = oa = Wi = null;
            break;
          case "mousedown":
            la = !0;
            break;
          case "contextmenu":
          case "mouseup":
          case "dragend":
            la = !1, ts(xe, n, Se);
            break;
          case "selectionchange":
            if (ed) break;
          case "keydown":
          case "keyup":
            ts(xe, n, Se);
        }
        var be;
        if (Je) e: {
          switch (e) {
            case "compositionstart":
              var Qe = "onCompositionStart";
              break e;
            case "compositionend":
              Qe = "onCompositionEnd";
              break e;
            case "compositionupdate":
              Qe = "onCompositionUpdate";
              break e;
          }
          Qe = void 0;
        }
        else lr ? pi(e, n) && (Qe = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (Qe = "onCompositionStart");
        Qe && (Ut && n.locale !== "ko" && (lr || Qe !== "onCompositionStart" ? Qe === "onCompositionEnd" && lr && (be = Uo()) : (Hn = Se, zi = "value" in Hn ? Hn.value : Hn.textContent, lr = !0)), He = nl(he, Qe), 0 < He.length && (Qe = new mo(Qe, e, null, n, Se), xe.push({ event: Qe, listeners: He }), be ? Qe.data = be : (be = yo(n), be !== null && (Qe.data = be)))), (be = pt ? Wf(e, n) : Df(e, n)) && (he = nl(he, "onBeforeInput"), 0 < he.length && (Se = new mo("onBeforeInput", "beforeinput", null, n, Se), xe.push({ event: Se, listeners: he }), Se.data = be));
      }
      cs(xe, t);
    });
  }
  function ko(e, t, n) {
    return { instance: e, listener: t, currentTarget: n };
  }
  function nl(e, t) {
    for (var n = t + "Capture", r = []; e !== null; ) {
      var l = e, h = l.stateNode;
      l.tag === 5 && h !== null && (l = h, h = Gn(e, n), h != null && r.unshift(ko(e, h, l)), h = Gn(e, t), h != null && r.push(ko(e, h, l))), e = e.return;
    }
    return r;
  }
  function Ui(e) {
    if (e === null) return null;
    do
      e = e.return;
    while (e && e.tag !== 5);
    return e || null;
  }
  function ds(e, t, n, r, l) {
    for (var h = t._reactName, O = []; n !== null && n !== r; ) {
      var Y = n, $ = Y.alternate, he = Y.stateNode;
      if ($ !== null && $ === r) break;
      Y.tag === 5 && he !== null && (Y = he, l ? ($ = Gn(n, h), $ != null && O.unshift(ko(n, $, Y))) : l || ($ = Gn(n, h), $ != null && O.push(ko(n, $, Y)))), n = n.return;
    }
    O.length !== 0 && e.push({ event: t, listeners: O });
  }
  var id = /\r\n?/g, od = /\u0000|\uFFFD/g;
  function hs(e) {
    return (typeof e == "string" ? e : "" + e).replace(id, `
`).replace(od, "");
  }
  function rl(e, t, n) {
    if (t = hs(t), hs(e) !== t && n) throw Error(X(425));
  }
  function il() {
  }
  var da = null, ha = null;
  function pa(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 va = typeof setTimeout == "function" ? setTimeout : void 0, ld = typeof clearTimeout == "function" ? clearTimeout : void 0, ps = typeof Promise == "function" ? Promise : void 0, ad = typeof queueMicrotask == "function" ? queueMicrotask : typeof ps < "u" ? function(e) {
    return ps.resolve(null).then(e).catch(ud);
  } : va;
  function ud(e) {
    setTimeout(function() {
      throw e;
    });
  }
  function ma(e, t) {
    var n = t, r = 0;
    do {
      var l = n.nextSibling;
      if (e.removeChild(n), l && l.nodeType === 8) if (n = l.data, n === "/$") {
        if (r === 0) {
          e.removeChild(l), ir(t);
          return;
        }
        r--;
      } else n !== "$" && n !== "$?" && n !== "$!" || r++;
      n = l;
    } while (n);
    ir(t);
  }
  function Fr(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 vs(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 Vi = Math.random().toString(36).slice(2), ar = "__reactFiber$" + Vi, To = "__reactProps$" + Vi, Sr = "__reactContainer$" + Vi, ga = "__reactEvents$" + Vi, sd = "__reactListeners$" + Vi, cd = "__reactHandles$" + Vi;
  function vi(e) {
    var t = e[ar];
    if (t) return t;
    for (var n = e.parentNode; n; ) {
      if (t = n[Sr] || n[ar]) {
        if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = vs(e); e !== null; ) {
          if (n = e[ar]) return n;
          e = vs(e);
        }
        return t;
      }
      e = n, n = e.parentNode;
    }
    return null;
  }
  function Ao(e) {
    return e = e[ar] || e[Sr], !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e;
  }
  function Xi(e) {
    if (e.tag === 5 || e.tag === 6) return e.stateNode;
    throw Error(X(33));
  }
  function ol(e) {
    return e[To] || null;
  }
  var ya = [], Yi = -1;
  function jr(e) {
    return { current: e };
  }
  function wt(e) {
    0 > Yi || (e.current = ya[Yi], ya[Yi] = null, Yi--);
  }
  function gt(e, t) {
    Yi++, ya[Yi] = e.current, e.current = t;
  }
  var Hr = {}, Vt = jr(Hr), fn = jr(!1), mi = Hr;
  function Qi(e, t) {
    var n = e.type.contextTypes;
    if (!n) return Hr;
    var r = e.stateNode;
    if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext;
    var l = {}, h;
    for (h in n) l[h] = t[h];
    return r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = l), l;
  }
  function dn(e) {
    return e = e.childContextTypes, e != null;
  }
  function ll() {
    wt(fn), wt(Vt);
  }
  function ms(e, t, n) {
    if (Vt.current !== Hr) throw Error(X(168));
    gt(Vt, t), gt(fn, n);
  }
  function gs(e, t, n) {
    var r = e.stateNode;
    if (t = t.childContextTypes, typeof r.getChildContext != "function") return n;
    r = r.getChildContext();
    for (var l in r) if (!(l in t)) throw Error(X(108, ke(e) || "Unknown", l));
    return H({}, n, r);
  }
  function al(e) {
    return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Hr, mi = Vt.current, gt(Vt, e), gt(fn, fn.current), !0;
  }
  function ys(e, t, n) {
    var r = e.stateNode;
    if (!r) throw Error(X(169));
    n ? (e = gs(e, t, mi), r.__reactInternalMemoizedMergedChildContext = e, wt(fn), wt(Vt), gt(Vt, e)) : wt(fn), gt(fn, n);
  }
  var Nr = null, ul = !1, wa = !1;
  function ws(e) {
    Nr === null ? Nr = [e] : Nr.push(e);
  }
  function fd(e) {
    ul = !0, ws(e);
  }
  function br() {
    if (!wa && Nr !== null) {
      wa = !0;
      var e = 0, t = Ie;
      try {
        var n = Nr;
        for (Ie = 1; e < n.length; e++) {
          var r = n[e];
          do
            r = r(!0);
          while (r !== null);
        }
        Nr = null, ul = !1;
      } catch (l) {
        throw Nr !== null && (Nr = Nr.slice(e + 1)), pr(Pr, br), l;
      } finally {
        Ie = t, wa = !1;
      }
    }
    return null;
  }
  var Ki = [], Zi = 0, sl = null, cl = 0, Rn = [], In = 0, gi = null, Er = 1, xr = "";
  function yi(e, t) {
    Ki[Zi++] = cl, Ki[Zi++] = sl, sl = e, cl = t;
  }
  function Cs(e, t, n) {
    Rn[In++] = Er, Rn[In++] = xr, Rn[In++] = gi, gi = e;
    var r = Er;
    e = xr;
    var l = 32 - It(r) - 1;
    r &= ~(1 << l), n += 1;
    var h = 32 - It(t) + l;
    if (30 < h) {
      var O = l - l % 5;
      h = (r & (1 << O) - 1).toString(32), r >>= O, l -= O, Er = 1 << 32 - It(t) + l | n << l | r, xr = h + e;
    } else Er = 1 << h | n << l | r, xr = e;
  }
  function Ca(e) {
    e.return !== null && (yi(e, 1), Cs(e, 1, 0));
  }
  function Sa(e) {
    for (; e === sl; ) sl = Ki[--Zi], Ki[Zi] = null, cl = Ki[--Zi], Ki[Zi] = null;
    for (; e === gi; ) gi = Rn[--In], Rn[In] = null, xr = Rn[--In], Rn[In] = null, Er = Rn[--In], Rn[In] = null;
  }
  var En = null, xn = null, Ct = !1, Wn = null;
  function Ss(e, t) {
    var n = Mn(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 Ns(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, En = e, xn = Fr(t.firstChild), !0) : !1;
      case 6:
        return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, En = e, xn = null, !0) : !1;
      case 13:
        return t = t.nodeType !== 8 ? null : t, t !== null ? (n = gi !== null ? { id: Er, overflow: xr } : null, e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }, n = Mn(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, En = e, xn = null, !0) : !1;
      default:
        return !1;
    }
  }
  function Na(e) {
    return (e.mode & 1) !== 0 && (e.flags & 128) === 0;
  }
  function Ea(e) {
    if (Ct) {
      var t = xn;
      if (t) {
        var n = t;
        if (!Ns(e, t)) {
          if (Na(e)) throw Error(X(418));
          t = Fr(n.nextSibling);
          var r = En;
          t && Ns(e, t) ? Ss(r, n) : (e.flags = e.flags & -4097 | 2, Ct = !1, En = e);
        }
      } else {
        if (Na(e)) throw Error(X(418));
        e.flags = e.flags & -4097 | 2, Ct = !1, En = e;
      }
    }
  }
  function Es(e) {
    for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return;
    En = e;
  }
  function fl(e) {
    if (e !== En) return !1;
    if (!Ct) return Es(e), Ct = !0, !1;
    var t;
    if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !pa(e.type, e.memoizedProps)), t && (t = xn)) {
      if (Na(e)) throw xs(), Error(X(418));
      for (; t; ) Ss(e, t), t = Fr(t.nextSibling);
    }
    if (Es(e), e.tag === 13) {
      if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(X(317));
      e: {
        for (e = e.nextSibling, t = 0; e; ) {
          if (e.nodeType === 8) {
            var n = e.data;
            if (n === "/$") {
              if (t === 0) {
                xn = Fr(e.nextSibling);
                break e;
              }
              t--;
            } else n !== "$" && n !== "$!" && n !== "$?" || t++;
          }
          e = e.nextSibling;
        }
        xn = null;
      }
    } else xn = En ? Fr(e.stateNode.nextSibling) : null;
    return !0;
  }
  function xs() {
    for (var e = xn; e; ) e = Fr(e.nextSibling);
  }
  function Ji() {
    xn = En = null, Ct = !1;
  }
  function xa(e) {
    Wn === null ? Wn = [e] : Wn.push(e);
  }
  var dd = d.ReactCurrentBatchConfig;
  function _o(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(X(309));
          var r = n.stateNode;
        }
        if (!r) throw Error(X(147, e));
        var l = r, h = "" + e;
        return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === h ? t.ref : (t = function(O) {
          var Y = l.refs;
          O === null ? delete Y[h] : Y[h] = O;
        }, t._stringRef = h, t);
      }
      if (typeof e != "string") throw Error(X(284));
      if (!n._owner) throw Error(X(290, e));
    }
    return e;
  }
  function dl(e, t) {
    throw e = Object.prototype.toString.call(t), Error(X(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e));
  }
  function ks(e) {
    var t = e._init;
    return t(e._payload);
  }
  function Ts(e) {
    function t(oe, te) {
      if (e) {
        var ce = oe.deletions;
        ce === null ? (oe.deletions = [te], oe.flags |= 16) : ce.push(te);
      }
    }
    function n(oe, te) {
      if (!e) return null;
      for (; te !== null; ) t(oe, te), te = te.sibling;
      return null;
    }
    function r(oe, te) {
      for (oe = /* @__PURE__ */ new Map(); te !== null; ) te.key !== null ? oe.set(te.key, te) : oe.set(te.index, te), te = te.sibling;
      return oe;
    }
    function l(oe, te) {
      return oe = Kr(oe, te), oe.index = 0, oe.sibling = null, oe;
    }
    function h(oe, te, ce) {
      return oe.index = ce, e ? (ce = oe.alternate, ce !== null ? (ce = ce.index, ce < te ? (oe.flags |= 2, te) : ce) : (oe.flags |= 2, te)) : (oe.flags |= 1048576, te);
    }
    function O(oe) {
      return e && oe.alternate === null && (oe.flags |= 2), oe;
    }
    function Y(oe, te, ce, _e) {
      return te === null || te.tag !== 6 ? (te = vu(ce, oe.mode, _e), te.return = oe, te) : (te = l(te, ce), te.return = oe, te);
    }
    function $(oe, te, ce, _e) {
      var Fe = ce.type;
      return Fe === p ? Se(oe, te, ce.props.children, _e, ce.key) : te !== null && (te.elementType === Fe || typeof Fe == "object" && Fe !== null && Fe.$$typeof === D && ks(Fe) === te.type) ? (_e = l(te, ce.props), _e.ref = _o(oe, te, ce), _e.return = oe, _e) : (_e = zl(ce.type, ce.key, ce.props, null, oe.mode, _e), _e.ref = _o(oe, te, ce), _e.return = oe, _e);
    }
    function he(oe, te, ce, _e) {
      return te === null || te.tag !== 4 || te.stateNode.containerInfo !== ce.containerInfo || te.stateNode.implementation !== ce.implementation ? (te = mu(ce, oe.mode, _e), te.return = oe, te) : (te = l(te, ce.children || []), te.return = oe, te);
    }
    function Se(oe, te, ce, _e, Fe) {
      return te === null || te.tag !== 7 ? (te = Ti(ce, oe.mode, _e, Fe), te.return = oe, te) : (te = l(te, ce), te.return = oe, te);
    }
    function xe(oe, te, ce) {
      if (typeof te == "string" && te !== "" || typeof te == "number") return te = vu("" + te, oe.mode, ce), te.return = oe, te;
      if (typeof te == "object" && te !== null) {
        switch (te.$$typeof) {
          case s:
            return ce = zl(te.type, te.key, te.props, null, oe.mode, ce), ce.ref = _o(oe, null, te), ce.return = oe, ce;
          case u:
            return te = mu(te, oe.mode, ce), te.return = oe, te;
          case D:
            var _e = te._init;
            return xe(oe, _e(te._payload), ce);
        }
        if (vt(te) || F(te)) return te = Ti(te, oe.mode, ce, null), te.return = oe, te;
        dl(oe, te);
      }
      return null;
    }
    function Ce(oe, te, ce, _e) {
      var Fe = te !== null ? te.key : null;
      if (typeof ce == "string" && ce !== "" || typeof ce == "number") return Fe !== null ? null : Y(oe, te, "" + ce, _e);
      if (typeof ce == "object" && ce !== null) {
        switch (ce.$$typeof) {
          case s:
            return ce.key === Fe ? $(oe, te, ce, _e) : null;
          case u:
            return ce.key === Fe ? he(oe, te, ce, _e) : null;
          case D:
            return Fe = ce._init, Ce(
              oe,
              te,
              Fe(ce._payload),
              _e
            );
        }
        if (vt(ce) || F(ce)) return Fe !== null ? null : Se(oe, te, ce, _e, null);
        dl(oe, ce);
      }
      return null;
    }
    function Le(oe, te, ce, _e, Fe) {
      if (typeof _e == "string" && _e !== "" || typeof _e == "number") return oe = oe.get(ce) || null, Y(te, oe, "" + _e, Fe);
      if (typeof _e == "object" && _e !== null) {
        switch (_e.$$typeof) {
          case s:
            return oe = oe.get(_e.key === null ? ce : _e.key) || null, $(te, oe, _e, Fe);
          case u:
            return oe = oe.get(_e.key === null ? ce : _e.key) || null, he(te, oe, _e, Fe);
          case D:
            var He = _e._init;
            return Le(oe, te, ce, He(_e._payload), Fe);
        }
        if (vt(_e) || F(_e)) return oe = oe.get(ce) || null, Se(te, oe, _e, Fe, null);
        dl(te, _e);
      }
      return null;
    }
    function ze(oe, te, ce, _e) {
      for (var Fe = null, He = null, be = te, Qe = te = 0, Gt = null; be !== null && Qe < ce.length; Qe++) {
        be.index > Qe ? (Gt = be, be = null) : Gt = be.sibling;
        var st = Ce(oe, be, ce[Qe], _e);
        if (st === null) {
          be === null && (be = Gt);
          break;
        }
        e && be && st.alternate === null && t(oe, be), te = h(st, te, Qe), He === null ? Fe = st : He.sibling = st, He = st, be = Gt;
      }
      if (Qe === ce.length) return n(oe, be), Ct && yi(oe, Qe), Fe;
      if (be === null) {
        for (; Qe < ce.length; Qe++) be = xe(oe, ce[Qe], _e), be !== null && (te = h(be, te, Qe), He === null ? Fe = be : He.sibling = be, He = be);
        return Ct && yi(oe, Qe), Fe;
      }
      for (be = r(oe, be); Qe < ce.length; Qe++) Gt = Le(be, oe, Qe, ce[Qe], _e), Gt !== null && (e && Gt.alternate !== null && be.delete(Gt.key === null ? Qe : Gt.key), te = h(Gt, te, Qe), He === null ? Fe = Gt : He.sibling = Gt, He = Gt);
      return e && be.forEach(function(Zr) {
        return t(oe, Zr);
      }), Ct && yi(oe, Qe), Fe;
    }
    function Be(oe, te, ce, _e) {
      var Fe = F(ce);
      if (typeof Fe != "function") throw Error(X(150));
      if (ce = Fe.call(ce), ce == null) throw Error(X(151));
      for (var He = Fe = null, be = te, Qe = te = 0, Gt = null, st = ce.next(); be !== null && !st.done; Qe++, st = ce.next()) {
        be.index > Qe ? (Gt = be, be = null) : Gt = be.sibling;
        var Zr = Ce(oe, be, st.value, _e);
        if (Zr === null) {
          be === null && (be = Gt);
          break;
        }
        e && be && Zr.alternate === null && t(oe, be), te = h(Zr, te, Qe), He === null ? Fe = Zr : He.sibling = Zr, He = Zr, be = Gt;
      }
      if (st.done) return n(
        oe,
        be
      ), Ct && yi(oe, Qe), Fe;
      if (be === null) {
        for (; !st.done; Qe++, st = ce.next()) st = xe(oe, st.value, _e), st !== null && (te = h(st, te, Qe), He === null ? Fe = st : He.sibling = st, He = st);
        return Ct && yi(oe, Qe), Fe;
      }
      for (be = r(oe, be); !st.done; Qe++, st = ce.next()) st = Le(be, oe, Qe, st.value, _e), st !== null && (e && st.alternate !== null && be.delete(st.key === null ? Qe : st.key), te = h(st, te, Qe), He === null ? Fe = st : He.sibling = st, He = st);
      return e && be.forEach(function(Ud) {
        return t(oe, Ud);
      }), Ct && yi(oe, Qe), Fe;
    }
    function Tt(oe, te, ce, _e) {
      if (typeof ce == "object" && ce !== null && ce.type === p && ce.key === null && (ce = ce.props.children), typeof ce == "object" && ce !== null) {
        switch (ce.$$typeof) {
          case s:
            e: {
              for (var Fe = ce.key, He = te; He !== null; ) {
                if (He.key === Fe) {
                  if (Fe = ce.type, Fe === p) {
                    if (He.tag === 7) {
                      n(oe, He.sibling), te = l(He, ce.props.children), te.return = oe, oe = te;
                      break e;
                    }
                  } else if (He.elementType === Fe || typeof Fe == "object" && Fe !== null && Fe.$$typeof === D && ks(Fe) === He.type) {
                    n(oe, He.sibling), te = l(He, ce.props), te.ref = _o(oe, He, ce), te.return = oe, oe = te;
                    break e;
                  }
                  n(oe, He);
                  break;
                } else t(oe, He);
                He = He.sibling;
              }
              ce.type === p ? (te = Ti(ce.props.children, oe.mode, _e, ce.key), te.return = oe, oe = te) : (_e = zl(ce.type, ce.key, ce.props, null, oe.mode, _e), _e.ref = _o(oe, te, ce), _e.return = oe, oe = _e);
            }
            return O(oe);
          case u:
            e: {
              for (He = ce.key; te !== null; ) {
                if (te.key === He) if (te.tag === 4 && te.stateNode.containerInfo === ce.containerInfo && te.stateNode.implementation === ce.implementation) {
                  n(oe, te.sibling), te = l(te, ce.children || []), te.return = oe, oe = te;
                  break e;
                } else {
                  n(oe, te);
                  break;
                }
                else t(oe, te);
                te = te.sibling;
              }
              te = mu(ce, oe.mode, _e), te.return = oe, oe = te;
            }
            return O(oe);
          case D:
            return He = ce._init, Tt(oe, te, He(ce._payload), _e);
        }
        if (vt(ce)) return ze(oe, te, ce, _e);
        if (F(ce)) return Be(oe, te, ce, _e);
        dl(oe, ce);
      }
      return typeof ce == "string" && ce !== "" || typeof ce == "number" ? (ce = "" + ce, te !== null && te.tag === 6 ? (n(oe, te.sibling), te = l(te, ce), te.return = oe, oe = te) : (n(oe, te), te = vu(ce, oe.mode, _e), te.return = oe, oe = te), O(oe)) : n(oe, te);
    }
    return Tt;
  }
  var $i = Ts(!0), As = Ts(!1), hl = jr(null), pl = null, eo = null, ka = null;
  function Ta() {
    ka = eo = pl = null;
  }
  function Aa(e) {
    var t = hl.current;
    wt(hl), e._currentValue = t;
  }
  function _a(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 to(e, t) {
    pl = e, ka = eo = null, e = e.dependencies, e !== null && e.firstContext !== null && ((e.lanes & t) !== 0 && (hn = !0), e.firstContext = null);
  }
  function On(e) {
    var t = e._currentValue;
    if (ka !== e) if (e = { context: e, memoizedValue: t, next: null }, eo === null) {
      if (pl === null) throw Error(X(308));
      eo = e, pl.dependencies = { lanes: 0, firstContext: e };
    } else eo = eo.next = e;
    return t;
  }
  var wi = null;
  function Ra(e) {
    wi === null ? wi = [e] : wi.push(e);
  }
  function _s(e, t, n, r) {
    var l = t.interleaved;
    return l === null ? (n.next = n, Ra(t)) : (n.next = l.next, l.next = n), t.interleaved = n, kr(e, r);
  }
  function kr(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 Wr = !1;
  function Ia(e) {
    e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
  }
  function Rs(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 Tr(e, t) {
    return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null };
  }
  function Dr(e, t, n) {
    var r = e.updateQueue;
    if (r === null) return null;
    if (r = r.shared, (at & 2) !== 0) {
      var l = r.pending;
      return l === null ? t.next = t : (t.next = l.next, l.next = t), r.pending = t, kr(e, n);
    }
    return l = r.interleaved, l === null ? (t.next = t, Ra(r)) : (t.next = l.next, l.next = t), r.interleaved = t, kr(e, n);
  }
  function vl(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, Re(e, n);
    }
  }
  function Is(e, t) {
    var n = e.updateQueue, r = e.alternate;
    if (r !== null && (r = r.updateQueue, n === r)) {
      var l = null, h = null;
      if (n = n.firstBaseUpdate, n !== null) {
        do {
          var O = { eventTime: n.eventTime, lane: n.lane, tag: n.tag, payload: n.payload, callback: n.callback, next: null };
          h === null ? l = h = O : h = h.next = O, n = n.next;
        } while (n !== null);
        h === null ? l = h = t : h = h.next = t;
      } else l = h = t;
      n = { baseState: r.baseState, firstBaseUpdate: l, lastBaseUpdate: h, 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 ml(e, t, n, r) {
    var l = e.updateQueue;
    Wr = !1;
    var h = l.firstBaseUpdate, O = l.lastBaseUpdate, Y = l.shared.pending;
    if (Y !== null) {
      l.shared.pending = null;
      var $ = Y, he = $.next;
      $.next = null, O === null ? h = he : O.next = he, O = $;
      var Se = e.alternate;
      Se !== null && (Se = Se.updateQueue, Y = Se.lastBaseUpdate, Y !== O && (Y === null ? Se.firstBaseUpdate = he : Y.next = he, Se.lastBaseUpdate = $));
    }
    if (h !== null) {
      var xe = l.baseState;
      O = 0, Se = he = $ = null, Y = h;
      do {
        var Ce = Y.lane, Le = Y.eventTime;
        if ((r & Ce) === Ce) {
          Se !== null && (Se = Se.next = {
            eventTime: Le,
            lane: 0,
            tag: Y.tag,
            payload: Y.payload,
            callback: Y.callback,
            next: null
          });
          e: {
            var ze = e, Be = Y;
            switch (Ce = t, Le = n, Be.tag) {
              case 1:
                if (ze = Be.payload, typeof ze == "function") {
                  xe = ze.call(Le, xe, Ce);
                  break e;
                }
                xe = ze;
                break e;
              case 3:
                ze.flags = ze.flags & -65537 | 128;
              case 0:
                if (ze = Be.payload, Ce = typeof ze == "function" ? ze.call(Le, xe, Ce) : ze, Ce == null) break e;
                xe = H({}, xe, Ce);
                break e;
              case 2:
                Wr = !0;
            }
          }
          Y.callback !== null && Y.lane !== 0 && (e.flags |= 64, Ce = l.effects, Ce === null ? l.effects = [Y] : Ce.push(Y));
        } else Le = { eventTime: Le, lane: Ce, tag: Y.tag, payload: Y.payload, callback: Y.callback, next: null }, Se === null ? (he = Se = Le, $ = xe) : Se = Se.next = Le, O |= Ce;
        if (Y = Y.next, Y === null) {
          if (Y = l.shared.pending, Y === null) break;
          Ce = Y, Y = Ce.next, Ce.next = null, l.lastBaseUpdate = Ce, l.shared.pending = null;
        }
      } while (!0);
      if (Se === null && ($ = xe), l.baseState = $, l.firstBaseUpdate = he, l.lastBaseUpdate = Se, t = l.shared.interleaved, t !== null) {
        l = t;
        do
          O |= l.lane, l = l.next;
        while (l !== t);
      } else h === null && (l.shared.lanes = 0);
      Ni |= O, e.lanes = O, e.memoizedState = xe;
    }
  }
  function Os(e, t, n) {
    if (e = t.effects, t.effects = null, e !== null) for (t = 0; t < e.length; t++) {
      var r = e[t], l = r.callback;
      if (l !== null) {
        if (r.callback = null, r = n, typeof l != "function") throw Error(X(191, l));
        l.call(r);
      }
    }
  }
  var Ro = {}, ur = jr(Ro), Io = jr(Ro), Oo = jr(Ro);
  function Ci(e) {
    if (e === Ro) throw Error(X(174));
    return e;
  }
  function Oa(e, t) {
    switch (gt(Oo, t), gt(Io, e), gt(ur, Ro), e = t.nodeType, e) {
      case 9:
      case 11:
        t = (t = t.documentElement) ? t.namespaceURI : yn(null, "");
        break;
      default:
        e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = yn(t, e);
    }
    wt(ur), gt(ur, t);
  }
  function no() {
    wt(ur), wt(Io), wt(Oo);
  }
  function Ps(e) {
    Ci(Oo.current);
    var t = Ci(ur.current), n = yn(t, e.type);
    t !== n && (gt(Io, e), gt(ur, n));
  }
  function Pa(e) {
    Io.current === e && (wt(ur), wt(Io));
  }
  var Nt = jr(0);
  function gl(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) !== 0) 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 La = [];
  function Ma() {
    for (var e = 0; e < La.length; e++) La[e]._workInProgressVersionPrimary = null;
    La.length = 0;
  }
  var yl = d.ReactCurrentDispatcher, Ga = d.ReactCurrentBatchConfig, Si = 0, Et = null, Ot = null, Lt = null, wl = !1, Po = !1, Lo = 0, hd = 0;
  function Xt() {
    throw Error(X(321));
  }
  function za(e, t) {
    if (t === null) return !1;
    for (var n = 0; n < t.length && n < e.length; n++) if (!bn(e[n], t[n])) return !1;
    return !0;
  }
  function qa(e, t, n, r, l, h) {
    if (Si = h, Et = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, yl.current = e === null || e.memoizedState === null ? gd : yd, e = n(r, l), Po) {
      h = 0;
      do {
        if (Po = !1, Lo = 0, 25 <= h) throw Error(X(301));
        h += 1, Lt = Ot = null, t.updateQueue = null, yl.current = wd, e = n(r, l);
      } while (Po);
    }
    if (yl.current = Nl, t = Ot !== null && Ot.next !== null, Si = 0, Lt = Ot = Et = null, wl = !1, t) throw Error(X(300));
    return e;
  }
  function Ba() {
    var e = Lo !== 0;
    return Lo = 0, e;
  }
  function sr() {
    var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
    return Lt === null ? Et.memoizedState = Lt = e : Lt = Lt.next = e, Lt;
  }
  function Pn() {
    if (Ot === null) {
      var e = Et.alternate;
      e = e !== null ? e.memoizedState : null;
    } else e = Ot.next;
    var t = Lt === null ? Et.memoizedState : Lt.next;
    if (t !== null) Lt = t, Ot = e;
    else {
      if (e === null) throw Error(X(310));
      Ot = e, e = { memoizedState: Ot.memoizedState, baseState: Ot.baseState, baseQueue: Ot.baseQueue, queue: Ot.queue, next: null }, Lt === null ? Et.memoizedState = Lt = e : Lt = Lt.next = e;
    }
    return Lt;
  }
  function Mo(e, t) {
    return typeof t == "function" ? t(e) : t;
  }
  function Fa(e) {
    var t = Pn(), n = t.queue;
    if (n === null) throw Error(X(311));
    n.lastRenderedReducer = e;
    var r = Ot, l = r.baseQueue, h = n.pending;
    if (h !== null) {
      if (l !== null) {
        var O = l.next;
        l.next = h.next, h.next = O;
      }
      r.baseQueue = l = h, n.pending = null;
    }
    if (l !== null) {
      h = l.next, r = r.baseState;
      var Y = O = null, $ = null, he = h;
      do {
        var Se = he.lane;
        if ((Si & Se) === Se) $ !== null && ($ = $.next = { lane: 0, action: he.action, hasEagerState: he.hasEagerState, eagerState: he.eagerState, next: null }), r = he.hasEagerState ? he.eagerState : e(r, he.action);
        else {
          var xe = {
            lane: Se,
            action: he.action,
            hasEagerState: he.hasEagerState,
            eagerState: he.eagerState,
            next: null
          };
          $ === null ? (Y = $ = xe, O = r) : $ = $.next = xe, Et.lanes |= Se, Ni |= Se;
        }
        he = he.next;
      } while (he !== null && he !== h);
      $ === null ? O = r : $.next = Y, bn(r, t.memoizedState) || (hn = !0), t.memoizedState = r, t.baseState = O, t.baseQueue = $, n.lastRenderedState = r;
    }
    if (e = n.interleaved, e !== null) {
      l = e;
      do
        h = l.lane, Et.lanes |= h, Ni |= h, l = l.next;
      while (l !== e);
    } else l === null && (n.lanes = 0);
    return [t.memoizedState, n.dispatch];
  }
  function ja(e) {
    var t = Pn(), n = t.queue;
    if (n === null) throw Error(X(311));
    n.lastRenderedReducer = e;
    var r = n.dispatch, l = n.pending, h = t.memoizedState;
    if (l !== null) {
      n.pending = null;
      var O = l = l.next;
      do
        h = e(h, O.action), O = O.next;
      while (O !== l);
      bn(h, t.memoizedState) || (hn = !0), t.memoizedState = h, t.baseQueue === null && (t.baseState = h), n.lastRenderedState = h;
    }
    return [h, r];
  }
  function Ls() {
  }
  function Ms(e, t) {
    var n = Et, r = Pn(), l = t(), h = !bn(r.memoizedState, l);
    if (h && (r.memoizedState = l, hn = !0), r = r.queue, Ha(qs.bind(null, n, r, e), [e]), r.getSnapshot !== t || h || Lt !== null && Lt.memoizedState.tag & 1) {
      if (n.flags |= 2048, Go(9, zs.bind(null, n, r, l, t), void 0, null), Mt === null) throw Error(X(349));
      (Si & 30) !== 0 || Gs(n, t, l);
    }
    return l;
  }
  function Gs(e, t, n) {
    e.flags |= 16384, e = { getSnapshot: t, value: n }, t = Et.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, Et.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
  }
  function zs(e, t, n, r) {
    t.value = n, t.getSnapshot = r, Bs(t) && Fs(e);
  }
  function qs(e, t, n) {
    return n(function() {
      Bs(t) && Fs(e);
    });
  }
  function Bs(e) {
    var t = e.getSnapshot;
    e = e.value;
    try {
      var n = t();
      return !bn(e, n);
    } catch {
      return !0;
    }
  }
  function Fs(e) {
    var t = kr(e, 1);
    t !== null && Xn(t, e, 1, -1);
  }
  function js(e) {
    var t = sr();
    return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Mo, lastRenderedState: e }, t.queue = e, e = e.dispatch = md.bind(null, Et, e), [t.memoizedState, e];
  }
  function Go(e, t, n, r) {
    return e = { tag: e, create: t, destroy: n, deps: r, next: null }, t = Et.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, Et.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 Hs() {
    return Pn().memoizedState;
  }
  function Cl(e, t, n, r) {
    var l = sr();
    Et.flags |= e, l.memoizedState = Go(1 | t, n, void 0, r === void 0 ? null : r);
  }
  function Sl(e, t, n, r) {
    var l = Pn();
    r = r === void 0 ? null : r;
    var h = void 0;
    if (Ot !== null) {
      var O = Ot.memoizedState;
      if (h = O.destroy, r !== null && za(r, O.deps)) {
        l.memoizedState = Go(t, n, h, r);
        return;
      }
    }
    Et.flags |= e, l.memoizedState = Go(1 | t, n, h, r);
  }
  function bs(e, t) {
    return Cl(8390656, 8, e, t);
  }
  function Ha(e, t) {
    return Sl(2048, 8, e, t);
  }
  function Ws(e, t) {
    return Sl(4, 2, e, t);
  }
  function Ds(e, t) {
    return Sl(4, 4, e, t);
  }
  function Us(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 Vs(e, t, n) {
    return n = n != null ? n.concat([e]) : null, Sl(4, 4, Us.bind(null, t, e), n);
  }
  function ba() {
  }
  function Xs(e, t) {
    var n = Pn();
    t = t === void 0 ? null : t;
    var r = n.memoizedState;
    return r !== null && t !== null && za(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
  }
  function Ys(e, t) {
    var n = Pn();
    t = t === void 0 ? null : t;
    var r = n.memoizedState;
    return r !== null && t !== null && za(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e);
  }
  function Qs(e, t, n) {
    return (Si & 21) === 0 ? (e.baseState && (e.baseState = !1, hn = !0), e.memoizedState = n) : (bn(n, t) || (n = U(), Et.lanes |= n, Ni |= n, e.baseState = !0), t);
  }
  function pd(e, t) {
    var n = Ie;
    Ie = n !== 0 && 4 > n ? n : 4, e(!0);
    var r = Ga.transition;
    Ga.transition = {};
    try {
      e(!1), t();
    } finally {
      Ie = n, Ga.transition = r;
    }
  }
  function Ks() {
    return Pn().memoizedState;
  }
  function vd(e, t, n) {
    var r = Yr(e);
    if (n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }, Zs(e)) Js(t, n);
    else if (n = _s(e, t, n, r), n !== null) {
      var l = en();
      Xn(n, e, r, l), $s(n, t, r);
    }
  }
  function md(e, t, n) {
    var r = Yr(e), l = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null };
    if (Zs(e)) Js(t, l);
    else {
      var h = e.alternate;
      if (e.lanes === 0 && (h === null || h.lanes === 0) && (h = t.lastRenderedReducer, h !== null)) try {
        var O = t.lastRenderedState, Y = h(O, n);
        if (l.hasEagerState = !0, l.eagerState = Y, bn(Y, O)) {
          var $ = t.interleaved;
          $ === null ? (l.next = l, Ra(t)) : (l.next = $.next, $.next = l), t.interleaved = l;
          return;
        }
      } catch {
      } finally {
      }
      n = _s(e, t, l, r), n !== null && (l = en(), Xn(n, e, r, l), $s(n, t, r));
    }
  }
  function Zs(e) {
    var t = e.alternate;
    return e === Et || t !== null && t === Et;
  }
  function Js(e, t) {
    Po = wl = !0;
    var n = e.pending;
    n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
  }
  function $s(e, t, n) {
    if ((n & 4194240) !== 0) {
      var r = t.lanes;
      r &= e.pendingLanes, n |= r, t.lanes = n, Re(e, n);
    }
  }
  var Nl = { readContext: On, useCallback: Xt, useContext: Xt, useEffect: Xt, useImperativeHandle: Xt, useInsertionEffect: Xt, useLayoutEffect: Xt, useMemo: Xt, useReducer: Xt, useRef: Xt, useState: Xt, useDebugValue: Xt, useDeferredValue: Xt, useTransition: Xt, useMutableSource: Xt, useSyncExternalStore: Xt, useId: Xt, unstable_isNewReconciler: !1 }, gd = { readContext: On, useCallback: function(e, t) {
    return sr().memoizedState = [e, t === void 0 ? null : t], e;
  }, useContext: On, useEffect: bs, useImperativeHandle: function(e, t, n) {
    return n = n != null ? n.concat([e]) : null, Cl(
      4194308,
      4,
      Us.bind(null, t, e),
      n
    );
  }, useLayoutEffect: function(e, t) {
    return Cl(4194308, 4, e, t);
  }, useInsertionEffect: function(e, t) {
    return Cl(4, 2, e, t);
  }, useMemo: function(e, t) {
    var n = sr();
    return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e;
  }, useReducer: function(e, t, n) {
    var r = sr();
    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 = vd.bind(null, Et, e), [r.memoizedState, e];
  }, useRef: function(e) {
    var t = sr();
    return e = { current: e }, t.memoizedState = e;
  }, useState: js, useDebugValue: ba, useDeferredValue: function(e) {
    return sr().memoizedState = e;
  }, useTransition: function() {
    var e = js(!1), t = e[0];
    return e = pd.bind(null, e[1]), sr().memoizedState = e, [t, e];
  }, useMutableSource: function() {
  }, useSyncExternalStore: function(e, t, n) {
    var r = Et, l = sr();
    if (Ct) {
      if (n === void 0) throw Error(X(407));
      n = n();
    } else {
      if (n = t(), Mt === null) throw Error(X(349));
      (Si & 30) !== 0 || Gs(r, t, n);
    }
    l.memoizedState = n;
    var h = { value: n, getSnapshot: t };
    return l.queue = h, bs(qs.bind(
      null,
      r,
      h,
      e
    ), [e]), r.flags |= 2048, Go(9, zs.bind(null, r, h, n, t), void 0, null), n;
  }, useId: function() {
    var e = sr(), t = Mt.identifierPrefix;
    if (Ct) {
      var n = xr, r = Er;
      n = (r & ~(1 << 32 - It(r) - 1)).toString(32) + n, t = ":" + t + "R" + n, n = Lo++, 0 < n && (t += "H" + n.toString(32)), t += ":";
    } else n = hd++, t = ":" + t + "r" + n.toString(32) + ":";
    return e.memoizedState = t;
  }, unstable_isNewReconciler: !1 }, yd = {
    readContext: On,
    useCallback: Xs,
    useContext: On,
    useEffect: Ha,
    useImperativeHandle: Vs,
    useInsertionEffect: Ws,
    useLayoutEffect: Ds,
    useMemo: Ys,
    useReducer: Fa,
    useRef: Hs,
    useState: function() {
      return Fa(Mo);
    },
    useDebugValue: ba,
    useDeferredValue: function(e) {
      var t = Pn();
      return Qs(t, Ot.memoizedState, e);
    },
    useTransition: function() {
      var e = Fa(Mo)[0], t = Pn().memoizedState;
      return [e, t];
    },
    useMutableSource: Ls,
    useSyncExternalStore: Ms,
    useId: Ks,
    unstable_isNewReconciler: !1
  }, wd = { readContext: On, useCallback: Xs, useContext: On, useEffect: Ha, useImperativeHandle: Vs, useInsertionEffect: Ws, useLayoutEffect: Ds, useMemo: Ys, useReducer: ja, useRef: Hs, useState: function() {
    return ja(Mo);
  }, useDebugValue: ba, useDeferredValue: function(e) {
    var t = Pn();
    return Ot === null ? t.memoizedState = e : Qs(t, Ot.memoizedState, e);
  }, useTransition: function() {
    var e = ja(Mo)[0], t = Pn().memoizedState;
    return [e, t];
  }, useMutableSource: Ls, useSyncExternalStore: Ms, useId: Ks, unstable_isNewReconciler: !1 };
  function Dn(e, t) {
    if (e && e.defaultProps) {
      t = H({}, t), e = e.defaultProps;
      for (var n in e) t[n] === void 0 && (t[n] = e[n]);
      return t;
    }
    return t;
  }
  function Wa(e, t, n, r) {
    t = e.memoizedState, n = n(r, t), n = n == null ? t : H({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
  }
  var El = { isMounted: function(e) {
    return (e = e._reactInternals) ? zn(e) === e : !1;
  }, enqueueSetState: function(e, t, n) {
    e = e._reactInternals;
    var r = en(), l = Yr(e), h = Tr(r, l);
    h.payload = t, n != null && (h.callback = n), t = Dr(e, h, l), t !== null && (Xn(t, e, l, r), vl(t, e, l));
  }, enqueueReplaceState: function(e, t, n) {
    e = e._reactInternals;
    var r = en(), l = Yr(e), h = Tr(r, l);
    h.tag = 1, h.payload = t, n != null && (h.callback = n), t = Dr(e, h, l), t !== null && (Xn(t, e, l, r), vl(t, e, l));
  }, enqueueForceUpdate: function(e, t) {
    e = e._reactInternals;
    var n = en(), r = Yr(e), l = Tr(n, r);
    l.tag = 2, t != null && (l.callback = t), t = Dr(e, l, r), t !== null && (Xn(t, e, r, n), vl(t, e, r));
  } };
  function ec(e, t, n, r, l, h, O) {
    return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, h, O) : t.prototype && t.prototype.isPureReactComponent ? !So(n, r) || !So(l, h) : !0;
  }
  function tc(e, t, n) {
    var r = !1, l = Hr, h = t.contextType;
    return typeof h == "object" && h !== null ? h = On(h) : (l = dn(t) ? mi : Vt.current, r = t.contextTypes, h = (r = r != null) ? Qi(e, l) : Hr), t = new t(n, h), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = El, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = l, e.__reactInternalMemoizedMaskedChildContext = h), t;
  }
  function nc(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 && El.enqueueReplaceState(t, t.state, null);
  }
  function Da(e, t, n, r) {
    var l = e.stateNode;
    l.props = n, l.state = e.memoizedState, l.refs = {}, Ia(e);
    var h = t.contextType;
    typeof h == "object" && h !== null ? l.context = On(h) : (h = dn(t) ? mi : Vt.current, l.context = Qi(e, h)), l.state = e.memoizedState, h = t.getDerivedStateFromProps, typeof h == "function" && (Wa(e, t, h, n), l.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof l.getSnapshotBeforeUpdate == "function" || typeof l.UNSAFE_componentWillMount != "function" && typeof l.componentWillMount != "function" || (t = l.state, typeof l.componentWillMount == "function" && l.componentWillMount(), typeof l.UNSAFE_componentWillMount == "function" && l.UNSAFE_componentWillMount(), t !== l.state && El.enqueueReplaceState(l, l.state, null), ml(e, n, l, r), l.state = e.memoizedState), typeof l.componentDidMount == "function" && (e.flags |= 4194308);
  }
  function ro(e, t) {
    try {
      var n = "", r = t;
      do
        n += ue(r), r = r.return;
      while (r);
      var l = n;
    } catch (h) {
      l = `
Error generating stack: ` + h.message + `
` + h.stack;
    }
    return { value: e, source: t, stack: l, digest: null };
  }
  function Ua(e, t, n) {
    return { value: e, source: null, stack: n ?? null, digest: t ?? null };
  }
  function Va(e, t) {
    try {
      console.error(t.value);
    } catch (n) {
      setTimeout(function() {
        throw n;
      });
    }
  }
  var Cd = typeof WeakMap == "function" ? WeakMap : Map;
  function rc(e, t, n) {
    n = Tr(-1, n), n.tag = 3, n.payload = { element: null };
    var r = t.value;
    return n.callback = function() {
      Il || (Il = !0, au = r), Va(e, t);
    }, n;
  }
  function ic(e, t, n) {
    n = Tr(-1, n), n.tag = 3;
    var r = e.type.getDerivedStateFromError;
    if (typeof r == "function") {
      var l = t.value;
      n.payload = function() {
        return r(l);
      }, n.callback = function() {
        Va(e, t);
      };
    }
    var h = e.stateNode;
    return h !== null && typeof h.componentDidCatch == "function" && (n.callback = function() {
      Va(e, t), typeof r != "function" && (Vr === null ? Vr = /* @__PURE__ */ new Set([this]) : Vr.add(this));
      var O = t.stack;
      this.componentDidCatch(t.value, { componentStack: O !== null ? O : "" });
    }), n;
  }
  function oc(e, t, n) {
    var r = e.pingCache;
    if (r === null) {
      r = e.pingCache = new Cd();
      var l = /* @__PURE__ */ new Set();
      r.set(t, l);
    } else l = r.get(t), l === void 0 && (l = /* @__PURE__ */ new Set(), r.set(t, l));
    l.has(n) || (l.add(n), e = Md.bind(null, e, t, n), t.then(e, e));
  }
  function lc(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 ac(e, t, n, r, l) {
    return (e.mode & 1) === 0 ? (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = Tr(-1, 1), t.tag = 2, Dr(n, t, 1))), n.lanes |= 1), e) : (e.flags |= 65536, e.lanes = l, e);
  }
  var Sd = d.ReactCurrentOwner, hn = !1;
  function $t(e, t, n, r) {
    t.child = e === null ? As(t, null, n, r) : $i(t, e.child, n, r);
  }
  function uc(e, t, n, r, l) {
    n = n.render;
    var h = t.ref;
    return to(t, l), r = qa(e, t, n, r, h, l), n = Ba(), e !== null && !hn ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~l, Ar(e, t, l)) : (Ct && n && Ca(t), t.flags |= 1, $t(e, t, r, l), t.child);
  }
  function sc(e, t, n, r, l) {
    if (e === null) {
      var h = n.type;
      return typeof h == "function" && !pu(h) && h.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, t.type = h, cc(e, t, h, r, l)) : (e = zl(n.type, null, r, t, t.mode, l), e.ref = t.ref, e.return = t, t.child = e);
    }
    if (h = e.child, (e.lanes & l) === 0) {
      var O = h.memoizedProps;
      if (n = n.compare, n = n !== null ? n : So, n(O, r) && e.ref === t.ref) return Ar(e, t, l);
    }
    return t.flags |= 1, e = Kr(h, r), e.ref = t.ref, e.return = t, t.child = e;
  }
  function cc(e, t, n, r, l) {
    if (e !== null) {
      var h = e.memoizedProps;
      if (So(h, r) && e.ref === t.ref) if (hn = !1, t.pendingProps = r = h, (e.lanes & l) !== 0) (e.flags & 131072) !== 0 && (hn = !0);
      else return t.lanes = e.lanes, Ar(e, t, l);
    }
    return Xa(e, t, n, r, l);
  }
  function fc(e, t, n) {
    var r = t.pendingProps, l = r.children, h = e !== null ? e.memoizedState : null;
    if (r.mode === "hidden") if ((t.mode & 1) === 0) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, gt(oo, kn), kn |= n;
    else {
      if ((n & 1073741824) === 0) return e = h !== null ? h.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, gt(oo, kn), kn |= e, null;
      t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = h !== null ? h.baseLanes : n, gt(oo, kn), kn |= r;
    }
    else h !== null ? (r = h.baseLanes | n, t.memoizedState = null) : r = n, gt(oo, kn), kn |= r;
    return $t(e, t, l, n), t.child;
  }
  function dc(e, t) {
    var n = t.ref;
    (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152);
  }
  function Xa(e, t, n, r, l) {
    var h = dn(n) ? mi : Vt.current;
    return h = Qi(t, h), to(t, l), n = qa(e, t, n, r, h, l), r = Ba(), e !== null && !hn ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~l, Ar(e, t, l)) : (Ct && r && Ca(t), t.flags |= 1, $t(e, t, n, l), t.child);
  }
  function hc(e, t, n, r, l) {
    if (dn(n)) {
      var h = !0;
      al(t);
    } else h = !1;
    if (to(t, l), t.stateNode === null) kl(e, t), tc(t, n, r), Da(t, n, r, l), r = !0;
    else if (e === null) {
      var O = t.stateNode, Y = t.memoizedProps;
      O.props = Y;
      var $ = O.context, he = n.contextType;
      typeof he == "object" && he !== null ? he = On(he) : (he = dn(n) ? mi : Vt.current, he = Qi(t, he));
      var Se = n.getDerivedStateFromProps, xe = typeof Se == "function" || typeof O.getSnapshotBeforeUpdate == "function";
      xe || typeof O.UNSAFE_componentWillReceiveProps != "function" && typeof O.componentWillReceiveProps != "function" || (Y !== r || $ !== he) && nc(t, O, r, he), Wr = !1;
      var Ce = t.memoizedState;
      O.state = Ce, ml(t, r, O, l), $ = t.memoizedState, Y !== r || Ce !== $ || fn.current || Wr ? (typeof Se == "function" && (Wa(t, n, Se, r), $ = t.memoizedState), (Y = Wr || ec(t, n, Y, r, Ce, $, he)) ? (xe || typeof O.UNSAFE_componentWillMount != "function" && typeof O.componentWillMount != "function" || (typeof O.componentWillMount == "function" && O.componentWillMount(), typeof O.UNSAFE_componentWillMount == "function" && O.UNSAFE_componentWillMount()), typeof O.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof O.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = $), O.props = r, O.state = $, O.context = he, r = Y) : (typeof O.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
    } else {
      O = t.stateNode, Rs(e, t), Y = t.memoizedProps, he = t.type === t.elementType ? Y : Dn(t.type, Y), O.props = he, xe = t.pendingProps, Ce = O.context, $ = n.contextType, typeof $ == "object" && $ !== null ? $ = On($) : ($ = dn(n) ? mi : Vt.current, $ = Qi(t, $));
      var Le = n.getDerivedStateFromProps;
      (Se = typeof Le == "function" || typeof O.getSnapshotBeforeUpdate == "function") || typeof O.UNSAFE_componentWillReceiveProps != "function" && typeof O.componentWillReceiveProps != "function" || (Y !== xe || Ce !== $) && nc(t, O, r, $), Wr = !1, Ce = t.memoizedState, O.state = Ce, ml(t, r, O, l);
      var ze = t.memoizedState;
      Y !== xe || Ce !== ze || fn.current || Wr ? (typeof Le == "function" && (Wa(t, n, Le, r), ze = t.memoizedState), (he = Wr || ec(t, n, he, r, Ce, ze, $) || !1) ? (Se || typeof O.UNSAFE_componentWillUpdate != "function" && typeof O.componentWillUpdate != "function" || (typeof O.componentWillUpdate == "function" && O.componentWillUpdate(r, ze, $), typeof O.UNSAFE_componentWillUpdate == "function" && O.UNSAFE_componentWillUpdate(r, ze, $)), typeof O.componentDidUpdate == "function" && (t.flags |= 4), typeof O.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof O.componentDidUpdate != "function" || Y === e.memoizedProps && Ce === e.memoizedState || (t.flags |= 4), typeof O.getSnapshotBeforeUpdate != "function" || Y === e.memoizedProps && Ce === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = ze), O.props = r, O.state = ze, O.context = $, r = he) : (typeof O.componentDidUpdate != "function" || Y === e.memoizedProps && Ce === e.memoizedState || (t.flags |= 4), typeof O.getSnapshotBeforeUpdate != "function" || Y === e.memoizedProps && Ce === e.memoizedState || (t.flags |= 1024), r = !1);
    }
    return Ya(e, t, n, r, h, l);
  }
  function Ya(e, t, n, r, l, h) {
    dc(e, t);
    var O = (t.flags & 128) !== 0;
    if (!r && !O) return l && ys(t, n, !1), Ar(e, t, h);
    r = t.stateNode, Sd.current = t;
    var Y = O && typeof n.getDerivedStateFromError != "function" ? null : r.render();
    return t.flags |= 1, e !== null && O ? (t.child = $i(t, e.child, null, h), t.child = $i(t, null, Y, h)) : $t(e, t, Y, h), t.memoizedState = r.state, l && ys(t, n, !0), t.child;
  }
  function pc(e) {
    var t = e.stateNode;
    t.pendingContext ? ms(e, t.pendingContext, t.pendingContext !== t.context) : t.context && ms(e, t.context, !1), Oa(e, t.containerInfo);
  }
  function vc(e, t, n, r, l) {
    return Ji(), xa(l), t.flags |= 256, $t(e, t, n, r), t.child;
  }
  var Qa = { dehydrated: null, treeContext: null, retryLane: 0 };
  function Ka(e) {
    return { baseLanes: e, cachePool: null, transitions: null };
  }
  function mc(e, t, n) {
    var r = t.pendingProps, l = Nt.current, h = !1, O = (t.flags & 128) !== 0, Y;
    if ((Y = O) || (Y = e !== null && e.memoizedState === null ? !1 : (l & 2) !== 0), Y ? (h = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (l |= 1), gt(Nt, l & 1), e === null)
      return Ea(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? ((t.mode & 1) === 0 ? t.lanes = 1 : e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824, null) : (O = r.children, e = r.fallback, h ? (r = t.mode, h = t.child, O = { mode: "hidden", children: O }, (r & 1) === 0 && h !== null ? (h.childLanes = 0, h.pendingProps = O) : h = ql(O, r, 0, null), e = Ti(e, r, n, null), h.return = t, e.return = t, h.sibling = e, t.child = h, t.child.memoizedState = Ka(n), t.memoizedState = Qa, e) : Za(t, O));
    if (l = e.memoizedState, l !== null && (Y = l.dehydrated, Y !== null)) return Nd(e, t, O, r, Y, l, n);
    if (h) {
      h = r.fallback, O = t.mode, l = e.child, Y = l.sibling;
      var $ = { mode: "hidden", children: r.children };
      return (O & 1) === 0 && t.child !== l ? (r = t.child, r.childLanes = 0, r.pendingProps = $, t.deletions = null) : (r = Kr(l, $), r.subtreeFlags = l.subtreeFlags & 14680064), Y !== null ? h = Kr(Y, h) : (h = Ti(h, O, n, null), h.flags |= 2), h.return = t, r.return = t, r.sibling = h, t.child = r, r = h, h = t.child, O = e.child.memoizedState, O = O === null ? Ka(n) : { baseLanes: O.baseLanes | n, cachePool: null, transitions: O.transitions }, h.memoizedState = O, h.childLanes = e.childLanes & ~n, t.memoizedState = Qa, r;
    }
    return h = e.child, e = h.sibling, r = Kr(h, { mode: "visible", children: r.children }), (t.mode & 1) === 0 && (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 Za(e, t) {
    return t = ql({ mode: "visible", children: t }, e.mode, 0, null), t.return = e, e.child = t;
  }
  function xl(e, t, n, r) {
    return r !== null && xa(r), $i(t, e.child, null, n), e = Za(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
  }
  function Nd(e, t, n, r, l, h, O) {
    if (n)
      return t.flags & 256 ? (t.flags &= -257, r = Ua(Error(X(422))), xl(e, t, O, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (h = r.fallback, l = t.mode, r = ql({ mode: "visible", children: r.children }, l, 0, null), h = Ti(h, l, O, null), h.flags |= 2, r.return = t, h.return = t, r.sibling = h, t.child = r, (t.mode & 1) !== 0 && $i(t, e.child, null, O), t.child.memoizedState = Ka(O), t.memoizedState = Qa, h);
    if ((t.mode & 1) === 0) return xl(e, t, O, null);
    if (l.data === "$!") {
      if (r = l.nextSibling && l.nextSibling.dataset, r) var Y = r.dgst;
      return r = Y, h = Error(X(419)), r = Ua(h, r, void 0), xl(e, t, O, r);
    }
    if (Y = (O & e.childLanes) !== 0, hn || Y) {
      if (r = Mt, r !== null) {
        switch (O & -O) {
          case 4:
            l = 2;
            break;
          case 16:
            l = 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:
            l = 32;
            break;
          case 536870912:
            l = 268435456;
            break;
          default:
            l = 0;
        }
        l = (l & (r.suspendedLanes | O)) !== 0 ? 0 : l, l !== 0 && l !== h.retryLane && (h.retryLane = l, kr(e, l), Xn(r, e, l, -1));
      }
      return hu(), r = Ua(Error(X(421))), xl(e, t, O, r);
    }
    return l.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Gd.bind(null, e), l._reactRetry = t, null) : (e = h.treeContext, xn = Fr(l.nextSibling), En = t, Ct = !0, Wn = null, e !== null && (Rn[In++] = Er, Rn[In++] = xr, Rn[In++] = gi, Er = e.id, xr = e.overflow, gi = t), t = Za(t, r.children), t.flags |= 4096, t);
  }
  function gc(e, t, n) {
    e.lanes |= t;
    var r = e.alternate;
    r !== null && (r.lanes |= t), _a(e.return, t, n);
  }
  function Ja(e, t, n, r, l) {
    var h = e.memoizedState;
    h === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: l } : (h.isBackwards = t, h.rendering = null, h.renderingStartTime = 0, h.last = r, h.tail = n, h.tailMode = l);
  }
  function yc(e, t, n) {
    var r = t.pendingProps, l = r.revealOrder, h = r.tail;
    if ($t(e, t, r.children, n), r = Nt.current, (r & 2) !== 0) r = r & 1 | 2, t.flags |= 128;
    else {
      if (e !== null && (e.flags & 128) !== 0) e: for (e = t.child; e !== null; ) {
        if (e.tag === 13) e.memoizedState !== null && gc(e, n, t);
        else if (e.tag === 19) gc(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 (gt(Nt, r), (t.mode & 1) === 0) t.memoizedState = null;
    else switch (l) {
      case "forwards":
        for (n = t.child, l = null; n !== null; ) e = n.alternate, e !== null && gl(e) === null && (l = n), n = n.sibling;
        n = l, n === null ? (l = t.child, t.child = null) : (l = n.sibling, n.sibling = null), Ja(t, !1, l, n, h);
        break;
      case "backwards":
        for (n = null, l = t.child, t.child = null; l !== null; ) {
          if (e = l.alternate, e !== null && gl(e) === null) {
            t.child = l;
            break;
          }
          e = l.sibling, l.sibling = n, n = l, l = e;
        }
        Ja(t, !0, n, null, h);
        break;
      case "together":
        Ja(t, !1, null, null, void 0);
        break;
      default:
        t.memoizedState = null;
    }
    return t.child;
  }
  function kl(e, t) {
    (t.mode & 1) === 0 && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2);
  }
  function Ar(e, t, n) {
    if (e !== null && (t.dependencies = e.dependencies), Ni |= t.lanes, (n & t.childLanes) === 0) return null;
    if (e !== null && t.child !== e.child) throw Error(X(153));
    if (t.child !== null) {
      for (e = t.child, n = Kr(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) e = e.sibling, n = n.sibling = Kr(e, e.pendingProps), n.return = t;
      n.sibling = null;
    }
    return t.child;
  }
  function Ed(e, t, n) {
    switch (t.tag) {
      case 3:
        pc(t), Ji();
        break;
      case 5:
        Ps(t);
        break;
      case 1:
        dn(t.type) && al(t);
        break;
      case 4:
        Oa(t, t.stateNode.containerInfo);
        break;
      case 10:
        var r = t.type._context, l = t.memoizedProps.value;
        gt(hl, r._currentValue), r._currentValue = l;
        break;
      case 13:
        if (r = t.memoizedState, r !== null)
          return r.dehydrated !== null ? (gt(Nt, Nt.current & 1), t.flags |= 128, null) : (n & t.child.childLanes) !== 0 ? mc(e, t, n) : (gt(Nt, Nt.current & 1), e = Ar(e, t, n), e !== null ? e.sibling : null);
        gt(Nt, Nt.current & 1);
        break;
      case 19:
        if (r = (n & t.childLanes) !== 0, (e.flags & 128) !== 0) {
          if (r) return yc(e, t, n);
          t.flags |= 128;
        }
        if (l = t.memoizedState, l !== null && (l.rendering = null, l.tail = null, l.lastEffect = null), gt(Nt, Nt.current), r) break;
        return null;
      case 22:
      case 23:
        return t.lanes = 0, fc(e, t, n);
    }
    return Ar(e, t, n);
  }
  var wc, $a, Cc, Sc;
  wc = 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;
    }
  }, $a = function() {
  }, Cc = function(e, t, n, r) {
    var l = e.memoizedProps;
    if (l !== r) {
      e = t.stateNode, Ci(ur.current);
      var h = null;
      switch (n) {
        case "input":
          l = rt(e, l), r = rt(e, r), h = [];
          break;
        case "select":
          l = H({}, l, { value: void 0 }), r = H({}, r, { value: void 0 }), h = [];
          break;
        case "textarea":
          l = ut(e, l), r = ut(e, r), h = [];
          break;
        default:
          typeof l.onClick != "function" && typeof r.onClick == "function" && (e.onclick = il);
      }
      Ae(n, r);
      var O;
      n = null;
      for (he in l) if (!r.hasOwnProperty(he) && l.hasOwnProperty(he) && l[he] != null) if (he === "style") {
        var Y = l[he];
        for (O in Y) Y.hasOwnProperty(O) && (n || (n = {}), n[O] = "");
      } else he !== "dangerouslySetInnerHTML" && he !== "children" && he !== "suppressContentEditableWarning" && he !== "suppressHydrationWarning" && he !== "autoFocus" && (ie.hasOwnProperty(he) ? h || (h = []) : (h = h || []).push(he, null));
      for (he in r) {
        var $ = r[he];
        if (Y = l?.[he], r.hasOwnProperty(he) && $ !== Y && ($ != null || Y != null)) if (he === "style") if (Y) {
          for (O in Y) !Y.hasOwnProperty(O) || $ && $.hasOwnProperty(O) || (n || (n = {}), n[O] = "");
          for (O in $) $.hasOwnProperty(O) && Y[O] !== $[O] && (n || (n = {}), n[O] = $[O]);
        } else n || (h || (h = []), h.push(
          he,
          n
        )), n = $;
        else he === "dangerouslySetInnerHTML" ? ($ = $ ? $.__html : void 0, Y = Y ? Y.__html : void 0, $ != null && Y !== $ && (h = h || []).push(he, $)) : he === "children" ? typeof $ != "string" && typeof $ != "number" || (h = h || []).push(he, "" + $) : he !== "suppressContentEditableWarning" && he !== "suppressHydrationWarning" && (ie.hasOwnProperty(he) ? ($ != null && he === "onScroll" && yt("scroll", e), h || Y === $ || (h = [])) : (h = h || []).push(he, $));
      }
      n && (h = h || []).push("style", n);
      var he = h;
      (t.updateQueue = he) && (t.flags |= 4);
    }
  }, Sc = function(e, t, n, r) {
    n !== r && (t.flags |= 4);
  };
  function zo(e, t) {
    if (!Ct) 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 Yt(e) {
    var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
    if (t) for (var l = e.child; l !== null; ) n |= l.lanes | l.childLanes, r |= l.subtreeFlags & 14680064, r |= l.flags & 14680064, l.return = e, l = l.sibling;
    else for (l = e.child; l !== null; ) n |= l.lanes | l.childLanes, r |= l.subtreeFlags, r |= l.flags, l.return = e, l = l.sibling;
    return e.subtreeFlags |= r, e.childLanes = n, t;
  }
  function xd(e, t, n) {
    var r = t.pendingProps;
    switch (Sa(t), t.tag) {
      case 2:
      case 16:
      case 15:
      case 0:
      case 11:
      case 7:
      case 8:
      case 12:
      case 9:
      case 14:
        return Yt(t), null;
      case 1:
        return dn(t.type) && ll(), Yt(t), null;
      case 3:
        return r = t.stateNode, no(), wt(fn), wt(Vt), Ma(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (fl(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && (t.flags & 256) === 0 || (t.flags |= 1024, Wn !== null && (cu(Wn), Wn = null))), $a(e, t), Yt(t), null;
      case 5:
        Pa(t);
        var l = Ci(Oo.current);
        if (n = t.type, e !== null && t.stateNode != null) Cc(e, t, n, r, l), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152);
        else {
          if (!r) {
            if (t.stateNode === null) throw Error(X(166));
            return Yt(t), null;
          }
          if (e = Ci(ur.current), fl(t)) {
            r = t.stateNode, n = t.type;
            var h = t.memoizedProps;
            switch (r[ar] = t, r[To] = h, e = (t.mode & 1) !== 0, n) {
              case "dialog":
                yt("cancel", r), yt("close", r);
                break;
              case "iframe":
              case "object":
              case "embed":
                yt("load", r);
                break;
              case "video":
              case "audio":
                for (l = 0; l < Eo.length; l++) yt(Eo[l], r);
                break;
              case "source":
                yt("error", r);
                break;
              case "img":
              case "image":
              case "link":
                yt(
                  "error",
                  r
                ), yt("load", r);
                break;
              case "details":
                yt("toggle", r);
                break;
              case "input":
                nt(r, h), yt("invalid", r);
                break;
              case "select":
                r._wrapperState = { wasMultiple: !!h.multiple }, yt("invalid", r);
                break;
              case "textarea":
                lt(r, h), yt("invalid", r);
            }
            Ae(n, h), l = null;
            for (var O in h) if (h.hasOwnProperty(O)) {
              var Y = h[O];
              O === "children" ? typeof Y == "string" ? r.textContent !== Y && (h.suppressHydrationWarning !== !0 && rl(r.textContent, Y, e), l = ["children", Y]) : typeof Y == "number" && r.textContent !== "" + Y && (h.suppressHydrationWarning !== !0 && rl(
                r.textContent,
                Y,
                e
              ), l = ["children", "" + Y]) : ie.hasOwnProperty(O) && Y != null && O === "onScroll" && yt("scroll", r);
            }
            switch (n) {
              case "input":
                Ue(r), ct(r, h, !0);
                break;
              case "textarea":
                Ue(r), Tn(r);
                break;
              case "select":
              case "option":
                break;
              default:
                typeof h.onClick == "function" && (r.onclick = il);
            }
            r = l, t.updateQueue = r, r !== null && (t.flags |= 4);
          } else {
            O = l.nodeType === 9 ? l : l.ownerDocument, e === "http://www.w3.org/1999/xhtml" && (e = gn(n)), e === "http://www.w3.org/1999/xhtml" ? n === "script" ? (e = O.createElement("div"), e.innerHTML = "<script><\/script>", e = e.removeChild(e.firstChild)) : typeof r.is == "string" ? e = O.createElement(n, { is: r.is }) : (e = O.createElement(n), n === "select" && (O = e, r.multiple ? O.multiple = !0 : r.size && (O.size = r.size))) : e = O.createElementNS(e, n), e[ar] = t, e[To] = r, wc(e, t, !1, !1), t.stateNode = e;
            e: {
              switch (O = Me(n, r), n) {
                case "dialog":
                  yt("cancel", e), yt("close", e), l = r;
                  break;
                case "iframe":
                case "object":
                case "embed":
                  yt("load", e), l = r;
                  break;
                case "video":
                case "audio":
                  for (l = 0; l < Eo.length; l++) yt(Eo[l], e);
                  l = r;
                  break;
                case "source":
                  yt("error", e), l = r;
                  break;
                case "img":
                case "image":
                case "link":
                  yt(
                    "error",
                    e
                  ), yt("load", e), l = r;
                  break;
                case "details":
                  yt("toggle", e), l = r;
                  break;
                case "input":
                  nt(e, r), l = rt(e, r), yt("invalid", e);
                  break;
                case "option":
                  l = r;
                  break;
                case "select":
                  e._wrapperState = { wasMultiple: !!r.multiple }, l = H({}, r, { value: void 0 }), yt("invalid", e);
                  break;
                case "textarea":
                  lt(e, r), l = ut(e, r), yt("invalid", e);
                  break;
                default:
                  l = r;
              }
              Ae(n, l), Y = l;
              for (h in Y) if (Y.hasOwnProperty(h)) {
                var $ = Y[h];
                h === "style" ? ye(e, $) : h === "dangerouslySetInnerHTML" ? ($ = $ ? $.__html : void 0, $ != null && tn(e, $)) : h === "children" ? typeof $ == "string" ? (n !== "textarea" || $ !== "") && St(e, $) : typeof $ == "number" && St(e, "" + $) : h !== "suppressContentEditableWarning" && h !== "suppressHydrationWarning" && h !== "autoFocus" && (ie.hasOwnProperty(h) ? $ != null && h === "onScroll" && yt("scroll", e) : $ != null && a(e, h, $, O));
              }
              switch (n) {
                case "input":
                  Ue(e), ct(e, r, !1);
                  break;
                case "textarea":
                  Ue(e), Tn(e);
                  break;
                case "option":
                  r.value != null && e.setAttribute("value", "" + Ee(r.value));
                  break;
                case "select":
                  e.multiple = !!r.multiple, h = r.value, h != null ? At(e, !!r.multiple, h, !1) : r.defaultValue != null && At(
                    e,
                    !!r.multiple,
                    r.defaultValue,
                    !0
                  );
                  break;
                default:
                  typeof l.onClick == "function" && (e.onclick = il);
              }
              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 Yt(t), null;
      case 6:
        if (e && t.stateNode != null) Sc(e, t, e.memoizedProps, r);
        else {
          if (typeof r != "string" && t.stateNode === null) throw Error(X(166));
          if (n = Ci(Oo.current), Ci(ur.current), fl(t)) {
            if (r = t.stateNode, n = t.memoizedProps, r[ar] = t, (h = r.nodeValue !== n) && (e = En, e !== null)) switch (e.tag) {
              case 3:
                rl(r.nodeValue, n, (e.mode & 1) !== 0);
                break;
              case 5:
                e.memoizedProps.suppressHydrationWarning !== !0 && rl(r.nodeValue, n, (e.mode & 1) !== 0);
            }
            h && (t.flags |= 4);
          } else r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r), r[ar] = t, t.stateNode = r;
        }
        return Yt(t), null;
      case 13:
        if (wt(Nt), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
          if (Ct && xn !== null && (t.mode & 1) !== 0 && (t.flags & 128) === 0) xs(), Ji(), t.flags |= 98560, h = !1;
          else if (h = fl(t), r !== null && r.dehydrated !== null) {
            if (e === null) {
              if (!h) throw Error(X(318));
              if (h = t.memoizedState, h = h !== null ? h.dehydrated : null, !h) throw Error(X(317));
              h[ar] = t;
            } else Ji(), (t.flags & 128) === 0 && (t.memoizedState = null), t.flags |= 4;
            Yt(t), h = !1;
          } else Wn !== null && (cu(Wn), Wn = null), h = !0;
          if (!h) return t.flags & 65536 ? t : null;
        }
        return (t.flags & 128) !== 0 ? (t.lanes = n, t) : (r = r !== null, r !== (e !== null && e.memoizedState !== null) && r && (t.child.flags |= 8192, (t.mode & 1) !== 0 && (e === null || (Nt.current & 1) !== 0 ? Pt === 0 && (Pt = 3) : hu())), t.updateQueue !== null && (t.flags |= 4), Yt(t), null);
      case 4:
        return no(), $a(e, t), e === null && xo(t.stateNode.containerInfo), Yt(t), null;
      case 10:
        return Aa(t.type._context), Yt(t), null;
      case 17:
        return dn(t.type) && ll(), Yt(t), null;
      case 19:
        if (wt(Nt), h = t.memoizedState, h === null) return Yt(t), null;
        if (r = (t.flags & 128) !== 0, O = h.rendering, O === null) if (r) zo(h, !1);
        else {
          if (Pt !== 0 || e !== null && (e.flags & 128) !== 0) for (e = t.child; e !== null; ) {
            if (O = gl(e), O !== null) {
              for (t.flags |= 128, zo(h, !1), r = O.updateQueue, r !== null && (t.updateQueue = r, t.flags |= 4), t.subtreeFlags = 0, r = n, n = t.child; n !== null; ) h = n, e = r, h.flags &= 14680066, O = h.alternate, O === null ? (h.childLanes = 0, h.lanes = e, h.child = null, h.subtreeFlags = 0, h.memoizedProps = null, h.memoizedState = null, h.updateQueue = null, h.dependencies = null, h.stateNode = null) : (h.childLanes = O.childLanes, h.lanes = O.lanes, h.child = O.child, h.subtreeFlags = 0, h.deletions = null, h.memoizedProps = O.memoizedProps, h.memoizedState = O.memoizedState, h.updateQueue = O.updateQueue, h.type = O.type, e = O.dependencies, h.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }), n = n.sibling;
              return gt(Nt, Nt.current & 1 | 2), t.child;
            }
            e = e.sibling;
          }
          h.tail !== null && ht() > lo && (t.flags |= 128, r = !0, zo(h, !1), t.lanes = 4194304);
        }
        else {
          if (!r) if (e = gl(O), e !== null) {
            if (t.flags |= 128, r = !0, n = e.updateQueue, n !== null && (t.updateQueue = n, t.flags |= 4), zo(h, !0), h.tail === null && h.tailMode === "hidden" && !O.alternate && !Ct) return Yt(t), null;
          } else 2 * ht() - h.renderingStartTime > lo && n !== 1073741824 && (t.flags |= 128, r = !0, zo(h, !1), t.lanes = 4194304);
          h.isBackwards ? (O.sibling = t.child, t.child = O) : (n = h.last, n !== null ? n.sibling = O : t.child = O, h.last = O);
        }
        return h.tail !== null ? (t = h.tail, h.rendering = t, h.tail = t.sibling, h.renderingStartTime = ht(), t.sibling = null, n = Nt.current, gt(Nt, r ? n & 1 | 2 : n & 1), t) : (Yt(t), null);
      case 22:
      case 23:
        return du(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && (t.mode & 1) !== 0 ? (kn & 1073741824) !== 0 && (Yt(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Yt(t), null;
      case 24:
        return null;
      case 25:
        return null;
    }
    throw Error(X(156, t.tag));
  }
  function kd(e, t) {
    switch (Sa(t), t.tag) {
      case 1:
        return dn(t.type) && ll(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
      case 3:
        return no(), wt(fn), wt(Vt), Ma(), e = t.flags, (e & 65536) !== 0 && (e & 128) === 0 ? (t.flags = e & -65537 | 128, t) : null;
      case 5:
        return Pa(t), null;
      case 13:
        if (wt(Nt), e = t.memoizedState, e !== null && e.dehydrated !== null) {
          if (t.alternate === null) throw Error(X(340));
          Ji();
        }
        return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
      case 19:
        return wt(Nt), null;
      case 4:
        return no(), null;
      case 10:
        return Aa(t.type._context), null;
      case 22:
      case 23:
        return du(), null;
      case 24:
        return null;
      default:
        return null;
    }
  }
  var Tl = !1, Qt = !1, Td = typeof WeakSet == "function" ? WeakSet : Set, Ge = null;
  function io(e, t) {
    var n = e.ref;
    if (n !== null) if (typeof n == "function") try {
      n(null);
    } catch (r) {
      xt(e, t, r);
    }
    else n.current = null;
  }
  function eu(e, t, n) {
    try {
      n();
    } catch (r) {
      xt(e, t, r);
    }
  }
  var Nc = !1;
  function Ad(e, t) {
    if (da = Nn, e = es(), ia(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 l = r.anchorOffset, h = r.focusNode;
          r = r.focusOffset;
          try {
            n.nodeType, h.nodeType;
          } catch {
            n = null;
            break e;
          }
          var O = 0, Y = -1, $ = -1, he = 0, Se = 0, xe = e, Ce = null;
          t: for (; ; ) {
            for (var Le; xe !== n || l !== 0 && xe.nodeType !== 3 || (Y = O + l), xe !== h || r !== 0 && xe.nodeType !== 3 || ($ = O + r), xe.nodeType === 3 && (O += xe.nodeValue.length), (Le = xe.firstChild) !== null; )
              Ce = xe, xe = Le;
            for (; ; ) {
              if (xe === e) break t;
              if (Ce === n && ++he === l && (Y = O), Ce === h && ++Se === r && ($ = O), (Le = xe.nextSibling) !== null) break;
              xe = Ce, Ce = xe.parentNode;
            }
            xe = Le;
          }
          n = Y === -1 || $ === -1 ? null : { start: Y, end: $ };
        } else n = null;
      }
      n = n || { start: 0, end: 0 };
    } else n = null;
    for (ha = { focusedElem: e, selectionRange: n }, Nn = !1, Ge = t; Ge !== null; ) if (t = Ge, e = t.child, (t.subtreeFlags & 1028) !== 0 && e !== null) e.return = t, Ge = e;
    else for (; Ge !== null; ) {
      t = Ge;
      try {
        var ze = t.alternate;
        if ((t.flags & 1024) !== 0) switch (t.tag) {
          case 0:
          case 11:
          case 15:
            break;
          case 1:
            if (ze !== null) {
              var Be = ze.memoizedProps, Tt = ze.memoizedState, oe = t.stateNode, te = oe.getSnapshotBeforeUpdate(t.elementType === t.type ? Be : Dn(t.type, Be), Tt);
              oe.__reactInternalSnapshotBeforeUpdate = te;
            }
            break;
          case 3:
            var ce = t.stateNode.containerInfo;
            ce.nodeType === 1 ? ce.textContent = "" : ce.nodeType === 9 && ce.documentElement && ce.removeChild(ce.documentElement);
            break;
          case 5:
          case 6:
          case 4:
          case 17:
            break;
          default:
            throw Error(X(163));
        }
      } catch (_e) {
        xt(t, t.return, _e);
      }
      if (e = t.sibling, e !== null) {
        e.return = t.return, Ge = e;
        break;
      }
      Ge = t.return;
    }
    return ze = Nc, Nc = !1, ze;
  }
  function qo(e, t, n) {
    var r = t.updateQueue;
    if (r = r !== null ? r.lastEffect : null, r !== null) {
      var l = r = r.next;
      do {
        if ((l.tag & e) === e) {
          var h = l.destroy;
          l.destroy = void 0, h !== void 0 && eu(t, n, h);
        }
        l = l.next;
      } while (l !== r);
    }
  }
  function Al(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 tu(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 Ec(e) {
    var t = e.alternate;
    t !== null && (e.alternate = null, Ec(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && (delete t[ar], delete t[To], delete t[ga], delete t[sd], delete t[cd])), 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 xc(e) {
    return e.tag === 5 || e.tag === 3 || e.tag === 4;
  }
  function kc(e) {
    e: for (; ; ) {
      for (; e.sibling === null; ) {
        if (e.return === null || xc(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 nu(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 = il));
    else if (r !== 4 && (e = e.child, e !== null)) for (nu(e, t, n), e = e.sibling; e !== null; ) nu(e, t, n), e = e.sibling;
  }
  function ru(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 (ru(e, t, n), e = e.sibling; e !== null; ) ru(e, t, n), e = e.sibling;
  }
  var jt = null, Un = !1;
  function Ur(e, t, n) {
    for (n = n.child; n !== null; ) Tc(e, t, n), n = n.sibling;
  }
  function Tc(e, t, n) {
    if (Zt && typeof Zt.onCommitFiberUnmount == "function") try {
      Zt.onCommitFiberUnmount(Cn, n);
    } catch {
    }
    switch (n.tag) {
      case 5:
        Qt || io(n, t);
      case 6:
        var r = jt, l = Un;
        jt = null, Ur(e, t, n), jt = r, Un = l, jt !== null && (Un ? (e = jt, n = n.stateNode, e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n)) : jt.removeChild(n.stateNode));
        break;
      case 18:
        jt !== null && (Un ? (e = jt, n = n.stateNode, e.nodeType === 8 ? ma(e.parentNode, n) : e.nodeType === 1 && ma(e, n), ir(e)) : ma(jt, n.stateNode));
        break;
      case 4:
        r = jt, l = Un, jt = n.stateNode.containerInfo, Un = !0, Ur(e, t, n), jt = r, Un = l;
        break;
      case 0:
      case 11:
      case 14:
      case 15:
        if (!Qt && (r = n.updateQueue, r !== null && (r = r.lastEffect, r !== null))) {
          l = r = r.next;
          do {
            var h = l, O = h.destroy;
            h = h.tag, O !== void 0 && ((h & 2) !== 0 || (h & 4) !== 0) && eu(n, t, O), l = l.next;
          } while (l !== r);
        }
        Ur(e, t, n);
        break;
      case 1:
        if (!Qt && (io(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function")) try {
          r.props = n.memoizedProps, r.state = n.memoizedState, r.componentWillUnmount();
        } catch (Y) {
          xt(n, t, Y);
        }
        Ur(e, t, n);
        break;
      case 21:
        Ur(e, t, n);
        break;
      case 22:
        n.mode & 1 ? (Qt = (r = Qt) || n.memoizedState !== null, Ur(e, t, n), Qt = r) : Ur(e, t, n);
        break;
      default:
        Ur(e, t, n);
    }
  }
  function Ac(e) {
    var t = e.updateQueue;
    if (t !== null) {
      e.updateQueue = null;
      var n = e.stateNode;
      n === null && (n = e.stateNode = new Td()), t.forEach(function(r) {
        var l = zd.bind(null, e, r);
        n.has(r) || (n.add(r), r.then(l, l));
      });
    }
  }
  function Vn(e, t) {
    var n = t.deletions;
    if (n !== null) for (var r = 0; r < n.length; r++) {
      var l = n[r];
      try {
        var h = e, O = t, Y = O;
        e: for (; Y !== null; ) {
          switch (Y.tag) {
            case 5:
              jt = Y.stateNode, Un = !1;
              break e;
            case 3:
              jt = Y.stateNode.containerInfo, Un = !0;
              break e;
            case 4:
              jt = Y.stateNode.containerInfo, Un = !0;
              break e;
          }
          Y = Y.return;
        }
        if (jt === null) throw Error(X(160));
        Tc(h, O, l), jt = null, Un = !1;
        var $ = l.alternate;
        $ !== null && ($.return = null), l.return = null;
      } catch (he) {
        xt(l, t, he);
      }
    }
    if (t.subtreeFlags & 12854) for (t = t.child; t !== null; ) _c(t, e), t = t.sibling;
  }
  function _c(e, t) {
    var n = e.alternate, r = e.flags;
    switch (e.tag) {
      case 0:
      case 11:
      case 14:
      case 15:
        if (Vn(t, e), cr(e), r & 4) {
          try {
            qo(3, e, e.return), Al(3, e);
          } catch (Be) {
            xt(e, e.return, Be);
          }
          try {
            qo(5, e, e.return);
          } catch (Be) {
            xt(e, e.return, Be);
          }
        }
        break;
      case 1:
        Vn(t, e), cr(e), r & 512 && n !== null && io(n, n.return);
        break;
      case 5:
        if (Vn(t, e), cr(e), r & 512 && n !== null && io(n, n.return), e.flags & 32) {
          var l = e.stateNode;
          try {
            St(l, "");
          } catch (Be) {
            xt(e, e.return, Be);
          }
        }
        if (r & 4 && (l = e.stateNode, l != null)) {
          var h = e.memoizedProps, O = n !== null ? n.memoizedProps : h, Y = e.type, $ = e.updateQueue;
          if (e.updateQueue = null, $ !== null) try {
            Y === "input" && h.type === "radio" && h.name != null && Pe(l, h), Me(Y, O);
            var he = Me(Y, h);
            for (O = 0; O < $.length; O += 2) {
              var Se = $[O], xe = $[O + 1];
              Se === "style" ? ye(l, xe) : Se === "dangerouslySetInnerHTML" ? tn(l, xe) : Se === "children" ? St(l, xe) : a(l, Se, xe, he);
            }
            switch (Y) {
              case "input":
                $e(l, h);
                break;
              case "textarea":
                bt(l, h);
                break;
              case "select":
                var Ce = l._wrapperState.wasMultiple;
                l._wrapperState.wasMultiple = !!h.multiple;
                var Le = h.value;
                Le != null ? At(l, !!h.multiple, Le, !1) : Ce !== !!h.multiple && (h.defaultValue != null ? At(
                  l,
                  !!h.multiple,
                  h.defaultValue,
                  !0
                ) : At(l, !!h.multiple, h.multiple ? [] : "", !1));
            }
            l[To] = h;
          } catch (Be) {
            xt(e, e.return, Be);
          }
        }
        break;
      case 6:
        if (Vn(t, e), cr(e), r & 4) {
          if (e.stateNode === null) throw Error(X(162));
          l = e.stateNode, h = e.memoizedProps;
          try {
            l.nodeValue = h;
          } catch (Be) {
            xt(e, e.return, Be);
          }
        }
        break;
      case 3:
        if (Vn(t, e), cr(e), r & 4 && n !== null && n.memoizedState.isDehydrated) try {
          ir(t.containerInfo);
        } catch (Be) {
          xt(e, e.return, Be);
        }
        break;
      case 4:
        Vn(t, e), cr(e);
        break;
      case 13:
        Vn(t, e), cr(e), l = e.child, l.flags & 8192 && (h = l.memoizedState !== null, l.stateNode.isHidden = h, !h || l.alternate !== null && l.alternate.memoizedState !== null || (lu = ht())), r & 4 && Ac(e);
        break;
      case 22:
        if (Se = n !== null && n.memoizedState !== null, e.mode & 1 ? (Qt = (he = Qt) || Se, Vn(t, e), Qt = he) : Vn(t, e), cr(e), r & 8192) {
          if (he = e.memoizedState !== null, (e.stateNode.isHidden = he) && !Se && (e.mode & 1) !== 0) for (Ge = e, Se = e.child; Se !== null; ) {
            for (xe = Ge = Se; Ge !== null; ) {
              switch (Ce = Ge, Le = Ce.child, Ce.tag) {
                case 0:
                case 11:
                case 14:
                case 15:
                  qo(4, Ce, Ce.return);
                  break;
                case 1:
                  io(Ce, Ce.return);
                  var ze = Ce.stateNode;
                  if (typeof ze.componentWillUnmount == "function") {
                    r = Ce, n = Ce.return;
                    try {
                      t = r, ze.props = t.memoizedProps, ze.state = t.memoizedState, ze.componentWillUnmount();
                    } catch (Be) {
                      xt(r, n, Be);
                    }
                  }
                  break;
                case 5:
                  io(Ce, Ce.return);
                  break;
                case 22:
                  if (Ce.memoizedState !== null) {
                    Oc(xe);
                    continue;
                  }
              }
              Le !== null ? (Le.return = Ce, Ge = Le) : Oc(xe);
            }
            Se = Se.sibling;
          }
          e: for (Se = null, xe = e; ; ) {
            if (xe.tag === 5) {
              if (Se === null) {
                Se = xe;
                try {
                  l = xe.stateNode, he ? (h = l.style, typeof h.setProperty == "function" ? h.setProperty("display", "none", "important") : h.display = "none") : (Y = xe.stateNode, $ = xe.memoizedProps.style, O = $ != null && $.hasOwnProperty("display") ? $.display : null, Y.style.display = ee("display", O));
                } catch (Be) {
                  xt(e, e.return, Be);
                }
              }
            } else if (xe.tag === 6) {
              if (Se === null) try {
                xe.stateNode.nodeValue = he ? "" : xe.memoizedProps;
              } catch (Be) {
                xt(e, e.return, Be);
              }
            } else if ((xe.tag !== 22 && xe.tag !== 23 || xe.memoizedState === null || xe === e) && xe.child !== null) {
              xe.child.return = xe, xe = xe.child;
              continue;
            }
            if (xe === e) break e;
            for (; xe.sibling === null; ) {
              if (xe.return === null || xe.return === e) break e;
              Se === xe && (Se = null), xe = xe.return;
            }
            Se === xe && (Se = null), xe.sibling.return = xe.return, xe = xe.sibling;
          }
        }
        break;
      case 19:
        Vn(t, e), cr(e), r & 4 && Ac(e);
        break;
      case 21:
        break;
      default:
        Vn(
          t,
          e
        ), cr(e);
    }
  }
  function cr(e) {
    var t = e.flags;
    if (t & 2) {
      try {
        e: {
          for (var n = e.return; n !== null; ) {
            if (xc(n)) {
              var r = n;
              break e;
            }
            n = n.return;
          }
          throw Error(X(160));
        }
        switch (r.tag) {
          case 5:
            var l = r.stateNode;
            r.flags & 32 && (St(l, ""), r.flags &= -33);
            var h = kc(e);
            ru(e, h, l);
            break;
          case 3:
          case 4:
            var O = r.stateNode.containerInfo, Y = kc(e);
            nu(e, Y, O);
            break;
          default:
            throw Error(X(161));
        }
      } catch ($) {
        xt(e, e.return, $);
      }
      e.flags &= -3;
    }
    t & 4096 && (e.flags &= -4097);
  }
  function _d(e, t, n) {
    Ge = e, Rc(e);
  }
  function Rc(e, t, n) {
    for (var r = (e.mode & 1) !== 0; Ge !== null; ) {
      var l = Ge, h = l.child;
      if (l.tag === 22 && r) {
        var O = l.memoizedState !== null || Tl;
        if (!O) {
          var Y = l.alternate, $ = Y !== null && Y.memoizedState !== null || Qt;
          Y = Tl;
          var he = Qt;
          if (Tl = O, (Qt = $) && !he) for (Ge = l; Ge !== null; ) O = Ge, $ = O.child, O.tag === 22 && O.memoizedState !== null ? Pc(l) : $ !== null ? ($.return = O, Ge = $) : Pc(l);
          for (; h !== null; ) Ge = h, Rc(h), h = h.sibling;
          Ge = l, Tl = Y, Qt = he;
        }
        Ic(e);
      } else (l.subtreeFlags & 8772) !== 0 && h !== null ? (h.return = l, Ge = h) : Ic(e);
    }
  }
  function Ic(e) {
    for (; Ge !== null; ) {
      var t = Ge;
      if ((t.flags & 8772) !== 0) {
        var n = t.alternate;
        try {
          if ((t.flags & 8772) !== 0) switch (t.tag) {
            case 0:
            case 11:
            case 15:
              Qt || Al(5, t);
              break;
            case 1:
              var r = t.stateNode;
              if (t.flags & 4 && !Qt) if (n === null) r.componentDidMount();
              else {
                var l = t.elementType === t.type ? n.memoizedProps : Dn(t.type, n.memoizedProps);
                r.componentDidUpdate(l, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate);
              }
              var h = t.updateQueue;
              h !== null && Os(t, h, r);
              break;
            case 3:
              var O = t.updateQueue;
              if (O !== null) {
                if (n = null, t.child !== null) switch (t.child.tag) {
                  case 5:
                    n = t.child.stateNode;
                    break;
                  case 1:
                    n = t.child.stateNode;
                }
                Os(t, O, n);
              }
              break;
            case 5:
              var Y = t.stateNode;
              if (n === null && t.flags & 4) {
                n = Y;
                var $ = t.memoizedProps;
                switch (t.type) {
                  case "button":
                  case "input":
                  case "select":
                  case "textarea":
                    $.autoFocus && n.focus();
                    break;
                  case "img":
                    $.src && (n.src = $.src);
                }
              }
              break;
            case 6:
              break;
            case 4:
              break;
            case 12:
              break;
            case 13:
              if (t.memoizedState === null) {
                var he = t.alternate;
                if (he !== null) {
                  var Se = he.memoizedState;
                  if (Se !== null) {
                    var xe = Se.dehydrated;
                    xe !== null && ir(xe);
                  }
                }
              }
              break;
            case 19:
            case 17:
            case 21:
            case 22:
            case 23:
            case 25:
              break;
            default:
              throw Error(X(163));
          }
          Qt || t.flags & 512 && tu(t);
        } catch (Ce) {
          xt(t, t.return, Ce);
        }
      }
      if (t === e) {
        Ge = null;
        break;
      }
      if (n = t.sibling, n !== null) {
        n.return = t.return, Ge = n;
        break;
      }
      Ge = t.return;
    }
  }
  function Oc(e) {
    for (; Ge !== null; ) {
      var t = Ge;
      if (t === e) {
        Ge = null;
        break;
      }
      var n = t.sibling;
      if (n !== null) {
        n.return = t.return, Ge = n;
        break;
      }
      Ge = t.return;
    }
  }
  function Pc(e) {
    for (; Ge !== null; ) {
      var t = Ge;
      try {
        switch (t.tag) {
          case 0:
          case 11:
          case 15:
            var n = t.return;
            try {
              Al(4, t);
            } catch ($) {
              xt(t, n, $);
            }
            break;
          case 1:
            var r = t.stateNode;
            if (typeof r.componentDidMount == "function") {
              var l = t.return;
              try {
                r.componentDidMount();
              } catch ($) {
                xt(t, l, $);
              }
            }
            var h = t.return;
            try {
              tu(t);
            } catch ($) {
              xt(t, h, $);
            }
            break;
          case 5:
            var O = t.return;
            try {
              tu(t);
            } catch ($) {
              xt(t, O, $);
            }
        }
      } catch ($) {
        xt(t, t.return, $);
      }
      if (t === e) {
        Ge = null;
        break;
      }
      var Y = t.sibling;
      if (Y !== null) {
        Y.return = t.return, Ge = Y;
        break;
      }
      Ge = t.return;
    }
  }
  var Rd = Math.ceil, _l = d.ReactCurrentDispatcher, iu = d.ReactCurrentOwner, Ln = d.ReactCurrentBatchConfig, at = 0, Mt = null, _t = null, Ht = 0, kn = 0, oo = jr(0), Pt = 0, Bo = null, Ni = 0, Rl = 0, ou = 0, Fo = null, pn = null, lu = 0, lo = 1 / 0, _r = null, Il = !1, au = null, Vr = null, Ol = !1, Xr = null, Pl = 0, jo = 0, uu = null, Ll = -1, Ml = 0;
  function en() {
    return (at & 6) !== 0 ? ht() : Ll !== -1 ? Ll : Ll = ht();
  }
  function Yr(e) {
    return (e.mode & 1) === 0 ? 1 : (at & 2) !== 0 && Ht !== 0 ? Ht & -Ht : dd.transition !== null ? (Ml === 0 && (Ml = U()), Ml) : (e = Ie, e !== 0 || (e = window.event, e = e === void 0 ? 16 : co(e.type)), e);
  }
  function Xn(e, t, n, r) {
    if (50 < jo) throw jo = 0, uu = null, Error(X(185));
    re(e, n, r), ((at & 2) === 0 || e !== Mt) && (e === Mt && ((at & 2) === 0 && (Rl |= n), Pt === 4 && Qr(e, Ht)), vn(e, r), n === 1 && at === 0 && (t.mode & 1) === 0 && (lo = ht() + 500, ul && br()));
  }
  function vn(e, t) {
    var n = e.callbackNode;
    k(e, t);
    var r = tr(e, e === Mt ? Ht : 0);
    if (r === 0) n !== null && ri(n), e.callbackNode = null, e.callbackPriority = 0;
    else if (t = r & -r, e.callbackPriority !== t) {
      if (n != null && ri(n), t === 1) e.tag === 0 ? fd(Mc.bind(null, e)) : ws(Mc.bind(null, e)), ad(function() {
        (at & 6) === 0 && br();
      }), n = null;
      else {
        switch (De(r)) {
          case 1:
            n = Pr;
            break;
          case 4:
            n = Lr;
            break;
          case 16:
            n = $n;
            break;
          case 536870912:
            n = qn;
            break;
          default:
            n = $n;
        }
        n = bc(n, Lc.bind(null, e));
      }
      e.callbackPriority = t, e.callbackNode = n;
    }
  }
  function Lc(e, t) {
    if (Ll = -1, Ml = 0, (at & 6) !== 0) throw Error(X(327));
    var n = e.callbackNode;
    if (ao() && e.callbackNode !== n) return null;
    var r = tr(e, e === Mt ? Ht : 0);
    if (r === 0) return null;
    if ((r & 30) !== 0 || (r & e.expiredLanes) !== 0 || t) t = Gl(e, r);
    else {
      t = r;
      var l = at;
      at |= 2;
      var h = zc();
      (Mt !== e || Ht !== t) && (_r = null, lo = ht() + 500, xi(e, t));
      do
        try {
          Pd();
          break;
        } catch (Y) {
          Gc(e, Y);
        }
      while (!0);
      Ta(), _l.current = h, at = l, _t !== null ? t = 0 : (Mt = null, Ht = 0, t = Pt);
    }
    if (t !== 0) {
      if (t === 2 && (l = G(e), l !== 0 && (r = l, t = su(e, l))), t === 1) throw n = Bo, xi(e, 0), Qr(e, r), vn(e, ht()), n;
      if (t === 6) Qr(e, r);
      else {
        if (l = e.current.alternate, (r & 30) === 0 && !Id(l) && (t = Gl(e, r), t === 2 && (h = G(e), h !== 0 && (r = h, t = su(e, h))), t === 1)) throw n = Bo, xi(e, 0), Qr(e, r), vn(e, ht()), n;
        switch (e.finishedWork = l, e.finishedLanes = r, t) {
          case 0:
          case 1:
            throw Error(X(345));
          case 2:
            ki(e, pn, _r);
            break;
          case 3:
            if (Qr(e, r), (r & 130023424) === r && (t = lu + 500 - ht(), 10 < t)) {
              if (tr(e, 0) !== 0) break;
              if (l = e.suspendedLanes, (l & r) !== r) {
                en(), e.pingedLanes |= e.suspendedLanes & l;
                break;
              }
              e.timeoutHandle = va(ki.bind(null, e, pn, _r), t);
              break;
            }
            ki(e, pn, _r);
            break;
          case 4:
            if (Qr(e, r), (r & 4194240) === r) break;
            for (t = e.eventTimes, l = -1; 0 < r; ) {
              var O = 31 - It(r);
              h = 1 << O, O = t[O], O > l && (l = O), r &= ~h;
            }
            if (r = l, r = ht() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Rd(r / 1960)) - r, 10 < r) {
              e.timeoutHandle = va(ki.bind(null, e, pn, _r), r);
              break;
            }
            ki(e, pn, _r);
            break;
          case 5:
            ki(e, pn, _r);
            break;
          default:
            throw Error(X(329));
        }
      }
    }
    return vn(e, ht()), e.callbackNode === n ? Lc.bind(null, e) : null;
  }
  function su(e, t) {
    var n = Fo;
    return e.current.memoizedState.isDehydrated && (xi(e, t).flags |= 256), e = Gl(e, t), e !== 2 && (t = pn, pn = n, t !== null && cu(t)), e;
  }
  function cu(e) {
    pn === null ? pn = e : pn.push.apply(pn, e);
  }
  function Id(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 l = n[r], h = l.getSnapshot;
          l = l.value;
          try {
            if (!bn(h(), l)) 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 Qr(e, t) {
    for (t &= ~ou, t &= ~Rl, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) {
      var n = 31 - It(t), r = 1 << n;
      e[n] = -1, t &= ~r;
    }
  }
  function Mc(e) {
    if ((at & 6) !== 0) throw Error(X(327));
    ao();
    var t = tr(e, 0);
    if ((t & 1) === 0) return vn(e, ht()), null;
    var n = Gl(e, t);
    if (e.tag !== 0 && n === 2) {
      var r = G(e);
      r !== 0 && (t = r, n = su(e, r));
    }
    if (n === 1) throw n = Bo, xi(e, 0), Qr(e, t), vn(e, ht()), n;
    if (n === 6) throw Error(X(345));
    return e.finishedWork = e.current.alternate, e.finishedLanes = t, ki(e, pn, _r), vn(e, ht()), null;
  }
  function fu(e, t) {
    var n = at;
    at |= 1;
    try {
      return e(t);
    } finally {
      at = n, at === 0 && (lo = ht() + 500, ul && br());
    }
  }
  function Ei(e) {
    Xr !== null && Xr.tag === 0 && (at & 6) === 0 && ao();
    var t = at;
    at |= 1;
    var n = Ln.transition, r = Ie;
    try {
      if (Ln.transition = null, Ie = 1, e) return e();
    } finally {
      Ie = r, Ln.transition = n, at = t, (at & 6) === 0 && br();
    }
  }
  function du() {
    kn = oo.current, wt(oo);
  }
  function xi(e, t) {
    e.finishedWork = null, e.finishedLanes = 0;
    var n = e.timeoutHandle;
    if (n !== -1 && (e.timeoutHandle = -1, ld(n)), _t !== null) for (n = _t.return; n !== null; ) {
      var r = n;
      switch (Sa(r), r.tag) {
        case 1:
          r = r.type.childContextTypes, r != null && ll();
          break;
        case 3:
          no(), wt(fn), wt(Vt), Ma();
          break;
        case 5:
          Pa(r);
          break;
        case 4:
          no();
          break;
        case 13:
          wt(Nt);
          break;
        case 19:
          wt(Nt);
          break;
        case 10:
          Aa(r.type._context);
          break;
        case 22:
        case 23:
          du();
      }
      n = n.return;
    }
    if (Mt = e, _t = e = Kr(e.current, null), Ht = kn = t, Pt = 0, Bo = null, ou = Rl = Ni = 0, pn = Fo = null, wi !== null) {
      for (t = 0; t < wi.length; t++) if (n = wi[t], r = n.interleaved, r !== null) {
        n.interleaved = null;
        var l = r.next, h = n.pending;
        if (h !== null) {
          var O = h.next;
          h.next = l, r.next = O;
        }
        n.pending = r;
      }
      wi = null;
    }
    return e;
  }
  function Gc(e, t) {
    do {
      var n = _t;
      try {
        if (Ta(), yl.current = Nl, wl) {
          for (var r = Et.memoizedState; r !== null; ) {
            var l = r.queue;
            l !== null && (l.pending = null), r = r.next;
          }
          wl = !1;
        }
        if (Si = 0, Lt = Ot = Et = null, Po = !1, Lo = 0, iu.current = null, n === null || n.return === null) {
          Pt = 1, Bo = t, _t = null;
          break;
        }
        e: {
          var h = e, O = n.return, Y = n, $ = t;
          if (t = Ht, Y.flags |= 32768, $ !== null && typeof $ == "object" && typeof $.then == "function") {
            var he = $, Se = Y, xe = Se.tag;
            if ((Se.mode & 1) === 0 && (xe === 0 || xe === 11 || xe === 15)) {
              var Ce = Se.alternate;
              Ce ? (Se.updateQueue = Ce.updateQueue, Se.memoizedState = Ce.memoizedState, Se.lanes = Ce.lanes) : (Se.updateQueue = null, Se.memoizedState = null);
            }
            var Le = lc(O);
            if (Le !== null) {
              Le.flags &= -257, ac(Le, O, Y, h, t), Le.mode & 1 && oc(h, he, t), t = Le, $ = he;
              var ze = t.updateQueue;
              if (ze === null) {
                var Be = /* @__PURE__ */ new Set();
                Be.add($), t.updateQueue = Be;
              } else ze.add($);
              break e;
            } else {
              if ((t & 1) === 0) {
                oc(h, he, t), hu();
                break e;
              }
              $ = Error(X(426));
            }
          } else if (Ct && Y.mode & 1) {
            var Tt = lc(O);
            if (Tt !== null) {
              (Tt.flags & 65536) === 0 && (Tt.flags |= 256), ac(Tt, O, Y, h, t), xa(ro($, Y));
              break e;
            }
          }
          h = $ = ro($, Y), Pt !== 4 && (Pt = 2), Fo === null ? Fo = [h] : Fo.push(h), h = O;
          do {
            switch (h.tag) {
              case 3:
                h.flags |= 65536, t &= -t, h.lanes |= t;
                var oe = rc(h, $, t);
                Is(h, oe);
                break e;
              case 1:
                Y = $;
                var te = h.type, ce = h.stateNode;
                if ((h.flags & 128) === 0 && (typeof te.getDerivedStateFromError == "function" || ce !== null && typeof ce.componentDidCatch == "function" && (Vr === null || !Vr.has(ce)))) {
                  h.flags |= 65536, t &= -t, h.lanes |= t;
                  var _e = ic(h, Y, t);
                  Is(h, _e);
                  break e;
                }
            }
            h = h.return;
          } while (h !== null);
        }
        Bc(n);
      } catch (Fe) {
        t = Fe, _t === n && n !== null && (_t = n = n.return);
        continue;
      }
      break;
    } while (!0);
  }
  function zc() {
    var e = _l.current;
    return _l.current = Nl, e === null ? Nl : e;
  }
  function hu() {
    (Pt === 0 || Pt === 3 || Pt === 2) && (Pt = 4), Mt === null || (Ni & 268435455) === 0 && (Rl & 268435455) === 0 || Qr(Mt, Ht);
  }
  function Gl(e, t) {
    var n = at;
    at |= 2;
    var r = zc();
    (Mt !== e || Ht !== t) && (_r = null, xi(e, t));
    do
      try {
        Od();
        break;
      } catch (l) {
        Gc(e, l);
      }
    while (!0);
    if (Ta(), at = n, _l.current = r, _t !== null) throw Error(X(261));
    return Mt = null, Ht = 0, Pt;
  }
  function Od() {
    for (; _t !== null; ) qc(_t);
  }
  function Pd() {
    for (; _t !== null && !Oi(); ) qc(_t);
  }
  function qc(e) {
    var t = Hc(e.alternate, e, kn);
    e.memoizedProps = e.pendingProps, t === null ? Bc(e) : _t = t, iu.current = null;
  }
  function Bc(e) {
    var t = e;
    do {
      var n = t.alternate;
      if (e = t.return, (t.flags & 32768) === 0) {
        if (n = xd(n, t, kn), n !== null) {
          _t = n;
          return;
        }
      } else {
        if (n = kd(n, t), n !== null) {
          n.flags &= 32767, _t = n;
          return;
        }
        if (e !== null) e.flags |= 32768, e.subtreeFlags = 0, e.deletions = null;
        else {
          Pt = 6, _t = null;
          return;
        }
      }
      if (t = t.sibling, t !== null) {
        _t = t;
        return;
      }
      _t = t = e;
    } while (t !== null);
    Pt === 0 && (Pt = 5);
  }
  function ki(e, t, n) {
    var r = Ie, l = Ln.transition;
    try {
      Ln.transition = null, Ie = 1, Ld(e, t, n, r);
    } finally {
      Ln.transition = l, Ie = r;
    }
    return null;
  }
  function Ld(e, t, n, r) {
    do
      ao();
    while (Xr !== null);
    if ((at & 6) !== 0) throw Error(X(327));
    n = e.finishedWork;
    var l = e.finishedLanes;
    if (n === null) return null;
    if (e.finishedWork = null, e.finishedLanes = 0, n === e.current) throw Error(X(177));
    e.callbackNode = null, e.callbackPriority = 0;
    var h = n.lanes | n.childLanes;
    if (me(e, h), e === Mt && (_t = Mt = null, Ht = 0), (n.subtreeFlags & 2064) === 0 && (n.flags & 2064) === 0 || Ol || (Ol = !0, bc($n, function() {
      return ao(), null;
    })), h = (n.flags & 15990) !== 0, (n.subtreeFlags & 15990) !== 0 || h) {
      h = Ln.transition, Ln.transition = null;
      var O = Ie;
      Ie = 1;
      var Y = at;
      at |= 4, iu.current = null, Ad(e, n), _c(n, e), $f(ha), Nn = !!da, ha = da = null, e.current = n, _d(n), Pi(), at = Y, Ie = O, Ln.transition = h;
    } else e.current = n;
    if (Ol && (Ol = !1, Xr = e, Pl = l), h = e.pendingLanes, h === 0 && (Vr = null), vr(n.stateNode), vn(e, ht()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) l = t[n], r(l.value, { componentStack: l.stack, digest: l.digest });
    if (Il) throw Il = !1, e = au, au = null, e;
    return (Pl & 1) !== 0 && e.tag !== 0 && ao(), h = e.pendingLanes, (h & 1) !== 0 ? e === uu ? jo++ : (jo = 0, uu = e) : jo = 0, br(), null;
  }
  function ao() {
    if (Xr !== null) {
      var e = De(Pl), t = Ln.transition, n = Ie;
      try {
        if (Ln.transition = null, Ie = 16 > e ? 16 : e, Xr === null) var r = !1;
        else {
          if (e = Xr, Xr = null, Pl = 0, (at & 6) !== 0) throw Error(X(331));
          var l = at;
          for (at |= 4, Ge = e.current; Ge !== null; ) {
            var h = Ge, O = h.child;
            if ((Ge.flags & 16) !== 0) {
              var Y = h.deletions;
              if (Y !== null) {
                for (var $ = 0; $ < Y.length; $++) {
                  var he = Y[$];
                  for (Ge = he; Ge !== null; ) {
                    var Se = Ge;
                    switch (Se.tag) {
                      case 0:
                      case 11:
                      case 15:
                        qo(8, Se, h);
                    }
                    var xe = Se.child;
                    if (xe !== null) xe.return = Se, Ge = xe;
                    else for (; Ge !== null; ) {
                      Se = Ge;
                      var Ce = Se.sibling, Le = Se.return;
                      if (Ec(Se), Se === he) {
                        Ge = null;
                        break;
                      }
                      if (Ce !== null) {
                        Ce.return = Le, Ge = Ce;
                        break;
                      }
                      Ge = Le;
                    }
                  }
                }
                var ze = h.alternate;
                if (ze !== null) {
                  var Be = ze.child;
                  if (Be !== null) {
                    ze.child = null;
                    do {
                      var Tt = Be.sibling;
                      Be.sibling = null, Be = Tt;
                    } while (Be !== null);
                  }
                }
                Ge = h;
              }
            }
            if ((h.subtreeFlags & 2064) !== 0 && O !== null) O.return = h, Ge = O;
            else e: for (; Ge !== null; ) {
              if (h = Ge, (h.flags & 2048) !== 0) switch (h.tag) {
                case 0:
                case 11:
                case 15:
                  qo(9, h, h.return);
              }
              var oe = h.sibling;
              if (oe !== null) {
                oe.return = h.return, Ge = oe;
                break e;
              }
              Ge = h.return;
            }
          }
          var te = e.current;
          for (Ge = te; Ge !== null; ) {
            O = Ge;
            var ce = O.child;
            if ((O.subtreeFlags & 2064) !== 0 && ce !== null) ce.return = O, Ge = ce;
            else e: for (O = te; Ge !== null; ) {
              if (Y = Ge, (Y.flags & 2048) !== 0) try {
                switch (Y.tag) {
                  case 0:
                  case 11:
                  case 15:
                    Al(9, Y);
                }
              } catch (Fe) {
                xt(Y, Y.return, Fe);
              }
              if (Y === O) {
                Ge = null;
                break e;
              }
              var _e = Y.sibling;
              if (_e !== null) {
                _e.return = Y.return, Ge = _e;
                break e;
              }
              Ge = Y.return;
            }
          }
          if (at = l, br(), Zt && typeof Zt.onPostCommitFiberRoot == "function") try {
            Zt.onPostCommitFiberRoot(Cn, e);
          } catch {
          }
          r = !0;
        }
        return r;
      } finally {
        Ie = n, Ln.transition = t;
      }
    }
    return !1;
  }
  function Fc(e, t, n) {
    t = ro(n, t), t = rc(e, t, 1), e = Dr(e, t, 1), t = en(), e !== null && (re(e, 1, t), vn(e, t));
  }
  function xt(e, t, n) {
    if (e.tag === 3) Fc(e, e, n);
    else for (; t !== null; ) {
      if (t.tag === 3) {
        Fc(t, e, n);
        break;
      } else if (t.tag === 1) {
        var r = t.stateNode;
        if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Vr === null || !Vr.has(r))) {
          e = ro(n, e), e = ic(t, e, 1), t = Dr(t, e, 1), e = en(), t !== null && (re(t, 1, e), vn(t, e));
          break;
        }
      }
      t = t.return;
    }
  }
  function Md(e, t, n) {
    var r = e.pingCache;
    r !== null && r.delete(t), t = en(), e.pingedLanes |= e.suspendedLanes & n, Mt === e && (Ht & n) === n && (Pt === 4 || Pt === 3 && (Ht & 130023424) === Ht && 500 > ht() - lu ? xi(e, 0) : ou |= n), vn(e, t);
  }
  function jc(e, t) {
    t === 0 && ((e.mode & 1) === 0 ? t = 1 : (t = mr, mr <<= 1, (mr & 130023424) === 0 && (mr = 4194304)));
    var n = en();
    e = kr(e, t), e !== null && (re(e, t, n), vn(e, n));
  }
  function Gd(e) {
    var t = e.memoizedState, n = 0;
    t !== null && (n = t.retryLane), jc(e, n);
  }
  function zd(e, t) {
    var n = 0;
    switch (e.tag) {
      case 13:
        var r = e.stateNode, l = e.memoizedState;
        l !== null && (n = l.retryLane);
        break;
      case 19:
        r = e.stateNode;
        break;
      default:
        throw Error(X(314));
    }
    r !== null && r.delete(t), jc(e, n);
  }
  var Hc;
  Hc = function(e, t, n) {
    if (e !== null) if (e.memoizedProps !== t.pendingProps || fn.current) hn = !0;
    else {
      if ((e.lanes & n) === 0 && (t.flags & 128) === 0) return hn = !1, Ed(e, t, n);
      hn = (e.flags & 131072) !== 0;
    }
    else hn = !1, Ct && (t.flags & 1048576) !== 0 && Cs(t, cl, t.index);
    switch (t.lanes = 0, t.tag) {
      case 2:
        var r = t.type;
        kl(e, t), e = t.pendingProps;
        var l = Qi(t, Vt.current);
        to(t, n), l = qa(null, t, r, e, l, n);
        var h = Ba();
        return t.flags |= 1, typeof l == "object" && l !== null && typeof l.render == "function" && l.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, dn(r) ? (h = !0, al(t)) : h = !1, t.memoizedState = l.state !== null && l.state !== void 0 ? l.state : null, Ia(t), l.updater = El, t.stateNode = l, l._reactInternals = t, Da(t, r, e, n), t = Ya(null, t, r, !0, h, n)) : (t.tag = 0, Ct && h && Ca(t), $t(null, t, l, n), t = t.child), t;
      case 16:
        r = t.elementType;
        e: {
          switch (kl(e, t), e = t.pendingProps, l = r._init, r = l(r._payload), t.type = r, l = t.tag = Bd(r), e = Dn(r, e), l) {
            case 0:
              t = Xa(null, t, r, e, n);
              break e;
            case 1:
              t = hc(null, t, r, e, n);
              break e;
            case 11:
              t = uc(null, t, r, e, n);
              break e;
            case 14:
              t = sc(null, t, r, Dn(r.type, e), n);
              break e;
          }
          throw Error(X(
            306,
            r,
            ""
          ));
        }
        return t;
      case 0:
        return r = t.type, l = t.pendingProps, l = t.elementType === r ? l : Dn(r, l), Xa(e, t, r, l, n);
      case 1:
        return r = t.type, l = t.pendingProps, l = t.elementType === r ? l : Dn(r, l), hc(e, t, r, l, n);
      case 3:
        e: {
          if (pc(t), e === null) throw Error(X(387));
          r = t.pendingProps, h = t.memoizedState, l = h.element, Rs(e, t), ml(t, r, null, n);
          var O = t.memoizedState;
          if (r = O.element, h.isDehydrated) if (h = { element: r, isDehydrated: !1, cache: O.cache, pendingSuspenseBoundaries: O.pendingSuspenseBoundaries, transitions: O.transitions }, t.updateQueue.baseState = h, t.memoizedState = h, t.flags & 256) {
            l = ro(Error(X(423)), t), t = vc(e, t, r, n, l);
            break e;
          } else if (r !== l) {
            l = ro(Error(X(424)), t), t = vc(e, t, r, n, l);
            break e;
          } else for (xn = Fr(t.stateNode.containerInfo.firstChild), En = t, Ct = !0, Wn = null, n = As(t, null, r, n), t.child = n; n; ) n.flags = n.flags & -3 | 4096, n = n.sibling;
          else {
            if (Ji(), r === l) {
              t = Ar(e, t, n);
              break e;
            }
            $t(e, t, r, n);
          }
          t = t.child;
        }
        return t;
      case 5:
        return Ps(t), e === null && Ea(t), r = t.type, l = t.pendingProps, h = e !== null ? e.memoizedProps : null, O = l.children, pa(r, l) ? O = null : h !== null && pa(r, h) && (t.flags |= 32), dc(e, t), $t(e, t, O, n), t.child;
      case 6:
        return e === null && Ea(t), null;
      case 13:
        return mc(e, t, n);
      case 4:
        return Oa(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = $i(t, null, r, n) : $t(e, t, r, n), t.child;
      case 11:
        return r = t.type, l = t.pendingProps, l = t.elementType === r ? l : Dn(r, l), uc(e, t, r, l, n);
      case 7:
        return $t(e, t, t.pendingProps, n), t.child;
      case 8:
        return $t(e, t, t.pendingProps.children, n), t.child;
      case 12:
        return $t(e, t, t.pendingProps.children, n), t.child;
      case 10:
        e: {
          if (r = t.type._context, l = t.pendingProps, h = t.memoizedProps, O = l.value, gt(hl, r._currentValue), r._currentValue = O, h !== null) if (bn(h.value, O)) {
            if (h.children === l.children && !fn.current) {
              t = Ar(e, t, n);
              break e;
            }
          } else for (h = t.child, h !== null && (h.return = t); h !== null; ) {
            var Y = h.dependencies;
            if (Y !== null) {
              O = h.child;
              for (var $ = Y.firstContext; $ !== null; ) {
                if ($.context === r) {
                  if (h.tag === 1) {
                    $ = Tr(-1, n & -n), $.tag = 2;
                    var he = h.updateQueue;
                    if (he !== null) {
                      he = he.shared;
                      var Se = he.pending;
                      Se === null ? $.next = $ : ($.next = Se.next, Se.next = $), he.pending = $;
                    }
                  }
                  h.lanes |= n, $ = h.alternate, $ !== null && ($.lanes |= n), _a(
                    h.return,
                    n,
                    t
                  ), Y.lanes |= n;
                  break;
                }
                $ = $.next;
              }
            } else if (h.tag === 10) O = h.type === t.type ? null : h.child;
            else if (h.tag === 18) {
              if (O = h.return, O === null) throw Error(X(341));
              O.lanes |= n, Y = O.alternate, Y !== null && (Y.lanes |= n), _a(O, n, t), O = h.sibling;
            } else O = h.child;
            if (O !== null) O.return = h;
            else for (O = h; O !== null; ) {
              if (O === t) {
                O = null;
                break;
              }
              if (h = O.sibling, h !== null) {
                h.return = O.return, O = h;
                break;
              }
              O = O.return;
            }
            h = O;
          }
          $t(e, t, l.children, n), t = t.child;
        }
        return t;
      case 9:
        return l = t.type, r = t.pendingProps.children, to(t, n), l = On(l), r = r(l), t.flags |= 1, $t(e, t, r, n), t.child;
      case 14:
        return r = t.type, l = Dn(r, t.pendingProps), l = Dn(r.type, l), sc(e, t, r, l, n);
      case 15:
        return cc(e, t, t.type, t.pendingProps, n);
      case 17:
        return r = t.type, l = t.pendingProps, l = t.elementType === r ? l : Dn(r, l), kl(e, t), t.tag = 1, dn(r) ? (e = !0, al(t)) : e = !1, to(t, n), tc(t, r, l), Da(t, r, l, n), Ya(null, t, r, !0, e, n);
      case 19:
        return yc(e, t, n);
      case 22:
        return fc(e, t, n);
    }
    throw Error(X(156, t.tag));
  };
  function bc(e, t) {
    return pr(e, t);
  }
  function qd(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 Mn(e, t, n, r) {
    return new qd(e, t, n, r);
  }
  function pu(e) {
    return e = e.prototype, !(!e || !e.isReactComponent);
  }
  function Bd(e) {
    if (typeof e == "function") return pu(e) ? 1 : 0;
    if (e != null) {
      if (e = e.$$typeof, e === P) return 11;
      if (e === V) return 14;
    }
    return 2;
  }
  function Kr(e, t) {
    var n = e.alternate;
    return n === null ? (n = Mn(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 zl(e, t, n, r, l, h) {
    var O = 2;
    if (r = e, typeof e == "function") pu(e) && (O = 1);
    else if (typeof e == "string") O = 5;
    else e: switch (e) {
      case p:
        return Ti(n.children, l, h, t);
      case w:
        O = 8, l |= 8;
        break;
      case C:
        return e = Mn(12, n, t, l | 2), e.elementType = C, e.lanes = h, e;
      case z:
        return e = Mn(13, n, t, l), e.elementType = z, e.lanes = h, e;
      case q:
        return e = Mn(19, n, t, l), e.elementType = q, e.lanes = h, e;
      case B:
        return ql(n, l, h, t);
      default:
        if (typeof e == "object" && e !== null) switch (e.$$typeof) {
          case N:
            O = 10;
            break e;
          case R:
            O = 9;
            break e;
          case P:
            O = 11;
            break e;
          case V:
            O = 14;
            break e;
          case D:
            O = 16, r = null;
            break e;
        }
        throw Error(X(130, e == null ? e : typeof e, ""));
    }
    return t = Mn(O, n, t, l), t.elementType = e, t.type = r, t.lanes = h, t;
  }
  function Ti(e, t, n, r) {
    return e = Mn(7, e, r, t), e.lanes = n, e;
  }
  function ql(e, t, n, r) {
    return e = Mn(22, e, r, t), e.elementType = B, e.lanes = n, e.stateNode = { isHidden: !1 }, e;
  }
  function vu(e, t, n) {
    return e = Mn(6, e, null, t), e.lanes = n, e;
  }
  function mu(e, t, n) {
    return t = Mn(4, e.children !== null ? e.children : [], e.key, t), t.lanes = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t;
  }
  function Fd(e, t, n, r, l) {
    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 = se(0), this.expirationTimes = se(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = se(0), this.identifierPrefix = r, this.onRecoverableError = l, this.mutableSourceEagerHydrationData = null;
  }
  function gu(e, t, n, r, l, h, O, Y, $) {
    return e = new Fd(e, t, n, Y, $), t === 1 ? (t = 1, h === !0 && (t |= 8)) : t = 0, h = Mn(3, null, null, t), e.current = h, h.stateNode = e, h.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null }, Ia(h), e;
  }
  function jd(e, t, n) {
    var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
    return { $$typeof: u, key: r == null ? null : "" + r, children: e, containerInfo: t, implementation: n };
  }
  function Wc(e) {
    if (!e) return Hr;
    e = e._reactInternals;
    e: {
      if (zn(e) !== e || e.tag !== 1) throw Error(X(170));
      var t = e;
      do {
        switch (t.tag) {
          case 3:
            t = t.stateNode.context;
            break e;
          case 1:
            if (dn(t.type)) {
              t = t.stateNode.__reactInternalMemoizedMergedChildContext;
              break e;
            }
        }
        t = t.return;
      } while (t !== null);
      throw Error(X(171));
    }
    if (e.tag === 1) {
      var n = e.type;
      if (dn(n)) return gs(e, n, t);
    }
    return t;
  }
  function Dc(e, t, n, r, l, h, O, Y, $) {
    return e = gu(n, r, !0, e, l, h, O, Y, $), e.context = Wc(null), n = e.current, r = en(), l = Yr(n), h = Tr(r, l), h.callback = t ?? null, Dr(n, h, l), e.current.lanes = l, re(e, l, r), vn(e, r), e;
  }
  function Bl(e, t, n, r) {
    var l = t.current, h = en(), O = Yr(l);
    return n = Wc(n), t.context === null ? t.context = n : t.pendingContext = n, t = Tr(h, O), t.payload = { element: e }, r = r === void 0 ? null : r, r !== null && (t.callback = r), e = Dr(l, t, O), e !== null && (Xn(e, l, O, h), vl(e, l, O)), O;
  }
  function Fl(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 Uc(e, t) {
    if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
      var n = e.retryLane;
      e.retryLane = n !== 0 && n < t ? n : t;
    }
  }
  function yu(e, t) {
    Uc(e, t), (e = e.alternate) && Uc(e, t);
  }
  function Hd() {
    return null;
  }
  var Vc = typeof reportError == "function" ? reportError : function(e) {
    console.error(e);
  };
  function wu(e) {
    this._internalRoot = e;
  }
  jl.prototype.render = wu.prototype.render = function(e) {
    var t = this._internalRoot;
    if (t === null) throw Error(X(409));
    Bl(e, t, null, null);
  }, jl.prototype.unmount = wu.prototype.unmount = function() {
    var e = this._internalRoot;
    if (e !== null) {
      this._internalRoot = null;
      var t = e.containerInfo;
      Ei(function() {
        Bl(null, e, null, null);
      }), t[Sr] = null;
    }
  };
  function jl(e) {
    this._internalRoot = e;
  }
  jl.prototype.unstable_scheduleHydration = function(e) {
    if (e) {
      var t = on();
      e = { blockedOn: null, target: e, priority: t };
      for (var n = 0; n < rr.length && t !== 0 && t < rr[n].priority; n++) ;
      rr.splice(n, 0, e), n === 0 && An(e);
    }
  };
  function Cu(e) {
    return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);
  }
  function Hl(e) {
    return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable "));
  }
  function Xc() {
  }
  function bd(e, t, n, r, l) {
    if (l) {
      if (typeof r == "function") {
        var h = r;
        r = function() {
          var he = Fl(O);
          h.call(he);
        };
      }
      var O = Dc(t, r, e, 0, null, !1, !1, "", Xc);
      return e._reactRootContainer = O, e[Sr] = O.current, xo(e.nodeType === 8 ? e.parentNode : e), Ei(), O;
    }
    for (; l = e.lastChild; ) e.removeChild(l);
    if (typeof r == "function") {
      var Y = r;
      r = function() {
        var he = Fl($);
        Y.call(he);
      };
    }
    var $ = gu(e, 0, !1, null, null, !1, !1, "", Xc);
    return e._reactRootContainer = $, e[Sr] = $.current, xo(e.nodeType === 8 ? e.parentNode : e), Ei(function() {
      Bl(t, $, n, r);
    }), $;
  }
  function bl(e, t, n, r, l) {
    var h = n._reactRootContainer;
    if (h) {
      var O = h;
      if (typeof l == "function") {
        var Y = l;
        l = function() {
          var $ = Fl(O);
          Y.call($);
        };
      }
      Bl(t, O, e, l);
    } else O = bd(n, t, e, l, r);
    return Fl(O);
  }
  Ke = function(e) {
    switch (e.tag) {
      case 3:
        var t = e.stateNode;
        if (t.current.memoizedState.isDehydrated) {
          var n = er(t.pendingLanes);
          n !== 0 && (Re(t, n | 1), vn(t, ht()), (at & 6) === 0 && (lo = ht() + 500, br()));
        }
        break;
      case 13:
        Ei(function() {
          var r = kr(e, 1);
          if (r !== null) {
            var l = en();
            Xn(r, e, 1, l);
          }
        }), yu(e, 1);
    }
  }, ft = function(e) {
    if (e.tag === 13) {
      var t = kr(e, 134217728);
      if (t !== null) {
        var n = en();
        Xn(t, e, 134217728, n);
      }
      yu(e, 134217728);
    }
  }, rn = function(e) {
    if (e.tag === 13) {
      var t = Yr(e), n = kr(e, t);
      if (n !== null) {
        var r = en();
        Xn(n, e, t, r);
      }
      yu(e, t);
    }
  }, on = function() {
    return Ie;
  }, Wt = function(e, t) {
    var n = Ie;
    try {
      return Ie = e, t();
    } finally {
      Ie = n;
    }
  }, et = function(e, t, n) {
    switch (t) {
      case "input":
        if ($e(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 l = ol(r);
              if (!l) throw Error(X(90));
              Ze(r), $e(r, l);
            }
          }
        }
        break;
      case "textarea":
        bt(e, n);
        break;
      case "select":
        t = n.value, t != null && At(e, !!n.multiple, t, !1);
    }
  }, Kt = fu, fr = Ei;
  var Wd = { usingClientEntryPoint: !1, Events: [Ao, Xi, ol, kt, qt, fu] }, Ho = { findFiberByHostInstance: vi, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, Dd = { bundleType: Ho.bundleType, version: Ho.version, rendererPackageName: Ho.rendererPackageName, rendererConfig: Ho.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: d.ReactCurrentDispatcher, findHostInstanceByFiber: function(e) {
    return e = hr(e), e === null ? null : e.stateNode;
  }, findFiberByHostInstance: Ho.findFiberByHostInstance || Hd, 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 Wl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
    if (!Wl.isDisabled && Wl.supportsFiber) try {
      Cn = Wl.inject(Dd), Zt = Wl;
    } catch {
    }
  }
  return mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Wd, mn.createPortal = function(e, t) {
    var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
    if (!Cu(t)) throw Error(X(200));
    return jd(e, t, null, n);
  }, mn.createRoot = function(e, t) {
    if (!Cu(e)) throw Error(X(299));
    var n = !1, r = "", l = Vc;
    return t != null && (t.unstable_strictMode === !0 && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onRecoverableError !== void 0 && (l = t.onRecoverableError)), t = gu(e, 1, !1, null, null, n, !1, r, l), e[Sr] = t.current, xo(e.nodeType === 8 ? e.parentNode : e), new wu(t);
  }, mn.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(X(188)) : (e = Object.keys(e).join(","), Error(X(268, e)));
    return e = hr(t), e = e === null ? null : e.stateNode, e;
  }, mn.flushSync = function(e) {
    return Ei(e);
  }, mn.hydrate = function(e, t, n) {
    if (!Hl(t)) throw Error(X(200));
    return bl(null, e, t, !0, n);
  }, mn.hydrateRoot = function(e, t, n) {
    if (!Cu(e)) throw Error(X(405));
    var r = n != null && n.hydratedSources || null, l = !1, h = "", O = Vc;
    if (n != null && (n.unstable_strictMode === !0 && (l = !0), n.identifierPrefix !== void 0 && (h = n.identifierPrefix), n.onRecoverableError !== void 0 && (O = n.onRecoverableError)), t = Dc(t, null, e, 1, n ?? null, l, !1, h, O), e[Sr] = t.current, xo(e), r) for (e = 0; e < r.length; e++) n = r[e], l = n._getVersion, l = l(n._source), t.mutableSourceEagerHydrationData == null ? t.mutableSourceEagerHydrationData = [n, l] : t.mutableSourceEagerHydrationData.push(
      n,
      l
    );
    return new jl(t);
  }, mn.render = function(e, t, n) {
    if (!Hl(t)) throw Error(X(200));
    return bl(null, e, t, !1, n);
  }, mn.unmountComponentAtNode = function(e) {
    if (!Hl(e)) throw Error(X(40));
    return e._reactRootContainer ? (Ei(function() {
      bl(null, null, e, !1, function() {
        e._reactRootContainer = null, e[Sr] = null;
      });
    }), !0) : !1;
  }, mn.unstable_batchedUpdates = fu, mn.unstable_renderSubtreeIntoContainer = function(e, t, n, r) {
    if (!Hl(n)) throw Error(X(200));
    if (e == null || e._reactInternals === void 0) throw Error(X(38));
    return bl(e, t, n, !1, r);
  }, mn.version = "18.3.1-next-f1338f8080-20240426", mn;
}
var nf;
function bu() {
  if (nf) return Eu.exports;
  nf = 1;
  function J() {
    if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"))
      try {
        __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J);
      } catch (K) {
        console.error(K);
      }
  }
  return J(), Eu.exports = Jd(), Eu.exports;
}
var rf;
function $d() {
  if (rf) return Dl;
  rf = 1;
  var J = bu();
  return Dl.createRoot = J.createRoot, Dl.hydrateRoot = J.hydrateRoot, Dl;
}
var eh = $d(), Kl = { exports: {} }, Jr = {}, Ai = {};
var of;
function th() {
  if (of) return Ai;
  of = 1;
  var J = so();
  function K(c) {
    for (var k = "https://reactjs.org/docs/error-decoder.html?invariant=" + c, G = 1; G < arguments.length; G++) k += "&args[]=" + encodeURIComponent(arguments[G]);
    return "Minified React error #" + c + "; visit " + k + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  }
  var X = Object.prototype.hasOwnProperty, ne = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][: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]*$/, ie = {}, we = {};
  function Z(c) {
    return X.call(we, c) ? !0 : X.call(ie, c) ? !1 : ne.test(c) ? we[c] = !0 : (ie[c] = !0, !1);
  }
  function m(c, k, G, U, se, re, me) {
    this.acceptsBooleans = k === 2 || k === 3 || k === 4, this.attributeName = U, this.attributeNamespace = se, this.mustUseProperty = G, this.propertyName = c, this.type = k, this.sanitizeURL = re, this.removeEmptyString = me;
  }
  var y = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c) {
    y[c] = new m(c, 0, !1, c, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(c) {
    var k = c[0];
    y[k] = new m(k, 1, !1, c[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(c) {
    y[c] = new m(c, 2, !1, c.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(c) {
    y[c] = new m(c, 2, !1, c, 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(c) {
    y[c] = new m(c, 3, !1, c.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(c) {
    y[c] = new m(c, 3, !0, c, null, !1, !1);
  }), ["capture", "download"].forEach(function(c) {
    y[c] = new m(c, 4, !1, c, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(c) {
    y[c] = new m(c, 6, !1, c, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(c) {
    y[c] = new m(c, 5, !1, c.toLowerCase(), null, !1, !1);
  });
  var S = /[\-:]([a-z])/g;
  function g(c) {
    return c[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(c) {
    var k = c.replace(
      S,
      g
    );
    y[k] = new m(k, 1, !1, c, null, !1, !1);
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c) {
    var k = c.replace(S, g);
    y[k] = new m(k, 1, !1, c, "http://www.w3.org/1999/xlink", !1, !1);
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(c) {
    var k = c.replace(S, g);
    y[k] = new m(k, 1, !1, c, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(c) {
    y[c] = new m(c, 1, !1, c.toLowerCase(), null, !1, !1);
  }), y.xlinkHref = new m("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(c) {
    y[c] = new m(c, 1, !1, c.toLowerCase(), null, !0, !0);
  });
  var A = {
    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
  }, _ = ["Webkit", "ms", "Moz", "O"];
  Object.keys(A).forEach(function(c) {
    _.forEach(function(k) {
      k = k + c.charAt(0).toUpperCase() + c.substring(1), A[k] = A[c];
    });
  });
  var I = /["'&<>]/;
  function E(c) {
    if (typeof c == "boolean" || typeof c == "number") return "" + c;
    c = "" + c;
    var k = I.exec(c);
    if (k) {
      var G = "", U, se = 0;
      for (U = k.index; U < c.length; U++) {
        switch (c.charCodeAt(U)) {
          case 34:
            k = "&quot;";
            break;
          case 38:
            k = "&amp;";
            break;
          case 39:
            k = "&#x27;";
            break;
          case 60:
            k = "&lt;";
            break;
          case 62:
            k = "&gt;";
            break;
          default:
            continue;
        }
        se !== U && (G += c.substring(se, U)), se = U + 1, G += k;
      }
      c = se !== U ? G + c.substring(se, U) : G;
    }
    return c;
  }
  var T = /([A-Z])/g, v = /^ms-/, i = Array.isArray;
  function o(c, k) {
    return { insertionMode: c, selectedValue: k };
  }
  function a(c, k, G) {
    switch (k) {
      case "select":
        return o(1, G.value != null ? G.value : G.defaultValue);
      case "svg":
        return o(2, null);
      case "math":
        return o(3, null);
      case "foreignObject":
        return o(1, null);
      case "table":
        return o(4, null);
      case "thead":
      case "tbody":
      case "tfoot":
        return o(5, null);
      case "colgroup":
        return o(7, null);
      case "tr":
        return o(6, null);
    }
    return 4 <= c.insertionMode || c.insertionMode === 0 ? o(1, null) : c;
  }
  var d = /* @__PURE__ */ new Map();
  function s(c, k, G) {
    if (typeof G != "object") throw Error(K(62));
    k = !0;
    for (var U in G) if (X.call(G, U)) {
      var se = G[U];
      if (se != null && typeof se != "boolean" && se !== "") {
        if (U.indexOf("--") === 0) {
          var re = E(U);
          se = E(("" + se).trim());
        } else {
          re = U;
          var me = d.get(re);
          me !== void 0 || (me = E(re.replace(T, "-$1").toLowerCase().replace(v, "-ms-")), d.set(re, me)), re = me, se = typeof se == "number" ? se === 0 || X.call(A, U) ? "" + se : se + "px" : E(("" + se).trim());
        }
        k ? (k = !1, c.push(' style="', re, ":", se)) : c.push(";", re, ":", se);
      }
    }
    k || c.push('"');
  }
  function u(c, k, G, U) {
    switch (G) {
      case "style":
        s(c, k, U);
        return;
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
        return;
    }
    if (!(2 < G.length) || G[0] !== "o" && G[0] !== "O" || G[1] !== "n" && G[1] !== "N") {
      if (k = y.hasOwnProperty(G) ? y[G] : null, k !== null) {
        switch (typeof U) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (!k.acceptsBooleans) return;
        }
        switch (G = k.attributeName, k.type) {
          case 3:
            U && c.push(" ", G, '=""');
            break;
          case 4:
            U === !0 ? c.push(" ", G, '=""') : U !== !1 && c.push(" ", G, '="', E(U), '"');
            break;
          case 5:
            isNaN(U) || c.push(" ", G, '="', E(U), '"');
            break;
          case 6:
            !isNaN(U) && 1 <= U && c.push(" ", G, '="', E(U), '"');
            break;
          default:
            k.sanitizeURL && (U = "" + U), c.push(" ", G, '="', E(U), '"');
        }
      } else if (Z(G)) {
        switch (typeof U) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (k = G.toLowerCase().slice(0, 5), k !== "data-" && k !== "aria-") return;
        }
        c.push(" ", G, '="', E(U), '"');
      }
    }
  }
  function p(c, k, G) {
    if (k != null) {
      if (G != null) throw Error(K(60));
      if (typeof k != "object" || !("__html" in k)) throw Error(K(61));
      k = k.__html, k != null && c.push("" + k);
    }
  }
  function w(c) {
    var k = "";
    return J.Children.forEach(c, function(G) {
      G != null && (k += G);
    }), k;
  }
  function C(c, k, G, U) {
    c.push(P(G));
    var se = G = null, re;
    for (re in k) if (X.call(k, re)) {
      var me = k[re];
      if (me != null) switch (re) {
        case "children":
          G = me;
          break;
        case "dangerouslySetInnerHTML":
          se = me;
          break;
        default:
          u(c, U, re, me);
      }
    }
    return c.push(">"), p(c, se, G), typeof G == "string" ? (c.push(E(G)), null) : G;
  }
  var N = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, R = /* @__PURE__ */ new Map();
  function P(c) {
    var k = R.get(c);
    if (k === void 0) {
      if (!N.test(c)) throw Error(K(65, c));
      k = "<" + c, R.set(c, k);
    }
    return k;
  }
  function z(c, k, G, U, se) {
    switch (k) {
      case "select":
        c.push(P("select"));
        var re = null, me = null;
        for (Ke in G) if (X.call(G, Ke)) {
          var Re = G[Ke];
          if (Re != null) switch (Ke) {
            case "children":
              re = Re;
              break;
            case "dangerouslySetInnerHTML":
              me = Re;
              break;
            case "defaultValue":
            case "value":
              break;
            default:
              u(c, U, Ke, Re);
          }
        }
        return c.push(">"), p(c, me, re), re;
      case "option":
        me = se.selectedValue, c.push(P("option"));
        var Ie = Re = null, De = null, Ke = null;
        for (re in G) if (X.call(G, re)) {
          var ft = G[re];
          if (ft != null) switch (re) {
            case "children":
              Re = ft;
              break;
            case "selected":
              De = ft;
              break;
            case "dangerouslySetInnerHTML":
              Ke = ft;
              break;
            case "value":
              Ie = ft;
            default:
              u(c, U, re, ft);
          }
        }
        if (me != null) if (G = Ie !== null ? "" + Ie : w(Re), i(me)) {
          for (U = 0; U < me.length; U++)
            if ("" + me[U] === G) {
              c.push(' selected=""');
              break;
            }
        } else "" + me === G && c.push(' selected=""');
        else De && c.push(' selected=""');
        return c.push(">"), p(c, Ke, Re), Re;
      case "textarea":
        c.push(P("textarea")), Ke = me = re = null;
        for (Re in G) if (X.call(G, Re) && (Ie = G[Re], Ie != null)) switch (Re) {
          case "children":
            Ke = Ie;
            break;
          case "value":
            re = Ie;
            break;
          case "defaultValue":
            me = Ie;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(K(91));
          default:
            u(
              c,
              U,
              Re,
              Ie
            );
        }
        if (re === null && me !== null && (re = me), c.push(">"), Ke != null) {
          if (re != null) throw Error(K(92));
          if (i(Ke) && 1 < Ke.length) throw Error(K(93));
          re = "" + Ke;
        }
        return typeof re == "string" && re[0] === `
` && c.push(`
`), re !== null && c.push(E("" + re)), null;
      case "input":
        c.push(P("input")), Ie = Ke = Re = re = null;
        for (me in G) if (X.call(G, me) && (De = G[me], De != null)) switch (me) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(399, "input"));
          case "defaultChecked":
            Ie = De;
            break;
          case "defaultValue":
            Re = De;
            break;
          case "checked":
            Ke = De;
            break;
          case "value":
            re = De;
            break;
          default:
            u(c, U, me, De);
        }
        return Ke !== null ? u(c, U, "checked", Ke) : Ie !== null && u(c, U, "checked", Ie), re !== null ? u(c, U, "value", re) : Re !== null && u(c, U, "value", Re), c.push("/>"), null;
      case "menuitem":
        c.push(P("menuitem"));
        for (var rn in G) if (X.call(G, rn) && (re = G[rn], re != null)) switch (rn) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(400));
          default:
            u(c, U, rn, re);
        }
        return c.push(">"), null;
      case "title":
        c.push(P("title")), re = null;
        for (ft in G) if (X.call(G, ft) && (me = G[ft], me != null)) switch (ft) {
          case "children":
            re = me;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(K(434));
          default:
            u(c, U, ft, me);
        }
        return c.push(">"), re;
      case "listing":
      case "pre":
        c.push(P(k)), me = re = null;
        for (Ie in G) if (X.call(G, Ie) && (Re = G[Ie], Re != null)) switch (Ie) {
          case "children":
            re = Re;
            break;
          case "dangerouslySetInnerHTML":
            me = Re;
            break;
          default:
            u(c, U, Ie, Re);
        }
        if (c.push(">"), me != null) {
          if (re != null) throw Error(K(60));
          if (typeof me != "object" || !("__html" in me)) throw Error(K(61));
          G = me.__html, G != null && (typeof G == "string" && 0 < G.length && G[0] === `
` ? c.push(`
`, G) : c.push("" + G));
        }
        return typeof re == "string" && re[0] === `
` && c.push(`
`), re;
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "img":
      case "keygen":
      case "link":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
        c.push(P(k));
        for (var on in G) if (X.call(G, on) && (re = G[on], re != null)) switch (on) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(399, k));
          default:
            u(c, U, on, re);
        }
        return c.push("/>"), null;
      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 C(
          c,
          G,
          k,
          U
        );
      case "html":
        return se.insertionMode === 0 && c.push("<!DOCTYPE html>"), C(c, G, k, U);
      default:
        if (k.indexOf("-") === -1 && typeof G.is != "string") return C(c, G, k, U);
        c.push(P(k)), me = re = null;
        for (De in G) if (X.call(G, De) && (Re = G[De], Re != null)) switch (De) {
          case "children":
            re = Re;
            break;
          case "dangerouslySetInnerHTML":
            me = Re;
            break;
          case "style":
            s(c, U, Re);
            break;
          case "suppressContentEditableWarning":
          case "suppressHydrationWarning":
            break;
          default:
            Z(De) && typeof Re != "function" && typeof Re != "symbol" && c.push(" ", De, '="', E(Re), '"');
        }
        return c.push(">"), p(c, me, re), re;
    }
  }
  function q(c, k, G) {
    if (c.push('<!--$?--><template id="'), G === null) throw Error(K(395));
    return c.push(G), c.push('"></template>');
  }
  function V(c, k, G, U) {
    switch (G.insertionMode) {
      case 0:
      case 1:
        return c.push('<div hidden id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 2:
        return c.push('<svg aria-hidden="true" style="display:none" id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 3:
        return c.push('<math aria-hidden="true" style="display:none" id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 4:
        return c.push('<table hidden id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 5:
        return c.push('<table hidden><tbody id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 6:
        return c.push('<table hidden><tr id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      case 7:
        return c.push('<table hidden><colgroup id="'), c.push(k.segmentPrefix), k = U.toString(16), c.push(k), c.push('">');
      default:
        throw Error(K(397));
    }
  }
  function D(c, k) {
    switch (k.insertionMode) {
      case 0:
      case 1:
        return c.push("</div>");
      case 2:
        return c.push("</svg>");
      case 3:
        return c.push("</math>");
      case 4:
        return c.push("</table>");
      case 5:
        return c.push("</tbody></table>");
      case 6:
        return c.push("</tr></table>");
      case 7:
        return c.push("</colgroup></table>");
      default:
        throw Error(K(397));
    }
  }
  var B = /[<\u2028\u2029]/g;
  function b(c) {
    return JSON.stringify(c).replace(B, function(k) {
      switch (k) {
        case "<":
          return "\\u003c";
        case "\u2028":
          return "\\u2028";
        case "\u2029":
          return "\\u2029";
        default:
          throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
      }
    });
  }
  function F(c, k) {
    return k = k === void 0 ? "" : k, { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: k + "P:", segmentPrefix: k + "S:", boundaryPrefix: k + "B:", idPrefix: k, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: c };
  }
  function H(c, k, G, U) {
    return G.generateStaticMarkup ? (c.push(E(k)), !1) : (k === "" ? c = U : (U && c.push("<!-- -->"), c.push(E(k)), c = !0), c);
  }
  var L = Object.assign, Q = Symbol.for("react.element"), ae = Symbol.for("react.portal"), de = Symbol.for("react.fragment"), ue = Symbol.for("react.strict_mode"), pe = Symbol.for("react.profiler"), ke = Symbol.for("react.provider"), Ee = Symbol.for("react.context"), Ne = Symbol.for("react.forward_ref"), Oe = Symbol.for("react.suspense"), Ue = Symbol.for("react.suspense_list"), Ze = Symbol.for("react.memo"), Xe = Symbol.for("react.lazy"), rt = Symbol.for("react.scope"), nt = Symbol.for("react.debug_trace_mode"), Pe = Symbol.for("react.legacy_hidden"), $e = Symbol.for("react.default_value"), ct = Symbol.iterator;
  function ot(c) {
    if (c == null) return null;
    if (typeof c == "function") return c.displayName || c.name || null;
    if (typeof c == "string") return c;
    switch (c) {
      case de:
        return "Fragment";
      case ae:
        return "Portal";
      case pe:
        return "Profiler";
      case ue:
        return "StrictMode";
      case Oe:
        return "Suspense";
      case Ue:
        return "SuspenseList";
    }
    if (typeof c == "object") switch (c.$$typeof) {
      case Ee:
        return (c.displayName || "Context") + ".Consumer";
      case ke:
        return (c._context.displayName || "Context") + ".Provider";
      case Ne:
        var k = c.render;
        return c = c.displayName, c || (c = k.displayName || k.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
      case Ze:
        return k = c.displayName || null, k !== null ? k : ot(c.type) || "Memo";
      case Xe:
        k = c._payload, c = c._init;
        try {
          return ot(c(k));
        } catch {
        }
    }
    return null;
  }
  var vt = {};
  function At(c, k) {
    if (c = c.contextTypes, !c) return vt;
    var G = {}, U;
    for (U in c) G[U] = k[U];
    return G;
  }
  var ut = null;
  function lt(c, k) {
    if (c !== k) {
      c.context._currentValue2 = c.parentValue, c = c.parent;
      var G = k.parent;
      if (c === null) {
        if (G !== null) throw Error(K(401));
      } else {
        if (G === null) throw Error(K(401));
        lt(c, G);
      }
      k.context._currentValue2 = k.value;
    }
  }
  function bt(c) {
    c.context._currentValue2 = c.parentValue, c = c.parent, c !== null && bt(c);
  }
  function Tn(c) {
    var k = c.parent;
    k !== null && Tn(k), c.context._currentValue2 = c.value;
  }
  function gn(c, k) {
    if (c.context._currentValue2 = c.parentValue, c = c.parent, c === null) throw Error(K(402));
    c.depth === k.depth ? lt(c, k) : gn(c, k);
  }
  function yn(c, k) {
    var G = k.parent;
    if (G === null) throw Error(K(402));
    c.depth === G.depth ? lt(c, G) : yn(c, G), k.context._currentValue2 = k.value;
  }
  function zt(c) {
    var k = ut;
    k !== c && (k === null ? Tn(c) : c === null ? bt(k) : k.depth === c.depth ? lt(k, c) : k.depth > c.depth ? gn(k, c) : yn(k, c), ut = c);
  }
  var tn = { isMounted: function() {
    return !1;
  }, enqueueSetState: function(c, k) {
    c = c._reactInternals, c.queue !== null && c.queue.push(k);
  }, enqueueReplaceState: function(c, k) {
    c = c._reactInternals, c.replace = !0, c.queue = [k];
  }, enqueueForceUpdate: function() {
  } };
  function St(c, k, G, U) {
    var se = c.state !== void 0 ? c.state : null;
    c.updater = tn, c.props = G, c.state = se;
    var re = { queue: [], replace: !1 };
    c._reactInternals = re;
    var me = k.contextType;
    if (c.context = typeof me == "object" && me !== null ? me._currentValue2 : U, me = k.getDerivedStateFromProps, typeof me == "function" && (me = me(G, se), se = me == null ? se : L({}, se, me), c.state = se), typeof k.getDerivedStateFromProps != "function" && typeof c.getSnapshotBeforeUpdate != "function" && (typeof c.UNSAFE_componentWillMount == "function" || typeof c.componentWillMount == "function")) if (k = c.state, typeof c.componentWillMount == "function" && c.componentWillMount(), typeof c.UNSAFE_componentWillMount == "function" && c.UNSAFE_componentWillMount(), k !== c.state && tn.enqueueReplaceState(c, c.state, null), re.queue !== null && 0 < re.queue.length) if (k = re.queue, me = re.replace, re.queue = null, re.replace = !1, me && k.length === 1) c.state = k[0];
    else {
      for (re = me ? k[0] : c.state, se = !0, me = me ? 1 : 0; me < k.length; me++) {
        var Re = k[me];
        Re = typeof Re == "function" ? Re.call(c, re, G, U) : Re, Re != null && (se ? (se = !1, re = L({}, re, Re)) : L(re, Re));
      }
      c.state = re;
    }
    else re.queue = null;
  }
  var nn = { id: 1, overflow: "" };
  function j(c, k, G) {
    var U = c.id;
    c = c.overflow;
    var se = 32 - ee(U) - 1;
    U &= ~(1 << se), G += 1;
    var re = 32 - ee(k) + se;
    if (30 < re) {
      var me = se - se % 5;
      return re = (U & (1 << me) - 1).toString(32), U >>= me, se -= me, { id: 1 << 32 - ee(k) + se | G << se | U, overflow: re + c };
    }
    return { id: 1 << re | G << se | U, overflow: c };
  }
  var ee = Math.clz32 ? Math.clz32 : Ae, ye = Math.log, ve = Math.LN2;
  function Ae(c) {
    return c >>>= 0, c === 0 ? 32 : 31 - (ye(c) / ve | 0) | 0;
  }
  function Me(c, k) {
    return c === k && (c !== 0 || 1 / c === 1 / k) || c !== c && k !== k;
  }
  var qe = typeof Object.is == "function" ? Object.is : Me, Ve = null, et = null, it = null, je = null, mt = !1, kt = !1, qt = 0, Kt = null, fr = 0;
  function wn() {
    if (Ve === null) throw Error(K(321));
    return Ve;
  }
  function ei() {
    if (0 < fr) throw Error(K(312));
    return { memoizedState: null, queue: null, next: null };
  }
  function Gn() {
    return je === null ? it === null ? (mt = !1, it = je = ei()) : (mt = !0, je = it) : je.next === null ? (mt = !1, je = je.next = ei()) : (mt = !0, je = je.next), je;
  }
  function dr() {
    et = Ve = null, kt = !1, it = null, fr = 0, je = Kt = null;
  }
  function Yn(c, k) {
    return typeof k == "function" ? k(c) : k;
  }
  function _i(c, k, G) {
    if (Ve = wn(), je = Gn(), mt) {
      var U = je.queue;
      if (k = U.dispatch, Kt !== null && (G = Kt.get(U), G !== void 0)) {
        Kt.delete(U), U = je.memoizedState;
        do
          U = c(U, G.action), G = G.next;
        while (G !== null);
        return je.memoizedState = U, [U, k];
      }
      return [je.memoizedState, k];
    }
    return c = c === Yn ? typeof k == "function" ? k() : k : G !== void 0 ? G(k) : k, je.memoizedState = c, c = je.queue = { last: null, dispatch: null }, c = c.dispatch = Rr.bind(null, Ve, c), [je.memoizedState, c];
  }
  function Qn(c, k) {
    if (Ve = wn(), je = Gn(), k = k === void 0 ? null : k, je !== null) {
      var G = je.memoizedState;
      if (G !== null && k !== null) {
        var U = G[1];
        e: if (U === null) U = !1;
        else {
          for (var se = 0; se < U.length && se < k.length; se++) if (!qe(k[se], U[se])) {
            U = !1;
            break e;
          }
          U = !0;
        }
        if (U) return G[0];
      }
    }
    return c = c(), je.memoizedState = [c, k], c;
  }
  function Rr(c, k, G) {
    if (25 <= fr) throw Error(K(301));
    if (c === Ve) if (kt = !0, c = { action: G, next: null }, Kt === null && (Kt = /* @__PURE__ */ new Map()), G = Kt.get(k), G === void 0) Kt.set(k, c);
    else {
      for (k = G; k.next !== null; ) k = k.next;
      k.next = c;
    }
  }
  function Ir() {
    throw Error(K(394));
  }
  function Kn() {
  }
  var Ri = { readContext: function(c) {
    return c._currentValue2;
  }, useContext: function(c) {
    return wn(), c._currentValue2;
  }, useMemo: Qn, useReducer: _i, useRef: function(c) {
    Ve = wn(), je = Gn();
    var k = je.memoizedState;
    return k === null ? (c = { current: c }, je.memoizedState = c) : k;
  }, useState: function(c) {
    return _i(Yn, c);
  }, useInsertionEffect: Kn, useLayoutEffect: function() {
  }, useCallback: function(c, k) {
    return Qn(function() {
      return c;
    }, k);
  }, useImperativeHandle: Kn, useEffect: Kn, useDebugValue: Kn, useDeferredValue: function(c) {
    return wn(), c;
  }, useTransition: function() {
    return wn(), [
      !1,
      Ir
    ];
  }, useId: function() {
    var c = et.treeContext, k = c.overflow;
    c = c.id, c = (c & ~(1 << 32 - ee(c) - 1)).toString(32) + k;
    var G = Or;
    if (G === null) throw Error(K(404));
    return k = qt++, c = ":" + G.idPrefix + "R" + c, 0 < k && (c += "H" + k.toString(32)), c + ":";
  }, useMutableSource: function(c, k) {
    return wn(), k(c._source);
  }, useSyncExternalStore: function(c, k, G) {
    if (G === void 0) throw Error(K(407));
    return G();
  } }, Or = null, ti = J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
  function zn(c) {
    return console.error(c), null;
  }
  function Zn() {
  }
  function Ii(c, k, G, U, se, re, me, Re, Ie) {
    var De = [], Ke = /* @__PURE__ */ new Set();
    return k = { destination: null, responseState: k, progressiveChunkSize: U === void 0 ? 12800 : U, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: Ke, pingedTasks: De, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: se === void 0 ? zn : se, onAllReady: Zn, onShellReady: me === void 0 ? Zn : me, onShellError: Zn, onFatalError: Zn }, G = hr(k, 0, null, G, !1, !1), G.parentFlushed = !0, c = ni(k, c, null, G, Ke, vt, null, nn), De.push(c), k;
  }
  function ni(c, k, G, U, se, re, me, Re) {
    c.allPendingTasks++, G === null ? c.pendingRootTasks++ : G.pendingTasks++;
    var Ie = { node: k, ping: function() {
      var De = c.pingedTasks;
      De.push(Ie), De.length === 1 && Zt(c);
    }, blockedBoundary: G, blockedSegment: U, abortSet: se, legacyContext: re, context: me, treeContext: Re };
    return se.add(Ie), Ie;
  }
  function hr(c, k, G, U, se, re) {
    return { status: 0, id: -1, index: k, parentFlushed: !1, chunks: [], children: [], formatContext: U, boundary: G, lastPushedText: se, textEmbedded: re };
  }
  function Jn(c, k) {
    if (c = c.onError(k), c != null && typeof c != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof c + '" instead');
    return c;
  }
  function pr(c, k) {
    var G = c.onShellError;
    G(k), G = c.onFatalError, G(k), c.destination !== null ? (c.status = 2, c.destination.destroy(k)) : (c.status = 1, c.fatalError = k);
  }
  function ri(c, k, G, U, se) {
    for (Ve = {}, et = k, qt = 0, c = G(U, se); kt; ) kt = !1, qt = 0, fr += 1, je = null, c = G(U, se);
    return dr(), c;
  }
  function Oi(c, k, G, U) {
    var se = G.render(), re = U.childContextTypes;
    if (re != null) {
      var me = k.legacyContext;
      if (typeof G.getChildContext != "function") U = me;
      else {
        G = G.getChildContext();
        for (var Re in G) if (!(Re in re)) throw Error(K(108, ot(U) || "Unknown", Re));
        U = L({}, me, G);
      }
      k.legacyContext = U, Bt(c, k, se), k.legacyContext = me;
    } else Bt(c, k, se);
  }
  function Pi(c, k) {
    if (c && c.defaultProps) {
      k = L({}, k), c = c.defaultProps;
      for (var G in c) k[G] === void 0 && (k[G] = c[G]);
      return k;
    }
    return k;
  }
  function ht(c, k, G, U, se) {
    if (typeof G == "function") if (G.prototype && G.prototype.isReactComponent) {
      se = At(G, k.legacyContext);
      var re = G.contextType;
      re = new G(U, typeof re == "object" && re !== null ? re._currentValue2 : se), St(re, G, U, se), Oi(c, k, re, G);
    } else {
      re = At(G, k.legacyContext), se = ri(c, k, G, U, re);
      var me = qt !== 0;
      if (typeof se == "object" && se !== null && typeof se.render == "function" && se.$$typeof === void 0) St(se, G, U, re), Oi(c, k, se, G);
      else if (me) {
        U = k.treeContext, k.treeContext = j(U, 1, 0);
        try {
          Bt(c, k, se);
        } finally {
          k.treeContext = U;
        }
      } else Bt(c, k, se);
    }
    else if (typeof G == "string") {
      switch (se = k.blockedSegment, re = z(se.chunks, G, U, c.responseState, se.formatContext), se.lastPushedText = !1, me = se.formatContext, se.formatContext = a(me, G, U), Lr(c, k, re), se.formatContext = me, G) {
        case "area":
        case "base":
        case "br":
        case "col":
        case "embed":
        case "hr":
        case "img":
        case "input":
        case "keygen":
        case "link":
        case "meta":
        case "param":
        case "source":
        case "track":
        case "wbr":
          break;
        default:
          se.chunks.push("</", G, ">");
      }
      se.lastPushedText = !1;
    } else {
      switch (G) {
        case Pe:
        case nt:
        case ue:
        case pe:
        case de:
          Bt(c, k, U.children);
          return;
        case Ue:
          Bt(c, k, U.children);
          return;
        case rt:
          throw Error(K(343));
        case Oe:
          e: {
            G = k.blockedBoundary, se = k.blockedSegment, re = U.fallback, U = U.children, me = /* @__PURE__ */ new Set();
            var Re = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: me, errorDigest: null }, Ie = hr(c, se.chunks.length, Re, se.formatContext, !1, !1);
            se.children.push(Ie), se.lastPushedText = !1;
            var De = hr(c, 0, null, se.formatContext, !1, !1);
            De.parentFlushed = !0, k.blockedBoundary = Re, k.blockedSegment = De;
            try {
              if (Lr(
                c,
                k,
                U
              ), c.responseState.generateStaticMarkup || De.lastPushedText && De.textEmbedded && De.chunks.push("<!-- -->"), De.status = 1, qn(Re, De), Re.pendingTasks === 0) break e;
            } catch (Ke) {
              De.status = 4, Re.forceClientRender = !0, Re.errorDigest = Jn(c, Ke);
            } finally {
              k.blockedBoundary = G, k.blockedSegment = se;
            }
            k = ni(c, re, G, Ie, me, k.legacyContext, k.context, k.treeContext), c.pingedTasks.push(k);
          }
          return;
      }
      if (typeof G == "object" && G !== null) switch (G.$$typeof) {
        case Ne:
          if (U = ri(c, k, G.render, U, se), qt !== 0) {
            G = k.treeContext, k.treeContext = j(G, 1, 0);
            try {
              Bt(c, k, U);
            } finally {
              k.treeContext = G;
            }
          } else Bt(c, k, U);
          return;
        case Ze:
          G = G.type, U = Pi(G, U), ht(c, k, G, U, se);
          return;
        case ke:
          if (se = U.children, G = G._context, U = U.value, re = G._currentValue2, G._currentValue2 = U, me = ut, ut = U = { parent: me, depth: me === null ? 0 : me.depth + 1, context: G, parentValue: re, value: U }, k.context = U, Bt(c, k, se), c = ut, c === null) throw Error(K(403));
          U = c.parentValue, c.context._currentValue2 = U === $e ? c.context._defaultValue : U, c = ut = c.parent, k.context = c;
          return;
        case Ee:
          U = U.children, U = U(G._currentValue2), Bt(c, k, U);
          return;
        case Xe:
          se = G._init, G = se(G._payload), U = Pi(G, U), ht(
            c,
            k,
            G,
            U,
            void 0
          );
          return;
      }
      throw Error(K(130, G == null ? G : typeof G, ""));
    }
  }
  function Bt(c, k, G) {
    if (k.node = G, typeof G == "object" && G !== null) {
      switch (G.$$typeof) {
        case Q:
          ht(c, k, G.type, G.props, G.ref);
          return;
        case ae:
          throw Error(K(257));
        case Xe:
          var U = G._init;
          G = U(G._payload), Bt(c, k, G);
          return;
      }
      if (i(G)) {
        Pr(c, k, G);
        return;
      }
      if (G === null || typeof G != "object" ? U = null : (U = ct && G[ct] || G["@@iterator"], U = typeof U == "function" ? U : null), U && (U = U.call(G))) {
        if (G = U.next(), !G.done) {
          var se = [];
          do
            se.push(G.value), G = U.next();
          while (!G.done);
          Pr(c, k, se);
        }
        return;
      }
      throw c = Object.prototype.toString.call(G), Error(K(31, c === "[object Object]" ? "object with keys {" + Object.keys(G).join(", ") + "}" : c));
    }
    typeof G == "string" ? (U = k.blockedSegment, U.lastPushedText = H(k.blockedSegment.chunks, G, c.responseState, U.lastPushedText)) : typeof G == "number" && (U = k.blockedSegment, U.lastPushedText = H(k.blockedSegment.chunks, "" + G, c.responseState, U.lastPushedText));
  }
  function Pr(c, k, G) {
    for (var U = G.length, se = 0; se < U; se++) {
      var re = k.treeContext;
      k.treeContext = j(re, U, se);
      try {
        Lr(c, k, G[se]);
      } finally {
        k.treeContext = re;
      }
    }
  }
  function Lr(c, k, G) {
    var U = k.blockedSegment.formatContext, se = k.legacyContext, re = k.context;
    try {
      return Bt(c, k, G);
    } catch (Ie) {
      if (dr(), typeof Ie == "object" && Ie !== null && typeof Ie.then == "function") {
        G = Ie;
        var me = k.blockedSegment, Re = hr(c, me.chunks.length, null, me.formatContext, me.lastPushedText, !0);
        me.children.push(Re), me.lastPushedText = !1, c = ni(c, k.node, k.blockedBoundary, Re, k.abortSet, k.legacyContext, k.context, k.treeContext).ping, G.then(c, c), k.blockedSegment.formatContext = U, k.legacyContext = se, k.context = re, zt(re);
      } else throw k.blockedSegment.formatContext = U, k.legacyContext = se, k.context = re, zt(re), Ie;
    }
  }
  function $n(c) {
    var k = c.blockedBoundary;
    c = c.blockedSegment, c.status = 3, Cn(this, k, c);
  }
  function Li(c, k, G) {
    var U = c.blockedBoundary;
    c.blockedSegment.status = 3, U === null ? (k.allPendingTasks--, k.status !== 2 && (k.status = 2, k.destination !== null && k.destination.push(null))) : (U.pendingTasks--, U.forceClientRender || (U.forceClientRender = !0, c = G === void 0 ? Error(K(432)) : G, U.errorDigest = k.onError(c), U.parentFlushed && k.clientRenderedBoundaries.push(U)), U.fallbackAbortableTasks.forEach(function(se) {
      return Li(se, k, G);
    }), U.fallbackAbortableTasks.clear(), k.allPendingTasks--, k.allPendingTasks === 0 && (U = k.onAllReady, U()));
  }
  function qn(c, k) {
    if (k.chunks.length === 0 && k.children.length === 1 && k.children[0].boundary === null) {
      var G = k.children[0];
      G.id = k.id, G.parentFlushed = !0, G.status === 1 && qn(c, G);
    } else c.completedSegments.push(k);
  }
  function Cn(c, k, G) {
    if (k === null) {
      if (G.parentFlushed) {
        if (c.completedRootSegment !== null) throw Error(K(389));
        c.completedRootSegment = G;
      }
      c.pendingRootTasks--, c.pendingRootTasks === 0 && (c.onShellError = Zn, k = c.onShellReady, k());
    } else k.pendingTasks--, k.forceClientRender || (k.pendingTasks === 0 ? (G.parentFlushed && G.status === 1 && qn(k, G), k.parentFlushed && c.completedBoundaries.push(k), k.fallbackAbortableTasks.forEach($n, c), k.fallbackAbortableTasks.clear()) : G.parentFlushed && G.status === 1 && (qn(k, G), k.completedSegments.length === 1 && k.parentFlushed && c.partialBoundaries.push(k)));
    c.allPendingTasks--, c.allPendingTasks === 0 && (c = c.onAllReady, c());
  }
  function Zt(c) {
    if (c.status !== 2) {
      var k = ut, G = ti.current;
      ti.current = Ri;
      var U = Or;
      Or = c.responseState;
      try {
        var se = c.pingedTasks, re;
        for (re = 0; re < se.length; re++) {
          var me = se[re], Re = c, Ie = me.blockedSegment;
          if (Ie.status === 0) {
            zt(me.context);
            try {
              Bt(Re, me, me.node), Re.responseState.generateStaticMarkup || Ie.lastPushedText && Ie.textEmbedded && Ie.chunks.push("<!-- -->"), me.abortSet.delete(me), Ie.status = 1, Cn(Re, me.blockedBoundary, Ie);
            } catch (Wt) {
              if (dr(), typeof Wt == "object" && Wt !== null && typeof Wt.then == "function") {
                var De = me.ping;
                Wt.then(De, De);
              } else {
                me.abortSet.delete(me), Ie.status = 4;
                var Ke = me.blockedBoundary, ft = Wt, rn = Jn(Re, ft);
                if (Ke === null ? pr(Re, ft) : (Ke.pendingTasks--, Ke.forceClientRender || (Ke.forceClientRender = !0, Ke.errorDigest = rn, Ke.parentFlushed && Re.clientRenderedBoundaries.push(Ke))), Re.allPendingTasks--, Re.allPendingTasks === 0) {
                  var on = Re.onAllReady;
                  on();
                }
              }
            } finally {
            }
          }
        }
        se.splice(0, re), c.destination !== null && Bn(c, c.destination);
      } catch (Wt) {
        Jn(c, Wt), pr(c, Wt);
      } finally {
        Or = U, ti.current = G, G === Ri && zt(k);
      }
    }
  }
  function vr(c, k, G) {
    switch (G.parentFlushed = !0, G.status) {
      case 0:
        var U = G.id = c.nextSegmentId++;
        return G.lastPushedText = !1, G.textEmbedded = !1, c = c.responseState, k.push('<template id="'), k.push(c.placeholderPrefix), c = U.toString(16), k.push(c), k.push('"></template>');
      case 1:
        G.status = 2;
        var se = !0;
        U = G.chunks;
        var re = 0;
        G = G.children;
        for (var me = 0; me < G.length; me++) {
          for (se = G[me]; re < se.index; re++) k.push(U[re]);
          se = It(c, k, se);
        }
        for (; re < U.length - 1; re++) k.push(U[re]);
        return re < U.length && (se = k.push(U[re])), se;
      default:
        throw Error(K(390));
    }
  }
  function It(c, k, G) {
    var U = G.boundary;
    if (U === null) return vr(c, k, G);
    if (U.parentFlushed = !0, U.forceClientRender) return c.responseState.generateStaticMarkup || (U = U.errorDigest, k.push("<!--$!-->"), k.push("<template"), U && (k.push(' data-dgst="'), U = E(U), k.push(U), k.push('"')), k.push("></template>")), vr(c, k, G), c = c.responseState.generateStaticMarkup ? !0 : k.push("<!--/$-->"), c;
    if (0 < U.pendingTasks) {
      U.rootSegmentID = c.nextSegmentId++, 0 < U.completedSegments.length && c.partialBoundaries.push(U);
      var se = c.responseState, re = se.nextSuspenseID++;
      return se = se.boundaryPrefix + re.toString(16), U = U.id = se, q(k, c.responseState, U), vr(c, k, G), k.push("<!--/$-->");
    }
    if (U.byteSize > c.progressiveChunkSize) return U.rootSegmentID = c.nextSegmentId++, c.completedBoundaries.push(U), q(k, c.responseState, U.id), vr(c, k, G), k.push("<!--/$-->");
    if (c.responseState.generateStaticMarkup || k.push("<!--$-->"), G = U.completedSegments, G.length !== 1) throw Error(K(391));
    return It(c, k, G[0]), c = c.responseState.generateStaticMarkup ? !0 : k.push("<!--/$-->"), c;
  }
  function ii(c, k, G) {
    return V(k, c.responseState, G.formatContext, G.id), It(c, k, G), D(k, G.formatContext);
  }
  function oi(c, k, G) {
    for (var U = G.completedSegments, se = 0; se < U.length; se++) li(c, k, G, U[se]);
    if (U.length = 0, c = c.responseState, U = G.id, G = G.rootSegmentID, k.push(c.startInlineScript), c.sentCompleteBoundaryFunction ? k.push('$RC("') : (c.sentCompleteBoundaryFunction = !0, k.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')), U === null) throw Error(K(395));
    return G = G.toString(16), k.push(U), k.push('","'), k.push(c.segmentPrefix), k.push(G), k.push('")<\/script>');
  }
  function li(c, k, G, U) {
    if (U.status === 2) return !0;
    var se = U.id;
    if (se === -1) {
      if ((U.id = G.rootSegmentID) === -1) throw Error(K(392));
      return ii(c, k, U);
    }
    return ii(c, k, U), c = c.responseState, k.push(c.startInlineScript), c.sentCompleteSegmentFunction ? k.push('$RS("') : (c.sentCompleteSegmentFunction = !0, k.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')), k.push(c.segmentPrefix), se = se.toString(16), k.push(se), k.push('","'), k.push(c.placeholderPrefix), k.push(se), k.push('")<\/script>');
  }
  function Bn(c, k) {
    try {
      var G = c.completedRootSegment;
      if (G !== null && c.pendingRootTasks === 0) {
        It(c, k, G), c.completedRootSegment = null;
        var U = c.responseState.bootstrapChunks;
        for (G = 0; G < U.length - 1; G++) k.push(U[G]);
        G < U.length && k.push(U[G]);
      }
      var se = c.clientRenderedBoundaries, re;
      for (re = 0; re < se.length; re++) {
        var me = se[re];
        U = k;
        var Re = c.responseState, Ie = me.id, De = me.errorDigest, Ke = me.errorMessage, ft = me.errorComponentStack;
        if (U.push(Re.startInlineScript), Re.sentClientRenderFunction ? U.push('$RX("') : (Re.sentClientRenderFunction = !0, U.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')), Ie === null) throw Error(K(395));
        if (U.push(Ie), U.push('"'), De || Ke || ft) {
          U.push(",");
          var rn = b(De || "");
          U.push(rn);
        }
        if (Ke || ft) {
          U.push(",");
          var on = b(Ke || "");
          U.push(on);
        }
        if (ft) {
          U.push(",");
          var Wt = b(ft);
          U.push(Wt);
        }
        if (!U.push(")<\/script>")) {
          c.destination = null, re++, se.splice(0, re);
          return;
        }
      }
      se.splice(0, re);
      var Fn = c.completedBoundaries;
      for (re = 0; re < Fn.length; re++) if (!oi(c, k, Fn[re])) {
        c.destination = null, re++, Fn.splice(0, re);
        return;
      }
      Fn.splice(0, re);
      var ln = c.partialBoundaries;
      for (re = 0; re < ln.length; re++) {
        var an = ln[re];
        e: {
          se = c, me = k;
          var Dt = an.completedSegments;
          for (Re = 0; Re < Dt.length; Re++) if (!li(se, me, an, Dt[Re])) {
            Re++, Dt.splice(0, Re);
            var Sn = !1;
            break e;
          }
          Dt.splice(0, Re), Sn = !0;
        }
        if (!Sn) {
          c.destination = null, re++, ln.splice(0, re);
          return;
        }
      }
      ln.splice(0, re);
      var un = c.completedBoundaries;
      for (re = 0; re < un.length; re++) if (!oi(c, k, un[re])) {
        c.destination = null, re++, un.splice(0, re);
        return;
      }
      un.splice(0, re);
    } finally {
      c.allPendingTasks === 0 && c.pingedTasks.length === 0 && c.clientRenderedBoundaries.length === 0 && c.completedBoundaries.length === 0 && k.push(null);
    }
  }
  function mr(c, k) {
    try {
      var G = c.abortableTasks;
      G.forEach(function(U) {
        return Li(U, c, k);
      }), G.clear(), c.destination !== null && Bn(c, c.destination);
    } catch (U) {
      Jn(c, U), pr(c, U);
    }
  }
  function er() {
  }
  function tr(c, k, G, U) {
    var se = !1, re = null, me = "", Re = { push: function(De) {
      return De !== null && (me += De), !0;
    }, destroy: function(De) {
      se = !0, re = De;
    } }, Ie = !1;
    if (c = Ii(c, F(G, k ? k.identifierPrefix : void 0), { insertionMode: 1, selectedValue: null }, 1 / 0, er, void 0, function() {
      Ie = !0;
    }), Zt(c), mr(c, U), c.status === 1) c.status = 2, Re.destroy(c.fatalError);
    else if (c.status !== 2 && c.destination === null) {
      c.destination = Re;
      try {
        Bn(c, Re);
      } catch (De) {
        Jn(c, De), pr(c, De);
      }
    }
    if (se) throw re;
    if (!Ie) throw Error(K(426));
    return me;
  }
  return Ai.renderToNodeStream = function() {
    throw Error(K(207));
  }, Ai.renderToStaticMarkup = function(c, k) {
    return tr(c, k, !0, 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
  }, Ai.renderToStaticNodeStream = function() {
    throw Error(K(208));
  }, Ai.renderToString = function(c, k) {
    return tr(c, k, !1, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
  }, Ai.version = "18.3.1", Ai;
}
var Ul = {};
var lf;
function nh() {
  if (lf) return Ul;
  lf = 1;
  var J = so();
  function K(f) {
    for (var x = "https://reactjs.org/docs/error-decoder.html?invariant=" + f, M = 1; M < arguments.length; M++) x += "&args[]=" + encodeURIComponent(arguments[M]);
    return "Minified React error #" + f + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  }
  var X = null, ne = 0;
  function ie(f, x) {
    if (x.length !== 0) if (512 < x.length) 0 < ne && (f.enqueue(new Uint8Array(X.buffer, 0, ne)), X = new Uint8Array(512), ne = 0), f.enqueue(x);
    else {
      var M = X.length - ne;
      M < x.length && (M === 0 ? f.enqueue(X) : (X.set(x.subarray(0, M), ne), f.enqueue(X), x = x.subarray(M)), X = new Uint8Array(512), ne = 0), X.set(x, ne), ne += x.length;
    }
  }
  function we(f, x) {
    return ie(f, x), !0;
  }
  function Z(f) {
    X && 0 < ne && (f.enqueue(new Uint8Array(X.buffer, 0, ne)), X = null, ne = 0);
  }
  var m = new TextEncoder();
  function y(f) {
    return m.encode(f);
  }
  function S(f) {
    return m.encode(f);
  }
  function g(f, x) {
    typeof f.error == "function" ? f.error(x) : f.close();
  }
  var A = Object.prototype.hasOwnProperty, _ = /^[: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]*$/, I = {}, E = {};
  function T(f) {
    return A.call(E, f) ? !0 : A.call(I, f) ? !1 : _.test(f) ? E[f] = !0 : (I[f] = !0, !1);
  }
  function v(f, x, M, W, fe, le, ge) {
    this.acceptsBooleans = x === 2 || x === 3 || x === 4, this.attributeName = W, this.attributeNamespace = fe, this.mustUseProperty = M, this.propertyName = f, this.type = x, this.sanitizeURL = le, this.removeEmptyString = ge;
  }
  var i = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f) {
    i[f] = new v(f, 0, !1, f, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(f) {
    var x = f[0];
    i[x] = new v(x, 1, !1, f[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(f) {
    i[f] = new v(f, 2, !1, f.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(f) {
    i[f] = new v(f, 2, !1, f, 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(f) {
    i[f] = new v(f, 3, !1, f.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(f) {
    i[f] = new v(f, 3, !0, f, null, !1, !1);
  }), ["capture", "download"].forEach(function(f) {
    i[f] = new v(f, 4, !1, f, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(f) {
    i[f] = new v(f, 6, !1, f, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(f) {
    i[f] = new v(f, 5, !1, f.toLowerCase(), null, !1, !1);
  });
  var o = /[\-:]([a-z])/g;
  function a(f) {
    return f[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(f) {
    var x = f.replace(
      o,
      a
    );
    i[x] = new v(x, 1, !1, f, null, !1, !1);
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f) {
    var x = f.replace(o, a);
    i[x] = new v(x, 1, !1, f, "http://www.w3.org/1999/xlink", !1, !1);
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(f) {
    var x = f.replace(o, a);
    i[x] = new v(x, 1, !1, f, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(f) {
    i[f] = new v(f, 1, !1, f.toLowerCase(), null, !1, !1);
  }), i.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(f) {
    i[f] = new v(f, 1, !1, f.toLowerCase(), null, !0, !0);
  });
  var d = {
    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
  }, s = ["Webkit", "ms", "Moz", "O"];
  Object.keys(d).forEach(function(f) {
    s.forEach(function(x) {
      x = x + f.charAt(0).toUpperCase() + f.substring(1), d[x] = d[f];
    });
  });
  var u = /["'&<>]/;
  function p(f) {
    if (typeof f == "boolean" || typeof f == "number") return "" + f;
    f = "" + f;
    var x = u.exec(f);
    if (x) {
      var M = "", W, fe = 0;
      for (W = x.index; W < f.length; W++) {
        switch (f.charCodeAt(W)) {
          case 34:
            x = "&quot;";
            break;
          case 38:
            x = "&amp;";
            break;
          case 39:
            x = "&#x27;";
            break;
          case 60:
            x = "&lt;";
            break;
          case 62:
            x = "&gt;";
            break;
          default:
            continue;
        }
        fe !== W && (M += f.substring(fe, W)), fe = W + 1, M += x;
      }
      f = fe !== W ? M + f.substring(fe, W) : M;
    }
    return f;
  }
  var w = /([A-Z])/g, C = /^ms-/, N = Array.isArray, R = S("<script>"), P = S("<\/script>"), z = S('<script src="'), q = S('<script type="module" src="'), V = S('" async=""><\/script>'), D = /(<\/|<)(s)(cript)/gi;
  function B(f, x, M, W) {
    return "" + x + (M === "s" ? "\\u0073" : "\\u0053") + W;
  }
  function b(f, x, M, W, fe) {
    f = f === void 0 ? "" : f, x = x === void 0 ? R : S('<script nonce="' + p(x) + '">');
    var le = [];
    if (M !== void 0 && le.push(x, y(("" + M).replace(D, B)), P), W !== void 0) for (M = 0; M < W.length; M++) le.push(z, y(p(W[M])), V);
    if (fe !== void 0) for (W = 0; W < fe.length; W++) le.push(q, y(p(fe[W])), V);
    return { bootstrapChunks: le, startInlineScript: x, placeholderPrefix: S(f + "P:"), segmentPrefix: S(f + "S:"), boundaryPrefix: f + "B:", idPrefix: f, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
  }
  function F(f, x) {
    return { insertionMode: f, selectedValue: x };
  }
  function H(f) {
    return F(f === "http://www.w3.org/2000/svg" ? 2 : f === "http://www.w3.org/1998/Math/MathML" ? 3 : 0, null);
  }
  function L(f, x, M) {
    switch (x) {
      case "select":
        return F(1, M.value != null ? M.value : M.defaultValue);
      case "svg":
        return F(2, null);
      case "math":
        return F(3, null);
      case "foreignObject":
        return F(1, null);
      case "table":
        return F(4, null);
      case "thead":
      case "tbody":
      case "tfoot":
        return F(5, null);
      case "colgroup":
        return F(7, null);
      case "tr":
        return F(6, null);
    }
    return 4 <= f.insertionMode || f.insertionMode === 0 ? F(1, null) : f;
  }
  var Q = S("<!-- -->");
  function ae(f, x, M, W) {
    return x === "" ? W : (W && f.push(Q), f.push(y(p(x))), !0);
  }
  var de = /* @__PURE__ */ new Map(), ue = S(' style="'), pe = S(":"), ke = S(";");
  function Ee(f, x, M) {
    if (typeof M != "object") throw Error(K(62));
    x = !0;
    for (var W in M) if (A.call(M, W)) {
      var fe = M[W];
      if (fe != null && typeof fe != "boolean" && fe !== "") {
        if (W.indexOf("--") === 0) {
          var le = y(p(W));
          fe = y(p(("" + fe).trim()));
        } else {
          le = W;
          var ge = de.get(le);
          ge !== void 0 || (ge = S(p(le.replace(w, "-$1").toLowerCase().replace(C, "-ms-"))), de.set(le, ge)), le = ge, fe = typeof fe == "number" ? fe === 0 || A.call(d, W) ? y("" + fe) : y(fe + "px") : y(p(("" + fe).trim()));
        }
        x ? (x = !1, f.push(ue, le, pe, fe)) : f.push(ke, le, pe, fe);
      }
    }
    x || f.push(Ue);
  }
  var Ne = S(" "), Oe = S('="'), Ue = S('"'), Ze = S('=""');
  function Xe(f, x, M, W) {
    switch (M) {
      case "style":
        Ee(f, x, W);
        return;
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
        return;
    }
    if (!(2 < M.length) || M[0] !== "o" && M[0] !== "O" || M[1] !== "n" && M[1] !== "N") {
      if (x = i.hasOwnProperty(M) ? i[M] : null, x !== null) {
        switch (typeof W) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (!x.acceptsBooleans) return;
        }
        switch (M = y(x.attributeName), x.type) {
          case 3:
            W && f.push(Ne, M, Ze);
            break;
          case 4:
            W === !0 ? f.push(Ne, M, Ze) : W !== !1 && f.push(Ne, M, Oe, y(p(W)), Ue);
            break;
          case 5:
            isNaN(W) || f.push(Ne, M, Oe, y(p(W)), Ue);
            break;
          case 6:
            !isNaN(W) && 1 <= W && f.push(Ne, M, Oe, y(p(W)), Ue);
            break;
          default:
            x.sanitizeURL && (W = "" + W), f.push(Ne, M, Oe, y(p(W)), Ue);
        }
      } else if (T(M)) {
        switch (typeof W) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (x = M.toLowerCase().slice(0, 5), x !== "data-" && x !== "aria-") return;
        }
        f.push(Ne, y(M), Oe, y(p(W)), Ue);
      }
    }
  }
  var rt = S(">"), nt = S("/>");
  function Pe(f, x, M) {
    if (x != null) {
      if (M != null) throw Error(K(60));
      if (typeof x != "object" || !("__html" in x)) throw Error(K(61));
      x = x.__html, x != null && f.push(y("" + x));
    }
  }
  function $e(f) {
    var x = "";
    return J.Children.forEach(f, function(M) {
      M != null && (x += M);
    }), x;
  }
  var ct = S(' selected=""');
  function ot(f, x, M, W) {
    f.push(lt(M));
    var fe = M = null, le;
    for (le in x) if (A.call(x, le)) {
      var ge = x[le];
      if (ge != null) switch (le) {
        case "children":
          M = ge;
          break;
        case "dangerouslySetInnerHTML":
          fe = ge;
          break;
        default:
          Xe(f, W, le, ge);
      }
    }
    return f.push(rt), Pe(f, fe, M), typeof M == "string" ? (f.push(y(p(M))), null) : M;
  }
  var vt = S(`
`), At = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, ut = /* @__PURE__ */ new Map();
  function lt(f) {
    var x = ut.get(f);
    if (x === void 0) {
      if (!At.test(f)) throw Error(K(65, f));
      x = S("<" + f), ut.set(f, x);
    }
    return x;
  }
  var bt = S("<!DOCTYPE html>");
  function Tn(f, x, M, W, fe) {
    switch (x) {
      case "select":
        f.push(lt("select"));
        var le = null, ge = null;
        for (Ye in M) if (A.call(M, Ye)) {
          var Te = M[Ye];
          if (Te != null) switch (Ye) {
            case "children":
              le = Te;
              break;
            case "dangerouslySetInnerHTML":
              ge = Te;
              break;
            case "defaultValue":
            case "value":
              break;
            default:
              Xe(f, W, Ye, Te);
          }
        }
        return f.push(rt), Pe(f, ge, le), le;
      case "option":
        ge = fe.selectedValue, f.push(lt("option"));
        var We = Te = null, Je = null, Ye = null;
        for (le in M) if (A.call(M, le)) {
          var pt = M[le];
          if (pt != null) switch (le) {
            case "children":
              Te = pt;
              break;
            case "selected":
              Je = pt;
              break;
            case "dangerouslySetInnerHTML":
              Ye = pt;
              break;
            case "value":
              We = pt;
            default:
              Xe(f, W, le, pt);
          }
        }
        if (ge != null) if (M = We !== null ? "" + We : $e(Te), N(ge)) {
          for (W = 0; W < ge.length; W++)
            if ("" + ge[W] === M) {
              f.push(ct);
              break;
            }
        } else "" + ge === M && f.push(ct);
        else Je && f.push(ct);
        return f.push(rt), Pe(f, Ye, Te), Te;
      case "textarea":
        f.push(lt("textarea")), Ye = ge = le = null;
        for (Te in M) if (A.call(M, Te) && (We = M[Te], We != null)) switch (Te) {
          case "children":
            Ye = We;
            break;
          case "value":
            le = We;
            break;
          case "defaultValue":
            ge = We;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(K(91));
          default:
            Xe(f, W, Te, We);
        }
        if (le === null && ge !== null && (le = ge), f.push(rt), Ye != null) {
          if (le != null) throw Error(K(92));
          if (N(Ye) && 1 < Ye.length) throw Error(K(93));
          le = "" + Ye;
        }
        return typeof le == "string" && le[0] === `
` && f.push(vt), le !== null && f.push(y(p("" + le))), null;
      case "input":
        f.push(lt("input")), We = Ye = Te = le = null;
        for (ge in M) if (A.call(M, ge) && (Je = M[ge], Je != null)) switch (ge) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(399, "input"));
          case "defaultChecked":
            We = Je;
            break;
          case "defaultValue":
            Te = Je;
            break;
          case "checked":
            Ye = Je;
            break;
          case "value":
            le = Je;
            break;
          default:
            Xe(f, W, ge, Je);
        }
        return Ye !== null ? Xe(
          f,
          W,
          "checked",
          Ye
        ) : We !== null && Xe(f, W, "checked", We), le !== null ? Xe(f, W, "value", le) : Te !== null && Xe(f, W, "value", Te), f.push(nt), null;
      case "menuitem":
        f.push(lt("menuitem"));
        for (var Ut in M) if (A.call(M, Ut) && (le = M[Ut], le != null)) switch (Ut) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(400));
          default:
            Xe(f, W, Ut, le);
        }
        return f.push(rt), null;
      case "title":
        f.push(lt("title")), le = null;
        for (pt in M) if (A.call(M, pt) && (ge = M[pt], ge != null)) switch (pt) {
          case "children":
            le = ge;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(K(434));
          default:
            Xe(f, W, pt, ge);
        }
        return f.push(rt), le;
      case "listing":
      case "pre":
        f.push(lt(x)), ge = le = null;
        for (We in M) if (A.call(M, We) && (Te = M[We], Te != null)) switch (We) {
          case "children":
            le = Te;
            break;
          case "dangerouslySetInnerHTML":
            ge = Te;
            break;
          default:
            Xe(f, W, We, Te);
        }
        if (f.push(rt), ge != null) {
          if (le != null) throw Error(K(60));
          if (typeof ge != "object" || !("__html" in ge)) throw Error(K(61));
          M = ge.__html, M != null && (typeof M == "string" && 0 < M.length && M[0] === `
` ? f.push(vt, y(M)) : f.push(y("" + M)));
        }
        return typeof le == "string" && le[0] === `
` && f.push(vt), le;
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "img":
      case "keygen":
      case "link":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
        f.push(lt(x));
        for (var sn in M) if (A.call(M, sn) && (le = M[sn], le != null)) switch (sn) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(K(399, x));
          default:
            Xe(f, W, sn, le);
        }
        return f.push(nt), null;
      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 ot(f, M, x, W);
      case "html":
        return fe.insertionMode === 0 && f.push(bt), ot(f, M, x, W);
      default:
        if (x.indexOf("-") === -1 && typeof M.is != "string") return ot(f, M, x, W);
        f.push(lt(x)), ge = le = null;
        for (Je in M) if (A.call(M, Je) && (Te = M[Je], Te != null)) switch (Je) {
          case "children":
            le = Te;
            break;
          case "dangerouslySetInnerHTML":
            ge = Te;
            break;
          case "style":
            Ee(f, W, Te);
            break;
          case "suppressContentEditableWarning":
          case "suppressHydrationWarning":
            break;
          default:
            T(Je) && typeof Te != "function" && typeof Te != "symbol" && f.push(Ne, y(Je), Oe, y(p(Te)), Ue);
        }
        return f.push(rt), Pe(f, ge, le), le;
    }
  }
  var gn = S("</"), yn = S(">"), zt = S('<template id="'), tn = S('"></template>'), St = S("<!--$-->"), nn = S('<!--$?--><template id="'), j = S('"></template>'), ee = S("<!--$!-->"), ye = S("<!--/$-->"), ve = S("<template"), Ae = S('"'), Me = S(' data-dgst="');
  S(' data-msg="'), S(' data-stck="');
  var qe = S("></template>");
  function Ve(f, x, M) {
    if (ie(f, nn), M === null) throw Error(K(395));
    return ie(f, M), we(f, j);
  }
  var et = S('<div hidden id="'), it = S('">'), je = S("</div>"), mt = S('<svg aria-hidden="true" style="display:none" id="'), kt = S('">'), qt = S("</svg>"), Kt = S('<math aria-hidden="true" style="display:none" id="'), fr = S('">'), wn = S("</math>"), ei = S('<table hidden id="'), Gn = S('">'), dr = S("</table>"), Yn = S('<table hidden><tbody id="'), _i = S('">'), Qn = S("</tbody></table>"), Rr = S('<table hidden><tr id="'), Ir = S('">'), Kn = S("</tr></table>"), Ri = S('<table hidden><colgroup id="'), Or = S('">'), ti = S("</colgroup></table>");
  function zn(f, x, M, W) {
    switch (M.insertionMode) {
      case 0:
      case 1:
        return ie(f, et), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, it);
      case 2:
        return ie(f, mt), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, kt);
      case 3:
        return ie(f, Kt), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, fr);
      case 4:
        return ie(f, ei), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, Gn);
      case 5:
        return ie(f, Yn), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, _i);
      case 6:
        return ie(f, Rr), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, Ir);
      case 7:
        return ie(
          f,
          Ri
        ), ie(f, x.segmentPrefix), ie(f, y(W.toString(16))), we(f, Or);
      default:
        throw Error(K(397));
    }
  }
  function Zn(f, x) {
    switch (x.insertionMode) {
      case 0:
      case 1:
        return we(f, je);
      case 2:
        return we(f, qt);
      case 3:
        return we(f, wn);
      case 4:
        return we(f, dr);
      case 5:
        return we(f, Qn);
      case 6:
        return we(f, Kn);
      case 7:
        return we(f, ti);
      default:
        throw Error(K(397));
    }
  }
  var Ii = S('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), ni = S('$RS("'), hr = S('","'), Jn = S('")<\/script>'), pr = S('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), ri = S('$RC("'), Oi = S('","'), Pi = S('")<\/script>'), ht = S('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'), Bt = S('$RX("'), Pr = S('"'), Lr = S(")<\/script>"), $n = S(","), Li = /[<\u2028\u2029]/g;
  function qn(f) {
    return JSON.stringify(f).replace(Li, function(x) {
      switch (x) {
        case "<":
          return "\\u003c";
        case "\u2028":
          return "\\u2028";
        case "\u2029":
          return "\\u2029";
        default:
          throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
      }
    });
  }
  var Cn = Object.assign, Zt = Symbol.for("react.element"), vr = Symbol.for("react.portal"), It = Symbol.for("react.fragment"), ii = Symbol.for("react.strict_mode"), oi = Symbol.for("react.profiler"), li = Symbol.for("react.provider"), Bn = Symbol.for("react.context"), mr = Symbol.for("react.forward_ref"), er = Symbol.for("react.suspense"), tr = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), G = Symbol.for("react.scope"), U = Symbol.for("react.debug_trace_mode"), se = Symbol.for("react.legacy_hidden"), re = Symbol.for("react.default_value"), me = Symbol.iterator;
  function Re(f) {
    if (f == null) return null;
    if (typeof f == "function") return f.displayName || f.name || null;
    if (typeof f == "string") return f;
    switch (f) {
      case It:
        return "Fragment";
      case vr:
        return "Portal";
      case oi:
        return "Profiler";
      case ii:
        return "StrictMode";
      case er:
        return "Suspense";
      case tr:
        return "SuspenseList";
    }
    if (typeof f == "object") switch (f.$$typeof) {
      case Bn:
        return (f.displayName || "Context") + ".Consumer";
      case li:
        return (f._context.displayName || "Context") + ".Provider";
      case mr:
        var x = f.render;
        return f = f.displayName, f || (f = x.displayName || x.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
      case c:
        return x = f.displayName || null, x !== null ? x : Re(f.type) || "Memo";
      case k:
        x = f._payload, f = f._init;
        try {
          return Re(f(x));
        } catch {
        }
    }
    return null;
  }
  var Ie = {};
  function De(f, x) {
    if (f = f.contextTypes, !f) return Ie;
    var M = {}, W;
    for (W in f) M[W] = x[W];
    return M;
  }
  var Ke = null;
  function ft(f, x) {
    if (f !== x) {
      f.context._currentValue = f.parentValue, f = f.parent;
      var M = x.parent;
      if (f === null) {
        if (M !== null) throw Error(K(401));
      } else {
        if (M === null) throw Error(K(401));
        ft(f, M);
      }
      x.context._currentValue = x.value;
    }
  }
  function rn(f) {
    f.context._currentValue = f.parentValue, f = f.parent, f !== null && rn(f);
  }
  function on(f) {
    var x = f.parent;
    x !== null && on(x), f.context._currentValue = f.value;
  }
  function Wt(f, x) {
    if (f.context._currentValue = f.parentValue, f = f.parent, f === null) throw Error(K(402));
    f.depth === x.depth ? ft(f, x) : Wt(f, x);
  }
  function Fn(f, x) {
    var M = x.parent;
    if (M === null) throw Error(K(402));
    f.depth === M.depth ? ft(f, M) : Fn(f, M), x.context._currentValue = x.value;
  }
  function ln(f) {
    var x = Ke;
    x !== f && (x === null ? on(f) : f === null ? rn(x) : x.depth === f.depth ? ft(x, f) : x.depth > f.depth ? Wt(x, f) : Fn(x, f), Ke = f);
  }
  var an = { isMounted: function() {
    return !1;
  }, enqueueSetState: function(f, x) {
    f = f._reactInternals, f.queue !== null && f.queue.push(x);
  }, enqueueReplaceState: function(f, x) {
    f = f._reactInternals, f.replace = !0, f.queue = [x];
  }, enqueueForceUpdate: function() {
  } };
  function Dt(f, x, M, W) {
    var fe = f.state !== void 0 ? f.state : null;
    f.updater = an, f.props = M, f.state = fe;
    var le = { queue: [], replace: !1 };
    f._reactInternals = le;
    var ge = x.contextType;
    if (f.context = typeof ge == "object" && ge !== null ? ge._currentValue : W, ge = x.getDerivedStateFromProps, typeof ge == "function" && (ge = ge(M, fe), fe = ge == null ? fe : Cn({}, fe, ge), f.state = fe), typeof x.getDerivedStateFromProps != "function" && typeof f.getSnapshotBeforeUpdate != "function" && (typeof f.UNSAFE_componentWillMount == "function" || typeof f.componentWillMount == "function")) if (x = f.state, typeof f.componentWillMount == "function" && f.componentWillMount(), typeof f.UNSAFE_componentWillMount == "function" && f.UNSAFE_componentWillMount(), x !== f.state && an.enqueueReplaceState(f, f.state, null), le.queue !== null && 0 < le.queue.length) if (x = le.queue, ge = le.replace, le.queue = null, le.replace = !1, ge && x.length === 1) f.state = x[0];
    else {
      for (le = ge ? x[0] : f.state, fe = !0, ge = ge ? 1 : 0; ge < x.length; ge++) {
        var Te = x[ge];
        Te = typeof Te == "function" ? Te.call(f, le, M, W) : Te, Te != null && (fe ? (fe = !1, le = Cn({}, le, Te)) : Cn(le, Te));
      }
      f.state = le;
    }
    else le.queue = null;
  }
  var Sn = { id: 1, overflow: "" };
  function un(f, x, M) {
    var W = f.id;
    f = f.overflow;
    var fe = 32 - nr(W) - 1;
    W &= ~(1 << fe), M += 1;
    var le = 32 - nr(x) + fe;
    if (30 < le) {
      var ge = fe - fe % 5;
      return le = (W & (1 << ge) - 1).toString(32), W >>= ge, fe -= ge, { id: 1 << 32 - nr(x) + fe | M << fe | W, overflow: le + f };
    }
    return { id: 1 << le | M << fe | W, overflow: f };
  }
  var nr = Math.clz32 ? Math.clz32 : Do, rr = Math.log, $l = Math.LN2;
  function Do(f) {
    return f >>>= 0, f === 0 ? 32 : 31 - (rr(f) / $l | 0) | 0;
  }
  function ai(f, x) {
    return f === x && (f !== 0 || 1 / f === 1 / x) || f !== f && x !== x;
  }
  var ea = typeof Object.is == "function" ? Object.is : ai, An = null, Mr = null, ui = null, dt = null, jn = !1, ir = !1, _n = 0, Nn = null, Mi = 0;
  function gr() {
    if (An === null) throw Error(K(321));
    return An;
  }
  function Gi() {
    if (0 < Mi) throw Error(K(312));
    return { memoizedState: null, queue: null, next: null };
  }
  function Gr() {
    return dt === null ? ui === null ? (jn = !1, ui = dt = Gi()) : (jn = !0, dt = ui) : dt.next === null ? (jn = !1, dt = dt.next = Gi()) : (jn = !0, dt = dt.next), dt;
  }
  function si() {
    Mr = An = null, ir = !1, ui = null, Mi = 0, dt = Nn = null;
  }
  function co(f, x) {
    return typeof x == "function" ? x(f) : x;
  }
  function Hn(f, x, M) {
    if (An = gr(), dt = Gr(), jn) {
      var W = dt.queue;
      if (x = W.dispatch, Nn !== null && (M = Nn.get(W), M !== void 0)) {
        Nn.delete(W), W = dt.memoizedState;
        do
          W = f(W, M.action), M = M.next;
        while (M !== null);
        return dt.memoizedState = W, [W, x];
      }
      return [dt.memoizedState, x];
    }
    return f = f === co ? typeof x == "function" ? x() : x : M !== void 0 ? M(x) : x, dt.memoizedState = f, f = dt.queue = { last: null, dispatch: null }, f = f.dispatch = qi.bind(null, An, f), [dt.memoizedState, f];
  }
  function zi(f, x) {
    if (An = gr(), dt = Gr(), x = x === void 0 ? null : x, dt !== null) {
      var M = dt.memoizedState;
      if (M !== null && x !== null) {
        var W = M[1];
        e: if (W === null) W = !1;
        else {
          for (var fe = 0; fe < W.length && fe < x.length; fe++) if (!ea(x[fe], W[fe])) {
            W = !1;
            break e;
          }
          W = !0;
        }
        if (W) return M[0];
      }
    }
    return f = f(), dt.memoizedState = [f, x], f;
  }
  function qi(f, x, M) {
    if (25 <= Mi) throw Error(K(301));
    if (f === An) if (ir = !0, f = { action: M, next: null }, Nn === null && (Nn = /* @__PURE__ */ new Map()), M = Nn.get(x), M === void 0) Nn.set(x, f);
    else {
      for (x = M; x.next !== null; ) x = x.next;
      x.next = f;
    }
  }
  function Uo() {
    throw Error(K(394));
  }
  function yr() {
  }
  var ci = { readContext: function(f) {
    return f._currentValue;
  }, useContext: function(f) {
    return gr(), f._currentValue;
  }, useMemo: zi, useReducer: Hn, useRef: function(f) {
    An = gr(), dt = Gr();
    var x = dt.memoizedState;
    return x === null ? (f = { current: f }, dt.memoizedState = f) : x;
  }, useState: function(f) {
    return Hn(co, f);
  }, useInsertionEffect: yr, useLayoutEffect: function() {
  }, useCallback: function(f, x) {
    return zi(function() {
      return f;
    }, x);
  }, useImperativeHandle: yr, useEffect: yr, useDebugValue: yr, useDeferredValue: function(f) {
    return gr(), f;
  }, useTransition: function() {
    return gr(), [!1, Uo];
  }, useId: function() {
    var f = Mr.treeContext, x = f.overflow;
    f = f.id, f = (f & ~(1 << 32 - nr(f) - 1)).toString(32) + x;
    var M = fi;
    if (M === null) throw Error(K(404));
    return x = _n++, f = ":" + M.idPrefix + "R" + f, 0 < x && (f += "H" + x.toString(32)), f + ":";
  }, useMutableSource: function(f, x) {
    return gr(), x(f._source);
  }, useSyncExternalStore: function(f, x, M) {
    if (M === void 0) throw Error(K(407));
    return M();
  } }, fi = null, Ft = J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
  function zr(f) {
    return console.error(f), null;
  }
  function wr() {
  }
  function di(f, x, M, W, fe, le, ge, Te, We) {
    var Je = [], Ye = /* @__PURE__ */ new Set();
    return x = { destination: null, responseState: x, progressiveChunkSize: W === void 0 ? 12800 : W, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: Ye, pingedTasks: Je, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: fe === void 0 ? zr : fe, onAllReady: le === void 0 ? wr : le, onShellReady: ge === void 0 ? wr : ge, onShellError: Te === void 0 ? wr : Te, onFatalError: We === void 0 ? wr : We }, M = qr(x, 0, null, M, !1, !1), M.parentFlushed = !0, f = fo(x, f, null, M, Ye, Ie, null, Sn), Je.push(f), x;
  }
  function fo(f, x, M, W, fe, le, ge, Te) {
    f.allPendingTasks++, M === null ? f.pendingRootTasks++ : M.pendingTasks++;
    var We = { node: x, ping: function() {
      var Je = f.pingedTasks;
      Je.push(We), Je.length === 1 && mo(f);
    }, blockedBoundary: M, blockedSegment: W, abortSet: fe, legacyContext: le, context: ge, treeContext: Te };
    return fe.add(We), We;
  }
  function qr(f, x, M, W, fe, le) {
    return { status: 0, id: -1, index: x, parentFlushed: !1, chunks: [], children: [], formatContext: W, boundary: M, lastPushedText: fe, textEmbedded: le };
  }
  function Cr(f, x) {
    if (f = f.onError(x), f != null && typeof f != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof f + '" instead');
    return f;
  }
  function or(f, x) {
    var M = f.onShellError;
    M(x), M = f.onFatalError, M(x), f.destination !== null ? (f.status = 2, g(f.destination, x)) : (f.status = 1, f.fatalError = x);
  }
  function hi(f, x, M, W, fe) {
    for (An = {}, Mr = x, _n = 0, f = M(W, fe); ir; ) ir = !1, _n = 0, Mi += 1, dt = null, f = M(W, fe);
    return si(), f;
  }
  function ho(f, x, M, W) {
    var fe = M.render(), le = W.childContextTypes;
    if (le != null) {
      var ge = x.legacyContext;
      if (typeof M.getChildContext != "function") W = ge;
      else {
        M = M.getChildContext();
        for (var Te in M) if (!(Te in le)) throw Error(K(108, Re(W) || "Unknown", Te));
        W = Cn({}, ge, M);
      }
      x.legacyContext = W, Jt(f, x, fe), x.legacyContext = ge;
    } else Jt(f, x, fe);
  }
  function Vo(f, x) {
    if (f && f.defaultProps) {
      x = Cn({}, x), f = f.defaultProps;
      for (var M in f) x[M] === void 0 && (x[M] = f[M]);
      return x;
    }
    return x;
  }
  function po(f, x, M, W, fe) {
    if (typeof M == "function") if (M.prototype && M.prototype.isReactComponent) {
      fe = De(M, x.legacyContext);
      var le = M.contextType;
      le = new M(W, typeof le == "object" && le !== null ? le._currentValue : fe), Dt(le, M, W, fe), ho(f, x, le, M);
    } else {
      le = De(M, x.legacyContext), fe = hi(f, x, M, W, le);
      var ge = _n !== 0;
      if (typeof fe == "object" && fe !== null && typeof fe.render == "function" && fe.$$typeof === void 0) Dt(fe, M, W, le), ho(f, x, fe, M);
      else if (ge) {
        W = x.treeContext, x.treeContext = un(W, 1, 0);
        try {
          Jt(f, x, fe);
        } finally {
          x.treeContext = W;
        }
      } else Jt(f, x, fe);
    }
    else if (typeof M == "string") {
      switch (fe = x.blockedSegment, le = Tn(fe.chunks, M, W, f.responseState, fe.formatContext), fe.lastPushedText = !1, ge = fe.formatContext, fe.formatContext = L(ge, M, W), vo(f, x, le), fe.formatContext = ge, M) {
        case "area":
        case "base":
        case "br":
        case "col":
        case "embed":
        case "hr":
        case "img":
        case "input":
        case "keygen":
        case "link":
        case "meta":
        case "param":
        case "source":
        case "track":
        case "wbr":
          break;
        default:
          fe.chunks.push(gn, y(M), yn);
      }
      fe.lastPushedText = !1;
    } else {
      switch (M) {
        case se:
        case U:
        case ii:
        case oi:
        case It:
          Jt(f, x, W.children);
          return;
        case tr:
          Jt(f, x, W.children);
          return;
        case G:
          throw Error(K(343));
        case er:
          e: {
            M = x.blockedBoundary, fe = x.blockedSegment, le = W.fallback, W = W.children, ge = /* @__PURE__ */ new Set();
            var Te = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: ge, errorDigest: null }, We = qr(f, fe.chunks.length, Te, fe.formatContext, !1, !1);
            fe.children.push(We), fe.lastPushedText = !1;
            var Je = qr(f, 0, null, fe.formatContext, !1, !1);
            Je.parentFlushed = !0, x.blockedBoundary = Te, x.blockedSegment = Je;
            try {
              if (vo(
                f,
                x,
                W
              ), Je.lastPushedText && Je.textEmbedded && Je.chunks.push(Q), Je.status = 1, Fi(Te, Je), Te.pendingTasks === 0) break e;
            } catch (Ye) {
              Je.status = 4, Te.forceClientRender = !0, Te.errorDigest = Cr(f, Ye);
            } finally {
              x.blockedBoundary = M, x.blockedSegment = fe;
            }
            x = fo(f, le, M, We, ge, x.legacyContext, x.context, x.treeContext), f.pingedTasks.push(x);
          }
          return;
      }
      if (typeof M == "object" && M !== null) switch (M.$$typeof) {
        case mr:
          if (W = hi(f, x, M.render, W, fe), _n !== 0) {
            M = x.treeContext, x.treeContext = un(M, 1, 0);
            try {
              Jt(f, x, W);
            } finally {
              x.treeContext = M;
            }
          } else Jt(f, x, W);
          return;
        case c:
          M = M.type, W = Vo(M, W), po(f, x, M, W, fe);
          return;
        case li:
          if (fe = W.children, M = M._context, W = W.value, le = M._currentValue, M._currentValue = W, ge = Ke, Ke = W = { parent: ge, depth: ge === null ? 0 : ge.depth + 1, context: M, parentValue: le, value: W }, x.context = W, Jt(f, x, fe), f = Ke, f === null) throw Error(K(403));
          W = f.parentValue, f.context._currentValue = W === re ? f.context._defaultValue : W, f = Ke = f.parent, x.context = f;
          return;
        case Bn:
          W = W.children, W = W(M._currentValue), Jt(f, x, W);
          return;
        case k:
          fe = M._init, M = fe(M._payload), W = Vo(M, W), po(f, x, M, W, void 0);
          return;
      }
      throw Error(K(
        130,
        M == null ? M : typeof M,
        ""
      ));
    }
  }
  function Jt(f, x, M) {
    if (x.node = M, typeof M == "object" && M !== null) {
      switch (M.$$typeof) {
        case Zt:
          po(f, x, M.type, M.props, M.ref);
          return;
        case vr:
          throw Error(K(257));
        case k:
          var W = M._init;
          M = W(M._payload), Jt(f, x, M);
          return;
      }
      if (N(M)) {
        Bi(f, x, M);
        return;
      }
      if (M === null || typeof M != "object" ? W = null : (W = me && M[me] || M["@@iterator"], W = typeof W == "function" ? W : null), W && (W = W.call(M))) {
        if (M = W.next(), !M.done) {
          var fe = [];
          do
            fe.push(M.value), M = W.next();
          while (!M.done);
          Bi(f, x, fe);
        }
        return;
      }
      throw f = Object.prototype.toString.call(M), Error(K(31, f === "[object Object]" ? "object with keys {" + Object.keys(M).join(", ") + "}" : f));
    }
    typeof M == "string" ? (W = x.blockedSegment, W.lastPushedText = ae(x.blockedSegment.chunks, M, f.responseState, W.lastPushedText)) : typeof M == "number" && (W = x.blockedSegment, W.lastPushedText = ae(x.blockedSegment.chunks, "" + M, f.responseState, W.lastPushedText));
  }
  function Bi(f, x, M) {
    for (var W = M.length, fe = 0; fe < W; fe++) {
      var le = x.treeContext;
      x.treeContext = un(le, W, fe);
      try {
        vo(f, x, M[fe]);
      } finally {
        x.treeContext = le;
      }
    }
  }
  function vo(f, x, M) {
    var W = x.blockedSegment.formatContext, fe = x.legacyContext, le = x.context;
    try {
      return Jt(f, x, M);
    } catch (We) {
      if (si(), typeof We == "object" && We !== null && typeof We.then == "function") {
        M = We;
        var ge = x.blockedSegment, Te = qr(f, ge.chunks.length, null, ge.formatContext, ge.lastPushedText, !0);
        ge.children.push(Te), ge.lastPushedText = !1, f = fo(f, x.node, x.blockedBoundary, Te, x.abortSet, x.legacyContext, x.context, x.treeContext).ping, M.then(f, f), x.blockedSegment.formatContext = W, x.legacyContext = fe, x.context = le, ln(le);
      } else throw x.blockedSegment.formatContext = W, x.legacyContext = fe, x.context = le, ln(le), We;
    }
  }
  function ta(f) {
    var x = f.blockedBoundary;
    f = f.blockedSegment, f.status = 3, Yo(this, x, f);
  }
  function Xo(f, x, M) {
    var W = f.blockedBoundary;
    f.blockedSegment.status = 3, W === null ? (x.allPendingTasks--, x.status !== 2 && (x.status = 2, x.destination !== null && x.destination.close())) : (W.pendingTasks--, W.forceClientRender || (W.forceClientRender = !0, f = M === void 0 ? Error(K(432)) : M, W.errorDigest = x.onError(f), W.parentFlushed && x.clientRenderedBoundaries.push(W)), W.fallbackAbortableTasks.forEach(function(fe) {
      return Xo(fe, x, M);
    }), W.fallbackAbortableTasks.clear(), x.allPendingTasks--, x.allPendingTasks === 0 && (W = x.onAllReady, W()));
  }
  function Fi(f, x) {
    if (x.chunks.length === 0 && x.children.length === 1 && x.children[0].boundary === null) {
      var M = x.children[0];
      M.id = x.id, M.parentFlushed = !0, M.status === 1 && Fi(f, M);
    } else f.completedSegments.push(x);
  }
  function Yo(f, x, M) {
    if (x === null) {
      if (M.parentFlushed) {
        if (f.completedRootSegment !== null) throw Error(K(389));
        f.completedRootSegment = M;
      }
      f.pendingRootTasks--, f.pendingRootTasks === 0 && (f.onShellError = wr, x = f.onShellReady, x());
    } else x.pendingTasks--, x.forceClientRender || (x.pendingTasks === 0 ? (M.parentFlushed && M.status === 1 && Fi(x, M), x.parentFlushed && f.completedBoundaries.push(x), x.fallbackAbortableTasks.forEach(ta, f), x.fallbackAbortableTasks.clear()) : M.parentFlushed && M.status === 1 && (Fi(x, M), x.completedSegments.length === 1 && x.parentFlushed && f.partialBoundaries.push(x)));
    f.allPendingTasks--, f.allPendingTasks === 0 && (f = f.onAllReady, f());
  }
  function mo(f) {
    if (f.status !== 2) {
      var x = Ke, M = Ft.current;
      Ft.current = ci;
      var W = fi;
      fi = f.responseState;
      try {
        var fe = f.pingedTasks, le;
        for (le = 0; le < fe.length; le++) {
          var ge = fe[le], Te = f, We = ge.blockedSegment;
          if (We.status === 0) {
            ln(ge.context);
            try {
              Jt(Te, ge, ge.node), We.lastPushedText && We.textEmbedded && We.chunks.push(Q), ge.abortSet.delete(ge), We.status = 1, Yo(Te, ge.blockedBoundary, We);
            } catch (cn) {
              if (si(), typeof cn == "object" && cn !== null && typeof cn.then == "function") {
                var Je = ge.ping;
                cn.then(Je, Je);
              } else {
                ge.abortSet.delete(ge), We.status = 4;
                var Ye = ge.blockedBoundary, pt = cn, Ut = Cr(Te, pt);
                if (Ye === null ? or(Te, pt) : (Ye.pendingTasks--, Ye.forceClientRender || (Ye.forceClientRender = !0, Ye.errorDigest = Ut, Ye.parentFlushed && Te.clientRenderedBoundaries.push(Ye))), Te.allPendingTasks--, Te.allPendingTasks === 0) {
                  var sn = Te.onAllReady;
                  sn();
                }
              }
            } finally {
            }
          }
        }
        fe.splice(0, le), f.destination !== null && go(f, f.destination);
      } catch (cn) {
        Cr(f, cn), or(f, cn);
      } finally {
        fi = W, Ft.current = M, M === ci && ln(x);
      }
    }
  }
  function ji(f, x, M) {
    switch (M.parentFlushed = !0, M.status) {
      case 0:
        var W = M.id = f.nextSegmentId++;
        return M.lastPushedText = !1, M.textEmbedded = !1, f = f.responseState, ie(x, zt), ie(x, f.placeholderPrefix), f = y(W.toString(16)), ie(x, f), we(x, tn);
      case 1:
        M.status = 2;
        var fe = !0;
        W = M.chunks;
        var le = 0;
        M = M.children;
        for (var ge = 0; ge < M.length; ge++) {
          for (fe = M[ge]; le < fe.index; le++) ie(x, W[le]);
          fe = Hi(f, x, fe);
        }
        for (; le < W.length - 1; le++) ie(x, W[le]);
        return le < W.length && (fe = we(x, W[le])), fe;
      default:
        throw Error(K(390));
    }
  }
  function Hi(f, x, M) {
    var W = M.boundary;
    if (W === null) return ji(f, x, M);
    if (W.parentFlushed = !0, W.forceClientRender) W = W.errorDigest, we(x, ee), ie(x, ve), W && (ie(x, Me), ie(x, y(p(W))), ie(x, Ae)), we(x, qe), ji(f, x, M);
    else if (0 < W.pendingTasks) {
      W.rootSegmentID = f.nextSegmentId++, 0 < W.completedSegments.length && f.partialBoundaries.push(W);
      var fe = f.responseState, le = fe.nextSuspenseID++;
      fe = S(fe.boundaryPrefix + le.toString(16)), W = W.id = fe, Ve(x, f.responseState, W), ji(f, x, M);
    } else if (W.byteSize > f.progressiveChunkSize) W.rootSegmentID = f.nextSegmentId++, f.completedBoundaries.push(W), Ve(x, f.responseState, W.id), ji(f, x, M);
    else {
      if (we(x, St), M = W.completedSegments, M.length !== 1) throw Error(K(391));
      Hi(f, x, M[0]);
    }
    return we(x, ye);
  }
  function Qo(f, x, M) {
    return zn(x, f.responseState, M.formatContext, M.id), Hi(f, x, M), Zn(x, M.formatContext);
  }
  function Ko(f, x, M) {
    for (var W = M.completedSegments, fe = 0; fe < W.length; fe++) bi(f, x, M, W[fe]);
    if (W.length = 0, f = f.responseState, W = M.id, M = M.rootSegmentID, ie(x, f.startInlineScript), f.sentCompleteBoundaryFunction ? ie(x, ri) : (f.sentCompleteBoundaryFunction = !0, ie(x, pr)), W === null) throw Error(K(395));
    return M = y(M.toString(16)), ie(x, W), ie(x, Oi), ie(x, f.segmentPrefix), ie(x, M), we(x, Pi);
  }
  function bi(f, x, M, W) {
    if (W.status === 2) return !0;
    var fe = W.id;
    if (fe === -1) {
      if ((W.id = M.rootSegmentID) === -1) throw Error(K(392));
      return Qo(f, x, W);
    }
    return Qo(f, x, W), f = f.responseState, ie(x, f.startInlineScript), f.sentCompleteSegmentFunction ? ie(x, ni) : (f.sentCompleteSegmentFunction = !0, ie(x, Ii)), ie(x, f.segmentPrefix), fe = y(fe.toString(16)), ie(x, fe), ie(x, hr), ie(x, f.placeholderPrefix), ie(x, fe), we(x, Jn);
  }
  function go(f, x) {
    X = new Uint8Array(512), ne = 0;
    try {
      var M = f.completedRootSegment;
      if (M !== null && f.pendingRootTasks === 0) {
        Hi(f, x, M), f.completedRootSegment = null;
        var W = f.responseState.bootstrapChunks;
        for (M = 0; M < W.length - 1; M++) ie(x, W[M]);
        M < W.length && we(x, W[M]);
      }
      var fe = f.clientRenderedBoundaries, le;
      for (le = 0; le < fe.length; le++) {
        var ge = fe[le];
        W = x;
        var Te = f.responseState, We = ge.id, Je = ge.errorDigest, Ye = ge.errorMessage, pt = ge.errorComponentStack;
        if (ie(W, Te.startInlineScript), Te.sentClientRenderFunction ? ie(W, Bt) : (Te.sentClientRenderFunction = !0, ie(
          W,
          ht
        )), We === null) throw Error(K(395));
        ie(W, We), ie(W, Pr), (Je || Ye || pt) && (ie(W, $n), ie(W, y(qn(Je || "")))), (Ye || pt) && (ie(W, $n), ie(W, y(qn(Ye || "")))), pt && (ie(W, $n), ie(W, y(qn(pt)))), we(W, Lr);
      }
      fe.splice(0, le);
      var Ut = f.completedBoundaries;
      for (le = 0; le < Ut.length; le++) Ko(f, x, Ut[le]);
      Ut.splice(0, le), Z(x), X = new Uint8Array(512), ne = 0;
      var sn = f.partialBoundaries;
      for (le = 0; le < sn.length; le++) {
        var cn = sn[le];
        e: {
          fe = f, ge = x;
          var pi = cn.completedSegments;
          for (Te = 0; Te < pi.length; Te++) if (!bi(
            fe,
            ge,
            cn,
            pi[Te]
          )) {
            Te++, pi.splice(0, Te);
            var yo = !1;
            break e;
          }
          pi.splice(0, Te), yo = !0;
        }
        if (!yo) {
          f.destination = null, le++, sn.splice(0, le);
          return;
        }
      }
      sn.splice(0, le);
      var lr = f.completedBoundaries;
      for (le = 0; le < lr.length; le++) Ko(f, x, lr[le]);
      lr.splice(0, le);
    } finally {
      Z(x), f.allPendingTasks === 0 && f.pingedTasks.length === 0 && f.clientRenderedBoundaries.length === 0 && f.completedBoundaries.length === 0 && x.close();
    }
  }
  function Zo(f, x) {
    try {
      var M = f.abortableTasks;
      M.forEach(function(W) {
        return Xo(W, f, x);
      }), M.clear(), f.destination !== null && go(f, f.destination);
    } catch (W) {
      Cr(f, W), or(f, W);
    }
  }
  return Ul.renderToReadableStream = function(f, x) {
    return new Promise(function(M, W) {
      var fe, le, ge = new Promise(function(Ye, pt) {
        le = Ye, fe = pt;
      }), Te = di(f, b(x ? x.identifierPrefix : void 0, x ? x.nonce : void 0, x ? x.bootstrapScriptContent : void 0, x ? x.bootstrapScripts : void 0, x ? x.bootstrapModules : void 0), H(x ? x.namespaceURI : void 0), x ? x.progressiveChunkSize : void 0, x ? x.onError : void 0, le, function() {
        var Ye = new ReadableStream({ type: "bytes", pull: function(pt) {
          if (Te.status === 1) Te.status = 2, g(pt, Te.fatalError);
          else if (Te.status !== 2 && Te.destination === null) {
            Te.destination = pt;
            try {
              go(Te, pt);
            } catch (Ut) {
              Cr(Te, Ut), or(Te, Ut);
            }
          }
        }, cancel: function() {
          Zo(Te);
        } }, { highWaterMark: 0 });
        Ye.allReady = ge, M(Ye);
      }, function(Ye) {
        ge.catch(function() {
        }), W(Ye);
      }, fe);
      if (x && x.signal) {
        var We = x.signal, Je = function() {
          Zo(Te, We.reason), We.removeEventListener("abort", Je);
        };
        We.addEventListener("abort", Je);
      }
      mo(Te);
    });
  }, Ul.version = "18.3.1", Ul;
}
var af;
function rh() {
  if (af) return Jr;
  af = 1;
  var J, K;
  return J = th(), K = nh(), Jr.version = J.version, Jr.renderToString = J.renderToString, Jr.renderToStaticMarkup = J.renderToStaticMarkup, Jr.renderToNodeStream = J.renderToNodeStream, Jr.renderToStaticNodeStream = J.renderToStaticNodeStream, Jr.renderToReadableStream = K.renderToReadableStream, Jr;
}
var ih = bu(), ju = function(J, K) {
  return ju = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(X, ne) {
    X.__proto__ = ne;
  } || function(X, ne) {
    for (var ie in ne) Object.prototype.hasOwnProperty.call(ne, ie) && (X[ie] = ne[ie]);
  }, ju(J, K);
};
function Pf(J, K) {
  if (typeof K != "function" && K !== null)
    throw new TypeError("Class extends value " + String(K) + " is not a constructor or null");
  ju(J, K);
  function X() {
    this.constructor = J;
  }
  J.prototype = K === null ? Object.create(K) : (X.prototype = K.prototype, new X());
}
var uo = function() {
  return uo = Object.assign || function(K) {
    for (var X, ne = 1, ie = arguments.length; ne < ie; ne++) {
      X = arguments[ne];
      for (var we in X) Object.prototype.hasOwnProperty.call(X, we) && (K[we] = X[we]);
    }
    return K;
  }, uo.apply(this, arguments);
};
function Lf(J, K) {
  var X = {};
  for (var ne in J) Object.prototype.hasOwnProperty.call(J, ne) && K.indexOf(ne) < 0 && (X[ne] = J[ne]);
  if (J != null && typeof Object.getOwnPropertySymbols == "function")
    for (var ie = 0, ne = Object.getOwnPropertySymbols(J); ie < ne.length; ie++)
      K.indexOf(ne[ie]) < 0 && Object.prototype.propertyIsEnumerable.call(J, ne[ie]) && (X[ne[ie]] = J[ne[ie]]);
  return X;
}
var Vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function oh(J) {
  var K = typeof J;
  return J != null && (K == "object" || K == "function");
}
var Wu = oh, lh = typeof Vl == "object" && Vl && Vl.Object === Object && Vl, ah = lh, uh = ah, sh = typeof self == "object" && self && self.Object === Object && self, ch = uh || sh || Function("return this")(), Mf = ch, fh = Mf, dh = function() {
  return fh.Date.now();
}, hh = dh, ph = /\s/;
function vh(J) {
  for (var K = J.length; K-- && ph.test(J.charAt(K)); )
    ;
  return K;
}
var mh = vh, gh = mh, yh = /^\s+/;
function wh(J) {
  return J && J.slice(0, gh(J) + 1).replace(yh, "");
}
var Ch = wh, Sh = Mf, Nh = Sh.Symbol, Gf = Nh, uf = Gf, zf = Object.prototype, Eh = zf.hasOwnProperty, xh = zf.toString, Wo = uf ? uf.toStringTag : void 0;
function kh(J) {
  var K = Eh.call(J, Wo), X = J[Wo];
  try {
    J[Wo] = void 0;
    var ne = !0;
  } catch {
  }
  var ie = xh.call(J);
  return ne && (K ? J[Wo] = X : delete J[Wo]), ie;
}
var Th = kh, Ah = Object.prototype, _h = Ah.toString;
function Rh(J) {
  return _h.call(J);
}
var Ih = Rh, sf = Gf, Oh = Th, Ph = Ih, Lh = "[object Null]", Mh = "[object Undefined]", cf = sf ? sf.toStringTag : void 0;
function Gh(J) {
  return J == null ? J === void 0 ? Mh : Lh : cf && cf in Object(J) ? Oh(J) : Ph(J);
}
var zh = Gh;
function qh(J) {
  return J != null && typeof J == "object";
}
var Bh = qh, Fh = zh, jh = Bh, Hh = "[object Symbol]";
function bh(J) {
  return typeof J == "symbol" || jh(J) && Fh(J) == Hh;
}
var Wh = bh, Dh = Ch, ff = Wu, Uh = Wh, df = NaN, Vh = /^[-+]0x[0-9a-f]+$/i, Xh = /^0b[01]+$/i, Yh = /^0o[0-7]+$/i, Qh = parseInt;
function Kh(J) {
  if (typeof J == "number")
    return J;
  if (Uh(J))
    return df;
  if (ff(J)) {
    var K = typeof J.valueOf == "function" ? J.valueOf() : J;
    J = ff(K) ? K + "" : K;
  }
  if (typeof J != "string")
    return J === 0 ? J : +J;
  J = Dh(J);
  var X = Xh.test(J);
  return X || Yh.test(J) ? Qh(J.slice(2), X ? 2 : 8) : Vh.test(J) ? df : +J;
}
var Zh = Kh, Jh = Wu, Tu = hh, hf = Zh, $h = "Expected a function", ep = Math.max, tp = Math.min;
function np(J, K, X) {
  var ne, ie, we, Z, m, y, S = 0, g = !1, A = !1, _ = !0;
  if (typeof J != "function")
    throw new TypeError($h);
  K = hf(K) || 0, Jh(X) && (g = !!X.leading, A = "maxWait" in X, we = A ? ep(hf(X.maxWait) || 0, K) : we, _ = "trailing" in X ? !!X.trailing : _);
  function I(u) {
    var p = ne, w = ie;
    return ne = ie = void 0, S = u, Z = J.apply(w, p), Z;
  }
  function E(u) {
    return S = u, m = setTimeout(i, K), g ? I(u) : Z;
  }
  function T(u) {
    var p = u - y, w = u - S, C = K - p;
    return A ? tp(C, we - w) : C;
  }
  function v(u) {
    var p = u - y, w = u - S;
    return y === void 0 || p >= K || p < 0 || A && w >= we;
  }
  function i() {
    var u = Tu();
    if (v(u))
      return o(u);
    m = setTimeout(i, T(u));
  }
  function o(u) {
    return m = void 0, _ && ne ? I(u) : (ne = ie = void 0, Z);
  }
  function a() {
    m !== void 0 && clearTimeout(m), S = 0, ne = y = ie = m = void 0;
  }
  function d() {
    return m === void 0 ? Z : o(Tu());
  }
  function s() {
    var u = Tu(), p = v(u);
    if (ne = arguments, ie = this, y = u, p) {
      if (m === void 0)
        return E(y);
      if (A)
        return clearTimeout(m), m = setTimeout(i, K), I(y);
    }
    return m === void 0 && (m = setTimeout(i, K)), Z;
  }
  return s.cancel = a, s.flush = d, s;
}
var qf = np, rp = qf, ip = Wu, op = "Expected a function";
function lp(J, K, X) {
  var ne = !0, ie = !0;
  if (typeof J != "function")
    throw new TypeError(op);
  return ip(X) && (ne = "leading" in X ? !!X.leading : ne, ie = "trailing" in X ? !!X.trailing : ie), rp(J, K, {
    leading: ne,
    maxWait: K,
    trailing: ie
  });
}
var ap = lp, Bf = function(J, K, X, ne) {
  switch (K) {
    case "debounce":
      return qf(J, X, ne);
    case "throttle":
      return ap(J, X, ne);
    default:
      return J;
  }
}, Hu = function(J) {
  return typeof J == "function";
}, $r = function() {
  return typeof window > "u";
}, pf = function(J) {
  return J instanceof Element || J instanceof HTMLDocument;
}, Ff = function(J, K, X, ne) {
  return function(ie) {
    var we = ie.width, Z = ie.height;
    K(function(m) {
      return m.width === we && m.height === Z || m.width === we && !ne || m.height === Z && !X ? m : (J && Hu(J) && J(we, Z), { width: we, height: Z });
    });
  };
}, jf = (
  /** @class */
  (function(J) {
    Pf(K, J);
    function K(X) {
      var ne = J.call(this, X) || this;
      ne.cancelHandler = function() {
        ne.resizeHandler && ne.resizeHandler.cancel && (ne.resizeHandler.cancel(), ne.resizeHandler = null);
      }, ne.attachObserver = function() {
        var S = ne.props, g = S.targetRef, A = S.observerOptions;
        if (!$r()) {
          g && g.current && (ne.targetRef.current = g.current);
          var _ = ne.getElement();
          _ && (ne.observableElement && ne.observableElement === _ || (ne.observableElement = _, ne.resizeObserver.observe(_, A)));
        }
      }, ne.getElement = function() {
        var S = ne.props, g = S.querySelector, A = S.targetDomEl;
        if ($r())
          return null;
        if (g)
          return document.querySelector(g);
        if (A && pf(A))
          return A;
        if (ne.targetRef && pf(ne.targetRef.current))
          return ne.targetRef.current;
        var _ = ih.findDOMNode(ne);
        if (!_)
          return null;
        var I = ne.getRenderType();
        switch (I) {
          case "renderProp":
            return _;
          case "childFunction":
            return _;
          case "child":
            return _;
          case "childArray":
            return _;
          default:
            return _.parentElement;
        }
      }, ne.createResizeHandler = function(S) {
        var g = ne.props, A = g.handleWidth, _ = A === void 0 ? !0 : A, I = g.handleHeight, E = I === void 0 ? !0 : I, T = g.onResize;
        if (!(!_ && !E)) {
          var v = Ff(T, ne.setState.bind(ne), _, E);
          S.forEach(function(i) {
            var o = i && i.contentRect || {}, a = o.width, d = o.height, s = !ne.skipOnMount && !$r();
            s && v({ width: a, height: d }), ne.skipOnMount = !1;
          });
        }
      }, ne.getRenderType = function() {
        var S = ne.props, g = S.render, A = S.children;
        return Hu(g) ? "renderProp" : Hu(A) ? "childFunction" : Rt.isValidElement(A) ? "child" : Array.isArray(A) ? "childArray" : "parent";
      };
      var ie = X.skipOnMount, we = X.refreshMode, Z = X.refreshRate, m = Z === void 0 ? 1e3 : Z, y = X.refreshOptions;
      return ne.state = {
        width: void 0,
        height: void 0
      }, ne.skipOnMount = ie, ne.targetRef = Rt.createRef(), ne.observableElement = null, $r() || (ne.resizeHandler = Bf(ne.createResizeHandler, we, m, y), ne.resizeObserver = new window.ResizeObserver(ne.resizeHandler)), ne;
    }
    return K.prototype.componentDidMount = function() {
      this.attachObserver();
    }, K.prototype.componentDidUpdate = function() {
      this.attachObserver();
    }, K.prototype.componentWillUnmount = function() {
      $r() || (this.observableElement = null, this.resizeObserver.disconnect(), this.cancelHandler());
    }, K.prototype.render = function() {
      var X = this.props, ne = X.render, ie = X.children, we = X.nodeType, Z = we === void 0 ? "div" : we, m = this.state, y = m.width, S = m.height, g = { width: y, height: S, targetRef: this.targetRef }, A = this.getRenderType(), _;
      switch (A) {
        case "renderProp":
          return ne && ne(g);
        case "childFunction":
          return _ = ie, _(g);
        case "child":
          if (_ = ie, _.type && typeof _.type == "string") {
            g.targetRef;
            var I = Lf(g, ["targetRef"]);
            return Rt.cloneElement(_, I);
          }
          return Rt.cloneElement(_, g);
        case "childArray":
          return _ = ie, _.map(function(E) {
            return !!E && Rt.cloneElement(E, g);
          });
        default:
          return Rt.createElement(Z, null);
      }
    }, K;
  })(Rt.PureComponent)
);
function up(J, K) {
  K === void 0 && (K = {});
  var X = (
    /** @class */
    (function(we) {
      Pf(Z, we);
      function Z() {
        var m = we !== null && we.apply(this, arguments) || this;
        return m.ref = Rt.createRef(), m;
      }
      return Z.prototype.render = function() {
        var m = this.props, y = m.forwardedRef, S = Lf(m, ["forwardedRef"]), g = y ?? this.ref;
        return Rt.createElement(
          jf,
          uo({}, K, { targetRef: g }),
          Rt.createElement(J, uo({ targetRef: g }, S))
        );
      }, Z;
    })(Rt.Component)
  );
  function ne(we, Z) {
    return Rt.createElement(X, uo({}, we, { forwardedRef: Z }));
  }
  var ie = J.displayName || J.name;
  return ne.displayName = "withResizeDetector(".concat(ie, ")"), Rt.forwardRef(ne);
}
var sp = $r() ? Rt.useEffect : Rt.useLayoutEffect;
function cp(J) {
  J === void 0 && (J = {});
  var K = J.skipOnMount, X = K === void 0 ? !1 : K, ne = J.refreshMode, ie = J.refreshRate, we = ie === void 0 ? 1e3 : ie, Z = J.refreshOptions, m = J.handleWidth, y = m === void 0 ? !0 : m, S = J.handleHeight, g = S === void 0 ? !0 : S, A = J.targetRef, _ = J.observerOptions, I = J.onResize, E = Rt.useRef(X), T = Rt.useRef(null), v = A ?? T, i = Rt.useRef(), o = Rt.useState({
    width: void 0,
    height: void 0
  }), a = o[0], d = o[1];
  return sp(function() {
    if (!$r()) {
      var s = Ff(I, d, y, g), u = function(w) {
        !y && !g || w.forEach(function(C) {
          var N = C && C.contentRect || {}, R = N.width, P = N.height, z = !E.current && !$r();
          z && s({ width: R, height: P }), E.current = !1;
        });
      };
      i.current = Bf(u, ne, we, Z);
      var p = new window.ResizeObserver(i.current);
      return v.current && p.observe(v.current, _), function() {
        p.disconnect();
        var w = i.current;
        w && w.cancel && w.cancel();
      };
    }
  }, [ne, we, Z, y, g, I, _, v.current]), uo({ ref: v }, a);
}
const fp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: jf,
  useResizeDetector: cp,
  withResizeDetector: up
}, Symbol.toStringTag, { value: "Module" })), dp = /* @__PURE__ */ Vd(fp);
var Zl = { exports: {} }, Xl = { exports: {} }, vf;
function hp() {
  return vf || (vf = 1, (function(J, K) {
    var X = function() {
      if (typeof self < "u")
        return self;
      if (typeof window < "u")
        return window;
      if (typeof Yc < "u")
        return Yc;
      throw new Error("unable to locate global object");
    }, ne = X();
    J.exports = K = ne.fetch, ne.fetch && (K.default = ne.fetch.bind(ne)), K.Headers = ne.Headers, K.Request = ne.Request, K.Response = ne.Response;
  })(Xl, Xl.exports)), Xl.exports;
}
var Au = {}, _u = {}, mf;
function Du() {
  return mf || (mf = 1, (function(J) {
    const K = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", X = K + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ne = "[" + K + "][" + X + "]*", ie = new RegExp("^" + ne + "$"), we = function(m, y) {
      const S = [];
      let g = y.exec(m);
      for (; g; ) {
        const A = [];
        A.startIndex = y.lastIndex - g[0].length;
        const _ = g.length;
        for (let I = 0; I < _; I++)
          A.push(g[I]);
        S.push(A), g = y.exec(m);
      }
      return S;
    }, Z = function(m) {
      const y = ie.exec(m);
      return !(y === null || typeof y > "u");
    };
    J.isExist = function(m) {
      return typeof m < "u";
    }, J.isEmptyObject = function(m) {
      return Object.keys(m).length === 0;
    }, J.merge = function(m, y, S) {
      if (y) {
        const g = Object.keys(y), A = g.length;
        for (let _ = 0; _ < A; _++)
          S === "strict" ? m[g[_]] = [y[g[_]]] : m[g[_]] = y[g[_]];
      }
    }, J.getValue = function(m) {
      return J.isExist(m) ? m : "";
    }, J.isName = Z, J.getAllMatches = we, J.nameRegexp = ne;
  })(_u)), _u;
}
var gf;
function Hf() {
  if (gf) return Au;
  gf = 1;
  const J = Du(), K = {
    allowBooleanAttributes: !1,
    //A tag can have attributes without any value
    unpairedTags: []
  };
  Au.validate = function(i, o) {
    o = Object.assign({}, K, o);
    const a = [];
    let d = !1, s = !1;
    i[0] === "\uFEFF" && (i = i.substr(1));
    for (let u = 0; u < i.length; u++)
      if (i[u] === "<" && i[u + 1] === "?") {
        if (u += 2, u = ne(i, u), u.err) return u;
      } else if (i[u] === "<") {
        let p = u;
        if (u++, i[u] === "!") {
          u = ie(i, u);
          continue;
        } else {
          let w = !1;
          i[u] === "/" && (w = !0, u++);
          let C = "";
          for (; u < i.length && i[u] !== ">" && i[u] !== " " && i[u] !== "	" && i[u] !== `
` && i[u] !== "\r"; u++)
            C += i[u];
          if (C = C.trim(), C[C.length - 1] === "/" && (C = C.substring(0, C.length - 1), u--), !E(C)) {
            let P;
            return C.trim().length === 0 ? P = "Invalid space after '<'." : P = "Tag '" + C + "' is an invalid name.", _("InvalidTag", P, T(i, u));
          }
          const N = m(i, u);
          if (N === !1)
            return _("InvalidAttr", "Attributes for '" + C + "' have open quote.", T(i, u));
          let R = N.value;
          if (u = N.index, R[R.length - 1] === "/") {
            const P = u - R.length;
            R = R.substring(0, R.length - 1);
            const z = S(R, o);
            if (z === !0)
              d = !0;
            else
              return _(z.err.code, z.err.msg, T(i, P + z.err.line));
          } else if (w)
            if (N.tagClosed) {
              if (R.trim().length > 0)
                return _("InvalidTag", "Closing tag '" + C + "' can't have attributes or invalid starting.", T(i, p));
              if (a.length === 0)
                return _("InvalidTag", "Closing tag '" + C + "' has not been opened.", T(i, p));
              {
                const P = a.pop();
                if (C !== P.tagName) {
                  let z = T(i, P.tagStartPos);
                  return _(
                    "InvalidTag",
                    "Expected closing tag '" + P.tagName + "' (opened in line " + z.line + ", col " + z.col + ") instead of closing tag '" + C + "'.",
                    T(i, p)
                  );
                }
                a.length == 0 && (s = !0);
              }
            } else return _("InvalidTag", "Closing tag '" + C + "' doesn't have proper closing.", T(i, u));
          else {
            const P = S(R, o);
            if (P !== !0)
              return _(P.err.code, P.err.msg, T(i, u - R.length + P.err.line));
            if (s === !0)
              return _("InvalidXml", "Multiple possible root nodes found.", T(i, u));
            o.unpairedTags.indexOf(C) !== -1 || a.push({ tagName: C, tagStartPos: p }), d = !0;
          }
          for (u++; u < i.length; u++)
            if (i[u] === "<")
              if (i[u + 1] === "!") {
                u++, u = ie(i, u);
                continue;
              } else if (i[u + 1] === "?") {
                if (u = ne(i, ++u), u.err) return u;
              } else
                break;
            else if (i[u] === "&") {
              const P = A(i, u);
              if (P == -1)
                return _("InvalidChar", "char '&' is not expected.", T(i, u));
              u = P;
            } else if (s === !0 && !X(i[u]))
              return _("InvalidXml", "Extra text at the end", T(i, u));
          i[u] === "<" && u--;
        }
      } else {
        if (X(i[u]))
          continue;
        return _("InvalidChar", "char '" + i[u] + "' is not expected.", T(i, u));
      }
    if (d) {
      if (a.length == 1)
        return _("InvalidTag", "Unclosed tag '" + a[0].tagName + "'.", T(i, a[0].tagStartPos));
      if (a.length > 0)
        return _("InvalidXml", "Invalid '" + JSON.stringify(a.map((u) => u.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
    } else return _("InvalidXml", "Start tag expected.", 1);
    return !0;
  };
  function X(i) {
    return i === " " || i === "	" || i === `
` || i === "\r";
  }
  function ne(i, o) {
    const a = o;
    for (; o < i.length; o++)
      if (i[o] == "?" || i[o] == " ") {
        const d = i.substr(a, o - a);
        if (o > 5 && d === "xml")
          return _("InvalidXml", "XML declaration allowed only at the start of the document.", T(i, o));
        if (i[o] == "?" && i[o + 1] == ">") {
          o++;
          break;
        } else
          continue;
      }
    return o;
  }
  function ie(i, o) {
    if (i.length > o + 5 && i[o + 1] === "-" && i[o + 2] === "-") {
      for (o += 3; o < i.length; o++)
        if (i[o] === "-" && i[o + 1] === "-" && i[o + 2] === ">") {
          o += 2;
          break;
        }
    } else if (i.length > o + 8 && i[o + 1] === "D" && i[o + 2] === "O" && i[o + 3] === "C" && i[o + 4] === "T" && i[o + 5] === "Y" && i[o + 6] === "P" && i[o + 7] === "E") {
      let a = 1;
      for (o += 8; o < i.length; o++)
        if (i[o] === "<")
          a++;
        else if (i[o] === ">" && (a--, a === 0))
          break;
    } else if (i.length > o + 9 && i[o + 1] === "[" && i[o + 2] === "C" && i[o + 3] === "D" && i[o + 4] === "A" && i[o + 5] === "T" && i[o + 6] === "A" && i[o + 7] === "[") {
      for (o += 8; o < i.length; o++)
        if (i[o] === "]" && i[o + 1] === "]" && i[o + 2] === ">") {
          o += 2;
          break;
        }
    }
    return o;
  }
  const we = '"', Z = "'";
  function m(i, o) {
    let a = "", d = "", s = !1;
    for (; o < i.length; o++) {
      if (i[o] === we || i[o] === Z)
        d === "" ? d = i[o] : d !== i[o] || (d = "");
      else if (i[o] === ">" && d === "") {
        s = !0;
        break;
      }
      a += i[o];
    }
    return d !== "" ? !1 : {
      value: a,
      index: o,
      tagClosed: s
    };
  }
  const y = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
  function S(i, o) {
    const a = J.getAllMatches(i, y), d = {};
    for (let s = 0; s < a.length; s++) {
      if (a[s][1].length === 0)
        return _("InvalidAttr", "Attribute '" + a[s][2] + "' has no space in starting.", v(a[s]));
      if (a[s][3] !== void 0 && a[s][4] === void 0)
        return _("InvalidAttr", "Attribute '" + a[s][2] + "' is without value.", v(a[s]));
      if (a[s][3] === void 0 && !o.allowBooleanAttributes)
        return _("InvalidAttr", "boolean attribute '" + a[s][2] + "' is not allowed.", v(a[s]));
      const u = a[s][2];
      if (!I(u))
        return _("InvalidAttr", "Attribute '" + u + "' is an invalid name.", v(a[s]));
      if (!d.hasOwnProperty(u))
        d[u] = 1;
      else
        return _("InvalidAttr", "Attribute '" + u + "' is repeated.", v(a[s]));
    }
    return !0;
  }
  function g(i, o) {
    let a = /\d/;
    for (i[o] === "x" && (o++, a = /[\da-fA-F]/); o < i.length; o++) {
      if (i[o] === ";")
        return o;
      if (!i[o].match(a))
        break;
    }
    return -1;
  }
  function A(i, o) {
    if (o++, i[o] === ";")
      return -1;
    if (i[o] === "#")
      return o++, g(i, o);
    let a = 0;
    for (; o < i.length; o++, a++)
      if (!(i[o].match(/\w/) && a < 20)) {
        if (i[o] === ";")
          break;
        return -1;
      }
    return o;
  }
  function _(i, o, a) {
    return {
      err: {
        code: i,
        msg: o,
        line: a.line || a,
        col: a.col
      }
    };
  }
  function I(i) {
    return J.isName(i);
  }
  function E(i) {
    return J.isName(i);
  }
  function T(i, o) {
    const a = i.substring(0, o).split(/\r?\n/);
    return {
      line: a.length,
      // column number is last line's length + 1, because column numbering starts at 1:
      col: a[a.length - 1].length + 1
    };
  }
  function v(i) {
    return i.startIndex + i[1].length;
  }
  return Au;
}
var Yl = {}, yf;
function pp() {
  if (yf) return Yl;
  yf = 1;
  const J = {
    preserveOrder: !1,
    attributeNamePrefix: "@_",
    attributesGroupName: !1,
    textNodeName: "#text",
    ignoreAttributes: !0,
    removeNSPrefix: !1,
    // remove NS from tag name or attribute name if true
    allowBooleanAttributes: !1,
    //a tag can have attributes without any value
    //ignoreRootElement : false,
    parseTagValue: !0,
    parseAttributeValue: !1,
    trimValues: !0,
    //Trim string values of tag and attributes
    cdataPropName: !1,
    numberParseOptions: {
      hex: !0,
      leadingZeros: !0,
      eNotation: !0
    },
    tagValueProcessor: function(X, ne) {
      return ne;
    },
    attributeValueProcessor: function(X, ne) {
      return ne;
    },
    stopNodes: [],
    //nested tags will not be parsed even for errors
    alwaysCreateTextNode: !1,
    isArray: () => !1,
    commentPropName: !1,
    unpairedTags: [],
    processEntities: !0,
    htmlEntities: !1,
    ignoreDeclaration: !1,
    ignorePiTags: !1,
    transformTagName: !1,
    transformAttributeName: !1,
    updateTag: function(X, ne, ie) {
      return X;
    }
    // skipEmptyListItem: false
  }, K = function(X) {
    return Object.assign({}, J, X);
  };
  return Yl.buildOptions = K, Yl.defaultOptions = J, Yl;
}
var Ru, wf;
function vp() {
  if (wf) return Ru;
  wf = 1;
  class J {
    constructor(X) {
      this.tagname = X, this.child = [], this[":@"] = {};
    }
    add(X, ne) {
      X === "__proto__" && (X = "#__proto__"), this.child.push({ [X]: ne });
    }
    addChild(X) {
      X.tagname === "__proto__" && (X.tagname = "#__proto__"), X[":@"] && Object.keys(X[":@"]).length > 0 ? this.child.push({ [X.tagname]: X.child, ":@": X[":@"] }) : this.child.push({ [X.tagname]: X.child });
    }
  }
  return Ru = J, Ru;
}
var Iu, Cf;
function mp() {
  if (Cf) return Iu;
  Cf = 1;
  const J = Du();
  function K(S, g) {
    const A = {};
    if (S[g + 3] === "O" && S[g + 4] === "C" && S[g + 5] === "T" && S[g + 6] === "Y" && S[g + 7] === "P" && S[g + 8] === "E") {
      g = g + 9;
      let _ = 1, I = !1, E = !1, T = "";
      for (; g < S.length; g++)
        if (S[g] === "<" && !E) {
          if (I && ie(S, g)) {
            g += 7;
            let v, i;
            [v, i, g] = X(S, g + 1), i.indexOf("&") === -1 && (A[y(v)] = {
              regx: RegExp(`&${v};`, "g"),
              val: i
            });
          } else if (I && we(S, g)) g += 8;
          else if (I && Z(S, g)) g += 8;
          else if (I && m(S, g)) g += 9;
          else if (ne) E = !0;
          else throw new Error("Invalid DOCTYPE");
          _++, T = "";
        } else if (S[g] === ">") {
          if (E ? S[g - 1] === "-" && S[g - 2] === "-" && (E = !1, _--) : _--, _ === 0)
            break;
        } else S[g] === "[" ? I = !0 : T += S[g];
      if (_ !== 0)
        throw new Error("Unclosed DOCTYPE");
    } else
      throw new Error("Invalid Tag instead of DOCTYPE");
    return { entities: A, i: g };
  }
  function X(S, g) {
    let A = "";
    for (; g < S.length && S[g] !== "'" && S[g] !== '"'; g++)
      A += S[g];
    if (A = A.trim(), A.indexOf(" ") !== -1) throw new Error("External entites are not supported");
    const _ = S[g++];
    let I = "";
    for (; g < S.length && S[g] !== _; g++)
      I += S[g];
    return [A, I, g];
  }
  function ne(S, g) {
    return S[g + 1] === "!" && S[g + 2] === "-" && S[g + 3] === "-";
  }
  function ie(S, g) {
    return S[g + 1] === "!" && S[g + 2] === "E" && S[g + 3] === "N" && S[g + 4] === "T" && S[g + 5] === "I" && S[g + 6] === "T" && S[g + 7] === "Y";
  }
  function we(S, g) {
    return S[g + 1] === "!" && S[g + 2] === "E" && S[g + 3] === "L" && S[g + 4] === "E" && S[g + 5] === "M" && S[g + 6] === "E" && S[g + 7] === "N" && S[g + 8] === "T";
  }
  function Z(S, g) {
    return S[g + 1] === "!" && S[g + 2] === "A" && S[g + 3] === "T" && S[g + 4] === "T" && S[g + 5] === "L" && S[g + 6] === "I" && S[g + 7] === "S" && S[g + 8] === "T";
  }
  function m(S, g) {
    return S[g + 1] === "!" && S[g + 2] === "N" && S[g + 3] === "O" && S[g + 4] === "T" && S[g + 5] === "A" && S[g + 6] === "T" && S[g + 7] === "I" && S[g + 8] === "O" && S[g + 9] === "N";
  }
  function y(S) {
    if (J.isName(S))
      return S;
    throw new Error(`Invalid entity name ${S}`);
  }
  return Iu = K, Iu;
}
var Ou, Sf;
function gp() {
  if (Sf) return Ou;
  Sf = 1;
  const J = /^[-+]?0x[a-fA-F0-9]+$/, K = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, X = {
    hex: !0,
    // oct: false,
    leadingZeros: !0,
    decimalPoint: ".",
    eNotation: !0
    //skipLike: /regex/
  };
  function ne(Z, m = {}) {
    if (m = Object.assign({}, X, m), !Z || typeof Z != "string") return Z;
    let y = Z.trim();
    if (m.skipLike !== void 0 && m.skipLike.test(y)) return Z;
    if (Z === "0") return 0;
    if (m.hex && J.test(y))
      return we(y, 16);
    if (y.search(/[eE]/) !== -1) {
      const S = y.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
      if (S) {
        if (m.leadingZeros)
          y = (S[1] || "") + S[3];
        else if (!(S[2] === "0" && S[3][0] === ".")) return Z;
        return m.eNotation ? Number(y) : Z;
      } else
        return Z;
    } else {
      const S = K.exec(y);
      if (S) {
        const g = S[1], A = S[2];
        let _ = ie(S[3]);
        if (!m.leadingZeros && A.length > 0 && g && y[2] !== ".") return Z;
        if (!m.leadingZeros && A.length > 0 && !g && y[1] !== ".") return Z;
        if (m.leadingZeros && A === Z) return 0;
        {
          const I = Number(y), E = "" + I;
          return E.search(/[eE]/) !== -1 ? m.eNotation ? I : Z : y.indexOf(".") !== -1 ? E === "0" && _ === "" || E === _ || g && E === "-" + _ ? I : Z : A ? _ === E || g + _ === E ? I : Z : y === E || y === g + E ? I : Z;
        }
      } else
        return Z;
    }
  }
  function ie(Z) {
    return Z && Z.indexOf(".") !== -1 && (Z = Z.replace(/0+$/, ""), Z === "." ? Z = "0" : Z[0] === "." ? Z = "0" + Z : Z[Z.length - 1] === "." && (Z = Z.substr(0, Z.length - 1))), Z;
  }
  function we(Z, m) {
    if (parseInt) return parseInt(Z, m);
    if (Number.parseInt) return Number.parseInt(Z, m);
    if (window && window.parseInt) return window.parseInt(Z, m);
    throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
  }
  return Ou = ne, Ou;
}
var Pu, Nf;
function bf() {
  if (Nf) return Pu;
  Nf = 1;
  function J(K) {
    return typeof K == "function" ? K : Array.isArray(K) ? (X) => {
      for (const ne of K)
        if (typeof ne == "string" && X === ne || ne instanceof RegExp && ne.test(X))
          return !0;
    } : () => !1;
  }
  return Pu = J, Pu;
}
var Lu, Ef;
function yp() {
  if (Ef) return Lu;
  Ef = 1;
  const J = Du(), K = vp(), X = mp(), ne = gp(), ie = bf();
  class we {
    constructor(u) {
      this.options = u, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
        apos: { regex: /&(apos|#39|#x27);/g, val: "'" },
        gt: { regex: /&(gt|#62|#x3E);/g, val: ">" },
        lt: { regex: /&(lt|#60|#x3C);/g, val: "<" },
        quot: { regex: /&(quot|#34|#x22);/g, val: '"' }
      }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = {
        space: { regex: /&(nbsp|#160);/g, val: " " },
        // "lt" : { regex: /&(lt|#60);/g, val: "<" },
        // "gt" : { regex: /&(gt|#62);/g, val: ">" },
        // "amp" : { regex: /&(amp|#38);/g, val: "&" },
        // "quot" : { regex: /&(quot|#34);/g, val: "\"" },
        // "apos" : { regex: /&(apos|#39);/g, val: "'" },
        cent: { regex: /&(cent|#162);/g, val: "¢" },
        pound: { regex: /&(pound|#163);/g, val: "£" },
        yen: { regex: /&(yen|#165);/g, val: "¥" },
        euro: { regex: /&(euro|#8364);/g, val: "€" },
        copyright: { regex: /&(copy|#169);/g, val: "©" },
        reg: { regex: /&(reg|#174);/g, val: "®" },
        inr: { regex: /&(inr|#8377);/g, val: "₹" },
        num_dec: { regex: /&#([0-9]{1,7});/g, val: (p, w) => String.fromCharCode(Number.parseInt(w, 10)) },
        num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (p, w) => String.fromCharCode(Number.parseInt(w, 16)) }
      }, this.addExternalEntities = Z, this.parseXml = A, this.parseTextData = m, this.resolveNameSpace = y, this.buildAttributesMap = g, this.isItStopNode = T, this.replaceEntitiesValue = I, this.readStopNodeData = a, this.saveTextToParentTag = E, this.addChild = _, this.ignoreAttributesFn = ie(this.options.ignoreAttributes);
    }
  }
  function Z(s) {
    const u = Object.keys(s);
    for (let p = 0; p < u.length; p++) {
      const w = u[p];
      this.lastEntities[w] = {
        regex: new RegExp("&" + w + ";", "g"),
        val: s[w]
      };
    }
  }
  function m(s, u, p, w, C, N, R) {
    if (s !== void 0 && (this.options.trimValues && !w && (s = s.trim()), s.length > 0)) {
      R || (s = this.replaceEntitiesValue(s));
      const P = this.options.tagValueProcessor(u, s, p, C, N);
      return P == null ? s : typeof P != typeof s || P !== s ? P : this.options.trimValues ? d(s, this.options.parseTagValue, this.options.numberParseOptions) : s.trim() === s ? d(s, this.options.parseTagValue, this.options.numberParseOptions) : s;
    }
  }
  function y(s) {
    if (this.options.removeNSPrefix) {
      const u = s.split(":"), p = s.charAt(0) === "/" ? "/" : "";
      if (u[0] === "xmlns")
        return "";
      u.length === 2 && (s = p + u[1]);
    }
    return s;
  }
  const S = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
  function g(s, u, p) {
    if (this.options.ignoreAttributes !== !0 && typeof s == "string") {
      const w = J.getAllMatches(s, S), C = w.length, N = {};
      for (let R = 0; R < C; R++) {
        const P = this.resolveNameSpace(w[R][1]);
        if (this.ignoreAttributesFn(P, u))
          continue;
        let z = w[R][4], q = this.options.attributeNamePrefix + P;
        if (P.length)
          if (this.options.transformAttributeName && (q = this.options.transformAttributeName(q)), q === "__proto__" && (q = "#__proto__"), z !== void 0) {
            this.options.trimValues && (z = z.trim()), z = this.replaceEntitiesValue(z);
            const V = this.options.attributeValueProcessor(P, z, u);
            V == null ? N[q] = z : typeof V != typeof z || V !== z ? N[q] = V : N[q] = d(
              z,
              this.options.parseAttributeValue,
              this.options.numberParseOptions
            );
          } else this.options.allowBooleanAttributes && (N[q] = !0);
      }
      if (!Object.keys(N).length)
        return;
      if (this.options.attributesGroupName) {
        const R = {};
        return R[this.options.attributesGroupName] = N, R;
      }
      return N;
    }
  }
  const A = function(s) {
    s = s.replace(/\r\n?/g, `
`);
    const u = new K("!xml");
    let p = u, w = "", C = "";
    for (let N = 0; N < s.length; N++)
      if (s[N] === "<")
        if (s[N + 1] === "/") {
          const P = i(s, ">", N, "Closing Tag is not closed.");
          let z = s.substring(N + 2, P).trim();
          if (this.options.removeNSPrefix) {
            const D = z.indexOf(":");
            D !== -1 && (z = z.substr(D + 1));
          }
          this.options.transformTagName && (z = this.options.transformTagName(z)), p && (w = this.saveTextToParentTag(w, p, C));
          const q = C.substring(C.lastIndexOf(".") + 1);
          if (z && this.options.unpairedTags.indexOf(z) !== -1)
            throw new Error(`Unpaired tag can not be used as closing tag: </${z}>`);
          let V = 0;
          q && this.options.unpairedTags.indexOf(q) !== -1 ? (V = C.lastIndexOf(".", C.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : V = C.lastIndexOf("."), C = C.substring(0, V), p = this.tagsNodeStack.pop(), w = "", N = P;
        } else if (s[N + 1] === "?") {
          let P = o(s, N, !1, "?>");
          if (!P) throw new Error("Pi Tag is not closed.");
          if (w = this.saveTextToParentTag(w, p, C), !(this.options.ignoreDeclaration && P.tagName === "?xml" || this.options.ignorePiTags)) {
            const z = new K(P.tagName);
            z.add(this.options.textNodeName, ""), P.tagName !== P.tagExp && P.attrExpPresent && (z[":@"] = this.buildAttributesMap(P.tagExp, C, P.tagName)), this.addChild(p, z, C);
          }
          N = P.closeIndex + 1;
        } else if (s.substr(N + 1, 3) === "!--") {
          const P = i(s, "-->", N + 4, "Comment is not closed.");
          if (this.options.commentPropName) {
            const z = s.substring(N + 4, P - 2);
            w = this.saveTextToParentTag(w, p, C), p.add(this.options.commentPropName, [{ [this.options.textNodeName]: z }]);
          }
          N = P;
        } else if (s.substr(N + 1, 2) === "!D") {
          const P = X(s, N);
          this.docTypeEntities = P.entities, N = P.i;
        } else if (s.substr(N + 1, 2) === "![") {
          const P = i(s, "]]>", N, "CDATA is not closed.") - 2, z = s.substring(N + 9, P);
          w = this.saveTextToParentTag(w, p, C);
          let q = this.parseTextData(z, p.tagname, C, !0, !1, !0, !0);
          q == null && (q = ""), this.options.cdataPropName ? p.add(this.options.cdataPropName, [{ [this.options.textNodeName]: z }]) : p.add(this.options.textNodeName, q), N = P + 2;
        } else {
          let P = o(s, N, this.options.removeNSPrefix), z = P.tagName;
          const q = P.rawTagName;
          let V = P.tagExp, D = P.attrExpPresent, B = P.closeIndex;
          this.options.transformTagName && (z = this.options.transformTagName(z)), p && w && p.tagname !== "!xml" && (w = this.saveTextToParentTag(w, p, C, !1));
          const b = p;
          if (b && this.options.unpairedTags.indexOf(b.tagname) !== -1 && (p = this.tagsNodeStack.pop(), C = C.substring(0, C.lastIndexOf("."))), z !== u.tagname && (C += C ? "." + z : z), this.isItStopNode(this.options.stopNodes, C, z)) {
            let F = "";
            if (V.length > 0 && V.lastIndexOf("/") === V.length - 1)
              z[z.length - 1] === "/" ? (z = z.substr(0, z.length - 1), C = C.substr(0, C.length - 1), V = z) : V = V.substr(0, V.length - 1), N = P.closeIndex;
            else if (this.options.unpairedTags.indexOf(z) !== -1)
              N = P.closeIndex;
            else {
              const L = this.readStopNodeData(s, q, B + 1);
              if (!L) throw new Error(`Unexpected end of ${q}`);
              N = L.i, F = L.tagContent;
            }
            const H = new K(z);
            z !== V && D && (H[":@"] = this.buildAttributesMap(V, C, z)), F && (F = this.parseTextData(F, z, C, !0, D, !0, !0)), C = C.substr(0, C.lastIndexOf(".")), H.add(this.options.textNodeName, F), this.addChild(p, H, C);
          } else {
            if (V.length > 0 && V.lastIndexOf("/") === V.length - 1) {
              z[z.length - 1] === "/" ? (z = z.substr(0, z.length - 1), C = C.substr(0, C.length - 1), V = z) : V = V.substr(0, V.length - 1), this.options.transformTagName && (z = this.options.transformTagName(z));
              const F = new K(z);
              z !== V && D && (F[":@"] = this.buildAttributesMap(V, C, z)), this.addChild(p, F, C), C = C.substr(0, C.lastIndexOf("."));
            } else {
              const F = new K(z);
              this.tagsNodeStack.push(p), z !== V && D && (F[":@"] = this.buildAttributesMap(V, C, z)), this.addChild(p, F, C), p = F;
            }
            w = "", N = B;
          }
        }
      else
        w += s[N];
    return u.child;
  };
  function _(s, u, p) {
    const w = this.options.updateTag(u.tagname, p, u[":@"]);
    w === !1 || (typeof w == "string" && (u.tagname = w), s.addChild(u));
  }
  const I = function(s) {
    if (this.options.processEntities) {
      for (let u in this.docTypeEntities) {
        const p = this.docTypeEntities[u];
        s = s.replace(p.regx, p.val);
      }
      for (let u in this.lastEntities) {
        const p = this.lastEntities[u];
        s = s.replace(p.regex, p.val);
      }
      if (this.options.htmlEntities)
        for (let u in this.htmlEntities) {
          const p = this.htmlEntities[u];
          s = s.replace(p.regex, p.val);
        }
      s = s.replace(this.ampEntity.regex, this.ampEntity.val);
    }
    return s;
  };
  function E(s, u, p, w) {
    return s && (w === void 0 && (w = u.child.length === 0), s = this.parseTextData(
      s,
      u.tagname,
      p,
      !1,
      u[":@"] ? Object.keys(u[":@"]).length !== 0 : !1,
      w
    ), s !== void 0 && s !== "" && u.add(this.options.textNodeName, s), s = ""), s;
  }
  function T(s, u, p) {
    const w = "*." + p;
    for (const C in s) {
      const N = s[C];
      if (w === N || u === N) return !0;
    }
    return !1;
  }
  function v(s, u, p = ">") {
    let w, C = "";
    for (let N = u; N < s.length; N++) {
      let R = s[N];
      if (w)
        R === w && (w = "");
      else if (R === '"' || R === "'")
        w = R;
      else if (R === p[0])
        if (p[1]) {
          if (s[N + 1] === p[1])
            return {
              data: C,
              index: N
            };
        } else
          return {
            data: C,
            index: N
          };
      else R === "	" && (R = " ");
      C += R;
    }
  }
  function i(s, u, p, w) {
    const C = s.indexOf(u, p);
    if (C === -1)
      throw new Error(w);
    return C + u.length - 1;
  }
  function o(s, u, p, w = ">") {
    const C = v(s, u + 1, w);
    if (!C) return;
    let N = C.data;
    const R = C.index, P = N.search(/\s/);
    let z = N, q = !0;
    P !== -1 && (z = N.substring(0, P), N = N.substring(P + 1).trimStart());
    const V = z;
    if (p) {
      const D = z.indexOf(":");
      D !== -1 && (z = z.substr(D + 1), q = z !== C.data.substr(D + 1));
    }
    return {
      tagName: z,
      tagExp: N,
      closeIndex: R,
      attrExpPresent: q,
      rawTagName: V
    };
  }
  function a(s, u, p) {
    const w = p;
    let C = 1;
    for (; p < s.length; p++)
      if (s[p] === "<")
        if (s[p + 1] === "/") {
          const N = i(s, ">", p, `${u} is not closed`);
          if (s.substring(p + 2, N).trim() === u && (C--, C === 0))
            return {
              tagContent: s.substring(w, p),
              i: N
            };
          p = N;
        } else if (s[p + 1] === "?")
          p = i(s, "?>", p + 1, "StopNode is not closed.");
        else if (s.substr(p + 1, 3) === "!--")
          p = i(s, "-->", p + 3, "StopNode is not closed.");
        else if (s.substr(p + 1, 2) === "![")
          p = i(s, "]]>", p, "StopNode is not closed.") - 2;
        else {
          const N = o(s, p, ">");
          N && ((N && N.tagName) === u && N.tagExp[N.tagExp.length - 1] !== "/" && C++, p = N.closeIndex);
        }
  }
  function d(s, u, p) {
    if (u && typeof s == "string") {
      const w = s.trim();
      return w === "true" ? !0 : w === "false" ? !1 : ne(s, p);
    } else
      return J.isExist(s) ? s : "";
  }
  return Lu = we, Lu;
}
var Mu = {}, xf;
function wp() {
  if (xf) return Mu;
  xf = 1;
  function J(we, Z) {
    return K(we, Z);
  }
  function K(we, Z, m) {
    let y;
    const S = {};
    for (let g = 0; g < we.length; g++) {
      const A = we[g], _ = X(A);
      let I = "";
      if (m === void 0 ? I = _ : I = m + "." + _, _ === Z.textNodeName)
        y === void 0 ? y = A[_] : y += "" + A[_];
      else {
        if (_ === void 0)
          continue;
        if (A[_]) {
          let E = K(A[_], Z, I);
          const T = ie(E, Z);
          A[":@"] ? ne(E, A[":@"], I, Z) : Object.keys(E).length === 1 && E[Z.textNodeName] !== void 0 && !Z.alwaysCreateTextNode ? E = E[Z.textNodeName] : Object.keys(E).length === 0 && (Z.alwaysCreateTextNode ? E[Z.textNodeName] = "" : E = ""), S[_] !== void 0 && S.hasOwnProperty(_) ? (Array.isArray(S[_]) || (S[_] = [S[_]]), S[_].push(E)) : Z.isArray(_, I, T) ? S[_] = [E] : S[_] = E;
        }
      }
    }
    return typeof y == "string" ? y.length > 0 && (S[Z.textNodeName] = y) : y !== void 0 && (S[Z.textNodeName] = y), S;
  }
  function X(we) {
    const Z = Object.keys(we);
    for (let m = 0; m < Z.length; m++) {
      const y = Z[m];
      if (y !== ":@") return y;
    }
  }
  function ne(we, Z, m, y) {
    if (Z) {
      const S = Object.keys(Z), g = S.length;
      for (let A = 0; A < g; A++) {
        const _ = S[A];
        y.isArray(_, m + "." + _, !0, !0) ? we[_] = [Z[_]] : we[_] = Z[_];
      }
    }
  }
  function ie(we, Z) {
    const { textNodeName: m } = Z, y = Object.keys(we).length;
    return !!(y === 0 || y === 1 && (we[m] || typeof we[m] == "boolean" || we[m] === 0));
  }
  return Mu.prettify = J, Mu;
}
var Gu, kf;
function Cp() {
  if (kf) return Gu;
  kf = 1;
  const { buildOptions: J } = pp(), K = yp(), { prettify: X } = wp(), ne = Hf();
  class ie {
    constructor(Z) {
      this.externalEntities = {}, this.options = J(Z);
    }
    /**
     * Parse XML dats to JS object 
     * @param {string|Buffer} xmlData 
     * @param {boolean|Object} validationOption 
     */
    parse(Z, m) {
      if (typeof Z != "string") if (Z.toString)
        Z = Z.toString();
      else
        throw new Error("XML data is accepted in String or Bytes[] form.");
      if (m) {
        m === !0 && (m = {});
        const g = ne.validate(Z, m);
        if (g !== !0)
          throw Error(`${g.err.msg}:${g.err.line}:${g.err.col}`);
      }
      const y = new K(this.options);
      y.addExternalEntities(this.externalEntities);
      const S = y.parseXml(Z);
      return this.options.preserveOrder || S === void 0 ? S : X(S, this.options);
    }
    /**
     * Add Entity which is not by default supported by this library
     * @param {string} key 
     * @param {string} value 
     */
    addEntity(Z, m) {
      if (m.indexOf("&") !== -1)
        throw new Error("Entity value can't have '&'");
      if (Z.indexOf("&") !== -1 || Z.indexOf(";") !== -1)
        throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");
      if (m === "&")
        throw new Error("An entity with value '&' is not permitted");
      this.externalEntities[Z] = m;
    }
  }
  return Gu = ie, Gu;
}
var zu, Tf;
function Sp() {
  if (Tf) return zu;
  Tf = 1;
  const J = `
`;
  function K(m, y) {
    let S = "";
    return y.format && y.indentBy.length > 0 && (S = J), X(m, y, "", S);
  }
  function X(m, y, S, g) {
    let A = "", _ = !1;
    for (let I = 0; I < m.length; I++) {
      const E = m[I], T = ne(E);
      if (T === void 0) continue;
      let v = "";
      if (S.length === 0 ? v = T : v = `${S}.${T}`, T === y.textNodeName) {
        let s = E[T];
        we(v, y) || (s = y.tagValueProcessor(T, s), s = Z(s, y)), _ && (A += g), A += s, _ = !1;
        continue;
      } else if (T === y.cdataPropName) {
        _ && (A += g), A += `<![CDATA[${E[T][0][y.textNodeName]}]]>`, _ = !1;
        continue;
      } else if (T === y.commentPropName) {
        A += g + `<!--${E[T][0][y.textNodeName]}-->`, _ = !0;
        continue;
      } else if (T[0] === "?") {
        const s = ie(E[":@"], y), u = T === "?xml" ? "" : g;
        let p = E[T][0][y.textNodeName];
        p = p.length !== 0 ? " " + p : "", A += u + `<${T}${p}${s}?>`, _ = !0;
        continue;
      }
      let i = g;
      i !== "" && (i += y.indentBy);
      const o = ie(E[":@"], y), a = g + `<${T}${o}`, d = X(E[T], y, v, i);
      y.unpairedTags.indexOf(T) !== -1 ? y.suppressUnpairedNode ? A += a + ">" : A += a + "/>" : (!d || d.length === 0) && y.suppressEmptyNode ? A += a + "/>" : d && d.endsWith(">") ? A += a + `>${d}${g}</${T}>` : (A += a + ">", d && g !== "" && (d.includes("/>") || d.includes("</")) ? A += g + y.indentBy + d + g : A += d, A += `</${T}>`), _ = !0;
    }
    return A;
  }
  function ne(m) {
    const y = Object.keys(m);
    for (let S = 0; S < y.length; S++) {
      const g = y[S];
      if (m.hasOwnProperty(g) && g !== ":@")
        return g;
    }
  }
  function ie(m, y) {
    let S = "";
    if (m && !y.ignoreAttributes)
      for (let g in m) {
        if (!m.hasOwnProperty(g)) continue;
        let A = y.attributeValueProcessor(g, m[g]);
        A = Z(A, y), A === !0 && y.suppressBooleanAttributes ? S += ` ${g.substr(y.attributeNamePrefix.length)}` : S += ` ${g.substr(y.attributeNamePrefix.length)}="${A}"`;
      }
    return S;
  }
  function we(m, y) {
    m = m.substr(0, m.length - y.textNodeName.length - 1);
    let S = m.substr(m.lastIndexOf(".") + 1);
    for (let g in y.stopNodes)
      if (y.stopNodes[g] === m || y.stopNodes[g] === "*." + S) return !0;
    return !1;
  }
  function Z(m, y) {
    if (m && m.length > 0 && y.processEntities)
      for (let S = 0; S < y.entities.length; S++) {
        const g = y.entities[S];
        m = m.replace(g.regex, g.val);
      }
    return m;
  }
  return zu = K, zu;
}
var qu, Af;
function Np() {
  if (Af) return qu;
  Af = 1;
  const J = Sp(), K = bf(), X = {
    attributeNamePrefix: "@_",
    attributesGroupName: !1,
    textNodeName: "#text",
    ignoreAttributes: !0,
    cdataPropName: !1,
    format: !1,
    indentBy: "  ",
    suppressEmptyNode: !1,
    suppressUnpairedNode: !0,
    suppressBooleanAttributes: !0,
    tagValueProcessor: function(m, y) {
      return y;
    },
    attributeValueProcessor: function(m, y) {
      return y;
    },
    preserveOrder: !1,
    commentPropName: !1,
    unpairedTags: [],
    entities: [
      { regex: new RegExp("&", "g"), val: "&amp;" },
      //it must be on top
      { regex: new RegExp(">", "g"), val: "&gt;" },
      { regex: new RegExp("<", "g"), val: "&lt;" },
      { regex: new RegExp("'", "g"), val: "&apos;" },
      { regex: new RegExp('"', "g"), val: "&quot;" }
    ],
    processEntities: !0,
    stopNodes: [],
    // transformTagName: false,
    // transformAttributeName: false,
    oneListGroup: !1
  };
  function ne(m) {
    this.options = Object.assign({}, X, m), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
      return !1;
    } : (this.ignoreAttributesFn = K(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Z), this.processTextOrObjNode = ie, this.options.format ? (this.indentate = we, this.tagEndChar = `>
`, this.newLine = `
`) : (this.indentate = function() {
      return "";
    }, this.tagEndChar = ">", this.newLine = "");
  }
  ne.prototype.build = function(m) {
    return this.options.preserveOrder ? J(m, this.options) : (Array.isArray(m) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (m = {
      [this.options.arrayNodeName]: m
    }), this.j2x(m, 0, []).val);
  }, ne.prototype.j2x = function(m, y, S) {
    let g = "", A = "";
    const _ = S.join(".");
    for (let I in m)
      if (Object.prototype.hasOwnProperty.call(m, I))
        if (typeof m[I] > "u")
          this.isAttribute(I) && (A += "");
        else if (m[I] === null)
          this.isAttribute(I) || I === this.options.cdataPropName ? A += "" : I[0] === "?" ? A += this.indentate(y) + "<" + I + "?" + this.tagEndChar : A += this.indentate(y) + "<" + I + "/" + this.tagEndChar;
        else if (m[I] instanceof Date)
          A += this.buildTextValNode(m[I], I, "", y);
        else if (typeof m[I] != "object") {
          const E = this.isAttribute(I);
          if (E && !this.ignoreAttributesFn(E, _))
            g += this.buildAttrPairStr(E, "" + m[I]);
          else if (!E)
            if (I === this.options.textNodeName) {
              let T = this.options.tagValueProcessor(I, "" + m[I]);
              A += this.replaceEntitiesValue(T);
            } else
              A += this.buildTextValNode(m[I], I, "", y);
        } else if (Array.isArray(m[I])) {
          const E = m[I].length;
          let T = "", v = "";
          for (let i = 0; i < E; i++) {
            const o = m[I][i];
            if (!(typeof o > "u")) if (o === null)
              I[0] === "?" ? A += this.indentate(y) + "<" + I + "?" + this.tagEndChar : A += this.indentate(y) + "<" + I + "/" + this.tagEndChar;
            else if (typeof o == "object")
              if (this.options.oneListGroup) {
                const a = this.j2x(o, y + 1, S.concat(I));
                T += a.val, this.options.attributesGroupName && o.hasOwnProperty(this.options.attributesGroupName) && (v += a.attrStr);
              } else
                T += this.processTextOrObjNode(o, I, y, S);
            else if (this.options.oneListGroup) {
              let a = this.options.tagValueProcessor(I, o);
              a = this.replaceEntitiesValue(a), T += a;
            } else
              T += this.buildTextValNode(o, I, "", y);
          }
          this.options.oneListGroup && (T = this.buildObjectNode(T, I, v, y)), A += T;
        } else if (this.options.attributesGroupName && I === this.options.attributesGroupName) {
          const E = Object.keys(m[I]), T = E.length;
          for (let v = 0; v < T; v++)
            g += this.buildAttrPairStr(E[v], "" + m[I][E[v]]);
        } else
          A += this.processTextOrObjNode(m[I], I, y, S);
    return { attrStr: g, val: A };
  }, ne.prototype.buildAttrPairStr = function(m, y) {
    return y = this.options.attributeValueProcessor(m, "" + y), y = this.replaceEntitiesValue(y), this.options.suppressBooleanAttributes && y === "true" ? " " + m : " " + m + '="' + y + '"';
  };
  function ie(m, y, S, g) {
    const A = this.j2x(m, S + 1, g.concat(y));
    return m[this.options.textNodeName] !== void 0 && Object.keys(m).length === 1 ? this.buildTextValNode(m[this.options.textNodeName], y, A.attrStr, S) : this.buildObjectNode(A.val, y, A.attrStr, S);
  }
  ne.prototype.buildObjectNode = function(m, y, S, g) {
    if (m === "")
      return y[0] === "?" ? this.indentate(g) + "<" + y + S + "?" + this.tagEndChar : this.indentate(g) + "<" + y + S + this.closeTag(y) + this.tagEndChar;
    {
      let A = "</" + y + this.tagEndChar, _ = "";
      return y[0] === "?" && (_ = "?", A = ""), (S || S === "") && m.indexOf("<") === -1 ? this.indentate(g) + "<" + y + S + _ + ">" + m + A : this.options.commentPropName !== !1 && y === this.options.commentPropName && _.length === 0 ? this.indentate(g) + `<!--${m}-->` + this.newLine : this.indentate(g) + "<" + y + S + _ + this.tagEndChar + m + this.indentate(g) + A;
    }
  }, ne.prototype.closeTag = function(m) {
    let y = "";
    return this.options.unpairedTags.indexOf(m) !== -1 ? this.options.suppressUnpairedNode || (y = "/") : this.options.suppressEmptyNode ? y = "/" : y = `></${m}`, y;
  }, ne.prototype.buildTextValNode = function(m, y, S, g) {
    if (this.options.cdataPropName !== !1 && y === this.options.cdataPropName)
      return this.indentate(g) + `<![CDATA[${m}]]>` + this.newLine;
    if (this.options.commentPropName !== !1 && y === this.options.commentPropName)
      return this.indentate(g) + `<!--${m}-->` + this.newLine;
    if (y[0] === "?")
      return this.indentate(g) + "<" + y + S + "?" + this.tagEndChar;
    {
      let A = this.options.tagValueProcessor(y, m);
      return A = this.replaceEntitiesValue(A), A === "" ? this.indentate(g) + "<" + y + S + this.closeTag(y) + this.tagEndChar : this.indentate(g) + "<" + y + S + ">" + A + "</" + y + this.tagEndChar;
    }
  }, ne.prototype.replaceEntitiesValue = function(m) {
    if (m && m.length > 0 && this.options.processEntities)
      for (let y = 0; y < this.options.entities.length; y++) {
        const S = this.options.entities[y];
        m = m.replace(S.regex, S.val);
      }
    return m;
  };
  function we(m) {
    return this.options.indentBy.repeat(m);
  }
  function Z(m) {
    return m.startsWith(this.options.attributeNamePrefix) && m !== this.options.textNodeName ? m.substr(this.attrPrefixLen) : !1;
  }
  return qu = ne, qu;
}
var Bu, _f;
function Ep() {
  if (_f) return Bu;
  _f = 1;
  const J = Hf(), K = Cp(), X = Np();
  return Bu = {
    XMLParser: K,
    XMLValidator: J,
    XMLBuilder: X
  }, Bu;
}
var xp = Zl.exports, Rf;
function kp() {
  return Rf || (Rf = 1, (function(J, K) {
    (function(ne, ie) {
      J.exports = ie();
    })(xp, () => (
      /******/
      (() => {
        var X = [
          /* 0 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__awaiter || function(I, E, T, v) {
              function i(o) {
                return o instanceof T ? o : new T(function(a) {
                  a(o);
                });
              }
              return new (T || (T = Promise))(function(o, a) {
                function d(p) {
                  try {
                    u(v.next(p));
                  } catch (w) {
                    a(w);
                  }
                }
                function s(p) {
                  try {
                    u(v.throw(p));
                  } catch (w) {
                    a(w);
                  }
                }
                function u(p) {
                  p.done ? o(p.value) : i(p.value).then(d, s);
                }
                u((v = v.apply(I, E || [])).next());
              });
            }, g = this && this.__generator || function(I, E) {
              var T = { label: 0, sent: function() {
                if (o[0] & 1) throw o[1];
                return o[1];
              }, trys: [], ops: [] }, v, i, o, a;
              return a = { next: d(0), throw: d(1), return: d(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
                return this;
              }), a;
              function d(u) {
                return function(p) {
                  return s([u, p]);
                };
              }
              function s(u) {
                if (v) throw new TypeError("Generator is already executing.");
                for (; T; ) try {
                  if (v = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o;
                  switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
                    case 0:
                    case 1:
                      o = u;
                      break;
                    case 4:
                      return T.label++, { value: u[1], done: !1 };
                    case 5:
                      T.label++, i = u[1], u = [0];
                      continue;
                    case 7:
                      u = T.ops.pop(), T.trys.pop();
                      continue;
                    default:
                      if (o = T.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
                        T = 0;
                        continue;
                      }
                      if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) {
                        T.label = u[1];
                        break;
                      }
                      if (u[0] === 6 && T.label < o[1]) {
                        T.label = o[1], o = u;
                        break;
                      }
                      if (o && T.label < o[2]) {
                        T.label = o[2], T.ops.push(u);
                        break;
                      }
                      o[2] && T.ops.pop(), T.trys.pop();
                      continue;
                  }
                  u = E.call(I, T);
                } catch (p) {
                  u = [6, p], i = 0;
                } finally {
                  v = o = 0;
                }
                if (u[0] & 5) throw u[1];
                return { value: u[0] ? u[1] : void 0, done: !0 };
              }
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.parseFile = void 0;
            var A = y(1), _ = y(3);
            m.parseFile = _.default, m.default = (function(I, E) {
              return S(void 0, void 0, void 0, function() {
                return g(this, function(T) {
                  switch (T.label) {
                    case 0:
                      return !E?.fileName && (0, A.isAccession)(I) ? [4, (0, A.default)(I, E)] : [3, 2];
                    case 1:
                      return [2, T.sent()];
                    case 2:
                      return [2, (0, _.default)(I, E)[0]];
                  }
                });
              });
            });
          }),
          /* 1 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__awaiter || function(E, T, v, i) {
              function o(a) {
                return a instanceof v ? a : new v(function(d) {
                  d(a);
                });
              }
              return new (v || (v = Promise))(function(a, d) {
                function s(w) {
                  try {
                    p(i.next(w));
                  } catch (C) {
                    d(C);
                  }
                }
                function u(w) {
                  try {
                    p(i.throw(w));
                  } catch (C) {
                    d(C);
                  }
                }
                function p(w) {
                  w.done ? a(w.value) : o(w.value).then(s, u);
                }
                p((i = i.apply(E, T || [])).next());
              });
            }, g = this && this.__generator || function(E, T) {
              var v = { label: 0, sent: function() {
                if (a[0] & 1) throw a[1];
                return a[1];
              }, trys: [], ops: [] }, i, o, a, d;
              return d = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
                return this;
              }), d;
              function s(p) {
                return function(w) {
                  return u([p, w]);
                };
              }
              function u(p) {
                if (i) throw new TypeError("Generator is already executing.");
                for (; v; ) try {
                  if (i = 1, o && (a = p[0] & 2 ? o.return : p[0] ? o.throw || ((a = o.return) && a.call(o), 0) : o.next) && !(a = a.call(o, p[1])).done) return a;
                  switch (o = 0, a && (p = [p[0] & 2, a.value]), p[0]) {
                    case 0:
                    case 1:
                      a = p;
                      break;
                    case 4:
                      return v.label++, { value: p[1], done: !1 };
                    case 5:
                      v.label++, o = p[1], p = [0];
                      continue;
                    case 7:
                      p = v.ops.pop(), v.trys.pop();
                      continue;
                    default:
                      if (a = v.trys, !(a = a.length > 0 && a[a.length - 1]) && (p[0] === 6 || p[0] === 2)) {
                        v = 0;
                        continue;
                      }
                      if (p[0] === 3 && (!a || p[1] > a[0] && p[1] < a[3])) {
                        v.label = p[1];
                        break;
                      }
                      if (p[0] === 6 && v.label < a[1]) {
                        v.label = a[1], a = p;
                        break;
                      }
                      if (a && v.label < a[2]) {
                        v.label = a[2], v.ops.push(p);
                        break;
                      }
                      a[2] && v.ops.pop(), v.trys.pop();
                      continue;
                  }
                  p = T.call(E, v);
                } catch (w) {
                  p = [6, w], o = 0;
                } finally {
                  i = a = 0;
                }
                if (p[0] & 5) throw p[1];
                return { value: p[0] ? p[1] : void 0, done: !0 };
              }
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.isAccession = void 0;
            var A = y(2), _ = y(3);
            m.default = (function(E, T) {
              return S(void 0, void 0, void 0, function() {
                var v, i, o, a;
                return g(this, function(d) {
                  switch (d.label) {
                    case 0:
                      v = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=".concat(E.trim(), "&rettype=gbwithparts&retmode=text"), E.startsWith("BB") && (typeof window < "u" && typeof process > "u" || T?.cors ? v = "https://cors-anywhere.herokuapp.com/http://parts.igem.org/cgi/xml/part.cgi?part=".concat(E.trim()) : v = "http://parts.igem.org/cgi/xml/part.cgi?part=".concat(E.trim())), i = "", d.label = 1;
                    case 1:
                      return d.trys.push([1, 4, , 5]), [4, (0, A.default)(v)];
                    case 2:
                      return o = d.sent(), [4, o.text()];
                    case 3:
                      return i = d.sent(), [3, 5];
                    case 4:
                      throw a = d.sent(), new Error("Failed to get part: accession=".concat(E, " url=").concat(v, " err=").concat(a));
                    case 5:
                      if (!o.ok || !i.length)
                        throw new Error("Failed to get part, no body returned: accession=".concat(E, " url=").concat(v));
                      return [4, (0, _.default)(i)];
                    case 6:
                      return [2, d.sent()[0]];
                  }
                });
              });
            });
            var I = function(E) {
              return !!(E.startsWith("BB") || E.length < 14 && E.match(/^[a-z0-9_\-.]+$/i));
            };
            m.isAccession = I;
          }),
          /* 2 */
          /***/
          ((Z) => {
            Z.exports = hp();
          }),
          /* 3 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(4), g = y(5), A = y(7), _ = y(9), I = y(10), E = y(11), T = y(12), v = y(15), i = y(16), o = y(6);
            m.default = (function(a, d) {
              var s = d?.fileName || "", u = s.split(S.sep).pop() || s;
              if (!a)
                throw Error("cannot parse null or empty string");
              var p = a.substring(0, a.search(`
`)), w = p.replace(/[^atcgATCG]/, "").length, C = w / p.length > 0.8, N = s && u ? u.substring(0, u.search("\\.")) : "Untitled", R = !1;
              try {
                var P = JSON.parse(a);
                ["bases", "annotations", "primers"].every(function(D) {
                  return typeof P[D] < "u";
                }) && (R = !0);
              } catch {
              }
              var z = a.substring(0, 200), q;
              switch (!0) {
                // JBEI
                case z.includes(':seq="http://jbei.org/sequence"'):
                case a.startsWith("<seq:seq"):
                  q = (0, E.default)(a);
                  break;
                // FASTA
                case a.startsWith(">"):
                case a.startsWith(";"):
                case s.endsWith(".seq"):
                case s.endsWith(".fa"):
                case s.endsWith(".fas"):
                case s.endsWith(".fasta"):
                  q = (0, _.default)(a, s);
                  break;
                // Genbank
                case (a.includes("LOCUS") && a.includes("ORIGIN")):
                case s.endsWith(".gb"):
                case s.endsWith(".gbk"):
                case s.endsWith(".genbank"):
                case s.endsWith(".ape"):
                  q = (0, I.default)(a, s);
                  break;
                // SnapGene
                case s.endsWith(".dna"):
                  q = (0, i.default)(d);
                  break;
                // SeqBuilder
                case z.includes("Written by SeqBuilder"):
                case s.endsWith(".sbd"):
                  q = (0, v.default)(a, s);
                  break;
                // BioBrick XML
                case z.includes("Parts from the iGEM"):
                case z.includes("<part_list>"):
                  q = (0, A.default)(a);
                  break;
                // Benchling JSON
                case R:
                  q = (0, g.default)(a);
                  break;
                // SBOL
                case z.includes("RDF"):
                  q = (0, T.default)(a, s);
                  break;
                // a DNA text file without an official formatting
                case C: {
                  var V = (0, o.complement)(a).seq;
                  q = [{ annotations: [], name: N, seq: V, type: (0, o.guessType)(V) }];
                  break;
                }
                default:
                  throw Error("".concat(s, " File type not recognized: ").concat(a));
              }
              return q.map(function(D) {
                return {
                  annotations: D.annotations.sort(function(B, b) {
                    return B.start - b.start || B.end - b.end;
                  }).map(function(B) {
                    return {
                      color: B.color,
                      direction: B.direction,
                      end: B.end,
                      name: B.name,
                      start: B.start,
                      type: B.type
                    };
                  }),
                  name: D.name,
                  seq: D.seq,
                  type: D.type
                };
              });
            });
          }),
          /* 4 */
          /***/
          ((Z) => {
            function m(A) {
              if (typeof A != "string")
                throw new TypeError("Path must be a string. Received " + JSON.stringify(A));
            }
            function y(A, _) {
              for (var I = "", E = 0, T = -1, v = 0, i, o = 0; o <= A.length; ++o) {
                if (o < A.length)
                  i = A.charCodeAt(o);
                else {
                  if (i === 47)
                    break;
                  i = 47;
                }
                if (i === 47) {
                  if (!(T === o - 1 || v === 1)) if (T !== o - 1 && v === 2) {
                    if (I.length < 2 || E !== 2 || I.charCodeAt(I.length - 1) !== 46 || I.charCodeAt(I.length - 2) !== 46) {
                      if (I.length > 2) {
                        var a = I.lastIndexOf("/");
                        if (a !== I.length - 1) {
                          a === -1 ? (I = "", E = 0) : (I = I.slice(0, a), E = I.length - 1 - I.lastIndexOf("/")), T = o, v = 0;
                          continue;
                        }
                      } else if (I.length === 2 || I.length === 1) {
                        I = "", E = 0, T = o, v = 0;
                        continue;
                      }
                    }
                    _ && (I.length > 0 ? I += "/.." : I = "..", E = 2);
                  } else
                    I.length > 0 ? I += "/" + A.slice(T + 1, o) : I = A.slice(T + 1, o), E = o - T - 1;
                  T = o, v = 0;
                } else i === 46 && v !== -1 ? ++v : v = -1;
              }
              return I;
            }
            function S(A, _) {
              var I = _.dir || _.root, E = _.base || (_.name || "") + (_.ext || "");
              return I ? I === _.root ? I + E : I + A + E : E;
            }
            var g = {
              // path.resolve([from ...], to)
              resolve: function() {
                for (var _ = "", I = !1, E, T = arguments.length - 1; T >= -1 && !I; T--) {
                  var v;
                  T >= 0 ? v = arguments[T] : (E === void 0 && (E = process.cwd()), v = E), m(v), v.length !== 0 && (_ = v + "/" + _, I = v.charCodeAt(0) === 47);
                }
                return _ = y(_, !I), I ? _.length > 0 ? "/" + _ : "/" : _.length > 0 ? _ : ".";
              },
              normalize: function(_) {
                if (m(_), _.length === 0) return ".";
                var I = _.charCodeAt(0) === 47, E = _.charCodeAt(_.length - 1) === 47;
                return _ = y(_, !I), _.length === 0 && !I && (_ = "."), _.length > 0 && E && (_ += "/"), I ? "/" + _ : _;
              },
              isAbsolute: function(_) {
                return m(_), _.length > 0 && _.charCodeAt(0) === 47;
              },
              join: function() {
                if (arguments.length === 0)
                  return ".";
                for (var _, I = 0; I < arguments.length; ++I) {
                  var E = arguments[I];
                  m(E), E.length > 0 && (_ === void 0 ? _ = E : _ += "/" + E);
                }
                return _ === void 0 ? "." : g.normalize(_);
              },
              relative: function(_, I) {
                if (m(_), m(I), _ === I || (_ = g.resolve(_), I = g.resolve(I), _ === I)) return "";
                for (var E = 1; E < _.length && _.charCodeAt(E) === 47; ++E)
                  ;
                for (var T = _.length, v = T - E, i = 1; i < I.length && I.charCodeAt(i) === 47; ++i)
                  ;
                for (var o = I.length, a = o - i, d = v < a ? v : a, s = -1, u = 0; u <= d; ++u) {
                  if (u === d) {
                    if (a > d) {
                      if (I.charCodeAt(i + u) === 47)
                        return I.slice(i + u + 1);
                      if (u === 0)
                        return I.slice(i + u);
                    } else v > d && (_.charCodeAt(E + u) === 47 ? s = u : u === 0 && (s = 0));
                    break;
                  }
                  var p = _.charCodeAt(E + u), w = I.charCodeAt(i + u);
                  if (p !== w)
                    break;
                  p === 47 && (s = u);
                }
                var C = "";
                for (u = E + s + 1; u <= T; ++u)
                  (u === T || _.charCodeAt(u) === 47) && (C.length === 0 ? C += ".." : C += "/..");
                return C.length > 0 ? C + I.slice(i + s) : (i += s, I.charCodeAt(i) === 47 && ++i, I.slice(i));
              },
              _makeLong: function(_) {
                return _;
              },
              dirname: function(_) {
                if (m(_), _.length === 0) return ".";
                for (var I = _.charCodeAt(0), E = I === 47, T = -1, v = !0, i = _.length - 1; i >= 1; --i)
                  if (I = _.charCodeAt(i), I === 47) {
                    if (!v) {
                      T = i;
                      break;
                    }
                  } else
                    v = !1;
                return T === -1 ? E ? "/" : "." : E && T === 1 ? "//" : _.slice(0, T);
              },
              basename: function(_, I) {
                if (I !== void 0 && typeof I != "string") throw new TypeError('"ext" argument must be a string');
                m(_);
                var E = 0, T = -1, v = !0, i;
                if (I !== void 0 && I.length > 0 && I.length <= _.length) {
                  if (I.length === _.length && I === _) return "";
                  var o = I.length - 1, a = -1;
                  for (i = _.length - 1; i >= 0; --i) {
                    var d = _.charCodeAt(i);
                    if (d === 47) {
                      if (!v) {
                        E = i + 1;
                        break;
                      }
                    } else
                      a === -1 && (v = !1, a = i + 1), o >= 0 && (d === I.charCodeAt(o) ? --o === -1 && (T = i) : (o = -1, T = a));
                  }
                  return E === T ? T = a : T === -1 && (T = _.length), _.slice(E, T);
                } else {
                  for (i = _.length - 1; i >= 0; --i)
                    if (_.charCodeAt(i) === 47) {
                      if (!v) {
                        E = i + 1;
                        break;
                      }
                    } else T === -1 && (v = !1, T = i + 1);
                  return T === -1 ? "" : _.slice(E, T);
                }
              },
              extname: function(_) {
                m(_);
                for (var I = -1, E = 0, T = -1, v = !0, i = 0, o = _.length - 1; o >= 0; --o) {
                  var a = _.charCodeAt(o);
                  if (a === 47) {
                    if (!v) {
                      E = o + 1;
                      break;
                    }
                    continue;
                  }
                  T === -1 && (v = !1, T = o + 1), a === 46 ? I === -1 ? I = o : i !== 1 && (i = 1) : I !== -1 && (i = -1);
                }
                return I === -1 || T === -1 || // We saw a non-dot character immediately before the dot
                i === 0 || // The (right-most) trimmed path component is exactly '..'
                i === 1 && I === T - 1 && I === E + 1 ? "" : _.slice(I, T);
              },
              format: function(_) {
                if (_ === null || typeof _ != "object")
                  throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof _);
                return S("/", _);
              },
              parse: function(_) {
                m(_);
                var I = { root: "", dir: "", base: "", ext: "", name: "" };
                if (_.length === 0) return I;
                var E = _.charCodeAt(0), T = E === 47, v;
                T ? (I.root = "/", v = 1) : v = 0;
                for (var i = -1, o = 0, a = -1, d = !0, s = _.length - 1, u = 0; s >= v; --s) {
                  if (E = _.charCodeAt(s), E === 47) {
                    if (!d) {
                      o = s + 1;
                      break;
                    }
                    continue;
                  }
                  a === -1 && (d = !1, a = s + 1), E === 46 ? i === -1 ? i = s : u !== 1 && (u = 1) : i !== -1 && (u = -1);
                }
                return i === -1 || a === -1 || // We saw a non-dot character immediately before the dot
                u === 0 || // The (right-most) trimmed path component is exactly '..'
                u === 1 && i === a - 1 && i === o + 1 ? a !== -1 && (o === 0 && T ? I.base = I.name = _.slice(1, a) : I.base = I.name = _.slice(o, a)) : (o === 0 && T ? (I.name = _.slice(1, i), I.base = _.slice(1, a)) : (I.name = _.slice(o, i), I.base = _.slice(o, a)), I.ext = _.slice(i, a)), o > 0 ? I.dir = _.slice(0, o - 1) : T && (I.dir = "/"), I;
              },
              sep: "/",
              delimiter: ":",
              win32: null,
              posix: null
            };
            g.posix = g, Z.exports = g;
          }),
          /* 5 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(A) {
                for (var _, I = 1, E = arguments.length; I < E; I++) {
                  _ = arguments[I];
                  for (var T in _) Object.prototype.hasOwnProperty.call(_, T) && (A[T] = _[T]);
                }
                return A;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(6);
            m.default = (function(A) {
              var _ = JSON.parse(A), I = (0, g.complement)(_.bases).seq;
              if (I.length < 1)
                throw new Error("Invalid Benchling part: empty sequence");
              return [
                {
                  annotations: _.annotations.map(function(E) {
                    return S(S({}, E), { direction: (0, g.parseDirection)(E.strand) });
                  }),
                  name: _.name || _._id,
                  seq: I,
                  type: (0, g.guessType)(I)
                }
              ];
            });
          }),
          /* 6 */
          /***/
          ((Z, m) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.guessType = m.parseDirection = m.firstElement = m.reverseComplement = m.complement = void 0;
            var y = {
              A: "T",
              B: "V",
              C: "G",
              D: "H",
              G: "C",
              H: "D",
              K: "M",
              M: "K",
              N: "N",
              R: "Y",
              S: "S",
              T: "A",
              U: "A",
              V: "B",
              W: "W",
              X: "X",
              Y: "R",
              a: "t",
              b: "v",
              c: "g",
              d: "h",
              g: "c",
              h: "d",
              k: "m",
              m: "k",
              n: "n",
              r: "y",
              s: "s",
              t: "a",
              u: "a",
              v: "b",
              w: "w",
              x: "x",
              y: "r"
            }, S = function(a) {
              if (!a)
                return { compSeq: "", seq: "" };
              for (var d = "", s = "", u = 0, p = a.length; u < p; u += 1)
                y[a[u]] && (d += a[u], s += y[a[u]]);
              return { compSeq: s, seq: d };
            };
            m.complement = S;
            var g = function(a) {
              var d = (0, m.complement)(a).compSeq;
              return d.split("").reverse().join("");
            };
            m.reverseComplement = g;
            var A = function(a) {
              if (Array.isArray(a))
                return a[0];
            };
            m.firstElement = A;
            var _ = /* @__PURE__ */ new Set(["FWD", "fwd", "FORWARD", "forward", "FOR", "for", "TOP", "top", "1", 1]), I = /* @__PURE__ */ new Set(["REV", "rev", "REVERSE", "reverse", "BOTTOM", "bottom", "-1", -1]), E = function(a) {
              return a ? _.has(a) ? 1 : I.has(a) ? -1 : 0 : 0;
            };
            m.parseDirection = E;
            var T = {
              AAA: "K",
              AAC: "N",
              AAG: "K",
              AAT: "N",
              ACA: "T",
              ACC: "T",
              ACG: "T",
              ACT: "T",
              AGA: "R",
              AGC: "S",
              AGG: "R",
              AGT: "S",
              ATA: "I",
              ATC: "I",
              ATG: "M",
              ATT: "I",
              CAA: "Q",
              CAC: "H",
              CAG: "Q",
              CAT: "H",
              CCA: "P",
              CCC: "P",
              CCG: "P",
              CCT: "P",
              CGA: "R",
              CGC: "R",
              CGG: "R",
              CGT: "R",
              CTA: "L",
              CTC: "L",
              CTG: "L",
              CTT: "L",
              GAA: "E",
              GAC: "D",
              GAG: "E",
              GAT: "D",
              GCA: "A",
              GCC: "A",
              GCG: "A",
              GCT: "A",
              GGA: "G",
              GGC: "G",
              GGG: "G",
              GGT: "G",
              GTA: "V",
              GTC: "V",
              GTG: "V",
              GTT: "V",
              TAA: "*",
              TAC: "Y",
              TAG: "*",
              TAT: "Y",
              TCA: "S",
              TCC: "S",
              TCG: "S",
              TCT: "S",
              TGA: "*",
              TGC: "C",
              TGG: "W",
              TGT: "C",
              TTA: "L",
              TTC: "F",
              TTG: "L",
              TTT: "F"
            }, v = Array.from(new Set(Object.values(T)).values()).join(""), i = new RegExp("^[".concat(v, "]+$"), "i"), o = function(a) {
              return /^[atgcn.]+$/i.test(a) ? "dna" : /^[augcn.]+$/i.test(a) ? "rna" : i.test(a) ? "aa" : "unknown";
            };
            m.guessType = o;
          }),
          /* 7 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(8), g = y(6);
            m.default = (function(A) {
              var _ = function(s) {
                throw new Error("Failed on BioBrick: ".concat(s));
              }, I = new S.XMLParser({
                isArray: function(s) {
                  return ["features", "part_name", "sequences"].includes(s);
                },
                removeNSPrefix: !0
              }).parse(A), E = I.rsbpml.part_list.part;
              E || _("No part seen in part_list");
              var T = E.features, v = E.part_name, i = E.sequences, o = (0, g.firstElement)(v), a = T.map(function(s) {
                var u = s.feature;
                if (!u)
                  return null;
                var p = u.direction, w = u.endpos, C = u.startpos, N = u.type;
                return {
                  direction: (0, g.parseDirection)(p),
                  end: +w,
                  name: "".concat(p, "-").concat(C),
                  start: +C || 0,
                  type: N || void 0
                };
              }).filter(function(s) {
                return s;
              }), d = (0, g.complement)(i[0].seq_data).seq;
              return [
                {
                  annotations: a,
                  name: o,
                  seq: d,
                  type: (0, g.guessType)(d)
                }
              ];
            });
          }),
          /* 8 */
          /***/
          ((Z) => {
            Z.exports = Ep();
          }),
          /* 9 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(6);
            m.default = (function(g, A) {
              if (g.trim().startsWith(">"))
                return g.split(">").map(function(o) {
                  var a = o.substr(o.indexOf(`
`), o.length).replace(/\s/g, ""), d = o.substring(0, o.search(/\n|\|/)).replace(/\//g, "");
                  return {
                    annotations: [],
                    name: d,
                    seq: a,
                    type: (0, S.guessType)(a)
                  };
                }).filter(function(o) {
                  return o.name && o.seq;
                });
              if (g.trim().startsWith(";")) {
                var _ = g.substring(0, g.search(/\n|\|/)).replace(/\//g, ""), I = g.indexOf(`
`, g.lastIndexOf(";")), E = g.substring(I, g.length);
                return [
                  {
                    annotations: [],
                    name: _,
                    seq: E,
                    type: (0, S.guessType)(E)
                  }
                ];
              }
              var T = A.lastIndexOf(".") || A.length, v = A.substring(0, T) || "Untitled", i = g;
              return [
                {
                  annotations: [],
                  name: v,
                  seq: i,
                  type: (0, S.guessType)(i)
                }
              ];
            });
          }),
          /* 10 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(6), g = /* @__PURE__ */ new Set(["gene", "product", "note", "db_xref", "protein_id", "label", "lab_host", "locus_tag"]), A = /* @__PURE__ */ new Set(["ApEinfo_fwdcolor", "ApEinfo_revcolor", "loom_color"]);
            m.default = (function(_, I) {
              return _.split(/\/\/\s/g).filter(function(E) {
                return E.length > 5;
              }).map(function(E) {
                var T = E.substring(E.indexOf("LOCUS"), E.search(/\\n|\n/)), v = T.split(/\s{2,}/g).filter(function(z) {
                  return z;
                }), i = v[1], o = i;
                if (o === "Exported" && E.includes("SnapGene") || // stupid Snapgene name
                Number.parseInt(o, 10)) {
                  var a = !1;
                  if (E.includes("ACCESSION")) {
                    var d = E.substring(E.indexOf("ACCESSION"), E.indexOf(`
`, E.indexOf("ACCESSION"))).replace(".", "").split(/\s{2,}/).filter(function(z) {
                      return z !== "ACCESSION";
                    }).pop();
                    d && (o = d, a = !0);
                  }
                  !a && I ? o = I.substring(0, Math.max(I.search(/\n|\||\./), I.lastIndexOf("."))).replace(/\/\s/g, "") : a || (o = "Unnamed");
                }
                var s = E.substring(E.lastIndexOf("ORIGIN") + 6, E.length), u = s.replace(/[^gatc]/gi, "");
                u = (0, S.complement)(u).seq;
                var p = [], w = [];
                if (E.indexOf("FEATURES")) {
                  var C = E.indexOf("FEATURES"), N = E.indexOf(`
`, C), R = E.lastIndexOf("ORIGIN");
                  E.includes("CONTIG") && (R = Math.min(R, E.indexOf("CONTIG")));
                  var P = E.substring(N, R).split(/\n/).filter(function(z) {
                    return z;
                  });
                  P.forEach(function(z) {
                    var q = z.split(/\s{2,}/g).filter(function(Ne) {
                      return Ne;
                    });
                    if (q.length > 1) {
                      var V = q[0], D = q[1], B = /\d+/g, b = z.includes("complement") ? -1 : 1, F = [0, 0], H = F[0], L = F[1], Q = B.exec(D);
                      if (Q) {
                        H = +Q[0] - 1 % u.length, L = (H + 1) % u.length;
                        var ae = B.exec(D);
                        ae && (L = +ae[0] % u.length);
                      }
                      V !== "source" && p.push({
                        direction: b,
                        // set in next block
                        end: L,
                        name: "",
                        start: H,
                        type: V
                      });
                    } else if (q.length === 1 && q[0].startsWith("/")) {
                      var de = q[0];
                      de = de.replace(/[/"]/g, "");
                      var ue = de.split(/=/), pe = ue[0], ke = ue[1], Ee = p.length - 1;
                      g.has(pe.toLowerCase()) ? Ee >= 0 && !p[Ee].name && (p[Ee].name = ke.trim()) : A.has(pe) && Ee > -1 && (p[Ee].color = ke);
                    }
                  });
                }
                return {
                  annotations: p,
                  name: o.trim() || I,
                  primers: w,
                  seq: u,
                  type: (0, S.guessType)(u)
                };
              });
            });
          }),
          /* 11 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(8), g = y(6);
            m.default = (function(A) {
              var _ = A.replace(/“|”/g, '"'), I = new S.XMLParser({
                removeNSPrefix: !0
              }).parse(_), E = I.seq, T = E.features, v = E.name, i = E.sequence, o = "Unnamed";
              v && (o = v);
              var a = (0, g.complement)(i).seq;
              if (!a)
                return [];
              var d = [];
              return T && T.feature && T.feature.forEach(function(s) {
                if (s) {
                  var u = s.complement, p = s.label, w = s.location, C = s.type;
                  w && w.genbankStart && w.end && d.push({
                    direction: u ? -1 : 1,
                    // JBEI is 1-based
                    end: +w.end || 0,
                    name: p || "Untitled",
                    start: +w.genbankStart - 1 || 0,
                    type: C || "N/A"
                  });
                }
              }), [
                {
                  annotations: d,
                  name: o,
                  seq: a,
                  type: (0, g.guessType)(a)
                }
              ];
            });
          }),
          /* 12 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(13), g = y(14);
            m.default = (function(A, _) {
              return A.includes("sbols.org/v1#") ? (0, S.default)(A) : (0, g.default)(A, _);
            });
          }),
          /* 13 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(8), g = y(6);
            m.default = (function(T) {
              var v = T.replace(/“|”/g, '"'), i = new S.XMLParser({
                ignoreAttributes: !1,
                isArray: function(N) {
                  return [
                    "Sequence",
                    "Collection",
                    "DnaComponent",
                    "dnaSequence",
                    "ComponentDefinition",
                    "SequenceAnnotation",
                    "sequenceAnnotation",
                    "elements",
                    "component",
                    "annotation"
                  ].includes(N);
                },
                removeNSPrefix: !0
              }).parse(v), o = null;
              i.RDF && (o = i.RDF);
              var a = o.Collection, d = o.DnaComponent;
              if (a && a.length) {
                var s = [];
                if (a.forEach(function(N) {
                  var R = N.component;
                  R && R.length && R.forEach(function(P) {
                    var z = P.DnaComponent;
                    s.push(
                      // @ts-expect-error ts-migrate(2345) FIXME: Argument of type '{ seq: string; compSeq: string; ... Remove this comment to see the full error message
                      _(z[0], {
                        strict: !1
                      })
                    );
                  });
                }), s.length)
                  return s;
              } else if (d && d.length) {
                var u = _(d[0], {
                  strict: !1
                });
                if (u)
                  return [u];
              }
              var p = [];
              E(p, o);
              var w = p.map(function(N) {
                return _(N, {
                  strict: !0
                });
              }).filter(function(N) {
                return !!N;
              });
              if (w.length)
                return w;
              var C = [];
              return A(C, o), C.map(function(N) {
                return I(N, T);
              }).filter(function(N) {
                return N;
              });
            });
            var A = function(T, v) {
              Object.keys(v).forEach(function(i) {
                i === "Sequence" && v[i].length && T.push.apply(T, v[i]), Array.isArray(v[i]) && v[i].forEach(function(o) {
                  A(T, o);
                });
              });
            }, _ = function(T, v) {
              var i = v.strict, o = i === void 0 ? !1 : i, a = T.annotation, d = T.displayId, s = T.dnaSequence, u = T.name, p = "Unnamed";
              if (u)
                p = u;
              else if (d)
                p = d;
              else if (o)
                return null;
              var w = "";
              s && s[0].DnaSequence && (w = s[0].DnaSequence.nucleotides);
              var C = (0, g.complement)(w).seq;
              if (!C)
                return null;
              var N = [];
              return a && a.forEach(function(R) {
                var P = R.SequenceAnnotation;
                if (!(!P || !P[0])) {
                  var z = P[0], q = z.bioEnd, V = z.bioStart, D = z.strand, B = z.subComponent;
                  if (B && B.DnaComponent && B.DnaComponent[0]) {
                    var b = B.DnaComponent[0], F = b.displayId, H = b.name, L = b.type;
                    N.push({
                      direction: D === "+" ? 1 : -1,
                      end: q - 1 || 0,
                      name: H || F || "Untitled",
                      start: V - 1 || 0,
                      type: L["@_resource"] || "N/A"
                    });
                  }
                }
              }), {
                annotations: N,
                name: p,
                seq: C,
                type: (0, g.guessType)(w)
              };
            }, I = function(T, v) {
              var i = T.displayId || T.title || "Unnamed", o = T.elements[0] || "", a = (0, g.complement)(o), d = a.compSeq, s = a.seq, u = v.search(/plasmid/i) > 0;
              return { annotations: [], circular: u, compSeq: d, name: i, seq: s, type: (0, g.guessType)(s) };
            }, E = function(T, v) {
              Object.keys(v).forEach(function(i) {
                i === "DnaComponent" && v[i].length && T.push.apply(T, v[i]), Array.isArray(v[i]) && v[i].forEach(function(o) {
                  E(T, o);
                });
              });
            };
          }),
          /* 14 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(8), g = y(6);
            m.default = (function(_, I) {
              var E = _.replace(/“|”/g, '"'), T = new S.XMLParser({
                ignoreAttributes: !1,
                isArray: function(i) {
                  return ["Sequence", "ComponentDefinition", "SequenceAnnotation", "sequenceAnnotation", "elements"].includes(i);
                },
                removeNSPrefix: !0
              }).parse(E);
              try {
                var v = A(T, I);
                if (v.length)
                  return v;
                throw new Error("No Sequence info found");
              } catch (i) {
                throw new Error("Failed to parse SBOL v2 file: ".concat(i));
              }
            });
            var A = function(_, I) {
              var E = null;
              if (_.RDF && (E = _.RDF), !E)
                throw new Error("No root RDF document");
              var T = E.ComponentDefinition, v = E.Sequence;
              if (!T && !v)
                throw new Error("Failed to parse SBOL v2: No ComponentDefinition or Sequence");
              var i = function(d) {
                var s = d ? (
                  // @ts-ignore
                  v.find(function(p) {
                    return p.persistentIdentity && p.persistentIdentity.length && p.persistentIdentity["@_resource"] === d || p["@_about"] === d;
                  })
                ) : v[0];
                if (s && s.elements) {
                  var u = (0, g.complement)(s.elements[0] || "").seq;
                  return {
                    annotations: [],
                    name: s.displayId,
                    seq: u,
                    type: (0, g.guessType)(u)
                  };
                }
                return null;
              }, o = [];
              T?.forEach(function(d, s) {
                if (d.sequence) {
                  var u = d.displayId, p = d.sequence, w = d.sequenceAnnotation, C = u || "".concat(I, "_").concat(s + 1), N = [];
                  (w || []).forEach(function(P) {
                    var z = P.SequenceAnnotation, q = z[0], V = q.displayId, D = q.location.Range, B = D;
                    B && N.push({
                      end: B.end - 1,
                      name: V,
                      start: B.start - 1
                    });
                  });
                  var R = i(p["@_resource"]);
                  R && o.push({
                    annotations: N,
                    name: C,
                    seq: R.seq,
                    type: R.type
                  });
                }
              });
              var a = i();
              return !o.length && a && o.push(a), o;
            };
          }),
          /* 15 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(6), g = ["gene", "product", "note", "db_xref", "protein_id", "label", "lab_host"], A = ["ApEinfo_fwdcolor", "ApEinfo_revcolor", "loom_color"];
            m.default = (function(_, I) {
              return _.split(/\/\/\s/g).map(function(E) {
                var T = E.substring(E.search(/.*?written by seqbuilder .*?[0-9.]+[^actg]+/i) + // @ts-ignore
                E.match(/.*?written by seqbuilder .*?[0-9.]+[^actg]+/i)[0].length, E.length).match(/[actgyrwskmdvhbxn]+/gim)[0], v = T;
                v = (0, S.complement)(v).seq;
                var i = I.length > 0 ? I : "Unnamed";
                if (~E.indexOf("LOCUS")) {
                  var o = E.substring(E.indexOf("LOCUS"), E.search(/\\n|\n/));
                  if (o && o.split(/\s{2,}/g)) {
                    var a = o.split(/\s{2,}/g).filter(function(P) {
                      return P;
                    }), d = a[1];
                    i = d;
                  }
                }
                if (i === "Exported" && E.includes("SnapGene") || // stupid Snapgene name
                Number.parseInt(i, 10)) {
                  var s = !1;
                  if (E.includes("ACCESSION")) {
                    var u = E.substring(E.indexOf("ACCESSION"), E.indexOf(`
`, E.indexOf("ACCESSION"))).replace(".", "").split(/\s{2,}/).filter(function(P) {
                      return P !== "ACCESSION";
                    }).pop();
                    u && (i = u, s = !0);
                  }
                  !s && I ? i = I.substring(0, Math.max(I.search(/\n|\||\./), I.lastIndexOf("."))).replace(/\/\s/g, "") : s || (i = "Unnamed");
                }
                var p = [];
                if (E.indexOf("FEATURES")) {
                  var w = E.indexOf("FEATURES"), C = E.indexOf(`
`, w), N = E.lastIndexOf("ORIGIN");
                  E.includes("CONTIG") && (N = Math.min(N, E.indexOf("CONTIG")));
                  var R = E.substring(C, N).split(/\n/).filter(function(P) {
                    return P;
                  });
                  R.forEach(function(P) {
                    var z = P.split(/\s{2,}/g).filter(function(Ee) {
                      return Ee;
                    });
                    if (z.length > 1) {
                      var q = z[0], V = z[1], D = /\d+/g, B = P.includes("complement") ? -1 : 1, b = [0, 0], F = b[0], H = b[1], L = D.exec(V);
                      if (L) {
                        F = +L[0] - 1 % v.length;
                        var Q = D.exec(V);
                        Q && (H = +Q[0] % v.length);
                      }
                      q !== "source" && p.push({
                        direction: B,
                        end: H,
                        name: "",
                        start: F,
                        type: q
                      });
                    } else if (z.length === 1) {
                      var ae = z[0];
                      ae = ae.replace(/[/"]/g, "");
                      var de = ae.split(/=/), ue = de[0], pe = de[1], ke = p.length - 1;
                      g.includes(ue) ? ke > -1 && !p[p.length - 1].name && (p[p.length - 1].name = pe.trim()) : A.includes(ue) && ke > -1 && (p[p.length - 1].color = pe);
                    }
                  });
                }
                return {
                  annotations: p,
                  name: i.trim() || I,
                  seq: v,
                  type: (0, S.guessType)(v)
                };
              });
            });
          }),
          /* 16 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(I) {
                for (var E, T = 1, v = arguments.length; T < v; T++) {
                  E = arguments[T];
                  for (var i in E) Object.prototype.hasOwnProperty.call(E, i) && (I[i] = E[i]);
                }
                return I;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(8), A = y(4), _ = y(6);
            m.default = (function(I) {
              var E;
              if (!I || !I.source)
                throw new Error("Failed to parse SnapGene file. No valid file input");
              var T = I?.fileName || "", v = {
                annotations: [],
                circular: !1,
                name: "",
                seq: "",
                type: "unknown"
              }, i = Buffer.from(I.source), o = 0, a = function(z) {
                var q = o;
                return o += z, i.subarray(q, o);
              }, d = function(z, q) {
                return a(z).toString(q);
              };
              a(1);
              var s = a(4).readUInt32BE(), u = d(8, "ascii");
              if (s !== 14 || u !== "SnapGene")
                throw new Error("Wrong format for a SnapGene file: length=".concat(s, " title=").concat(u));
              for (a(2), a(2), a(2); o < i.length; ) {
                var p = a(1), w = a(4).readUInt32BE(), C = p.toString().charCodeAt(0);
                if (C === 0) {
                  a(1);
                  var N = w - 1;
                  if (N < 0)
                    throw new Error("Failed parsing SnapGene: < 0 length sequence");
                  v.seq = d(N, "ascii");
                } else if (C === 10) {
                  var R = d(w, "utf8"), P = new g.XMLParser({
                    attributeNamePrefix: "",
                    ignoreAttributes: !1,
                    isArray: function(z) {
                      return z === "Q" || z === "Segment";
                    },
                    removeNSPrefix: !0
                  }).parse(R);
                  P.Features.Feature.forEach(function(z) {
                    var q = 0, V = 0, D = z.Segment[0].range, B = D.split("-"), b = B[0], F = B[1];
                    q = q === 0 ? +b : Math.min(q, +b), V = Math.max(V, +F), v.annotations.push({
                      direction: (0, _.parseDirection)({
                        0: "NONE",
                        1: 1,
                        2: -1,
                        3: "BIDIRECTIONAL",
                        undefined: "NONE"
                      }[z.directionality]),
                      end: V - 1,
                      name: z.name,
                      start: q - 1,
                      type: z.type
                    });
                  });
                } else
                  a(w);
              }
              return [
                S(S({}, v), {
                  // SnapGene uses the filename as the sequence name
                  name: ((E = T.split(A.sep).pop()) === null || E === void 0 ? void 0 : E.replace(".dna", "")) || T,
                  type: (0, _.guessType)(v.seq)
                })
              ];
            });
          })
          /******/
        ], ne = {};
        function ie(Z) {
          var m = ne[Z];
          if (m !== void 0)
            return m.exports;
          var y = ne[Z] = {
            /******/
            // no module.id needed
            /******/
            // no module.loaded needed
            /******/
            exports: {}
            /******/
          };
          return X[Z].call(y.exports, y, y.exports, ie), y.exports;
        }
        var we = ie(0);
        return we;
      })()
    ));
  })(Zl)), Zl.exports;
}
var Fu = { exports: {} }, If;
function Tp() {
  return If || (If = 1, (function(J) {
    (function() {
      function K(j, ee, ye) {
        return j.call.apply(j.bind, arguments);
      }
      function X(j, ee, ye) {
        if (!j) throw Error();
        if (2 < arguments.length) {
          var ve = Array.prototype.slice.call(arguments, 2);
          return function() {
            var Ae = Array.prototype.slice.call(arguments);
            return Array.prototype.unshift.apply(Ae, ve), j.apply(ee, Ae);
          };
        }
        return function() {
          return j.apply(ee, arguments);
        };
      }
      function ne(j, ee, ye) {
        return ne = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? K : X, ne.apply(null, arguments);
      }
      var ie = Date.now || function() {
        return +/* @__PURE__ */ new Date();
      };
      function we(j, ee) {
        this.a = j, this.o = ee || j, this.c = this.o.document;
      }
      var Z = !!window.FontFace;
      function m(j, ee, ye, ve) {
        if (ee = j.c.createElement(ee), ye) for (var Ae in ye) ye.hasOwnProperty(Ae) && (Ae == "style" ? ee.style.cssText = ye[Ae] : ee.setAttribute(Ae, ye[Ae]));
        return ve && ee.appendChild(j.c.createTextNode(ve)), ee;
      }
      function y(j, ee, ye) {
        j = j.c.getElementsByTagName(ee)[0], j || (j = document.documentElement), j.insertBefore(ye, j.lastChild);
      }
      function S(j) {
        j.parentNode && j.parentNode.removeChild(j);
      }
      function g(j, ee, ye) {
        ee = ee || [], ye = ye || [];
        for (var ve = j.className.split(/\s+/), Ae = 0; Ae < ee.length; Ae += 1) {
          for (var Me = !1, qe = 0; qe < ve.length; qe += 1) if (ee[Ae] === ve[qe]) {
            Me = !0;
            break;
          }
          Me || ve.push(ee[Ae]);
        }
        for (ee = [], Ae = 0; Ae < ve.length; Ae += 1) {
          for (Me = !1, qe = 0; qe < ye.length; qe += 1) if (ve[Ae] === ye[qe]) {
            Me = !0;
            break;
          }
          Me || ee.push(ve[Ae]);
        }
        j.className = ee.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
      }
      function A(j, ee) {
        for (var ye = j.className.split(/\s+/), ve = 0, Ae = ye.length; ve < Ae; ve++) if (ye[ve] == ee) return !0;
        return !1;
      }
      function _(j) {
        return j.o.location.hostname || j.a.location.hostname;
      }
      function I(j, ee, ye) {
        function ve() {
          Ve && Ae && Me && (Ve(qe), Ve = null);
        }
        ee = m(j, "link", { rel: "stylesheet", href: ee, media: "all" });
        var Ae = !1, Me = !0, qe = null, Ve = ye || null;
        Z ? (ee.onload = function() {
          Ae = !0, ve();
        }, ee.onerror = function() {
          Ae = !0, qe = Error("Stylesheet failed to load"), ve();
        }) : setTimeout(function() {
          Ae = !0, ve();
        }, 0), y(j, "head", ee);
      }
      function E(j, ee, ye, ve) {
        var Ae = j.c.getElementsByTagName("head")[0];
        if (Ae) {
          var Me = m(j, "script", { src: ee }), qe = !1;
          return Me.onload = Me.onreadystatechange = function() {
            qe || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (qe = !0, ye && ye(null), Me.onload = Me.onreadystatechange = null, Me.parentNode.tagName == "HEAD" && Ae.removeChild(Me));
          }, Ae.appendChild(Me), setTimeout(function() {
            qe || (qe = !0, ye && ye(Error("Script load timeout")));
          }, ve || 5e3), Me;
        }
        return null;
      }
      function T() {
        this.a = 0, this.c = null;
      }
      function v(j) {
        return j.a++, function() {
          j.a--, o(j);
        };
      }
      function i(j, ee) {
        j.c = ee, o(j);
      }
      function o(j) {
        j.a == 0 && j.c && (j.c(), j.c = null);
      }
      function a(j) {
        this.a = j || "-";
      }
      a.prototype.c = function(j) {
        for (var ee = [], ye = 0; ye < arguments.length; ye++) ee.push(arguments[ye].replace(/[\W_]+/g, "").toLowerCase());
        return ee.join(this.a);
      };
      function d(j, ee) {
        this.c = j, this.f = 4, this.a = "n";
        var ye = (ee || "n4").match(/^([nio])([1-9])$/i);
        ye && (this.a = ye[1], this.f = parseInt(ye[2], 10));
      }
      function s(j) {
        return w(j) + " " + (j.f + "00") + " 300px " + u(j.c);
      }
      function u(j) {
        var ee = [];
        j = j.split(/,\s*/);
        for (var ye = 0; ye < j.length; ye++) {
          var ve = j[ye].replace(/['"]/g, "");
          ve.indexOf(" ") != -1 || /^\d/.test(ve) ? ee.push("'" + ve + "'") : ee.push(ve);
        }
        return ee.join(",");
      }
      function p(j) {
        return j.a + j.f;
      }
      function w(j) {
        var ee = "normal";
        return j.a === "o" ? ee = "oblique" : j.a === "i" && (ee = "italic"), ee;
      }
      function C(j) {
        var ee = 4, ye = "n", ve = null;
        return j && ((ve = j.match(/(normal|oblique|italic)/i)) && ve[1] && (ye = ve[1].substr(0, 1).toLowerCase()), (ve = j.match(/([1-9]00|normal|bold)/i)) && ve[1] && (/bold/i.test(ve[1]) ? ee = 7 : /[1-9]00/.test(ve[1]) && (ee = parseInt(ve[1].substr(0, 1), 10)))), ye + ee;
      }
      function N(j, ee) {
        this.c = j, this.f = j.o.document.documentElement, this.h = ee, this.a = new a("-"), this.j = ee.events !== !1, this.g = ee.classes !== !1;
      }
      function R(j) {
        j.g && g(j.f, [j.a.c("wf", "loading")]), z(j, "loading");
      }
      function P(j) {
        if (j.g) {
          var ee = A(j.f, j.a.c("wf", "active")), ye = [], ve = [j.a.c("wf", "loading")];
          ee || ye.push(j.a.c("wf", "inactive")), g(j.f, ye, ve);
        }
        z(j, "inactive");
      }
      function z(j, ee, ye) {
        j.j && j.h[ee] && (ye ? j.h[ee](ye.c, p(ye)) : j.h[ee]());
      }
      function q() {
        this.c = {};
      }
      function V(j, ee, ye) {
        var ve = [], Ae;
        for (Ae in ee) if (ee.hasOwnProperty(Ae)) {
          var Me = j.c[Ae];
          Me && ve.push(Me(ee[Ae], ye));
        }
        return ve;
      }
      function D(j, ee) {
        this.c = j, this.f = ee, this.a = m(this.c, "span", { "aria-hidden": "true" }, this.f);
      }
      function B(j) {
        y(j.c, "body", j.a);
      }
      function b(j) {
        return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + u(j.c) + ";" + ("font-style:" + w(j) + ";font-weight:" + (j.f + "00") + ";");
      }
      function F(j, ee, ye, ve, Ae, Me) {
        this.g = j, this.j = ee, this.a = ve, this.c = ye, this.f = Ae || 3e3, this.h = Me || void 0;
      }
      F.prototype.start = function() {
        var j = this.c.o.document, ee = this, ye = ie(), ve = new Promise(function(qe, Ve) {
          function et() {
            ie() - ye >= ee.f ? Ve() : j.fonts.load(s(ee.a), ee.h).then(function(it) {
              1 <= it.length ? qe() : setTimeout(et, 25);
            }, function() {
              Ve();
            });
          }
          et();
        }), Ae = null, Me = new Promise(function(qe, Ve) {
          Ae = setTimeout(Ve, ee.f);
        });
        Promise.race([Me, ve]).then(function() {
          Ae && (clearTimeout(Ae), Ae = null), ee.g(ee.a);
        }, function() {
          ee.j(ee.a);
        });
      };
      function H(j, ee, ye, ve, Ae, Me, qe) {
        this.v = j, this.B = ee, this.c = ye, this.a = ve, this.s = qe || "BESbswy", this.f = {}, this.w = Ae || 3e3, this.u = Me || null, this.m = this.j = this.h = this.g = null, this.g = new D(this.c, this.s), this.h = new D(this.c, this.s), this.j = new D(this.c, this.s), this.m = new D(this.c, this.s), j = new d(this.a.c + ",serif", p(this.a)), j = b(j), this.g.a.style.cssText = j, j = new d(this.a.c + ",sans-serif", p(this.a)), j = b(j), this.h.a.style.cssText = j, j = new d("serif", p(this.a)), j = b(j), this.j.a.style.cssText = j, j = new d("sans-serif", p(this.a)), j = b(j), this.m.a.style.cssText = j, B(this.g), B(this.h), B(this.j), B(this.m);
      }
      var L = { D: "serif", C: "sans-serif" }, Q = null;
      function ae() {
        if (Q === null) {
          var j = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
          Q = !!j && (536 > parseInt(j[1], 10) || parseInt(j[1], 10) === 536 && 11 >= parseInt(j[2], 10));
        }
        return Q;
      }
      H.prototype.start = function() {
        this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = ie(), ue(this);
      };
      function de(j, ee, ye) {
        for (var ve in L) if (L.hasOwnProperty(ve) && ee === j.f[L[ve]] && ye === j.f[L[ve]]) return !0;
        return !1;
      }
      function ue(j) {
        var ee = j.g.a.offsetWidth, ye = j.h.a.offsetWidth, ve;
        (ve = ee === j.f.serif && ye === j.f["sans-serif"]) || (ve = ae() && de(j, ee, ye)), ve ? ie() - j.A >= j.w ? ae() && de(j, ee, ye) && (j.u === null || j.u.hasOwnProperty(j.a.c)) ? ke(j, j.v) : ke(j, j.B) : pe(j) : ke(j, j.v);
      }
      function pe(j) {
        setTimeout(ne(function() {
          ue(this);
        }, j), 50);
      }
      function ke(j, ee) {
        setTimeout(ne(function() {
          S(this.g.a), S(this.h.a), S(this.j.a), S(this.m.a), ee(this.a);
        }, j), 0);
      }
      function Ee(j, ee, ye) {
        this.c = j, this.a = ee, this.f = 0, this.m = this.j = !1, this.s = ye;
      }
      var Ne = null;
      Ee.prototype.g = function(j) {
        var ee = this.a;
        ee.g && g(ee.f, [ee.a.c("wf", j.c, p(j).toString(), "active")], [ee.a.c("wf", j.c, p(j).toString(), "loading"), ee.a.c("wf", j.c, p(j).toString(), "inactive")]), z(ee, "fontactive", j), this.m = !0, Oe(this);
      }, Ee.prototype.h = function(j) {
        var ee = this.a;
        if (ee.g) {
          var ye = A(ee.f, ee.a.c("wf", j.c, p(j).toString(), "active")), ve = [], Ae = [ee.a.c("wf", j.c, p(j).toString(), "loading")];
          ye || ve.push(ee.a.c("wf", j.c, p(j).toString(), "inactive")), g(ee.f, ve, Ae);
        }
        z(ee, "fontinactive", j), Oe(this);
      };
      function Oe(j) {
        --j.f == 0 && j.j && (j.m ? (j = j.a, j.g && g(j.f, [j.a.c("wf", "active")], [j.a.c("wf", "loading"), j.a.c("wf", "inactive")]), z(j, "active")) : P(j.a));
      }
      function Ue(j) {
        this.j = j, this.a = new q(), this.h = 0, this.f = this.g = !0;
      }
      Ue.prototype.load = function(j) {
        this.c = new we(this.j, j.context || this.j), this.g = j.events !== !1, this.f = j.classes !== !1, Xe(this, new N(this.c, j), j);
      };
      function Ze(j, ee, ye, ve, Ae) {
        var Me = --j.h == 0;
        (j.f || j.g) && setTimeout(function() {
          var qe = Ae || null, Ve = ve || null || {};
          if (ye.length === 0 && Me) P(ee.a);
          else {
            ee.f += ye.length, Me && (ee.j = Me);
            var et, it = [];
            for (et = 0; et < ye.length; et++) {
              var je = ye[et], mt = Ve[je.c], kt = ee.a, qt = je;
              if (kt.g && g(kt.f, [kt.a.c("wf", qt.c, p(qt).toString(), "loading")]), z(kt, "fontloading", qt), kt = null, Ne === null) if (window.FontFace) {
                var qt = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Kt = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
                Ne = qt ? 42 < parseInt(qt[1], 10) : !Kt;
              } else Ne = !1;
              Ne ? kt = new F(ne(ee.g, ee), ne(ee.h, ee), ee.c, je, ee.s, mt) : kt = new H(ne(ee.g, ee), ne(ee.h, ee), ee.c, je, ee.s, qe, mt), it.push(kt);
            }
            for (et = 0; et < it.length; et++) it[et].start();
          }
        }, 0);
      }
      function Xe(j, ee, ye) {
        var Ae = [], ve = ye.timeout;
        R(ee);
        var Ae = V(j.a, ye, j.c), Me = new Ee(j.c, ee, ve);
        for (j.h = Ae.length, ee = 0, ye = Ae.length; ee < ye; ee++) Ae[ee].load(function(qe, Ve, et) {
          Ze(j, Me, qe, Ve, et);
        });
      }
      function rt(j, ee) {
        this.c = j, this.a = ee;
      }
      rt.prototype.load = function(j) {
        function ee() {
          if (Me["__mti_fntLst" + ve]) {
            var qe = Me["__mti_fntLst" + ve](), Ve = [], et;
            if (qe) for (var it = 0; it < qe.length; it++) {
              var je = qe[it].fontfamily;
              qe[it].fontStyle != null && qe[it].fontWeight != null ? (et = qe[it].fontStyle + qe[it].fontWeight, Ve.push(new d(je, et))) : Ve.push(new d(je));
            }
            j(Ve);
          } else setTimeout(function() {
            ee();
          }, 50);
        }
        var ye = this, ve = ye.a.projectId, Ae = ye.a.version;
        if (ve) {
          var Me = ye.c.o;
          E(this.c, (ye.a.api || "https://fast.fonts.net/jsapi") + "/" + ve + ".js" + (Ae ? "?v=" + Ae : ""), function(qe) {
            qe ? j([]) : (Me["__MonotypeConfiguration__" + ve] = function() {
              return ye.a;
            }, ee());
          }).id = "__MonotypeAPIScript__" + ve;
        } else j([]);
      };
      function nt(j, ee) {
        this.c = j, this.a = ee;
      }
      nt.prototype.load = function(j) {
        var ee, ye, ve = this.a.urls || [], Ae = this.a.families || [], Me = this.a.testStrings || {}, qe = new T();
        for (ee = 0, ye = ve.length; ee < ye; ee++) I(this.c, ve[ee], v(qe));
        var Ve = [];
        for (ee = 0, ye = Ae.length; ee < ye; ee++) if (ve = Ae[ee].split(":"), ve[1]) for (var et = ve[1].split(","), it = 0; it < et.length; it += 1) Ve.push(new d(ve[0], et[it]));
        else Ve.push(new d(ve[0]));
        i(qe, function() {
          j(Ve, Me);
        });
      };
      function Pe(j, ee) {
        j ? this.c = j : this.c = $e, this.a = [], this.f = [], this.g = ee || "";
      }
      var $e = "https://fonts.googleapis.com/css";
      function ct(j, ee) {
        for (var ye = ee.length, ve = 0; ve < ye; ve++) {
          var Ae = ee[ve].split(":");
          Ae.length == 3 && j.f.push(Ae.pop());
          var Me = "";
          Ae.length == 2 && Ae[1] != "" && (Me = ":"), j.a.push(Ae.join(Me));
        }
      }
      function ot(j) {
        if (j.a.length == 0) throw Error("No fonts to load!");
        if (j.c.indexOf("kit=") != -1) return j.c;
        for (var ee = j.a.length, ye = [], ve = 0; ve < ee; ve++) ye.push(j.a[ve].replace(/ /g, "+"));
        return ee = j.c + "?family=" + ye.join("%7C"), 0 < j.f.length && (ee += "&subset=" + j.f.join(",")), 0 < j.g.length && (ee += "&text=" + encodeURIComponent(j.g)), ee;
      }
      function vt(j) {
        this.f = j, this.a = [], this.c = {};
      }
      var At = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, ut = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, lt = { i: "i", italic: "i", n: "n", normal: "n" }, bt = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
      function Tn(j) {
        for (var ee = j.f.length, ye = 0; ye < ee; ye++) {
          var ve = j.f[ye].split(":"), Ae = ve[0].replace(/\+/g, " "), Me = ["n4"];
          if (2 <= ve.length) {
            var qe, Ve = ve[1];
            if (qe = [], Ve) for (var Ve = Ve.split(","), et = Ve.length, it = 0; it < et; it++) {
              var je;
              if (je = Ve[it], je.match(/^[\w-]+$/)) {
                var mt = bt.exec(je.toLowerCase());
                if (mt == null) je = "";
                else {
                  if (je = mt[2], je = je == null || je == "" ? "n" : lt[je], mt = mt[1], mt == null || mt == "") mt = "4";
                  else var kt = ut[mt], mt = kt || (isNaN(mt) ? "4" : mt.substr(0, 1));
                  je = [je, mt].join("");
                }
              } else je = "";
              je && qe.push(je);
            }
            0 < qe.length && (Me = qe), ve.length == 3 && (ve = ve[2], qe = [], ve = ve ? ve.split(",") : qe, 0 < ve.length && (ve = At[ve[0]]) && (j.c[Ae] = ve));
          }
          for (j.c[Ae] || (ve = At[Ae]) && (j.c[Ae] = ve), ve = 0; ve < Me.length; ve += 1) j.a.push(new d(Ae, Me[ve]));
        }
      }
      function gn(j, ee) {
        this.c = j, this.a = ee;
      }
      var yn = { Arimo: !0, Cousine: !0, Tinos: !0 };
      gn.prototype.load = function(j) {
        var ee = new T(), ye = this.c, ve = new Pe(this.a.api, this.a.text), Ae = this.a.families;
        ct(ve, Ae);
        var Me = new vt(Ae);
        Tn(Me), I(ye, ot(ve), v(ee)), i(ee, function() {
          j(Me.a, Me.c, yn);
        });
      };
      function zt(j, ee) {
        this.c = j, this.a = ee;
      }
      zt.prototype.load = function(j) {
        var ee = this.a.id, ye = this.c.o;
        ee ? E(this.c, (this.a.api || "https://use.typekit.net") + "/" + ee + ".js", function(ve) {
          if (ve) j([]);
          else if (ye.Typekit && ye.Typekit.config && ye.Typekit.config.fn) {
            ve = ye.Typekit.config.fn;
            for (var Ae = [], Me = 0; Me < ve.length; Me += 2) for (var qe = ve[Me], Ve = ve[Me + 1], et = 0; et < Ve.length; et++) Ae.push(new d(qe, Ve[et]));
            try {
              ye.Typekit.load({ events: !1, classes: !1, async: !0 });
            } catch {
            }
            j(Ae);
          }
        }, 2e3) : j([]);
      };
      function tn(j, ee) {
        this.c = j, this.f = ee, this.a = [];
      }
      tn.prototype.load = function(j) {
        var ee = this.f.id, ye = this.c.o, ve = this;
        ee ? (ye.__webfontfontdeckmodule__ || (ye.__webfontfontdeckmodule__ = {}), ye.__webfontfontdeckmodule__[ee] = function(Ae, Me) {
          for (var qe = 0, Ve = Me.fonts.length; qe < Ve; ++qe) {
            var et = Me.fonts[qe];
            ve.a.push(new d(et.name, C("font-weight:" + et.weight + ";font-style:" + et.style)));
          }
          j(ve.a);
        }, E(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + _(this.c) + "/" + ee + ".js", function(Ae) {
          Ae && j([]);
        })) : j([]);
      };
      var St = new Ue(window);
      St.a.c.custom = function(j, ee) {
        return new nt(ee, j);
      }, St.a.c.fontdeck = function(j, ee) {
        return new tn(ee, j);
      }, St.a.c.monotype = function(j, ee) {
        return new rt(ee, j);
      }, St.a.c.typekit = function(j, ee) {
        return new zt(ee, j);
      }, St.a.c.google = function(j, ee) {
        return new gn(ee, j);
      };
      var nn = { load: ne(St.load, St) };
      J.exports ? J.exports = nn : (window.WebFont = nn, window.WebFontConfig && St.load(window.WebFontConfig));
    })();
  })(Fu)), Fu.exports;
}
var Ap = Kl.exports, Of;
function _p() {
  return Of || (Of = 1, (function(J, K) {
    (function(ne, ie) {
      J.exports = ie();
    })(Ap, () => (
      /******/
      (() => {
        var X = [
          /* 0 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(o) {
                for (var a, d = 1, s = arguments.length; d < s; d++) {
                  a = arguments[d];
                  for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
                }
                return o;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Viewer = m.Enzymes = m.Circular = m.Linear = m.SeqViz = void 0;
            var g = y(1), A = y(2), _ = y(3), I = y(4);
            m.Circular = I.default;
            var E = y(10);
            m.Linear = E.default;
            var T = y(36);
            m.SeqViz = T.default;
            var v = y(39);
            m.Enzymes = v.default, m.default = T.default;
            var i = function(o, a) {
              o === void 0 && (o = "root");
              var d = !1, s;
              if (document) {
                if (typeof o == "string")
                  if (document.getElementById(o))
                    s = document.getElementById(o);
                  else
                    throw new Error("Failed to find an element with ID: ".concat(o));
                else
                  s = o;
                var u = g.createElement(T.default, a, null), p = function() {
                  return d = !0, A.render(u, s), u;
                }, w = function() {
                  return (0, _.renderToString)(u);
                }, C = function(N) {
                  return a = S(S({}, a), N), u = g.createElement(T.default, a, null), d && A.render(u, s), u;
                };
                return {
                  render: p,
                  renderToString: w,
                  setState: C
                };
              }
            };
            m.Viewer = i;
          }),
          /* 1 */
          /***/
          ((Z) => {
            Z.exports = so();
          }),
          /* 2 */
          /***/
          ((Z) => {
            Z.exports = bu();
          }),
          /* 3 */
          /***/
          ((Z) => {
            Z.exports = rh();
          }),
          /* 4 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var C = function(N, R) {
                return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, z) {
                  P.__proto__ = z;
                } || function(P, z) {
                  for (var q in z) Object.prototype.hasOwnProperty.call(z, q) && (P[q] = z[q]);
                }, C(N, R);
              };
              return function(N, R) {
                if (typeof R != "function" && R !== null)
                  throw new TypeError("Class extends value " + String(R) + " is not a constructor or null");
                C(N, R);
                function P() {
                  this.constructor = N;
                }
                N.prototype = R === null ? Object.create(R) : (P.prototype = R.prototype, new P());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(C) {
                for (var N, R = 1, P = arguments.length; R < P; R++) {
                  N = arguments[R];
                  for (var z in N) Object.prototype.hasOwnProperty.call(N, z) && (C[z] = N[z]);
                }
                return C;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Arc = m.RENDER_SEQ_LENGTH_CUTOFF = void 0;
            var A = y(1), _ = y(5), I = y(8), E = y(11), T = y(12), v = y(15), i = y(29), o = y(30), a = y(31), d = y(32), s = y(33), u = y(35);
            m.RENDER_SEQ_LENGTH_CUTOFF = 250;
            var p = (
              /** @class */
              (function(C) {
                S(N, C);
                function N(R) {
                  var P = C.call(this, R) || this;
                  return P.shouldComponentUpdate = function(z) {
                    return !(0, T.isEqual)(z, P.props);
                  }, P.getRotation = function(z) {
                    var q = P.props.center, V = P.state.seqLength, D = P.context.circular, B = z - D, b = B / V, F = b * 360;
                    return "rotate(".concat(F || 0, ", ").concat(q.x, ", ").concat(q.y, ")");
                  }, P.findCoor = function(z, q, V) {
                    var D = P.props.center, B = P.state.seqLength, b = V ? z - P.context.circular : z, F = b / B, H = F - 0.25, L = H * Math.PI * 2, Q = Math.cos(L) * q, ae = Math.sin(L) * q;
                    return {
                      x: D.x + Q,
                      y: D.y + ae
                    };
                  }, P.rotateCoor = function(z, q) {
                    var V = P.props.center, D = q * (Math.PI / 180), B = Math.cos(D), b = Math.sin(D), F = z.x - V.x, H = z.y - V.y, L = B * F, Q = B * H, ae = b * F, de = b * H, ue = L - de, pe = ae + Q;
                    return {
                      x: V.x + ue,
                      y: V.y + pe
                    };
                  }, P.genArc = function(z) {
                    var q = z.arrowFWD, V = z.arrowREV, D = z.innerRadius, B = z.largeArc, b = z.length, F = z.outerRadius, H = z.sweepFWD, L = P.props.radius, Q = P.state, ae = Q.lineHeight, de = Q.seqLength, ue = z.offset === void 0 ? 0 : z.offset, pe = P.findCoor(ue, D), ke = P.findCoor(ue, F), Ee = P.findCoor(b + ue, D), Ne = P.findCoor(b + ue, F), Oe = "", Ue = "";
                    if (V || q) {
                      var Ze = ae / 4, Xe = Ze / L, rt = Math.min(Xe / 2, b / de), nt = rt * 360;
                      if (V) {
                        pe = P.rotateCoor(pe, nt), ke = P.rotateCoor(ke, nt);
                        var Pe = P.findCoor(0, (D + F) / 2);
                        Oe = "L ".concat(Pe.x, " ").concat(Pe.y);
                      } else {
                        Ee = P.rotateCoor(Ee, -nt), Ne = P.rotateCoor(Ne, -nt);
                        var $e = P.findCoor(b, (D + F) / 2);
                        Ue = "L ".concat($e.x, " ").concat($e.y);
                      }
                    }
                    var ct = B ? 1 : 0, ot = H ? 1 : 0, vt = H ? 0 : 1;
                    return "M ".concat(Ee.x, " ").concat(Ee.y, `
      A `).concat(D, " ").concat(D, ", 0, ").concat(ct, ", ").concat(vt, ", ").concat(pe.x, " ").concat(pe.y, `
      L `).concat(pe.x, " ").concat(pe.y, `
      `).concat(Oe, `
      L `).concat(ke.x, " ").concat(ke.y, `
      A `).concat(F, " ").concat(F, ", 0, ").concat(ct, ", ").concat(ot, ", ").concat(Ne.x, " ").concat(Ne.y, `
      `).concat(Ue, `
      Z`);
                  }, P.handleScrollEvent = function(z) {
                    var q = P.props, V = q.rotateOnScroll, D = q.seq;
                    if (V) {
                      var B = D.length * (z.deltaY / 5e3);
                      B = Math.floor(B), B === 0 && (z.deltaY > 0 ? B = 1 : B = -1);
                      var b = P.context.circular + B;
                      b = (b + D.length) % D.length, P.context.setCentralIndex("CIRCULAR", b);
                    }
                  }, P.state = {
                    annotationsInRows: [],
                    inlinedLabels: [],
                    lineHeight: 0,
                    outerLabels: [],
                    seqLength: 0
                  }, P;
                }
                return N.prototype.render = function() {
                  var R = this.props, P = R.center, z = R.compSeq, q = R.cutSites, V = R.handleMouseEvent, D = R.inputRef, B = R.name, b = R.radius, F = R.search, H = R.seq, L = R.showComplement, Q = R.showIndex, ae = R.size, de = R.yDiff, ue = this.state, pe = ue.annotationsInRows, ke = ue.inlinedLabels, Ee = ue.lineHeight, Ne = ue.outerLabels, Oe = ue.seqLength, Ue = this, Ze = Ue.findCoor, Xe = Ue.genArc, rt = Ue.getRotation, nt = Ue.rotateCoor, Pe = {
                    center: P,
                    findCoor: Ze,
                    genArc: Xe,
                    getRotation: rt,
                    inputRef: D,
                    lineHeight: Ee,
                    radius: b,
                    rotateCoor: nt,
                    seqLength: Oe
                  }, $e = 4 + pe.length, ct = "la-vz-".concat(B, "-viewer-circular");
                  return ae.height ? A.createElement(
                    "svg",
                    { ref: D(ct, { type: "SEQ", viewer: "CIRCULAR" }), className: "la-vz-viewer-circular", "data-testid": "la-vz-viewer-circular", height: ae.height, id: ct, overflow: "visible", style: v.viewerCircular, width: ae.width >= 0 ? ae.width : 0, onMouseDown: V, onMouseMove: V, onMouseUp: V, onWheel: this.handleScrollEvent },
                    A.createElement(
                      "g",
                      { className: "la-vz-circular-root", transform: "translate(0, ".concat(de, ")") },
                      A.createElement(u.Selection, g({}, Pe, { seq: H, totalRows: $e })),
                      A.createElement(o.CutSites, g({}, Pe, { cutSites: q, selectionRows: 4 })),
                      A.createElement(d.Index, g({}, Pe, { compSeq: z, name: B, seq: H, showComplement: L, showIndex: Q, size: ae, totalRows: $e, yDiff: de })),
                      A.createElement(a.Find, { genArc: Pe.genArc, getRotation: Pe.getRotation, highlights: this.props.highlights, inputRef: Pe.inputRef, lineHeight: Pe.lineHeight, radius: Pe.radius, search: F, seqLength: Pe.seqLength }),
                      A.createElement(i.Annotations, g({}, Pe, { annotations: pe, inlinedAnnotations: ke, rowsToSkip: 0 })),
                      A.createElement(s.Labels, g({}, Pe, { labels: Ne, size: ae, yDiff: de }))
                    )
                  ) : null;
                }, N.contextType = I.default, N.getDerivedStateFromProps = function(R) {
                  var P = 14, z = (0, E.stackElements)(R.annotations, R.seq.length), q = R.seq.length, V = R.cutSites, D = R.radius, B = D - 3 * P, b = [], F = [];
                  return z.forEach(function(H) {
                    var L = B * Math.PI;
                    H.forEach(function(Q) {
                      var ae = (Q.name.length + 2) * _.CHAR_WIDTH, de = Q.end - Q.start;
                      Q.start >= Q.end && (de += q);
                      var ue = 2 * L * (de / q);
                      if (ae < ue)
                        b.push(Q.id);
                      else {
                        var pe = Q.end, ke = Q.id, Ee = Q.name, Ne = Q.start, Oe = "annotation";
                        F.push({ end: pe, id: ke, name: Ee, start: Ne, type: Oe });
                      }
                    }), B -= P;
                  }), V.forEach(function(H) {
                    return F.push(g(g(g({}, H.enzyme), H), { start: H.fcut, type: "enzyme" }));
                  }), F.sort(function(H, L) {
                    return Math.min(H.start, H.end) - Math.min(L.start, L.end);
                  }), {
                    annotationsInRows: z,
                    inlinedLabels: b,
                    lineHeight: P,
                    outerLabels: F,
                    seqLength: R.seq.length
                  };
                }, N;
              })(A.Component)
            );
            m.default = p;
            var w = function(C) {
              var N = C.className, R = C.color, P = C.direction, z = C.genArc, q = C.getRotation, V = C.inputRef, D = C.lineHeight, B = C.radius, b = C.seqLength, F = C.start, H = C.style, L = C.end;
              L < F && (L += b);
              var Q = Math.abs(L - F), ae = z({
                innerRadius: B - D / 2,
                largeArc: Q > b / 2,
                length: Q,
                outerRadius: B + D / 2,
                sweepFWD: !0
              }), de = "circular-".concat(F, "-").concat(L, "-").concat(P);
              return A.createElement("path", { key: de, ref: V(de, {
                end: L,
                ref: de,
                start: F,
                type: "FIND",
                viewer: "CIRCULAR"
              }), className: N, cursor: "pointer", d: ae, fill: R, id: de, shapeRendering: "auto", stroke: "rgba(0, 0, 0, 0.5)", strokeWidth: 1, style: H, transform: q(F) });
            };
            m.Arc = w;
          }),
          /* 5 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var u = function(p, w) {
                return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, N) {
                  C.__proto__ = N;
                } || function(C, N) {
                  for (var R in N) Object.prototype.hasOwnProperty.call(N, R) && (C[R] = N[R]);
                }, u(p, w);
              };
              return function(p, w) {
                if (typeof w != "function" && w !== null)
                  throw new TypeError("Class extends value " + String(w) + " is not a constructor or null");
                u(p, w);
                function C() {
                  this.constructor = p;
                }
                p.prototype = w === null ? Object.create(w) : (C.prototype = w.prototype, new C());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(u) {
                for (var p, w = 1, C = arguments.length; w < C; w++) {
                  p = arguments[w];
                  for (var N in p) Object.prototype.hasOwnProperty.call(p, N) && (u[N] = p[N]);
                }
                return u;
              }, g.apply(this, arguments);
            }, A = this && this.__rest || function(u, p) {
              var w = {};
              for (var C in u) Object.prototype.hasOwnProperty.call(u, C) && p.indexOf(C) < 0 && (w[C] = u[C]);
              if (u != null && typeof Object.getOwnPropertySymbols == "function")
                for (var N = 0, C = Object.getOwnPropertySymbols(u); N < C.length; N++)
                  p.indexOf(C[N]) < 0 && Object.prototype.propertyIsEnumerable.call(u, C[N]) && (w[C[N]] = u[C[N]]);
              return w;
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.CHAR_WIDTH = void 0;
            var _ = y(1), I = y(6), E = y(4), T = y(7), v = y(10), i = y(28), o = y(8), a = y(12), d = y(26);
            m.CHAR_WIDTH = 7.2;
            var s = (
              /** @class */
              (function(u) {
                S(p, u);
                function p(w) {
                  var C = u.call(this, w) || this;
                  return C.componentDidUpdate = function(N) {
                    var R, P, z, q, V;
                    C.selectionIsProgramatic(C.props.selection) && ((R = C.props.selection) === null || R === void 0 ? void 0 : R.start) !== ((P = N.selection) === null || P === void 0 ? void 0 : P.start) && ((z = C.props.selection) === null || z === void 0 ? void 0 : z.start) !== ((q = C.props.selection) === null || q === void 0 ? void 0 : q.end) && C.setCentralIndex("LINEAR", ((V = C.props.selection) === null || V === void 0 ? void 0 : V.start) || 0);
                  }, C.shouldComponentUpdate = function(N, R) {
                    return !(0, a.isEqual)(N, C.props) || !(0, a.isEqual)(R, C.state);
                  }, C.setCentralIndex = function(N, R) {
                    var P;
                    if (N !== "LINEAR" && N !== "CIRCULAR")
                      throw new Error("Unknown central index type: ".concat(N));
                    C.state.centralIndex[N.toLowerCase()] !== R && C.setState({ centralIndex: g(g({}, C.state.centralIndex), (P = {}, P[N.toLowerCase()] = R, P)) });
                  }, C.setSelection = function(N) {
                    N.parent, N.ref;
                    var R = A(N, ["parent", "ref"]);
                    C.props.selection || C.setState({ selection: N }), C.props.onSelection && C.props.onSelection(R);
                  }, C.getSelection = function(N, R) {
                    return R ? g(g({}, R), { clockwise: typeof R.clockwise > "u" || !!R.clockwise, type: "" }) : N;
                  }, C.linearProps = function() {
                    var N, R, P = C.props, z = P.seq, q = P.seqType, V = P.viewer, D = C.props.testSize || { height: C.props.height, width: C.props.width }, B = C.props.zoom.linear;
                    !((R = (N = C.props.refs) === null || N === void 0 ? void 0 : N.linear) === null || R === void 0) && R.current && C.props.children ? (D.width = C.props.refs.linear.current.clientWidth, D.height = C.props.refs.linear.current.clientHeight) : V.includes("both") && (D.width /= 2);
                    var b = Math.min(Math.round(B * 0.1 + 9.5), 18), F = Math.round(D.width / b * 1.4) || 1;
                    q === "aa" && (F = Math.round(F / 3)), B <= 5 ? F *= 3 : B <= 10 ? F *= 2 : B > 70 && (F = Math.round(F * (70 / B))), F = Math.max(1, F), D.width && F < z.length && (D.width -= 28);
                    var H = D.width / F, L = 1.4 * b, Q = 16;
                    return g(g({}, C.props), { bpsPerBlock: F, charWidth: H, elementHeight: Q, lineHeight: L, seqFontSize: b, size: D, zoom: { linear: B } });
                  }, C.circularProps = function() {
                    var N, R, P = C.props, z = P.seq.length, q = P.viewer, V = C.props.testSize || { height: C.props.height, width: C.props.width }, D = C.props.zoom.circular;
                    !((R = (N = C.props.refs) === null || N === void 0 ? void 0 : N.circular) === null || R === void 0) && R.current ? (V.width = C.props.refs.circular.current.clientWidth, V.height = C.props.refs.circular.current.clientHeight) : q.includes("both") && (V.width /= 2);
                    var B = {
                      x: V.width / 2,
                      y: V.height / 2
                    }, b = Math.min(V.height, V.width), F = 0.83, H = Math.exp(Math.log(50 / z) / -Math.pow(100, F)), L = z * H, Q = b * 0.34;
                    return g(g({}, C.props), { bpsOnArc: L, center: B, radius: Q === 0 ? 1 : Q, size: V, yDiff: 0, zoom: { circular: D } });
                  }, C.state = {
                    centralIndex: {
                      circular: 0,
                      linear: 0,
                      setCentralIndex: C.setCentralIndex
                    },
                    selection: C.getSelection(d.defaultSelection, w.selection)
                  }, C;
                }
                return p.prototype.selectionIsProgramatic = function(w) {
                  return w ? !w.type : !1;
                }, p.prototype.render = function() {
                  var w = this, C = this.props, N = C.selection, R = C.seq, P = C.viewer, z = this.state, q = z.centralIndex, V = z.selection, D = this.linearProps(), B = this.circularProps(), b = this.getSelection(V, N);
                  return _.createElement(
                    "div",
                    { ref: this.props.targetRef, className: "la-vz-viewer-container", "data-testid": "la-vz-viewer-container", style: {
                      height: "100%",
                      position: "relative",
                      width: "100%"
                    } },
                    _.createElement(
                      o.default.Provider,
                      { value: q },
                      _.createElement(
                        d.default.Provider,
                        { value: b },
                        _.createElement(i.default, { bpsPerBlock: D.bpsPerBlock, center: B.center, centralIndex: q.circular, seq: R, setCentralIndex: this.setCentralIndex, setSelection: this.setSelection, yDiff: B.yDiff }, function(F, H, L) {
                          return _.createElement(T.EventHandler, { bpsPerBlock: D.bpsPerBlock, copyEvent: w.props.copyEvent, handleMouseEvent: H, selectAllEvent: w.props.selectAllEvent, selection: b, seq: R, setSelection: w.setSelection }, w.props.children ? w.props.children({
                            circularProps: B,
                            handleMouseEvent: H,
                            inputRef: F,
                            linearProps: D,
                            onUnmount: L
                          }) : _.createElement(
                            _.Fragment,
                            null,
                            P === "linear" && _.createElement(v.default, g({}, D, { handleMouseEvent: H, inputRef: F, onUnmount: L })),
                            P === "circular" && _.createElement(E.default, g({}, B, { handleMouseEvent: H, inputRef: F, onUnmount: L })),
                            P === "both" && _.createElement(
                              _.Fragment,
                              null,
                              _.createElement(E.default, g({}, B, { handleMouseEvent: H, inputRef: F, onUnmount: L })),
                              _.createElement(v.default, g({}, D, { handleMouseEvent: H, inputRef: F, onUnmount: L }))
                            ),
                            P === "both_flip" && _.createElement(
                              _.Fragment,
                              null,
                              _.createElement(v.default, g({}, D, { handleMouseEvent: H, inputRef: F, onUnmount: L })),
                              _.createElement(E.default, g({}, B, { handleMouseEvent: H, inputRef: F, onUnmount: L }))
                            )
                          ));
                        })
                      )
                    )
                  );
                }, p;
              })(_.Component)
            );
            m.default = (0, I.withResizeDetector)(s);
          }),
          /* 6 */
          /***/
          ((Z) => {
            Z.exports = dp;
          }),
          /* 7 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var i = function(o, a) {
                return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
                  d.__proto__ = s;
                } || function(d, s) {
                  for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (d[u] = s[u]);
                }, i(o, a);
              };
              return function(o, a) {
                if (typeof a != "function" && a !== null)
                  throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                i(o, a);
                function d() {
                  this.constructor = o;
                }
                o.prototype = a === null ? Object.create(a) : (d.prototype = a.prototype, new d());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(i) {
                for (var o, a = 1, d = arguments.length; a < d; a++) {
                  o = arguments[a];
                  for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
                }
                return i;
              }, g.apply(this, arguments);
            }, A = this && this.__awaiter || function(i, o, a, d) {
              function s(u) {
                return u instanceof a ? u : new a(function(p) {
                  p(u);
                });
              }
              return new (a || (a = Promise))(function(u, p) {
                function w(R) {
                  try {
                    N(d.next(R));
                  } catch (P) {
                    p(P);
                  }
                }
                function C(R) {
                  try {
                    N(d.throw(R));
                  } catch (P) {
                    p(P);
                  }
                }
                function N(R) {
                  R.done ? u(R.value) : s(R.value).then(w, C);
                }
                N((d = d.apply(i, o || [])).next());
              });
            }, _ = this && this.__generator || function(i, o) {
              var a = { label: 0, sent: function() {
                if (u[0] & 1) throw u[1];
                return u[1];
              }, trys: [], ops: [] }, d, s, u, p;
              return p = { next: w(0), throw: w(1), return: w(2) }, typeof Symbol == "function" && (p[Symbol.iterator] = function() {
                return this;
              }), p;
              function w(N) {
                return function(R) {
                  return C([N, R]);
                };
              }
              function C(N) {
                if (d) throw new TypeError("Generator is already executing.");
                for (; a; ) try {
                  if (d = 1, s && (u = N[0] & 2 ? s.return : N[0] ? s.throw || ((u = s.return) && u.call(s), 0) : s.next) && !(u = u.call(s, N[1])).done) return u;
                  switch (s = 0, u && (N = [N[0] & 2, u.value]), N[0]) {
                    case 0:
                    case 1:
                      u = N;
                      break;
                    case 4:
                      return a.label++, { value: N[1], done: !1 };
                    case 5:
                      a.label++, s = N[1], N = [0];
                      continue;
                    case 7:
                      N = a.ops.pop(), a.trys.pop();
                      continue;
                    default:
                      if (u = a.trys, !(u = u.length > 0 && u[u.length - 1]) && (N[0] === 6 || N[0] === 2)) {
                        a = 0;
                        continue;
                      }
                      if (N[0] === 3 && (!u || N[1] > u[0] && N[1] < u[3])) {
                        a.label = N[1];
                        break;
                      }
                      if (N[0] === 6 && a.label < u[1]) {
                        a.label = u[1], u = N;
                        break;
                      }
                      if (u && a.label < u[2]) {
                        a.label = u[2], a.ops.push(N);
                        break;
                      }
                      u[2] && a.ops.pop(), a.trys.pop();
                      continue;
                  }
                  N = o.call(i, a);
                } catch (R) {
                  N = [6, R], s = 0;
                } finally {
                  d = u = 0;
                }
                if (N[0] & 5) throw N[1];
                return { value: N[0] ? N[1] : void 0, done: !0 };
              }
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.EventHandler = void 0;
            var I = y(1), E = y(8), T = y(9), v = (
              /** @class */
              (function(i) {
                S(o, i);
                function o() {
                  var a = i !== null && i.apply(this, arguments) || this;
                  return a.clickedOnce = null, a.clickedTwice = null, a.handleKeyPress = function(d) {
                    var s = a.keypressMap(d);
                    s && (d.preventDefault(), a.handleSeqInteraction(s));
                  }, a.keypressMap = function(d) {
                    var s = a.props, u = s.copyEvent, p = s.selectAllEvent;
                    if (u && u(d))
                      return "Copy";
                    if (p && p(d))
                      return "SelectAll";
                    var w = d.key, C = d.shiftKey;
                    switch (w) {
                      case "ArrowLeft":
                      case "ArrowRight":
                      case "ArrowUp":
                      case "ArrowDown":
                        return C ? "Shift".concat(w) : w;
                      default:
                        return null;
                    }
                  }, a.handleSeqInteraction = function(d) {
                    return A(a, void 0, void 0, function() {
                      var s, u, p, w, C, N, R, P, z, q, V;
                      return _(this, function(D) {
                        switch (s = this.props.seq, u = s.length, p = this.props.bpsPerBlock || 1, d) {
                          case "SelectAll": {
                            this.selectAllHotkey();
                            break;
                          }
                          case "Copy": {
                            this.handleCopy();
                            break;
                          }
                          case "ArrowUp":
                          case "ArrowRight":
                          case "ArrowDown":
                          case "ArrowLeft":
                          case "ShiftArrowUp":
                          case "ShiftArrowRight":
                          case "ShiftArrowDown":
                          case "ShiftArrowLeft": {
                            if (w = this.props, C = w.selection, N = w.setSelection, R = C.end, P = C.start, typeof P > "u" || typeof R > "u")
                              return [
                                2
                                /*return*/
                              ];
                            z = C.clockwise, q = R, d === "ArrowUp" || d === "ShiftArrowUp" ? u / p > 1 ? q -= p : q -= 1 : d === "ArrowRight" || d === "ShiftArrowRight" ? q += 1 : d === "ArrowDown" || d === "ShiftArrowDown" ? u / p > 1 ? q += p : q += 1 : (d === "ArrowLeft" || d === "ShiftArrowLeft") && (q -= 1), q <= -1 && (q = u + q), q >= u + 1 && (q -= u), V = Math.abs(P - R), z = V === 0 ? d === "ArrowRight" || d === "ShiftArrowRight" || d === "ArrowDown" || d === "ShiftArrowDown" : z, q !== P && !d.startsWith("Shift") ? N({
                              clockwise: !0,
                              end: q,
                              start: q,
                              type: "SEQ"
                            }) : d.startsWith("Shift") && N({
                              clockwise: z,
                              end: q,
                              start: P,
                              type: "SEQ"
                            });
                            break;
                          }
                        }
                        return [
                          2
                          /*return*/
                        ];
                      });
                    });
                  }, a.handleCopy = function() {
                    var d = a.props, s = d.selection, u = s.end, p = s.ref, w = s.start, C = d.seq;
                    if (document) {
                      var N = document.activeElement, R = document.createElement("textarea");
                      p === "ALL" ? R.innerText = C : R.innerText = C.substring(w || 0, u), document.body && document.body.appendChild(R), R.select(), document.execCommand("copy"), R.remove(), N && N.focus();
                    }
                  }, a.selectAllHotkey = function() {
                    var d = a.props, s = d.selection, u = d.seq, p = d.setSelection, w = g(g({}, s), { clockwise: !0, end: u.length, start: 0 });
                    p(w);
                  }, a.handleTripleClick = function() {
                    a.selectAllHotkey();
                  }, a.resetClicked = (0, T.default)(function() {
                    a.clickedOnce = null, a.clickedTwice = null;
                  }, 250), a.handleMouseEvent = function(d) {
                    var s = a.props.handleMouseEvent;
                    d.type === "mouseup" && (a.resetClicked(), a.clickedOnce === d.target && a.clickedTwice === d.target ? (a.handleTripleClick(), a.resetClicked()) : a.clickedOnce === d.target && a.clickedTwice === null ? (a.clickedOnce = d.target, a.clickedTwice = d.target, a.resetClicked()) : (a.clickedOnce = d.target, a.resetClicked()));
                    var u = d.button, p = d.ctrlKey, w = d.type, C = w === "mousedown" && u === 0 && p;
                    d.button === 0 && !C && s(d);
                  }, a.render = function() {
                    return I.createElement("div", { className: "la-vz-viewer-event-router", id: "la-vz-event-router", role: "presentation", style: {
                      display: "flex",
                      flexDirection: "row",
                      height: "100%",
                      outline: "none",
                      position: "absolute",
                      width: "100%"
                    }, tabIndex: -1, onKeyDown: a.handleKeyPress, onMouseDown: a.handleMouseEvent, onMouseMove: a.props.handleMouseEvent, onMouseUp: a.handleMouseEvent }, a.props.children);
                  }, a;
                }
                return o.contextType = E.default, o;
              })(I.PureComponent)
            );
            m.EventHandler = v;
          }),
          /* 8 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(1), g = {
              circular: 0,
              linear: 0,
              setCentralIndex: function(_, I) {
              }
            }, A = S.createContext(g);
            A.displayName = "CentralIndexContext", m.default = A;
          }),
          /* 9 */
          /***/
          ((Z, m) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.default = (function(y, S, g) {
              g === void 0 && (g = !0);
              var A;
              return function() {
                for (var _ = [], I = 0; I < arguments.length; I++)
                  _[I] = arguments[I];
                var E = function() {
                  A = null, g || y.apply(this, _);
                }, T = g && !A;
                clearTimeout(A), A = setTimeout(E, S), T && y.apply(this, _);
              };
            });
          }),
          /* 10 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var i = function(o, a) {
                return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
                  d.__proto__ = s;
                } || function(d, s) {
                  for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (d[u] = s[u]);
                }, i(o, a);
              };
              return function(o, a) {
                if (typeof a != "function" && a !== null)
                  throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                i(o, a);
                function d() {
                  this.constructor = o;
                }
                o.prototype = a === null ? Object.create(a) : (d.prototype = a.prototype, new d());
              };
            })();
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(1), A = y(11), _ = y(12), I = y(13), E = y(14), T = y(16), v = (
              /** @class */
              (function(i) {
                S(o, i);
                function o() {
                  var a = i !== null && i.apply(this, arguments) || this;
                  return a.shouldComponentUpdate = function(d) {
                    return !(0, _.isEqual)(d, a.props);
                  }, a;
                }
                return o.prototype.render = function() {
                  var a = this.props, d = a.annotations, s = a.bpsPerBlock, u = a.compSeq, p = a.cutSites, w = a.elementHeight, C = a.highlights, N = a.lineHeight, R = a.onUnmount, P = a.primers, z = a.search, q = a.seq, V = a.seqType, D = a.showComplement, B = a.showIndex, b = a.size, F = a.translations, H = a.zoom, L = H.linear > 10, Q = q.length, ae = Math.round(Math.ceil(Q / s));
                  ae === Number.POSITIVE_INFINITY && (ae = 1);
                  var de = new Array(ae), ue = new Array(ae), pe = new Array(ae), ke = new Array(ae), Ee = p.length ? (0, A.createSingleRows)(p, s, ae) : new Array(ae).fill([]);
                  function Ne(ut) {
                    return ut.forEach(function(lt) {
                      lt.end === 0 && lt.start > lt.end && (lt.end = Q), lt.start === Q && lt.end < lt.start && (lt.start = 0);
                    }), ut;
                  }
                  for (var Oe = (0, A.createMultiRows)((0, A.stackElements)(Ne(P.filter(function(ut) {
                    return ut.direction === 1;
                  })), q.length), s, ae), Ue = (0, A.createMultiRows)((0, A.stackElements)(Ne(P.filter(function(ut) {
                    return ut.direction === -1;
                  })), q.length), s, ae), Ze = (0, A.createMultiRows)((0, A.stackElements)(Ne(d), q.length), s, ae), Xe = z && z.length ? (0, A.createSingleRows)(z, s, ae) : new Array(ae).fill([]), rt = (0, A.createSingleRows)(C, s, ae), nt = F.length ? (0, A.createMultiRows)((0, A.stackElements)((0, I.createTranslations)(F, q, V), q.length), s, ae) : new Array(ae).fill([]), Pe = 0; Pe < ae; Pe += 1) {
                    var $e = Pe * s, ct = $e + s;
                    ue[Pe] = q.substring($e, ct), pe[Pe] = u.substring($e, ct), de[Pe] = ue[Pe] + String(Pe);
                    var ot = N * 1.1;
                    V != "aa" && (ot += N), L && (ot += D ? N : 0), Oe[Pe].length && (ot += Oe[Pe].length * N), Ue[Pe].length && (ot += Ue[Pe].length * N), B && (ot += N), nt[Pe].length && (ot += nt[Pe].length * w * 2), Ze[Pe].length && (ot += Ze[Pe].length * w), Ee[Pe].length && (ot += N), ke[Pe] = ot;
                  }
                  for (var vt = [], At = 0, Pe = 0; Pe < ae; Pe += 1) {
                    var $e = Pe * s;
                    vt.push(g.createElement(T.SeqBlock, { key: de[Pe], annotationRows: Ze[Pe], blockHeight: ke[Pe], bpColors: this.props.bpColors, bpsPerBlock: s, charWidth: this.props.charWidth, compSeq: pe[Pe], cutSiteRows: Ee[Pe], elementHeight: w, firstBase: $e, fullSeq: q, handleMouseEvent: this.props.handleMouseEvent, highlights: rt[Pe], id: de[Pe], inputRef: this.props.inputRef, lineHeight: N, primerFwdRows: Oe[Pe], primerRevRows: Ue[Pe], searchRows: Xe[Pe], seq: ue[Pe], seqFontSize: this.props.seqFontSize, seqType: V, showComplement: D, showIndex: B, size: b, translationRows: nt[Pe], y: At, zoom: H, zoomed: L, onUnmount: R })), At += ke[Pe];
                  }
                  return vt.length && g.createElement(E.InfiniteScroll, { blockHeights: ke, bpsPerBlock: s, seqBlocks: vt, size: b, totalHeight: ke.reduce(function(ut, lt) {
                    return ut + lt;
                  }, 0) });
                }, o;
              })(g.Component)
            );
            m.default = v;
          }),
          /* 11 */
          /***/
          (function(Z, m) {
            var y = this && this.__spreadArray || function(E, T, v) {
              if (v || arguments.length === 2) for (var i = 0, o = T.length, a; i < o; i++)
                (a || !(i in T)) && (a || (a = Array.prototype.slice.call(T, 0, i)), a[i] = T[i]);
              return E.concat(a || Array.prototype.slice.call(T));
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.createSingleRows = m.createMultiRows = m.stackElements = void 0;
            var S = function(E) {
              return E[E.length - 1];
            }, g = function(E) {
              return E[0];
            }, A = function(E, T) {
              return y([], E, !0).sort(function(v, i) {
                return v.end - i.end;
              }).sort(function(v, i) {
                return v.start - i.start;
              }).reduce(function(v, i) {
                var o = v.findIndex(function(a) {
                  return i.end === i.start ? !1 : S(a).end <= S(a).start ? S(a).end + T <= i.start : i.end > i.start ? S(a).end <= i.start : S(a).end < i.start && i.end < g(a).start;
                });
                return o > -1 ? v[o].push(i) : v.push([i]), v;
              }, []);
            };
            m.stackElements = A;
            var _ = function(E, T, v) {
              for (var i = new Array(v), o = 0; o < v; o += 1) {
                i[o] = [];
                for (var a = 0; a < E.length; a += 1)
                  i[o][a] = [];
              }
              for (var o = 0; o < E.length; o += 1)
                for (var a = 0; a < E[o].length; a += 1)
                  if (E[o][a].start < E[o][a].end)
                    for (var d = Math.max(0, Math.floor(E[o][a].start / T)), s = Math.floor((E[o][a].end - 1) / T); d <= s && d < v; )
                      i[d][o].push(E[o][a]), d += 1;
                  else if (E[o][a].end < E[o][a].start) {
                    var u = Math.floor((E[o][a].end - 1) / T);
                    for (E[o][a].end === 0 && (u = -1); u >= 0 && u < i.length; )
                      i[u][o].push(E[o][a]), u -= 1;
                    for (var p = Math.floor(E[o][a].start / T); p < v; )
                      i[p][o].push(E[o][a]), p += 1;
                  } else if (E[o][a].end === E[o][a].start) {
                    for (var w = 0; w < i.length; w += 1)
                      i[w][o].push(E[o][a]);
                    if (E[o][a].end === 0)
                      continue;
                    var p = Math.floor(E[o][a].start / T);
                    i[p][o].push(E[o][a]);
                  }
              for (var o = 0; o < v; o += 1)
                i[o] = i[o].filter(function(N) {
                  return N[0];
                });
              return i;
            };
            m.createMultiRows = _;
            var I = function(E, T, v, i) {
              i === void 0 && (i = !0);
              for (var o = new Array(v), a = 0; a < v; a += 1)
                o[a] = [];
              for (var d = function(s) {
                var u = E[s], p = u.end, w = u.start;
                if (w < p)
                  for (var C = Math.floor(w / T), N = Math.floor((p - 1) / T); C <= N && C < v; )
                    o[C].push(E[s]), C += 1;
                else {
                  for (var R = Math.floor(p / T); R >= 0; )
                    o[R].push(E[s]), R -= 1;
                  for (var P = Math.floor(w / T); P < v; )
                    (i || o[P].every(function(z) {
                      return z.id !== E[s].id;
                    })) && o[P].push(E[s]), P += 1;
                }
              }, a = 0; a < E.length; a += 1)
                d(a);
              return o;
            };
            m.createSingleRows = I;
          }),
          /* 12 */
          /***/
          ((Z, m) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.isEqual = void 0;
            var y = function(S, g) {
              if (S === g)
                return !0;
              if (typeof S == "object" && S !== null && typeof g == "object" && g !== null) {
                if (Object.keys(S).length !== Object.keys(g).length)
                  return !1;
                for (var A in S)
                  if (Object.prototype.hasOwnProperty.call(g, A)) {
                    if (!(0, m.isEqual)(S[A], g[A]))
                      return !1;
                  } else
                    return !1;
                return !0;
              }
              return !1;
            };
            m.isEqual = y;
          }),
          /* 13 */
          /***/
          (function(Z, m) {
            var y = this && this.__assign || function() {
              return y = Object.assign || function(q) {
                for (var V, D = 1, B = arguments.length; D < B; D++) {
                  V = arguments[D];
                  for (var b in V) Object.prototype.hasOwnProperty.call(V, b) && (q[b] = V[b]);
                }
                return q;
              }, y.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.randomID = m.createTranslations = m.translate = m.directionality = m.reverseComplement = m.complement = m.reverse = m.guessType = m.getAlphabet = m.nucleotides = void 0, m.nucleotides = { a: "a", c: "c", g: "g", t: "t", u: "u" };
            var S = {
              // ".": { a: "a", c: "c", g: "g", t: "t" },
              b: { c: "c", g: "g", t: "t" },
              d: { a: "a", g: "g", t: "t" },
              h: { a: "a", c: "c", t: "t" },
              k: { g: "g", t: "t" },
              m: { a: "a", c: "c" },
              n: { a: "a", c: "c", g: "g", t: "t" },
              r: { a: "a", g: "g" },
              s: { c: "c", g: "g" },
              v: { a: "a", c: "c", g: "g" },
              w: { a: "a", t: "t" },
              x: { a: "a", c: "c", g: "g", t: "t" },
              y: { c: "c", t: "t" }
            }, g = {
              // ".": { c: "c", g: "g", u: "u" },
              b: { c: "c", g: "g", u: "u" },
              d: { a: "a", g: "g", u: "u" },
              h: { a: "a", c: "c", u: "u" },
              k: { g: "g", u: "u" },
              m: { a: "a", c: "c" },
              n: { a: "a", c: "c", g: "g", u: "u" },
              r: { a: "a", g: "g" },
              s: { c: "c", g: "g" },
              v: { a: "a", c: "c", g: "g" },
              w: { a: "a", u: "u" },
              x: { a: "a", c: "c", g: "g", u: "u" },
              y: { c: "c", u: "u" }
            }, A = {
              AAA: "K",
              AAC: "N",
              AAG: "K",
              AAT: "N",
              ACA: "T",
              ACC: "T",
              ACG: "T",
              ACT: "T",
              AGA: "R",
              AGC: "S",
              AGG: "R",
              AGT: "S",
              ATA: "I",
              ATC: "I",
              ATG: "M",
              ATT: "I",
              CAA: "Q",
              CAC: "H",
              CAG: "Q",
              CAT: "H",
              CCA: "P",
              CCC: "P",
              CCG: "P",
              CCT: "P",
              CGA: "R",
              CGC: "R",
              CGG: "R",
              CGT: "R",
              CTA: "L",
              CTC: "L",
              CTG: "L",
              CTT: "L",
              GAA: "E",
              GAC: "D",
              GAG: "E",
              GAT: "D",
              GCA: "A",
              GCC: "A",
              GCG: "A",
              GCT: "A",
              GGA: "G",
              GGC: "G",
              GGG: "G",
              GGT: "G",
              GTA: "V",
              GTC: "V",
              GTG: "V",
              GTT: "V",
              TAA: "*",
              TAC: "Y",
              TAG: "*",
              TAT: "Y",
              TCA: "S",
              TCC: "S",
              TCG: "S",
              TCT: "S",
              TGA: "*",
              TGC: "C",
              TGG: "W",
              TGT: "C",
              TTA: "L",
              TTC: "F",
              TTG: "L",
              TTT: "F"
            }, _ = Array.from(new Set(Object.values(A)).values()).join(""), I = _.toLowerCase().split("").filter(function(q) {
              return q !== "*";
            }).reduce(function(q, V) {
              var D;
              return y(y({}, q), (D = {}, D[V] = V, D));
            }, {}), E = {
              b: { d: "d", n: "n" },
              j: { i: "i", l: "l" },
              x: I,
              z: { e: "e", q: "q" }
            }, T = function(q) {
              return {
                aa: E,
                dna: S,
                rna: g,
                unknown: S
              }[q];
            };
            m.getAlphabet = T;
            var v = new RegExp("^[".concat(_, "BJXZ]+$"), "i"), i = function(q) {
              return q = q.substring(0, 1e3), /^[atgcn.]+$/i.test(q) ? "dna" : /^[augcn.]+$/i.test(q) ? "rna" : v.test(q) ? "aa" : "unknown";
            };
            m.guessType = i;
            var o = function(q) {
              return q.split("").reverse().join("");
            };
            m.reverse = o;
            var a = {
              a: "t",
              b: "v",
              c: "g",
              d: "h",
              g: "c",
              h: "d",
              k: "m",
              m: "k",
              n: "n",
              r: "y",
              s: "s",
              t: "a",
              u: "a",
              v: "b",
              w: "w",
              x: "x",
              y: "r"
            };
            a = y(y({}, a), Object.keys(a).reduce(function(q, V) {
              var D;
              return y(y({}, q), (D = {}, D[V.toUpperCase()] = a[V].toUpperCase(), D));
            }, {}));
            var d = {
              aa: Object.keys(I).reduce(function(q, V) {
                var D;
                return y(y({}, q), (D = {}, D[V.toUpperCase()] = "", D[V.toLowerCase()] = "", D));
              }, {
                B: "",
                J: "",
                Z: "",
                b: "",
                j: "",
                z: ""
              }),
              dna: a,
              rna: y(y({}, a), { A: "U", a: "u" }),
              undefined: a
            }, s = function(q, V) {
              if (!q)
                return { compSeq: "", seq: "" };
              for (var D = d[V], B = "", b = "", F = 0, H = q.length; F < H; F += 1)
                q[F] in D && (B += q[F], b += D[q[F]]);
              return { compSeq: b, seq: B };
            };
            m.complement = s;
            var u = function(q, V) {
              var D = (0, m.complement)(q, V).compSeq;
              return D.split("").reverse().join("");
            };
            m.reverseComplement = u;
            var p = /* @__PURE__ */ new Set(["FWD", "fwd", "FORWARD", "forward", "FOR", "for", "TOP", "top", "1", 1]), w = /* @__PURE__ */ new Set(["REV", "rev", "REVERSE", "reverse", "BOTTOM", "bottom", "-1", -1]), C = function(q) {
              return q ? p.has(q) ? 1 : w.has(q) ? -1 : 0 : 0;
            };
            m.directionality = C;
            var N = Object.keys(A).reduce(function(q, V) {
              var D;
              return y(y({}, q), (D = {}, D[V.replace(/T/gi, "U")] = A[V], D));
            }, {}), R = function(q, V) {
              if (V === "aa")
                return q;
              var D = A;
              V === "rna" && (D = N);
              for (var B = q.toUpperCase(), b = B.length, F = "", H = 0, L = 0; H < b; H += 3, L += 1)
                H + 2 < b && (F += D[B[H] + B[H + 1] + B[H + 2]] || "?");
              return F;
            };
            m.translate = R;
            var P = function(q, V, D) {
              var B = V + V, b = D === "aa" ? 1 : 3;
              return q.map(function(F) {
                var H = F.direction, L = F.start, Q = F.end;
                L > Q && (Q += V.length);
                var ae = H === 1 ? B.substring(L, Q) : (0, m.reverseComplement)(B.substring(L, Q), D), de = H === 1 ? (0, m.translate)(ae, D) : (0, m.translate)(ae, D).split("").reverse().join(""), ue = H === 1 ? L : Q - de.length * b, pe = H === 1 ? (L + de.length * b) % V.length : Q % V.length;
                return pe === 0 && (pe += V.length), y(y({}, F), { AAseq: de, end: pe, start: ue });
              });
            };
            m.createTranslations = P;
            var z = function(q) {
              q === void 0 && (q = 10);
              var V = 1, D = 12 - V;
              D = Math.pow(10, q + V);
              var B = D / 10, b = Math.floor(Math.random() * (D - B + 1)) + B;
              return String(b).substring(V);
            };
            m.randomID = z;
          }),
          /* 14 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var T = function(v, i) {
                return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
                  o.__proto__ = a;
                } || function(o, a) {
                  for (var d in a) Object.prototype.hasOwnProperty.call(a, d) && (o[d] = a[d]);
                }, T(v, i);
              };
              return function(v, i) {
                if (typeof i != "function" && i !== null)
                  throw new TypeError("Class extends value " + String(i) + " is not a constructor or null");
                T(v, i);
                function o() {
                  this.constructor = v;
                }
                v.prototype = i === null ? Object.create(i) : (o.prototype = i.prototype, new o());
              };
            })();
            Object.defineProperty(m, "__esModule", { value: !0 }), m.InfiniteScroll = void 0;
            var g = y(1), A = y(8), _ = y(12), I = y(15), E = (
              /** @class */
              (function(T) {
                S(v, T);
                function v(i) {
                  var o = T.call(this, i) || this;
                  return o.scroller = g.createRef(), o.insideDOM = g.createRef(), o.componentDidMount = function() {
                    o.handleScrollOrResize(), window.addEventListener("resize", o.handleScrollOrResize);
                  }, o.componentDidUpdate = function(a, d, s) {
                    if (o.scroller.current) {
                      var u = o.props, p = u.seqBlocks, w = u.size, C = o.state, N = C.centralIndex, R = C.visibleBlocks;
                      o.context && N !== o.context.linear ? o.scrollToCentralIndex() : !(0, _.isEqual)(a.size, w) || p.length !== a.seqBlocks.length ? o.handleScrollOrResize() : (0, _.isEqual)(d.visibleBlocks, R) && o.restoreSnapshot(s);
                    }
                  }, o.componentWillUnmount = function() {
                    window.removeEventListener("resize", o.handleScrollOrResize);
                  }, o.getSnapshotBeforeUpdate = function(a) {
                    var d = o.scroller.current ? o.scroller.current.scrollTop : 0, s = a.blockHeights, u = 0, p = 0;
                    do
                      p += s[u], u += 1;
                    while (p + s[u] < d && u < s.length);
                    var w = d - p;
                    return { blockIndex: u, blockY: w };
                  }, o.scrollToCentralIndex = function() {
                    if (o.scroller.current) {
                      var a = o.props, d = a.blockHeights, s = a.bpsPerBlock, u = a.seqBlocks, p = a.size.height, w = a.totalHeight, C = o.state.visibleBlocks, N = o.scroller.current, R = N.clientHeight, P = N.scrollHeight, z = o.context.linear, q = u.findIndex(function(H) {
                        return H.props.firstBase <= z && H.props.firstBase + s >= z;
                      }), V = [];
                      if (P <= R)
                        V = C;
                      else if (q > -1) {
                        var D = u[q], B = q > 0 ? d[q - 1] : 0, b = D.props.y - B, F = b + p;
                        F > w && (F = w, b = w - p), d.reduce(function(H, L, Q) {
                          return H >= b && H <= F && V.push(Q), H + L;
                        }, 0), o.scroller.current.scrollTop = D.props.y - d[0] / 2;
                      }
                      (0, _.isEqual)(V, C) || o.setState({
                        centralIndex: z,
                        visibleBlocks: V
                      });
                    }
                  }, o.restoreSnapshot = function(a) {
                    if (o.scroller.current) {
                      var d = o.props.blockHeights, s = a.blockIndex, u = a.blockY, p = d.slice(0, s).reduce(function(w, C) {
                        return w + C;
                      }, 0) + u;
                      o.scroller.current.scrollTop = p;
                    }
                  }, o.handleScrollOrResize = function() {
                    if (!(!o.scroller.current || !o.insideDOM.current)) {
                      var a = o.props, d = a.blockHeights, s = a.size.height, u = a.totalHeight, p = o.state.visibleBlocks, w = [], C = 0;
                      if (o.scroller && o.insideDOM) {
                        var N = o.scroller.current.getBoundingClientRect().top, R = o.insideDOM.current.getBoundingClientRect().top;
                        C = R - N;
                      }
                      C = -C + 35, C = Math.max(0, C), C = Math.min(u - s, C);
                      var P = C + s;
                      C -= 2 * d[0], d.reduce(function(z, q, V) {
                        return z >= C && z <= P && w.push(V), z + q;
                      }, 0), (0, _.isEqual)(w, p) || o.setState({ visibleBlocks: w });
                    }
                  }, o.incrementScroller = function(a) {
                    o.stopIncrementingScroller(), o.timeoutID = setTimeout(function() {
                      o.scroller.current && (o.scroller.current.scrollTop += a, o.incrementScroller(a));
                    }, 5);
                  }, o.stopIncrementingScroller = function() {
                    o.timeoutID && (clearTimeout(o.timeoutID), o.timeoutID = null);
                  }, o.handleMouseOver = function(a) {
                    if (o.scroller.current) {
                      if (a.buttons !== 1) {
                        o.timeoutID && o.stopIncrementingScroller();
                        return;
                      }
                      var d = o.scroller.current.getBoundingClientRect(), s = (a.clientY - d.top) / d.height;
                      if (s > 0.9) {
                        s = Math.min(1, s);
                        var u = s - 0.9;
                        u *= 10;
                        var p = 15 * u;
                        o.incrementScroller(p);
                      } else if (s < 0.1) {
                        s = 0.1 - Math.max(0, s);
                        var u = 10 * s, p = -15 * u;
                        o.incrementScroller(p);
                      } else
                        o.stopIncrementingScroller();
                    }
                  }, o.state = {
                    centralIndex: 0,
                    // start off with first 5 blocks shown
                    visibleBlocks: new Array(Math.min(5, i.seqBlocks.length)).fill(null).map(function(a, d) {
                      return d;
                    })
                  }, o;
                }
                return v.prototype.render = function() {
                  var i = this.props, o = i.blockHeights, a = i.seqBlocks, d = i.size.width, s = i.totalHeight, u = this.state.visibleBlocks, p = u[0], w = o.slice(0, p).reduce(function(C, N) {
                    return C + N;
                  }, 0);
                  return g.createElement(
                    "div",
                    { ref: this.scroller, className: "la-vz-linear-scroller", "data-testid": "la-vz-viewer-linear", style: I.linearScroller, onFocus: function() {
                    }, onMouseOver: this.handleMouseOver, onScroll: this.handleScrollOrResize },
                    g.createElement(
                      "div",
                      { ref: this.insideDOM, className: "la-vz-seqblock-container", style: { height: s, width: "100%" } },
                      g.createElement("div", { className: "la-vz-seqblock-padding-top", style: { height: w, width: d || 0 } }),
                      u.map(function(C) {
                        return a[C];
                      })
                    )
                  );
                }, v.contextType = A.default, v;
              })(g.PureComponent)
            );
            m.InfiniteScroll = E;
          }),
          /* 15 */
          /***/
          (function(Z, m) {
            var y = this && this.__assign || function() {
              return y = Object.assign || function(S) {
                for (var g, A = 1, _ = arguments.length; A < _; A++) {
                  g = arguments[A];
                  for (var I in g) Object.prototype.hasOwnProperty.call(g, I) && (S[I] = g[I]);
                }
                return S;
              }, y.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.seqBlock = m.linearScroller = m.circularLabelLine = m.circularLabelHover = m.circularLabel = m.viewerCircular = m.translationAminoAcidLabel = m.translationHandleLabel = m.translationHandle = m.annotationLabel = m.annotation = m.indexTickLabel = m.indexTick = m.indexLine = m.cutSiteHighlight = m.cutSite = m.selectionEdge = m.selection = m.highlight = m.search = m.svgText = void 0, m.svgText = {
              MozUserSelect: "none",
              WebkitUserSelect: "none",
              background: "none",
              fill: "rgb(42, 42, 42)",
              fontFamily: "Roboto Mono, Monaco, monospace",
              msUserSelect: "none",
              userSelect: "none"
            }, m.search = {
              cursor: "pointer",
              fill: "rgba(255, 251, 7, 0.5)"
            }, m.highlight = {
              cursor: "pointer",
              fill: "rgba(255, 251, 7, 0.25)",
              strokeWidth: "1"
            }, m.selection = {
              fill: "rgb(222, 246, 255)",
              shapeRendering: "auto"
            }, m.selectionEdge = {
              fill: "black",
              shapeRendering: "geometricPrecision",
              stroke: "black"
            }, m.cutSite = {
              fill: "transparent",
              shapeRendering: "auto",
              stroke: "rgb(115, 119, 125)",
              strokeWidth: "1"
            }, m.cutSiteHighlight = {
              cursor: "pointer",
              fill: "rgb(255, 251, 7)",
              fillOpacity: 0,
              shapeRendering: "auto",
              stroke: "rgb(115, 119, 125)",
              strokeWidth: "1"
            }, m.indexLine = {
              fill: "transparent",
              shapeRendering: "geometricPrecision",
              stroke: "rgb(115, 119, 125)",
              strokeWidth: "1"
            }, m.indexTick = {
              fill: "transparent",
              shapeRendering: "geometricPrecision",
              stroke: "rgb(115, 119, 125)",
              strokeWidth: "1"
            }, m.indexTickLabel = y(y({}, m.svgText), { fill: "rgb(115, 119, 125)", fontSize: "12", fontWeight: 300, textRendering: "optimizeLegibility" }), m.annotation = {
              fillOpacity: "0.7",
              shapeRendering: "geometricPrecision",
              strokeWidth: "0.5"
            }, m.annotationLabel = y(y({}, m.svgText), { color: "rgb(42, 42, 42)", fontWeight: 400, shapeRendering: "geometricPrecision", strokeLinejoin: "round", textRendering: "optimizeLegibility" }), m.translationHandle = {
              fillOpacity: "0.7",
              shapeRendering: "geometricPrecision",
              strokeWidth: "0.5"
            }, m.translationHandleLabel = y(y({}, m.svgText), { color: "rgb(42, 42, 42)", fontSize: "9", fontWeight: 400, shapeRendering: "geometricPrecision", strokeLinejoin: "round", textRendering: "optimizeLegibility" }), m.translationAminoAcidLabel = y(y({}, m.svgText), { color: "rgb(42, 42, 42)", fontSize: "12", fontWeight: 400 }), m.viewerCircular = {
              cursor: "text",
              fontSize: "12",
              fontWeight: 300,
              margin: "auto"
            }, m.circularLabel = y(y({}, m.svgText), { cursor: "pointer" }), m.circularLabelHover = y(y({}, m.circularLabel), { textDecoration: "underline" }), m.circularLabelLine = {
              fill: "none",
              stroke: "rgb(158, 170, 184)",
              strokeWidth: "1"
            }, m.linearScroller = {
              cursor: "text",
              fontWeight: 300,
              height: "100%",
              outline: "none !important",
              overflowX: "hidden",
              overflowY: "scroll",
              padding: "10px",
              position: "relative"
            }, m.seqBlock = {
              overflow: "visible",
              padding: 0,
              width: "100%"
            };
          }),
          /* 16 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var u = function(p, w) {
                return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, N) {
                  C.__proto__ = N;
                } || function(C, N) {
                  for (var R in N) Object.prototype.hasOwnProperty.call(N, R) && (C[R] = N[R]);
                }, u(p, w);
              };
              return function(p, w) {
                if (typeof w != "function" && w !== null)
                  throw new TypeError("Class extends value " + String(w) + " is not a constructor or null");
                u(p, w);
                function C() {
                  this.constructor = p;
                }
                p.prototype = w === null ? Object.create(w) : (C.prototype = w.prototype, new C());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(u) {
                for (var p, w = 1, C = arguments.length; w < C; w++) {
                  p = arguments[w];
                  for (var N in p) Object.prototype.hasOwnProperty.call(p, N) && (u[N] = p[N]);
                }
                return u;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.SeqBlock = void 0;
            var A = y(1), _ = y(15), I = y(17), E = y(20), T = y(21), v = y(22), i = y(23), o = y(24), a = y(25), d = y(27), s = (
              /** @class */
              (function(u) {
                S(p, u);
                function p() {
                  var w = u !== null && u.apply(this, arguments) || this;
                  return w.componentWillUnmount = function() {
                    var C = w.props, N = C.id, R = C.onUnmount;
                    R(N);
                  }, w.findXAndWidthElement = function(C, N, R) {
                    var P, z, q, V, D = w.props, B = D.bpsPerBlock, b = D.firstBase, F = D.fullSeq, H = D.seq, L = b + H.length, Q = N.end, ae = N.start, de = w.findXAndWidth(ae, Q), ue = de.width, pe = de.x, ke = ae < b, Ee = Q > L || ae === Q && F.length > B, Ne = R.reduce(function(Oe, Ue) {
                      return Ue.id === N.id ? Oe + 1 : Oe;
                    }, 0) > 1;
                    return Ne ? R.findIndex(function(Oe) {
                      return Oe.id === N.id;
                    }) === C ? (P = w.findXAndWidth(b, Q), ue = P.width, pe = P.x, ke = !0, Ee = !1) : (z = w.findXAndWidth(ae, L), ue = z.width, pe = z.x, ke = !1, Ee = !0) : ae > Q ? (q = w.findXAndWidth(ae > L ? b : Math.max(b, ae), Q < b ? L : Math.min(L, Q)), ue = q.width, pe = q.x, ae > b && (ke = !0, Ee = Q > L), Q < b && (ke = ae < b, Ee = !0)) : ae === Q && (V = w.findXAndWidth(ae, Q + F.length), ue = V.width, pe = V.x), { overflowLeft: ke, overflowRight: Ee, width: ue, x: pe };
                  }, w.findXAndWidth = function(C, N) {
                    C === void 0 && (C = 0), N === void 0 && (N = 0);
                    var R = w.props, P = R.bpsPerBlock, z = R.charWidth, q = R.firstBase, V = R.fullSeq.length, D = R.size;
                    C |= 0, N |= 0;
                    var B = Math.min(q + P, V), b = V >= P, F = 0;
                    C >= q && (F = (C - q) * z, F = Math.max(F, 0) || 0);
                    var H = D.width;
                    if (C === N)
                      H = 0;
                    else if (C >= q || N < B) {
                      var L = Math.max(C, q), Q = Math.min(N, B);
                      H = D.width * ((Q - L) / P), H = Math.abs(H) || 0;
                    } else q + P > V && b && (H = D.width * (V % P / P));
                    return { width: H, x: F };
                  }, w.seqTextSpan = function(C, N) {
                    var R = w.props, P = R.bpColors, z = R.charWidth, q = R.firstBase, V = R.id, D;
                    return P && (D = P[C] || P[C.toUpperCase()] || P[C.toLowerCase()] || P[N + q] || void 0), // the +0.2 here and above is to offset the characters they're not right on the left edge. When they are,
                    // other elements look like they're shifted too far to the right.
                    A.createElement("tspan", { key: N + C + V, fill: D || void 0, x: z * N + z * 0.2 }, C);
                  }, w;
                }
                return p.prototype.render = function() {
                  var w = this.props, C = w.annotationRows, N = w.blockHeight, R = w.bpsPerBlock, P = w.charWidth, z = w.compSeq, q = w.cutSiteRows, V = w.elementHeight, D = w.firstBase, B = w.fullSeq, b = w.handleMouseEvent, F = w.highlights, H = w.id, L = w.inputRef, Q = w.lineHeight, ae = w.onUnmount, de = w.primerFwdRows, ue = w.primerRevRows, pe = w.searchRows, ke = w.seq, Ee = w.seqFontSize, Ne = w.seqType, Oe = w.showComplement, Ue = w.showIndex, Ze = w.size, Xe = w.translationRows, rt = w.zoom, nt = w.zoomed;
                  if (!Ze.width || !Ze.height)
                    return null;
                  for (var Pe = {
                    fontSize: Ee,
                    lengthAdjust: "spacing",
                    textAnchor: "start",
                    textLength: Ze.width >= 0 ? Ze.width : 1,
                    textRendering: "optimizeLegibility"
                  }, $e = D + ke.length, ct = 0, ot = de.length ? V * de.length : 0, vt = ct + ot, At = nt && q.length ? Q : 0, ut = vt + At, lt = Ne === "aa" ? 0 : Q, bt = ut + lt, Tn = nt && Oe ? Q : 0, gn = bt + Tn, yn = ue.length ? V * ue.length : 0, zt = gn + yn, tn = 0, St = 0; St < Xe.length; St++) {
                    var nn = Xe[St][0].name ? 2 : 1;
                    tn += V * nn;
                  }
                  var j = zt + tn, ee = V * C.length, ye = ue.length + ue.length + C.length + Xe.length ? 3 : 0, ve = j + ee + ye, Ae = ot + At + lt + Tn + tn + ee + yn + ye + 5, Me = Ae + 9;
                  return !nt && Ae <= V && (Me = V), A.createElement(
                    "svg",
                    { ref: L(H, {
                      end: $e,
                      ref: H,
                      start: D,
                      type: "SEQ",
                      viewer: "LINEAR"
                    }), className: "la-vz-seqblock", cursor: "text", "data-testid": "la-vz-seqblock", display: "block", height: N, id: H, overflow: "visible", style: _.seqBlock, width: Ze.width >= 0 ? Ze.width : 0, onMouseDown: b, onMouseMove: b, onMouseUp: b },
                    Ue && A.createElement(i.default, { charWidth: P, findXAndWidth: this.findXAndWidth, firstBase: D, lastBase: $e, seq: ke, seqType: Ne, showIndex: Ue, size: Ze, yDiff: ve, zoom: rt }),
                    A.createElement(a.default.Block, { findXAndWidth: this.findXAndWidth, firstBase: D, fullSeq: B, lastBase: $e, selectHeight: Ae, onUnmount: ae }),
                    de.length && A.createElement(o.default, { bpsPerBlock: R, direction: 1, elementHeight: V, findXAndWidth: this.findXAndWidthElement, firstBase: D, fullSeq: B, inputRef: L, lastBase: $e, primerRows: de, seqBlockRef: this, width: Ze.width, yDiff: ct }),
                    A.createElement(v.Highlights, { compYDiff: bt - 3, findXAndWidth: this.findXAndWidthElement, firstBase: D, highlights: F, indexYDiff: ut - 3, inputRef: L, lastBase: $e, lineHeight: Q, listenerOnly: !1, seqBlockRef: this }),
                    A.createElement(a.default.Edges, { findXAndWidth: this.findXAndWidth, firstBase: D, fullSeq: B, lastBase: $e, selectEdgeHeight: Me }),
                    A.createElement(T.default, { compYDiff: bt - 3, filteredRows: Oe ? pe : pe.filter(function(qe) {
                      return qe.direction === 1;
                    }), findXAndWidth: this.findXAndWidth, firstBase: D, indexYDiff: ut - 3, inputRef: L, lastBase: $e, lineHeight: Q, listenerOnly: !1, zoomed: nt }),
                    ue.length && A.createElement(o.default, { bpsPerBlock: R, direction: -1, elementHeight: V, findXAndWidth: this.findXAndWidthElement, firstBase: D, fullSeq: B, inputRef: L, lastBase: $e, primerRows: ue, seqBlockRef: this, width: Ze.width, yDiff: gn }),
                    Xe.length && A.createElement(d.TranslationRows, { bpsPerBlock: R, charWidth: P, elementHeight: V, findXAndWidth: this.findXAndWidth, findXAndWidthElement: this.findXAndWidthElement, firstBase: D, fullSeq: B, inputRef: L, lastBase: $e, seqType: Ne, translationRows: Xe, yDiff: zt, onUnmount: ae }),
                    C.length && A.createElement(I.default, { annotationRows: C, bpsPerBlock: R, elementHeight: V, findXAndWidth: this.findXAndWidthElement, firstBase: D, fullSeq: B, inputRef: L, lastBase: $e, seqBlockRef: this, width: Ze.width, yDiff: j }),
                    nt && Ne !== "aa" ? A.createElement("text", g({}, Pe, { className: "la-vz-seq", "data-testid": "la-vz-seq", id: H, style: _.svgText, transform: "translate(0, ".concat(ut + Q / 2, ")") }), ke.split("").map(this.seqTextSpan)) : null,
                    z && nt && Oe && Ne !== "aa" ? A.createElement("text", g({}, Pe, { className: "la-vz-comp-seq", "data-testid": "la-vz-comp-seq", id: H, style: _.svgText, transform: "translate(0, ".concat(bt + Q / 2, ")") }), z.split("").map(this.seqTextSpan)) : null,
                    nt && A.createElement(E.CutSites, { cutSites: q, findXAndWidth: this.findXAndWidth, firstBase: D, inputRef: L, lastBase: $e, lineHeight: Q, size: Ze, yDiff: vt - 3, zoom: rt }),
                    A.createElement(T.default, { compYDiff: bt - 3, filteredRows: Oe ? pe : pe.filter(function(qe) {
                      return qe.direction === 1;
                    }), findXAndWidth: this.findXAndWidth, firstBase: D, indexYDiff: ut - 3, inputRef: L, lastBase: $e, lineHeight: Q, listenerOnly: !0, zoomed: nt }),
                    A.createElement(v.Highlights, { compYDiff: bt - 3, findXAndWidth: this.findXAndWidthElement, firstBase: D, highlights: F, indexYDiff: ut - 3, inputRef: L, lastBase: $e, lineHeight: Q, listenerOnly: !0, seqBlockRef: this })
                  );
                }, p.defaultProps = {}, p;
              })(A.PureComponent)
            );
            m.SeqBlock = s;
          }),
          /* 17 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(i) {
                for (var o, a = 1, d = arguments.length; a < d; a++) {
                  o = arguments[a];
                  for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
                }
                return i;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(1), A = y(18), _ = y(15), I = function(i, o) {
              if (document)
                for (var a = document.getElementsByClassName(i), d = 0; d < a.length; d += 1)
                  a[d].style.fillOpacity = "".concat(o);
            }, E = function(i) {
              return g.createElement("g", null, i.annotationRows.map(function(o, a) {
                return g.createElement(T, { key: "annotation-linear-row-".concat(o[0].id, "-").concat(i.firstBase, "-").concat(i.lastBase), annotations: o, bpsPerBlock: i.bpsPerBlock, findXAndWidth: i.findXAndWidth, firstBase: i.firstBase, fullSeq: i.fullSeq, height: i.elementHeight, inputRef: i.inputRef, lastBase: i.lastBase, seqBlockRef: i.seqBlockRef, width: i.width, y: i.yDiff + i.elementHeight * a });
              }));
            };
            m.default = E;
            var T = function(i) {
              return g.createElement("g", { className: "la-vz-linear-annotation-row", height: i.height * 0.8, transform: "translate(0, ".concat(i.y, ")"), width: i.width }, i.annotations.map(function(o, a) {
                return g.createElement(v, S({}, i, { key: "annotation-linear-".concat(o.id, "-").concat(a, "-").concat(i.firstBase, "-").concat(i.lastBase), element: o, elements: i.annotations, index: a }));
              }));
            }, v = function(i) {
              var o = i.element, a = i.elements, d = i.findXAndWidth, s = i.firstBase, u = i.index, p = i.inputRef, w = i.lastBase, C = o.color, N = o.direction, R = o.end, P = o.name, z = o.start, q = N === 1, V = N === -1, D = d(u, o, a), B = D.overflowLeft, b = D.overflowRight, F = D.width, H = D.x, L = z > R && R < s, Q = q && R > s && R <= w, ae = V && z >= s && z <= w, de = i.height * 0.8, ue = 4, pe = de / 4, ke = [H, F], Ee = ke[0], Ne = ke[1], Oe = ae ? "M ".concat(2 * ue, " 0") : "M 0 0", Ue = Q ? "L ".concat(F - 2 * ue, " 0") : "L ".concat(F, " 0"), Ze = "", Xe = "L ".concat(F, " ").concat(de);
              b && F > 2 * ue || L ? Xe = `
        L `.concat(F - ue, " ").concat(pe, `
        L `).concat(F, " ").concat(2 * pe, `
        L `).concat(F - ue, " ").concat(3 * pe, `
        L `).concat(F, " ").concat(4 * pe) : Q && (Xe = `
        L `.concat(F, " ").concat(de / 2, `
        L `).concat(F - Math.min(2 * ue, Ne), " ").concat(de));
              var rt = "L 0 ".concat(de, " L 0 0");
              B && F > 2 * ue ? rt = `
        L 0 `.concat(de, `
        L `).concat(ue, " ").concat(3 * pe, `
        L 0 `).concat(2 * pe, `
        L `).concat(ue, " ").concat(pe, `
        L 0 0`) : ae && (rt = `
        L `.concat(Math.min(2 * ue, Ne), " ").concat(de, `
        L 0 `).concat(de / 2, `
        L `).concat(Math.min(2 * ue, Ne), " 0")), Ze = "".concat(Oe, " ").concat(Ue, " ").concat(Xe, " ").concat(rt), q && b || q && L ? F > 15 && (Ze += `
        M `.concat(F - 3 * ue, " ").concat(pe, `
        L `).concat(F - 2 * ue, " ").concat(2 * pe, `
        L `).concat(F - 3 * ue, " ").concat(3 * pe, `
        M `).concat(F - 4 * ue, " ").concat(pe, `
        L `).concat(F - 3 * ue, " ").concat(2 * pe, `
        L `).concat(F - 4 * ue, " ").concat(3 * pe)) : (V && B || V && L) && F > 15 && (Ze += `
        M `.concat(3 * ue, " ").concat(3 * pe, `
        L `).concat(2 * ue, " ").concat(pe * 2, `
        L `).concat(3 * ue, " ").concat(pe, `
        M `).concat(4 * ue, " ").concat(3 * pe, `
        L `).concat(3 * ue, " ").concat(pe * 2, `
        L `).concat(4 * ue, " ").concat(pe));
              var nt = 12, Pe = 0.591 * nt, $e = Math.floor((F - 40) / Pe), ct = P;
              if (P.length > $e) {
                var ot = $e - 1;
                ot < 3 ? ct = "" : ct = "".concat(P.slice(0, ot), "…");
              }
              return g.createElement(
                "g",
                { id: o.id, transform: "translate(".concat(Ee, ", ").concat(0.1 * de, ")") },
                g.createElement("title", null, P),
                g.createElement("path", { ref: p(o.id, {
                  end: R,
                  name: o.name,
                  ref: o.id,
                  start: z,
                  type: "ANNOTATION",
                  viewer: "LINEAR"
                }), className: "".concat(o.id, " la-vz-annotation"), cursor: "pointer", d: Ze, fill: C, id: o.id, stroke: C ? A.COLOR_BORDER_MAP[C] || (0, A.darkerColor)(C) : "gray", style: _.annotation, onBlur: function() {
                }, onFocus: function() {
                }, onMouseOut: function() {
                  return I(o.id, 0.7);
                }, onMouseOver: function() {
                  return I(o.id, 1);
                } }),
                g.createElement("text", { className: "la-vz-annotation-label", cursor: "pointer", dominantBaseline: "middle", fontSize: nt, id: o.id, style: _.annotationLabel, textAnchor: "middle", x: F / 2, y: de / 2 + 1, onBlur: function() {
                }, onFocus: function() {
                }, onMouseOut: function() {
                  return I(o.id, 0.7);
                }, onMouseOver: function() {
                  return I(o.id, 1);
                } }, ct)
              );
            };
          }),
          /* 18 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.darkerColor = m.borderColorByIndex = m.colorByIndex = m.chooseRandomColor = m.COLOR_BORDER_MAP = m.COLORS = void 0;
            var S = y(19);
            m.COLORS = [
              "#9DEAED",
              "#8FDE8C",
              "#CFF283",
              "#8CDEBD",
              "#F0A3CE",
              "#F7C672",
              "#F07F7F",
              "#FAA887",
              "#F099F7",
              "#C59CFF",
              "#6B81FF",
              "#85A6FF"
              // light blue
            ], m.COLOR_BORDER_MAP = {
              // purple
              "#6B81FF": "#2E3B85",
              // blue
              "#85A6FF": "#4C66AD",
              // light green
              "#8CDEBD": "#4CA17F",
              // cyan
              "#8FDE8C": "#5CA35A",
              "#9DEAED": "#5EB5B8",
              // magenta
              "#C59CFF": "#8A60C4",
              // green
              "#CFF283": "#8DB041",
              // orange
              "#F07F7F": "#AD4040",
              // red-orange
              "#F099F7": "#AB63B0",
              // teal
              "#F0A3CE": "#BD6295",
              // pink
              "#F7C672": "#BD872B",
              // red
              "#FAA887": "#B36446"
              // light blue
            };
            var g = function(T) {
              var v = T || m.COLORS, i = Math.floor(Math.random() * v.length);
              return v[i];
            };
            m.chooseRandomColor = g;
            var A = function(T, v) {
              return (v || m.COLORS)[T % (v || m.COLORS).length];
            };
            m.colorByIndex = A;
            var _ = function(T) {
              return m.COLOR_BORDER_MAP[m.COLORS[T % m.COLORS.length]];
            };
            m.borderColorByIndex = _;
            var I = {}, E = function(T) {
              if (I[T])
                return I[T];
              var v = (0, S.pSBC)(-0.5, T);
              return I[T] = v, v || T;
            };
            m.darkerColor = E;
          }),
          /* 19 */
          /***/
          ((Z, m) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.pSBC = void 0;
            var y = function(S, g, A, _) {
              var I = parseInt, E = Math.round, T, v, i, o, a, d, s, u = typeof A == "string";
              if (typeof S != "number" || S < -1 || S > 1 || typeof g != "string" || g[0] !== "r" && g[0] !== "#" || A && !u)
                return null;
              var p = function(w) {
                var C, N = w.length, R = {};
                if (N > 9) {
                  if (C = w = w.split(","), T = C[0], v = C[1], i = C[2], u = C[3], N = w.length, N < 3 || N > 4)
                    return null;
                  R.r = I(T[3] === "a" ? T.slice(5) : T.slice(4)), R.g = I(v), R.b = I(i), R.a = u ? parseFloat(u) : -1;
                } else {
                  if (N === 8 || N === 6 || N < 4)
                    return null;
                  N < 6 && (w = "#" + w[1] + w[1] + w[2] + w[2] + w[3] + w[3] + (N > 4 ? w[4] + w[4] : "")), w = I(w.slice(1), 16), N === 9 || N === 5 ? (R.r = w >> 24 & 255, R.g = w >> 16 & 255, R.b = w >> 8 & 255, R.a = E((w & 255) / 0.255) / 1e3) : (R.r = w >> 16, R.g = w >> 8 & 255, R.b = w & 255, R.a = -1);
                }
                return R;
              };
              return s = g.length > 9, s = u ? A.length > 9 ? !0 : A === "c" ? !s : !1 : s, a = p(g), o = S < 0, d = A && A !== "c" ? p(A) : o ? { a: -1, b: 0, g: 0, r: 0 } : { a: -1, b: 255, g: 255, r: 255 }, S = o ? S * -1 : S, o = 1 - S, !a || !d ? null : (_ ? (T = E(o * a.r + S * d.r), v = E(o * a.g + S * d.g), i = E(o * a.b + S * d.b)) : (T = E(Math.pow(o * Math.pow(a.r, 2) + S * Math.pow(d.r, 2), 0.5)), v = E(Math.pow(o * Math.pow(a.g, 2) + S * Math.pow(d.g, 2), 0.5)), i = E(Math.pow(o * Math.pow(a.b, 2) + S * Math.pow(d.b, 2), 0.5))), u = a.a, d = d.a, a = u >= 0 || d >= 0, u = a ? u < 0 ? d : d < 0 ? u : u * o + d * S : 0, s ? "rgb" + (a ? "a(" : "(") + T + "," + v + "," + i + (a ? "," + E(u * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + T * 16777216 + v * 65536 + i * 256 + (a ? E(u * 255) : 0)).toString(16).slice(1, a ? void 0 : -2));
            };
            m.pSBC = y;
          }),
          /* 20 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(d) {
                for (var s, u = 1, p = arguments.length; u < p; u++) {
                  s = arguments[u];
                  for (var w in s) Object.prototype.hasOwnProperty.call(s, w) && (d[w] = s[w]);
                }
                return d;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.CutSites = void 0;
            var g = y(1), A = y(5), _ = y(15), I = function(d) {
              var s = d.cutSites, u = d.findXAndWidth, p = d.firstBase, w = d.inputRef, C = d.lastBase, N = d.lineHeight, R = d.size, P = d.yDiff, z = d.zoom.linear, q = E(
                // TODO: remove this exclusion of cut-sites that cross the zero index after even more
                // zero-index accounting. This file is already hairy enough, so not in a rush to add zero-index
                // accounting here, yet.
                s,
                p,
                C,
                u
              );
              if (!q.length)
                return null;
              var V = o(q, R), D = P + N;
              return g.createElement("g", { className: "la-vz-cut-sites" }, V.map(function(B) {
                var b;
                return g.createElement(
                  "g",
                  { key: "cut-site-".concat(B.c.id, "-").concat(p) },
                  B.label.render && g.createElement("text", { className: "la-vz-cut-site-text ".concat(B.c.id, "-label"), dominantBaseline: "hanging", id: B.c.id, style: S(S({}, _.svgText), { cursor: "pointer", fontSize: 12 }), textAnchor: "start", x: B.label.x, y: P, onBlur: function() {
                    return 0;
                  }, onFocus: function() {
                    return 0;
                  }, onMouseOut: function() {
                    return a(B.c.id, !1);
                  }, onMouseOver: function() {
                    return a(B.c.id, !0);
                  } }, B.label.text),
                  z > 10 && g.createElement("path", { ref: w(B.c.id, {
                    clockwise: !0,
                    end: B.c.end,
                    id: B.c.id,
                    start: B.c.start,
                    type: "ENZYME",
                    viewer: "LINEAR"
                  }), className: "la-vz-cut-site-highlight ".concat(B.c.id), d: "M ".concat(B.highlight.x, " ").concat(D, `
                    L `).concat(B.highlight.x + B.highlight.width, " ").concat(D, `
                    L `).concat(B.highlight.x + B.highlight.width, " ").concat(D + 2 * N, `
                    L `).concat(B.highlight.x, " ").concat(D + 2 * N, " Z"), style: !((b = B.c.color) === null || b === void 0) && b.length ? S(S({}, _.cutSiteHighlight), { fill: B.c.color }) : _.cutSiteHighlight, onMouseOut: function() {
                    return a(B.c.id, !1);
                  }, onMouseOver: function() {
                    return a(B.c.id, !0);
                  } }),
                  B.top.render && g.createElement("path", { className: "la-vz-cut-site ".concat(B.c.id), d: "M ".concat(B.top.x, " ").concat(D, " L ").concat(B.top.x, " ").concat(D + N), style: _.cutSite }),
                  B.connector.render && z > 10 && g.createElement("path", { className: "la-vz-cut-site ".concat(B.c.id), d: "M ".concat(B.connector.x, " ").concat(D + N, `
                    L `).concat(B.connector.x + B.connector.width, " ").concat(D + N), style: _.cutSite }),
                  B.bottom.render && z > 10 && g.createElement("path", { className: "la-vz-cut-site ".concat(B.c.id), d: "M ".concat(B.bottom.x, " ").concat(D + N, " L ").concat(B.bottom.x, " ").concat(D + 2 * N), style: _.cutSite })
                );
              }));
            };
            m.CutSites = I;
            var E = function(d, s, u, p) {
              return d.map(function(w) {
                var C = w.fcut > s && w.fcut < u;
                (w.fcut === s && w.rcut > s && w.rcut <= u || w.fcut === u && w.rcut >= s && w.rcut <= u) && (C = !0);
                var N = w.rcut > s && w.rcut < u;
                (w.rcut === s && w.fcut > s && w.fcut <= u || w.rcut === u && w.fcut >= s && w.fcut <= u) && (N = !0);
                var R = w;
                w.end < w.start && (w.start > s && w.start < u ? (R = S(S({}, w), { end: u }), w.fcut < w.start && (R = S(S({}, R), { fcut: u })), w.rcut < w.start && (R = S(S({}, R), { rcut: u }))) : (R = S(S({}, w), { start: s }), w.fcut > w.end && (R = S(S({}, R), { fcut: s })), w.rcut > w.end && (R = S(S({}, R), { rcut: s }))));
                var P = p(R.fcut, R.fcut).x, z = p(R.rcut, R.rcut).x;
                return {
                  bottom: {
                    render: N,
                    x: z
                  },
                  c: w,
                  connector: i(R, P, z, s, u, C, N, p),
                  highlight: T(R, s, u, p),
                  top: {
                    render: C,
                    x: P
                  }
                };
              });
            }, T = function(d, s, u, p) {
              return v(d.start, d.end, s, u) ? d.start > d.end ? p(d.end < s ? u : Math.min(u, d.end), d.start > u ? s : Math.max(s, d.start)) : p(d.start < s ? u : Math.min(u, d.start), d.end > u ? s : Math.max(s, d.end)) : p(d.start, d.end);
            }, v = function(d, s, u, p) {
              return d < u && s < u || d > p && s > p ? !0 : s >= d ? s < p && d > u : d < p && s > u;
            }, i = function(d, s, u, p, w, C, N, R) {
              return C && N ? {
                render: !0,
                width: Math.abs(u - s),
                x: Math.min(s, u)
              } : C ? d.start + s > d.end + u ? S({ render: !0 }, R(p, d.fcut)) : d.fcut > d.rcut ? S({ render: !0 }, R(p, d.fcut)) : S({ render: !0 }, R(d.fcut, w)) : N ? d.start + s > d.end + u ? S({ render: !0 }, R(d.rcut, w)) : d.fcut > d.rcut ? S({ render: !0 }, R(d.rcut, w)) : S({ render: !0 }, R(p, d.rcut)) : { render: !1, width: 0, x: 0 };
            }, o = function(d, s) {
              var u = d.filter(function(N) {
                return !N.top.render;
              }).map(function(N) {
                return S(S({}, N), { label: { render: !1, text: N.c.name, x: N.highlight.x } });
              }), p = d.filter(function(N) {
                return N.top.render;
              }).sort(function(N, R) {
                return N.top.x - R.top.x;
              }).map(function(N) {
                return S(S({}, N), { label: { render: N.top.render, text: N.c.name, x: N.highlight.x } });
              }), w = function(N) {
                return N.label.x + N.label.text.length * A.CHAR_WIDTH > s.width;
              };
              p.forEach(function(N) {
                var R = N.label.text.length * A.CHAR_WIDTH;
                w(N) && (N.label.x = s.width - R);
              });
              var C = function(N, R) {
                return N.label.x + N.label.text.length * A.CHAR_WIDTH > R.label.x;
              };
              return p.forEach(function(N, R) {
                if (R == 0)
                  return N;
                for (var P = p[R - 1]; C(P, N); )
                  N.label.x += A.CHAR_WIDTH * 2;
                return N;
              }), p.forEach(function(N) {
                w(N) && (N.label.render = !1);
              }), u.concat(p);
            }, a = function(d, s) {
              if (s === void 0 && (s = !1), !!document) {
                for (var u = document.getElementsByClassName("".concat(d, "-label")), p = 0; p < u.length; p += 1)
                  u[p].style.fillOpacity = s ? "1.0" : "0.8", u[p].style.fontWeight = s ? "400" : "300";
                u = document.getElementsByClassName(d);
                for (var p = 0; p < u.length; p += 1)
                  u[p].style.fillOpacity = s ? "0.25" : "0", u[p].style.stroke = s ? "black" : "rgb(115, 119, 125)";
              }
            };
          }),
          /* 21 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var S = y(1), g = y(13), A = y(15), _ = function(E) {
              var T = E.compYDiff, v = E.filteredRows, i = E.findXAndWidth, o = E.firstBase, a = E.indexYDiff, d = E.inputRef, s = E.lastBase, u = E.lineHeight, p = E.listenerOnly, w = E.zoomed;
              return S.createElement(S.Fragment, null, v.map(function(C) {
                return S.createElement(I, { key: JSON.stringify(C), compYDiff: T, direction: C.direction || 1, end: C.end, findXAndWidth: i, firstBase: o, indexYDiff: a, inputRef: d, lastBase: s, lineHeight: u, listenerOnly: p, start: C.start, zoomed: w });
              }));
            };
            m.default = _;
            var I = function(E) {
              var T, v = E.compYDiff, i = E.direction, o = E.end, a = E.findXAndWidth, d = E.firstBase, s = E.indexYDiff, u = E.inputRef, p = E.lastBase, w = E.lineHeight, C = E.listenerOnly, N = E.start, R = E.zoomed, P = a(N, o), z = P.width, q = P.x;
              N > o && (T = a(N > p ? d : Math.max(d, N), o < d ? p : Math.min(p, o)), z = T.width, q = T.x);
              var V = (0, g.randomID)(), D = s;
              return (i < 0 || !R) && (D = v), S.createElement("rect", { key: V, ref: u(V, {
                end: o,
                id: V,
                start: N,
                type: "FIND",
                viewer: "LINEAR"
              }), className: "la-vz-search", cursor: "pointer", height: w, id: V, shapeRendering: "crispEdges", stroke: C ? "none" : "rgba(0, 0, 0, 0.5)", strokeWidth: 1, style: C ? { fill: "transparent" } : A.search, width: z, x: q, y: D });
            };
          }),
          /* 22 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(E) {
                for (var T, v = 1, i = arguments.length; v < i; v++) {
                  T = arguments[v];
                  for (var o in T) Object.prototype.hasOwnProperty.call(T, o) && (E[o] = T[o]);
                }
                return E;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Highlights = void 0;
            var g = y(1), A = y(15), _ = function(E) {
              return g.createElement(g.Fragment, null, E.highlights.map(function(T, v) {
                return (
                  // TODO: what's going on here, why does this lead to duplicates
                  g.createElement(I, S({ key: "linear-highlight-".concat(T.id, "-").concat(E.listenerOnly) }, E, { highlight: T, index: v }))
                );
              }));
            };
            m.Highlights = _;
            var I = function(E) {
              var T, v = E.findXAndWidth(E.index, E.highlight, E.highlights), i = v.width, o = v.x, a = A.highlight.fill;
              E.listenerOnly ? a = "transparent" : !((T = E.highlight.color) === null || T === void 0) && T.length && (a = E.highlight.color);
              var d = {
                className: "la-vz-highlight",
                height: E.lineHeight,
                id: E.highlight.id,
                stroke: E.listenerOnly ? "none" : "rgba(0, 0, 0, 0.5)",
                style: S(S({}, A.highlight), { fill: a }),
                width: i,
                x: o
              };
              return g.createElement(
                g.Fragment,
                null,
                g.createElement("rect", S({ key: "linear-highlight-".concat(E.highlight.id, "-top"), ref: E.inputRef(E.highlight.id, S(S({ ref: E.highlight.id }, E.highlight), { type: "HIGHLIGHT", viewer: "LINEAR" })) }, d, { y: E.indexYDiff })),
                g.createElement("rect", S({ key: "linear-highlight-".concat(E.highlight.id, "-bottom"), ref: E.inputRef(E.highlight.id, S(S({ ref: E.highlight.id }, E.highlight), { type: "HIGHLIGHT", viewer: "LINEAR" })) }, d, { y: E.compYDiff }))
              );
            };
          }),
          /* 23 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var I = function(E, T) {
                return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, i) {
                  v.__proto__ = i;
                } || function(v, i) {
                  for (var o in i) Object.prototype.hasOwnProperty.call(i, o) && (v[o] = i[o]);
                }, I(E, T);
              };
              return function(E, T) {
                if (typeof T != "function" && T !== null)
                  throw new TypeError("Class extends value " + String(T) + " is not a constructor or null");
                I(E, T);
                function v() {
                  this.constructor = E;
                }
                E.prototype = T === null ? Object.create(T) : (v.prototype = T.prototype, new v());
              };
            })();
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(1), A = y(15), _ = (
              /** @class */
              (function(I) {
                S(E, I);
                function E() {
                  var T = I !== null && I.apply(this, arguments) || this;
                  return T.genTicks = function() {
                    var v = T.props, i = v.charWidth, o = v.findXAndWidth, a = v.firstBase, d = v.seq, s = v.seqType, u = v.size, p = v.zoom, w = d.length, C = 0;
                    switch (!0) {
                      case p.linear > 85:
                        C = 5;
                        break;
                      case p.linear > 40:
                        C = 10;
                        break;
                      case p.linear > 10:
                        C = 20;
                        break;
                      case p.linear >= 0:
                        C = 50;
                        break;
                      default:
                        C = 10;
                    }
                    s === "aa" && (C = C / 2);
                    var N = [];
                    a === 0 && N.push(1);
                    for (var R = 0; (R + a) % C !== 0; )
                      R += 1;
                    for (; R < w; )
                      R + a !== 0 && N.push(R + a), R += C;
                    return N.map(function(P) {
                      var z = o(P - 1, P - 1).x;
                      z += i / 2;
                      var q = Math.ceil(Math.log10(P + 1));
                      q -= 1;
                      var V = 7.7, D = q * V, B = o(P - 1, P - 1).x;
                      B += i / 2, B -= D / 2 + 3, B = Math.max(0, B), B = Math.min(u.width - D / 2, B);
                      var b = "translate(".concat(z, ", 1)"), F = "translate(".concat(B, ", 10)");
                      return g.createElement(
                        g.Fragment,
                        { key: P },
                        g.createElement("path", { className: "la-vz-index-tick", d: "M 0 0 L 0 7", style: A.indexTick, transform: b }),
                        g.createElement("text", { className: "la-vz-index-tick-label", dominantBaseline: "hanging", style: A.indexTickLabel, transform: F }, P)
                      );
                    });
                  }, T;
                }
                return E.prototype.render = function() {
                  var T = this.props, v = T.findXAndWidth, i = T.firstBase, o = T.lastBase, a = T.showIndex, d = T.yDiff;
                  if (!a)
                    return null;
                  var s = v(i, o), u = s.width, p = s.x;
                  return g.createElement(
                    "g",
                    { transform: "translate(0, ".concat(d, ")") },
                    g.createElement("path", { className: "la-vz-index-line", d: "M 0 1 L ".concat(p + u, " 1"), style: A.indexLine }),
                    this.genTicks()
                  );
                }, E;
              })(g.PureComponent)
            );
            m.default = _;
          }),
          /* 24 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(i) {
                for (var o, a = 1, d = arguments.length; a < d; a++) {
                  o = arguments[a];
                  for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
                }
                return i;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var g = y(1), A = y(18), _ = y(15), I = function(i, o) {
              if (document)
                for (var a = document.getElementsByClassName(i), d = 0; d < a.length; d += 1)
                  a[d].style.fillOpacity = "".concat(o);
            }, E = function(i) {
              return g.createElement("g", null, i.primerRows.map(function(o, a) {
                return g.createElement(T, { key: "primer-linear-row-".concat(o[0].id, "-").concat(i.firstBase, "-").concat(i.lastBase), bpsPerBlock: i.bpsPerBlock, direction: i.direction, findXAndWidth: i.findXAndWidth, firstBase: i.firstBase, fullSeq: i.fullSeq, height: i.elementHeight, inputRef: i.inputRef, lastBase: i.lastBase, primers: o, seqBlockRef: i.seqBlockRef, width: i.width, y: i.yDiff + i.elementHeight * a });
              }));
            };
            m.default = E;
            var T = function(i) {
              return g.createElement("g", { className: "la-vz-linear-primer-row", height: i.height * 0.8, transform: "translate(0, ".concat(i.y, ")"), width: i.width }, i.primers.filter(function(o) {
                return o.direction == i.direction;
              }).map(function(o, a) {
                return g.createElement(v, S({}, i, { key: "primer-linear-".concat(o.id, "-").concat(a, "-").concat(i.firstBase, "-").concat(i.lastBase), element: o, elements: i.primers, index: a }));
              }));
            }, v = function(i) {
              var o = i.element, a = i.elements, d = i.findXAndWidth, s = i.firstBase, u = i.index, p = i.inputRef, w = i.lastBase, C = o.color, N = o.direction, R = o.end, P = o.name, z = o.start, q = N === 1, V = N === -1, D = d(u, o, a), B = D.overflowLeft, b = D.overflowRight, F = D.width, H = D.x, L = z > R && R < s, Q = q && R > s && R <= w, ae = V && z >= s && z <= w, de = i.height * 0.7, ue = 4, pe = de / 4, ke = 3, Ee = [H, F], Ne = Ee[0], Oe = Ee[1], Ue = "M 0 0", Ze = Q ? `
      L `.concat(F - Math.min(8 * ue, Oe), ` 0
      L `).concat(F - Math.min(8 * ue, Oe), " ").concat(-ke, `
    `) : "L ".concat(F, " 0"), Xe = "", rt = "L ".concat(F, " ").concat(de);
              b && F > 2 * ue || L ? rt = `
        L `.concat(F - ue, " ").concat(pe, `
        L `).concat(F, " ").concat(2 * pe, `
        L `).concat(F - ue, " ").concat(3 * pe, `
        L `).concat(F, " ").concat(4 * pe) : Q && (rt = `
        L `.concat(F, " ").concat(de));
              var nt = "L 0 ".concat(de, " L 0 0");
              B && F > 2 * ue ? nt = `
        L 0 `.concat(de, `
        L `).concat(ue, " ").concat(3 * pe, `
        L 0 `).concat(2 * pe, `
        L `).concat(ue, " ").concat(pe, `
        L 0 0`) : ae && (nt = `
        L `.concat(Math.min(8 * ue, Oe), " ").concat(de, `
        L `).concat(Math.min(8 * ue, Oe), " ").concat(de + ke)), Xe = "".concat(Ue, " ").concat(Ze, " ").concat(rt, " ").concat(nt), (q && b || q && L) && F > 15 && (Xe += `
        M `.concat(F - 3 * ue, " ").concat(pe, `
        L `).concat(F - 2 * ue, " ").concat(2 * pe, `
        L `).concat(F - 3 * ue, " ").concat(3 * pe, `
        M `).concat(F - 4 * ue, " ").concat(pe, `
        L `).concat(F - 3 * ue, " ").concat(2 * pe, `
        L `).concat(F - 4 * ue, " ").concat(3 * pe)), (V && B || V && L) && F > 15 && (Xe += `
        M `.concat(3 * ue, " ").concat(3 * pe, `
        L `).concat(2 * ue, " ").concat(pe * 2, `
        L `).concat(3 * ue, " ").concat(pe, `
        M `).concat(4 * ue, " ").concat(3 * pe, `
        L `).concat(3 * ue, " ").concat(pe * 2, `
        L `).concat(4 * ue, " ").concat(pe));
              var Pe = 12, $e = 0.591 * Pe, ct = Math.floor((F - 40) / $e), ot = P;
              if (P.length > ct) {
                var vt = ct - 1;
                vt < 3 ? ot = "" : ot = "".concat(P.slice(0, vt), "…");
              }
              return g.createElement(
                "g",
                { id: o.id, transform: "translate(".concat(Ne, ", ").concat(0.1 * de, ")") },
                g.createElement("title", null, P),
                g.createElement("path", { ref: p(o.id, {
                  end: R,
                  name: o.name,
                  ref: o.id,
                  start: z,
                  type: "PRIMER",
                  viewer: "LINEAR"
                }), className: "".concat(o.id, " la-vz-primer"), cursor: "pointer", d: Xe, fill: C, id: o.id, stroke: C ? A.COLOR_BORDER_MAP[C] || (0, A.darkerColor)(C) : "gray", style: _.annotation, onBlur: function() {
                }, onFocus: function() {
                }, onMouseOut: function() {
                  return I(o.id, 0.7);
                }, onMouseOver: function() {
                  return I(o.id, 1);
                } }),
                g.createElement("text", { className: "la-vz-primer-label", cursor: "pointer", dominantBaseline: "middle", fontSize: Pe, id: o.id, style: _.annotationLabel, textAnchor: "middle", x: F / 2, y: de / 2 + 1, onBlur: function() {
                }, onFocus: function() {
                }, onMouseOut: function() {
                  return I(o.id, 0.7);
                }, onMouseOver: function() {
                  return I(o.id, 1);
                } }, ot)
              );
            };
          }),
          /* 25 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var i = function(o, a) {
                return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
                  d.__proto__ = s;
                } || function(d, s) {
                  for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (d[u] = s[u]);
                }, i(o, a);
              };
              return function(o, a) {
                if (typeof a != "function" && a !== null)
                  throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                i(o, a);
                function d() {
                  this.constructor = o;
                }
                o.prototype = a === null ? Object.create(a) : (d.prototype = a.prototype, new d());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(i) {
                for (var o, a = 1, d = arguments.length; a < d; a++) {
                  o = arguments[a];
                  for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
                }
                return i;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var A = y(1), _ = y(26), I = y(13), E = y(15), T = (
              /** @class */
              (function(i) {
                S(o, i);
                function o() {
                  var a = i !== null && i.apply(this, arguments) || this;
                  return a.id = (0, I.randomID)(), a;
                }
                return o.prototype.render = function() {
                  var a, d = this.props, s = d.findXAndWidth, u = d.firstBase, p = d.fullSeq, w = d.lastBase, C = d.selectEdgeHeight, N = this.context, R = N.clockwise, P = N.end, z = N.ref, q = N.start;
                  if (!(typeof q > "u" || typeof P > "u")) {
                    var V = null, D = null;
                    if (R ? (q >= u && q < w && (V = q), P > u && P <= w && (D = P)) : (q > u && q <= w && (V = q), P >= u && P < w && (D = P)), (z === "ALL" || q === 0 && P === p.length - 1) && (V = null, D = null), V === null && D === null)
                      return null;
                    V === null && (V = D, D = null);
                    var B = s(V, D), b = B.width, F = B.x;
                    R === !1 && V !== null && D !== null && (a = s(D, V), b = a.width, F = a.x);
                    var H = F + b;
                    return V !== null && D !== null && (q > P && R === !0 || P > q && R === !1) && (H = F - b), q === P && q === w || V === null && D === null ? null : (V == D && (D = null), A.createElement(
                      "g",
                      null,
                      V !== null && A.createElement("rect", { className: "la-vz-selection-edge", "data-testid": "la-vz-selection-edge", height: C, shapeRendering: "crispEdges", strokeWidth: 0, style: E.selectionEdge, width: 1, x: F, y: -5 }),
                      D !== null && A.createElement("rect", { className: "la-vz-selection-edge", "data-testid": "la-vz-selection-edge", height: C, shapeRendering: "crispEdges", strokeWidth: 0, style: E.selectionEdge, width: 1, x: H, y: -5 })
                    ));
                  }
                }, o.contextType = _.default, o;
              })(A.PureComponent)
            ), v = (
              /** @class */
              (function(i) {
                S(o, i);
                function o() {
                  var a = i !== null && i.apply(this, arguments) || this;
                  return a.id = (0, I.randomID)(), a;
                }
                return o.prototype.render = function() {
                  var a, d, s, u, p, w, C, N = this.props, R = N.findXAndWidth, P = N.firstBase, z = N.fullSeq, q = N.lastBase, V = N.selectHeight, D = this.context, B = D.clockwise, b = D.ref, F = this.context, H = F.end, L = F.start;
                  if (!(typeof L > "u" || typeof H > "u")) {
                    if (L === H && b !== "ALL")
                      return null;
                    (b === "ALL" || L === 0 && H === z.length) && (L = 0, H = 0);
                    var Q = {
                      "data-testid": "la-vz-selection-block",
                      height: V,
                      style: E.selection,
                      y: -5
                    }, ae = null, de = null, ue = null;
                    if (B && H > L)
                      L <= q && H > P && (a = R(Math.max(P, L), Math.min(q, H)), de = a.width, ae = a.x);
                    else if (B && L > H) {
                      if (!(L > q && H < P))
                        if (L < q && H > P) {
                          var pe = R(L, q), ke = pe.width, Ee = pe.x;
                          ue = A.createElement("rect", g({}, Q, { width: ke, x: Ee })), d = R(P, H), de = d.width, ae = d.x;
                        } else
                          s = R(L > q ? P : Math.max(P, L), H < P ? q : Math.min(q, H)), de = s.width, ae = s.x;
                    } else if (!B && L > H)
                      H <= q && L >= P && (u = R(Math.max(P, H), Math.min(q, L)), de = u.width, ae = u.x);
                    else if (!B && H > L && (L > P || H < q))
                      if (L > P && L < q && H > P) {
                        var Ne = R(H, q), ke = Ne.width, Ee = Ne.x;
                        ue = A.createElement("rect", g({}, Q, { width: ke, x: Ee })), p = R(P, L), de = p.width, ae = p.x;
                      } else
                        w = R(L < P ? H : P, H > q ? L : q), de = w.width, ae = w.x;
                    return (b === "ALL" || L === H) && (C = R(Math.max(P, 0), Math.min(q, z.length + 1)), de = C.width, ae = C.x), !ae && !de ? null : A.createElement(
                      A.Fragment,
                      null,
                      A.createElement("rect", g({}, Q, { width: de ? de + 1 : void 0, x: ae || void 0 })),
                      ue
                    );
                  }
                }, o.contextType = _.default, o;
              })(A.PureComponent)
            );
            m.default = { Block: v, Edges: T };
          }),
          /* 26 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.defaultSelection = void 0;
            var S = y(1);
            m.defaultSelection = {
              clockwise: !0,
              end: 0,
              length: 0,
              name: "",
              ref: null,
              start: 0,
              type: ""
            };
            var g = S.createContext(m.defaultSelection);
            g.displayName = "SelectionContext", m.default = g;
          }),
          /* 27 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var d = function(s, u) {
                return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, w) {
                  p.__proto__ = w;
                } || function(p, w) {
                  for (var C in w) Object.prototype.hasOwnProperty.call(w, C) && (p[C] = w[C]);
                }, d(s, u);
              };
              return function(s, u) {
                if (typeof u != "function" && u !== null)
                  throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
                d(s, u);
                function p() {
                  this.constructor = s;
                }
                s.prototype = u === null ? Object.create(u) : (p.prototype = u.prototype, new p());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(d) {
                for (var s, u = 1, p = arguments.length; u < p; u++) {
                  s = arguments[u];
                  for (var w in s) Object.prototype.hasOwnProperty.call(s, w) && (d[w] = s[w]);
                }
                return d;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.TranslationRows = void 0;
            var A = y(1), _ = y(18), I = y(13), E = y(15), T = function(d, s) {
              if (document)
                for (var u = document.getElementsByClassName(d), p = 0; p < u.length; p += 1)
                  u[p].style.fillOpacity = "".concat(s);
            }, v = function(d) {
              var s = d.bpsPerBlock, u = d.charWidth, p = d.elementHeight, w = d.findXAndWidth, C = d.findXAndWidthElement, N = d.firstBase, R = d.fullSeq, P = d.inputRef, z = d.lastBase, q = d.onUnmount, V = d.seqType, D = d.translationRows, B = d.yDiff;
              return A.createElement("g", { className: "la-vz-linear-translation", "data-testid": "la-vz-linear-translation" }, D.map(function(b, F) {
                for (var H = B, L = 0; L < F; L += 1) {
                  var Q = D[L][0].name ? 2 : 1;
                  H += p * Q;
                }
                return A.createElement(i, { key: "i-".concat(N), bpsPerBlock: s, charWidth: u, elementHeight: p, findXAndWidth: w, findXAndWidthElement: C, firstBase: N, fullSeq: R, height: p, inputRef: P, lastBase: z, seqType: V, translations: b, y: H, onUnmount: q });
              }));
            };
            m.TranslationRows = v;
            var i = function(d) {
              return A.createElement(A.Fragment, null, d.translations.map(function(s, u) {
                return A.createElement(
                  A.Fragment,
                  null,
                  A.createElement(o, g({}, d, { key: "translation-linear-".concat(s.id, "-").concat(u, "-").concat(d.firstBase, "-").concat(d.lastBase), translation: s })),
                  s.name && A.createElement(a, g({}, d, { key: "translation-handle-linear-".concat(s.id, "-").concat(u, "-").concat(d.firstBase, "-").concat(d.lastBase), element: s, elements: d.translations, index: u }))
                );
              }));
            }, o = (
              /** @class */
              (function(d) {
                S(s, d);
                function s() {
                  var u = d !== null && d.apply(this, arguments) || this;
                  return u.AAs = [], u.componentWillUnmount = function() {
                    var p = u.props.onUnmount;
                    u.AAs.forEach(function(w) {
                      return p(w);
                    });
                  }, u.genPath = function(p, w) {
                    var C = u.props, N = C.charWidth, R = C.height, P = p * N, z = w * 3;
                    return `M 0 0
			L `.concat(P, ` 0
			L `).concat(P + z, " ").concat(R / 2, `
			L `).concat(P, " ").concat(R, `
			L 0 `).concat(R, `
			L `).concat(z, " ").concat(R / 2, `
			Z`);
                  }, u;
                }
                return s.prototype.render = function() {
                  var u = this, p = this.props, w = p.bpsPerBlock, C = p.charWidth, N = p.findXAndWidth, R = p.firstBase, P = p.fullSeq, z = p.height, q = p.inputRef, V = p.lastBase, D = p.seqType, B = p.translation, b = p.y, F = B.AAseq, H = B.direction, L = B.end, Q = B.id, ae = B.start, de = D === "aa" ? 1 : 3, ue = F.split("");
                  return A.createElement("g", { ref: q(Q, {
                    end: L,
                    name: "translation",
                    parent: g(g({}, B), { type: "TRANSLATION" }),
                    start: ae,
                    type: "AMINOACID",
                    viewer: "LINEAR"
                  }), className: "la-vz-linear-aa-translation", "data-testid": "la-vz-linear-aa-translation", id: Q, transform: "translate(0, ".concat(b, ")") }, ue.map(function(pe, ke) {
                    var Ee = (0, I.randomID)();
                    u.AAs.push(Ee);
                    var Ne = (ae + ke * de) % P.length, Oe = ae + ke * de + de;
                    if (Ne > Oe && R >= w ? Oe += P.length : Ne > Oe && R < w ? Ne -= P.length : Ne === 0 && R >= w && (Ne += P.length, Oe += P.length), Ne >= V || Oe <= R)
                      return null;
                    var Ue = !0, Ze = de;
                    Ne < R ? (Ze = Math.min(de, Oe - R), Ze < 2 && D !== "aa" && (Ue = !1)) : Oe > V && (Ze = Math.min(de, V - Ne), Ze < 2 && D !== "aa" && (Ue = !1));
                    var Xe = N(Math.max(Ne, R)).x, rt = u.genPath(Ze, H === 1 ? 1 : -1);
                    return A.createElement(
                      "g",
                      { key: Ee, ref: q(Ee, {
                        end: Oe,
                        parent: g(g({}, B), { type: "TRANSLATION" }),
                        start: Ne,
                        type: "AMINOACID",
                        viewer: "LINEAR"
                      }), id: Ee, transform: "translate(".concat(Xe, ", 0)") },
                      A.createElement("path", { d: rt, fill: (0, _.colorByIndex)(pe.charCodeAt(0)), id: Ee, shapeRendering: "geometricPrecision", stroke: (0, _.borderColorByIndex)(pe.charCodeAt(0)), style: {
                        cursor: "pointer",
                        opacity: 0.7,
                        strokeWidth: 0.8
                      } }),
                      Ue && A.createElement("text", { className: "la-vz-translation-amino-acid-label", cursor: "pointer", "data-testid": "la-vz-translation", dominantBaseline: "middle", id: Ee, style: E.translationAminoAcidLabel, textAnchor: "middle", x: Ze * 0.5 * C, y: "".concat(z / 2 + 1) }, pe)
                    );
                  }));
                }, s;
              })(A.PureComponent)
            ), a = function(d) {
              var s = d.element, u = d.elementHeight, p = d.elements, w = d.findXAndWidthElement, C = d.index, N = d.inputRef, R = d.y, P = s.color, z = s.end, q = s.name, V = s.start, D = w(C, s, p), B = D.width, b = D.x, F = 9, H = 0.591 * F, L = Math.floor(B / 4 / H), Q = q ?? "";
              if (q && q.length > L) {
                var ae = L - 1;
                ae < 3 ? Q = "" : Q = "".concat(q.slice(0, ae), "…");
              }
              var de = 10, ue = Q.length * H + de * 2, pe = b, ke = B, Ee = d.height, Ne = 2, Oe = 2, Ue = "";
              return Ue += "M 0 ".concat(Oe, ` 
              L `).concat(ue, " ").concat(Oe, `
              L `).concat(ue, " ").concat(Ee / 4 - Ne / 2 + Oe / 2, `
              L `).concat(ke, " ").concat(Ee / 4 - Ne / 2 + Oe / 2, ` 
              L `).concat(ke, " ").concat(3 * Ee / 4 - Ne / 2 + Oe / 2, ` 
              L `).concat(ue, " ").concat(3 * Ee / 4 - Ne / 2 + Oe / 2, `  
              L `).concat(ue, " ").concat(Ee - Ne, ` 
              L 0 `).concat(Ee - Ne, `
              Z`), A.createElement(
                "g",
                { ref: N(s.id, {
                  end: z,
                  name: q,
                  start: V,
                  type: "TRANSLATION_HANDLE",
                  viewer: "LINEAR"
                }), id: s.id, transform: "translate(0, ".concat(R + u, ")") },
                A.createElement(
                  "g",
                  { id: s.id, transform: "translate(".concat(pe, ", 0)") },
                  A.createElement("title", null, q),
                  A.createElement("path", { className: "".concat(s.id, " la-vz-translation-handle"), cursor: "pointer", d: Ue, fill: P, id: s.id, stroke: P, style: E.translationHandle, onBlur: function() {
                  }, onFocus: function() {
                  }, onMouseOut: function() {
                    return T(s.id, 0.7);
                  }, onMouseOver: function() {
                    return T(s.id, 1);
                  } }),
                  A.createElement("text", { className: "la-vz-handle-label", cursor: "pointer", dominantBaseline: "middle", fontSize: F, id: s.id, style: E.translationHandleLabel, textAnchor: "start", x: de, y: Ee / 2 + 1, onBlur: function() {
                  }, onFocus: function() {
                  }, onMouseOut: function() {
                    return T(s.id, 0.7);
                  }, onMouseOver: function() {
                    return T(s.id, 1);
                  } }, Q)
                )
              );
            };
          }),
          /* 28 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var E = function(T, v) {
                return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, o) {
                  i.__proto__ = o;
                } || function(i, o) {
                  for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (i[a] = o[a]);
                }, E(T, v);
              };
              return function(T, v) {
                if (typeof v != "function" && v !== null)
                  throw new TypeError("Class extends value " + String(v) + " is not a constructor or null");
                E(T, v);
                function i() {
                  this.constructor = T;
                }
                T.prototype = v === null ? Object.create(v) : (i.prototype = v.prototype, new i());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(E) {
                for (var T, v = 1, i = arguments.length; v < i; v++) {
                  T = arguments[v];
                  for (var o in T) Object.prototype.hasOwnProperty.call(T, o) && (E[o] = T[o]);
                }
                return E;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var A = y(1), _ = y(26), I = (
              /** @class */
              (function(E) {
                S(T, E);
                function T() {
                  var v = E !== null && E.apply(this, arguments) || this;
                  return v.state = g({}, _.defaultSelection), v.previousBase = null, v.forward = null, v.fullSelectionLength = 0, v.dragEvent = !1, v.selectionStarted = !1, v.shiftSelection = !1, v.lastClick = Date.now(), v.idToRange = /* @__PURE__ */ new Map(), v.componentDidMount = function() {
                    document && document.addEventListener("mouseup", v.stopDrag);
                  }, v.componentWillUnmount = function() {
                    document && document.removeEventListener("mouseup", v.stopDrag);
                  }, v.stopDrag = function() {
                    v.dragEvent = !1;
                  }, v.resetCircleDragVars = function(i) {
                    v.previousBase = i, v.forward = null, v.fullSelectionLength = 0, v.dragEvent = !0;
                  }, v.inputRef = function(i, o) {
                    v.idToRange.set(i, g({ ref: i }, o));
                  }, v.removeMountedBlock = function(i) {
                    v.idToRange.delete(i);
                  }, v.mouseEvent = function(i) {
                    var o = v.props.setCentralIndex;
                    if (!((i.type === "mousemove" || i.type === "mouseup") && !v.dragEvent)) {
                      var a = Date.now() - v.lastClick, d = v.dragEvent ? v.idToRange.get(i.currentTarget.id) : v.idToRange.get(i.target.id) || v.idToRange.get(i.currentTarget.id);
                      if (d) {
                        d = g(g({}, d), { end: d.end || 0, start: d.start || 0 });
                        var s = d.direction, u = d.end, p = d.start, w = d.viewer;
                        switch (d.type) {
                          case "ANNOTATION":
                          case "FIND":
                          case "TRANSLATION":
                          case "TRANSLATION_HANDLE":
                          case "ENZYME":
                          case "PRIMER":
                          case "HIGHLIGHT": {
                            w !== "LINEAR" && o && o("LINEAR", p || 0);
                            var C = s ? s === 1 : !0, N = C ? p : u, R = C ? u : p;
                            v.setSelection(g(g({}, d), { clockwise: C, end: R, start: N })), v.dragEvent = !1, v.lastClick = Date.now();
                            break;
                          }
                          case "AMINOACID": {
                            var C = s ? s === 1 : !0, N = C ? p : u, R = C ? u : p;
                            a < 300 && d.parent && (d = g(g({}, d.parent), { end: d.parent.end || 0, start: d.parent.start || 0 }), N = C ? d.start : d.end, R = C ? d.end : d.start), v.setSelection(g(g({}, d), { clockwise: C, end: R, start: N })), v.dragEvent = !1, v.lastClick = Date.now(), i.stopPropagation();
                            break;
                          }
                          case "SEQ": {
                            w === "LINEAR" ? v.handleLinearSeqEvent(i, g(g({}, d), { end: d.end || 0, start: d.start || 0 })) : w === "CIRCULAR" && v.handleCircularSeqEvent(i);
                            break;
                          }
                        }
                      }
                    }
                  }, v.handleLinearSeqEvent = function(i, o) {
                    var a = v.context, d = v.calculateBaseLinear(i, o), s = a.start !== null && d >= (a.start || 0);
                    i.type === "mousedown" && d !== null ? (v.setSelection(g(g({}, _.defaultSelection), { clockwise: s, end: d, start: i.shiftKey ? a.start : d })), v.dragEvent = !0) : v.dragEvent && d !== null && v.setSelection(g(g({}, _.defaultSelection), { clockwise: s, end: d, start: a.start }));
                  }, v.handleCircularSeqEvent = function(i) {
                    var o = v.props, a = o.seq, d = o.setCentralIndex, s = v.context, u = s.start, p = s.clockwise, w = s.end, C = v.calculateBaseCircular(i), N = a.length;
                    if (i.type === "mousedown") {
                      var R = i.shiftKey ? u || 0 : C, P = i.shiftKey ? v.calcSelectionLength(R, C, !1) : v.calcSelectionLength(R, C, !0);
                      v.selectionStarted = P > 0, v.resetCircleDragVars(R), d?.("LINEAR", R), v.setSelection(g(g({}, _.defaultSelection), { clockwise: p, end: C, ref: "", start: R, type: "SEQ" }));
                    } else if (i.type === "mousemove" && v.dragEvent && C && v.previousBase && C !== v.previousBase) {
                      var z = C > v.previousBase, q = N * 0.9, V = Math.abs(v.previousBase - C), D = V > q;
                      v.forward = z ? !D : D;
                      var B = D ? N - V : V, b = v.forward === s.clockwise || s.clockwise === null;
                      if (b ? v.fullSelectionLength += B : v.fullSelectionLength -= B, v.previousBase = C, v.fullSelectionLength < N * 0.01 && !v.shiftSelection) {
                        p = v.forward;
                        var F = v.calcSelectionLength(s.start || 0, C, v.forward);
                        v.fullSelectionLength < 0 && (v.fullSelectionLength = F), F > v.fullSelectionLength && (p = !v.forward), w = C;
                      }
                      b = v.forward === s.clockwise;
                      var H = v.calcSelectionLength(s.start || 0, C, s.clockwise || !0);
                      v.selectionStarted && v.shiftSelection && H > v.fullSelectionLength && (v.fullSelectionLength = H);
                      var L = v.dragEvent && b, Q = !1, ae = !Q && v.fullSelectionLength >= N;
                      L && ae ? w = u : Q ? (v.fullSelectionLength = N + v.fullSelectionLength % N, !L && // changed direction
                      H === v.fullSelectionLength - N && // back tracking
                      H > N * 0.9 && (w = C, v.fullSelectionLength = v.fullSelectionLength - N)) : w = C, v.shiftSelection = !1, v.setSelection(g(g({}, _.defaultSelection), { clockwise: p, end: w, start: u, type: "SEQ" }));
                    }
                  }, v.calculateBaseLinear = function(i, o) {
                    var a = v.props.bpsPerBlock, d = i.currentTarget.getBoundingClientRect(), s = i.clientX - d.left, u = s / d.width, p = Math.round(u * a);
                    return Math.min(o.start + p, o.end);
                  }, v.calculateBaseCircular = function(i) {
                    var o = v.props, a = o.center, d = o.centralIndex, s = o.seq, u = o.yDiff;
                    if (!a)
                      return 0;
                    var p = i.currentTarget.getBoundingClientRect(), w = i.clientX - p.left, C = i.clientY - p.top, N = w - a.x, R = C - (a.y + u), P = R / N, z = Math.atan(P), q = z * (180 / Math.PI) + 90;
                    N < 0 && (q += 180);
                    var V = q / 360, D = Math.round(s.length * V);
                    return D += d, D > s.length && (D -= s.length), D;
                  }, v.setSelection = function(i) {
                    var o = v.context, a = v.props.setSelection;
                    if (!(i.start === o.start && i.end === o.end && i.ref === o.ref && // to support re-clicking the annotation and causing it to fire a la gh issue https://github.com/Lattice-Automation/seqviz/issues/142
                    ["SEQ", "AMINOACID", ""].includes(i.type || ""))) {
                      var d = g(g({}, o), i), s = d.clockwise, u = d.end, p = d.name, w = d.ref, C = d.start, N = d.type, R = v.calcSelectionLength(C, u, s);
                      a({
                        clockwise: s,
                        end: u,
                        length: R,
                        name: p,
                        ref: w,
                        start: C,
                        type: N
                      });
                    }
                  }, v.calcSelectionLength = function(i, o, a) {
                    var d = v.props.seq;
                    return o < i && !a ? i - o : o > i && !a ? i + (d.length - o) : o > i && a ? o - i : o < i && a ? d.length - i + o : 0;
                  }, v;
                }
                return T.prototype.render = function() {
                  return this.props.children(this.inputRef, this.mouseEvent, this.removeMountedBlock);
                }, T.displayName = "WithSelectionHandler", T.contextType = _.default, T;
              })(A.PureComponent)
            );
            m.default = I;
          }),
          /* 29 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var v = function(i, o) {
                return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, d) {
                  a.__proto__ = d;
                } || function(a, d) {
                  for (var s in d) Object.prototype.hasOwnProperty.call(d, s) && (a[s] = d[s]);
                }, v(i, o);
              };
              return function(i, o) {
                if (typeof o != "function" && o !== null)
                  throw new TypeError("Class extends value " + String(o) + " is not a constructor or null");
                v(i, o);
                function a() {
                  this.constructor = i;
                }
                i.prototype = o === null ? Object.create(o) : (a.prototype = o.prototype, new a());
              };
            })();
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Annotations = void 0;
            var g = y(1), A = y(8), _ = y(18), I = y(15), E = (
              /** @class */
              (function(v) {
                S(i, v);
                function i() {
                  var o = v !== null && v.apply(this, arguments) || this;
                  return o.hoverAnnotation = function(a, d) {
                    if (document)
                      for (var s = document.getElementsByClassName(a), u = 0; u < s.length; u += 1)
                        s[u].style.fillOpacity = d;
                  }, o;
                }
                return i.prototype.render = function() {
                  var o = this, a = this.props, d = a.annotations, s = a.lineHeight, u = a.radius, p = a.rowsToSkip, w = s * p, C = s * 2 + 3, N = u - C - w, R = N - s;
                  return g.createElement(A.default.Consumer, null, function(P) {
                    var z = P.circular;
                    return g.createElement("g", { className: "la-vz-circular-annotations" }, d.reduce(function(q, V, D) {
                      return D && (N -= s + 3, R -= s + 3), q.concat(V.map(function(B) {
                        return g.createElement(T, { key: "la-vz-".concat(B.id, "-annotation-circular-row"), annotation: B, calcBorderColor: _.darkerColor, centralIndex: z, currBRadius: N, currTRadius: R, genArc: o.props.genArc, getRotation: o.props.getRotation, hoverAnnotation: o.hoverAnnotation, id: "la-vz-".concat(B.id, "-annotation-circular-row"), inlinedAnnotations: o.props.inlinedAnnotations, inputRef: o.props.inputRef, lineHeight: s, seqLength: o.props.seqLength });
                      }));
                    }, []));
                  });
                }, i;
              })(g.PureComponent)
            );
            m.Annotations = E;
            var T = function(v) {
              var i = v.annotation, o = v.calcBorderColor, a = v.centralIndex, d = v.currBRadius, s = v.currTRadius, u = v.genArc, p = v.getRotation, w = v.hoverAnnotation, C = v.inlinedAnnotations, N = v.inputRef, R = v.lineHeight, P = v.seqLength, z = i.end >= i.start ? i.end - i.start : P - i.start + i.end;
              z = z === 0 ? P - 0.1 : z;
              var q = p(i.start);
              if (d < 0 || s < 0)
                return null;
              var V = (z / 2 + i.start + P - a) % P, D = V > P * 0.25 && V < P * 0.75, B = u({
                arrowFWD: i.direction === 1,
                arrowREV: i.direction === -1,
                innerRadius: d,
                largeArc: z > P / 2,
                length: z,
                outerRadius: s,
                sweepFWD: !0
              }), b = u({
                arrowFWD: !1,
                arrowREV: !1,
                innerRadius: D ? d : s,
                largeArc: z > P / 2,
                length: z,
                outerRadius: D ? d : s,
                sweepFWD: !0
              }), F = "la-vz-".concat(i.id, "-circular");
              return g.createElement(
                "g",
                { id: "la-vz-".concat(i.id, "-annotation-circular"), transform: q },
                g.createElement("path", { d: b, fill: "transparent", id: F, stroke: "transparent" }),
                g.createElement("path", { ref: N(i.id, {
                  direction: i.direction,
                  end: i.end,
                  name: i.name,
                  ref: i.id,
                  start: i.start,
                  type: "ANNOTATION",
                  viewer: "CIRCULAR"
                }), className: "".concat(i.id, " la-vz-annotation"), cursor: "pointer", d: B, fill: i.color, id: i.id, stroke: i.color ? _.COLOR_BORDER_MAP[i.color] || o(i.color) : "gray", style: I.annotation, onBlur: function() {
                }, onFocus: function() {
                }, onMouseOut: function() {
                  return w(i.id, "0.7");
                }, onMouseOver: function() {
                  return w(i.id, "1.0");
                } }),
                C.includes(i.id) && g.createElement(
                  "text",
                  { dy: -0.4 * R, id: i.id, style: I.svgText, onBlur: function() {
                  }, onFocus: function() {
                  }, onMouseOut: function() {
                    return w(i.id, "0.7");
                  }, onMouseOver: function() {
                    return w(i.id, "1.0");
                  } },
                  g.createElement("textPath", { className: "la-vz-annotation-label", cursor: "pointer", dominantBaseline: "middle", fontSize: 12, id: i.id, startOffset: D ? "25%" : "75%", style: I.annotationLabel, textAnchor: "middle", xlinkHref: "#".concat(F) }, i.name)
                )
              );
            };
          }),
          /* 30 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(T) {
                for (var v, i = 1, o = arguments.length; i < o; i++) {
                  v = arguments[i];
                  for (var a in v) Object.prototype.hasOwnProperty.call(v, a) && (T[a] = v[a]);
                }
                return T;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.CutSites = void 0;
            var g = y(1), A = y(15), _ = y(4), I = function(T) {
              var v = T.cutSites;
              if (!v.length)
                return null;
              var i = function(o, a, d) {
                var s = T.findCoor, u = s(o, a), p = s(o, d);
                return "M ".concat(p.x, " ").concat(p.y, " L ").concat(u.x, " ").concat(u.y);
              };
              return g.createElement("g", { className: "la-vz-circular-cutsites" }, v.map(function(o) {
                return g.createElement(E, S({ key: "circular-cut-site-".concat(o.id) }, T, { calculateLinePath: i, cutSite: o }));
              }));
            };
            m.CutSites = I;
            var E = function(T) {
              var v = T.calculateLinePath, i = T.cutSite, o = T.genArc, a = T.getRotation, d = T.inputRef, s = T.lineHeight, u = T.radius, p = T.seqLength, w = i.id, C = i.start, N = i.end, R = i.fcut, P = i.rcut;
              (C > N || C > R || C > P) && (C > N && (N += p), C > R && (R += p), C > P && (P += p));
              var z = Math.abs(N - C), q = u, V = u + 0.5 * s, D = u + s;
              return p < _.RENDER_SEQ_LENGTH_CUTOFF && (V += s + 1.5, D += 2 * s + 1.5), g.createElement(
                "g",
                { key: "la-vz-circular-cutsite-".concat(w), id: "la-vz-circular-cutsite-".concat(w), transform: a(C) },
                g.createElement("path", { ref: d(w, {
                  end: N,
                  ref: w,
                  start: C,
                  type: "ENZYME",
                  viewer: "CIRCULAR"
                }), className: "la-vz-cut-site", cursor: "pointer", d: o({
                  innerRadius: q,
                  largeArc: z > p / 2,
                  length: z,
                  outerRadius: D,
                  sweepFWD: !0
                }), style: i.enzyme.color ? S(S({}, A.cutSiteHighlight), { fill: i.enzyme.color }) : A.cutSiteHighlight }),
                g.createElement("path", { className: "la-vz-cut-site", d: v(R - C, D, V), style: A.cutSite }),
                g.createElement("path", { className: "la-vz-cut-site", d: o({
                  innerRadius: V,
                  largeArc: Math.abs(R - P) > p / 2,
                  length: Math.abs(R - P),
                  offset: Math.min(R, P) - C,
                  outerRadius: V,
                  sweepFWD: !0
                }), style: A.cutSite }),
                g.createElement("path", { className: "la-vz-cut-site", d: v(P - C, V, q), style: A.cutSite })
              );
            };
          }),
          /* 31 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Find = void 0;
            var S = y(1), g = y(15), A = y(4), _ = function(I) {
              var E = I.genArc, T = I.getRotation, v = I.highlights, i = I.inputRef, o = I.lineHeight, a = I.radius, d = I.search, s = I.seqLength, u = s > A.RENDER_SEQ_LENGTH_CUTOFF ? d.length / s <= 0.02 : !0;
              return S.createElement(
                "g",
                { className: "la-vz-circular-search" },
                u && d.map(function(p) {
                  return S.createElement(A.Arc, {
                    key: JSON.stringify(p),
                    className: "la-vz-search",
                    direction: p.direction || 1,
                    end: p.end,
                    genArc: E,
                    getRotation: T,
                    inputRef: i,
                    lineHeight: o,
                    radius: a,
                    seqLength: s,
                    start: p.start,
                    style: g.search
                  });
                }),
                v.map(function(p) {
                  var w = p.color, C = p.end, N = p.start;
                  return S.createElement(A.Arc, { key: "la-vz-highlight-".concat(N, "-").concat(C), className: "la-vz-search", color: w, direction: 1, end: C, genArc: E, getRotation: T, inputRef: i, lineHeight: o, radius: a, seqLength: s, start: N, style: g.search });
                })
              );
            };
            m.Find = _;
          }),
          /* 32 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var v = function(i, o) {
                return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, d) {
                  a.__proto__ = d;
                } || function(a, d) {
                  for (var s in d) Object.prototype.hasOwnProperty.call(d, s) && (a[s] = d[s]);
                }, v(i, o);
              };
              return function(i, o) {
                if (typeof o != "function" && o !== null)
                  throw new TypeError("Class extends value " + String(o) + " is not a constructor or null");
                v(i, o);
                function a() {
                  this.constructor = i;
                }
                i.prototype = o === null ? Object.create(o) : (a.prototype = o.prototype, new a());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(v) {
                for (var i, o = 1, a = arguments.length; o < a; o++) {
                  i = arguments[o];
                  for (var d in i) Object.prototype.hasOwnProperty.call(i, d) && (v[d] = i[d]);
                }
                return v;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Index = void 0;
            var A = y(1), _ = y(8), I = y(15), E = y(4), T = (
              /** @class */
              (function(v) {
                S(i, v);
                function i() {
                  var a = v !== null && v.apply(this, arguments) || this;
                  return a.state = {
                    indexInc: 10,
                    ticks: []
                  }, a.renderBasepairs = function() {
                    var d = a.props, s = d.compSeq, u = d.findCoor, p = d.getRotation, w = d.lineHeight, C = d.radius, N = d.seq, R = d.seqLength, P = d.showComplement, z = a.state.indexInc, q = a.context.circular, V = N + N, D = s + s, B = q - z * 5, b = q + z * 5;
                    q < R / 2 && (B += R, b += R);
                    for (var F = [], H = B; H <= b; H += 1)
                      F.push(A.createElement("text", g({ key: "la-vz-base-".concat(H) }, u(0, C + 2 * w), { dominantBaseline: "middle", style: I.svgText, transform: p(H) }), V.charAt(H))), P && F.push(A.createElement("text", g({ key: "la-vz-base-comp-".concat(H) }, u(0, C + w), { dominantBaseline: "middle", style: I.svgText, transform: p(H) }), D.charAt(H)));
                    return F;
                  }, a;
                }
                i.prototype.render = function() {
                  var a = this.props, d = a.center, s = a.findCoor, u = a.genArc, p = a.getRotation, w = a.lineHeight, C = a.name, N = a.radius, R = a.seq, P = a.seqLength, z = a.showIndex, q = a.size, V = a.totalRows, D = a.yDiff, B = this.state.ticks;
                  if (!z)
                    return null;
                  for (var b = N - V * w, F = 30, H = [], L = 0; L < C.length; )
                    H.push(C.substring(L, L + F).trim()), L += F;
                  var Q = 20 * H.length, ae = 14 + Q, de = H.length ? H[0].length / 2 * 12 : 0, ue = de > b ? {
                    x: d.x,
                    y: q.height - ae - D
                  } : {
                    x: d.x,
                    y: d.y - (H.length - 1) / 2 * 25
                    // shift the name up for >1 rows of text
                  }, pe = s(0, N), ke = s(0, N - 7), Ee = {
                    fill: "gray",
                    fontSize: 12,
                    textAnchor: "middle"
                  }, Ne = u({
                    innerRadius: N,
                    largeArc: !0,
                    length: P / 2,
                    outerRadius: N
                  });
                  return A.createElement(
                    "g",
                    null,
                    A.createElement("text", { fontSize: 20, fontWeight: 500, style: I.svgText, textAnchor: "middle" }, H.map(function(Oe, Ue) {
                      return A.createElement("tspan", { key: Oe, x: ue.x, y: ue.y + Ue * 25 }, Oe);
                    })),
                    A.createElement("text", g({ x: ue.x, y: ue.y + 14 + 25 * (H.length - 1) }, Ee, { style: I.svgText }), "".concat(P, " bp")),
                    R.length <= E.RENDER_SEQ_LENGTH_CUTOFF && A.createElement("g", { className: "la-vz-circular-bps" }, this.renderBasepairs()),
                    B.map(function(Oe) {
                      return A.createElement(
                        "g",
                        { key: "la-vz-tick-".concat(Oe), transform: p(Oe - 0.5) },
                        A.createElement("path", { className: "la-vz-index-tick", d: "M ".concat(pe.x, " ").concat(pe.y, " L ").concat(ke.x, " ").concat(ke.y), style: I.indexTick }),
                        A.createElement("text", { className: "la-vz-index-tick-label", style: I.indexTickLabel, textAnchor: "middle", x: ke.x, y: ke.y + w }, Oe)
                      );
                    }),
                    A.createElement(
                      "g",
                      null,
                      A.createElement("path", { className: "la-vz-index-line", d: Ne, style: I.indexLine, transform: p(P * 0.75) }),
                      A.createElement("path", { className: "la-vz-index-line", d: Ne, style: I.indexLine, transform: p(P * 0.25) })
                    )
                  );
                };
                var o;
                return o = i, i.contextType = _.default, i.getDerivedStateFromProps = function(a) {
                  var d = a.seqLength, s = 0;
                  o.context && (s = o.context.circular);
                  for (var u = 6, p = Math.floor(d / u), w = Math.max(+p.toPrecision(2), 10); w % 10 !== 0; )
                    w += 1;
                  for (var C = [], N = 0; N <= d - w / 2; N += w)
                    C.push(N === 0 ? 1 : N);
                  var R = w * 6;
                  return C = C.filter(function(P) {
                    return Math.abs(s - P) < R || Math.abs(s + d - P) < R || Math.abs(s - d - P) < R;
                  }), { indexInc: w, ticks: C };
                }, i;
              })(A.PureComponent)
            );
            m.Index = T;
          }),
          /* 33 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var i = function(o, a) {
                return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
                  d.__proto__ = s;
                } || function(d, s) {
                  for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (d[u] = s[u]);
                }, i(o, a);
              };
              return function(o, a) {
                if (typeof a != "function" && a !== null)
                  throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                i(o, a);
                function d() {
                  this.constructor = o;
                }
                o.prototype = a === null ? Object.create(a) : (d.prototype = a.prototype, new d());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(i) {
                for (var o, a = 1, d = arguments.length; a < d; a++) {
                  o = arguments[a];
                  for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
                }
                return i;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Labels = void 0;
            var A = y(1), _ = y(5), I = y(15), E = y(4), T = y(34), v = (
              /** @class */
              (function(i) {
                S(o, i);
                function o(a) {
                  var d = i.call(this, a) || this;
                  return d.setHoveredGroup = function(s) {
                    s !== d.state.hoveredGroup && d.setState({ hoveredGroup: s });
                  }, d.state = {
                    hoveredGroup: "",
                    labelGroups: []
                  }, d;
                }
                return o.prototype.render = function() {
                  var a = this, d = this.state, s = d.hoveredGroup, u = d.labelGroups, p = this.props, w = p.lineHeight, C = p.size, N = u.find(function(R) {
                    return R.labels[0].id === s;
                  });
                  return A.createElement(
                    "g",
                    { className: "la-vz-circular-labels", onMouseLeave: function() {
                      return a.setHoveredGroup("");
                    } },
                    u.map(function(R) {
                      var P = R.labels[0], z = R.forkCoor || R.textCoor, q = A.createElement(
                        A.Fragment,
                        null,
                        A.createElement("path", { className: "la-vz-label-line", d: "M".concat(R.lineCoor.x, " ").concat(R.lineCoor.y, " L").concat(z.x, " ").concat(z.y), style: I.circularLabelLine }),
                        R.forkCoor && A.createElement("path", { className: "la-vz-label-line", d: "M".concat(z.x, " ").concat(z.y, " L").concat(R.textCoor.x, " ").concat(R.textCoor.y), style: I.circularLabelLine })
                      );
                      if (R.grouped) {
                        if (P.id === s)
                          return null;
                      } else return A.createElement(
                        "g",
                        { key: P.id },
                        q,
                        A.createElement("text", g({ className: "la-vz-circular-label", id: P.id }, R.textCoor, { dominantBaseline: "middle", style: I.circularLabel, textAnchor: R.textAnchor, onMouseEnter: function() {
                          return (0, T.setHoveredLabelUnderline)(P.id || "", !0);
                        }, onMouseLeave: function() {
                          return (0, T.setHoveredLabelUnderline)(P.id || "", !1);
                        } }), R.name)
                      );
                      return A.createElement(
                        "g",
                        { key: "".concat(P.id, "-listener"), id: "".concat(P.id, "-label") },
                        q,
                        A.createElement("text", g({ className: "la-vz-circular-label", dominantBaseline: "middle", id: P.id, style: I.circularLabel, textAnchor: R.textAnchor, onMouseEnter: function() {
                          return a.setHoveredGroup(P.id || "");
                        } }, R.textCoor), R.name)
                      );
                    }),
                    N && A.createElement(T.WrappedGroupLabel, { group: N, lineHeight: w, setHoveredGroup: this.setHoveredGroup, size: C })
                  );
                }, o.getDerivedStateFromProps = function(a, d) {
                  return {
                    hoveredGroup: d.hoveredGroup,
                    labelGroups: o.groupOverlappingLabels(a)
                  };
                }, o.groupOverlappingLabels = function(a) {
                  var d = a.center, s = a.findCoor, u = a.labels, p = a.lineHeight, w = a.radius, C = a.seqLength, N = a.size, R = a.yDiff, P = C > E.RENDER_SEQ_LENGTH_CUTOFF ? p * 2 : p * 3.5, z = w + P, q = u.reduce(function(B, b) {
                    return B.concat(b);
                  }, []).map(function(B) {
                    var b;
                    if (B.type === "enzyme")
                      b = B.start;
                    else if (B.end > B.start)
                      b = (B.end + B.start) / 2;
                    else {
                      var F = B.start - C, H = F + B.end;
                      b = H / 2;
                    }
                    var L = C > E.RENDER_SEQ_LENGTH_CUTOFF ? w : z - p / 2, Q = s(b, L, !0), ae = s(b, z, !0), de = ae.x <= d.x ? "end" : "start", ue = B;
                    return { label: ue, lineCoor: Q, textAnchor: de, textCoor: ae };
                  }), V = function(B, b) {
                    var F = (B.name.length + 4) * _.CHAR_WIDTH, H = !1, L = b.y + R;
                    return (L < 0 || L > N.height || b.x - F < 0 || b.x + F > N.width) && (H = !0), H;
                  }, D = q.reduce(function(B, b) {
                    var F = B.findIndex(function(L) {
                      return L.textAnchor === b.textAnchor ? Math.abs(L.textCoor.y - b.textCoor.y) < 15 : !1;
                    });
                    if (F > -1)
                      return B[F].labels.push(b.label), B[F].grouped = !0, B;
                    var H = V(b.label, b.textCoor);
                    return B.concat({
                      forkCoor: null,
                      grouped: H,
                      labels: [b.label],
                      lineCoor: b.lineCoor,
                      name: b.label.name,
                      overflow: H,
                      textAnchor: b.textAnchor,
                      textCoor: b.textCoor
                    });
                  }, []);
                  return D = D.reduce(function(B, b, F) {
                    if (!b.grouped || b.overflow || b.labels.length > 4)
                      return B.concat(b);
                    var H = B[B.length - 1], L = D[F + 1];
                    H && H.textAnchor !== b.textAnchor && (H = void 0), L && L.textAnchor !== b.textAnchor && (L = void 0);
                    var Q = b.labels.map(function(de, ue) {
                      var pe = ue * (3 * _.CHAR_WIDTH);
                      b.textAnchor === "end" && (pe = -pe);
                      var ke = (b.labels.length - ue) * -15;
                      b.textCoor.y > d.y && (ke = (b.labels.length - ue) * 15);
                      var Ee = {
                        x: b.textCoor.x + pe,
                        y: b.textCoor.y + ke
                        // try ot make the adjustment to the top/bottom
                      }, Ne = V(de, Ee);
                      return g(g({}, b), { forkCoor: b.textCoor, grouped: Ne, labels: [de], overflow: Ne, textCoor: Ee });
                    }), ae = Q.some(function(de) {
                      return [H, L].some(function(ue) {
                        return ue && Math.abs(ue.textCoor.y - de.textCoor.y) < 15;
                      });
                    });
                    return ae ? B.concat(b) : B.concat.apply(B, Q);
                  }, []), D = D.map(function(B) {
                    var b = B.labels[0].name, F = B.labels.length - 1;
                    return B.overflow ? g(g({}, B), { name: "+".concat(F + 1) }) : B.grouped ? g(g({}, B), { name: "".concat(b, ",+").concat(F) }) : g(g({}, B), { name: b });
                  }), D.map(function(B) {
                    var b = B.textCoor, F = b.x, H = b.y;
                    return F = Math.max(_.CHAR_WIDTH * (B.name.length + 1), F), F = Math.min(N.width - (B.name.length + 1) * _.CHAR_WIDTH, F), H = Math.max(_.CHAR_WIDTH, H), H = Math.min(N.height - _.CHAR_WIDTH - 12, H), g(g({}, B), { textCoor: { x: F, y: H } });
                  });
                }, o;
              })(A.Component)
            );
            m.Labels = v;
          }),
          /* 34 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(T) {
                for (var v, i = 1, o = arguments.length; i < o; i++) {
                  v = arguments[i];
                  for (var a in v) Object.prototype.hasOwnProperty.call(v, a) && (T[a] = v[a]);
                }
                return T;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.setHoveredLabelUnderline = m.WrappedGroupLabel = void 0;
            var g = y(1), A = y(5), _ = y(15), I = function(T) {
              var v = T.group, i = T.lineHeight, o = T.setHoveredGroup, a = T.size, d = a.height, s = a.width, u = function(Q) {
                return Q.reduce(function(ae, de) {
                  return ae + (de.name.length + 1) * A.CHAR_WIDTH;
                }, 0);
              }, p = function(Q) {
                return Q[Q.length - 1];
              }, w = v.labels.reduce(function(Q, ae) {
                var de = ae.name.length * A.CHAR_WIDTH;
                if (de > s) {
                  var ue = Math.floor(s * 0.75 / A.CHAR_WIDTH), pe = new RegExp(".{1,".concat(ue, "}"), "g"), ke = ae.name.match(pe) || [];
                  if (ke.length)
                    return ke.forEach(function(Ne) {
                      Q.push([S(S({}, ae), { name: Ne.trim() })]);
                    }), Q;
                }
                if (p(Q)) {
                  var Ee = u(p(Q));
                  if (Ee + de <= 200)
                    return Q[Q.length - 1].push(ae), Q;
                }
                return Q.push([ae]), Q;
              }, []), C = w.length * i, N = w.reduce(
                function(Q, ae, de) {
                  return Math.max(Q, u(ae) - (de === w.length - 1 ? A.CHAR_WIDTH : 0));
                },
                // no comma on last row, correct
                0
              ), R = [C, N].map(function(Q) {
                return Q + 2 * A.CHAR_WIDTH;
              }), P = R[0], z = R[1], q = v.forkCoor || v.textCoor, V = v.forkCoor ? "M".concat(v.textCoor.x, " ").concat(v.textCoor.y, " L").concat(q.x, " ").concat(q.y) : "M".concat(v.lineCoor.x, " ").concat(v.lineCoor.y, " L").concat(q.x, " ").concat(q.y), D = v.textCoor, B = D.x, b = D.y;
              B = v.textAnchor === "end" ? B - (v.labels[0].name.length + 3) * A.CHAR_WIDTH : B, b -= A.CHAR_WIDTH, B = Math.max(B, 2 * A.CHAR_WIDTH), B = Math.min(B, s - 2 * A.CHAR_WIDTH - N), b = Math.max(b, 2 * A.CHAR_WIDTH), b = Math.min(b, d - 2 * A.CHAR_WIDTH - C);
              var F = { x: B, y: b }, H = { x: B - A.CHAR_WIDTH, y: b - A.CHAR_WIDTH - 2 }, L = "".concat(v.labels[0].id, "_overlay");
              return g.createElement(
                "g",
                { key: L, onMouseLeave: function() {
                  return o("");
                } },
                g.createElement("path", { className: "la-vz-label-line", d: V }),
                g.createElement("rect", S({ fill: "white", height: P, stroke: "none", width: z }, H)),
                g.createElement("text", S({}, F, { style: _.svgText }), w.map(function(Q, ae) {
                  return (
                    // turn each group of label rows into a text span
                    // that's vertically spaced from the row above it
                    // add a comma to all but the last label
                    g.createElement("tspan", { key: "".concat(L, "_").concat(ae), dominantBaseline: "middle", x: F.x, y: F.y + (ae + 0.5) * i }, Q.map(function(de, ue) {
                      return (
                        // every label should have its own id (used by selection
                        // handler) and trigger the hoverCutSite function
                        // if it's an enzyme
                        g.createElement(
                          g.Fragment,
                          { key: de.id },
                          g.createElement("tspan", { className: "la-vz-circular-label", dominantBaseline: "middle", id: de.id, style: _.circularLabel, tabIndex: -1, y: F.y + (ae + 0.5) * i, onMouseLeave: function() {
                            return (0, m.setHoveredLabelUnderline)(de.id || "", !1);
                          }, onMouseOver: function() {
                            return (0, m.setHoveredLabelUnderline)(de.id || "", !0);
                          } }, de.name),
                          ue < Q.length - 1 || ae !== w.length - 1 ? "," : ""
                        )
                      );
                    }))
                  );
                })),
                g.createElement("rect", S({ fill: "none", height: P, stroke: "black", strokeWidth: 1.5, width: z }, H))
              );
            };
            m.WrappedGroupLabel = I;
            var E = function(T, v) {
              if (document) {
                var i = document.getElementById(T);
                i && (v ? i.style.textDecoration = "underline" : i.style.textDecoration = "none");
              }
            };
            m.setHoveredLabelUnderline = E;
          }),
          /* 35 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var T = function(v, i) {
                return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
                  o.__proto__ = a;
                } || function(o, a) {
                  for (var d in a) Object.prototype.hasOwnProperty.call(a, d) && (o[d] = a[d]);
                }, T(v, i);
              };
              return function(v, i) {
                if (typeof i != "function" && i !== null)
                  throw new TypeError("Class extends value " + String(i) + " is not a constructor or null");
                T(v, i);
                function o() {
                  this.constructor = v;
                }
                v.prototype = i === null ? Object.create(i) : (o.prototype = i.prototype, new o());
              };
            })();
            Object.defineProperty(m, "__esModule", { value: !0 }), m.Selection = void 0;
            var g = y(1), A = y(26), _ = y(15), I = y(4), E = (
              /** @class */
              (function(T) {
                S(v, T);
                function v() {
                  return T !== null && T.apply(this, arguments) || this;
                }
                return v.prototype.render = function() {
                  var i = this.props, o = i.findCoor, a = i.genArc, d = i.getRotation, s = i.lineHeight, u = i.radius, p = i.seq, w = i.seqLength, C = i.totalRows, N = this.context, R = N.clockwise, P = N.end, z = N.ref, q = N.start;
                  if (!(typeof q > "u" || typeof P > "u")) {
                    var V = 0;
                    if (q === P && z === "ALL" ? V = w : q > P ? V = R !== !1 ? Math.abs(P - q + w) : -Math.abs(q - P) : q < P && (V = R !== !1 ? Math.abs(P - q) : -Math.abs(q - P + w)), Math.abs(V) === w) {
                      var D = V > 0 ? -0.1 : 0.1;
                      V += D;
                    }
                    var B = u + s;
                    p.length <= I.RENDER_SEQ_LENGTH_CUTOFF && (B += 2 * s + 3);
                    var b = s * (C - 1), F = u - b;
                    (F < 0 || B < 0) && (F = 0, B = u);
                    var H = o(0, B), L = o(0, F), Q = "M ".concat(L.x, " ").concat(L.y, `
			L `).concat(H.x, " ").concat(H.y), ae = R !== !1 || z === "ALL", de = !1;
                    return (R !== !1 && V > w / 2 || R === !1 && Math.abs(V) > w / 2) && (de = !0), g.createElement(
                      "g",
                      null,
                      V && g.createElement("path", { className: "la-vz-selection", d: a({
                        innerRadius: F,
                        largeArc: de,
                        length: V,
                        outerRadius: B,
                        sweepFWD: ae
                      }), shapeRendering: "auto", stroke: "none", style: _.selection, transform: d(q) }),
                      g.createElement("path", { className: "la-vz-selection-edge", d: Q, strokeWidth: 1, style: _.selectionEdge, transform: d(q) }),
                      V && g.createElement("path", { className: "la-vz-selection-edge", d: Q, style: _.selectionEdge, transform: d(P) })
                    );
                  }
                }, v.contextType = A.default, v;
              })(g.PureComponent)
            );
            m.Selection = E;
          }),
          /* 36 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__extends || /* @__PURE__ */ (function() {
              var d = function(s, u) {
                return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, w) {
                  p.__proto__ = w;
                } || function(p, w) {
                  for (var C in w) Object.prototype.hasOwnProperty.call(w, C) && (p[C] = w[C]);
                }, d(s, u);
              };
              return function(s, u) {
                if (typeof u != "function" && u !== null)
                  throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
                d(s, u);
                function p() {
                  this.constructor = s;
                }
                s.prototype = u === null ? Object.create(u) : (p.prototype = u.prototype, new p());
              };
            })(), g = this && this.__assign || function() {
              return g = Object.assign || function(d) {
                for (var s, u = 1, p = arguments.length; u < p; u++) {
                  s = arguments[u];
                  for (var w in s) Object.prototype.hasOwnProperty.call(s, w) && (d[w] = s[w]);
                }
                return d;
              }, g.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 });
            var A = y(1), _ = y(37), I = y(5), E = y(18), T = y(38), v = y(12), i = y(40), o = y(13), a = (
              /** @class */
              (function(d) {
                S(s, d);
                function s(u) {
                  var p = d.call(this, u) || this;
                  p.componentDidUpdate = function(C, N) {
                    var R = C.accession, P = R === void 0 ? "" : R, z = C.annotations, q = C.enzymes, V = C.enzymesCustom, D = C.file, B = C.search, b = N.seq, F = N.seqType, H = N.name;
                    if (P !== p.props.accession || D !== p.props.file || p.props.seq && p.props.seq !== b || p.props.name && p.props.name !== H || p.props.seqType && p.props.seqType !== F) {
                      var L = p.parseInput();
                      p.setState(g(g({ annotations: L.annotations, compSeq: L.compSeq, name: L.name, seq: L.seq, seqType: L.seqType }, p.search(p.props, L.seq)), p.cut(L.seq, L.seqType)));
                      return;
                    }
                    B && (!p.props.search || B.query !== p.props.search.query || B.mismatch !== p.props.search.mismatch) && p.setState(p.search(p.props, b)), (!(0, v.isEqual)(q, p.props.enzymes) || !(0, v.isEqual)(V, p.props.enzymesCustom)) && p.setState(p.cut(b, F)), (0, v.isEqual)(z, p.props.annotations) || p.setState({
                      annotations: p.parseAnnotations(p.props.annotations, p.props.seq)
                    });
                  }, p.parseInput = function(C) {
                    var N = C || p.props, R = N.annotations, P = N.compSeq, z = N.file, q = N.name, V = q === void 0 ? "" : q, D = N.seq, B = N.seqType;
                    if (z) {
                      var b = {};
                      z && z instanceof File && (b.fileName = z.name);
                      var F = (0, _.parseFile)(z.toString(), b);
                      if (F.length) {
                        var H = B ?? (0, o.guessType)(F[0].seq);
                        return {
                          annotations: p.parseAnnotations(F[0].annotations, F[0].seq),
                          compSeq: (0, o.complement)(F[0].seq, H).compSeq,
                          name: F[0].name,
                          seq: F[0].seq,
                          seqType: H
                        };
                      }
                    } else if (D) {
                      var H = B ?? (0, o.guessType)(D);
                      return {
                        annotations: p.parseAnnotations(R, D),
                        compSeq: P || (0, o.complement)(D, H).compSeq,
                        name: V,
                        seq: D,
                        seqType: H
                      };
                    }
                    return {
                      annotations: [],
                      compSeq: "",
                      name: "",
                      seq: "",
                      seqType: "dna"
                    };
                  }, p.search = function(C, N) {
                    var R = C.onSearch, P = C.search, z = C.seqType;
                    if (!P || !N || !N.length)
                      return { search: [] };
                    var q = (0, i.default)(P.query, P.mismatch, N, z || (0, o.guessType)(N));
                    return p.state && (0, v.isEqual)(q, p.state.search) ? { search: p.state.search } : (R && R(q), { search: q });
                  }, p.cut = function(C, N) {
                    return {
                      cutSites: (0, T.default)(C || "", N, p.props.enzymes || [], p.props.enzymesCustom || {})
                    };
                  }, p.parseAnnotations = function(C, N) {
                    return C === void 0 && (C = null), N === void 0 && (N = ""), (C || []).map(function(R, P) {
                      return g(g({ id: (0, o.randomID)() }, R), { color: R.color || (0, E.colorByIndex)(P, E.COLORS), direction: (0, o.directionality)(R.direction), end: R.end % (N.length + 1), start: R.start % (N.length + 1) });
                    });
                  };
                  var w = p.parseInput(u);
                  return p.state = g(g(g({}, w), p.search(u, w.seq)), p.cut(w.seq, w.seqType)), p;
                }
                return s.prototype.componentDidMount = function() {
                  var u = this;
                  typeof window < "u" && (this.props.disableExternalFonts || y(41).load({
                    google: {
                      families: ["Roboto Mono:300,400,500"]
                    }
                  }));
                  var p = this.props.accession;
                  !p || !p.length || (0, _.default)(p, { cors: !0 }).then(function(w) {
                    var C = (0, o.guessType)(w.seq);
                    u.setState(g(g({ annotations: u.parseAnnotations(w.annotations, w.seq), compSeq: (0, o.complement)(w.seq, C).compSeq, name: w.name, seq: w.seq, seqType: C }, u.search(u.props, w.seq)), u.cut(w.seq, C)));
                  });
                }, s.prototype.componentDidCatch = function(u, p) {
                  console.error("Error caught in SeqViz: %v %v", u, p);
                }, s.prototype.render = function() {
                  var u = this.props, p = u.highlightedRegions, w = u.highlights, C = u.primers, N = u.showComplement, R = u.showIndex, P = u.style, z = u.zoom, q = this.props.translations, V = this.state, D = V.compSeq, B = V.seq, b = V.seqType;
                  if (!B)
                    return A.createElement("div", { className: "la-vz-seqviz" });
                  b === "aa" && (q = [{ direction: 1, end: B.length, start: 0, name: "" }]);
                  var F = {
                    bpColors: this.props.bpColors || {},
                    copyEvent: this.props.copyEvent || (function() {
                      return !1;
                    }),
                    selectAllEvent: this.props.selectAllEvent || (function() {
                      return !1;
                    }),
                    cutSites: this.state.cutSites,
                    highlights: (w || []).concat(p || []).map(function(H, L) {
                      return g(g({}, H), { direction: 1, end: H.end % (B.length + 1), id: "highlight-".concat(L, "-").concat(H.start, "-").concat(H.end), name: "", start: H.start % (B.length + 1) });
                    }),
                    onSelection: this.props.onSelection || (function() {
                    }),
                    primers: C.map(function(H, L) {
                      return g({ color: (0, E.colorByIndex)(L), id: "primer".concat(H.name).concat(L).concat(H.start).concat(H.end) }, H);
                    }),
                    rotateOnScroll: !!this.props.rotateOnScroll,
                    showComplement: !!D && (typeof N < "u" ? N : !0) || !1,
                    showIndex: !!R,
                    translations: (q || []).map(function(H, L) {
                      return {
                        direction: H.direction && H.direction < 0 ? -1 : 1,
                        end: b === "aa" ? H.end : H.start + Math.floor((H.end - H.start) / 3) * 3,
                        start: H.start % B.length,
                        color: H.color || (0, E.colorByIndex)(L, E.COLORS),
                        id: "translation".concat(H.name).concat(L).concat(H.start).concat(H.end),
                        name: H.name
                      };
                    }),
                    viewer: this.props.viewer || "both",
                    zoom: {
                      circular: typeof z?.circular == "number" ? Math.min(Math.max(z.circular, 0), 100) : 0,
                      linear: typeof z?.linear == "number" ? Math.min(Math.max(z.linear, 0), 100) : 50
                    }
                  };
                  return A.createElement(
                    "div",
                    { className: "la-vz-seqviz", "data-testid": "la-vz-seqviz", style: g({ height: "100%", width: "100%" }, P) },
                    A.createElement(I.default, g({}, this.props, F, this.state))
                  );
                }, s.defaultProps = {
                  accession: "",
                  annotations: [],
                  backbone: "",
                  bpColors: {},
                  colors: [],
                  compSeq: "",
                  copyEvent: function(u) {
                    return u.key === "c" && (u.metaKey || u.ctrlKey);
                  },
                  disableExternalFonts: !1,
                  enzymes: [],
                  enzymesCustom: {},
                  name: "",
                  onSearch: function(u) {
                    return null;
                  },
                  onSelection: function(u) {
                    return null;
                  },
                  primers: [],
                  rotateOnScroll: !0,
                  search: { mismatch: 0, query: "" },
                  selectAllEvent: function(u) {
                    return u.key === "a" && (u.metaKey || u.ctrlKey);
                  },
                  seq: "",
                  showComplement: !0,
                  showIndex: !0,
                  style: {},
                  translations: [],
                  viewer: "both",
                  zoom: { circular: 0, linear: 50 }
                }, s;
              })(A.Component)
            );
            m.default = a;
          }),
          /* 37 */
          /***/
          ((Z) => {
            Z.exports = kp();
          }),
          /* 38 */
          /***/
          (function(Z, m, y) {
            var S = this && this.__assign || function() {
              return S = Object.assign || function(E) {
                for (var T, v = 1, i = arguments.length; v < i; v++) {
                  T = arguments[v];
                  for (var o in T) Object.prototype.hasOwnProperty.call(T, o) && (E[o] = T[o]);
                }
                return E;
              }, S.apply(this, arguments);
            };
            Object.defineProperty(m, "__esModule", { value: !0 }), m.findCutSites = void 0;
            var g = y(39), A = y(40), _ = y(13);
            m.default = (function(E, T, v, i) {
              v === void 0 && (v = []), i === void 0 && (i = {});
              var o = E + E, a = v.map(function(d) {
                return typeof d == "string" ? g.default[d.toLowerCase()] : d;
              }).filter(function(d) {
                return d;
              }).concat(Object.values(i)).reduce(function(d, s) {
                return (0, m.findCutSites)(s, o, T, E.length).forEach(function(u) {
                  return d["".concat(u.fcut, "-").concat(u.direction)] = u;
                }), d;
              }, {});
              return Object.values(a);
            });
            var I = function(E, T, v, i) {
              if (v === "aa")
                return [];
              for (var o = E.fcut, a = E.rcut, d = E.rseq, s = [], u = (0, A.createRegex)(d, v), p = u.exec(T); p; ) {
                var w = p.index;
                s.push({
                  direction: 1,
                  end: w + d.length,
                  enzyme: E,
                  fcut: w + o,
                  id: "",
                  name: E.name,
                  rcut: w + a,
                  start: w
                }), p = u.exec(T);
              }
              var C = d === (0, _.reverseComplement)(d, v), N = (0, A.createRegex)((0, _.reverseComplement)(d, v), v);
              for (p = N.exec(T); p && !C; ) {
                var w = p.index;
                s.push({
                  direction: -1,
                  end: w + d.length,
                  enzyme: E,
                  fcut: w + d.length - a,
                  id: "",
                  name: E.name,
                  rcut: w + d.length - o,
                  start: w
                }), p = N.exec(T);
              }
              return s.sort(function(R, P) {
                return R.fcut - P.fcut;
              }).filter(function(R) {
                return !(R.fcut === 0 && R.rcut === 0);
              }).map(function(R) {
                return S(S({}, R), { end: R.end % i, fcut: R.fcut % i, id: "".concat(E.name, "-").concat(E.rseq, "-").concat(R.fcut, "-").concat(R.direction > 0 ? "fwd" : "rev"), rcut: R.rcut % i, start: R.start % i });
              }).filter(function(R) {
                return R.enzyme.range ? R.start >= R.enzyme.range.start && R.end <= R.enzyme.range.end : !0;
              });
            };
            m.findCutSites = I;
          }),
          /* 39 */
          /***/
          ((Z, m) => {
            Object.defineProperty(m, "__esModule", { value: !0 });
            var y = {
              aatii: {
                fcut: 5,
                name: "AatII",
                rcut: 1,
                rseq: "GACGTC"
              },
              abasi: {
                fcut: 14,
                name: "AbaSI",
                rcut: 12,
                rseq: "hmCNNNNNNNNNNN"
              },
              acc65i: {
                fcut: 1,
                name: "Acc65I",
                rcut: 5,
                rseq: "GGTACC"
              },
              acci: {
                fcut: 2,
                name: "AccI",
                rcut: 4,
                rseq: "GTMKAC"
              },
              acii: {
                fcut: 1,
                name: "AciI",
                rcut: 3,
                rseq: "CCGC"
              },
              acli: {
                fcut: 2,
                name: "AclI",
                rcut: 4,
                rseq: "AACGTT"
              },
              acui: {
                fcut: 22,
                name: "AcuI",
                rcut: 20,
                rseq: "CTGAAGNNNNNNNNNNNNNNNN"
              },
              afei: {
                fcut: 3,
                name: "AfeI",
                rcut: 3,
                rseq: "AGCGCT"
              },
              aflii: {
                fcut: 1,
                name: "AflII",
                rcut: 5,
                rseq: "CTTAAG"
              },
              afliii: {
                fcut: 1,
                name: "AflIII",
                rcut: 5,
                rseq: "ACRYGT"
              },
              agei: {
                fcut: 1,
                name: "AgeI",
                rcut: 5,
                rseq: "ACCGGT"
              },
              ahdi: {
                fcut: 6,
                name: "AhdI",
                rcut: 5,
                rseq: "GACNNNNNGTC"
              },
              alei: {
                fcut: 5,
                name: "AleI",
                rcut: 5,
                rseq: "CACNNNNGTG"
              },
              alui: {
                fcut: 2,
                name: "AluI",
                rcut: 2,
                rseq: "AGCT"
              },
              alwi: {
                fcut: 9,
                name: "AlwI",
                rcut: 10,
                rseq: "GGATCNNNNN"
              },
              alwni: {
                fcut: 6,
                name: "AlwNI",
                rcut: 3,
                rseq: "CAGNNNCTG"
              },
              apai: {
                fcut: 5,
                name: "ApaI",
                rcut: 1,
                rseq: "GGGCCC"
              },
              apali: {
                fcut: 1,
                name: "ApaLI",
                rcut: 5,
                rseq: "GTGCAC"
              },
              apeki: {
                fcut: 1,
                name: "ApeKI",
                rcut: 4,
                rseq: "GCWGC"
              },
              apoi: {
                fcut: 1,
                name: "ApoI",
                rcut: 5,
                rseq: "RAATTY"
              },
              asci: {
                fcut: 2,
                name: "AscI",
                rcut: 6,
                rseq: "GGCGCGCC"
              },
              asei: {
                fcut: 2,
                name: "AseI",
                rcut: 4,
                rseq: "ATTAAT"
              },
              asisi: {
                fcut: 5,
                name: "AsiSI",
                rcut: 3,
                rseq: "GCGATCGC"
              },
              avai: {
                fcut: 1,
                name: "AvaI",
                rcut: 5,
                rseq: "CYCGRG"
              },
              avaii: {
                fcut: 1,
                name: "AvaII",
                rcut: 4,
                rseq: "GGWCC"
              },
              avrii: {
                fcut: 1,
                name: "AvrII",
                rcut: 5,
                rseq: "CCTAGG"
              },
              baegi: {
                fcut: 5,
                name: "BaeGI",
                rcut: 1,
                rseq: "GKGCMC"
              },
              baei: {
                fcut: 38,
                name: "BaeI",
                rcut: 33,
                rseq: "NNNNNNNNNNNNNNNACNNNNGTAYCNNNNNNNNNNNN"
              },
              bamhi: {
                fcut: 1,
                name: "BamHI",
                rcut: 5,
                rseq: "GGATCC"
              },
              bani: {
                fcut: 1,
                name: "BanI",
                rcut: 5,
                rseq: "GGYRCC"
              },
              banii: {
                fcut: 5,
                name: "BanII",
                rcut: 1,
                rseq: "GRGCYC"
              },
              bbsi: {
                fcut: 8,
                name: "BbsI",
                rcut: 12,
                rseq: "GAAGACNNNNNN"
              },
              bbvci: {
                fcut: 2,
                name: "BbvCI",
                rcut: 5,
                rseq: "CCTCAGC"
              },
              bbvi: {
                fcut: 13,
                name: "BbvI",
                rcut: 17,
                rseq: "GCAGCNNNNNNNNNNNN"
              },
              bcci: {
                fcut: 9,
                name: "BccI",
                rcut: 10,
                rseq: "CCATCNNNNN"
              },
              bceai: {
                fcut: 17,
                name: "BceAI",
                rcut: 19,
                rseq: "ACGGCNNNNNNNNNNNNNN"
              },
              bcgi: {
                fcut: 36,
                name: "BcgI",
                rcut: 34,
                rseq: "NNNNNNNNNNNNCGANNNNNNTGCNNNNNNNNNNNN"
              },
              bcivi: {
                fcut: 12,
                name: "BciVI",
                rcut: 11,
                rseq: "GTATCCNNNNNN"
              },
              bcli: {
                fcut: 1,
                name: "BclI",
                rcut: 5,
                rseq: "TGATCA"
              },
              bcodi: {
                fcut: 6,
                name: "BcoDI",
                rcut: 10,
                rseq: "GTCTCNNNNN"
              },
              bfai: {
                fcut: 1,
                name: "BfaI",
                rcut: 3,
                rseq: "CTAG"
              },
              bfuai: {
                fcut: 10,
                name: "BfuAI",
                rcut: 14,
                rseq: "ACCTGCNNNNNNNN"
              },
              bgli: {
                fcut: 7,
                name: "BglI",
                rcut: 4,
                rseq: "GCCNNNNNGGC"
              },
              bglii: {
                fcut: 1,
                name: "BglII",
                rcut: 5,
                rseq: "AGATCT"
              },
              blpi: {
                fcut: 2,
                name: "BlpI",
                rcut: 5,
                rseq: "GCTNAGC"
              },
              bmgbi: {
                fcut: 3,
                name: "BmgBI",
                rcut: 3,
                rseq: "CACGTC"
              },
              bmri: {
                fcut: 11,
                name: "BmrI",
                rcut: 10,
                rseq: "ACTGGGNNNNN"
              },
              bmti: {
                fcut: 5,
                name: "BmtI",
                rcut: 1,
                rseq: "GCTAGC"
              },
              bpmi: {
                fcut: 22,
                name: "BpmI",
                rcut: 20,
                rseq: "CTGGAGNNNNNNNNNNNNNNNN"
              },
              bpu10i: {
                fcut: 2,
                name: "Bpu10I",
                rcut: 5,
                rseq: "CCTNAGC"
              },
              bpuei: {
                fcut: 22,
                name: "BpuEI",
                rcut: 20,
                rseq: "CTTGAGNNNNNNNNNNNNNNNN"
              },
              bsaai: {
                fcut: 3,
                name: "BsaAI",
                rcut: 3,
                rseq: "YACGTR"
              },
              bsabi: {
                fcut: 5,
                name: "BsaBI",
                rcut: 5,
                rseq: "GATNNNNATC"
              },
              bsahi: {
                fcut: 2,
                name: "BsaHI",
                rcut: 4,
                rseq: "GRCGYC"
              },
              bsai: {
                fcut: 7,
                name: "BsaI",
                rcut: 11,
                rseq: "GGTCTCNNNNN"
              },
              bsaji: {
                fcut: 1,
                name: "BsaJI",
                rcut: 5,
                rseq: "CCNNGG"
              },
              bsawi: {
                fcut: 1,
                name: "BsaWI",
                rcut: 5,
                rseq: "WCCGGW"
              },
              bsaxi: {
                fcut: 33,
                name: "BsaXI",
                rcut: 30,
                rseq: "NNNNNNNNNNNNACNNNNNCTCCNNNNNNNNNN"
              },
              bseri: {
                fcut: 16,
                name: "BseRI",
                rcut: 14,
                rseq: "GAGGAGNNNNNNNNNN"
              },
              bseyi: {
                fcut: 1,
                name: "BseYI",
                rcut: 5,
                rseq: "CCCAGC"
              },
              bsgi: {
                fcut: 22,
                name: "BsgI",
                rcut: 20,
                rseq: "GTGCAGNNNNNNNNNNNNNNNN"
              },
              bsiei: {
                fcut: 4,
                name: "BsiEI",
                rcut: 2,
                rseq: "CGRYCG"
              },
              bsihkai: {
                fcut: 5,
                name: "BsiHKAI",
                rcut: 1,
                rseq: "GWGCWC"
              },
              bsiwi: {
                fcut: 1,
                name: "BsiWI",
                rcut: 5,
                rseq: "CGTACG"
              },
              bsli: {
                fcut: 7,
                name: "BslI",
                rcut: 4,
                rseq: "CCNNNNNNNGG"
              },
              bsmai: {
                fcut: 6,
                name: "BsmAI",
                rcut: 10,
                rseq: "GTCTCNNNNN"
              },
              bsmbi: {
                fcut: 7,
                name: "BsmBI",
                rcut: 11,
                rseq: "CGTCTCNNNNN"
              },
              bsmfi: {
                fcut: 15,
                name: "BsmFI",
                rcut: 19,
                rseq: "GGGACNNNNNNNNNNNNNN"
              },
              bsmi: {
                fcut: 7,
                name: "BsmI",
                rcut: 5,
                rseq: "GAATGCN"
              },
              bsobi: {
                fcut: 1,
                name: "BsoBI",
                rcut: 5,
                rseq: "CYCGRG"
              },
              bsp1286i: {
                fcut: 5,
                name: "Bsp1286I",
                rcut: 1,
                rseq: "GDGCHC"
              },
              bspcni: {
                fcut: 14,
                name: "BspCNI",
                rcut: 12,
                rseq: "CTCAGNNNNNNNNN"
              },
              bspdi: {
                fcut: 2,
                name: "BspDI",
                rcut: 4,
                rseq: "ATCGAT"
              },
              bspei: {
                fcut: 1,
                name: "BspEI",
                rcut: 5,
                rseq: "TCCGGA"
              },
              bsphi: {
                fcut: 1,
                name: "BspHI",
                rcut: 5,
                rseq: "TCATGA"
              },
              bspmi: {
                fcut: 10,
                name: "BspMI",
                rcut: 14,
                rseq: "ACCTGCNNNNNNNN"
              },
              bspqi: {
                fcut: 8,
                name: "BspQI",
                rcut: 11,
                rseq: "GCTCTTCNNNN"
              },
              bsrbi: {
                fcut: 3,
                name: "BsrBI",
                rcut: 3,
                rseq: "CCGCTC"
              },
              bsrdi: {
                fcut: 8,
                name: "BsrDI",
                rcut: 6,
                rseq: "GCAATGNN"
              },
              bsrfi: {
                fcut: 1,
                name: "BsrFI",
                rcut: 5,
                rseq: "RCCGGY"
              },
              bsrgi: {
                fcut: 1,
                name: "BsrGI",
                rcut: 5,
                rseq: "TGTACA"
              },
              bsri: {
                fcut: 6,
                name: "BsrI",
                rcut: 4,
                rseq: "ACTGGN"
              },
              bsshii: {
                fcut: 1,
                name: "BssHII",
                rcut: 5,
                rseq: "GCGCGC"
              },
              bsssi: {
                fcut: 1,
                name: "BssSI",
                rcut: 5,
                rseq: "CACGAG"
              },
              bstapi: {
                fcut: 7,
                name: "BstAPI",
                rcut: 4,
                rseq: "GCANNNNNTGC"
              },
              bstbi: {
                fcut: 2,
                name: "BstBI",
                rcut: 4,
                rseq: "TTCGAA"
              },
              bsteii: {
                fcut: 1,
                name: "BstEII",
                rcut: 6,
                rseq: "GGTNACC"
              },
              bstni: {
                fcut: 2,
                name: "BstNI",
                rcut: 3,
                rseq: "CCWGG"
              },
              bstui: {
                fcut: 2,
                name: "BstUI",
                rcut: 2,
                rseq: "CGCG"
              },
              bstxi: {
                fcut: 8,
                name: "BstXI",
                rcut: 4,
                rseq: "CCANNNNNNTGG"
              },
              bstyi: {
                fcut: 1,
                name: "BstYI",
                rcut: 5,
                rseq: "RGATCY"
              },
              bstz17i: {
                fcut: 3,
                name: "BstZ17I",
                rcut: 3,
                rseq: "GTATAC"
              },
              bsu36i: {
                fcut: 2,
                name: "Bsu36I",
                rcut: 5,
                rseq: "CCTNAGG"
              },
              btgi: {
                fcut: 1,
                name: "BtgI",
                rcut: 5,
                rseq: "CCRYGG"
              },
              btgzi: {
                fcut: 16,
                name: "BtgZI",
                rcut: 20,
                rseq: "GCGATGNNNNNNNNNNNNNN"
              },
              btsci: {
                fcut: 7,
                name: "BtsCI",
                rcut: 5,
                rseq: "GGATGNN"
              },
              btsi: {
                fcut: 8,
                name: "BtsI",
                rcut: 6,
                rseq: "GCAGTGNN"
              },
              btsimuti: {
                fcut: 7,
                name: "BtsIMutI",
                rcut: 5,
                rseq: "CAGTGNN"
              },
              cac8i: {
                fcut: 3,
                name: "Cac8I",
                rcut: 3,
                rseq: "GCNNGC"
              },
              clai: {
                fcut: 2,
                name: "ClaI",
                rcut: 4,
                rseq: "ATCGAT"
              },
              cspci: {
                fcut: 37,
                name: "CspCI",
                rcut: 35,
                rseq: "NNNNNNNNNNNNNCAANNNNNGTGGNNNNNNNNNNNN"
              },
              cviaii: {
                fcut: 1,
                name: "CviAII",
                rcut: 3,
                rseq: "CATG"
              },
              "cviki-1": {
                fcut: 2,
                name: "CviKI-1",
                rcut: 2,
                rseq: "RGCY"
              },
              cviqi: {
                fcut: 1,
                name: "CviQI",
                rcut: 3,
                rseq: "GTAC"
              },
              ddei: {
                fcut: 1,
                name: "DdeI",
                rcut: 4,
                rseq: "CTNAG"
              },
              dpni: {
                fcut: 3,
                name: "DpnI",
                rcut: 3,
                rseq: "GmATC"
              },
              dpnii: {
                fcut: 0,
                name: "DpnII",
                rcut: 4,
                rseq: "GATC"
              },
              drai: {
                fcut: 3,
                name: "DraI",
                rcut: 3,
                rseq: "TTTAAA"
              },
              draiii: {
                fcut: 6,
                name: "DraIII",
                rcut: 3,
                rseq: "CACNNNGTG"
              },
              drdi: {
                fcut: 7,
                name: "DrdI",
                rcut: 5,
                rseq: "GACNNNNNNGTC"
              },
              eaei: {
                fcut: 1,
                name: "EaeI",
                rcut: 5,
                rseq: "YGGCCR"
              },
              eagi: {
                fcut: 1,
                name: "EagI",
                rcut: 5,
                rseq: "CGGCCG"
              },
              eari: {
                fcut: 7,
                name: "EarI",
                rcut: 10,
                rseq: "CTCTTCNNNN"
              },
              ecii: {
                fcut: 17,
                name: "EciI",
                rcut: 15,
                rseq: "GGCGGANNNNNNNNNNN"
              },
              eco53ki: {
                fcut: 3,
                name: "Eco53kI",
                rcut: 3,
                rseq: "GAGCTC"
              },
              econi: {
                fcut: 5,
                name: "EcoNI",
                rcut: 6,
                rseq: "CCTNNNNNAGG"
              },
              ecoo109i: {
                fcut: 2,
                name: "EcoO109I",
                rcut: 5,
                rseq: "RGGNCCY"
              },
              ecori: {
                fcut: 1,
                name: "EcoRI",
                rcut: 5,
                rseq: "GAATTC"
              },
              ecorv: {
                fcut: 3,
                name: "EcoRV",
                rcut: 3,
                rseq: "GATATC"
              },
              esp3i: {
                fcut: 7,
                name: "Esp3I",
                rcut: 11,
                rseq: "CGTCTCNNNNN"
              },
              fati: {
                fcut: 0,
                name: "FatI",
                rcut: 4,
                rseq: "CATG"
              },
              faui: {
                fcut: 9,
                name: "FauI",
                rcut: 11,
                rseq: "CCCGCNNNNNN"
              },
              fnu4hi: {
                fcut: 2,
                name: "Fnu4HI",
                rcut: 3,
                rseq: "GCNGC"
              },
              foki: {
                fcut: 14,
                name: "FokI",
                rcut: 18,
                rseq: "GGATGNNNNNNNNNNNNN"
              },
              fsei: {
                fcut: 6,
                name: "FseI",
                rcut: 2,
                rseq: "GGCCGGCC"
              },
              fspei: {
                fcut: 15,
                name: "FspEI",
                rcut: 19,
                rseq: "CmCNNNNNNNNNNNNNNNN"
              },
              fspi: {
                fcut: 3,
                name: "FspI",
                rcut: 3,
                rseq: "TGCGCA"
              },
              haeii: {
                fcut: 5,
                name: "HaeII",
                rcut: 1,
                rseq: "RGCGCY"
              },
              haeiii: {
                fcut: 2,
                name: "HaeIII",
                rcut: 2,
                rseq: "GGCC"
              },
              hgai: {
                fcut: 10,
                name: "HgaI",
                rcut: 15,
                rseq: "GACGCNNNNNNNNNN"
              },
              hhai: {
                fcut: 3,
                name: "HhaI",
                rcut: 1,
                rseq: "GCGC"
              },
              hincii: {
                fcut: 3,
                name: "HincII",
                rcut: 3,
                rseq: "GTYRAC"
              },
              hindiii: {
                fcut: 1,
                name: "HindIII",
                rcut: 5,
                rseq: "AAGCTT"
              },
              hinfi: {
                fcut: 1,
                name: "HinfI",
                rcut: 4,
                rseq: "GANTC"
              },
              hinp1i: {
                fcut: 1,
                name: "HinP1I",
                rcut: 3,
                rseq: "GCGC"
              },
              hpai: {
                fcut: 3,
                name: "HpaI",
                rcut: 3,
                rseq: "GTTAAC"
              },
              hpaii: {
                fcut: 1,
                name: "HpaII",
                rcut: 3,
                rseq: "CCGG"
              },
              hphi: {
                fcut: 13,
                name: "HphI",
                rcut: 12,
                rseq: "GGTGANNNNNNNN"
              },
              hpy166ii: {
                fcut: 3,
                name: "Hpy166II",
                rcut: 3,
                rseq: "GTNNAC"
              },
              hpy188i: {
                fcut: 3,
                name: "Hpy188I",
                rcut: 2,
                rseq: "TCNGA"
              },
              hpy188iii: {
                fcut: 2,
                name: "Hpy188III",
                rcut: 4,
                rseq: "TCNNGA"
              },
              hpy99i: {
                fcut: 5,
                name: "Hpy99I",
                rcut: 0,
                rseq: "CGWCG"
              },
              hpyav: {
                fcut: 11,
                name: "HpyAV",
                rcut: 10,
                rseq: "CCTTCNNNNNN"
              },
              hpych4iii: {
                fcut: 3,
                name: "HpyCH4III",
                rcut: 2,
                rseq: "ACNGT"
              },
              hpych4iv: {
                fcut: 1,
                name: "HpyCH4IV",
                rcut: 3,
                rseq: "ACGT"
              },
              hpych4v: {
                fcut: 2,
                name: "HpyCH4V",
                rcut: 2,
                rseq: "TGCA"
              },
              "i-ceui": {
                fcut: 18,
                name: "I-CeuI",
                rcut: 14,
                rseq: "TAACTATAACGGTCCTAAGGTAGCGAA"
              },
              "i-scei": {
                fcut: 9,
                name: "I-SceI",
                rcut: 5,
                rseq: "TAGGGATAACAGGGTAAT"
              },
              kasi: {
                fcut: 1,
                name: "KasI",
                rcut: 5,
                rseq: "GGCGCC"
              },
              kpni: {
                fcut: 5,
                name: "KpnI",
                rcut: 1,
                rseq: "GGTACC"
              },
              lpnpi: {
                fcut: 15,
                name: "LpnPI",
                rcut: 19,
                rseq: "CmCDGNNNNNNNNNNNNNN"
              },
              mboi: {
                fcut: 0,
                name: "MboI",
                rcut: 4,
                rseq: "GATC"
              },
              mboii: {
                fcut: 13,
                name: "MboII",
                rcut: 12,
                rseq: "GAAGANNNNNNNN"
              },
              mfei: {
                fcut: 1,
                name: "MfeI",
                rcut: 5,
                rseq: "CAATTG"
              },
              mluci: {
                fcut: 0,
                name: "MluCI",
                rcut: 4,
                rseq: "AATT"
              },
              mlui: {
                fcut: 1,
                name: "MluI",
                rcut: 5,
                rseq: "ACGCGT"
              },
              mlyi: {
                fcut: 10,
                name: "MlyI",
                rcut: 10,
                rseq: "GAGTCNNNNN"
              },
              mmei: {
                fcut: 26,
                name: "MmeI",
                rcut: 24,
                rseq: "TCCRACNNNNNNNNNNNNNNNNNNNN"
              },
              mnli: {
                fcut: 11,
                name: "MnlI",
                rcut: 10,
                rseq: "CCTCNNNNNNN"
              },
              msci: {
                fcut: 3,
                name: "MscI",
                rcut: 3,
                rseq: "TGGCCA"
              },
              msei: {
                fcut: 1,
                name: "MseI",
                rcut: 3,
                rseq: "TTAA"
              },
              msli: {
                fcut: 5,
                name: "MslI",
                rcut: 5,
                rseq: "CAYNNNNRTG"
              },
              mspa1i: {
                fcut: 3,
                name: "MspA1I",
                rcut: 3,
                rseq: "CMGCKG"
              },
              mspi: {
                fcut: 1,
                name: "MspI",
                rcut: 3,
                rseq: "CCGG"
              },
              mspji: {
                fcut: 14,
                name: "MspJI",
                rcut: 18,
                rseq: "mCNNRNNNNNNNNNNNNN"
              },
              mwoi: {
                fcut: 7,
                name: "MwoI",
                rcut: 4,
                rseq: "GCNNNNNNNGC"
              },
              naei: {
                fcut: 3,
                name: "NaeI",
                rcut: 3,
                rseq: "GCCGGC"
              },
              nari: {
                fcut: 2,
                name: "NarI",
                rcut: 4,
                rseq: "GGCGCC"
              },
              ncii: {
                fcut: 2,
                name: "NciI",
                rcut: 3,
                rseq: "CCSGG"
              },
              ncoi: {
                fcut: 1,
                name: "NcoI",
                rcut: 5,
                rseq: "CCATGG"
              },
              ndei: {
                fcut: 2,
                name: "NdeI",
                rcut: 4,
                rseq: "CATATG"
              },
              ngomiv: {
                fcut: 1,
                name: "NgoMIV",
                rcut: 5,
                rseq: "GCCGGC"
              },
              nhei: {
                fcut: 1,
                name: "NheI",
                rcut: 5,
                rseq: "GCTAGC"
              },
              nlaiii: {
                fcut: 4,
                name: "NlaIII",
                rcut: 0,
                rseq: "CATG"
              },
              nlaiv: {
                fcut: 3,
                name: "NlaIV",
                rcut: 3,
                rseq: "GGNNCC"
              },
              nmeaiii: {
                fcut: 26,
                name: "NmeAIII",
                rcut: 25,
                rseq: "GCCGAGNNNNNNNNNNNNNNNNNNNN"
              },
              noti: {
                fcut: 2,
                name: "NotI",
                rcut: 6,
                rseq: "GCGGCCGC"
              },
              nrui: {
                fcut: 3,
                name: "NruI",
                rcut: 3,
                rseq: "TCGCGA"
              },
              nsii: {
                fcut: 5,
                name: "NsiI",
                rcut: 1,
                rseq: "ATGCAT"
              },
              nspi: {
                fcut: 5,
                name: "NspI",
                rcut: 1,
                rseq: "RCATGY"
              },
              paci: {
                fcut: 5,
                name: "PacI",
                rcut: 3,
                rseq: "TTAATTAA"
              },
              paer7i: {
                fcut: 1,
                name: "PaeR7I",
                rcut: 5,
                rseq: "CTCGAG"
              },
              pcii: {
                fcut: 1,
                name: "PciI",
                rcut: 5,
                rseq: "ACATGT"
              },
              pflfi: {
                fcut: 4,
                name: "PflFI",
                rcut: 5,
                rseq: "GACNNNGTC"
              },
              pflmi: {
                fcut: 7,
                name: "PflMI",
                rcut: 4,
                rseq: "CCANNNNNTGG"
              },
              "pi-pspi": {
                fcut: 17,
                name: "PI-PspI",
                rcut: 13,
                rseq: "TGGCAAACAGCTATTATGGGTATTATGGGT"
              },
              "pi-scei": {
                fcut: 15,
                name: "PI-SceI",
                rcut: 11,
                rseq: "ATCTATGTCGGGTGCGGAGAAAGAGGTAATGAAATGG"
              },
              plei: {
                fcut: 9,
                name: "PleI",
                rcut: 10,
                rseq: "GAGTCNNNNN"
              },
              pluti: {
                fcut: 5,
                name: "PluTI",
                rcut: 1,
                rseq: "GGCGCC"
              },
              pmei: {
                fcut: 4,
                name: "PmeI",
                rcut: 4,
                rseq: "GTTTAAAC"
              },
              pmli: {
                fcut: 3,
                name: "PmlI",
                rcut: 3,
                rseq: "CACGTG"
              },
              ppumi: {
                fcut: 2,
                name: "PpuMI",
                rcut: 5,
                rseq: "RGGWCCY"
              },
              pshai: {
                fcut: 5,
                name: "PshAI",
                rcut: 5,
                rseq: "GACNNNNGTC"
              },
              psii: {
                fcut: 3,
                name: "PsiI",
                rcut: 3,
                rseq: "TTATAA"
              },
              pspgi: {
                fcut: 0,
                name: "PspGI",
                rcut: 5,
                rseq: "CCWGG"
              },
              pspomi: {
                fcut: 1,
                name: "PspOMI",
                rcut: 5,
                rseq: "GGGCCC"
              },
              pspxi: {
                fcut: 2,
                name: "PspXI",
                rcut: 6,
                rseq: "VCTCGAGB"
              },
              psti: {
                fcut: 5,
                name: "PstI",
                rcut: 1,
                rseq: "CTGCAG"
              },
              pvui: {
                fcut: 4,
                name: "PvuI",
                rcut: 2,
                rseq: "CGATCG"
              },
              pvuii: {
                fcut: 3,
                name: "PvuII",
                rcut: 3,
                rseq: "CAGCTG"
              },
              rsai: {
                fcut: 2,
                name: "RsaI",
                rcut: 2,
                rseq: "GTAC"
              },
              rsrii: {
                fcut: 2,
                name: "RsrII",
                rcut: 5,
                rseq: "CGGWCCG"
              },
              saci: {
                fcut: 5,
                name: "SacI",
                rcut: 1,
                rseq: "GAGCTC"
              },
              sacii: {
                fcut: 4,
                name: "SacII",
                rcut: 2,
                rseq: "CCGCGG"
              },
              sali: {
                fcut: 1,
                name: "SalI",
                rcut: 5,
                rseq: "GTCGAC"
              },
              sapi: {
                fcut: 8,
                name: "SapI",
                rcut: 11,
                rseq: "GCTCTTCNNNN"
              },
              sau3ai: {
                fcut: 0,
                name: "Sau3AI",
                rcut: 4,
                rseq: "GATC"
              },
              sau96i: {
                fcut: 1,
                name: "Sau96I",
                rcut: 4,
                rseq: "GGNCC"
              },
              sbfi: {
                fcut: 6,
                name: "SbfI",
                rcut: 2,
                rseq: "CCTGCAGG"
              },
              scai: {
                fcut: 3,
                name: "ScaI",
                rcut: 3,
                rseq: "AGTACT"
              },
              scrfi: {
                fcut: 2,
                name: "ScrFI",
                rcut: 3,
                rseq: "CCNGG"
              },
              sexai: {
                fcut: 1,
                name: "SexAI",
                rcut: 6,
                rseq: "ACCWGGT"
              },
              sfani: {
                fcut: 10,
                name: "SfaNI",
                rcut: 14,
                rseq: "GCATCNNNNNNNNN"
              },
              sfci: {
                fcut: 1,
                name: "SfcI",
                rcut: 5,
                rseq: "CTRYAG"
              },
              sfii: {
                fcut: 8,
                name: "SfiI",
                rcut: 5,
                rseq: "GGCCNNNNNGGCC"
              },
              sfoi: {
                fcut: 3,
                name: "SfoI",
                rcut: 3,
                rseq: "GGCGCC"
              },
              sgrai: {
                fcut: 2,
                name: "SgrAI",
                rcut: 6,
                rseq: "CRCCGGYG"
              },
              smai: {
                fcut: 3,
                name: "SmaI",
                rcut: 3,
                rseq: "CCCGGG"
              },
              smli: {
                fcut: 1,
                name: "SmlI",
                rcut: 5,
                rseq: "CTYRAG"
              },
              snabi: {
                fcut: 3,
                name: "SnaBI",
                rcut: 3,
                rseq: "TACGTA"
              },
              spei: {
                fcut: 1,
                name: "SpeI",
                rcut: 5,
                rseq: "ACTAGT"
              },
              sphi: {
                fcut: 5,
                name: "SphI",
                rcut: 1,
                rseq: "GCATGC"
              },
              srfi: {
                fcut: 4,
                name: "SrfI",
                rcut: 4,
                rseq: "GCCCGGGC"
              },
              sspi: {
                fcut: 3,
                name: "SspI",
                rcut: 3,
                rseq: "AATATT"
              },
              stui: {
                fcut: 3,
                name: "StuI",
                rcut: 3,
                rseq: "AGGCCT"
              },
              styd4i: {
                fcut: 0,
                name: "StyD4I",
                rcut: 5,
                rseq: "CCNGG"
              },
              styi: {
                fcut: 1,
                name: "StyI",
                rcut: 5,
                rseq: "CCWWGG"
              },
              swai: {
                fcut: 4,
                name: "SwaI",
                rcut: 4,
                rseq: "ATTTAAAT"
              },
              taqi: {
                fcut: 1,
                name: "TaqI",
                rcut: 3,
                rseq: "TCGA"
              },
              tfii: {
                fcut: 1,
                name: "TfiI",
                rcut: 4,
                rseq: "GAWTC"
              },
              tsei: {
                fcut: 1,
                name: "TseI",
                rcut: 4,
                rseq: "GCWGC"
              },
              tsp45i: {
                fcut: 0,
                name: "Tsp45I",
                rcut: 5,
                rseq: "GTSAC"
              },
              tspmi: {
                fcut: 1,
                name: "TspMI",
                rcut: 5,
                rseq: "CCCGGG"
              },
              tspri: {
                fcut: 9,
                name: "TspRI",
                rcut: 0,
                rseq: "NNCASTGNN"
              },
              tth111i: {
                fcut: 4,
                name: "Tth111I",
                rcut: 5,
                rseq: "GACNNNGTC"
              },
              xbai: {
                fcut: 1,
                name: "XbaI",
                rcut: 5,
                rseq: "TCTAGA"
              },
              xcmi: {
                fcut: 8,
                name: "XcmI",
                rcut: 7,
                rseq: "CCANNNNNNNNNTGG"
              },
              xhoi: {
                fcut: 1,
                name: "XhoI",
                rcut: 5,
                rseq: "CTCGAG"
              },
              xmai: {
                fcut: 1,
                name: "XmaI",
                rcut: 5,
                rseq: "CCCGGG"
              },
              xmni: {
                fcut: 5,
                name: "XmnI",
                rcut: 5,
                rseq: "GAANNNNTTC"
              },
              zrai: {
                fcut: 3,
                name: "ZraI",
                rcut: 3,
                rseq: "GACGTC"
              }
            };
            m.default = y;
          }),
          /* 40 */
          /***/
          ((Z, m, y) => {
            Object.defineProperty(m, "__esModule", { value: !0 }), m.createRegex = void 0;
            var S = y(13);
            m.default = (function(I, E, T, v) {
              if (E === void 0 && (E = 0), T === void 0 && (T = ""), !I || !I.length || !T || !T.length)
                return [];
              if (I.length - E < 2)
                return [];
              var i = g(I, T, E, !0, v);
              if (["dna", "rna"].includes(v)) {
                var o = (0, S.complement)(T, v).compSeq, a = g((0, S.reverse)(I), o, E, !1, v);
                i.push.apply(i, a);
              }
              return i.length > 4e3 ? (console.error("Search too broad: >4000 matches. Please narrow parameters."), []) : i.sort(function(d, s) {
                return d.start - s.start;
              });
            });
            var g = function(I, E, T, v, i) {
              if (T > 0)
                return A(I, E, T, v, i);
              for (var o = E.length, a = (0, m.createRegex)(I, i), d = a.exec(E), s = []; d; ) {
                var u = d.index % o, p = (u + I.length) % o || o;
                s.push({
                  direction: v ? 1 : -1,
                  end: p,
                  id: "".concat(u, "-").concat(v ? "fwd" : "rev"),
                  name: "",
                  start: u
                }), d = a.exec(E);
              }
              return s;
            }, A = function(I, E, T, v, i) {
              for (var o = (0, S.getAlphabet)(i), a = [], d = 0; d < E.length - I.length; d += 1) {
                for (var s = 0, u = 0; u < I.length; u += 1) {
                  var p = E[d + u].toLowerCase(), w = I[u].toLowerCase();
                  if (S.nucleotides[w] ? p !== w && (s += 1) : o[w] && (o[w][p] || (s += 1)), s > T)
                    break;
                }
                if (s <= T) {
                  var C = (d + I.length) % E.length || E.length;
                  a.push({
                    direction: v ? 1 : -1,
                    end: C,
                    id: "".concat(d, "-").concat(v ? "fwd" : "rev"),
                    name: "",
                    start: d
                  });
                }
              }
              return a;
            }, _ = function(I, E) {
              var T = (0, S.getAlphabet)(E), v = I.toLowerCase().split("").map(function(i) {
                return T[i] ? "(".concat(Object.keys(T[i]).join("|"), ")") : i;
              }).join("");
              return new RegExp(v.trim(), "gi");
            };
            m.createRegex = _;
          }),
          /* 41 */
          /***/
          ((Z) => {
            Z.exports = Tp();
          })
          /******/
        ], ne = {};
        function ie(Z) {
          var m = ne[Z];
          if (m !== void 0)
            return m.exports;
          var y = ne[Z] = {
            /******/
            // no module.id needed
            /******/
            // no module.loaded needed
            /******/
            exports: {}
            /******/
          };
          return X[Z].call(y.exports, y, y.exports, ie), y.exports;
        }
        var we = ie(0);
        return we;
      })()
    ));
  })(Kl)), Kl.exports;
}
var Rp = _p();
const Ip = ({
  seq: J,
  viewer: K,
  name: X,
  annotations: ne,
  primers: ie,
  translations: we,
  enzymes: Z,
  highlights: m,
  zoom: y,
  colors: S,
  bpColors: g,
  style: A,
  search: _,
  showComplement: I,
  rotateOnScroll: E,
  disableExternalFonts: T,
  showIndex: v,
  setStateValue: i
}) => /* @__PURE__ */ Jl.jsx("span", { children: /* @__PURE__ */ Jl.jsx(
  Rp.SeqViz,
  {
    seq: J,
    viewer: K,
    name: X,
    annotations: ne,
    primers: ie,
    translations: we,
    enzymes: Z,
    highlights: m,
    zoom: y,
    colors: S,
    bpColors: g,
    style: A,
    search: _,
    showComplement: I,
    rotateOnScroll: E,
    disableExternalFonts: T,
    showIndex: v,
    onSelection: (o) => {
      i?.("selection", o);
    },
    onSearch: (o) => {
      i?.("matches", o);
    }
  }
) }), Ql = /* @__PURE__ */ new WeakMap(), Op = (J) => {
  const { data: K, parentElement: X, setStateValue: ne } = J, ie = X.querySelector(".react-root");
  if (!ie)
    throw new Error("Unexpected: React root element not found");
  let we = Ql.get(X);
  we || (we = eh.createRoot(ie), Ql.set(X, we));
  const {
    seq: Z,
    viewer: m,
    name: y,
    annotations: S,
    primers: g,
    translations: A,
    enzymes: _,
    highlights: I,
    zoom: E,
    colors: T,
    bpColors: v,
    style: i,
    search: o,
    showComplement: a,
    rotateOnScroll: d,
    disableExternalFonts: s,
    showIndex: u
  } = K;
  return we.render(
    /* @__PURE__ */ Jl.jsx(Rt.StrictMode, { children: /* @__PURE__ */ Jl.jsx(
      Ip,
      {
        setStateValue: ne,
        seq: Z,
        viewer: m,
        name: y,
        annotations: S,
        primers: g,
        translations: A,
        enzymes: _,
        highlights: I,
        zoom: E,
        colors: T,
        bpColors: v,
        style: i,
        search: o,
        showComplement: a,
        rotateOnScroll: d,
        disableExternalFonts: s,
        showIndex: u
      }
    ) })
  ), () => {
    const p = Ql.get(X);
    p && (p.unmount(), Ql.delete(X));
  };
};
export {
  Op as default
};
