import { lz as t, lI as e } from "./ant-design-icons-6bfdc7d5.js";
import { useRef as r, useState as n, useEffect as o } from "react";
var i = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, c = function(t2) {
  return t2 && t2.Math == Math && t2;
}, u = c("object" == typeof globalThis && globalThis) || c("object" == typeof window && window) || c("object" == typeof self && self) || c("object" == typeof i && i) || function() {
  return this;
}() || Function("return this")(), a = {}, f = function(t2) {
  try {
    return !!t2();
  } catch (t3) {
    return true;
  }
}, s = !f(function() {
  return 7 != Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1];
}), l = !f(function() {
  var t2 = (function() {
  }).bind();
  return "function" != typeof t2 || t2.hasOwnProperty("prototype");
}), p = l, v = Function.prototype.call, d = p ? v.bind(v) : function() {
  return v.apply(v, arguments);
}, h = {}, y = {}.propertyIsEnumerable, g = Object.getOwnPropertyDescriptor, m = g && !y.call({ 1: 2 }, 1);
h.f = m ? function(t2) {
  var e2 = g(this, t2);
  return !!e2 && e2.enumerable;
} : y;
var b, w, O = function(t2, e2) {
  return { enumerable: !(1 & t2), configurable: !(2 & t2), writable: !(4 & t2), value: e2 };
}, S = l, j = Function.prototype, x = j.bind, E = j.call, T = S && x.bind(E, E), P = S ? function(t2) {
  return t2 && T(t2);
} : function(t2) {
  return t2 && function() {
    return E.apply(t2, arguments);
  };
}, I = P, R = I({}.toString), C = I("".slice), L = function(t2) {
  return C(R(t2), 8, -1);
}, A = P, _ = f, k = L, M = u.Object, N = A("".split), F = _(function() {
  return !M("z").propertyIsEnumerable(0);
}) ? function(t2) {
  return "String" == k(t2) ? N(t2, "") : M(t2);
} : M, D = u.TypeError, $ = function(t2) {
  if (null == t2)
    throw D("Can't call method on " + t2);
  return t2;
}, U = F, G = $, W = function(t2) {
  return U(G(t2));
}, V = function(t2) {
  return "function" == typeof t2;
}, B = V, z = function(t2) {
  return "object" == typeof t2 ? null !== t2 : B(t2);
}, H = u, q = V, Y = function(t2, e2) {
  return arguments.length < 2 ? (r2 = H[t2], q(r2) ? r2 : void 0) : H[t2] && H[t2][e2];
  var r2;
}, K = P({}.isPrototypeOf), X = Y("navigator", "userAgent") || "", J = u, Q = X, Z = J.process, tt = J.Deno, et = Z && Z.versions || tt && tt.version, rt = et && et.v8;
rt && (w = (b = rt.split("."))[0] > 0 && b[0] < 4 ? 1 : +(b[0] + b[1])), !w && Q && (!(b = Q.match(/Edge\/(\d+)/)) || b[1] >= 74) && (b = Q.match(/Chrome\/(\d+)/)) && (w = +b[1]);
var nt = w, ot = nt, it = f, ct = !!Object.getOwnPropertySymbols && !it(function() {
  var t2 = Symbol();
  return !String(t2) || !(Object(t2) instanceof Symbol) || !Symbol.sham && ot && ot < 41;
}), ut = ct && !Symbol.sham && "symbol" == typeof Symbol.iterator, at = Y, ft = V, st = K, lt = ut, pt = u.Object, vt = lt ? function(t2) {
  return "symbol" == typeof t2;
} : function(t2) {
  var e2 = at("Symbol");
  return ft(e2) && st(e2.prototype, pt(t2));
}, dt = u.String, ht = function(t2) {
  try {
    return dt(t2);
  } catch (t3) {
    return "Object";
  }
}, yt = V, gt = ht, mt = u.TypeError, bt = function(t2) {
  if (yt(t2))
    return t2;
  throw mt(gt(t2) + " is not a function");
}, wt = bt, Ot = function(t2, e2) {
  var r2 = t2[e2];
  return null == r2 ? void 0 : wt(r2);
}, St = d, jt = V, xt = z, Et = u.TypeError, Tt = { exports: {} }, Pt = u, It = Object.defineProperty, Rt = function(t2, e2) {
  try {
    It(Pt, t2, { value: e2, configurable: true, writable: true });
  } catch (r2) {
    Pt[t2] = e2;
  }
  return e2;
}, Ct = Rt, Lt = "__core-js_shared__", At = u[Lt] || Ct(Lt, {}), _t = At;
(Tt.exports = function(t2, e2) {
  return _t[t2] || (_t[t2] = void 0 !== e2 ? e2 : {});
})("versions", []).push({ version: "3.22.2", mode: "global", copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE", source: "https://github.com/zloirock/core-js" });
var kt = $, Mt = u.Object, Nt = function(t2) {
  return Mt(kt(t2));
}, Ft = Nt, Dt = P({}.hasOwnProperty), $t = Object.hasOwn || function(t2, e2) {
  return Dt(Ft(t2), e2);
}, Ut = P, Gt = 0, Wt = Math.random(), Vt = Ut(1 .toString), Bt = function(t2) {
  return "Symbol(" + (void 0 === t2 ? "" : t2) + ")_" + Vt(++Gt + Wt, 36);
}, zt = u, Ht = Tt.exports, qt = $t, Yt = Bt, Kt = ct, Xt = ut, Jt = Ht("wks"), Qt = zt.Symbol, Zt = Qt && Qt.for, te = Xt ? Qt : Qt && Qt.withoutSetter || Yt, ee = function(t2) {
  if (!qt(Jt, t2) || !Kt && "string" != typeof Jt[t2]) {
    var e2 = "Symbol." + t2;
    Kt && qt(Qt, t2) ? Jt[t2] = Qt[t2] : Jt[t2] = Xt && Zt ? Zt(e2) : te(e2);
  }
  return Jt[t2];
}, re = d, ne = z, oe = vt, ie = Ot, ce = function(t2, e2) {
  var r2, n2;
  if ("string" === e2 && jt(r2 = t2.toString) && !xt(n2 = St(r2, t2)))
    return n2;
  if (jt(r2 = t2.valueOf) && !xt(n2 = St(r2, t2)))
    return n2;
  if ("string" !== e2 && jt(r2 = t2.toString) && !xt(n2 = St(r2, t2)))
    return n2;
  throw Et("Can't convert object to primitive value");
}, ue = ee, ae = u.TypeError, fe = ue("toPrimitive"), se = function(t2, e2) {
  if (!ne(t2) || oe(t2))
    return t2;
  var r2, n2 = ie(t2, fe);
  if (n2) {
    if (void 0 === e2 && (e2 = "default"), r2 = re(n2, t2, e2), !ne(r2) || oe(r2))
      return r2;
    throw ae("Can't convert object to primitive value");
  }
  return void 0 === e2 && (e2 = "number"), ce(t2, e2);
}, le = vt, pe = function(t2) {
  var e2 = se(t2, "string");
  return le(e2) ? e2 : e2 + "";
}, ve = z, de = u.document, he = ve(de) && ve(de.createElement), ye = function(t2) {
  return he ? de.createElement(t2) : {};
}, ge = ye, me = !s && !f(function() {
  return 7 != Object.defineProperty(ge("div"), "a", { get: function() {
    return 7;
  } }).a;
}), be = s, we = d, Oe = h, Se = O, je = W, xe = pe, Ee = $t, Te = me, Pe = Object.getOwnPropertyDescriptor;
a.f = be ? Pe : function(t2, e2) {
  if (t2 = je(t2), e2 = xe(e2), Te)
    try {
      return Pe(t2, e2);
    } catch (t3) {
    }
  if (Ee(t2, e2))
    return Se(!we(Oe.f, t2, e2), t2[e2]);
};
var Ie = {}, Re = s && f(function() {
  return 42 != Object.defineProperty(function() {
  }, "prototype", { value: 42, writable: false }).prototype;
}), Ce = u, Le = z, Ae = Ce.String, _e = Ce.TypeError, ke = function(t2) {
  if (Le(t2))
    return t2;
  throw _e(Ae(t2) + " is not an object");
}, Me = s, Ne = me, Fe = Re, De = ke, $e = pe, Ue = u.TypeError, Ge = Object.defineProperty, We = Object.getOwnPropertyDescriptor, Ve = "enumerable", Be = "configurable", ze = "writable";
Ie.f = Me ? Fe ? function(t2, e2, r2) {
  if (De(t2), e2 = $e(e2), De(r2), "function" == typeof t2 && "prototype" === e2 && "value" in r2 && ze in r2 && !r2[ze]) {
    var n2 = We(t2, e2);
    n2 && n2[ze] && (t2[e2] = r2.value, r2 = { configurable: Be in r2 ? r2[Be] : n2[Be], enumerable: Ve in r2 ? r2[Ve] : n2[Ve], writable: false });
  }
  return Ge(t2, e2, r2);
} : Ge : function(t2, e2, r2) {
  if (De(t2), e2 = $e(e2), De(r2), Ne)
    try {
      return Ge(t2, e2, r2);
    } catch (t3) {
    }
  if ("get" in r2 || "set" in r2)
    throw Ue("Accessors not supported");
  return "value" in r2 && (t2[e2] = r2.value), t2;
};
var He = Ie, qe = O, Ye = s ? function(t2, e2, r2) {
  return He.f(t2, e2, qe(1, r2));
} : function(t2, e2, r2) {
  return t2[e2] = r2, t2;
}, Ke = { exports: {} }, Xe = V, Je = At, Qe = P(Function.toString);
Xe(Je.inspectSource) || (Je.inspectSource = function(t2) {
  return Qe(t2);
});
var Ze, tr, er, rr = Je.inspectSource, nr = V, or = rr, ir = u.WeakMap, cr = nr(ir) && /native code/.test(or(ir)), ur = Tt.exports, ar = Bt, fr = ur("keys"), sr = function(t2) {
  return fr[t2] || (fr[t2] = ar(t2));
}, lr = {}, pr = cr, vr = u, dr = P, hr = z, yr = Ye, gr = $t, mr = At, br = sr, wr = lr, Or = "Object already initialized", Sr = vr.TypeError, jr = vr.WeakMap;
if (pr || mr.state) {
  var xr = mr.state || (mr.state = new jr()), Er = dr(xr.get), Tr = dr(xr.has), Pr = dr(xr.set);
  Ze = function(t2, e2) {
    if (Tr(xr, t2))
      throw new Sr(Or);
    return e2.facade = t2, Pr(xr, t2, e2), e2;
  }, tr = function(t2) {
    return Er(xr, t2) || {};
  }, er = function(t2) {
    return Tr(xr, t2);
  };
} else {
  var Ir = br("state");
  wr[Ir] = true, Ze = function(t2, e2) {
    if (gr(t2, Ir))
      throw new Sr(Or);
    return e2.facade = t2, yr(t2, Ir, e2), e2;
  }, tr = function(t2) {
    return gr(t2, Ir) ? t2[Ir] : {};
  }, er = function(t2) {
    return gr(t2, Ir);
  };
}
var Rr = { set: Ze, get: tr, has: er, enforce: function(t2) {
  return er(t2) ? tr(t2) : Ze(t2, {});
}, getterFor: function(t2) {
  return function(e2) {
    var r2;
    if (!hr(e2) || (r2 = tr(e2)).type !== t2)
      throw Sr("Incompatible receiver, " + t2 + " required");
    return r2;
  };
} }, Cr = s, Lr = $t, Ar = Function.prototype, _r = Cr && Object.getOwnPropertyDescriptor, kr = Lr(Ar, "name"), Mr = kr && "something" === (function() {
}).name, Nr = kr && (!Cr || Cr && _r(Ar, "name").configurable), Fr = u, Dr = V, $r = $t, Ur = Ye, Gr = Rt, Wr = rr, Vr = { EXISTS: kr, PROPER: Mr, CONFIGURABLE: Nr }.CONFIGURABLE, Br = Rr.get, zr = Rr.enforce, Hr = String(String).split("String");
(Ke.exports = function(t2, e2, r2, n2) {
  var o2, i2 = !!n2 && !!n2.unsafe, c2 = !!n2 && !!n2.enumerable, u2 = !!n2 && !!n2.noTargetGet, a2 = n2 && void 0 !== n2.name ? n2.name : e2;
  Dr(r2) && ("Symbol(" === String(a2).slice(0, 7) && (a2 = "[" + String(a2).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!$r(r2, "name") || Vr && r2.name !== a2) && Ur(r2, "name", a2), (o2 = zr(r2)).source || (o2.source = Hr.join("string" == typeof a2 ? a2 : ""))), t2 !== Fr ? (i2 ? !u2 && t2[e2] && (c2 = true) : delete t2[e2], c2 ? t2[e2] = r2 : Ur(t2, e2, r2)) : c2 ? t2[e2] = r2 : Gr(e2, r2);
})(Function.prototype, "toString", function() {
  return Dr(this) && Br(this).source || Wr(this);
});
var qr = {}, Yr = Math.ceil, Kr = Math.floor, Xr = function(t2) {
  var e2 = +t2;
  return e2 != e2 || 0 === e2 ? 0 : (e2 > 0 ? Kr : Yr)(e2);
}, Jr = Xr, Qr = Math.max, Zr = Math.min, tn = Xr, en = Math.min, rn = function(t2) {
  return t2 > 0 ? en(tn(t2), 9007199254740991) : 0;
}, nn = rn, on = function(t2) {
  return nn(t2.length);
}, cn = W, un = function(t2, e2) {
  var r2 = Jr(t2);
  return r2 < 0 ? Qr(r2 + e2, 0) : Zr(r2, e2);
}, an = on, fn = function(t2) {
  return function(e2, r2, n2) {
    var o2, i2 = cn(e2), c2 = an(i2), u2 = un(n2, c2);
    if (t2 && r2 != r2) {
      for (; c2 > u2; )
        if ((o2 = i2[u2++]) != o2)
          return true;
    } else
      for (; c2 > u2; u2++)
        if ((t2 || u2 in i2) && i2[u2] === r2)
          return t2 || u2 || 0;
    return !t2 && -1;
  };
}, sn = { includes: fn(true), indexOf: fn(false) }, ln = $t, pn = W, vn = sn.indexOf, dn = lr, hn = P([].push), yn = function(t2, e2) {
  var r2, n2 = pn(t2), o2 = 0, i2 = [];
  for (r2 in n2)
    !ln(dn, r2) && ln(n2, r2) && hn(i2, r2);
  for (; e2.length > o2; )
    ln(n2, r2 = e2[o2++]) && (~vn(i2, r2) || hn(i2, r2));
  return i2;
}, gn = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], mn = yn, bn = gn.concat("length", "prototype");
qr.f = Object.getOwnPropertyNames || function(t2) {
  return mn(t2, bn);
};
var wn = {};
wn.f = Object.getOwnPropertySymbols;
var On = Y, Sn = qr, jn = wn, xn = ke, En = P([].concat), Tn = On("Reflect", "ownKeys") || function(t2) {
  var e2 = Sn.f(xn(t2)), r2 = jn.f;
  return r2 ? En(e2, r2(t2)) : e2;
}, Pn = $t, In = Tn, Rn = a, Cn = Ie, Ln = f, An = V, _n = /#|\.prototype\./, kn = function(t2, e2) {
  var r2 = Nn[Mn(t2)];
  return r2 == Dn || r2 != Fn && (An(e2) ? Ln(e2) : !!e2);
}, Mn = kn.normalize = function(t2) {
  return String(t2).replace(_n, ".").toLowerCase();
}, Nn = kn.data = {}, Fn = kn.NATIVE = "N", Dn = kn.POLYFILL = "P", $n = kn, Un = u, Gn = a.f, Wn = Ye, Vn = Ke.exports, Bn = Rt, zn = function(t2, e2, r2) {
  for (var n2 = In(e2), o2 = Cn.f, i2 = Rn.f, c2 = 0; c2 < n2.length; c2++) {
    var u2 = n2[c2];
    Pn(t2, u2) || r2 && Pn(r2, u2) || o2(t2, u2, i2(e2, u2));
  }
}, Hn = $n, qn = function(t2, e2) {
  var r2, n2, o2, i2, c2, u2 = t2.target, a2 = t2.global, f2 = t2.stat;
  if (r2 = a2 ? Un : f2 ? Un[u2] || Bn(u2, {}) : (Un[u2] || {}).prototype)
    for (n2 in e2) {
      if (i2 = e2[n2], o2 = t2.noTargetGet ? (c2 = Gn(r2, n2)) && c2.value : r2[n2], !Hn(a2 ? n2 : u2 + (f2 ? "." : "#") + n2, t2.forced) && void 0 !== o2) {
        if (typeof i2 == typeof o2)
          continue;
        zn(i2, o2);
      }
      (t2.sham || o2 && o2.sham) && Wn(i2, "sham", true), Vn(r2, n2, i2, t2);
    }
}, Yn = "process" == L(u.process), Kn = Ke.exports, Xn = u, Jn = V, Qn = Xn.String, Zn = Xn.TypeError, to = P, eo = ke, ro = function(t2) {
  if ("object" == typeof t2 || Jn(t2))
    return t2;
  throw Zn("Can't set " + Qn(t2) + " as a prototype");
}, no = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  var t2, e2 = false, r2 = {};
  try {
    (t2 = to(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r2, []), e2 = r2 instanceof Array;
  } catch (t3) {
  }
  return function(r3, n2) {
    return eo(r3), ro(n2), e2 ? t2(r3, n2) : r3.__proto__ = n2, r3;
  };
}() : void 0), oo = Ie.f, io = $t, co = ee("toStringTag"), uo = Y, ao = Ie, fo = s, so = ee("species"), lo = K, po = u.TypeError, vo = {};
vo[ee("toStringTag")] = "z";
var ho = u, yo = "[object z]" === String(vo), go = V, mo = L, bo = ee("toStringTag"), wo = ho.Object, Oo = "Arguments" == mo(function() {
  return arguments;
}()), So = yo ? mo : function(t2) {
  var e2, r2, n2;
  return void 0 === t2 ? "Undefined" : null === t2 ? "Null" : "string" == typeof (r2 = function(t3, e3) {
    try {
      return t3[e3];
    } catch (t4) {
    }
  }(e2 = wo(t2), bo)) ? r2 : Oo ? mo(e2) : "Object" == (n2 = mo(e2)) && go(e2.callee) ? "Arguments" : n2;
}, jo = P, xo = f, Eo = V, To = So, Po = rr, Io = function() {
}, Ro = [], Co = Y("Reflect", "construct"), Lo = /^\s*(?:class|function)\b/, Ao = jo(Lo.exec), _o = !Lo.exec(Io), ko = function(t2) {
  if (!Eo(t2))
    return false;
  try {
    return Co(Io, Ro, t2), true;
  } catch (t3) {
    return false;
  }
}, Mo = function(t2) {
  if (!Eo(t2))
    return false;
  switch (To(t2)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  try {
    return _o || !!Ao(Lo, Po(t2));
  } catch (t3) {
    return true;
  }
};
Mo.sham = true;
var No, Fo, Do, $o, Uo = !Co || xo(function() {
  var t2;
  return ko(ko.call) || !ko(Object) || !ko(function() {
    t2 = true;
  }) || t2;
}) ? Mo : ko, Go = Uo, Wo = ht, Vo = u.TypeError, Bo = ke, zo = function(t2) {
  if (Go(t2))
    return t2;
  throw Vo(Wo(t2) + " is not a constructor");
}, Ho = ee("species"), qo = l, Yo = Function.prototype, Ko = Yo.apply, Xo = Yo.call, Jo = "object" == typeof Reflect && Reflect.apply || (qo ? Xo.bind(Ko) : function() {
  return Xo.apply(Ko, arguments);
}), Qo = bt, Zo = l, ti = P(P.bind), ei = function(t2, e2) {
  return Qo(t2), void 0 === e2 ? t2 : Zo ? ti(t2, e2) : function() {
    return t2.apply(e2, arguments);
  };
}, ri = Y("document", "documentElement"), ni = P([].slice), oi = u.TypeError, ii = /(?:ipad|iphone|ipod).*applewebkit/i.test(X), ci = u, ui = Jo, ai = ei, fi = V, si = $t, li = f, pi = ri, vi = ni, di = ye, hi = function(t2, e2) {
  if (t2 < e2)
    throw oi("Not enough arguments");
  return t2;
}, yi = ii, gi = Yn, mi = ci.setImmediate, bi = ci.clearImmediate, wi = ci.process, Oi = ci.Dispatch, Si = ci.Function, ji = ci.MessageChannel, xi = ci.String, Ei = 0, Ti = {}, Pi = "onreadystatechange";
try {
  No = ci.location;
} catch (t2) {
}
var Ii = function(t2) {
  if (si(Ti, t2)) {
    var e2 = Ti[t2];
    delete Ti[t2], e2();
  }
}, Ri = function(t2) {
  return function() {
    Ii(t2);
  };
}, Ci = function(t2) {
  Ii(t2.data);
}, Li = function(t2) {
  ci.postMessage(xi(t2), No.protocol + "//" + No.host);
};
mi && bi || (mi = function(t2) {
  hi(arguments.length, 1);
  var e2 = fi(t2) ? t2 : Si(t2), r2 = vi(arguments, 1);
  return Ti[++Ei] = function() {
    ui(e2, void 0, r2);
  }, Fo(Ei), Ei;
}, bi = function(t2) {
  delete Ti[t2];
}, gi ? Fo = function(t2) {
  wi.nextTick(Ri(t2));
} : Oi && Oi.now ? Fo = function(t2) {
  Oi.now(Ri(t2));
} : ji && !yi ? ($o = (Do = new ji()).port2, Do.port1.onmessage = Ci, Fo = ai($o.postMessage, $o)) : ci.addEventListener && fi(ci.postMessage) && !ci.importScripts && No && "file:" !== No.protocol && !li(Li) ? (Fo = Li, ci.addEventListener("message", Ci, false)) : Fo = Pi in di("script") ? function(t2) {
  pi.appendChild(di("script"))[Pi] = function() {
    pi.removeChild(this), Ii(t2);
  };
} : function(t2) {
  setTimeout(Ri(t2), 0);
});
var Ai, _i, ki, Mi, Ni, Fi, Di, $i, Ui = { set: mi, clear: bi }, Gi = u, Wi = /ipad|iphone|ipod/i.test(X) && void 0 !== Gi.Pebble, Vi = /web0s(?!.*chrome)/i.test(X), Bi = u, zi = ei, Hi = a.f, qi = Ui.set, Yi = ii, Ki = Wi, Xi = Vi, Ji = Yn, Qi = Bi.MutationObserver || Bi.WebKitMutationObserver, Zi = Bi.document, tc = Bi.process, ec = Bi.Promise, rc = Hi(Bi, "queueMicrotask"), nc = rc && rc.value;
nc || (Ai = function() {
  var t2, e2;
  for (Ji && (t2 = tc.domain) && t2.exit(); _i; ) {
    e2 = _i.fn, _i = _i.next;
    try {
      e2();
    } catch (t3) {
      throw _i ? Mi() : ki = void 0, t3;
    }
  }
  ki = void 0, t2 && t2.enter();
}, Yi || Ji || Xi || !Qi || !Zi ? !Ki && ec && ec.resolve ? ((Di = ec.resolve(void 0)).constructor = ec, $i = zi(Di.then, Di), Mi = function() {
  $i(Ai);
}) : Ji ? Mi = function() {
  tc.nextTick(Ai);
} : (qi = zi(qi, Bi), Mi = function() {
  qi(Ai);
}) : (Ni = true, Fi = Zi.createTextNode(""), new Qi(Ai).observe(Fi, { characterData: true }), Mi = function() {
  Fi.data = Ni = !Ni;
}));
var oc = nc || function(t2) {
  var e2 = { fn: t2, next: void 0 };
  ki && (ki.next = e2), _i || (_i = e2, Mi()), ki = e2;
}, ic = u, cc = function(t2) {
  try {
    return { error: false, value: t2() };
  } catch (t3) {
    return { error: true, value: t3 };
  }
}, uc = function() {
  this.head = null, this.tail = null;
};
uc.prototype = { add: function(t2) {
  var e2 = { item: t2, next: null };
  this.head ? this.tail.next = e2 : this.head = e2, this.tail = e2;
}, get: function() {
  var t2 = this.head;
  if (t2)
    return this.head = t2.next, this.tail === t2 && (this.tail = null), t2.item;
} };
var ac = uc, fc = u.Promise, sc = "object" == typeof window && "object" != typeof Deno, lc = u, pc = fc, vc = V, dc = $n, hc = rr, yc = sc, gc = nt, mc = ee("species"), bc = false, wc = vc(lc.PromiseRejectionEvent), Oc = dc("Promise", function() {
  var t2 = hc(pc), e2 = t2 !== String(pc);
  if (!e2 && 66 === gc)
    return true;
  if (gc >= 51 && /native code/.test(t2))
    return false;
  var r2 = new pc(function(t3) {
    t3(1);
  }), n2 = function(t3) {
    t3(function() {
    }, function() {
    });
  };
  return (r2.constructor = {})[mc] = n2, !(bc = r2.then(function() {
  }) instanceof n2) || !e2 && yc && !wc;
}), Sc = { CONSTRUCTOR: Oc, REJECTION_EVENT: wc, SUBCLASSING: bc }, jc = {}, xc = bt, Ec = function(t2) {
  var e2, r2;
  this.promise = new t2(function(t3, n2) {
    if (void 0 !== e2 || void 0 !== r2)
      throw TypeError("Bad Promise constructor");
    e2 = t3, r2 = n2;
  }), this.resolve = xc(e2), this.reject = xc(r2);
};
jc.f = function(t2) {
  return new Ec(t2);
};
var Tc, Pc, Ic, Rc = qn, Cc = Yn, Lc = u, Ac = d, _c = Ke.exports, kc = function(t2, e2, r2) {
  for (var n2 in e2)
    Kn(t2, n2, e2[n2], r2);
  return t2;
}, Mc = no, Nc = function(t2, e2, r2) {
  t2 && !r2 && (t2 = t2.prototype), t2 && !io(t2, co) && oo(t2, co, { configurable: true, value: e2 });
}, Fc = function(t2) {
  var e2 = uo(t2), r2 = ao.f;
  fo && e2 && !e2[so] && r2(e2, so, { configurable: true, get: function() {
    return this;
  } });
}, Dc = bt, $c = V, Uc = z, Gc = function(t2, e2) {
  if (lo(e2, t2))
    return t2;
  throw po("Incorrect invocation");
}, Wc = function(t2, e2) {
  var r2, n2 = Bo(t2).constructor;
  return void 0 === n2 || null == (r2 = Bo(n2)[Ho]) ? e2 : zo(r2);
}, Vc = Ui.set, Bc = oc, zc = function(t2, e2) {
  var r2 = ic.console;
  r2 && r2.error && (1 == arguments.length ? r2.error(t2) : r2.error(t2, e2));
}, Hc = cc, qc = ac, Yc = Rr, Kc = fc, Xc = jc, Jc = "Promise", Qc = Sc.CONSTRUCTOR, Zc = Sc.REJECTION_EVENT, tu = Sc.SUBCLASSING, eu = Yc.getterFor(Jc), ru = Yc.set, nu = Kc && Kc.prototype, ou = Kc, iu = nu, cu = Lc.TypeError, uu = Lc.document, au = Lc.process, fu = Xc.f, su = fu, lu = !!(uu && uu.createEvent && Lc.dispatchEvent), pu = "unhandledrejection", vu = function(t2) {
  var e2;
  return !(!Uc(t2) || !$c(e2 = t2.then)) && e2;
}, du = function(t2, e2) {
  var r2, n2, o2, i2 = e2.value, c2 = 1 == e2.state, u2 = c2 ? t2.ok : t2.fail, a2 = t2.resolve, f2 = t2.reject, s2 = t2.domain;
  try {
    u2 ? (c2 || (2 === e2.rejection && bu(e2), e2.rejection = 1), true === u2 ? r2 = i2 : (s2 && s2.enter(), r2 = u2(i2), s2 && (s2.exit(), o2 = true)), r2 === t2.promise ? f2(cu("Promise-chain cycle")) : (n2 = vu(r2)) ? Ac(n2, r2, a2, f2) : a2(r2)) : f2(i2);
  } catch (t3) {
    s2 && !o2 && s2.exit(), f2(t3);
  }
}, hu = function(t2, e2) {
  t2.notified || (t2.notified = true, Bc(function() {
    for (var r2, n2 = t2.reactions; r2 = n2.get(); )
      du(r2, t2);
    t2.notified = false, e2 && !t2.rejection && gu(t2);
  }));
}, yu = function(t2, e2, r2) {
  var n2, o2;
  lu ? ((n2 = uu.createEvent("Event")).promise = e2, n2.reason = r2, n2.initEvent(t2, false, true), Lc.dispatchEvent(n2)) : n2 = { promise: e2, reason: r2 }, !Zc && (o2 = Lc["on" + t2]) ? o2(n2) : t2 === pu && zc("Unhandled promise rejection", r2);
}, gu = function(t2) {
  Ac(Vc, Lc, function() {
    var e2, r2 = t2.facade, n2 = t2.value;
    if (mu(t2) && (e2 = Hc(function() {
      Cc ? au.emit("unhandledRejection", n2, r2) : yu(pu, r2, n2);
    }), t2.rejection = Cc || mu(t2) ? 2 : 1, e2.error))
      throw e2.value;
  });
}, mu = function(t2) {
  return 1 !== t2.rejection && !t2.parent;
}, bu = function(t2) {
  Ac(Vc, Lc, function() {
    var e2 = t2.facade;
    Cc ? au.emit("rejectionHandled", e2) : yu("rejectionhandled", e2, t2.value);
  });
}, wu = function(t2, e2, r2) {
  return function(n2) {
    t2(e2, n2, r2);
  };
}, Ou = function(t2, e2, r2) {
  t2.done || (t2.done = true, r2 && (t2 = r2), t2.value = e2, t2.state = 2, hu(t2, true));
}, Su = function(t2, e2, r2) {
  if (!t2.done) {
    t2.done = true, r2 && (t2 = r2);
    try {
      if (t2.facade === e2)
        throw cu("Promise can't be resolved itself");
      var n2 = vu(e2);
      n2 ? Bc(function() {
        var r3 = { done: false };
        try {
          Ac(n2, e2, wu(Su, r3, t2), wu(Ou, r3, t2));
        } catch (e3) {
          Ou(r3, e3, t2);
        }
      }) : (t2.value = e2, t2.state = 1, hu(t2, false));
    } catch (e3) {
      Ou({ done: false }, e3, t2);
    }
  }
};
if (Qc && (iu = (ou = function(t2) {
  Gc(this, iu), Dc(t2), Ac(Tc, this);
  var e2 = eu(this);
  try {
    t2(wu(Su, e2), wu(Ou, e2));
  } catch (t3) {
    Ou(e2, t3);
  }
}).prototype, (Tc = function(t2) {
  ru(this, { type: Jc, done: false, notified: false, parent: false, reactions: new qc(), rejection: false, state: 0, value: void 0 });
}).prototype = kc(iu, { then: function(t2, e2) {
  var r2 = eu(this), n2 = fu(Wc(this, ou));
  return r2.parent = true, n2.ok = !$c(t2) || t2, n2.fail = $c(e2) && e2, n2.domain = Cc ? au.domain : void 0, 0 == r2.state ? r2.reactions.add(n2) : Bc(function() {
    du(n2, r2);
  }), n2.promise;
} }), Pc = function() {
  var t2 = new Tc(), e2 = eu(t2);
  this.promise = t2, this.resolve = wu(Su, e2), this.reject = wu(Ou, e2);
}, Xc.f = fu = function(t2) {
  return t2 === ou || void 0 === t2 ? new Pc(t2) : su(t2);
}, $c(Kc) && nu !== Object.prototype)) {
  Ic = nu.then, tu || _c(nu, "then", function(t2, e2) {
    var r2 = this;
    return new ou(function(t3, e3) {
      Ac(Ic, r2, t3, e3);
    }).then(t2, e2);
  }, { unsafe: true });
  try {
    delete nu.constructor;
  } catch (t2) {
  }
  Mc && Mc(nu, iu);
}
Rc({ global: true, wrap: true, forced: Qc }, { Promise: ou }), Nc(ou, Jc, false), Fc(Jc);
var ju = {}, xu = ju, Eu = ee("iterator"), Tu = Array.prototype, Pu = So, Iu = Ot, Ru = ju, Cu = ee("iterator"), Lu = function(t2) {
  if (null != t2)
    return Iu(t2, Cu) || Iu(t2, "@@iterator") || Ru[Pu(t2)];
}, Au = d, _u = bt, ku = ke, Mu = ht, Nu = Lu, Fu = u.TypeError, Du = d, $u = ke, Uu = Ot, Gu = ei, Wu = d, Vu = ke, Bu = ht, zu = function(t2) {
  return void 0 !== t2 && (xu.Array === t2 || Tu[Eu] === t2);
}, Hu = on, qu = K, Yu = function(t2, e2) {
  var r2 = arguments.length < 2 ? Nu(t2) : e2;
  if (_u(r2))
    return ku(Au(r2, t2));
  throw Fu(Mu(t2) + " is not iterable");
}, Ku = Lu, Xu = function(t2, e2, r2) {
  var n2, o2;
  $u(t2);
  try {
    if (!(n2 = Uu(t2, "return"))) {
      if ("throw" === e2)
        throw r2;
      return r2;
    }
    n2 = Du(n2, t2);
  } catch (t3) {
    o2 = true, n2 = t3;
  }
  if ("throw" === e2)
    throw r2;
  if (o2)
    throw n2;
  return $u(n2), r2;
}, Ju = u.TypeError, Qu = function(t2, e2) {
  this.stopped = t2, this.result = e2;
}, Zu = Qu.prototype, ta = function(t2, e2, r2) {
  var n2, o2, i2, c2, u2, a2, f2, s2 = r2 && r2.that, l2 = !(!r2 || !r2.AS_ENTRIES), p2 = !(!r2 || !r2.IS_ITERATOR), v2 = !(!r2 || !r2.INTERRUPTED), d2 = Gu(e2, s2), h2 = function(t3) {
    return n2 && Xu(n2, "normal", t3), new Qu(true, t3);
  }, y2 = function(t3) {
    return l2 ? (Vu(t3), v2 ? d2(t3[0], t3[1], h2) : d2(t3[0], t3[1])) : v2 ? d2(t3, h2) : d2(t3);
  };
  if (p2)
    n2 = t2;
  else {
    if (!(o2 = Ku(t2)))
      throw Ju(Bu(t2) + " is not iterable");
    if (zu(o2)) {
      for (i2 = 0, c2 = Hu(t2); c2 > i2; i2++)
        if ((u2 = y2(t2[i2])) && qu(Zu, u2))
          return u2;
      return new Qu(false);
    }
    n2 = Yu(t2, o2);
  }
  for (a2 = n2.next; !(f2 = Wu(a2, n2)).done; ) {
    try {
      u2 = y2(f2.value);
    } catch (t3) {
      Xu(n2, "throw", t3);
    }
    if ("object" == typeof u2 && u2 && qu(Zu, u2))
      return u2;
  }
  return new Qu(false);
}, ea = ee("iterator"), ra = false;
try {
  var na = 0, oa = { next: function() {
    return { done: !!na++ };
  }, return: function() {
    ra = true;
  } };
  oa[ea] = function() {
    return this;
  }, Array.from(oa, function() {
    throw 2;
  });
} catch (t2) {
}
var ia = fc, ca = function(t2, e2) {
  if (!e2 && !ra)
    return false;
  var r2 = false;
  try {
    var n2 = {};
    n2[ea] = function() {
      return { next: function() {
        return { done: r2 = true };
      } };
    }, t2(n2);
  } catch (t3) {
  }
  return r2;
}, ua = Sc.CONSTRUCTOR || !ca(function(t2) {
  ia.all(t2).then(void 0, function() {
  });
}), aa = d, fa = bt, sa = jc, la = cc, pa = ta;
qn({ target: "Promise", stat: true, forced: ua }, { all: function(t2) {
  var e2 = this, r2 = sa.f(e2), n2 = r2.resolve, o2 = r2.reject, i2 = la(function() {
    var r3 = fa(e2.resolve), i3 = [], c2 = 0, u2 = 1;
    pa(t2, function(t3) {
      var a2 = c2++, f2 = false;
      u2++, aa(r3, e2, t3).then(function(t4) {
        f2 || (f2 = true, i3[a2] = t4, --u2 || n2(i3));
      }, o2);
    }), --u2 || n2(i3);
  });
  return i2.error && o2(i2.value), r2.promise;
} });
var va = qn, da = Sc.CONSTRUCTOR, ha = fc, ya = Y, ga = V, ma = Ke.exports, ba = ha && ha.prototype;
if (va({ target: "Promise", proto: true, forced: da, real: true }, { catch: function(t2) {
  return this.then(void 0, t2);
} }), ga(ha)) {
  var wa = ya("Promise").prototype.catch;
  ba.catch !== wa && ma(ba, "catch", wa, { unsafe: true });
}
var Oa = d, Sa = bt, ja = jc, xa = cc, Ea = ta;
qn({ target: "Promise", stat: true, forced: ua }, { race: function(t2) {
  var e2 = this, r2 = ja.f(e2), n2 = r2.reject, o2 = xa(function() {
    var o3 = Sa(e2.resolve);
    Ea(t2, function(t3) {
      Oa(o3, e2, t3).then(r2.resolve, n2);
    });
  });
  return o2.error && n2(o2.value), r2.promise;
} });
var Ta = d, Pa = jc;
qn({ target: "Promise", stat: true, forced: Sc.CONSTRUCTOR }, { reject: function(t2) {
  var e2 = Pa.f(this);
  return Ta(e2.reject, void 0, t2), e2.promise;
} });
var Ia = ke, Ra = z, Ca = jc, La = function(t2, e2) {
  if (Ia(t2), Ra(e2) && e2.constructor === t2)
    return e2;
  var r2 = Ca.f(t2);
  return (0, r2.resolve)(e2), r2.promise;
};
qn({ target: "Promise", stat: true, forced: Sc.CONSTRUCTOR }, { resolve: function(t2) {
  return La(this, t2);
} });
var Aa = So, _a = u.String, ka = function(t2) {
  if ("Symbol" === Aa(t2))
    throw TypeError("Cannot convert a Symbol value to a string");
  return _a(t2);
}, Ma = ke, Na = f, Fa = u.RegExp, Da = Na(function() {
  var t2 = Fa("a", "y");
  return t2.lastIndex = 2, null != t2.exec("abcd");
}), $a = Da || Na(function() {
  return !Fa("a", "y").sticky;
}), Ua = { BROKEN_CARET: Da || Na(function() {
  var t2 = Fa("^r", "gy");
  return t2.lastIndex = 2, null != t2.exec("str");
}), MISSED_STICKY: $a, UNSUPPORTED_Y: Da }, Ga = {}, Wa = yn, Va = gn, Ba = Object.keys || function(t2) {
  return Wa(t2, Va);
}, za = s, Ha = Re, qa = Ie, Ya = ke, Ka = W, Xa = Ba;
Ga.f = za && !Ha ? Object.defineProperties : function(t2, e2) {
  Ya(t2);
  for (var r2, n2 = Ka(e2), o2 = Xa(e2), i2 = o2.length, c2 = 0; i2 > c2; )
    qa.f(t2, r2 = o2[c2++], n2[r2]);
  return t2;
};
var Ja, Qa = ke, Za = Ga, tf = gn, ef = lr, rf = ri, nf = ye, of = "prototype", cf = "script", uf = sr("IE_PROTO"), af = function() {
}, ff = function(t2) {
  return "<" + cf + ">" + t2 + "</" + cf + ">";
}, sf = function(t2) {
  t2.write(ff("")), t2.close();
  var e2 = t2.parentWindow.Object;
  return t2 = null, e2;
}, lf = function() {
  try {
    Ja = new ActiveXObject("htmlfile");
  } catch (t3) {
  }
  var t2, e2, r2;
  lf = "undefined" != typeof document ? document.domain && Ja ? sf(Ja) : (e2 = nf("iframe"), r2 = "java" + cf + ":", e2.style.display = "none", rf.appendChild(e2), e2.src = String(r2), (t2 = e2.contentWindow.document).open(), t2.write(ff("document.F=Object")), t2.close(), t2.F) : sf(Ja);
  for (var n2 = tf.length; n2--; )
    delete lf[of][tf[n2]];
  return lf();
};
ef[uf] = true;
var pf, vf, df = Object.create || function(t2, e2) {
  var r2;
  return null !== t2 ? (af[of] = Qa(t2), r2 = new af(), af[of] = null, r2[uf] = t2) : r2 = lf(), void 0 === e2 ? r2 : Za.f(r2, e2);
}, hf = f, yf = u.RegExp, gf = hf(function() {
  var t2 = yf(".", "s");
  return !(t2.dotAll && t2.exec("\n") && "s" === t2.flags);
}), mf = f, bf = u.RegExp, wf = mf(function() {
  var t2 = bf("(?<a>b)", "g");
  return "b" !== t2.exec("b").groups.a || "bc" !== "b".replace(t2, "$<a>c");
}), Of = d, Sf = P, jf = ka, xf = function() {
  var t2 = Ma(this), e2 = "";
  return t2.hasIndices && (e2 += "d"), t2.global && (e2 += "g"), t2.ignoreCase && (e2 += "i"), t2.multiline && (e2 += "m"), t2.dotAll && (e2 += "s"), t2.unicode && (e2 += "u"), t2.sticky && (e2 += "y"), e2;
}, Ef = Ua, Tf = Tt.exports, Pf = df, If = Rr.get, Rf = gf, Cf = wf, Lf = Tf("native-string-replace", String.prototype.replace), Af = RegExp.prototype.exec, _f = Af, kf = Sf("".charAt), Mf = Sf("".indexOf), Nf = Sf("".replace), Ff = Sf("".slice), Df = (vf = /b*/g, Of(Af, pf = /a/, "a"), Of(Af, vf, "a"), 0 !== pf.lastIndex || 0 !== vf.lastIndex), $f = Ef.BROKEN_CARET, Uf = void 0 !== /()??/.exec("")[1];
(Df || Uf || $f || Rf || Cf) && (_f = function(t2) {
  var e2, r2, n2, o2, i2, c2, u2, a2 = this, f2 = If(a2), s2 = jf(t2), l2 = f2.raw;
  if (l2)
    return l2.lastIndex = a2.lastIndex, e2 = Of(_f, l2, s2), a2.lastIndex = l2.lastIndex, e2;
  var p2 = f2.groups, v2 = $f && a2.sticky, d2 = Of(xf, a2), h2 = a2.source, y2 = 0, g2 = s2;
  if (v2 && (d2 = Nf(d2, "y", ""), -1 === Mf(d2, "g") && (d2 += "g"), g2 = Ff(s2, a2.lastIndex), a2.lastIndex > 0 && (!a2.multiline || a2.multiline && "\n" !== kf(s2, a2.lastIndex - 1)) && (h2 = "(?: " + h2 + ")", g2 = " " + g2, y2++), r2 = new RegExp("^(?:" + h2 + ")", d2)), Uf && (r2 = new RegExp("^" + h2 + "$(?!\\s)", d2)), Df && (n2 = a2.lastIndex), o2 = Of(Af, v2 ? r2 : a2, g2), v2 ? o2 ? (o2.input = Ff(o2.input, y2), o2[0] = Ff(o2[0], y2), o2.index = a2.lastIndex, a2.lastIndex += o2[0].length) : a2.lastIndex = 0 : Df && o2 && (a2.lastIndex = a2.global ? o2.index + o2[0].length : n2), Uf && o2 && o2.length > 1 && Of(Lf, o2[0], r2, function() {
    for (i2 = 1; i2 < arguments.length - 2; i2++)
      void 0 === arguments[i2] && (o2[i2] = void 0);
  }), o2 && p2)
    for (o2.groups = c2 = Pf(null), i2 = 0; i2 < p2.length; i2++)
      c2[(u2 = p2[i2])[0]] = o2[u2[1]];
  return o2;
});
var Gf = _f;
qn({ target: "RegExp", proto: true, forced: /./.exec !== Gf }, { exec: Gf });
var Wf = P, Vf = Ke.exports, Bf = Gf, zf = f, Hf = ee, qf = Ye, Yf = Hf("species"), Kf = RegExp.prototype, Xf = function(t2, e2, r2, n2) {
  var o2 = Hf(t2), i2 = !zf(function() {
    var e3 = {};
    return e3[o2] = function() {
      return 7;
    }, 7 != ""[t2](e3);
  }), c2 = i2 && !zf(function() {
    var e3 = false, r3 = /a/;
    return "split" === t2 && ((r3 = {}).constructor = {}, r3.constructor[Yf] = function() {
      return r3;
    }, r3.flags = "", r3[o2] = /./[o2]), r3.exec = function() {
      return e3 = true, null;
    }, r3[o2](""), !e3;
  });
  if (!i2 || !c2 || r2) {
    var u2 = Wf(/./[o2]), a2 = e2(o2, ""[t2], function(t3, e3, r3, n3, o3) {
      var c3 = Wf(t3), a3 = e3.exec;
      return a3 === Bf || a3 === Kf.exec ? i2 && !o3 ? { done: true, value: u2(e3, r3, n3) } : { done: true, value: c3(r3, e3, n3) } : { done: false };
    });
    Vf(String.prototype, t2, a2[0]), Vf(Kf, o2, a2[1]);
  }
  n2 && qf(Kf[o2], "sham", true);
}, Jf = P, Qf = Xr, Zf = ka, ts = $, es = Jf("".charAt), rs = Jf("".charCodeAt), ns = Jf("".slice), os = function(t2) {
  return function(e2, r2) {
    var n2, o2, i2 = Zf(ts(e2)), c2 = Qf(r2), u2 = i2.length;
    return c2 < 0 || c2 >= u2 ? t2 ? "" : void 0 : (n2 = rs(i2, c2)) < 55296 || n2 > 56319 || c2 + 1 === u2 || (o2 = rs(i2, c2 + 1)) < 56320 || o2 > 57343 ? t2 ? es(i2, c2) : n2 : t2 ? ns(i2, c2, c2 + 2) : o2 - 56320 + (n2 - 55296 << 10) + 65536;
  };
}, is = { codeAt: os(false), charAt: os(true) }.charAt, cs = function(t2, e2, r2) {
  return e2 + (r2 ? is(t2, e2).length : 1);
}, us = d, as = ke, fs = V, ss = L, ls = Gf, ps = u.TypeError, vs = function(t2, e2) {
  var r2 = t2.exec;
  if (fs(r2)) {
    var n2 = us(r2, t2, e2);
    return null !== n2 && as(n2), n2;
  }
  if ("RegExp" === ss(t2))
    return us(ls, t2, e2);
  throw ps("RegExp#exec called on incompatible receiver");
}, ds = d, hs = ke, ys = rn, gs = ka, ms = $, bs = Ot, ws = cs, Os = vs;
Xf("match", function(t2, e2, r2) {
  return [function(e3) {
    var r3 = ms(this), n2 = null == e3 ? void 0 : bs(e3, t2);
    return n2 ? ds(n2, e3, r3) : new RegExp(e3)[t2](gs(r3));
  }, function(t3) {
    var n2 = hs(this), o2 = gs(t3), i2 = r2(e2, n2, o2);
    if (i2.done)
      return i2.value;
    if (!n2.global)
      return Os(n2, o2);
    var c2 = n2.unicode;
    n2.lastIndex = 0;
    for (var u2, a2 = [], f2 = 0; null !== (u2 = Os(n2, o2)); ) {
      var s2 = gs(u2[0]);
      a2[f2] = s2, "" === s2 && (n2.lastIndex = ws(o2, ys(n2.lastIndex), c2)), f2++;
    }
    return 0 === f2 ? null : a2;
  }];
});
var Ss = P, js = Nt, xs = Math.floor, Es = Ss("".charAt), Ts = Ss("".replace), Ps = Ss("".slice), Is = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Rs = /\$([$&'`]|\d{1,2})/g, Cs = Jo, Ls = d, As = P, _s = Xf, ks = f, Ms = ke, Ns = V, Fs = Xr, Ds = rn, $s = ka, Us = $, Gs = cs, Ws = Ot, Vs = function(t2, e2, r2, n2, o2, i2) {
  var c2 = r2 + t2.length, u2 = n2.length, a2 = Rs;
  return void 0 !== o2 && (o2 = js(o2), a2 = Is), Ts(i2, a2, function(i3, a3) {
    var f2;
    switch (Es(a3, 0)) {
      case "$":
        return "$";
      case "&":
        return t2;
      case "`":
        return Ps(e2, 0, r2);
      case "'":
        return Ps(e2, c2);
      case "<":
        f2 = o2[Ps(a3, 1, -1)];
        break;
      default:
        var s2 = +a3;
        if (0 === s2)
          return i3;
        if (s2 > u2) {
          var l2 = xs(s2 / 10);
          return 0 === l2 ? i3 : l2 <= u2 ? void 0 === n2[l2 - 1] ? Es(a3, 1) : n2[l2 - 1] + Es(a3, 1) : i3;
        }
        f2 = n2[s2 - 1];
    }
    return void 0 === f2 ? "" : f2;
  });
}, Bs = vs, zs = ee("replace"), Hs = Math.max, qs = Math.min, Ys = As([].concat), Ks = As([].push), Xs = As("".indexOf), Js = As("".slice), Qs = "$0" === "a".replace(/./, "$0"), Zs = !!/./[zs] && "" === /./[zs]("a", "$0");
_s("replace", function(t2, e2, r2) {
  var n2 = Zs ? "$" : "$0";
  return [function(t3, r3) {
    var n3 = Us(this), o2 = null == t3 ? void 0 : Ws(t3, zs);
    return o2 ? Ls(o2, t3, n3, r3) : Ls(e2, $s(n3), t3, r3);
  }, function(t3, o2) {
    var i2 = Ms(this), c2 = $s(t3);
    if ("string" == typeof o2 && -1 === Xs(o2, n2) && -1 === Xs(o2, "$<")) {
      var u2 = r2(e2, i2, c2, o2);
      if (u2.done)
        return u2.value;
    }
    var a2 = Ns(o2);
    a2 || (o2 = $s(o2));
    var f2 = i2.global;
    if (f2) {
      var s2 = i2.unicode;
      i2.lastIndex = 0;
    }
    for (var l2 = []; ; ) {
      var p2 = Bs(i2, c2);
      if (null === p2)
        break;
      if (Ks(l2, p2), !f2)
        break;
      "" === $s(p2[0]) && (i2.lastIndex = Gs(c2, Ds(i2.lastIndex), s2));
    }
    for (var v2, d2 = "", h2 = 0, y2 = 0; y2 < l2.length; y2++) {
      for (var g2 = $s((p2 = l2[y2])[0]), m2 = Hs(qs(Fs(p2.index), c2.length), 0), b2 = [], w2 = 1; w2 < p2.length; w2++)
        Ks(b2, void 0 === (v2 = p2[w2]) ? v2 : String(v2));
      var O2 = p2.groups;
      if (a2) {
        var S2 = Ys([g2], b2, m2, c2);
        void 0 !== O2 && Ks(S2, O2);
        var j2 = $s(Cs(o2, void 0, S2));
      } else
        j2 = Vs(g2, c2, m2, b2, O2, o2);
      m2 >= h2 && (d2 += Js(c2, h2, m2) + j2, h2 = m2 + g2.length);
    }
    return d2 + Js(c2, h2);
  }];
}, !!ks(function() {
  var t2 = /./;
  return t2.exec = function() {
    var t3 = [];
    return t3.groups = { a: "7" }, t3;
  }, "7" !== "".replace(t2, "$<a>");
}) || !Qs || Zs);
var tl, el = z, rl = L, nl = ee("match"), ol = function(t2) {
  var e2;
  return el(t2) && (void 0 !== (e2 = t2[nl]) ? !!e2 : "RegExp" == rl(t2));
}, il = u.TypeError, cl = function(t2) {
  if (ol(t2))
    throw il("The method doesn't accept regular expressions");
  return t2;
}, ul = ee("match"), al = function(t2) {
  var e2 = /./;
  try {
    "/./"[t2](e2);
  } catch (r2) {
    try {
      return e2[ul] = false, "/./"[t2](e2);
    } catch (t3) {
    }
  }
  return false;
}, fl = qn, sl = P, ll = a.f, pl = rn, vl = ka, dl = cl, hl = $, yl = al, gl = sl("".startsWith), ml = sl("".slice), bl = Math.min, wl = yl("startsWith");
fl({ target: "String", proto: true, forced: !!(wl || (tl = ll(String.prototype, "startsWith"), !tl || tl.writable)) && !wl }, { startsWith: function(t2) {
  var e2 = vl(hl(this));
  dl(t2);
  var r2 = pl(bl(arguments.length > 1 ? arguments[1] : void 0, e2.length)), n2 = vl(t2);
  return gl ? gl(e2, n2, r2) : ml(e2, r2, r2 + n2.length) === n2;
} });
var Ol = df, Sl = Ie, jl = ee("unscopables"), xl = Array.prototype;
null == xl[jl] && Sl.f(xl, jl, { configurable: true, value: Ol(null) });
var El = sn.includes, Tl = function(t2) {
  xl[jl][t2] = true;
};
qn({ target: "Array", proto: true }, { includes: function(t2) {
  return El(this, t2, arguments.length > 1 ? arguments[1] : void 0);
} }), Tl("includes");
var Pl = qn, Il = P, Rl = a.f, Cl = rn, Ll = ka, Al = cl, _l = $, kl = al, Ml = Il("".endsWith), Nl = Il("".slice), Fl = Math.min, Dl = kl("endsWith"), $l = !Dl && !!function() {
  var t2 = Rl(String.prototype, "endsWith");
  return t2 && !t2.writable;
}();
function Ul(t2, e2, r2, n2) {
  return new (r2 || (r2 = Promise))(function(o2, i2) {
    function c2(t3) {
      try {
        a2(n2.next(t3));
      } catch (t4) {
        i2(t4);
      }
    }
    function u2(t3) {
      try {
        a2(n2.throw(t3));
      } catch (t4) {
        i2(t4);
      }
    }
    function a2(t3) {
      var e3;
      t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof r2 ? e3 : new r2(function(t4) {
        t4(e3);
      })).then(c2, u2);
    }
    a2((n2 = n2.apply(t2, e2 || [])).next());
  });
}
Pl({ target: "String", proto: true, forced: !$l && !Dl }, { endsWith: function(t2) {
  var e2 = Ll(_l(this));
  Al(t2);
  var r2 = arguments.length > 1 ? arguments[1] : void 0, n2 = e2.length, o2 = void 0 === r2 ? n2 : Fl(Cl(r2), n2), i2 = Ll(t2);
  return Ml ? Ml(e2, i2, o2) : Nl(e2, o2 - i2.length, o2) === i2;
} });
const Gl = (t2) => {
  const e2 = t2.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
  return e2 && { href: t2, protocol: e2[1], host: e2[2], hostname: e2[3], port: e2[4], pathname: e2[5], search: e2[6], hash: e2[7] };
}, Wl = (t2) => Ul(void 0, void 0, void 0, function* () {
  mammoth;
  const e2 = yield ((t3) => new Promise((e3, r2) => {
    try {
      const r3 = new XMLHttpRequest();
      r3.open("GET", t3, true), r3.responseType = "blob", r3.onload = () => {
        const t4 = new FileReader();
        t4.readAsArrayBuffer(r3.response), t4.onloadend = () => {
          e3(t4.result);
        };
      }, r3.send();
    } catch (e4) {
      r2(`error while retrieving file ${t3}.`);
    }
  }))(t2);
  return (yield mammoth.convertToHtml({ arrayBuffer: e2 })).value;
}), Vl = () => {
  let t2 = null, e2 = 0;
  return { subscribe: (r2, n2 = 3e3, o2 = 5) => {
    if (!Bl(r2))
      return t2 = setInterval(() => {
        e2++, e2 >= o2 && clearInterval(t2), ((t3) => {
          if (t3) {
            const e3 = t3.src;
            t3.src = "about:blank", setTimeout(() => {
              t3 && (t3.src = e3);
            }, 100);
          }
        })(r2);
      }, n2), t2;
    t2 && clearInterval(t2);
  }, unsubscribe: () => {
    t2 && clearInterval(t2);
  } };
}, Bl = (t2) => {
  var e2;
  let r2 = false;
  try {
    r2 = zl() ? !(null === (e2 = null == t2 ? void 0 : t2.contentWindow) || void 0 === e2 ? void 0 : e2.document) : !(null == t2 ? void 0 : t2.contentDocument);
  } catch (t3) {
  }
  return r2;
}, zl = () => /MSIE (\d+\.\d+);/.test(navigator.userAgent) || navigator.userAgent.indexOf("Trident/") > -1, Hl = (t2, e2 = "google", r2 = "", n2 = "") => {
  switch (e2) {
    case "google":
      n2 = "https://docs.google.com/gview?url=%URL%&embedded=true";
      break;
    case "office":
      n2 = "https://view.officeapps.live.com/op/embed.aspx?src=%URL%";
      break;
    case "pdf":
      n2 = "";
  }
  const o2 = "google" === e2 || "office" === e2 || "url" === e2, i2 = (null == t2 ? void 0 : t2.indexOf("/")) ? encodeURIComponent(t2) : t2;
  let c2 = n2 ? n2.replace("%URL%", i2) : t2;
  if (r2 && o2 && "url" !== e2) {
    c2 = `${c2}${r2.startsWith("&") ? "" : "&"}${r2}`;
  }
  return { url: c2, externalViewer: o2 };
};
var ql = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, Yl = function(t2) {
  return t2 && t2.Math == Math && t2;
}, Kl = Yl("object" == typeof globalThis && globalThis) || Yl("object" == typeof window && window) || Yl("object" == typeof self && self) || Yl("object" == typeof ql && ql) || function() {
  return this;
}() || Function("return this")(), Xl = function(t2) {
  try {
    return !!t2();
  } catch (t3) {
    return true;
  }
}, Jl = !Xl(function() {
  var t2 = (function() {
  }).bind();
  return "function" != typeof t2 || t2.hasOwnProperty("prototype");
}), Ql = Jl, Zl = Function.prototype, tp = Zl.bind, ep = Zl.call, rp = Ql && tp.bind(ep, ep), np = Ql ? function(t2) {
  return t2 && rp(t2);
} : function(t2) {
  return t2 && function() {
    return ep.apply(t2, arguments);
  };
}, op = np, ip = op({}.toString), cp = op("".slice), up = np, ap = Xl, fp = function(t2) {
  return cp(ip(t2), 8, -1);
}, sp = Kl.Object, lp = up("".split), pp = ap(function() {
  return !sp("z").propertyIsEnumerable(0);
}) ? function(t2) {
  return "String" == fp(t2) ? lp(t2, "") : sp(t2);
} : sp, vp = Kl.TypeError, dp = function(t2) {
  if (null == t2)
    throw vp("Can't call method on " + t2);
  return t2;
}, hp = pp, yp = dp, gp = function(t2) {
  return hp(yp(t2));
}, mp = { exports: {} }, bp = Kl, wp = Object.defineProperty, Op = function(t2, e2) {
  try {
    wp(bp, t2, { value: e2, configurable: true, writable: true });
  } catch (r2) {
    bp[t2] = e2;
  }
  return e2;
}, Sp = Op, jp = "__core-js_shared__", xp = Kl[jp] || Sp(jp, {}), Ep = xp;
(mp.exports = function(t2, e2) {
  return Ep[t2] || (Ep[t2] = void 0 !== e2 ? e2 : {});
})("versions", []).push({ version: "3.22.2", mode: "global", copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE", source: "https://github.com/zloirock/core-js" });
var Tp, Pp, Ip = dp, Rp = Kl.Object, Cp = function(t2) {
  return Rp(Ip(t2));
}, Lp = Cp, Ap = np({}.hasOwnProperty), _p = Object.hasOwn || function(t2, e2) {
  return Ap(Lp(t2), e2);
}, kp = np, Mp = 0, Np = Math.random(), Fp = kp(1 .toString), Dp = function(t2) {
  return "Symbol(" + (void 0 === t2 ? "" : t2) + ")_" + Fp(++Mp + Np, 36);
}, $p = function(t2) {
  return "function" == typeof t2;
}, Up = Kl, Gp = $p, Wp = function(t2, e2) {
  return arguments.length < 2 ? (r2 = Up[t2], Gp(r2) ? r2 : void 0) : Up[t2] && Up[t2][e2];
  var r2;
}, Vp = Kl, Bp = Wp("navigator", "userAgent") || "", zp = Vp.process, Hp = Vp.Deno, qp = zp && zp.versions || Hp && Hp.version, Yp = qp && qp.v8;
Yp && (Pp = (Tp = Yp.split("."))[0] > 0 && Tp[0] < 4 ? 1 : +(Tp[0] + Tp[1])), !Pp && Bp && (!(Tp = Bp.match(/Edge\/(\d+)/)) || Tp[1] >= 74) && (Tp = Bp.match(/Chrome\/(\d+)/)) && (Pp = +Tp[1]);
var Kp = Pp, Xp = Xl, Jp = !!Object.getOwnPropertySymbols && !Xp(function() {
  var t2 = Symbol();
  return !String(t2) || !(Object(t2) instanceof Symbol) || !Symbol.sham && Kp && Kp < 41;
}), Qp = Jp && !Symbol.sham && "symbol" == typeof Symbol.iterator, Zp = Kl, tv = mp.exports, ev = _p, rv = Dp, nv = Jp, ov = Qp, iv = tv("wks"), cv = Zp.Symbol, uv = cv && cv.for, av = ov ? cv : cv && cv.withoutSetter || rv, fv = function(t2) {
  if (!ev(iv, t2) || !nv && "string" != typeof iv[t2]) {
    var e2 = "Symbol." + t2;
    nv && ev(cv, t2) ? iv[t2] = cv[t2] : iv[t2] = ov && uv ? uv(e2) : av(e2);
  }
  return iv[t2];
}, sv = $p, lv = function(t2) {
  return "object" == typeof t2 ? null !== t2 : sv(t2);
}, pv = Kl, vv = lv, dv = pv.String, hv = pv.TypeError, yv = function(t2) {
  if (vv(t2))
    return t2;
  throw hv(dv(t2) + " is not an object");
}, gv = {}, mv = !Xl(function() {
  return 7 != Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1];
}), bv = mv && Xl(function() {
  return 42 != Object.defineProperty(function() {
  }, "prototype", { value: 42, writable: false }).prototype;
}), wv = {}, Ov = lv, Sv = Kl.document, jv = Ov(Sv) && Ov(Sv.createElement), xv = function(t2) {
  return jv ? Sv.createElement(t2) : {};
}, Ev = xv, Tv = !mv && !Xl(function() {
  return 7 != Object.defineProperty(Ev("div"), "a", { get: function() {
    return 7;
  } }).a;
}), Pv = Jl, Iv = Function.prototype.call, Rv = Pv ? Iv.bind(Iv) : function() {
  return Iv.apply(Iv, arguments);
}, Cv = np({}.isPrototypeOf), Lv = Wp, Av = $p, _v = Cv, kv = Qp, Mv = Kl.Object, Nv = kv ? function(t2) {
  return "symbol" == typeof t2;
} : function(t2) {
  var e2 = Lv("Symbol");
  return Av(e2) && _v(e2.prototype, Mv(t2));
}, Fv = Kl.String, Dv = $p, $v = function(t2) {
  try {
    return Fv(t2);
  } catch (t3) {
    return "Object";
  }
}, Uv = Kl.TypeError, Gv = function(t2) {
  if (Dv(t2))
    return t2;
  throw Uv($v(t2) + " is not a function");
}, Wv = Rv, Vv = $p, Bv = lv, zv = Kl.TypeError, Hv = Rv, qv = lv, Yv = Nv, Kv = function(t2, e2) {
  var r2 = t2[e2];
  return null == r2 ? void 0 : Gv(r2);
}, Xv = function(t2, e2) {
  var r2, n2;
  if ("string" === e2 && Vv(r2 = t2.toString) && !Bv(n2 = Wv(r2, t2)))
    return n2;
  if (Vv(r2 = t2.valueOf) && !Bv(n2 = Wv(r2, t2)))
    return n2;
  if ("string" !== e2 && Vv(r2 = t2.toString) && !Bv(n2 = Wv(r2, t2)))
    return n2;
  throw zv("Can't convert object to primitive value");
}, Jv = fv, Qv = Kl.TypeError, Zv = Jv("toPrimitive"), td = function(t2, e2) {
  if (!qv(t2) || Yv(t2))
    return t2;
  var r2, n2 = Kv(t2, Zv);
  if (n2) {
    if (void 0 === e2 && (e2 = "default"), r2 = Hv(n2, t2, e2), !qv(r2) || Yv(r2))
      return r2;
    throw Qv("Can't convert object to primitive value");
  }
  return void 0 === e2 && (e2 = "number"), Xv(t2, e2);
}, ed = Nv, rd = function(t2) {
  var e2 = td(t2, "string");
  return ed(e2) ? e2 : e2 + "";
}, nd = mv, od = Tv, id = bv, cd = yv, ud = rd, ad = Kl.TypeError, fd = Object.defineProperty, sd = Object.getOwnPropertyDescriptor, ld = "enumerable", pd = "configurable", vd = "writable";
wv.f = nd ? id ? function(t2, e2, r2) {
  if (cd(t2), e2 = ud(e2), cd(r2), "function" == typeof t2 && "prototype" === e2 && "value" in r2 && vd in r2 && !r2[vd]) {
    var n2 = sd(t2, e2);
    n2 && n2[vd] && (t2[e2] = r2.value, r2 = { configurable: pd in r2 ? r2[pd] : n2[pd], enumerable: ld in r2 ? r2[ld] : n2[ld], writable: false });
  }
  return fd(t2, e2, r2);
} : fd : function(t2, e2, r2) {
  if (cd(t2), e2 = ud(e2), cd(r2), od)
    try {
      return fd(t2, e2, r2);
    } catch (t3) {
    }
  if ("get" in r2 || "set" in r2)
    throw ad("Accessors not supported");
  return "value" in r2 && (t2[e2] = r2.value), t2;
};
var dd = Math.ceil, hd = Math.floor, yd = function(t2) {
  var e2 = +t2;
  return e2 != e2 || 0 === e2 ? 0 : (e2 > 0 ? hd : dd)(e2);
}, gd = yd, md = Math.max, bd = Math.min, wd = yd, Od = Math.min, Sd = function(t2) {
  return t2 > 0 ? Od(wd(t2), 9007199254740991) : 0;
}, jd = gp, xd = function(t2, e2) {
  var r2 = gd(t2);
  return r2 < 0 ? md(r2 + e2, 0) : bd(r2, e2);
}, Ed = function(t2) {
  return Sd(t2.length);
}, Td = function(t2) {
  return function(e2, r2, n2) {
    var o2, i2 = jd(e2), c2 = Ed(i2), u2 = xd(n2, c2);
    if (t2 && r2 != r2) {
      for (; c2 > u2; )
        if ((o2 = i2[u2++]) != o2)
          return true;
    } else
      for (; c2 > u2; u2++)
        if ((t2 || u2 in i2) && i2[u2] === r2)
          return t2 || u2 || 0;
    return !t2 && -1;
  };
}, Pd = { includes: Td(true), indexOf: Td(false) }, Id = {}, Rd = _p, Cd = gp, Ld = Pd.indexOf, Ad = Id, _d = np([].push), kd = function(t2, e2) {
  var r2, n2 = Cd(t2), o2 = 0, i2 = [];
  for (r2 in n2)
    !Rd(Ad, r2) && Rd(n2, r2) && _d(i2, r2);
  for (; e2.length > o2; )
    Rd(n2, r2 = e2[o2++]) && (~Ld(i2, r2) || _d(i2, r2));
  return i2;
}, Md = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], Nd = kd, Fd = Md, Dd = Object.keys || function(t2) {
  return Nd(t2, Fd);
}, $d = mv, Ud = bv, Gd = wv, Wd = yv, Vd = gp, Bd = Dd;
gv.f = $d && !Ud ? Object.defineProperties : function(t2, e2) {
  Wd(t2);
  for (var r2, n2 = Vd(e2), o2 = Bd(e2), i2 = o2.length, c2 = 0; i2 > c2; )
    Gd.f(t2, r2 = o2[c2++], n2[r2]);
  return t2;
};
var zd, Hd = Wp("document", "documentElement"), qd = mp.exports, Yd = Dp, Kd = qd("keys"), Xd = function(t2) {
  return Kd[t2] || (Kd[t2] = Yd(t2));
}, Jd = yv, Qd = gv, Zd = Md, th = Id, eh = Hd, rh = xv, nh = "prototype", oh = "script", ih = Xd("IE_PROTO"), ch = function() {
}, uh = function(t2) {
  return "<" + oh + ">" + t2 + "</" + oh + ">";
}, ah = function(t2) {
  t2.write(uh("")), t2.close();
  var e2 = t2.parentWindow.Object;
  return t2 = null, e2;
}, fh = function() {
  try {
    zd = new ActiveXObject("htmlfile");
  } catch (t3) {
  }
  var t2, e2, r2;
  fh = "undefined" != typeof document ? document.domain && zd ? ah(zd) : (e2 = rh("iframe"), r2 = "java" + oh + ":", e2.style.display = "none", eh.appendChild(e2), e2.src = String(r2), (t2 = e2.contentWindow.document).open(), t2.write(uh("document.F=Object")), t2.close(), t2.F) : ah(zd);
  for (var n2 = Zd.length; n2--; )
    delete fh[nh][Zd[n2]];
  return fh();
};
th[ih] = true;
var sh = Object.create || function(t2, e2) {
  var r2;
  return null !== t2 ? (ch[nh] = Jd(t2), r2 = new ch(), ch[nh] = null, r2[ih] = t2) : r2 = fh(), void 0 === e2 ? r2 : Qd.f(r2, e2);
}, lh = sh, ph = wv, vh = fv("unscopables"), dh = Array.prototype;
null == dh[vh] && ph.f(dh, vh, { configurable: true, value: lh(null) });
var hh = {}, yh = $p, gh = xp, mh = np(Function.toString);
yh(gh.inspectSource) || (gh.inspectSource = function(t2) {
  return mh(t2);
});
var bh, wh, Oh, Sh = gh.inspectSource, jh = $p, xh = Sh, Eh = Kl.WeakMap, Th = jh(Eh) && /native code/.test(xh(Eh)), Ph = function(t2, e2) {
  return { enumerable: !(1 & t2), configurable: !(2 & t2), writable: !(4 & t2), value: e2 };
}, Ih = wv, Rh = Ph, Ch = mv ? function(t2, e2, r2) {
  return Ih.f(t2, e2, Rh(1, r2));
} : function(t2, e2, r2) {
  return t2[e2] = r2, t2;
}, Lh = Th, Ah = Kl, _h = np, kh = lv, Mh = Ch, Nh = _p, Fh = xp, Dh = Xd, $h = Id, Uh = "Object already initialized", Gh = Ah.TypeError, Wh = Ah.WeakMap;
if (Lh || Fh.state) {
  var Vh = Fh.state || (Fh.state = new Wh()), Bh = _h(Vh.get), zh = _h(Vh.has), Hh = _h(Vh.set);
  bh = function(t2, e2) {
    if (zh(Vh, t2))
      throw new Gh(Uh);
    return e2.facade = t2, Hh(Vh, t2, e2), e2;
  }, wh = function(t2) {
    return Bh(Vh, t2) || {};
  }, Oh = function(t2) {
    return zh(Vh, t2);
  };
} else {
  var qh = Dh("state");
  $h[qh] = true, bh = function(t2, e2) {
    if (Nh(t2, qh))
      throw new Gh(Uh);
    return e2.facade = t2, Mh(t2, qh, e2), e2;
  }, wh = function(t2) {
    return Nh(t2, qh) ? t2[qh] : {};
  }, Oh = function(t2) {
    return Nh(t2, qh);
  };
}
var Yh = { set: bh, get: wh, has: Oh, enforce: function(t2) {
  return Oh(t2) ? wh(t2) : bh(t2, {});
}, getterFor: function(t2) {
  return function(e2) {
    var r2;
    if (!kh(e2) || (r2 = wh(e2)).type !== t2)
      throw Gh("Incompatible receiver, " + t2 + " required");
    return r2;
  };
} }, Kh = {}, Xh = {}, Jh = {}.propertyIsEnumerable, Qh = Object.getOwnPropertyDescriptor, Zh = Qh && !Jh.call({ 1: 2 }, 1);
Xh.f = Zh ? function(t2) {
  var e2 = Qh(this, t2);
  return !!e2 && e2.enumerable;
} : Jh;
var ty = mv, ey = Rv, ry = Xh, ny = Ph, oy = gp, iy = rd, cy = _p, uy = Tv, ay = Object.getOwnPropertyDescriptor;
Kh.f = ty ? ay : function(t2, e2) {
  if (t2 = oy(t2), e2 = iy(e2), uy)
    try {
      return ay(t2, e2);
    } catch (t3) {
    }
  if (cy(t2, e2))
    return ny(!ey(ry.f, t2, e2), t2[e2]);
};
var fy = { exports: {} }, sy = mv, ly = _p, py = Function.prototype, vy = sy && Object.getOwnPropertyDescriptor, dy = ly(py, "name"), hy = { EXISTS: dy, PROPER: dy && "something" === (function() {
}).name, CONFIGURABLE: dy && (!sy || sy && vy(py, "name").configurable) }, yy = Kl, gy = $p, my = _p, by = Ch, wy = Op, Oy = Sh, Sy = hy.CONFIGURABLE, jy = Yh.get, xy = Yh.enforce, Ey = String(String).split("String");
(fy.exports = function(t2, e2, r2, n2) {
  var o2, i2 = !!n2 && !!n2.unsafe, c2 = !!n2 && !!n2.enumerable, u2 = !!n2 && !!n2.noTargetGet, a2 = n2 && void 0 !== n2.name ? n2.name : e2;
  gy(r2) && ("Symbol(" === String(a2).slice(0, 7) && (a2 = "[" + String(a2).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!my(r2, "name") || Sy && r2.name !== a2) && by(r2, "name", a2), (o2 = xy(r2)).source || (o2.source = Ey.join("string" == typeof a2 ? a2 : ""))), t2 !== yy ? (i2 ? !u2 && t2[e2] && (c2 = true) : delete t2[e2], c2 ? t2[e2] = r2 : by(t2, e2, r2)) : c2 ? t2[e2] = r2 : wy(e2, r2);
})(Function.prototype, "toString", function() {
  return gy(this) && jy(this).source || Oy(this);
});
var Ty = {}, Py = kd, Iy = Md.concat("length", "prototype");
Ty.f = Object.getOwnPropertyNames || function(t2) {
  return Py(t2, Iy);
};
var Ry = {};
Ry.f = Object.getOwnPropertySymbols;
var Cy, Ly, Ay, _y = Wp, ky = Ty, My = Ry, Ny = yv, Fy = np([].concat), Dy = _y("Reflect", "ownKeys") || function(t2) {
  var e2 = ky.f(Ny(t2)), r2 = My.f;
  return r2 ? Fy(e2, r2(t2)) : e2;
}, $y = _p, Uy = Dy, Gy = Kh, Wy = wv, Vy = Xl, By = $p, zy = /#|\.prototype\./, Hy = function(t2, e2) {
  var r2 = Yy[qy(t2)];
  return r2 == Xy || r2 != Ky && (By(e2) ? Vy(e2) : !!e2);
}, qy = Hy.normalize = function(t2) {
  return String(t2).replace(zy, ".").toLowerCase();
}, Yy = Hy.data = {}, Ky = Hy.NATIVE = "N", Xy = Hy.POLYFILL = "P", Jy = Hy, Qy = Kl, Zy = Kh.f, tg = Ch, eg = fy.exports, rg = Op, ng = function(t2, e2, r2) {
  for (var n2 = Uy(e2), o2 = Wy.f, i2 = Gy.f, c2 = 0; c2 < n2.length; c2++) {
    var u2 = n2[c2];
    $y(t2, u2) || r2 && $y(r2, u2) || o2(t2, u2, i2(e2, u2));
  }
}, og = Jy, ig = function(t2, e2) {
  var r2, n2, o2, i2, c2, u2 = t2.target, a2 = t2.global, f2 = t2.stat;
  if (r2 = a2 ? Qy : f2 ? Qy[u2] || rg(u2, {}) : (Qy[u2] || {}).prototype)
    for (n2 in e2) {
      if (i2 = e2[n2], o2 = t2.noTargetGet ? (c2 = Zy(r2, n2)) && c2.value : r2[n2], !og(a2 ? n2 : u2 + (f2 ? "." : "#") + n2, t2.forced) && void 0 !== o2) {
        if (typeof i2 == typeof o2)
          continue;
        ng(i2, o2);
      }
      (t2.sham || o2 && o2.sham) && tg(i2, "sham", true), eg(r2, n2, i2, t2);
    }
}, cg = !Xl(function() {
  function t2() {
  }
  return t2.prototype.constructor = null, Object.getPrototypeOf(new t2()) !== t2.prototype;
}), ug = Kl, ag = _p, fg = $p, sg = Cp, lg = cg, pg = Xd("IE_PROTO"), vg = ug.Object, dg = vg.prototype, hg = lg ? vg.getPrototypeOf : function(t2) {
  var e2 = sg(t2);
  if (ag(e2, pg))
    return e2[pg];
  var r2 = e2.constructor;
  return fg(r2) && e2 instanceof r2 ? r2.prototype : e2 instanceof vg ? dg : null;
}, yg = Xl, gg = $p, mg = hg, bg = fy.exports, wg = fv("iterator"), Og = false;
[].keys && ("next" in (Ay = [].keys()) ? (Ly = mg(mg(Ay))) !== Object.prototype && (Cy = Ly) : Og = true);
var Sg = null == Cy || yg(function() {
  var t2 = {};
  return Cy[wg].call(t2) !== t2;
});
Sg && (Cy = {}), gg(Cy[wg]) || bg(Cy, wg, function() {
  return this;
});
var jg = { IteratorPrototype: Cy, BUGGY_SAFARI_ITERATORS: Og }, xg = wv.f, Eg = _p, Tg = fv("toStringTag"), Pg = function(t2, e2, r2) {
  t2 && !r2 && (t2 = t2.prototype), t2 && !Eg(t2, Tg) && xg(t2, Tg, { configurable: true, value: e2 });
}, Ig = jg.IteratorPrototype, Rg = sh, Cg = Ph, Lg = Pg, Ag = hh, _g = function() {
  return this;
}, kg = Kl, Mg = $p, Ng = kg.String, Fg = kg.TypeError, Dg = np, $g = yv, Ug = function(t2) {
  if ("object" == typeof t2 || Mg(t2))
    return t2;
  throw Fg("Can't set " + Ng(t2) + " as a prototype");
}, Gg = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  var t2, e2 = false, r2 = {};
  try {
    (t2 = Dg(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r2, []), e2 = r2 instanceof Array;
  } catch (t3) {
  }
  return function(r3, n2) {
    return $g(r3), Ug(n2), e2 ? t2(r3, n2) : r3.__proto__ = n2, r3;
  };
}() : void 0), Wg = ig, Vg = Rv, Bg = hy, zg = $p, Hg = function(t2, e2, r2, n2) {
  var o2 = e2 + " Iterator";
  return t2.prototype = Rg(Ig, { next: Cg(+!n2, r2) }), Lg(t2, o2, false), Ag[o2] = _g, t2;
}, qg = hg, Yg = Gg, Kg = Pg, Xg = Ch, Jg = fy.exports, Qg = hh, Zg = Bg.PROPER, tm = Bg.CONFIGURABLE, em = jg.IteratorPrototype, rm = jg.BUGGY_SAFARI_ITERATORS, nm = fv("iterator"), om = "keys", im = "values", cm = "entries", um = function() {
  return this;
}, am = gp, fm = function(t2) {
  dh[vh][t2] = true;
}, sm = hh, lm = Yh, pm = wv.f, vm = function(t2, e2, r2, n2, o2, i2, c2) {
  Hg(r2, e2, n2);
  var u2, a2, f2, s2 = function(t3) {
    if (t3 === o2 && h2)
      return h2;
    if (!rm && t3 in v2)
      return v2[t3];
    switch (t3) {
      case om:
      case im:
      case cm:
        return function() {
          return new r2(this, t3);
        };
    }
    return function() {
      return new r2(this);
    };
  }, l2 = e2 + " Iterator", p2 = false, v2 = t2.prototype, d2 = v2[nm] || v2["@@iterator"] || o2 && v2[o2], h2 = !rm && d2 || s2(o2), y2 = "Array" == e2 && v2.entries || d2;
  if (y2 && (u2 = qg(y2.call(new t2()))) !== Object.prototype && u2.next && (qg(u2) !== em && (Yg ? Yg(u2, em) : zg(u2[nm]) || Jg(u2, nm, um)), Kg(u2, l2, true)), Zg && o2 == im && d2 && d2.name !== im && (tm ? Xg(v2, "name", im) : (p2 = true, h2 = function() {
    return Vg(d2, this);
  })), o2)
    if (a2 = { values: s2(im), keys: i2 ? h2 : s2(om), entries: s2(cm) }, c2)
      for (f2 in a2)
        (rm || p2 || !(f2 in v2)) && Jg(v2, f2, a2[f2]);
    else
      Wg({ target: e2, proto: true, forced: rm || p2 }, a2);
  return v2[nm] !== h2 && Jg(v2, nm, h2, { name: o2 }), Qg[e2] = h2, a2;
}, dm = mv, hm = "Array Iterator", ym = lm.set, gm = lm.getterFor(hm), mm = vm(Array, "Array", function(t2, e2) {
  ym(this, { type: hm, target: am(t2), index: 0, kind: e2 });
}, function() {
  var t2 = gm(this), e2 = t2.target, r2 = t2.kind, n2 = t2.index++;
  return !e2 || n2 >= e2.length ? (t2.target = void 0, { value: void 0, done: true }) : "keys" == r2 ? { value: n2, done: false } : "values" == r2 ? { value: e2[n2], done: false } : { value: [n2, e2[n2]], done: false };
}, "values"), bm = sm.Arguments = sm.Array;
if (fm("keys"), fm("values"), fm("entries"), dm && "values" !== bm.name)
  try {
    pm(bm, "name", { value: "values" });
  } catch (t2) {
  }
