vue-pdf-lite
Version:
Lightweight Vue 3 composable for exporting HTML to high-quality PDFs with smart pagination.
1,341 lines • 208 kB
JavaScript
import { c as Qe, _ as za, g as Io } from "./index-CBDjOOjs.js";
var ht = function(a) {
return a && a.Math === Math && a;
}, _ = (
// eslint-disable-next-line es/no-global-this -- safe
ht(typeof globalThis == "object" && globalThis) || ht(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
ht(typeof self == "object" && self) || ht(typeof Qe == "object" && Qe) || ht(typeof Qe == "object" && Qe) || // eslint-disable-next-line no-new-func -- fallback
/* @__PURE__ */ function() {
return this;
}() || Function("return this")()
), Et = {}, D = function(a) {
try {
return !!a();
} catch {
return !0;
}
}, $l = D, he = !$l(function() {
return Object.defineProperty({}, 1, { get: function() {
return 7;
} })[1] !== 7;
}), wl = D, br = !wl(function() {
var a = (function() {
}).bind();
return typeof a != "function" || a.hasOwnProperty("prototype");
}), Cl = br, Ft = Function.prototype.call, Y = Cl ? Ft.bind(Ft) : function() {
return Ft.apply(Ft, arguments);
}, Mo = {}, _o = {}.propertyIsEnumerable, Vo = Object.getOwnPropertyDescriptor, Al = Vo && !_o.call({ 1: 2 }, 1);
Mo.f = Al ? function(e) {
var t = Vo(this, e);
return !!t && t.enumerable;
} : _o;
var xi = function(a, e) {
return {
enumerable: !(a & 1),
configurable: !(a & 2),
writable: !(a & 4),
value: e
};
}, Do = br, Lo = Function.prototype, Ha = Lo.call, Pl = Do && Lo.bind.bind(Ha, Ha), L = Do ? Pl : function(a) {
return function() {
return Ha.apply(a, arguments);
};
}, ko = L, Rl = ko({}.toString), Nl = ko("".slice), je = function(a) {
return Nl(Rl(a), 8, -1);
}, Il = L, Ml = D, _l = je, Zr = Object, Vl = Il("".split), Bo = Ml(function() {
return !Zr("z").propertyIsEnumerable(0);
}) ? function(a) {
return _l(a) === "String" ? Vl(a, "") : Zr(a);
} : Zr, xr = function(a) {
return a == null;
}, Dl = xr, Ll = TypeError, ve = function(a) {
if (Dl(a)) throw new Ll("Can't call method on " + a);
return a;
}, kl = Bo, Bl = ve, $t = function(a) {
return kl(Bl(a));
}, Jr = typeof document == "object" && document.all, B = typeof Jr > "u" && Jr !== void 0 ? function(a) {
return typeof a == "function" || a === Jr;
} : function(a) {
return typeof a == "function";
}, jl = B, ae = function(a) {
return typeof a == "object" ? a !== null : jl(a);
}, ea = _, Fl = B, Ul = function(a) {
return Fl(a) ? a : void 0;
}, Fe = function(a, e) {
return arguments.length < 2 ? Ul(ea[a]) : ea[a] && ea[a][e];
}, Gl = L, Tr = Gl({}.isPrototypeOf), zl = _, gn = zl.navigator, dn = gn && gn.userAgent, wt = dn ? String(dn) : "", jo = _, ta = wt, pn = jo.process, yn = jo.Deno, mn = pn && pn.versions || yn && yn.version, bn = mn && mn.v8, le, cr;
bn && (le = bn.split("."), cr = le[0] > 0 && le[0] < 4 ? 1 : +(le[0] + le[1]));
!cr && ta && (le = ta.match(/Edge\/(\d+)/), (!le || le[1] >= 74) && (le = ta.match(/Chrome\/(\d+)/), le && (cr = +le[1])));
var Ti = cr, xn = Ti, Hl = D, Yl = _, Xl = Yl.String, Fo = !!Object.getOwnPropertySymbols && !Hl(function() {
var a = Symbol("symbol detection");
return !Xl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
!Symbol.sham && xn && xn < 41;
}), Wl = Fo, Uo = Wl && !Symbol.sham && typeof Symbol.iterator == "symbol", ql = Fe, Ql = B, Kl = Tr, Zl = Uo, Jl = Object, Go = Zl ? function(a) {
return typeof a == "symbol";
} : function(a) {
var e = ql("Symbol");
return Ql(e) && Kl(e.prototype, Jl(a));
}, eh = String, Or = function(a) {
try {
return eh(a);
} catch {
return "Object";
}
}, th = B, rh = Or, ah = TypeError, Te = function(a) {
if (th(a)) return a;
throw new ah(rh(a) + " is not a function");
}, ih = Te, nh = xr, st = function(a, e) {
var t = a[e];
return nh(t) ? void 0 : ih(t);
}, ra = Y, aa = B, ia = ae, sh = TypeError, oh = function(a, e) {
var t, r;
if (e === "string" && aa(t = a.toString) && !ia(r = ra(t, a)) || aa(t = a.valueOf) && !ia(r = ra(t, a)) || e !== "string" && aa(t = a.toString) && !ia(r = ra(t, a))) return r;
throw new sh("Can't convert object to primitive value");
}, zo = { exports: {} }, Tn = _, uh = Object.defineProperty, Oi = function(a, e) {
try {
uh(Tn, a, { value: e, configurable: !0, writable: !0 });
} catch {
Tn[a] = e;
}
return e;
}, lh = _, hh = Oi, On = "__core-js_shared__", Sn = zo.exports = lh[On] || hh(On, {});
(Sn.versions || (Sn.versions = [])).push({
version: "3.45.1",
mode: "global",
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
license: "https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",
source: "https://github.com/zloirock/core-js"
});
var Si = zo.exports, En = Si, Ei = function(a, e) {
return En[a] || (En[a] = e || {});
}, vh = ve, fh = Object, Sr = function(a) {
return fh(vh(a));
}, ch = L, gh = Sr, dh = ch({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
return dh(gh(e), t);
}, ph = L, yh = 0, mh = Math.random(), bh = ph(1.1.toString), Ho = function(a) {
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + bh(++yh + mh, 36);
}, xh = _, Th = Ei, $n = fe, Oh = Ho, Sh = Fo, Eh = Uo, Ke = xh.Symbol, na = Th("wks"), $h = Eh ? Ke.for || Ke : Ke && Ke.withoutSetter || Oh, z = function(a) {
return $n(na, a) || (na[a] = Sh && $n(Ke, a) ? Ke[a] : $h("Symbol." + a)), na[a];
}, wh = Y, wn = ae, Cn = Go, Ch = st, Ah = oh, Ph = z, Rh = TypeError, Nh = Ph("toPrimitive"), Ih = function(a, e) {
if (!wn(a) || Cn(a)) return a;
var t = Ch(a, Nh), r;
if (t) {
if (e === void 0 && (e = "default"), r = wh(t, a, e), !wn(r) || Cn(r)) return r;
throw new Rh("Can't convert object to primitive value");
}
return e === void 0 && (e = "number"), Ah(a, e);
}, Mh = Ih, _h = Go, Yo = function(a) {
var e = Mh(a, "string");
return _h(e) ? e : e + "";
}, Vh = _, An = ae, Ya = Vh.document, Dh = An(Ya) && An(Ya.createElement), Er = function(a) {
return Dh ? Ya.createElement(a) : {};
}, Lh = he, kh = D, Bh = Er, Xo = !Lh && !kh(function() {
return Object.defineProperty(Bh("div"), "a", {
get: function() {
return 7;
}
}).a !== 7;
}), jh = he, Fh = Y, Uh = Mo, Gh = xi, zh = $t, Hh = Yo, Yh = fe, Xh = Xo, Pn = Object.getOwnPropertyDescriptor;
Et.f = jh ? Pn : function(e, t) {
if (e = zh(e), t = Hh(t), Xh) try {
return Pn(e, t);
} catch {
}
if (Yh(e, t)) return Gh(!Fh(Uh.f, e, t), e[t]);
};
var Oe = {}, Wh = he, qh = D, Wo = Wh && qh(function() {
return Object.defineProperty(function() {
}, "prototype", {
value: 42,
writable: !1
}).prototype !== 42;
}), Qh = ae, Kh = String, Zh = TypeError, J = function(a) {
if (Qh(a)) return a;
throw new Zh(Kh(a) + " is not an object");
}, Jh = he, ev = Xo, tv = Wo, Ut = J, Rn = Yo, rv = TypeError, sa = Object.defineProperty, av = Object.getOwnPropertyDescriptor, oa = "enumerable", ua = "configurable", la = "writable";
Oe.f = Jh ? tv ? function(e, t, r) {
if (Ut(e), t = Rn(t), Ut(r), typeof e == "function" && t === "prototype" && "value" in r && la in r && !r[la]) {
var i = av(e, t);
i && i[la] && (e[t] = r.value, r = {
configurable: ua in r ? r[ua] : i[ua],
enumerable: oa in r ? r[oa] : i[oa],
writable: !1
});
}
return sa(e, t, r);
} : sa : function(e, t, r) {
if (Ut(e), t = Rn(t), Ut(r), ev) try {
return sa(e, t, r);
} catch {
}
if ("get" in r || "set" in r) throw new rv("Accessors not supported");
return "value" in r && (e[t] = r.value), e;
};
var iv = he, nv = Oe, sv = xi, Ct = iv ? function(a, e, t) {
return nv.f(a, e, sv(1, t));
} : function(a, e, t) {
return a[e] = t, a;
}, qo = { exports: {} }, Xa = he, ov = fe, Qo = Function.prototype, uv = Xa && Object.getOwnPropertyDescriptor, Ko = ov(Qo, "name"), lv = Ko && (function() {
}).name === "something", hv = Ko && (!Xa || Xa && uv(Qo, "name").configurable), $r = {
PROPER: lv,
CONFIGURABLE: hv
}, vv = L, fv = B, Wa = Si, cv = vv(Function.toString);
fv(Wa.inspectSource) || (Wa.inspectSource = function(a) {
return cv(a);
});
var $i = Wa.inspectSource, gv = _, dv = B, Nn = gv.WeakMap, pv = dv(Nn) && /native code/.test(String(Nn)), yv = Ei, mv = Ho, In = yv("keys"), wi = function(a) {
return In[a] || (In[a] = mv(a));
}, Ci = {}, bv = pv, Zo = _, xv = ae, Tv = Ct, ha = fe, va = Si, Ov = wi, Sv = Ci, Mn = "Object already initialized", qa = Zo.TypeError, Ev = Zo.WeakMap, gr, Tt, dr, $v = function(a) {
return dr(a) ? Tt(a) : gr(a, {});
}, wv = function(a) {
return function(e) {
var t;
if (!xv(e) || (t = Tt(e)).type !== a)
throw new qa("Incompatible receiver, " + a + " required");
return t;
};
};
if (bv || va.state) {
var de = va.state || (va.state = new Ev());
de.get = de.get, de.has = de.has, de.set = de.set, gr = function(a, e) {
if (de.has(a)) throw new qa(Mn);
return e.facade = a, de.set(a, e), e;
}, Tt = function(a) {
return de.get(a) || {};
}, dr = function(a) {
return de.has(a);
};
} else {
var Ye = Ov("state");
Sv[Ye] = !0, gr = function(a, e) {
if (ha(a, Ye)) throw new qa(Mn);
return e.facade = a, Tv(a, Ye, e), e;
}, Tt = function(a) {
return ha(a, Ye) ? a[Ye] : {};
}, dr = function(a) {
return ha(a, Ye);
};
}
var wr = {
set: gr,
get: Tt,
has: dr,
enforce: $v,
getterFor: wv
}, Ai = L, Cv = D, Av = B, Gt = fe, Qa = he, Pv = $r.CONFIGURABLE, Rv = $i, Jo = wr, Nv = Jo.enforce, Iv = Jo.get, _n = String, or = Object.defineProperty, Mv = Ai("".slice), _v = Ai("".replace), Vv = Ai([].join), Dv = Qa && !Cv(function() {
return or(function() {
}, "length", { value: 8 }).length !== 8;
}), Lv = String(String).split("String"), kv = qo.exports = function(a, e, t) {
Mv(_n(e), 0, 7) === "Symbol(" && (e = "[" + _v(_n(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Gt(a, "name") || Pv && a.name !== e) && (Qa ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), Dv && t && Gt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
try {
t && Gt(t, "constructor") && t.constructor ? Qa && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
} catch {
}
var r = Nv(a);
return Gt(r, "source") || (r.source = Vv(Lv, typeof e == "string" ? e : "")), a;
};
Function.prototype.toString = kv(function() {
return Av(this) && Iv(this).source || Rv(this);
}, "toString");
var eu = qo.exports, Bv = B, jv = Oe, Fv = eu, Uv = Oi, Ue = function(a, e, t, r) {
r || (r = {});
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
if (Bv(t) && Fv(t, n, r), r.global)
i ? a[e] = t : Uv(e, t);
else {
try {
r.unsafe ? a[e] && (i = !0) : delete a[e];
} catch {
}
i ? a[e] = t : jv.f(a, e, {
value: t,
enumerable: !1,
configurable: !r.nonConfigurable,
writable: !r.nonWritable
});
}
return a;
}, tu = {}, Gv = Math.ceil, zv = Math.floor, Hv = Math.trunc || function(e) {
var t = +e;
return (t > 0 ? zv : Gv)(t);
}, Yv = Hv, Cr = function(a) {
var e = +a;
return e !== e || e === 0 ? 0 : Yv(e);
}, Xv = Cr, Wv = Math.max, qv = Math.min, Qv = function(a, e) {
var t = Xv(a);
return t < 0 ? Wv(t + e, 0) : qv(t, e);
}, Kv = Cr, Zv = Math.min, ot = function(a) {
var e = Kv(a);
return e > 0 ? Zv(e, 9007199254740991) : 0;
}, Jv = ot, Pi = function(a) {
return Jv(a.length);
}, ef = $t, tf = Qv, rf = Pi, af = function(a) {
return function(e, t, r) {
var i = ef(e), n = rf(i);
if (n === 0) return !a && -1;
var o = tf(r, n), s;
if (a && t !== t) {
for (; n > o; )
if (s = i[o++], s !== s) return !0;
} else for (; n > o; o++)
if ((a || o in i) && i[o] === t) return a || o || 0;
return !a && -1;
};
}, ru = {
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: af(!1)
}, nf = L, fa = fe, sf = $t, of = ru.indexOf, uf = Ci, Vn = nf([].push), au = function(a, e) {
var t = sf(a), r = 0, i = [], n;
for (n in t) !fa(uf, n) && fa(t, n) && Vn(i, n);
for (; e.length > r; ) fa(t, n = e[r++]) && (~of(i, n) || Vn(i, n));
return i;
}, Ri = [
"constructor",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"toLocaleString",
"toString",
"valueOf"
], lf = au, hf = Ri, vf = hf.concat("length", "prototype");
tu.f = Object.getOwnPropertyNames || function(e) {
return lf(e, vf);
};
var iu = {};
iu.f = Object.getOwnPropertySymbols;
var ff = Fe, cf = L, gf = tu, df = iu, pf = J, yf = cf([].concat), mf = ff("Reflect", "ownKeys") || function(e) {
var t = gf.f(pf(e)), r = df.f;
return r ? yf(t, r(e)) : t;
}, Dn = fe, bf = mf, xf = Et, Tf = Oe, Of = function(a, e, t) {
for (var r = bf(e), i = Tf.f, n = xf.f, o = 0; o < r.length; o++) {
var s = r[o];
!Dn(a, s) && !(t && Dn(t, s)) && i(a, s, n(e, s));
}
}, Sf = D, Ef = B, $f = /#|\.prototype\./, At = function(a, e) {
var t = Cf[wf(a)];
return t === Pf ? !0 : t === Af ? !1 : Ef(e) ? Sf(e) : !!e;
}, wf = At.normalize = function(a) {
return String(a).replace($f, ".").toLowerCase();
}, Cf = At.data = {}, Af = At.NATIVE = "N", Pf = At.POLYFILL = "P", nu = At, zt = _, Rf = Et.f, Nf = Ct, If = Ue, Mf = Oi, _f = Of, Vf = nu, ee = function(a, e) {
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
if (r ? o = zt : i ? o = zt[t] || Mf(t, {}) : o = zt[t] && zt[t].prototype, o) for (s in e) {
if (l = e[s], a.dontCallGetSet ? (h = Rf(o, s), u = h && h.value) : u = o[s], n = Vf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
if (typeof l == typeof u) continue;
_f(l, u);
}
(a.sham || u && u.sham) && Nf(l, "sham", !0), If(o, s, l, a);
}
}, vt = _, Df = wt, Lf = je, Ht = function(a) {
return Df.slice(0, a.length) === a;
}, su = function() {
return Ht("Bun/") ? "BUN" : Ht("Cloudflare-Workers") ? "CLOUDFLARE" : Ht("Deno/") ? "DENO" : Ht("Node.js/") ? "NODE" : vt.Bun && typeof Bun.version == "string" ? "BUN" : vt.Deno && typeof Deno.version == "object" ? "DENO" : Lf(vt.process) === "process" ? "NODE" : vt.window && vt.document ? "BROWSER" : "REST";
}(), kf = su, Ar = kf === "NODE", Bf = _, jf = Bf, Ff = L, Uf = Te, Gf = function(a, e, t) {
try {
return Ff(Uf(Object.getOwnPropertyDescriptor(a, e)[t]));
} catch {
}
}, zf = ae, Hf = function(a) {
return zf(a) || a === null;
}, Yf = Hf, Xf = String, Wf = TypeError, qf = function(a) {
if (Yf(a)) return a;
throw new Wf("Can't set " + Xf(a) + " as a prototype");
}, Qf = Gf, Kf = ae, Zf = ve, Jf = qf, ou = Object.setPrototypeOf || ("__proto__" in {} ? function() {
var a = !1, e = {}, t;
try {
t = Qf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
} catch {
}
return function(i, n) {
return Zf(i), Jf(n), Kf(i) && (a ? t(i, n) : i.__proto__ = n), i;
};
}() : void 0), ec = Oe.f, tc = fe, rc = z, Ln = rc("toStringTag"), Pr = function(a, e, t) {
a && !t && (a = a.prototype), a && !tc(a, Ln) && ec(a, Ln, { configurable: !0, value: e });
}, kn = eu, ac = Oe, ic = function(a, e, t) {
return t.get && kn(t.get, e, { getter: !0 }), t.set && kn(t.set, e, { setter: !0 }), ac.f(a, e, t);
}, nc = Fe, sc = ic, oc = z, uc = he, Bn = oc("species"), lc = function(a) {
var e = nc(a);
uc && e && !e[Bn] && sc(e, Bn, {
configurable: !0,
get: function() {
return this;
}
});
}, hc = Tr, vc = TypeError, fc = function(a, e) {
if (hc(e, a)) return a;
throw new vc("Incorrect invocation");
}, cc = z, gc = cc("toStringTag"), uu = {};
uu[gc] = "z";
var dc = String(uu) === "[object z]", pc = dc, yc = B, ur = je, mc = z, bc = mc("toStringTag"), xc = Object, Tc = ur(/* @__PURE__ */ function() {
return arguments;
}()) === "Arguments", Oc = function(a, e) {
try {
return a[e];
} catch {
}
}, Ni = pc ? ur : function(a) {
var e, t, r;
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = Oc(e = xc(a), bc)) == "string" ? t : Tc ? ur(e) : (r = ur(e)) === "Object" && yc(e.callee) ? "Arguments" : r;
}, Sc = L, Ec = D, lu = B, $c = Ni, wc = Fe, Cc = $i, hu = function() {
}, vu = wc("Reflect", "construct"), Ii = /^\s*(?:class|function)\b/, Ac = Sc(Ii.exec), Pc = !Ii.test(hu), ft = function(e) {
if (!lu(e)) return !1;
try {
return vu(hu, [], e), !0;
} catch {
return !1;
}
}, fu = function(e) {
if (!lu(e)) return !1;
switch ($c(e)) {
case "AsyncFunction":
case "GeneratorFunction":
case "AsyncGeneratorFunction":
return !1;
}
try {
return Pc || !!Ac(Ii, Cc(e));
} catch {
return !0;
}
};
fu.sham = !0;
var Rc = !vu || Ec(function() {
var a;
return ft(ft.call) || !ft(Object) || !ft(function() {
a = !0;
}) || a;
}) ? fu : ft, Nc = Rc, Ic = Or, Mc = TypeError, _c = function(a) {
if (Nc(a)) return a;
throw new Mc(Ic(a) + " is not a constructor");
}, jn = J, Vc = _c, Dc = xr, Lc = z, kc = Lc("species"), cu = function(a, e) {
var t = jn(a).constructor, r;
return t === void 0 || Dc(r = jn(t)[kc]) ? e : Vc(r);
}, Bc = br, gu = Function.prototype, Fn = gu.apply, Un = gu.call, du = typeof Reflect == "object" && Reflect.apply || (Bc ? Un.bind(Fn) : function() {
return Un.apply(Fn, arguments);
}), jc = je, Fc = L, Rr = function(a) {
if (jc(a) === "Function") return Fc(a);
}, Gn = Rr, Uc = Te, Gc = br, zc = Gn(Gn.bind), Mi = function(a, e) {
return Uc(a), e === void 0 ? a : Gc ? zc(a, e) : function() {
return a.apply(e, arguments);
};
}, Hc = Fe, pu = Hc("document", "documentElement"), Yc = L, Xc = Yc([].slice), Wc = TypeError, qc = function(a, e) {
if (a < e) throw new Wc("Not enough arguments");
return a;
}, Qc = wt, yu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Qc), ie = _, Kc = du, Zc = Mi, zn = B, Jc = fe, mu = D, Hn = pu, eg = Xc, Yn = Er, tg = qc, rg = yu, ag = Ar, Ka = ie.setImmediate, Xn = ie.clearImmediate, ig = ie.process, ca = ie.Dispatch, ng = ie.Function, Wn = ie.MessageChannel, sg = ie.String, ga = 0, bt = {}, qn = "onreadystatechange", Ot, Ie, da, pa;
mu(function() {
Ot = ie.location;
});
var _i = function(a) {
if (Jc(bt, a)) {
var e = bt[a];
delete bt[a], e();
}
}, ya = function(a) {
return function() {
_i(a);
};
}, Qn = function(a) {
_i(a.data);
}, Kn = function(a) {
ie.postMessage(sg(a), Ot.protocol + "//" + Ot.host);
};
(!Ka || !Xn) && (Ka = function(e) {
tg(arguments.length, 1);
var t = zn(e) ? e : ng(e), r = eg(arguments, 1);
return bt[++ga] = function() {
Kc(t, void 0, r);
}, Ie(ga), ga;
}, Xn = function(e) {
delete bt[e];
}, ag ? Ie = function(a) {
ig.nextTick(ya(a));
} : ca && ca.now ? Ie = function(a) {
ca.now(ya(a));
} : Wn && !rg ? (da = new Wn(), pa = da.port2, da.port1.onmessage = Qn, Ie = Zc(pa.postMessage, pa)) : ie.addEventListener && zn(ie.postMessage) && !ie.importScripts && Ot && Ot.protocol !== "file:" && !mu(Kn) ? (Ie = Kn, ie.addEventListener("message", Qn, !1)) : qn in Yn("script") ? Ie = function(a) {
Hn.appendChild(Yn("script"))[qn] = function() {
Hn.removeChild(this), _i(a);
};
} : Ie = function(a) {
setTimeout(ya(a), 0);
});
var bu = {
set: Ka
}, Zn = _, og = he, ug = Object.getOwnPropertyDescriptor, lg = function(a) {
if (!og) return Zn[a];
var e = ug(Zn, a);
return e && e.value;
}, xu = function() {
this.head = null, this.tail = null;
};
xu.prototype = {
add: function(a) {
var e = { item: a, next: null }, t = this.tail;
t ? t.next = e : this.head = e, this.tail = e;
},
get: function() {
var a = this.head;
if (a) {
var e = this.head = a.next;
return e === null && (this.tail = null), a.item;
}
}
};
var Tu = xu, hg = wt, vg = /ipad|iphone|ipod/i.test(hg) && typeof Pebble < "u", fg = wt, cg = /web0s(?!.*chrome)/i.test(fg), at = _, gg = lg, Jn = Mi, ma = bu.set, dg = Tu, pg = yu, yg = vg, mg = cg, ba = Ar, es = at.MutationObserver || at.WebKitMutationObserver, ts = at.document, rs = at.process, Yt = at.Promise, Za = gg("queueMicrotask"), Xe, xa, Ta, Xt, as;
if (!Za) {
var Wt = new dg(), qt = function() {
var a, e;
for (ba && (a = rs.domain) && a.exit(); e = Wt.get(); ) try {
e();
} catch (t) {
throw Wt.head && Xe(), t;
}
a && a.enter();
};
!pg && !ba && !mg && es && ts ? (xa = !0, Ta = ts.createTextNode(""), new es(qt).observe(Ta, { characterData: !0 }), Xe = function() {
Ta.data = xa = !xa;
}) : !yg && Yt && Yt.resolve ? (Xt = Yt.resolve(void 0), Xt.constructor = Yt, as = Jn(Xt.then, Xt), Xe = function() {
as(qt);
}) : ba ? Xe = function() {
rs.nextTick(qt);
} : (ma = Jn(ma, at), Xe = function() {
ma(qt);
}), Za = function(a) {
Wt.head || Xe(), Wt.add(a);
};
}
var bg = Za, xg = function(a, e) {
try {
arguments.length === 1 ? console.error(a) : console.error(a, e);
} catch {
}
}, Vi = function(a) {
try {
return { error: !1, value: a() };
} catch (e) {
return { error: !0, value: e };
}
}, Tg = _, Nr = Tg.Promise, Og = _, xt = Nr, Sg = B, Eg = nu, $g = $i, wg = z, is = su, Oa = Ti;
xt && xt.prototype;
var Cg = wg("species"), Ja = !1, Ou = Sg(Og.PromiseRejectionEvent), Ag = Eg("Promise", function() {
var a = $g(xt), e = a !== String(xt);
if (!e && Oa === 66) return !0;
if (!Oa || Oa < 51 || !/native code/.test(a)) {
var t = new xt(function(n) {
n(1);
}), r = function(n) {
n(function() {
}, function() {
});
}, i = t.constructor = {};
if (i[Cg] = r, Ja = t.then(function() {
}) instanceof r, !Ja) return !0;
}
return !e && (is === "BROWSER" || is === "DENO") && !Ou;
}), Pt = {
CONSTRUCTOR: Ag,
REJECTION_EVENT: Ou,
SUBCLASSING: Ja
}, ut = {}, ns = Te, Pg = TypeError, Rg = function(a) {
var e, t;
this.promise = new a(function(r, i) {
if (e !== void 0 || t !== void 0) throw new Pg("Bad Promise constructor");
e = r, t = i;
}), this.resolve = ns(e), this.reject = ns(t);
};
ut.f = function(a) {
return new Rg(a);
};
var Ng = ee, pr = Ar, we = _, Ig = jf, it = Y, ss = Ue, os = ou, Mg = Pr, _g = lc, Vg = Te, lr = B, Dg = ae, Lg = fc, kg = cu, Su = bu.set, Di = bg, Bg = xg, jg = Vi, Fg = Tu, Eu = wr, yr = Nr, Li = Pt, $u = ut, Ir = "Promise", wu = Li.CONSTRUCTOR, Ug = Li.REJECTION_EVENT, Gg = Li.SUBCLASSING, Sa = Eu.getterFor(Ir), zg = Eu.set, qe = yr && yr.prototype, Le = yr, Qt = qe, Cu = we.TypeError, ei = we.document, ki = we.process, ti = $u.f, Hg = ti, Yg = !!(ei && ei.createEvent && we.dispatchEvent), Au = "unhandledrejection", Xg = "rejectionhandled", us = 0, Pu = 1, Wg = 2, Bi = 1, Ru = 2, Kt, ls, Nu, hs, Iu = function(a) {
var e;
return Dg(a) && lr(e = a.then) ? e : !1;
}, Mu = function(a, e) {
var t = e.value, r = e.state === Pu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
try {
i ? (r || (e.rejection === Ru && Qg(e), e.rejection = Bi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Cu("Promise-chain cycle")) : (l = Iu(u)) ? it(l, u, n, o) : n(u)) : o(t);
} catch (f) {
s && !h && s.exit(), o(f);
}
}, _u = function(a, e) {
a.notified || (a.notified = !0, Di(function() {
for (var t = a.reactions, r; r = t.get(); )
Mu(r, a);
a.notified = !1, e && !a.rejection && qg(a);
}));
}, Vu = function(a, e, t) {
var r, i;
Yg ? (r = ei.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Ug && (i = we["on" + a]) ? i(r) : a === Au && Bg("Unhandled promise rejection", t);
}, qg = function(a) {
it(Su, we, function() {
var e = a.facade, t = a.value, r = vs(a), i;
if (r && (i = jg(function() {
pr ? ki.emit("unhandledRejection", t, e) : Vu(Au, e, t);
}), a.rejection = pr || vs(a) ? Ru : Bi, i.error))
throw i.value;
});
}, vs = function(a) {
return a.rejection !== Bi && !a.parent;
}, Qg = function(a) {
it(Su, we, function() {
var e = a.facade;
pr ? ki.emit("rejectionHandled", e) : Vu(Xg, e, a.value);
});
}, Ze = function(a, e, t) {
return function(r) {
a(e, r, t);
};
}, et = function(a, e, t) {
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Wg, _u(a, !0));
}, ri = function(a, e, t) {
if (!a.done) {
a.done = !0, t && (a = t);
try {
if (a.facade === e) throw new Cu("Promise can't be resolved itself");
var r = Iu(e);
r ? Di(function() {
var i = { done: !1 };
try {
it(
r,
e,
Ze(ri, i, a),
Ze(et, i, a)
);
} catch (n) {
et(i, n, a);
}
}) : (a.value = e, a.state = Pu, _u(a, !1));
} catch (i) {
et({ done: !1 }, i, a);
}
}
};
if (wu && (Le = function(e) {
Lg(this, Qt), Vg(e), it(Kt, this);
var t = Sa(this);
try {
e(Ze(ri, t), Ze(et, t));
} catch (r) {
et(t, r);
}
}, Qt = Le.prototype, Kt = function(e) {
zg(this, {
type: Ir,
done: !1,
notified: !1,
parent: !1,
reactions: new Fg(),
rejection: !1,
state: us,
value: null
});
}, Kt.prototype = ss(Qt, "then", function(e, t) {
var r = Sa(this), i = ti(kg(this, Le));
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ? ki.domain : void 0, r.state === us ? r.reactions.add(i) : Di(function() {
Mu(i, r);
}), i.promise;
}), ls = function() {
var a = new Kt(), e = Sa(a);
this.promise = a, this.resolve = Ze(ri, e), this.reject = Ze(et, e);
}, $u.f = ti = function(a) {
return a === Le || a === Nu ? new ls(a) : Hg(a);
}, lr(yr) && qe !== Object.prototype)) {
hs = qe.then, Gg || ss(qe, "then", function(e, t) {
var r = this;
return new Le(function(i, n) {
it(hs, r, i, n);
}).then(e, t);
}, { unsafe: !0 });
try {
delete qe.constructor;
} catch {
}
os && os(qe, Qt);
}
Ng({ global: !0, constructor: !0, wrap: !0, forced: wu }, {
Promise: Le
});
Nu = Ig.Promise;
Mg(Le, Ir, !1);
_g(Ir);
var Rt = {}, Kg = z, Zg = Rt, Jg = Kg("iterator"), ed = Array.prototype, td = function(a) {
return a !== void 0 && (Zg.Array === a || ed[Jg] === a);
}, rd = Ni, fs = st, ad = xr, id = Rt, nd = z, sd = nd("iterator"), Du = function(a) {
if (!ad(a)) return fs(a, sd) || fs(a, "@@iterator") || id[rd(a)];
}, od = Y, ud = Te, ld = J, hd = Or, vd = Du, fd = TypeError, cd = function(a, e) {
var t = arguments.length < 2 ? vd(a) : e;
if (ud(t)) return ld(od(t, a));
throw new fd(hd(a) + " is not iterable");
}, gd = Y, cs = J, dd = st, pd = function(a, e, t) {
var r, i;
cs(a);
try {
if (r = dd(a, "return"), !r) {
if (e === "throw") throw t;
return t;
}
r = gd(r, a);
} catch (n) {
i = !0, r = n;
}
if (e === "throw") throw t;
if (i) throw r;
return cs(r), t;
}, yd = Mi, md = Y, bd = J, xd = Or, Td = td, Od = Pi, gs = Tr, Sd = cd, Ed = Du, ds = pd, $d = TypeError, hr = function(a, e) {
this.stopped = a, this.result = e;
}, ps = hr.prototype, Lu = function(a, e, t) {
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u = yd(e, r), l, h, f, c, v, g, d, p = function(x) {
return l && ds(l, "normal"), new hr(!0, x);
}, y = function(x) {
return i ? (bd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
};
if (n)
l = a.iterator;
else if (o)
l = a;
else {
if (h = Ed(a), !h) throw new $d(xd(a) + " is not iterable");
if (Td(h)) {
for (f = 0, c = Od(a); c > f; f++)
if (v = y(a[f]), v && gs(ps, v)) return v;
return new hr(!1);
}
l = Sd(a, h);
}
for (g = n ? a.next : l.next; !(d = md(g, l)).done; ) {
try {
v = y(d.value);
} catch (x) {
ds(l, "throw", x);
}
if (typeof v == "object" && v && gs(ps, v)) return v;
}
return new hr(!1);
}, wd = z, ku = wd("iterator"), Bu = !1;
try {
var Cd = 0, ys = {
next: function() {
return { done: !!Cd++ };
},
return: function() {
Bu = !0;
}
};
ys[ku] = function() {
return this;
}, Array.from(ys, function() {
throw 2;
});
} catch {
}
var Ad = function(a, e) {
try {
if (!e && !Bu) return !1;
} catch {
return !1;
}
var t = !1;
try {
var r = {};
r[ku] = function() {
return {
next: function() {
return { done: t = !0 };
}
};
}, a(r);
} catch {
}
return t;
}, Pd = Nr, Rd = Ad, Nd = Pt.CONSTRUCTOR, ju = Nd || !Rd(function(a) {
Pd.all(a).then(void 0, function() {
});
}), Id = ee, Md = Y, _d = Te, Vd = ut, Dd = Vi, Ld = Lu, kd = ju;
Id({ target: "Promise", stat: !0, forced: kd }, {
all: function(e) {
var t = this, r = Vd.f(t), i = r.resolve, n = r.reject, o = Dd(function() {
var s = _d(t.resolve), u = [], l = 0, h = 1;
Ld(e, function(f) {
var c = l++, v = !1;
h++, Md(s, t, f).then(function(g) {
v || (v = !0, u[c] = g, --h || i(u));
}, n);
}), --h || i(u);
});
return o.error && n(o.value), r.promise;
}
});
var Bd = ee, jd = Pt.CONSTRUCTOR, ai = Nr, Fd = Fe, Ud = B, Gd = Ue, ms = ai && ai.prototype;
Bd({ target: "Promise", proto: !0, forced: jd, real: !0 }, {
catch: function(a) {
return this.then(void 0, a);
}
});
if (Ud(ai)) {
var bs = Fd("Promise").prototype.catch;
ms.catch !== bs && Gd(ms, "catch", bs, { unsafe: !0 });
}
var zd = ee, Hd = Y, Yd = Te, Xd = ut, Wd = Vi, qd = Lu, Qd = ju;
zd({ target: "Promise", stat: !0, forced: Qd }, {
race: function(e) {
var t = this, r = Xd.f(t), i = r.reject, n = Wd(function() {
var o = Yd(t.resolve);
qd(e, function(s) {
Hd(o, t, s).then(r.resolve, i);
});
});
return n.error && i(n.value), r.promise;
}
});
var Kd = ee, Zd = ut, Jd = Pt.CONSTRUCTOR;
Kd({ target: "Promise", stat: !0, forced: Jd }, {
reject: function(e) {
var t = Zd.f(this), r = t.reject;
return r(e), t.promise;
}
});
var ep = J, tp = ae, rp = ut, ap = function(a, e) {
if (ep(a), tp(e) && e.constructor === a) return e;
var t = rp.f(a), r = t.resolve;
return r(e), t.promise;
}, ip = ee, np = Fe, sp = Pt.CONSTRUCTOR, op = ap;
np("Promise");
ip({ target: "Promise", stat: !0, forced: sp }, {
resolve: function(e) {
return op(this, e);
}
});
function xs(a, e, t, r, i, n, o) {
try {
var s = a[n](o), u = s.value;
} catch (l) {
return void t(l);
}
s.done ? e(u) : Promise.resolve(u).then(r, i);
}
function xe(a) {
return function() {
var e = this, t = arguments;
return new Promise(function(r, i) {
var n = a.apply(e, t);
function o(u) {
xs(n, r, i, o, s, "next", u);
}
function s(u) {
xs(n, r, i, o, s, "throw", u);
}
o(void 0);
});
};
}
var up = Ni, lp = String, pe = function(a) {
if (up(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
return lp(a);
}, hp = J, Fu = function() {
var a = hp(this), e = "";
return a.hasIndices && (e += "d"), a.global && (e += "g"), a.ignoreCase && (e += "i"), a.multiline && (e += "m"), a.dotAll && (e += "s"), a.unicode && (e += "u"), a.unicodeSets && (e += "v"), a.sticky && (e += "y"), e;
}, ji = D, vp = _, Fi = vp.RegExp, Ui = ji(function() {
var a = Fi("a", "y");
return a.lastIndex = 2, a.exec("abcd") !== null;
});
Ui || ji(function() {
return !Fi("a", "y").sticky;
});
var fp = Ui || ji(function() {
var a = Fi("^r", "gy");
return a.lastIndex = 2, a.exec("str") !== null;
}), Uu = {
BROKEN_CARET: fp,
UNSUPPORTED_Y: Ui
}, Gu = {}, cp = au, gp = Ri, dp = Object.keys || function(e) {
return cp(e, gp);
}, pp = he, yp = Wo, mp = Oe, bp = J, xp = $t, Tp = dp;
Gu.f = pp && !yp ? Object.defineProperties : function(e, t) {
bp(e);
for (var r = xp(t), i = Tp(t), n = i.length, o = 0, s; n > o; ) mp.f(e, s = i[o++], r[s]);
return e;
};
var Op = J, Sp = Gu, Ts = Ri, Ep = Ci, $p = pu, wp = Er, Cp = wi, Os = ">", Ss = "<", ii = "prototype", ni = "script", zu = Cp("IE_PROTO"), Ea = function() {
}, Hu = function(a) {
return Ss + ni + Os + a + Ss + "/" + ni + Os;
}, Es = function(a) {
a.write(Hu("")), a.close();
var e = a.parentWindow.Object;
return a = null, e;
}, Ap = function() {
var a = wp("iframe"), e = "java" + ni + ":", t;
return a.style.display = "none", $p.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Hu("document.F=Object")), t.close(), t.F;
}, Zt, vr = function() {
try {
Zt = new ActiveXObject("htmlfile");
} catch {
}
vr = typeof document < "u" ? document.domain && Zt ? Es(Zt) : Ap() : Es(Zt);
for (var a = Ts.length; a--; ) delete vr[ii][Ts[a]];
return vr();
};
Ep[zu] = !0;
var Gi = Object.create || function(e, t) {
var r;
return e !== null ? (Ea[ii] = Op(e), r = new Ea(), Ea[ii] = null, r[zu] = e) : r = vr(), t === void 0 ? r : Sp.f(r, t);
}, Pp = D, Rp = _, Np = Rp.RegExp, Ip = Pp(function() {
var a = Np(".", "s");
return !(a.dotAll && a.test(`
`) && a.flags === "s");
}), Mp = D, _p = _, Vp = _p.RegExp, Dp = Mp(function() {
var a = Vp("(?<a>b)", "g");
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
}), Je = Y, Mr = L, Lp = pe, kp = Fu, Bp = Uu, jp = Ei, Fp = Gi, Up = wr.get, Gp = Ip, zp = Dp, Hp = jp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, si = mr, Yp = Mr("".charAt), Xp = Mr("".indexOf), Wp = Mr("".replace), $a = Mr("".slice), oi = function() {
var a = /a/, e = /b*/g;
return Je(mr, a, "a"), Je(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
}(), Yu = Bp.BROKEN_CARET, ui = /()??/.exec("")[1] !== void 0, qp = oi || ui || Yu || Gp || zp;
qp && (si = function(e) {
var t = this, r = Up(t), i = Lp(e), n = r.raw, o, s, u, l, h, f, c;
if (n)
return n.lastIndex = t.lastIndex, o = Je(si, n, i), t.lastIndex = n.lastIndex, o;
var v = r.groups, g = Yu && t.sticky, d = Je(kp, t), p = t.source, y = 0, x = i;
if (g && (d = Wp(d, "y", ""), Xp(d, "g") === -1 && (d += "g"), x = $a(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Yp(i, t.lastIndex - 1) !== `
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", d)), ui && (s = new RegExp("^" + p + "$(?!\\s)", d)), oi && (u = t.lastIndex), l = Je(mr, g ? s : t, x), g ? l ? (l.input = $a(l.input, y), l[0] = $a(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : oi && l && (t.lastIndex = t.global ? l.index + l[0].length : u), ui && l && l.length > 1 && Je(Hp, l[0], s, function() {
for (h = 1; h < arguments.length - 2; h++)
arguments[h] === void 0 && (l[h] = void 0);
}), l && v)
for (l.groups = f = Fp(null), h = 0; h < v.length; h++)
c = v[h], f[c[0]] = l[c[1]];
return l;
});
var zi = si, Qp = ee, $s = zi;
Qp({ target: "RegExp", proto: !0, forced: /./.exec !== $s }, {
exec: $s
});
var ws = Y, Cs = Ue, Kp = zi, As = D, Xu = z, Zp = Ct, Jp = Xu("species"), wa = RegExp.prototype, Hi = function(a, e, t, r) {
var i = Xu(a), n = !As(function() {
var l = {};
return l[i] = function() {
return 7;
}, ""[a](l) !== 7;
}), o = n && !As(function() {
var l = !1, h = /a/;
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Jp] = function() {
return h;
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
return l = !0, null;
}, h[i](""), !l;
});
if (!n || !o || t) {
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
var g = h.exec;
return g === Kp || g === wa.exec ? n && !v ? { done: !0, value: ws(s, h, f, c) } : { done: !0, value: ws(l, f, h, c) } : { done: !1 };
});
Cs(String.prototype, a, u[0]), Cs(wa, i, u[1]);
}
r && Zp(wa[i], "sham", !0);
}, Yi = L, ey = Cr, ty = pe, ry = ve, ay = Yi("".charAt), Ps = Yi("".charCodeAt), iy = Yi("".slice), ny = function(a) {
return function(e, t) {
var r = ty(ry(e)), i = ey(t), n = r.length, o, s;
return i < 0 || i >= n ? a ? "" : void 0 : (o = Ps(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Ps(r, i + 1)) < 56320 || s > 57343 ? a ? ay(r, i) : o : a ? iy(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
};
}, sy = {
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt: ny(!0)
}, oy = sy.charAt, Xi = function(a, e, t) {
return e + (t ? oy(a, e).length : 1);
}, uy = _, ly = D, Rs = uy.RegExp, hy = !ly(function() {
var a = !0;
try {
Rs(".", "d");
} catch {
a = !1;
}
var e = {}, t = "", r = a ? "dgimsy" : "gimsy", i = function(u, l) {
Object.defineProperty(e, u, { get: function() {
return t += l, !0;
} });
}, n = {
dotAll: "s",
global: "g",
ignoreCase: "i",
multiline: "m",
sticky: "y"
};
a && (n.hasIndices = "d");
for (var o in n) i(o, n[o]);
var s = Object.getOwnPropertyDescriptor(Rs.prototype, "flags").get.call(e);
return s !== r || t !== r;
}), vy = { correct: hy }, fy = Y, cy = fe, gy = Tr, Ns = vy, dy = Fu, py = RegExp.prototype, Wi = Ns.correct ? function(a) {
return a.flags;
} : function(a) {
return !Ns.correct && gy(py, a) && !cy(a, "flags") ? fy(dy, a) : a.flags;
}, Is = Y, yy = J, my = B, by = je, xy = zi, Ty = TypeError, qi = function(a, e) {
var t = a.exec;
if (my(t)) {
var r = Is(t, a, e);
return r !== null && yy(r), r;
}
if (by(a) === "RegExp") return Is(xy, a, e);
throw new Ty("RegExp#exec called on incompatible receiver");
}, Oy = Y, Sy = L, Ey = Hi, $y = J, wy = ae, Cy = ot, Jt = pe, Ay = ve, Py = st, Ry = Xi, Ny = Wi, Ms = qi, _s = Sy("".indexOf);
Ey("match", function(a, e, t) {
return [
// `String.prototype.match` method
// https://tc39.es/ecma262/#sec-string.prototype.match
function(i) {
var n = Ay(this), o = wy(i) ? Py(i, a) : void 0;
return o ? Oy(o, i, n) : new RegExp(i)[a](Jt(n));
},
// `RegExp.prototype[@@match]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
function(r) {
var i = $y(this), n = Jt(r), o = t(e, i, n);
if (o.done) return o.value;
var s = Jt(Ny(i));
if (_s(s, "g") === -1) return Ms(i, n);
var u = _s(s, "u") !== -1;
i.lastIndex = 0;
for (var l = [], h = 0, f; (f = Ms(i, n)) !== null; ) {
var c = Jt(f[0]);
l[h] = c, c === "" && (i.lastIndex = Ry(n, Cy(i.lastIndex), u)), h++;
}
return h === 0 ? null : l;
}
];
});
var Qi = L, Iy = Sr, My = Math.floor, Ca = Qi("".charAt), _y = Qi("".replace), Aa = Qi("".slice), Vy = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Dy = /\$([$&'`]|\d{1,2})/g, Ly = function(a, e, t, r, i, n) {
var o = t + a.length, s = r.length, u = Dy;
return i !== void 0 && (i = Iy(i), u = Vy), _y(n, u, function(l, h) {
var f;
switch (Ca(h, 0)) {
case "$":
return "$";
case "&":
return a;
case "`":
return Aa(e, 0, t);
case "'":
return Aa(e, o);
case "<":
f = i[Aa(h, 1, -1)];
break;
default:
var c = +h;
if (c === 0) return l;
if (c > s) {
var v = My(c / 10);
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ca(h, 1) : r[v - 1] + Ca(h, 1) : l;
}
f = r[c - 1];
}
return f === void 0 ? "" : f;
});
}, ky = du, Vs = Y, _r = L, By = Hi, jy = D, Fy = J, Uy = B, Gy = ae, zy = Cr, Hy = ot, Me = pe, Yy = ve, Xy = Xi, Wy = st, qy = Ly, Qy = Wi, Ky = qi, Zy = z, li = Zy("replace"), Jy = Math.max, em = Math.min, tm = _r([].concat), Pa = _r([].push), er = _r("".indexOf), Ds = _r("".slice), rm = function(a) {
return a === void 0 ? a : String(a);
}, am = function() {
return "a".replace(/./, "$0") === "$0";
}(), Ls = function() {
return /./[li] ? /./[li]("a", "$0") === "" : !1;
}(), im = !jy(function() {
var a = /./;
return a.exec = function() {
var e = [];
return e.groups = { a: "7" }, e;
}, "".replace(a, "$<a>") !== "7";
});
By("replace", function(a, e, t) {
var r = Ls ? "$" : "$0";
return [
// `String.prototype.replace` method
// https://tc39.es/ecma262/#sec-string.prototype.replace
function(n, o) {
var s = Yy(this), u = Gy(n) ? Wy(n, li) : void 0;
return u ? Vs(u, n, s, o) : Vs(e, Me(s), n, o);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
function(i, n) {
var o = Fy(this), s = Me(i);
if (typeof n == "string" && er(n, r) === -1 && er(n, "$<") === -1) {
var u = t(e, o, s, n);
if (u.done) return u.value;
}
var l = Uy(n);
l || (n = Me(n));
var h = Me(Qy(o)), f = er(h, "g") !== -1, c;
f && (c = er(h, "u") !== -1, o.lastIndex = 0);
for (var v = [], g; g = Ky(o, s), !(g === null || (Pa(v, g), !f)); ) {
var d = Me(g[0]);
d === "" && (o.lastIndex = Xy(s, Hy(o.lastIndex), c));
}
for (var p = "", y = 0, x = 0; x < v.length; x++) {
g = v[x];
for (var b = Me(g[0]), T = Jy(em(zy(g.index), s.length), 0), $ = [], E, O = 1; O < g.length; O++) Pa($, rm(g[O]));
var C = g.groups;
if (l) {
var P = tm([b], $, T, s);
C !== void 0 && Pa(P, C), E = Me(ky(n, void 0, P));
} else
E = qy(b, s, T, $, C, n);
T >= y && (p += Ds(s, y, T) + E, y = T + b.length);
}
return p + Ds(s, y);
}
];
}, !im || !am || Ls);
var nm = ae, sm = je, om = z, um = om("match"), lm = function(a) {
var e;
return nm(a) && ((e = a[um]) !== void 0 ? !!e : sm(a) === "RegExp");
}, hm = lm, vm = TypeError, Ki = function(a) {
if (hm(a))
throw new vm("The method doesn't accept regular expressions");
return a;
}, fm = z, cm = fm("match"), Zi = function(a) {
var e = /./;
try {
"/./"[a](e);
} catch {
try {
return e[cm] = !1, "/./"[a](e);
} catch {
}
}
return !1;
}, gm = ee, dm = Rr, pm = Et.f, ym = ot, ks = pe, mm = Ki, bm = ve, xm = Zi, Tm = dm("".slice), Om = Math.min, Wu = xm("startsWith"), Sm = !Wu && !!function() {
var a = pm(String.prototype, "startsWith");
return a && !a.writable;
}();
gm({ target: "String", proto: !0, forced: !Sm && !Wu }, {
startsWith: function(e) {
var t = ks(bm(this));
mm(e);
var r = ym(Om(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = ks(e);
return Tm(t, r, r + i.length) === i;
}
});
var Em = z, $m = Gi, wm = Oe.f, hi = Em("unscopables"), vi = Array.prototype;
vi[hi] === void 0 && wm(vi, hi, {
configurable: !0,
value: $m(null)
});
var Cm = function(a) {
vi[hi][a] = !0;
}, Am = D, Pm = !Am(function() {
function a() {
}
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
}), Rm = fe, Nm = B, Im = Sr, Mm = wi, _m = Pm, Bs = Mm("IE_PROTO"), fi = Object, Vm = fi.prototype, qu = _m ? fi.getPrototypeOf : function(a) {
var e = Im(a);
if (Rm(e, Bs)) return e[Bs];
var t = e.constructor;
return Nm(t) && e instanceof t ? t.prototype : e instanceof fi ? Vm : null;
}, Dm = D, Lm = B, km = ae, js = qu, Bm = Ue, jm = z, ci = jm("iterator"), Qu = !1, ke, Ra, Na;
[].keys && (Na = [].keys(), "next" in Na ? (Ra = js(js(Na)), Ra !== Object.prototype && (ke = Ra)) : Qu = !0);
var Fm = !km(ke) || Dm(function() {
var a = {};
return ke[ci].call(a) !== a;
});
Fm && (ke = {});
Lm(ke[ci]) || Bm(ke, ci, function() {
return this;
});
var Ku = {
IteratorPrototype: ke,
BUGGY_SAFARI_ITERATORS: Qu
}, Um = Ku.IteratorPrototype, Gm = Gi, zm = xi, Hm = Pr, Ym = Rt, Xm = function() {
return this;
}, Wm = function(a, e, t, r) {
var i = e + " Iterator";
return a.prototype = Gm(Um, { next: zm(+!r, t) }), Hm(a, i, !1), Ym[i] = Xm, a;
}, qm = ee, Qm = Y, Zu = $r, Km = B, Zm = Wm, Fs = qu, Us = ou, Jm = Pr, e0 = Ct, Ia = Ue, t0 = z, r0 = Rt, Ju = Ku, a0 = Zu.PROPER, i0 = Zu.CONFIGURABLE, Gs = Ju.IteratorPrototype, tr = Ju.BUGGY_SAFARI_ITERATORS, ct = t0("iterator"), zs = "keys", gt = "values", Hs = "entries", n0 = function() {
return this;
}, s0 = function(a, e, t, r, i, n, o) {
Zm(t, e, r);
var s = function(y) {
if (y === i && c) return c;
if (!tr && y && y in h) return h[y];
switch (y) {
case zs:
return function() {
return new t(this, y);
};
case gt:
return function() {
return new t(this, y);
};
case Hs:
return function() {
return new t(this, y);
};
}
return function() {
return new t(this);
};
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !tr && f || s(i), v = e === "Array" && h.entries || f, g, d, p;
if (v && (g = Fs(v.call(new a())), g !== Object.prototype && g.next && (Fs(g) !== Gs && (Us ? Us(g, Gs) : Km(g[ct]) || Ia(g, ct, n0)), Jm(g, u, !0))), a0 && i === gt && f && f.name !== gt && (i0 ? e0(h, "name", gt) : (l = !0, c = function() {
return Qm(f, this);
})), i)
if (d = {
values: s(gt),
keys: n ? c : s(zs),
entries: s(Hs)
}, o) for (p in d)
(tr || l || !(p in h)) && Ia(h, p, d[p]);
else qm({ target: e, proto: !0, forced: tr || l }, d);
return h[ct] !== c && Ia(h, ct, c, { name: i }), r0[e] = c, d;
}, o0 = function(a, e) {
return { value: a, done: e };
}, u0 = $t, Ji = Cm, Ys = Rt, el = wr, l0 = Oe.f, h0 = s0, rr = o0, v0 = he, tl = "Array Iterator", f0 = el.set, c0 = el.getterFor(tl), g0 = h0(Array, "Array", function(a, e) {
f0(this, {
type: tl,
target: u0(a),
// target
index: 0,
// next index
kind: e
// kind
});
}, function() {
var a = c0(this), e = a.target, t = a.index++;
if (!e || t >= e.length)
return a.target = null, rr(void 0, !0);
switch (a.kind) {
case "keys":
return rr(t, !1);
case "values":
return rr(e[t], !1);
}
return rr([t, e[t]], !1);
}, "values"), Xs = Ys.Arguments = Ys.Array;
Ji("keys");
Ji("values");
Ji("entries");
if (v0 && Xs.name !== "values") try {
l0(Xs, "name", { value: "values" });
} catch {
}
var d0 = {
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
}, p0 = Er, Ma = p0("span").classList, Ws = Ma && Ma.constructor && Ma.constructor.prototype, y0 = Ws === Object.prototype ? void 0 : Ws, qs = _, rl = d0, m0 = y0, pt = g0, Qs = Ct, b0 = Pr, x0 = z, _a = x0("iterator"), Va = pt.values, al = function(a, e) {
if (a) {
if (a[_a] !== Va) try {
Qs(a, _a, Va);
} catch {
a[_a] = Va;
}
if (b0(a, e, !0), rl[e]) {
for (var t in pt)
if (a[t] !== pt[t]) try {
Qs(a, t, pt[t]);
} catch {
a[t] = pt[t];
}
}
}
};
for (var Da in rl)
al(qs[Da] && qs[Da].prototype, Da);
al(m0, "DOMTokenList");
function T0(a, e) {
if (za(a) != "object" || !a) return a;
var t = a[Symbol.toPrimitive];
if (t !== void 0) {
var r = t.call(a, e);
if (za(r) != "object") return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(a);
}
function O0(a) {
var e = T0(a, "string");
return za(e) == "symbol" ? e : e + "";
}
function en(a, e, t) {
return (e = O0(e)) in a ? Object.defineProperty(a, e, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : a[e] = t, a;
}
var S0 = Te, E0 = Sr, $0 = Bo, w0 = Pi, Ks = TypeError, Zs = "Reduce of empty array with no initial value", C0 = function(a) {
return function(e, t, r, i) {
var n = E0(e), o = $0(n), s = w0(n);
if (S0(t), s === 0 && r < 2) throw new Ks(Zs);
var u = a ? s - 1 : 0, l = a ? -1 : 1;
if (r < 2) for (; ; ) {
if (u in o) {
i = o[u], u += l;
break;
}
if (u += l, a ? u < 0 : s <= u)
throw new Ks(Zs);
}
for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
return i;
};
}, A0 = {
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
left: C0(!1)
}, P0 = D, il = function(a, e) {
var t = [][a];
return !!t && P0(function() {
t.call(null, e || function() {
return 1;
}, 1);
});
}, R0 = ee, N0 = A0.left, I0 = il, Js = Ti, M0 = Ar, _0 = !M0 && Js > 79 && Js < 83, V0 = _0 || !I0("reduce");
R0({ target: "Array", proto: !0, forced: V0 }, {
reduce: function(e) {
var t = arguments.length;
return N0(this, e, t, t > 1 ? arguments[1] : void 0);
}
});
var D0 = ee, L0 = Rr, k0 = Et.f, B0 = ot, eo = pe, j0 = Ki, F0 = ve, U0 = Zi, G0 = L0("".slice), z0 = Math.min, nl = U0("endsWith"), H0 = !nl && !!function() {
var a = k0(String.prototype, "endsWith");
return a && !a.writable;
}();
D0({ target: "String", proto: !0, forced: !H0 && !nl }, {
endsWith: function(e) {
var t = eo(F0(this));
j0(e);
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : z0(B0(r), i), o = eo(e);
return G0(t, n - o.length, n) === o;
}
});
var La = Y, sl = L, Y0 = Hi, X0 = J, W0 = ae, q0 = ve, Q0 = cu, K0 = Xi, Z0 = ot, to = pe, J0 = st, ro = qi, eb = Uu, tb = D, We = eb.UNSUPPORTED_Y, rb = 4294967295, ab = Math.min, ka = sl([].push), Ba = sl("".slice), ib = !tb(function() {
var a = /(?:)/, e = a.exec;
a.exec = function() {
return e.apply(this, arguments);
};
var t = "ab".split(a);
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
}), ao = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
"test".split(/(?:)/, -1).length !== 4 ||