var wm = xv("span").classList, Om = wm && wm.constructor && wm.constructor.prototype, Sm = Om === Object.prototype ? void 0 : Om, jm = Kl, xm = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, Em = Sm, Tm = mm, Pm = Ch, Im = fv, Rm = Im("iterator"), Cm = Im("toStringTag"), Lm = Tm.values, Am = function(t2, e2) {
  if (t2) {
    if (t2[Rm] !== Lm)
      try {
        Pm(t2, Rm, Lm);
      } catch (e3) {
        t2[Rm] = Lm;
      }
    if (t2[Cm] || Pm(t2, Cm, e2), xm[e2]) {
      for (var r2 in Tm)
        if (t2[r2] !== Tm[r2])
          try {
            Pm(t2, r2, Tm[r2]);
          } catch (e3) {
            t2[r2] = Tm[r2];
          }
    }
  }
};
for (var _m in xm)
  Am(jm[_m] && jm[_m].prototype, _m);
Am(Em, "DOMTokenList");
var km = mv, Mm = np, Nm = Rv, Fm = Xl, Dm = Dd, $m = Ry, Um = Xh, Gm = Cp, Wm = pp, Vm = Object.assign, Bm = Object.defineProperty, zm = Mm([].concat), Hm = !Vm || Fm(function() {
  if (km && 1 !== Vm({ b: 1 }, Vm(Bm({}, "a", { enumerable: true, get: function() {
    Bm(this, "b", { value: 3, enumerable: false });
  } }), { b: 2 })).b)
    return true;
  var t2 = {}, e2 = {}, r2 = Symbol(), n2 = "abcdefghijklmnopqrst";
  return t2[r2] = 7, n2.split("").forEach(function(t3) {
    e2[t3] = t3;
  }), 7 != Vm({}, t2)[r2] || Dm(Vm({}, e2)).join("") != n2;
}) ? function(t2, e2) {
  for (var r2 = Gm(t2), n2 = arguments.length, o2 = 1, i2 = $m.f, c2 = Um.f; n2 > o2; )
    for (var u2, a2 = Wm(arguments[o2++]), f2 = i2 ? zm(Dm(a2), i2(a2)) : Dm(a2), s2 = f2.length, l2 = 0; s2 > l2; )
      u2 = f2[l2++], km && !Nm(c2, a2, u2) || (r2[u2] = a2[u2]);
  return r2;
} : Vm, qm = Hm;
function Ym(t2, e2, r2, n2) {
  return new (r2 || (r2 = Promise))(function(o2, i2) {
    function c2(t3) {
      try {
        a2(n2.next(t3));
      } catch (t4) {
        i2(t4);
      }
    }
    function u2(t3) {
      try {
        a2(n2.throw(t3));
      } catch (t4) {
        i2(t4);
      }
    }
    function a2(t3) {
      var e3;
      t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof r2 ? e3 : new r2(function(t4) {
        t4(e3);
      })).then(c2, u2);
    }
    a2((n2 = n2.apply(t2, e2 || [])).next());
  });
}
ig({ target: "Object", stat: true, forced: Object.assign !== qm }, { assign: qm });
const Km = { loaded: () => {
}, googleCheckContentLoaded: true, googleCheckInterval: 3e3, queryParams: "", url: "", overrideLocalhost: "", googleMaxChecks: 5, viewer: "google", viewerUrl: "", style: { width: "100%", height: "100%" }, className: "" }, Xm = (i2) => {
  var c2, u2, a2, f2, s2;
  const l2 = r(null), [p2, v2] = n({ url: "", isSwitching: false, externalViewer: true, docHtml: { __html: "" } }), d2 = r(), h2 = r(), y2 = (t2) => Ym(void 0, void 0, void 0, function* () {
    if (h2.current) {
      const e2 = l2.current;
      d2 && d2.current && d2.current.unsubscribe(), "google" === h2.current.viewer && true === h2.current.googleCheckContentLoaded && g2(e2, t2.url, h2.current.googleCheckInterval, h2.current.googleMaxChecks);
    }
  });
  o(() => {
    let t2;
    return p2.isSwitching && (v2((t3) => Object.assign(Object.assign({}, t3), { isSwitching: false })), t2 = setTimeout(() => {
      y2({ url: p2.url, externalViewer: p2.externalViewer });
    }, 500)), () => {
      t2 && clearTimeout(t2);
    };
  }, [p2.isSwitching]), o(() => {
    h2.current = Object.assign(Object.assign({}, Km), i2);
    let t2 = Hl(h2.current.url, h2.current.viewer, h2.current.queryParams, h2.current.viewerUrl);
    if (t2.externalViewer && h2.current.overrideLocalhost && ((t3) => {
      const e2 = Gl(t3), r2 = (null == e2 ? void 0 : e2.hostname) || "";
      return ["localhost", "127.0.0.1", "", "::1"].includes(r2) || r2.startsWith("192.168.") || r2.startsWith("10.0.") || r2.endsWith(".local");
    })(h2.current.url)) {
      const e2 = ((t3, e3) => {
        const r2 = Gl(t3), n2 = Gl(e3);
        return r2 && n2 ? t3.replace(r2.port ? `${r2.hostname}:${r2.port}` : r2.hostname, n2.port ? `${n2.hostname}:${n2.port}` : n2.hostname) : t3;
      })(h2.current.url, h2.current.overrideLocalhost);
      t2 = Hl(e2, h2.current.viewer, h2.current.queryParams, h2.current.viewerUrl);
    }
    if (v2({ url: t2.url, externalViewer: t2.externalViewer, isSwitching: false, docHtml: { __html: "" } }), l2 && l2.current) {
      const e2 = l2.current;
      e2.src && e2.src !== `${window.location.protocol}//${window.location.host}/` && e2.src !== t2.url ? v2((t3) => Object.assign(Object.assign({}, t3), { isSwitching: true })) : y2(t2);
    } else if ("mammoth" === h2.current.viewer) {
      (() => Ym(void 0, void 0, void 0, function* () {
        const e2 = { __html: yield Wl(t2.url) };
        v2({ url: "", docHtml: e2, isSwitching: false, externalViewer: false });
      }))();
    }
    return () => {
      d2 && d2.current && d2.current.unsubscribe();
    };
  }, [i2]);
  const g2 = (t2, e2, r2, n2) => {
    d2.current = Vl(), d2.current.subscribe(t2, r2, n2);
  };
  return p2.isSwitching ? null : p2.externalViewer ? t("iframe", { style: null === (c2 = h2.current) || void 0 === c2 ? void 0 : c2.style, className: null === (u2 = h2.current) || void 0 === u2 ? void 0 : u2.className, ref: l2, onLoad: () => {
    h2.current && l2 && null !== l2.current && Bl(l2.current) && (h2.current.loaded && h2.current.loaded(), d2.current && d2.current.unsubscribe());
  }, id: "iframe", title: "iframe", frameBorder: "0", src: p2.url }) : "pdf" !== (null === (a2 = h2.current) || void 0 === a2 ? void 0 : a2.viewer) ? t("div", { dangerouslySetInnerHTML: p2.docHtml }) : p2.url ? t("object", Object.assign({ data: p2.url, style: null === (f2 = h2.current) || void 0 === f2 ? void 0 : f2.style, className: null === (s2 = h2.current) || void 0 === s2 ? void 0 : s2.className, type: "application/pdf", width: "100%", height: "100%" }, { children: e("p", { children: ["Your browser does not support PDFs.", t("a", Object.assign({ href: p2.url }, { children: "Download the PDF" })), "."] }) })) : null;
};
export {
  Xm as D
};
